configure revision 1.1.1.5 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for xf86-video-mach64 6.9.4.
4 #
5 # Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
6 #
7 #
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10 # Foundation, Inc.
11 #
12 #
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
18
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 emulate sh
23 NULLCMD=:
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
27 setopt NO_GLOB_SUBST
28 else
29 case `(set -o) 2>/dev/null` in #(
30 *posix*) :
31 set -o posix ;; #(
32 *) :
33 ;;
34 esac
35 fi
36
37
38 as_nl='
39 '
40 export as_nl
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49 as_echo='print -r --'
50 as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52 as_echo='printf %s\n'
53 as_echo_n='printf %s'
54 else
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
58 else
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 as_echo_n_body='eval
61 arg=$1;
62 case $arg in #(
63 *"$as_nl"*)
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66 esac;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 '
69 export as_echo_n_body
70 as_echo_n='sh -c $as_echo_n_body as_echo'
71 fi
72 export as_echo_body
73 as_echo='sh -c $as_echo_body as_echo'
74 fi
75
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
78 PATH_SEPARATOR=:
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81 PATH_SEPARATOR=';'
82 }
83 fi
84
85
86 # IFS
87 # We need space, tab and new line, in precisely that order. Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
91 IFS=" "" $as_nl"
92
93 # Find who we are. Look in the path if we contain no directory separator.
94 as_myself=
95 case $0 in #((
96 *[\\/]* ) as_myself=$0 ;;
97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98 for as_dir in $PATH
99 do
100 IFS=$as_save_IFS
101 test -z "$as_dir" && as_dir=.
102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103 done
104 IFS=$as_save_IFS
105
106 ;;
107 esac
108 # We did not find ourselves, most probably we were run as `sh COMMAND'
109 # in which case we are not to be found in the path.
110 if test "x$as_myself" = x; then
111 as_myself=$0
112 fi
113 if test ! -f "$as_myself"; then
114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115 exit 1
116 fi
117
118 # Unset variables that we do not need and which cause bugs (e.g. in
119 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
120 # suppresses any "Segmentation fault" message there. '((' could
121 # trigger a bug in pdksh 5.2.14.
122 for as_var in BASH_ENV ENV MAIL MAILPATH
123 do eval test x\${$as_var+set} = xset \
124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
125 done
126 PS1='$ '
127 PS2='> '
128 PS4='+ '
129
130 # NLS nuisances.
131 LC_ALL=C
132 export LC_ALL
133 LANGUAGE=C
134 export LANGUAGE
135
136 # CDPATH.
137 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138
139 if test "x$CONFIG_SHELL" = x; then
140 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141 emulate sh
142 NULLCMD=:
143 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144 # is contrary to our usage. Disable this feature.
145 alias -g '\${1+\"\$@\"}'='\"\$@\"'
146 setopt NO_GLOB_SUBST
147 else
148 case \`(set -o) 2>/dev/null\` in #(
149 *posix*) :
150 set -o posix ;; #(
151 *) :
152 ;;
153 esac
154 fi
155 "
156 as_required="as_fn_return () { (exit \$1); }
157 as_fn_success () { as_fn_return 0; }
158 as_fn_failure () { as_fn_return 1; }
159 as_fn_ret_success () { return 0; }
160 as_fn_ret_failure () { return 1; }
161
162 exitcode=0
163 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168
169 else
170 exitcode=1; echo positional parameters were not saved.
171 fi
172 test x\$exitcode = x0 || exit 1"
173 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177 test \$(( 1 + 1 )) = 2 || exit 1
178
179 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
180 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
181 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
182 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
183 PATH=/empty FPATH=/empty; export PATH FPATH
184 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
185 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
186 if (eval "$as_required") 2>/dev/null; then :
187 as_have_required=yes
188 else
189 as_have_required=no
190 fi
191 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
192
193 else
194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
195 as_found=false
196 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
197 do
198 IFS=$as_save_IFS
199 test -z "$as_dir" && as_dir=.
200 as_found=:
201 case $as_dir in #(
202 /*)
203 for as_base in sh bash ksh sh5; do
204 # Try only shells that exist, to save several forks.
205 as_shell=$as_dir/$as_base
206 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
208 CONFIG_SHELL=$as_shell as_have_required=yes
209 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
210 break 2
211 fi
212 fi
213 done;;
214 esac
215 as_found=false
216 done
217 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
218 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
219 CONFIG_SHELL=$SHELL as_have_required=yes
220 fi; }
221 IFS=$as_save_IFS
222
223
224 if test "x$CONFIG_SHELL" != x; then :
225 # We cannot yet assume a decent shell, so we have to provide a
226 # neutralization value for shells without unset; and this also
227 # works around shells that cannot unset nonexistent variables.
228 # Preserve -v and -x to the replacement shell.
229 BASH_ENV=/dev/null
230 ENV=/dev/null
231 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
232 export CONFIG_SHELL
233 case $- in # ((((
234 *v*x* | *x*v* ) as_opts=-vx ;;
235 *v* ) as_opts=-v ;;
236 *x* ) as_opts=-x ;;
237 * ) as_opts= ;;
238 esac
239 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
240 fi
241
242 if test x$as_have_required = xno; then :
243 $as_echo "$0: This script requires a shell more modern than all"
244 $as_echo "$0: the shells that I found on your system."
245 if test x${ZSH_VERSION+set} = xset ; then
246 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
247 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
248 else
249 $as_echo "$0: Please tell bug-autoconf (at] gnu.org and
250 $0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
251 $0: about your system, including any error possibly output
252 $0: before this message. Then install a modern shell, or
253 $0: manually run the script under such a shell if you do
254 $0: have one."
255 fi
256 exit 1
257 fi
258 fi
259 fi
260 SHELL=${CONFIG_SHELL-/bin/sh}
261 export SHELL
262 # Unset more variables known to interfere with behavior of common tools.
263 CLICOLOR_FORCE= GREP_OPTIONS=
264 unset CLICOLOR_FORCE GREP_OPTIONS
265
266 ## --------------------- ##
267 ## M4sh Shell Functions. ##
268 ## --------------------- ##
269 # as_fn_unset VAR
270 # ---------------
271 # Portably unset VAR.
272 as_fn_unset ()
273 {
274 { eval $1=; unset $1;}
275 }
276 as_unset=as_fn_unset
277
278 # as_fn_set_status STATUS
279 # -----------------------
280 # Set $? to STATUS, without forking.
281 as_fn_set_status ()
282 {
283 return $1
284 } # as_fn_set_status
285
286 # as_fn_exit STATUS
287 # -----------------
288 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
289 as_fn_exit ()
290 {
291 set +e
292 as_fn_set_status $1
293 exit $1
294 } # as_fn_exit
295
296 # as_fn_mkdir_p
297 # -------------
298 # Create "$as_dir" as a directory, including parents if necessary.
299 as_fn_mkdir_p ()
300 {
301
302 case $as_dir in #(
303 -*) as_dir=./$as_dir;;
304 esac
305 test -d "$as_dir" || eval $as_mkdir_p || {
306 as_dirs=
307 while :; do
308 case $as_dir in #(
309 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
310 *) as_qdir=$as_dir;;
311 esac
312 as_dirs="'$as_qdir' $as_dirs"
313 as_dir=`$as_dirname -- "$as_dir" ||
314 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
315 X"$as_dir" : 'X\(//\)[^/]' \| \
316 X"$as_dir" : 'X\(//\)$' \| \
317 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
318 $as_echo X"$as_dir" |
319 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
320 s//\1/
321 q
322 }
323 /^X\(\/\/\)[^/].*/{
324 s//\1/
325 q
326 }
327 /^X\(\/\/\)$/{
328 s//\1/
329 q
330 }
331 /^X\(\/\).*/{
332 s//\1/
333 q
334 }
335 s/.*/./; q'`
336 test -d "$as_dir" && break
337 done
338 test -z "$as_dirs" || eval "mkdir $as_dirs"
339 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
340
341
342 } # as_fn_mkdir_p
343 # as_fn_append VAR VALUE
344 # ----------------------
345 # Append the text in VALUE to the end of the definition contained in VAR. Take
346 # advantage of any shell optimizations that allow amortized linear growth over
347 # repeated appends, instead of the typical quadratic growth present in naive
348 # implementations.
349 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
350 eval 'as_fn_append ()
351 {
352 eval $1+=\$2
353 }'
354 else
355 as_fn_append ()
356 {
357 eval $1=\$$1\$2
358 }
359 fi # as_fn_append
360
361 # as_fn_arith ARG...
362 # ------------------
363 # Perform arithmetic evaluation on the ARGs, and store the result in the
364 # global $as_val. Take advantage of shells that can avoid forks. The arguments
365 # must be portable across $(()) and expr.
366 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
367 eval 'as_fn_arith ()
368 {
369 as_val=$(( $* ))
370 }'
371 else
372 as_fn_arith ()
373 {
374 as_val=`expr "$@" || test $? -eq 1`
375 }
376 fi # as_fn_arith
377
378
379 # as_fn_error STATUS ERROR [LINENO LOG_FD]
380 # ----------------------------------------
381 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
382 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
383 # script with STATUS, using 1 if that was 0.
384 as_fn_error ()
385 {
386 as_status=$1; test $as_status -eq 0 && as_status=1
387 if test "$4"; then
388 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
389 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
390 fi
391 $as_echo "$as_me: error: $2" >&2
392 as_fn_exit $as_status
393 } # as_fn_error
394
395 if expr a : '\(a\)' >/dev/null 2>&1 &&
396 test "X`expr 00001 : '.*\(...\)'`" = X001; then
397 as_expr=expr
398 else
399 as_expr=false
400 fi
401
402 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
403 as_basename=basename
404 else
405 as_basename=false
406 fi
407
408 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
409 as_dirname=dirname
410 else
411 as_dirname=false
412 fi
413
414 as_me=`$as_basename -- "$0" ||
415 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
416 X"$0" : 'X\(//\)$' \| \
417 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
418 $as_echo X/"$0" |
419 sed '/^.*\/\([^/][^/]*\)\/*$/{
420 s//\1/
421 q
422 }
423 /^X\/\(\/\/\)$/{
424 s//\1/
425 q
426 }
427 /^X\/\(\/\).*/{
428 s//\1/
429 q
430 }
431 s/.*/./; q'`
432
433 # Avoid depending upon Character Ranges.
434 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
435 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
436 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
437 as_cr_digits='0123456789'
438 as_cr_alnum=$as_cr_Letters$as_cr_digits
439
440
441 as_lineno_1=$LINENO as_lineno_1a=$LINENO
442 as_lineno_2=$LINENO as_lineno_2a=$LINENO
443 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
444 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
445 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
446 sed -n '
447 p
448 /[$]LINENO/=
449 ' <$as_myself |
450 sed '
451 s/[$]LINENO.*/&-/
452 t lineno
453 b
454 :lineno
455 N
456 :loop
457 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
458 t loop
459 s/-\n.*//
460 ' >$as_me.lineno &&
461 chmod +x "$as_me.lineno" ||
462 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
463
464 # Don't try to exec as it changes $[0], causing all sort of problems
465 # (the dirname of $[0] is not the place where we might find the
466 # original and so on. Autoconf is especially sensitive to this).
467 . "./$as_me.lineno"
468 # Exit status is that of the last command.
469 exit
470 }
471
472 ECHO_C= ECHO_N= ECHO_T=
473 case `echo -n x` in #(((((
474 -n*)
475 case `echo 'xy\c'` in
476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
477 xy) ECHO_C='\c';;
478 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
479 ECHO_T=' ';;
480 esac;;
481 *)
482 ECHO_N='-n';;
483 esac
484
485 rm -f conf$$ conf$$.exe conf$$.file
486 if test -d conf$$.dir; then
487 rm -f conf$$.dir/conf$$.file
488 else
489 rm -f conf$$.dir
490 mkdir conf$$.dir 2>/dev/null
491 fi
492 if (echo >conf$$.file) 2>/dev/null; then
493 if ln -s conf$$.file conf$$ 2>/dev/null; then
494 as_ln_s='ln -s'
495 # ... but there are two gotchas:
496 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
497 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
498 # In both cases, we have to default to `cp -p'.
499 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
500 as_ln_s='cp -p'
501 elif ln conf$$.file conf$$ 2>/dev/null; then
502 as_ln_s=ln
503 else
504 as_ln_s='cp -p'
505 fi
506 else
507 as_ln_s='cp -p'
508 fi
509 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
510 rmdir conf$$.dir 2>/dev/null
511
512 if mkdir -p . 2>/dev/null; then
513 as_mkdir_p='mkdir -p "$as_dir"'
514 else
515 test -d ./-p && rmdir ./-p
516 as_mkdir_p=false
517 fi
518
519 if test -x / >/dev/null 2>&1; then
520 as_test_x='test -x'
521 else
522 if ls -dL / >/dev/null 2>&1; then
523 as_ls_L_option=L
524 else
525 as_ls_L_option=
526 fi
527 as_test_x='
528 eval sh -c '\''
529 if test -d "$1"; then
530 test -d "$1/.";
531 else
532 case $1 in #(
533 -*)set "./$1";;
534 esac;
535 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
536 ???[sx]*):;;*)false;;esac;fi
537 '\'' sh
538 '
539 fi
540 as_executable_p=$as_test_x
541
542 # Sed expression to map a string onto a valid CPP name.
543 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
544
545 # Sed expression to map a string onto a valid variable name.
546 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
547
548 SHELL=${CONFIG_SHELL-/bin/sh}
549
550
551 test -n "$DJDIR" || exec 7<&0 </dev/null
552 exec 6>&1
553
554 # Name of the host.
555 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
556 # so uname gets run too.
557 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
558
559 #
560 # Initializations.
561 #
562 ac_default_prefix=/usr/local
563 ac_clean_files=
564 ac_config_libobj_dir=.
565 LIBOBJS=
566 cross_compiling=no
567 subdirs=
568 MFLAGS=
569 MAKEFLAGS=
570
571 # Identity of this package.
572 PACKAGE_NAME='xf86-video-mach64'
573 PACKAGE_TARNAME='xf86-video-mach64'
574 PACKAGE_VERSION='6.9.4'
575 PACKAGE_STRING='xf86-video-mach64 6.9.4'
576 PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
577 PACKAGE_URL=''
578
579 ac_unique_file="Makefile.am"
580 # Factoring default headers for most tests.
581 ac_includes_default="\
582 #include <stdio.h>
583 #ifdef HAVE_SYS_TYPES_H
584 # include <sys/types.h>
585 #endif
586 #ifdef HAVE_SYS_STAT_H
587 # include <sys/stat.h>
588 #endif
589 #ifdef STDC_HEADERS
590 # include <stdlib.h>
591 # include <stddef.h>
592 #else
593 # ifdef HAVE_STDLIB_H
594 # include <stdlib.h>
595 # endif
596 #endif
597 #ifdef HAVE_STRING_H
598 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
599 # include <memory.h>
600 # endif
601 # include <string.h>
602 #endif
603 #ifdef HAVE_STRINGS_H
604 # include <strings.h>
605 #endif
606 #ifdef HAVE_INTTYPES_H
607 # include <inttypes.h>
608 #endif
609 #ifdef HAVE_STDINT_H
610 # include <stdint.h>
611 #endif
612 #ifdef HAVE_UNISTD_H
613 # include <unistd.h>
614 #endif"
615
616 ac_subst_vars='am__EXEEXT_FALSE
617 am__EXEEXT_TRUE
618 LTLIBOBJS
619 LIBOBJS
620 DRIVER_NAME
621 moduledir
622 XSERVER_LIBPCIACCESS_FALSE
623 XSERVER_LIBPCIACCESS_TRUE
624 PCIACCESS_LIBS
625 PCIACCESS_CFLAGS
626 USE_EXA_FALSE
627 USE_EXA_TRUE
628 XAA_FALSE
629 XAA_TRUE
630 ATIMISC_TV_OUT_FALSE
631 ATIMISC_TV_OUT_TRUE
632 ATIMISC_DGA_FALSE
633 ATIMISC_DGA_TRUE
634 ATIMISC_CPIO_FALSE
635 ATIMISC_CPIO_TRUE
636 DRI_LIBS
637 DRI_CFLAGS
638 DRI_FALSE
639 DRI_TRUE
640 HAVE_XEXTPROTO_71_FALSE
641 HAVE_XEXTPROTO_71_TRUE
642 XEXT_LIBS
643 XEXT_CFLAGS
644 XORG_LIBS
645 XORG_CFLAGS
646 OTOOL64
647 OTOOL
648 LIPO
649 NMEDIT
650 DSYMUTIL
651 MANIFEST_TOOL
652 RANLIB
653 ac_ct_AR
654 AR
655 DLLTOOL
656 OBJDUMP
657 LN_S
658 NM
659 ac_ct_DUMPBIN
660 DUMPBIN
661 LD
662 FGREP
663 LIBTOOL
664 AM_BACKSLASH
665 AM_DEFAULT_VERBOSITY
666 MAN_SUBSTS
667 XORG_MAN_PAGE
668 ADMIN_MAN_DIR
669 DRIVER_MAN_DIR
670 MISC_MAN_DIR
671 FILE_MAN_DIR
672 LIB_MAN_DIR
673 APP_MAN_DIR
674 ADMIN_MAN_SUFFIX
675 DRIVER_MAN_SUFFIX
676 MISC_MAN_SUFFIX
677 FILE_MAN_SUFFIX
678 LIB_MAN_SUFFIX
679 APP_MAN_SUFFIX
680 SED
681 host_os
682 host_vendor
683 host_cpu
684 host
685 build_os
686 build_vendor
687 build_cpu
688 build
689 INSTALL_CMD
690 PKG_CONFIG
691 CHANGELOG_CMD
692 STRICT_CFLAGS
693 CWARNFLAGS
694 BASE_CFLAGS
695 EGREP
696 GREP
697 CPP
698 am__fastdepCC_FALSE
699 am__fastdepCC_TRUE
700 CCDEPMODE
701 am__nodep
702 AMDEPBACKSLASH
703 AMDEP_FALSE
704 AMDEP_TRUE
705 am__quote
706 am__include
707 DEPDIR
708 OBJEXT
709 EXEEXT
710 ac_ct_CC
711 CPPFLAGS
712 LDFLAGS
713 CFLAGS
714 CC
715 MAINT
716 MAINTAINER_MODE_FALSE
717 MAINTAINER_MODE_TRUE
718 am__untar
719 am__tar
720 AMTAR
721 am__leading_dot
722 SET_MAKE
723 AWK
724 mkdir_p
725 MKDIR_P
726 INSTALL_STRIP_PROGRAM
727 STRIP
728 install_sh
729 MAKEINFO
730 AUTOHEADER
731 AUTOMAKE
732 AUTOCONF
733 ACLOCAL
734 VERSION
735 PACKAGE
736 CYGPATH_W
737 am__isrc
738 INSTALL_DATA
739 INSTALL_SCRIPT
740 INSTALL_PROGRAM
741 target_alias
742 host_alias
743 build_alias
744 LIBS
745 ECHO_T
746 ECHO_N
747 ECHO_C
748 DEFS
749 mandir
750 localedir
751 libdir
752 psdir
753 pdfdir
754 dvidir
755 htmldir
756 infodir
757 docdir
758 oldincludedir
759 includedir
760 localstatedir
761 sharedstatedir
762 sysconfdir
763 datadir
764 datarootdir
765 libexecdir
766 sbindir
767 bindir
768 program_transform_name
769 prefix
770 exec_prefix
771 PACKAGE_URL
772 PACKAGE_BUGREPORT
773 PACKAGE_STRING
774 PACKAGE_VERSION
775 PACKAGE_TARNAME
776 PACKAGE_NAME
777 PATH_SEPARATOR
778 SHELL'
779 ac_subst_files=''
780 ac_user_opts='
781 enable_option_checking
782 enable_maintainer_mode
783 enable_dependency_tracking
784 enable_selective_werror
785 enable_strict_compilation
786 enable_silent_rules
787 enable_static
788 enable_shared
789 with_pic
790 enable_fast_install
791 with_gnu_ld
792 with_sysroot
793 enable_libtool_lock
794 with_xorg_module_dir
795 enable_dri
796 enable_exa
797 enable_xaa
798 '
799 ac_precious_vars='build_alias
800 host_alias
801 target_alias
802 CC
803 CFLAGS
804 LDFLAGS
805 LIBS
806 CPPFLAGS
807 CPP
808 PKG_CONFIG
809 XORG_CFLAGS
810 XORG_LIBS
811 XEXT_CFLAGS
812 XEXT_LIBS
813 DRI_CFLAGS
814 DRI_LIBS
815 PCIACCESS_CFLAGS
816 PCIACCESS_LIBS'
817
818
819 # Initialize some variables set by options.
820 ac_init_help=
821 ac_init_version=false
822 ac_unrecognized_opts=
823 ac_unrecognized_sep=
824 # The variables have the same names as the options, with
825 # dashes changed to underlines.
826 cache_file=/dev/null
827 exec_prefix=NONE
828 no_create=
829 no_recursion=
830 prefix=NONE
831 program_prefix=NONE
832 program_suffix=NONE
833 program_transform_name=s,x,x,
834 silent=
835 site=
836 srcdir=
837 verbose=
838 x_includes=NONE
839 x_libraries=NONE
840
841 # Installation directory options.
842 # These are left unexpanded so users can "make install exec_prefix=/foo"
843 # and all the variables that are supposed to be based on exec_prefix
844 # by default will actually change.
845 # Use braces instead of parens because sh, perl, etc. also accept them.
846 # (The list follows the same order as the GNU Coding Standards.)
847 bindir='${exec_prefix}/bin'
848 sbindir='${exec_prefix}/sbin'
849 libexecdir='${exec_prefix}/libexec'
850 datarootdir='${prefix}/share'
851 datadir='${datarootdir}'
852 sysconfdir='${prefix}/etc'
853 sharedstatedir='${prefix}/com'
854 localstatedir='${prefix}/var'
855 includedir='${prefix}/include'
856 oldincludedir='/usr/include'
857 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
858 infodir='${datarootdir}/info'
859 htmldir='${docdir}'
860 dvidir='${docdir}'
861 pdfdir='${docdir}'
862 psdir='${docdir}'
863 libdir='${exec_prefix}/lib'
864 localedir='${datarootdir}/locale'
865 mandir='${datarootdir}/man'
866
867 ac_prev=
868 ac_dashdash=
869 for ac_option
870 do
871 # If the previous option needs an argument, assign it.
872 if test -n "$ac_prev"; then
873 eval $ac_prev=\$ac_option
874 ac_prev=
875 continue
876 fi
877
878 case $ac_option in
879 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
880 *=) ac_optarg= ;;
881 *) ac_optarg=yes ;;
882 esac
883
884 # Accept the important Cygnus configure options, so we can diagnose typos.
885
886 case $ac_dashdash$ac_option in
887 --)
888 ac_dashdash=yes ;;
889
890 -bindir | --bindir | --bindi | --bind | --bin | --bi)
891 ac_prev=bindir ;;
892 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
893 bindir=$ac_optarg ;;
894
895 -build | --build | --buil | --bui | --bu)
896 ac_prev=build_alias ;;
897 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
898 build_alias=$ac_optarg ;;
899
900 -cache-file | --cache-file | --cache-fil | --cache-fi \
901 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
902 ac_prev=cache_file ;;
903 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
904 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
905 cache_file=$ac_optarg ;;
906
907 --config-cache | -C)
908 cache_file=config.cache ;;
909
910 -datadir | --datadir | --datadi | --datad)
911 ac_prev=datadir ;;
912 -datadir=* | --datadir=* | --datadi=* | --datad=*)
913 datadir=$ac_optarg ;;
914
915 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
916 | --dataroo | --dataro | --datar)
917 ac_prev=datarootdir ;;
918 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
919 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
920 datarootdir=$ac_optarg ;;
921
922 -disable-* | --disable-*)
923 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
924 # Reject names that are not valid shell variable names.
925 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
926 as_fn_error $? "invalid feature name: $ac_useropt"
927 ac_useropt_orig=$ac_useropt
928 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
929 case $ac_user_opts in
930 *"
931 "enable_$ac_useropt"
932 "*) ;;
933 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
934 ac_unrecognized_sep=', ';;
935 esac
936 eval enable_$ac_useropt=no ;;
937
938 -docdir | --docdir | --docdi | --doc | --do)
939 ac_prev=docdir ;;
940 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
941 docdir=$ac_optarg ;;
942
943 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
944 ac_prev=dvidir ;;
945 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
946 dvidir=$ac_optarg ;;
947
948 -enable-* | --enable-*)
949 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
950 # Reject names that are not valid shell variable names.
951 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
952 as_fn_error $? "invalid feature name: $ac_useropt"
953 ac_useropt_orig=$ac_useropt
954 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
955 case $ac_user_opts in
956 *"
957 "enable_$ac_useropt"
958 "*) ;;
959 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
960 ac_unrecognized_sep=', ';;
961 esac
962 eval enable_$ac_useropt=\$ac_optarg ;;
963
964 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
965 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
966 | --exec | --exe | --ex)
967 ac_prev=exec_prefix ;;
968 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
969 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
970 | --exec=* | --exe=* | --ex=*)
971 exec_prefix=$ac_optarg ;;
972
973 -gas | --gas | --ga | --g)
974 # Obsolete; use --with-gas.
975 with_gas=yes ;;
976
977 -help | --help | --hel | --he | -h)
978 ac_init_help=long ;;
979 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
980 ac_init_help=recursive ;;
981 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
982 ac_init_help=short ;;
983
984 -host | --host | --hos | --ho)
985 ac_prev=host_alias ;;
986 -host=* | --host=* | --hos=* | --ho=*)
987 host_alias=$ac_optarg ;;
988
989 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
990 ac_prev=htmldir ;;
991 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
992 | --ht=*)
993 htmldir=$ac_optarg ;;
994
995 -includedir | --includedir | --includedi | --included | --include \
996 | --includ | --inclu | --incl | --inc)
997 ac_prev=includedir ;;
998 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
999 | --includ=* | --inclu=* | --incl=* | --inc=*)
1000 includedir=$ac_optarg ;;
1001
1002 -infodir | --infodir | --infodi | --infod | --info | --inf)
1003 ac_prev=infodir ;;
1004 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1005 infodir=$ac_optarg ;;
1006
1007 -libdir | --libdir | --libdi | --libd)
1008 ac_prev=libdir ;;
1009 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1010 libdir=$ac_optarg ;;
1011
1012 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1013 | --libexe | --libex | --libe)
1014 ac_prev=libexecdir ;;
1015 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1016 | --libexe=* | --libex=* | --libe=*)
1017 libexecdir=$ac_optarg ;;
1018
1019 -localedir | --localedir | --localedi | --localed | --locale)
1020 ac_prev=localedir ;;
1021 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1022 localedir=$ac_optarg ;;
1023
1024 -localstatedir | --localstatedir | --localstatedi | --localstated \
1025 | --localstate | --localstat | --localsta | --localst | --locals)
1026 ac_prev=localstatedir ;;
1027 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1028 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1029 localstatedir=$ac_optarg ;;
1030
1031 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1032 ac_prev=mandir ;;
1033 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1034 mandir=$ac_optarg ;;
1035
1036 -nfp | --nfp | --nf)
1037 # Obsolete; use --without-fp.
1038 with_fp=no ;;
1039
1040 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1041 | --no-cr | --no-c | -n)
1042 no_create=yes ;;
1043
1044 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1045 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1046 no_recursion=yes ;;
1047
1048 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1049 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1050 | --oldin | --oldi | --old | --ol | --o)
1051 ac_prev=oldincludedir ;;
1052 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1053 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1054 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1055 oldincludedir=$ac_optarg ;;
1056
1057 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1058 ac_prev=prefix ;;
1059 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1060 prefix=$ac_optarg ;;
1061
1062 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1063 | --program-pre | --program-pr | --program-p)
1064 ac_prev=program_prefix ;;
1065 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1066 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1067 program_prefix=$ac_optarg ;;
1068
1069 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1070 | --program-suf | --program-su | --program-s)
1071 ac_prev=program_suffix ;;
1072 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1073 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1074 program_suffix=$ac_optarg ;;
1075
1076 -program-transform-name | --program-transform-name \
1077 | --program-transform-nam | --program-transform-na \
1078 | --program-transform-n | --program-transform- \
1079 | --program-transform | --program-transfor \
1080 | --program-transfo | --program-transf \
1081 | --program-trans | --program-tran \
1082 | --progr-tra | --program-tr | --program-t)
1083 ac_prev=program_transform_name ;;
1084 -program-transform-name=* | --program-transform-name=* \
1085 | --program-transform-nam=* | --program-transform-na=* \
1086 | --program-transform-n=* | --program-transform-=* \
1087 | --program-transform=* | --program-transfor=* \
1088 | --program-transfo=* | --program-transf=* \
1089 | --program-trans=* | --program-tran=* \
1090 | --progr-tra=* | --program-tr=* | --program-t=*)
1091 program_transform_name=$ac_optarg ;;
1092
1093 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1094 ac_prev=pdfdir ;;
1095 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1096 pdfdir=$ac_optarg ;;
1097
1098 -psdir | --psdir | --psdi | --psd | --ps)
1099 ac_prev=psdir ;;
1100 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1101 psdir=$ac_optarg ;;
1102
1103 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1104 | -silent | --silent | --silen | --sile | --sil)
1105 silent=yes ;;
1106
1107 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1108 ac_prev=sbindir ;;
1109 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1110 | --sbi=* | --sb=*)
1111 sbindir=$ac_optarg ;;
1112
1113 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1114 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1115 | --sharedst | --shareds | --shared | --share | --shar \
1116 | --sha | --sh)
1117 ac_prev=sharedstatedir ;;
1118 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1119 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1120 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1121 | --sha=* | --sh=*)
1122 sharedstatedir=$ac_optarg ;;
1123
1124 -site | --site | --sit)
1125 ac_prev=site ;;
1126 -site=* | --site=* | --sit=*)
1127 site=$ac_optarg ;;
1128
1129 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1130 ac_prev=srcdir ;;
1131 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1132 srcdir=$ac_optarg ;;
1133
1134 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1135 | --syscon | --sysco | --sysc | --sys | --sy)
1136 ac_prev=sysconfdir ;;
1137 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1138 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1139 sysconfdir=$ac_optarg ;;
1140
1141 -target | --target | --targe | --targ | --tar | --ta | --t)
1142 ac_prev=target_alias ;;
1143 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1144 target_alias=$ac_optarg ;;
1145
1146 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1147 verbose=yes ;;
1148
1149 -version | --version | --versio | --versi | --vers | -V)
1150 ac_init_version=: ;;
1151
1152 -with-* | --with-*)
1153 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1154 # Reject names that are not valid shell variable names.
1155 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1156 as_fn_error $? "invalid package name: $ac_useropt"
1157 ac_useropt_orig=$ac_useropt
1158 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1159 case $ac_user_opts in
1160 *"
1161 "with_$ac_useropt"
1162 "*) ;;
1163 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1164 ac_unrecognized_sep=', ';;
1165 esac
1166 eval with_$ac_useropt=\$ac_optarg ;;
1167
1168 -without-* | --without-*)
1169 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1170 # Reject names that are not valid shell variable names.
1171 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1172 as_fn_error $? "invalid package name: $ac_useropt"
1173 ac_useropt_orig=$ac_useropt
1174 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1175 case $ac_user_opts in
1176 *"
1177 "with_$ac_useropt"
1178 "*) ;;
1179 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1180 ac_unrecognized_sep=', ';;
1181 esac
1182 eval with_$ac_useropt=no ;;
1183
1184 --x)
1185 # Obsolete; use --with-x.
1186 with_x=yes ;;
1187
1188 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1189 | --x-incl | --x-inc | --x-in | --x-i)
1190 ac_prev=x_includes ;;
1191 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1192 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1193 x_includes=$ac_optarg ;;
1194
1195 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1196 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1197 ac_prev=x_libraries ;;
1198 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1199 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1200 x_libraries=$ac_optarg ;;
1201
1202 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1203 Try \`$0 --help' for more information"
1204 ;;
1205
1206 *=*)
1207 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1208 # Reject names that are not valid shell variable names.
1209 case $ac_envvar in #(
1210 '' | [0-9]* | *[!_$as_cr_alnum]* )
1211 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1212 esac
1213 eval $ac_envvar=\$ac_optarg
1214 export $ac_envvar ;;
1215
1216 *)
1217 # FIXME: should be removed in autoconf 3.0.
1218 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1219 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1220 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1221 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1222 ;;
1223
1224 esac
1225 done
1226
1227 if test -n "$ac_prev"; then
1228 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1229 as_fn_error $? "missing argument to $ac_option"
1230 fi
1231
1232 if test -n "$ac_unrecognized_opts"; then
1233 case $enable_option_checking in
1234 no) ;;
1235 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1236 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1237 esac
1238 fi
1239
1240 # Check all directory arguments for consistency.
1241 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1242 datadir sysconfdir sharedstatedir localstatedir includedir \
1243 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1244 libdir localedir mandir
1245 do
1246 eval ac_val=\$$ac_var
1247 # Remove trailing slashes.
1248 case $ac_val in
1249 */ )
1250 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1251 eval $ac_var=\$ac_val;;
1252 esac
1253 # Be sure to have absolute directory names.
1254 case $ac_val in
1255 [\\/$]* | ?:[\\/]* ) continue;;
1256 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1257 esac
1258 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1259 done
1260
1261 # There might be people who depend on the old broken behavior: `$host'
1262 # used to hold the argument of --host etc.
1263 # FIXME: To remove some day.
1264 build=$build_alias
1265 host=$host_alias
1266 target=$target_alias
1267
1268 # FIXME: To remove some day.
1269 if test "x$host_alias" != x; then
1270 if test "x$build_alias" = x; then
1271 cross_compiling=maybe
1272 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1273 If a cross compiler is detected then cross compile mode will be used" >&2
1274 elif test "x$build_alias" != "x$host_alias"; then
1275 cross_compiling=yes
1276 fi
1277 fi
1278
1279 ac_tool_prefix=
1280 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1281
1282 test "$silent" = yes && exec 6>/dev/null
1283
1284
1285 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1286 ac_ls_di=`ls -di .` &&
1287 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1288 as_fn_error $? "working directory cannot be determined"
1289 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1290 as_fn_error $? "pwd does not report name of working directory"
1291
1292
1293 # Find the source files, if location was not specified.
1294 if test -z "$srcdir"; then
1295 ac_srcdir_defaulted=yes
1296 # Try the directory containing this script, then the parent directory.
1297 ac_confdir=`$as_dirname -- "$as_myself" ||
1298 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1299 X"$as_myself" : 'X\(//\)[^/]' \| \
1300 X"$as_myself" : 'X\(//\)$' \| \
1301 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1302 $as_echo X"$as_myself" |
1303 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1304 s//\1/
1305 q
1306 }
1307 /^X\(\/\/\)[^/].*/{
1308 s//\1/
1309 q
1310 }
1311 /^X\(\/\/\)$/{
1312 s//\1/
1313 q
1314 }
1315 /^X\(\/\).*/{
1316 s//\1/
1317 q
1318 }
1319 s/.*/./; q'`
1320 srcdir=$ac_confdir
1321 if test ! -r "$srcdir/$ac_unique_file"; then
1322 srcdir=..
1323 fi
1324 else
1325 ac_srcdir_defaulted=no
1326 fi
1327 if test ! -r "$srcdir/$ac_unique_file"; then
1328 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1329 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1330 fi
1331 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1332 ac_abs_confdir=`(
1333 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1334 pwd)`
1335 # When building in place, set srcdir=.
1336 if test "$ac_abs_confdir" = "$ac_pwd"; then
1337 srcdir=.
1338 fi
1339 # Remove unnecessary trailing slashes from srcdir.
1340 # Double slashes in file names in object file debugging info
1341 # mess up M-x gdb in Emacs.
1342 case $srcdir in
1343 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1344 esac
1345 for ac_var in $ac_precious_vars; do
1346 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1347 eval ac_env_${ac_var}_value=\$${ac_var}
1348 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1349 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1350 done
1351
1352 #
1353 # Report the --help message.
1354 #
1355 if test "$ac_init_help" = "long"; then
1356 # Omit some internal or obsolete options to make the list less imposing.
1357 # This message is too long to be a string in the A/UX 3.1 sh.
1358 cat <<_ACEOF
1359 \`configure' configures xf86-video-mach64 6.9.4 to adapt to many kinds of systems.
1360
1361 Usage: $0 [OPTION]... [VAR=VALUE]...
1362
1363 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1364 VAR=VALUE. See below for descriptions of some of the useful variables.
1365
1366 Defaults for the options are specified in brackets.
1367
1368 Configuration:
1369 -h, --help display this help and exit
1370 --help=short display options specific to this package
1371 --help=recursive display the short help of all the included packages
1372 -V, --version display version information and exit
1373 -q, --quiet, --silent do not print \`checking ...' messages
1374 --cache-file=FILE cache test results in FILE [disabled]
1375 -C, --config-cache alias for \`--cache-file=config.cache'
1376 -n, --no-create do not create output files
1377 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1378
1379 Installation directories:
1380 --prefix=PREFIX install architecture-independent files in PREFIX
1381 [$ac_default_prefix]
1382 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1383 [PREFIX]
1384
1385 By default, \`make install' will install all the files in
1386 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1387 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1388 for instance \`--prefix=\$HOME'.
1389
1390 For better control, use the options below.
1391
1392 Fine tuning of the installation directories:
1393 --bindir=DIR user executables [EPREFIX/bin]
1394 --sbindir=DIR system admin executables [EPREFIX/sbin]
1395 --libexecdir=DIR program executables [EPREFIX/libexec]
1396 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1397 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1398 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1399 --libdir=DIR object code libraries [EPREFIX/lib]
1400 --includedir=DIR C header files [PREFIX/include]
1401 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1402 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1403 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1404 --infodir=DIR info documentation [DATAROOTDIR/info]
1405 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1406 --mandir=DIR man documentation [DATAROOTDIR/man]
1407 --docdir=DIR documentation root
1408 [DATAROOTDIR/doc/xf86-video-mach64]
1409 --htmldir=DIR html documentation [DOCDIR]
1410 --dvidir=DIR dvi documentation [DOCDIR]
1411 --pdfdir=DIR pdf documentation [DOCDIR]
1412 --psdir=DIR ps documentation [DOCDIR]
1413 _ACEOF
1414
1415 cat <<\_ACEOF
1416
1417 Program names:
1418 --program-prefix=PREFIX prepend PREFIX to installed program names
1419 --program-suffix=SUFFIX append SUFFIX to installed program names
1420 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1421
1422 System types:
1423 --build=BUILD configure for building on BUILD [guessed]
1424 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1425 _ACEOF
1426 fi
1427
1428 if test -n "$ac_init_help"; then
1429 case $ac_init_help in
1430 short | recursive ) echo "Configuration of xf86-video-mach64 6.9.4:";;
1431 esac
1432 cat <<\_ACEOF
1433
1434 Optional Features:
1435 --disable-option-checking ignore unrecognized --enable/--with options
1436 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1437 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1438 --enable-maintainer-mode enable make rules and dependencies not useful
1439 (and sometimes confusing) to the casual installer
1440 --disable-dependency-tracking speeds up one-time build
1441 --enable-dependency-tracking do not reject slow dependency extractors
1442 --disable-selective-werror
1443 Turn off selective compiler errors. (default:
1444 enabled)
1445 --enable-strict-compilation
1446 Enable all warnings from compiler and make them
1447 errors (default: disabled)
1448 --enable-silent-rules less verbose build output (undo: `make V=1')
1449 --disable-silent-rules verbose build output (undo: `make V=0')
1450 --enable-static[=PKGS] build static libraries [default=no]
1451 --enable-shared[=PKGS] build shared libraries [default=yes]
1452 --enable-fast-install[=PKGS]
1453 optimize for fast installation [default=yes]
1454 --disable-libtool-lock avoid locking (might break parallel builds)
1455 --disable-dri Disable DRI support [[default=auto]]
1456 --disable-exa Disable EXA support [[default=enabled]]
1457 --enable-xaa Enable legacy X Acceleration Architecture (XAA)
1458 [default=auto]
1459
1460 Optional Packages:
1461 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1462 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1463 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1464 both]
1465 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1466 --with-sysroot=DIR Search for dependent libraries within DIR
1467 (or the compiler's sysroot if not specified).
1468 --with-xorg-module-dir=DIR
1469 Default xorg module directory
1470 [[default=$libdir/xorg/modules]]
1471
1472 Some influential environment variables:
1473 CC C compiler command
1474 CFLAGS C compiler flags
1475 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1476 nonstandard directory <lib dir>
1477 LIBS libraries to pass to the linker, e.g. -l<library>
1478 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1479 you have headers in a nonstandard directory <include dir>
1480 CPP C preprocessor
1481 PKG_CONFIG path to pkg-config utility
1482 XORG_CFLAGS C compiler flags for XORG, overriding pkg-config
1483 XORG_LIBS linker flags for XORG, overriding pkg-config
1484 XEXT_CFLAGS C compiler flags for XEXT, overriding pkg-config
1485 XEXT_LIBS linker flags for XEXT, overriding pkg-config
1486 DRI_CFLAGS C compiler flags for DRI, overriding pkg-config
1487 DRI_LIBS linker flags for DRI, overriding pkg-config
1488 PCIACCESS_CFLAGS
1489 C compiler flags for PCIACCESS, overriding pkg-config
1490 PCIACCESS_LIBS
1491 linker flags for PCIACCESS, overriding pkg-config
1492
1493 Use these variables to override the choices made by `configure' or to help
1494 it to find libraries and programs with nonstandard names/locations.
1495
1496 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1497 _ACEOF
1498 ac_status=$?
1499 fi
1500
1501 if test "$ac_init_help" = "recursive"; then
1502 # If there are subdirs, report their specific --help.
1503 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1504 test -d "$ac_dir" ||
1505 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1506 continue
1507 ac_builddir=.
1508
1509 case "$ac_dir" in
1510 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1511 *)
1512 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1513 # A ".." for each directory in $ac_dir_suffix.
1514 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1515 case $ac_top_builddir_sub in
1516 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1517 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1518 esac ;;
1519 esac
1520 ac_abs_top_builddir=$ac_pwd
1521 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1522 # for backward compatibility:
1523 ac_top_builddir=$ac_top_build_prefix
1524
1525 case $srcdir in
1526 .) # We are building in place.
1527 ac_srcdir=.
1528 ac_top_srcdir=$ac_top_builddir_sub
1529 ac_abs_top_srcdir=$ac_pwd ;;
1530 [\\/]* | ?:[\\/]* ) # Absolute name.
1531 ac_srcdir=$srcdir$ac_dir_suffix;
1532 ac_top_srcdir=$srcdir
1533 ac_abs_top_srcdir=$srcdir ;;
1534 *) # Relative name.
1535 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1536 ac_top_srcdir=$ac_top_build_prefix$srcdir
1537 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1538 esac
1539 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1540
1541 cd "$ac_dir" || { ac_status=$?; continue; }
1542 # Check for guested configure.
1543 if test -f "$ac_srcdir/configure.gnu"; then
1544 echo &&
1545 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1546 elif test -f "$ac_srcdir/configure"; then
1547 echo &&
1548 $SHELL "$ac_srcdir/configure" --help=recursive
1549 else
1550 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1551 fi || ac_status=$?
1552 cd "$ac_pwd" || { ac_status=$?; break; }
1553 done
1554 fi
1555
1556 test -n "$ac_init_help" && exit $ac_status
1557 if $ac_init_version; then
1558 cat <<\_ACEOF
1559 xf86-video-mach64 configure 6.9.4
1560 generated by GNU Autoconf 2.68
1561
1562 Copyright (C) 2010 Free Software Foundation, Inc.
1563 This configure script is free software; the Free Software Foundation
1564 gives unlimited permission to copy, distribute and modify it.
1565 _ACEOF
1566 exit
1567 fi
1568
1569 ## ------------------------ ##
1570 ## Autoconf initialization. ##
1571 ## ------------------------ ##
1572
1573 # ac_fn_c_try_compile LINENO
1574 # --------------------------
1575 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1576 ac_fn_c_try_compile ()
1577 {
1578 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1579 rm -f conftest.$ac_objext
1580 if { { ac_try="$ac_compile"
1581 case "(($ac_try" in
1582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1583 *) ac_try_echo=$ac_try;;
1584 esac
1585 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1586 $as_echo "$ac_try_echo"; } >&5
1587 (eval "$ac_compile") 2>conftest.err
1588 ac_status=$?
1589 if test -s conftest.err; then
1590 grep -v '^ *+' conftest.err >conftest.er1
1591 cat conftest.er1 >&5
1592 mv -f conftest.er1 conftest.err
1593 fi
1594 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1595 test $ac_status = 0; } && {
1596 test -z "$ac_c_werror_flag" ||
1597 test ! -s conftest.err
1598 } && test -s conftest.$ac_objext; then :
1599 ac_retval=0
1600 else
1601 $as_echo "$as_me: failed program was:" >&5
1602 sed 's/^/| /' conftest.$ac_ext >&5
1603
1604 ac_retval=1
1605 fi
1606 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1607 as_fn_set_status $ac_retval
1608
1609 } # ac_fn_c_try_compile
1610
1611 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1612 # ---------------------------------------------
1613 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1614 # accordingly.
1615 ac_fn_c_check_decl ()
1616 {
1617 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1618 as_decl_name=`echo $2|sed 's/ *(.*//'`
1619 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1621 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1622 if eval \${$3+:} false; then :
1623 $as_echo_n "(cached) " >&6
1624 else
1625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1626 /* end confdefs.h. */
1627 $4
1628 int
1629 main ()
1630 {
1631 #ifndef $as_decl_name
1632 #ifdef __cplusplus
1633 (void) $as_decl_use;
1634 #else
1635 (void) $as_decl_name;
1636 #endif
1637 #endif
1638
1639 ;
1640 return 0;
1641 }
1642 _ACEOF
1643 if ac_fn_c_try_compile "$LINENO"; then :
1644 eval "$3=yes"
1645 else
1646 eval "$3=no"
1647 fi
1648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1649 fi
1650 eval ac_res=\$$3
1651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1652 $as_echo "$ac_res" >&6; }
1653 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1654
1655 } # ac_fn_c_check_decl
1656
1657 # ac_fn_c_try_cpp LINENO
1658 # ----------------------
1659 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1660 ac_fn_c_try_cpp ()
1661 {
1662 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1663 if { { ac_try="$ac_cpp conftest.$ac_ext"
1664 case "(($ac_try" in
1665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1666 *) ac_try_echo=$ac_try;;
1667 esac
1668 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1669 $as_echo "$ac_try_echo"; } >&5
1670 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1671 ac_status=$?
1672 if test -s conftest.err; then
1673 grep -v '^ *+' conftest.err >conftest.er1
1674 cat conftest.er1 >&5
1675 mv -f conftest.er1 conftest.err
1676 fi
1677 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1678 test $ac_status = 0; } > conftest.i && {
1679 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1680 test ! -s conftest.err
1681 }; then :
1682 ac_retval=0
1683 else
1684 $as_echo "$as_me: failed program was:" >&5
1685 sed 's/^/| /' conftest.$ac_ext >&5
1686
1687 ac_retval=1
1688 fi
1689 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1690 as_fn_set_status $ac_retval
1691
1692 } # ac_fn_c_try_cpp
1693
1694 # ac_fn_c_try_run LINENO
1695 # ----------------------
1696 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1697 # that executables *can* be run.
1698 ac_fn_c_try_run ()
1699 {
1700 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1701 if { { ac_try="$ac_link"
1702 case "(($ac_try" in
1703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1704 *) ac_try_echo=$ac_try;;
1705 esac
1706 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1707 $as_echo "$ac_try_echo"; } >&5
1708 (eval "$ac_link") 2>&5
1709 ac_status=$?
1710 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1711 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1712 { { case "(($ac_try" in
1713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1714 *) ac_try_echo=$ac_try;;
1715 esac
1716 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1717 $as_echo "$ac_try_echo"; } >&5
1718 (eval "$ac_try") 2>&5
1719 ac_status=$?
1720 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1721 test $ac_status = 0; }; }; then :
1722 ac_retval=0
1723 else
1724 $as_echo "$as_me: program exited with status $ac_status" >&5
1725 $as_echo "$as_me: failed program was:" >&5
1726 sed 's/^/| /' conftest.$ac_ext >&5
1727
1728 ac_retval=$ac_status
1729 fi
1730 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1731 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1732 as_fn_set_status $ac_retval
1733
1734 } # ac_fn_c_try_run
1735
1736 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1737 # -------------------------------------------------------
1738 # Tests whether HEADER exists and can be compiled using the include files in
1739 # INCLUDES, setting the cache variable VAR accordingly.
1740 ac_fn_c_check_header_compile ()
1741 {
1742 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1744 $as_echo_n "checking for $2... " >&6; }
1745 if eval \${$3+:} false; then :
1746 $as_echo_n "(cached) " >&6
1747 else
1748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1749 /* end confdefs.h. */
1750 $4
1751 #include <$2>
1752 _ACEOF
1753 if ac_fn_c_try_compile "$LINENO"; then :
1754 eval "$3=yes"
1755 else
1756 eval "$3=no"
1757 fi
1758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1759 fi
1760 eval ac_res=\$$3
1761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1762 $as_echo "$ac_res" >&6; }
1763 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1764
1765 } # ac_fn_c_check_header_compile
1766
1767 # ac_fn_c_try_link LINENO
1768 # -----------------------
1769 # Try to link conftest.$ac_ext, and return whether this succeeded.
1770 ac_fn_c_try_link ()
1771 {
1772 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1773 rm -f conftest.$ac_objext conftest$ac_exeext
1774 if { { ac_try="$ac_link"
1775 case "(($ac_try" in
1776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1777 *) ac_try_echo=$ac_try;;
1778 esac
1779 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1780 $as_echo "$ac_try_echo"; } >&5
1781 (eval "$ac_link") 2>conftest.err
1782 ac_status=$?
1783 if test -s conftest.err; then
1784 grep -v '^ *+' conftest.err >conftest.er1
1785 cat conftest.er1 >&5
1786 mv -f conftest.er1 conftest.err
1787 fi
1788 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1789 test $ac_status = 0; } && {
1790 test -z "$ac_c_werror_flag" ||
1791 test ! -s conftest.err
1792 } && test -s conftest$ac_exeext && {
1793 test "$cross_compiling" = yes ||
1794 $as_test_x conftest$ac_exeext
1795 }; then :
1796 ac_retval=0
1797 else
1798 $as_echo "$as_me: failed program was:" >&5
1799 sed 's/^/| /' conftest.$ac_ext >&5
1800
1801 ac_retval=1
1802 fi
1803 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1804 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1805 # interfere with the next link command; also delete a directory that is
1806 # left behind by Apple's compiler. We do this before executing the actions.
1807 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1808 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1809 as_fn_set_status $ac_retval
1810
1811 } # ac_fn_c_try_link
1812
1813 # ac_fn_c_check_func LINENO FUNC VAR
1814 # ----------------------------------
1815 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1816 ac_fn_c_check_func ()
1817 {
1818 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1820 $as_echo_n "checking for $2... " >&6; }
1821 if eval \${$3+:} false; then :
1822 $as_echo_n "(cached) " >&6
1823 else
1824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1825 /* end confdefs.h. */
1826 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1827 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1828 #define $2 innocuous_$2
1829
1830 /* System header to define __stub macros and hopefully few prototypes,
1831 which can conflict with char $2 (); below.
1832 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1833 <limits.h> exists even on freestanding compilers. */
1834
1835 #ifdef __STDC__
1836 # include <limits.h>
1837 #else
1838 # include <assert.h>
1839 #endif
1840
1841 #undef $2
1842
1843 /* Override any GCC internal prototype to avoid an error.
1844 Use char because int might match the return type of a GCC
1845 builtin and then its argument prototype would still apply. */
1846 #ifdef __cplusplus
1847 extern "C"
1848 #endif
1849 char $2 ();
1850 /* The GNU C library defines this for functions which it implements
1851 to always fail with ENOSYS. Some functions are actually named
1852 something starting with __ and the normal name is an alias. */
1853 #if defined __stub_$2 || defined __stub___$2
1854 choke me
1855 #endif
1856
1857 int
1858 main ()
1859 {
1860 return $2 ();
1861 ;
1862 return 0;
1863 }
1864 _ACEOF
1865 if ac_fn_c_try_link "$LINENO"; then :
1866 eval "$3=yes"
1867 else
1868 eval "$3=no"
1869 fi
1870 rm -f core conftest.err conftest.$ac_objext \
1871 conftest$ac_exeext conftest.$ac_ext
1872 fi
1873 eval ac_res=\$$3
1874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1875 $as_echo "$ac_res" >&6; }
1876 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1877
1878 } # ac_fn_c_check_func
1879
1880 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1881 # -------------------------------------------------------
1882 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1883 # the include files in INCLUDES and setting the cache variable VAR
1884 # accordingly.
1885 ac_fn_c_check_header_mongrel ()
1886 {
1887 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1888 if eval \${$3+:} false; then :
1889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1890 $as_echo_n "checking for $2... " >&6; }
1891 if eval \${$3+:} false; then :
1892 $as_echo_n "(cached) " >&6
1893 fi
1894 eval ac_res=\$$3
1895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1896 $as_echo "$ac_res" >&6; }
1897 else
1898 # Is the header compilable?
1899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1900 $as_echo_n "checking $2 usability... " >&6; }
1901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1902 /* end confdefs.h. */
1903 $4
1904 #include <$2>
1905 _ACEOF
1906 if ac_fn_c_try_compile "$LINENO"; then :
1907 ac_header_compiler=yes
1908 else
1909 ac_header_compiler=no
1910 fi
1911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1913 $as_echo "$ac_header_compiler" >&6; }
1914
1915 # Is the header present?
1916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1917 $as_echo_n "checking $2 presence... " >&6; }
1918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1919 /* end confdefs.h. */
1920 #include <$2>
1921 _ACEOF
1922 if ac_fn_c_try_cpp "$LINENO"; then :
1923 ac_header_preproc=yes
1924 else
1925 ac_header_preproc=no
1926 fi
1927 rm -f conftest.err conftest.i conftest.$ac_ext
1928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1929 $as_echo "$ac_header_preproc" >&6; }
1930
1931 # So? What about this header?
1932 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1933 yes:no: )
1934 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1935 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1936 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1937 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1938 ;;
1939 no:yes:* )
1940 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1941 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1942 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1943 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1944 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1945 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1946 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1947 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1948 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1949 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1950 ( $as_echo "## ---------------------------------------------------------------------- ##
1951 ## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
1952 ## ---------------------------------------------------------------------- ##"
1953 ) | sed "s/^/$as_me: WARNING: /" >&2
1954 ;;
1955 esac
1956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1957 $as_echo_n "checking for $2... " >&6; }
1958 if eval \${$3+:} false; then :
1959 $as_echo_n "(cached) " >&6
1960 else
1961 eval "$3=\$ac_header_compiler"
1962 fi
1963 eval ac_res=\$$3
1964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1965 $as_echo "$ac_res" >&6; }
1966 fi
1967 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1968
1969 } # ac_fn_c_check_header_mongrel
1970 cat >config.log <<_ACEOF
1971 This file contains any messages produced by compilers while
1972 running configure, to aid debugging if configure makes a mistake.
1973
1974 It was created by xf86-video-mach64 $as_me 6.9.4, which was
1975 generated by GNU Autoconf 2.68. Invocation command line was
1976
1977 $ $0 $@
1978
1979 _ACEOF
1980 exec 5>>config.log
1981 {
1982 cat <<_ASUNAME
1983 ## --------- ##
1984 ## Platform. ##
1985 ## --------- ##
1986
1987 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1988 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1989 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1990 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1991 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1992
1993 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1994 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1995
1996 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1997 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1998 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1999 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2000 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2001 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2002 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2003
2004 _ASUNAME
2005
2006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2007 for as_dir in $PATH
2008 do
2009 IFS=$as_save_IFS
2010 test -z "$as_dir" && as_dir=.
2011 $as_echo "PATH: $as_dir"
2012 done
2013 IFS=$as_save_IFS
2014
2015 } >&5
2016
2017 cat >&5 <<_ACEOF
2018
2019
2020 ## ----------- ##
2021 ## Core tests. ##
2022 ## ----------- ##
2023
2024 _ACEOF
2025
2026
2027 # Keep a trace of the command line.
2028 # Strip out --no-create and --no-recursion so they do not pile up.
2029 # Strip out --silent because we don't want to record it for future runs.
2030 # Also quote any args containing shell meta-characters.
2031 # Make two passes to allow for proper duplicate-argument suppression.
2032 ac_configure_args=
2033 ac_configure_args0=
2034 ac_configure_args1=
2035 ac_must_keep_next=false
2036 for ac_pass in 1 2
2037 do
2038 for ac_arg
2039 do
2040 case $ac_arg in
2041 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2042 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2043 | -silent | --silent | --silen | --sile | --sil)
2044 continue ;;
2045 *\'*)
2046 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2047 esac
2048 case $ac_pass in
2049 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2050 2)
2051 as_fn_append ac_configure_args1 " '$ac_arg'"
2052 if test $ac_must_keep_next = true; then
2053 ac_must_keep_next=false # Got value, back to normal.
2054 else
2055 case $ac_arg in
2056 *=* | --config-cache | -C | -disable-* | --disable-* \
2057 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2058 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2059 | -with-* | --with-* | -without-* | --without-* | --x)
2060 case "$ac_configure_args0 " in
2061 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2062 esac
2063 ;;
2064 -* ) ac_must_keep_next=true ;;
2065 esac
2066 fi
2067 as_fn_append ac_configure_args " '$ac_arg'"
2068 ;;
2069 esac
2070 done
2071 done
2072 { ac_configure_args0=; unset ac_configure_args0;}
2073 { ac_configure_args1=; unset ac_configure_args1;}
2074
2075 # When interrupted or exit'd, cleanup temporary files, and complete
2076 # config.log. We remove comments because anyway the quotes in there
2077 # would cause problems or look ugly.
2078 # WARNING: Use '\'' to represent an apostrophe within the trap.
2079 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2080 trap 'exit_status=$?
2081 # Save into config.log some information that might help in debugging.
2082 {
2083 echo
2084
2085 $as_echo "## ---------------- ##
2086 ## Cache variables. ##
2087 ## ---------------- ##"
2088 echo
2089 # The following way of writing the cache mishandles newlines in values,
2090 (
2091 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2092 eval ac_val=\$$ac_var
2093 case $ac_val in #(
2094 *${as_nl}*)
2095 case $ac_var in #(
2096 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2097 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2098 esac
2099 case $ac_var in #(
2100 _ | IFS | as_nl) ;; #(
2101 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2102 *) { eval $ac_var=; unset $ac_var;} ;;
2103 esac ;;
2104 esac
2105 done
2106 (set) 2>&1 |
2107 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2108 *${as_nl}ac_space=\ *)
2109 sed -n \
2110 "s/'\''/'\''\\\\'\'''\''/g;
2111 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2112 ;; #(
2113 *)
2114 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2115 ;;
2116 esac |
2117 sort
2118 )
2119 echo
2120
2121 $as_echo "## ----------------- ##
2122 ## Output variables. ##
2123 ## ----------------- ##"
2124 echo
2125 for ac_var in $ac_subst_vars
2126 do
2127 eval ac_val=\$$ac_var
2128 case $ac_val in
2129 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2130 esac
2131 $as_echo "$ac_var='\''$ac_val'\''"
2132 done | sort
2133 echo
2134
2135 if test -n "$ac_subst_files"; then
2136 $as_echo "## ------------------- ##
2137 ## File substitutions. ##
2138 ## ------------------- ##"
2139 echo
2140 for ac_var in $ac_subst_files
2141 do
2142 eval ac_val=\$$ac_var
2143 case $ac_val in
2144 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2145 esac
2146 $as_echo "$ac_var='\''$ac_val'\''"
2147 done | sort
2148 echo
2149 fi
2150
2151 if test -s confdefs.h; then
2152 $as_echo "## ----------- ##
2153 ## confdefs.h. ##
2154 ## ----------- ##"
2155 echo
2156 cat confdefs.h
2157 echo
2158 fi
2159 test "$ac_signal" != 0 &&
2160 $as_echo "$as_me: caught signal $ac_signal"
2161 $as_echo "$as_me: exit $exit_status"
2162 } >&5
2163 rm -f core *.core core.conftest.* &&
2164 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2165 exit $exit_status
2166 ' 0
2167 for ac_signal in 1 2 13 15; do
2168 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2169 done
2170 ac_signal=0
2171
2172 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2173 rm -f -r conftest* confdefs.h
2174
2175 $as_echo "/* confdefs.h */" > confdefs.h
2176
2177 # Predefined preprocessor variables.
2178
2179 cat >>confdefs.h <<_ACEOF
2180 #define PACKAGE_NAME "$PACKAGE_NAME"
2181 _ACEOF
2182
2183 cat >>confdefs.h <<_ACEOF
2184 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2185 _ACEOF
2186
2187 cat >>confdefs.h <<_ACEOF
2188 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2189 _ACEOF
2190
2191 cat >>confdefs.h <<_ACEOF
2192 #define PACKAGE_STRING "$PACKAGE_STRING"
2193 _ACEOF
2194
2195 cat >>confdefs.h <<_ACEOF
2196 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2197 _ACEOF
2198
2199 cat >>confdefs.h <<_ACEOF
2200 #define PACKAGE_URL "$PACKAGE_URL"
2201 _ACEOF
2202
2203
2204 # Let the site file select an alternate cache file if it wants to.
2205 # Prefer an explicitly selected file to automatically selected ones.
2206 ac_site_file1=NONE
2207 ac_site_file2=NONE
2208 if test -n "$CONFIG_SITE"; then
2209 # We do not want a PATH search for config.site.
2210 case $CONFIG_SITE in #((
2211 -*) ac_site_file1=./$CONFIG_SITE;;
2212 */*) ac_site_file1=$CONFIG_SITE;;
2213 *) ac_site_file1=./$CONFIG_SITE;;
2214 esac
2215 elif test "x$prefix" != xNONE; then
2216 ac_site_file1=$prefix/share/config.site
2217 ac_site_file2=$prefix/etc/config.site
2218 else
2219 ac_site_file1=$ac_default_prefix/share/config.site
2220 ac_site_file2=$ac_default_prefix/etc/config.site
2221 fi
2222 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2223 do
2224 test "x$ac_site_file" = xNONE && continue
2225 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2226 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2227 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2228 sed 's/^/| /' "$ac_site_file" >&5
2229 . "$ac_site_file" \
2230 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2231 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2232 as_fn_error $? "failed to load site script $ac_site_file
2233 See \`config.log' for more details" "$LINENO" 5; }
2234 fi
2235 done
2236
2237 if test -r "$cache_file"; then
2238 # Some versions of bash will fail to source /dev/null (special files
2239 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2240 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2241 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2242 $as_echo "$as_me: loading cache $cache_file" >&6;}
2243 case $cache_file in
2244 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2245 *) . "./$cache_file";;
2246 esac
2247 fi
2248 else
2249 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2250 $as_echo "$as_me: creating cache $cache_file" >&6;}
2251 >$cache_file
2252 fi
2253
2254 # Check that the precious variables saved in the cache have kept the same
2255 # value.
2256 ac_cache_corrupted=false
2257 for ac_var in $ac_precious_vars; do
2258 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2259 eval ac_new_set=\$ac_env_${ac_var}_set
2260 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2261 eval ac_new_val=\$ac_env_${ac_var}_value
2262 case $ac_old_set,$ac_new_set in
2263 set,)
2264 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2265 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2266 ac_cache_corrupted=: ;;
2267 ,set)
2268 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2269 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2270 ac_cache_corrupted=: ;;
2271 ,);;
2272 *)
2273 if test "x$ac_old_val" != "x$ac_new_val"; then
2274 # differences in whitespace do not lead to failure.
2275 ac_old_val_w=`echo x $ac_old_val`
2276 ac_new_val_w=`echo x $ac_new_val`
2277 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2278 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2279 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2280 ac_cache_corrupted=:
2281 else
2282 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2283 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2284 eval $ac_var=\$ac_old_val
2285 fi
2286 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2287 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2288 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2289 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2290 fi;;
2291 esac
2292 # Pass precious variables to config.status.
2293 if test "$ac_new_set" = set; then
2294 case $ac_new_val in
2295 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2296 *) ac_arg=$ac_var=$ac_new_val ;;
2297 esac
2298 case " $ac_configure_args " in
2299 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2300 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2301 esac
2302 fi
2303 done
2304 if $ac_cache_corrupted; then
2305 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2306 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2307 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2308 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2309 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2310 fi
2311 ## -------------------- ##
2312 ## Main body of script. ##
2313 ## -------------------- ##
2314
2315 ac_ext=c
2316 ac_cpp='$CPP $CPPFLAGS'
2317 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2318 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2319 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2320
2321
2322
2323 ac_config_headers="$ac_config_headers config.h"
2324
2325 ac_aux_dir=
2326 for ac_dir in . "$srcdir"/.; do
2327 if test -f "$ac_dir/install-sh"; then
2328 ac_aux_dir=$ac_dir
2329 ac_install_sh="$ac_aux_dir/install-sh -c"
2330 break
2331 elif test -f "$ac_dir/install.sh"; then
2332 ac_aux_dir=$ac_dir
2333 ac_install_sh="$ac_aux_dir/install.sh -c"
2334 break
2335 elif test -f "$ac_dir/shtool"; then
2336 ac_aux_dir=$ac_dir
2337 ac_install_sh="$ac_aux_dir/shtool install -c"
2338 break
2339 fi
2340 done
2341 if test -z "$ac_aux_dir"; then
2342 as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5
2343 fi
2344
2345 # These three variables are undocumented and unsupported,
2346 # and are intended to be withdrawn in a future Autoconf release.
2347 # They can cause serious problems if a builder's source tree is in a directory
2348 # whose full name contains unusual characters.
2349 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2350 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2351 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2352
2353
2354
2355 # Initialize Automake
2356 am__api_version='1.11'
2357
2358 # Find a good install program. We prefer a C program (faster),
2359 # so one script is as good as another. But avoid the broken or
2360 # incompatible versions:
2361 # SysV /etc/install, /usr/sbin/install
2362 # SunOS /usr/etc/install
2363 # IRIX /sbin/install
2364 # AIX /bin/install
2365 # AmigaOS /C/install, which installs bootblocks on floppy discs
2366 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2367 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2368 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2369 # OS/2's system install, which has a completely different semantic
2370 # ./install, which can be erroneously created by make from ./install.sh.
2371 # Reject install programs that cannot install multiple files.
2372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2373 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2374 if test -z "$INSTALL"; then
2375 if ${ac_cv_path_install+:} false; then :
2376 $as_echo_n "(cached) " >&6
2377 else
2378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2379 for as_dir in $PATH
2380 do
2381 IFS=$as_save_IFS
2382 test -z "$as_dir" && as_dir=.
2383 # Account for people who put trailing slashes in PATH elements.
2384 case $as_dir/ in #((
2385 ./ | .// | /[cC]/* | \
2386 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2387 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2388 /usr/ucb/* ) ;;
2389 *)
2390 # OSF1 and SCO ODT 3.0 have their own names for install.
2391 # Don't use installbsd from OSF since it installs stuff as root
2392 # by default.
2393 for ac_prog in ginstall scoinst install; do
2394 for ac_exec_ext in '' $ac_executable_extensions; do
2395 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2396 if test $ac_prog = install &&
2397 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2398 # AIX install. It has an incompatible calling convention.
2399 :
2400 elif test $ac_prog = install &&
2401 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2402 # program-specific install script used by HP pwplus--don't use.
2403 :
2404 else
2405 rm -rf conftest.one conftest.two conftest.dir
2406 echo one > conftest.one
2407 echo two > conftest.two
2408 mkdir conftest.dir
2409 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2410 test -s conftest.one && test -s conftest.two &&
2411 test -s conftest.dir/conftest.one &&
2412 test -s conftest.dir/conftest.two
2413 then
2414 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2415 break 3
2416 fi
2417 fi
2418 fi
2419 done
2420 done
2421 ;;
2422 esac
2423
2424 done
2425 IFS=$as_save_IFS
2426
2427 rm -rf conftest.one conftest.two conftest.dir
2428
2429 fi
2430 if test "${ac_cv_path_install+set}" = set; then
2431 INSTALL=$ac_cv_path_install
2432 else
2433 # As a last resort, use the slow shell script. Don't cache a
2434 # value for INSTALL within a source directory, because that will
2435 # break other packages using the cache if that directory is
2436 # removed, or if the value is a relative name.
2437 INSTALL=$ac_install_sh
2438 fi
2439 fi
2440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2441 $as_echo "$INSTALL" >&6; }
2442
2443 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2444 # It thinks the first close brace ends the variable substitution.
2445 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2446
2447 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2448
2449 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2450
2451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2452 $as_echo_n "checking whether build environment is sane... " >&6; }
2453 # Just in case
2454 sleep 1
2455 echo timestamp > conftest.file
2456 # Reject unsafe characters in $srcdir or the absolute working directory
2457 # name. Accept space and tab only in the latter.
2458 am_lf='
2459 '
2460 case `pwd` in
2461 *[\\\"\#\$\&\'\`$am_lf]*)
2462 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2463 esac
2464 case $srcdir in
2465 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2466 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2467 esac
2468
2469 # Do `set' in a subshell so we don't clobber the current shell's
2470 # arguments. Must try -L first in case configure is actually a
2471 # symlink; some systems play weird games with the mod time of symlinks
2472 # (eg FreeBSD returns the mod time of the symlink's containing
2473 # directory).
2474 if (
2475 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2476 if test "$*" = "X"; then
2477 # -L didn't work.
2478 set X `ls -t "$srcdir/configure" conftest.file`
2479 fi
2480 rm -f conftest.file
2481 if test "$*" != "X $srcdir/configure conftest.file" \
2482 && test "$*" != "X conftest.file $srcdir/configure"; then
2483
2484 # If neither matched, then we have a broken ls. This can happen
2485 # if, for instance, CONFIG_SHELL is bash and it inherits a
2486 # broken ls alias from the environment. This has actually
2487 # happened. Such a system could not be considered "sane".
2488 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2489 alias in your environment" "$LINENO" 5
2490 fi
2491
2492 test "$2" = conftest.file
2493 )
2494 then
2495 # Ok.
2496 :
2497 else
2498 as_fn_error $? "newly created file is older than distributed files!
2499 Check your system clock" "$LINENO" 5
2500 fi
2501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2502 $as_echo "yes" >&6; }
2503 test "$program_prefix" != NONE &&
2504 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2505 # Use a double $ so make ignores it.
2506 test "$program_suffix" != NONE &&
2507 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2508 # Double any \ or $.
2509 # By default was `s,x,x', remove it if useless.
2510 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2511 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2512
2513 # expand $ac_aux_dir to an absolute path
2514 am_aux_dir=`cd $ac_aux_dir && pwd`
2515
2516 if test x"${MISSING+set}" != xset; then
2517 case $am_aux_dir in
2518 *\ * | *\ *)
2519 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2520 *)
2521 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2522 esac
2523 fi
2524 # Use eval to expand $SHELL
2525 if eval "$MISSING --run true"; then
2526 am_missing_run="$MISSING --run "
2527 else
2528 am_missing_run=
2529 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2530 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2531 fi
2532
2533 if test x"${install_sh}" != xset; then
2534 case $am_aux_dir in
2535 *\ * | *\ *)
2536 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2537 *)
2538 install_sh="\${SHELL} $am_aux_dir/install-sh"
2539 esac
2540 fi
2541
2542 # Installed binaries are usually stripped using `strip' when the user
2543 # run `make install-strip'. However `strip' might not be the right
2544 # tool to use in cross-compilation environments, therefore Automake
2545 # will honor the `STRIP' environment variable to overrule this program.
2546 if test "$cross_compiling" != no; then
2547 if test -n "$ac_tool_prefix"; then
2548 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2549 set dummy ${ac_tool_prefix}strip; ac_word=$2
2550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2551 $as_echo_n "checking for $ac_word... " >&6; }
2552 if ${ac_cv_prog_STRIP+:} false; then :
2553 $as_echo_n "(cached) " >&6
2554 else
2555 if test -n "$STRIP"; then
2556 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2557 else
2558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2559 for as_dir in $PATH
2560 do
2561 IFS=$as_save_IFS
2562 test -z "$as_dir" && as_dir=.
2563 for ac_exec_ext in '' $ac_executable_extensions; do
2564 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2565 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2566 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2567 break 2
2568 fi
2569 done
2570 done
2571 IFS=$as_save_IFS
2572
2573 fi
2574 fi
2575 STRIP=$ac_cv_prog_STRIP
2576 if test -n "$STRIP"; then
2577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2578 $as_echo "$STRIP" >&6; }
2579 else
2580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2581 $as_echo "no" >&6; }
2582 fi
2583
2584
2585 fi
2586 if test -z "$ac_cv_prog_STRIP"; then
2587 ac_ct_STRIP=$STRIP
2588 # Extract the first word of "strip", so it can be a program name with args.
2589 set dummy strip; ac_word=$2
2590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2591 $as_echo_n "checking for $ac_word... " >&6; }
2592 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2593 $as_echo_n "(cached) " >&6
2594 else
2595 if test -n "$ac_ct_STRIP"; then
2596 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2597 else
2598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2599 for as_dir in $PATH
2600 do
2601 IFS=$as_save_IFS
2602 test -z "$as_dir" && as_dir=.
2603 for ac_exec_ext in '' $ac_executable_extensions; do
2604 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2605 ac_cv_prog_ac_ct_STRIP="strip"
2606 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2607 break 2
2608 fi
2609 done
2610 done
2611 IFS=$as_save_IFS
2612
2613 fi
2614 fi
2615 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2616 if test -n "$ac_ct_STRIP"; then
2617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2618 $as_echo "$ac_ct_STRIP" >&6; }
2619 else
2620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2621 $as_echo "no" >&6; }
2622 fi
2623
2624 if test "x$ac_ct_STRIP" = x; then
2625 STRIP=":"
2626 else
2627 case $cross_compiling:$ac_tool_warned in
2628 yes:)
2629 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2630 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2631 ac_tool_warned=yes ;;
2632 esac
2633 STRIP=$ac_ct_STRIP
2634 fi
2635 else
2636 STRIP="$ac_cv_prog_STRIP"
2637 fi
2638
2639 fi
2640 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2641
2642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2643 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2644 if test -z "$MKDIR_P"; then
2645 if ${ac_cv_path_mkdir+:} false; then :
2646 $as_echo_n "(cached) " >&6
2647 else
2648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2649 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2650 do
2651 IFS=$as_save_IFS
2652 test -z "$as_dir" && as_dir=.
2653 for ac_prog in mkdir gmkdir; do
2654 for ac_exec_ext in '' $ac_executable_extensions; do
2655 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2656 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2657 'mkdir (GNU coreutils) '* | \
2658 'mkdir (coreutils) '* | \
2659 'mkdir (fileutils) '4.1*)
2660 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2661 break 3;;
2662 esac
2663 done
2664 done
2665 done
2666 IFS=$as_save_IFS
2667
2668 fi
2669
2670 test -d ./--version && rmdir ./--version
2671 if test "${ac_cv_path_mkdir+set}" = set; then
2672 MKDIR_P="$ac_cv_path_mkdir -p"
2673 else
2674 # As a last resort, use the slow shell script. Don't cache a
2675 # value for MKDIR_P within a source directory, because that will
2676 # break other packages using the cache if that directory is
2677 # removed, or if the value is a relative name.
2678 MKDIR_P="$ac_install_sh -d"
2679 fi
2680 fi
2681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2682 $as_echo "$MKDIR_P" >&6; }
2683
2684 mkdir_p="$MKDIR_P"
2685 case $mkdir_p in
2686 [\\/$]* | ?:[\\/]*) ;;
2687 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2688 esac
2689
2690 for ac_prog in gawk mawk nawk awk
2691 do
2692 # Extract the first word of "$ac_prog", so it can be a program name with args.
2693 set dummy $ac_prog; ac_word=$2
2694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2695 $as_echo_n "checking for $ac_word... " >&6; }
2696 if ${ac_cv_prog_AWK+:} false; then :
2697 $as_echo_n "(cached) " >&6
2698 else
2699 if test -n "$AWK"; then
2700 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2701 else
2702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2703 for as_dir in $PATH
2704 do
2705 IFS=$as_save_IFS
2706 test -z "$as_dir" && as_dir=.
2707 for ac_exec_ext in '' $ac_executable_extensions; do
2708 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2709 ac_cv_prog_AWK="$ac_prog"
2710 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2711 break 2
2712 fi
2713 done
2714 done
2715 IFS=$as_save_IFS
2716
2717 fi
2718 fi
2719 AWK=$ac_cv_prog_AWK
2720 if test -n "$AWK"; then
2721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2722 $as_echo "$AWK" >&6; }
2723 else
2724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2725 $as_echo "no" >&6; }
2726 fi
2727
2728
2729 test -n "$AWK" && break
2730 done
2731
2732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2733 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2734 set x ${MAKE-make}
2735 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2736 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2737 $as_echo_n "(cached) " >&6
2738 else
2739 cat >conftest.make <<\_ACEOF
2740 SHELL = /bin/sh
2741 all:
2742 @echo '@@@%%%=$(MAKE)=@@@%%%'
2743 _ACEOF
2744 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2745 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2746 *@@@%%%=?*=@@@%%%*)
2747 eval ac_cv_prog_make_${ac_make}_set=yes;;
2748 *)
2749 eval ac_cv_prog_make_${ac_make}_set=no;;
2750 esac
2751 rm -f conftest.make
2752 fi
2753 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2755 $as_echo "yes" >&6; }
2756 SET_MAKE=
2757 else
2758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2759 $as_echo "no" >&6; }
2760 SET_MAKE="MAKE=${MAKE-make}"
2761 fi
2762
2763 rm -rf .tst 2>/dev/null
2764 mkdir .tst 2>/dev/null
2765 if test -d .tst; then
2766 am__leading_dot=.
2767 else
2768 am__leading_dot=_
2769 fi
2770 rmdir .tst 2>/dev/null
2771
2772 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2773 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2774 # is not polluted with repeated "-I."
2775 am__isrc=' -I$(srcdir)'
2776 # test to see if srcdir already configured
2777 if test -f $srcdir/config.status; then
2778 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2779 fi
2780 fi
2781
2782 # test whether we have cygpath
2783 if test -z "$CYGPATH_W"; then
2784 if (cygpath --version) >/dev/null 2>/dev/null; then
2785 CYGPATH_W='cygpath -w'
2786 else
2787 CYGPATH_W=echo
2788 fi
2789 fi
2790
2791
2792 # Define the identity of the package.
2793 PACKAGE='xf86-video-mach64'
2794 VERSION='6.9.4'
2795
2796
2797 cat >>confdefs.h <<_ACEOF
2798 #define PACKAGE "$PACKAGE"
2799 _ACEOF
2800
2801
2802 cat >>confdefs.h <<_ACEOF
2803 #define VERSION "$VERSION"
2804 _ACEOF
2805
2806 # Some tools Automake needs.
2807
2808 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2809
2810
2811 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2812
2813
2814 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2815
2816
2817 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2818
2819
2820 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2821
2822 # We need awk for the "check" target. The system "awk" is bad on
2823 # some platforms.
2824 # Always define AMTAR for backward compatibility.
2825
2826 AMTAR=${AMTAR-"${am_missing_run}tar"}
2827
2828 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2829
2830
2831
2832
2833
2834
2835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2836 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2837 # Check whether --enable-maintainer-mode was given.
2838 if test "${enable_maintainer_mode+set}" = set; then :
2839 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2840 else
2841 USE_MAINTAINER_MODE=no
2842 fi
2843
2844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2845 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2846 if test $USE_MAINTAINER_MODE = yes; then
2847 MAINTAINER_MODE_TRUE=
2848 MAINTAINER_MODE_FALSE='#'
2849 else
2850 MAINTAINER_MODE_TRUE='#'
2851 MAINTAINER_MODE_FALSE=
2852 fi
2853
2854 MAINT=$MAINTAINER_MODE_TRUE
2855
2856
2857
2858 # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870 DEPDIR="${am__leading_dot}deps"
2871
2872 ac_config_commands="$ac_config_commands depfiles"
2873
2874
2875 am_make=${MAKE-make}
2876 cat > confinc << 'END'
2877 am__doit:
2878 @echo this is the am__doit target
2879 .PHONY: am__doit
2880 END
2881 # If we don't find an include directive, just comment out the code.
2882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2883 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2884 am__include="#"
2885 am__quote=
2886 _am_result=none
2887 # First try GNU make style include.
2888 echo "include confinc" > confmf
2889 # Ignore all kinds of additional output from `make'.
2890 case `$am_make -s -f confmf 2> /dev/null` in #(
2891 *the\ am__doit\ target*)
2892 am__include=include
2893 am__quote=
2894 _am_result=GNU
2895 ;;
2896 esac
2897 # Now try BSD make style include.
2898 if test "$am__include" = "#"; then
2899 echo '.include "confinc"' > confmf
2900 case `$am_make -s -f confmf 2> /dev/null` in #(
2901 *the\ am__doit\ target*)
2902 am__include=.include
2903 am__quote="\""
2904 _am_result=BSD
2905 ;;
2906 esac
2907 fi
2908
2909
2910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2911 $as_echo "$_am_result" >&6; }
2912 rm -f confinc confmf
2913
2914 # Check whether --enable-dependency-tracking was given.
2915 if test "${enable_dependency_tracking+set}" = set; then :
2916 enableval=$enable_dependency_tracking;
2917 fi
2918
2919 if test "x$enable_dependency_tracking" != xno; then
2920 am_depcomp="$ac_aux_dir/depcomp"
2921 AMDEPBACKSLASH='\'
2922 am__nodep='_no'
2923 fi
2924 if test "x$enable_dependency_tracking" != xno; then
2925 AMDEP_TRUE=
2926 AMDEP_FALSE='#'
2927 else
2928 AMDEP_TRUE='#'
2929 AMDEP_FALSE=
2930 fi
2931
2932
2933 ac_ext=c
2934 ac_cpp='$CPP $CPPFLAGS'
2935 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2936 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2937 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2938 if test -n "$ac_tool_prefix"; then
2939 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2940 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2942 $as_echo_n "checking for $ac_word... " >&6; }
2943 if ${ac_cv_prog_CC+:} false; then :
2944 $as_echo_n "(cached) " >&6
2945 else
2946 if test -n "$CC"; then
2947 ac_cv_prog_CC="$CC" # Let the user override the test.
2948 else
2949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2950 for as_dir in $PATH
2951 do
2952 IFS=$as_save_IFS
2953 test -z "$as_dir" && as_dir=.
2954 for ac_exec_ext in '' $ac_executable_extensions; do
2955 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2956 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2957 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2958 break 2
2959 fi
2960 done
2961 done
2962 IFS=$as_save_IFS
2963
2964 fi
2965 fi
2966 CC=$ac_cv_prog_CC
2967 if test -n "$CC"; then
2968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2969 $as_echo "$CC" >&6; }
2970 else
2971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2972 $as_echo "no" >&6; }
2973 fi
2974
2975
2976 fi
2977 if test -z "$ac_cv_prog_CC"; then
2978 ac_ct_CC=$CC
2979 # Extract the first word of "gcc", so it can be a program name with args.
2980 set dummy gcc; ac_word=$2
2981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2982 $as_echo_n "checking for $ac_word... " >&6; }
2983 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2984 $as_echo_n "(cached) " >&6
2985 else
2986 if test -n "$ac_ct_CC"; then
2987 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2988 else
2989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2990 for as_dir in $PATH
2991 do
2992 IFS=$as_save_IFS
2993 test -z "$as_dir" && as_dir=.
2994 for ac_exec_ext in '' $ac_executable_extensions; do
2995 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2996 ac_cv_prog_ac_ct_CC="gcc"
2997 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2998 break 2
2999 fi
3000 done
3001 done
3002 IFS=$as_save_IFS
3003
3004 fi
3005 fi
3006 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3007 if test -n "$ac_ct_CC"; then
3008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3009 $as_echo "$ac_ct_CC" >&6; }
3010 else
3011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3012 $as_echo "no" >&6; }
3013 fi
3014
3015 if test "x$ac_ct_CC" = x; then
3016 CC=""
3017 else
3018 case $cross_compiling:$ac_tool_warned in
3019 yes:)
3020 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3021 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3022 ac_tool_warned=yes ;;
3023 esac
3024 CC=$ac_ct_CC
3025 fi
3026 else
3027 CC="$ac_cv_prog_CC"
3028 fi
3029
3030 if test -z "$CC"; then
3031 if test -n "$ac_tool_prefix"; then
3032 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3033 set dummy ${ac_tool_prefix}cc; ac_word=$2
3034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3035 $as_echo_n "checking for $ac_word... " >&6; }
3036 if ${ac_cv_prog_CC+:} false; then :
3037 $as_echo_n "(cached) " >&6
3038 else
3039 if test -n "$CC"; then
3040 ac_cv_prog_CC="$CC" # Let the user override the test.
3041 else
3042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3043 for as_dir in $PATH
3044 do
3045 IFS=$as_save_IFS
3046 test -z "$as_dir" && as_dir=.
3047 for ac_exec_ext in '' $ac_executable_extensions; do
3048 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3049 ac_cv_prog_CC="${ac_tool_prefix}cc"
3050 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3051 break 2
3052 fi
3053 done
3054 done
3055 IFS=$as_save_IFS
3056
3057 fi
3058 fi
3059 CC=$ac_cv_prog_CC
3060 if test -n "$CC"; then
3061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3062 $as_echo "$CC" >&6; }
3063 else
3064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3065 $as_echo "no" >&6; }
3066 fi
3067
3068
3069 fi
3070 fi
3071 if test -z "$CC"; then
3072 # Extract the first word of "cc", so it can be a program name with args.
3073 set dummy cc; ac_word=$2
3074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3075 $as_echo_n "checking for $ac_word... " >&6; }
3076 if ${ac_cv_prog_CC+:} false; then :
3077 $as_echo_n "(cached) " >&6
3078 else
3079 if test -n "$CC"; then
3080 ac_cv_prog_CC="$CC" # Let the user override the test.
3081 else
3082 ac_prog_rejected=no
3083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3084 for as_dir in $PATH
3085 do
3086 IFS=$as_save_IFS
3087 test -z "$as_dir" && as_dir=.
3088 for ac_exec_ext in '' $ac_executable_extensions; do
3089 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3090 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3091 ac_prog_rejected=yes
3092 continue
3093 fi
3094 ac_cv_prog_CC="cc"
3095 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3096 break 2
3097 fi
3098 done
3099 done
3100 IFS=$as_save_IFS
3101
3102 if test $ac_prog_rejected = yes; then
3103 # We found a bogon in the path, so make sure we never use it.
3104 set dummy $ac_cv_prog_CC
3105 shift
3106 if test $# != 0; then
3107 # We chose a different compiler from the bogus one.
3108 # However, it has the same basename, so the bogon will be chosen
3109 # first if we set CC to just the basename; use the full file name.
3110 shift
3111 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3112 fi
3113 fi
3114 fi
3115 fi
3116 CC=$ac_cv_prog_CC
3117 if test -n "$CC"; then
3118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3119 $as_echo "$CC" >&6; }
3120 else
3121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3122 $as_echo "no" >&6; }
3123 fi
3124
3125
3126 fi
3127 if test -z "$CC"; then
3128 if test -n "$ac_tool_prefix"; then
3129 for ac_prog in cl.exe
3130 do
3131 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3132 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3134 $as_echo_n "checking for $ac_word... " >&6; }
3135 if ${ac_cv_prog_CC+:} false; then :
3136 $as_echo_n "(cached) " >&6
3137 else
3138 if test -n "$CC"; then
3139 ac_cv_prog_CC="$CC" # Let the user override the test.
3140 else
3141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3142 for as_dir in $PATH
3143 do
3144 IFS=$as_save_IFS
3145 test -z "$as_dir" && as_dir=.
3146 for ac_exec_ext in '' $ac_executable_extensions; do
3147 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3148 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3149 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3150 break 2
3151 fi
3152 done
3153 done
3154 IFS=$as_save_IFS
3155
3156 fi
3157 fi
3158 CC=$ac_cv_prog_CC
3159 if test -n "$CC"; then
3160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3161 $as_echo "$CC" >&6; }
3162 else
3163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3164 $as_echo "no" >&6; }
3165 fi
3166
3167
3168 test -n "$CC" && break
3169 done
3170 fi
3171 if test -z "$CC"; then
3172 ac_ct_CC=$CC
3173 for ac_prog in cl.exe
3174 do
3175 # Extract the first word of "$ac_prog", so it can be a program name with args.
3176 set dummy $ac_prog; ac_word=$2
3177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3178 $as_echo_n "checking for $ac_word... " >&6; }
3179 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3180 $as_echo_n "(cached) " >&6
3181 else
3182 if test -n "$ac_ct_CC"; then
3183 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3184 else
3185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3186 for as_dir in $PATH
3187 do
3188 IFS=$as_save_IFS
3189 test -z "$as_dir" && as_dir=.
3190 for ac_exec_ext in '' $ac_executable_extensions; do
3191 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3192 ac_cv_prog_ac_ct_CC="$ac_prog"
3193 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3194 break 2
3195 fi
3196 done
3197 done
3198 IFS=$as_save_IFS
3199
3200 fi
3201 fi
3202 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3203 if test -n "$ac_ct_CC"; then
3204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3205 $as_echo "$ac_ct_CC" >&6; }
3206 else
3207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3208 $as_echo "no" >&6; }
3209 fi
3210
3211
3212 test -n "$ac_ct_CC" && break
3213 done
3214
3215 if test "x$ac_ct_CC" = x; then
3216 CC=""
3217 else
3218 case $cross_compiling:$ac_tool_warned in
3219 yes:)
3220 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3221 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3222 ac_tool_warned=yes ;;
3223 esac
3224 CC=$ac_ct_CC
3225 fi
3226 fi
3227
3228 fi
3229
3230
3231 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3232 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3233 as_fn_error $? "no acceptable C compiler found in \$PATH
3234 See \`config.log' for more details" "$LINENO" 5; }
3235
3236 # Provide some information about the compiler.
3237 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3238 set X $ac_compile
3239 ac_compiler=$2
3240 for ac_option in --version -v -V -qversion; do
3241 { { ac_try="$ac_compiler $ac_option >&5"
3242 case "(($ac_try" in
3243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3244 *) ac_try_echo=$ac_try;;
3245 esac
3246 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3247 $as_echo "$ac_try_echo"; } >&5
3248 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3249 ac_status=$?
3250 if test -s conftest.err; then
3251 sed '10a\
3252 ... rest of stderr output deleted ...
3253 10q' conftest.err >conftest.er1
3254 cat conftest.er1 >&5
3255 fi
3256 rm -f conftest.er1 conftest.err
3257 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3258 test $ac_status = 0; }
3259 done
3260
3261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3262 /* end confdefs.h. */
3263
3264 int
3265 main ()
3266 {
3267
3268 ;
3269 return 0;
3270 }
3271 _ACEOF
3272 ac_clean_files_save=$ac_clean_files
3273 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3274 # Try to create an executable without -o first, disregard a.out.
3275 # It will help us diagnose broken compilers, and finding out an intuition
3276 # of exeext.
3277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3278 $as_echo_n "checking whether the C compiler works... " >&6; }
3279 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3280
3281 # The possible output files:
3282 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3283
3284 ac_rmfiles=
3285 for ac_file in $ac_files
3286 do
3287 case $ac_file in
3288 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3289 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3290 esac
3291 done
3292 rm -f $ac_rmfiles
3293
3294 if { { ac_try="$ac_link_default"
3295 case "(($ac_try" in
3296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3297 *) ac_try_echo=$ac_try;;
3298 esac
3299 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3300 $as_echo "$ac_try_echo"; } >&5
3301 (eval "$ac_link_default") 2>&5
3302 ac_status=$?
3303 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3304 test $ac_status = 0; }; then :
3305 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3306 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3307 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3308 # so that the user can short-circuit this test for compilers unknown to
3309 # Autoconf.
3310 for ac_file in $ac_files ''
3311 do
3312 test -f "$ac_file" || continue
3313 case $ac_file in
3314 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3315 ;;
3316 [ab].out )
3317 # We found the default executable, but exeext='' is most
3318 # certainly right.
3319 break;;
3320 *.* )
3321 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3322 then :; else
3323 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3324 fi
3325 # We set ac_cv_exeext here because the later test for it is not
3326 # safe: cross compilers may not add the suffix if given an `-o'
3327 # argument, so we may need to know it at that point already.
3328 # Even if this section looks crufty: it has the advantage of
3329 # actually working.
3330 break;;
3331 * )
3332 break;;
3333 esac
3334 done
3335 test "$ac_cv_exeext" = no && ac_cv_exeext=
3336
3337 else
3338 ac_file=''
3339 fi
3340 if test -z "$ac_file"; then :
3341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3342 $as_echo "no" >&6; }
3343 $as_echo "$as_me: failed program was:" >&5
3344 sed 's/^/| /' conftest.$ac_ext >&5
3345
3346 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3347 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3348 as_fn_error 77 "C compiler cannot create executables
3349 See \`config.log' for more details" "$LINENO" 5; }
3350 else
3351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3352 $as_echo "yes" >&6; }
3353 fi
3354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3355 $as_echo_n "checking for C compiler default output file name... " >&6; }
3356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3357 $as_echo "$ac_file" >&6; }
3358 ac_exeext=$ac_cv_exeext
3359
3360 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3361 ac_clean_files=$ac_clean_files_save
3362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3363 $as_echo_n "checking for suffix of executables... " >&6; }
3364 if { { ac_try="$ac_link"
3365 case "(($ac_try" in
3366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3367 *) ac_try_echo=$ac_try;;
3368 esac
3369 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3370 $as_echo "$ac_try_echo"; } >&5
3371 (eval "$ac_link") 2>&5
3372 ac_status=$?
3373 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3374 test $ac_status = 0; }; then :
3375 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3376 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3377 # work properly (i.e., refer to `conftest.exe'), while it won't with
3378 # `rm'.
3379 for ac_file in conftest.exe conftest conftest.*; do
3380 test -f "$ac_file" || continue
3381 case $ac_file in
3382 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3383 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3384 break;;
3385 * ) break;;
3386 esac
3387 done
3388 else
3389 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3390 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3391 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3392 See \`config.log' for more details" "$LINENO" 5; }
3393 fi
3394 rm -f conftest conftest$ac_cv_exeext
3395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3396 $as_echo "$ac_cv_exeext" >&6; }
3397
3398 rm -f conftest.$ac_ext
3399 EXEEXT=$ac_cv_exeext
3400 ac_exeext=$EXEEXT
3401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3402 /* end confdefs.h. */
3403 #include <stdio.h>
3404 int
3405 main ()
3406 {
3407 FILE *f = fopen ("conftest.out", "w");
3408 return ferror (f) || fclose (f) != 0;
3409
3410 ;
3411 return 0;
3412 }
3413 _ACEOF
3414 ac_clean_files="$ac_clean_files conftest.out"
3415 # Check that the compiler produces executables we can run. If not, either
3416 # the compiler is broken, or we cross compile.
3417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3418 $as_echo_n "checking whether we are cross compiling... " >&6; }
3419 if test "$cross_compiling" != yes; then
3420 { { ac_try="$ac_link"
3421 case "(($ac_try" in
3422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3423 *) ac_try_echo=$ac_try;;
3424 esac
3425 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3426 $as_echo "$ac_try_echo"; } >&5
3427 (eval "$ac_link") 2>&5
3428 ac_status=$?
3429 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3430 test $ac_status = 0; }
3431 if { ac_try='./conftest$ac_cv_exeext'
3432 { { case "(($ac_try" in
3433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3434 *) ac_try_echo=$ac_try;;
3435 esac
3436 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3437 $as_echo "$ac_try_echo"; } >&5
3438 (eval "$ac_try") 2>&5
3439 ac_status=$?
3440 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3441 test $ac_status = 0; }; }; then
3442 cross_compiling=no
3443 else
3444 if test "$cross_compiling" = maybe; then
3445 cross_compiling=yes
3446 else
3447 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3448 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3449 as_fn_error $? "cannot run C compiled programs.
3450 If you meant to cross compile, use \`--host'.
3451 See \`config.log' for more details" "$LINENO" 5; }
3452 fi
3453 fi
3454 fi
3455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3456 $as_echo "$cross_compiling" >&6; }
3457
3458 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3459 ac_clean_files=$ac_clean_files_save
3460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3461 $as_echo_n "checking for suffix of object files... " >&6; }
3462 if ${ac_cv_objext+:} false; then :
3463 $as_echo_n "(cached) " >&6
3464 else
3465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3466 /* end confdefs.h. */
3467
3468 int
3469 main ()
3470 {
3471
3472 ;
3473 return 0;
3474 }
3475 _ACEOF
3476 rm -f conftest.o conftest.obj
3477 if { { ac_try="$ac_compile"
3478 case "(($ac_try" in
3479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3480 *) ac_try_echo=$ac_try;;
3481 esac
3482 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3483 $as_echo "$ac_try_echo"; } >&5
3484 (eval "$ac_compile") 2>&5
3485 ac_status=$?
3486 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3487 test $ac_status = 0; }; then :
3488 for ac_file in conftest.o conftest.obj conftest.*; do
3489 test -f "$ac_file" || continue;
3490 case $ac_file in
3491 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3492 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3493 break;;
3494 esac
3495 done
3496 else
3497 $as_echo "$as_me: failed program was:" >&5
3498 sed 's/^/| /' conftest.$ac_ext >&5
3499
3500 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3501 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3502 as_fn_error $? "cannot compute suffix of object files: cannot compile
3503 See \`config.log' for more details" "$LINENO" 5; }
3504 fi
3505 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3506 fi
3507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3508 $as_echo "$ac_cv_objext" >&6; }
3509 OBJEXT=$ac_cv_objext
3510 ac_objext=$OBJEXT
3511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3512 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3513 if ${ac_cv_c_compiler_gnu+:} false; then :
3514 $as_echo_n "(cached) " >&6
3515 else
3516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3517 /* end confdefs.h. */
3518
3519 int
3520 main ()
3521 {
3522 #ifndef __GNUC__
3523 choke me
3524 #endif
3525
3526 ;
3527 return 0;
3528 }
3529 _ACEOF
3530 if ac_fn_c_try_compile "$LINENO"; then :
3531 ac_compiler_gnu=yes
3532 else
3533 ac_compiler_gnu=no
3534 fi
3535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3536 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3537
3538 fi
3539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3540 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3541 if test $ac_compiler_gnu = yes; then
3542 GCC=yes
3543 else
3544 GCC=
3545 fi
3546 ac_test_CFLAGS=${CFLAGS+set}
3547 ac_save_CFLAGS=$CFLAGS
3548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3549 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3550 if ${ac_cv_prog_cc_g+:} false; then :
3551 $as_echo_n "(cached) " >&6
3552 else
3553 ac_save_c_werror_flag=$ac_c_werror_flag
3554 ac_c_werror_flag=yes
3555 ac_cv_prog_cc_g=no
3556 CFLAGS="-g"
3557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3558 /* end confdefs.h. */
3559
3560 int
3561 main ()
3562 {
3563
3564 ;
3565 return 0;
3566 }
3567 _ACEOF
3568 if ac_fn_c_try_compile "$LINENO"; then :
3569 ac_cv_prog_cc_g=yes
3570 else
3571 CFLAGS=""
3572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3573 /* end confdefs.h. */
3574
3575 int
3576 main ()
3577 {
3578
3579 ;
3580 return 0;
3581 }
3582 _ACEOF
3583 if ac_fn_c_try_compile "$LINENO"; then :
3584
3585 else
3586 ac_c_werror_flag=$ac_save_c_werror_flag
3587 CFLAGS="-g"
3588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3589 /* end confdefs.h. */
3590
3591 int
3592 main ()
3593 {
3594
3595 ;
3596 return 0;
3597 }
3598 _ACEOF
3599 if ac_fn_c_try_compile "$LINENO"; then :
3600 ac_cv_prog_cc_g=yes
3601 fi
3602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3603 fi
3604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3605 fi
3606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3607 ac_c_werror_flag=$ac_save_c_werror_flag
3608 fi
3609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3610 $as_echo "$ac_cv_prog_cc_g" >&6; }
3611 if test "$ac_test_CFLAGS" = set; then
3612 CFLAGS=$ac_save_CFLAGS
3613 elif test $ac_cv_prog_cc_g = yes; then
3614 if test "$GCC" = yes; then
3615 CFLAGS="-g -O2"
3616 else
3617 CFLAGS="-g"
3618 fi
3619 else
3620 if test "$GCC" = yes; then
3621 CFLAGS="-O2"
3622 else
3623 CFLAGS=
3624 fi
3625 fi
3626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3627 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3628 if ${ac_cv_prog_cc_c89+:} false; then :
3629 $as_echo_n "(cached) " >&6
3630 else
3631 ac_cv_prog_cc_c89=no
3632 ac_save_CC=$CC
3633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3634 /* end confdefs.h. */
3635 #include <stdarg.h>
3636 #include <stdio.h>
3637 #include <sys/types.h>
3638 #include <sys/stat.h>
3639 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3640 struct buf { int x; };
3641 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3642 static char *e (p, i)
3643 char **p;
3644 int i;
3645 {
3646 return p[i];
3647 }
3648 static char *f (char * (*g) (char **, int), char **p, ...)
3649 {
3650 char *s;
3651 va_list v;
3652 va_start (v,p);
3653 s = g (p, va_arg (v,int));
3654 va_end (v);
3655 return s;
3656 }
3657
3658 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3659 function prototypes and stuff, but not '\xHH' hex character constants.
3660 These don't provoke an error unfortunately, instead are silently treated
3661 as 'x'. The following induces an error, until -std is added to get
3662 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3663 array size at least. It's necessary to write '\x00'==0 to get something
3664 that's true only with -std. */
3665 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3666
3667 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3668 inside strings and character constants. */
3669 #define FOO(x) 'x'
3670 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3671
3672 int test (int i, double x);
3673 struct s1 {int (*f) (int a);};
3674 struct s2 {int (*f) (double a);};
3675 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3676 int argc;
3677 char **argv;
3678 int
3679 main ()
3680 {
3681 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3682 ;
3683 return 0;
3684 }
3685 _ACEOF
3686 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3687 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3688 do
3689 CC="$ac_save_CC $ac_arg"
3690 if ac_fn_c_try_compile "$LINENO"; then :
3691 ac_cv_prog_cc_c89=$ac_arg
3692 fi
3693 rm -f core conftest.err conftest.$ac_objext
3694 test "x$ac_cv_prog_cc_c89" != "xno" && break
3695 done
3696 rm -f conftest.$ac_ext
3697 CC=$ac_save_CC
3698
3699 fi
3700 # AC_CACHE_VAL
3701 case "x$ac_cv_prog_cc_c89" in
3702 x)
3703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3704 $as_echo "none needed" >&6; } ;;
3705 xno)
3706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3707 $as_echo "unsupported" >&6; } ;;
3708 *)
3709 CC="$CC $ac_cv_prog_cc_c89"
3710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3711 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3712 esac
3713 if test "x$ac_cv_prog_cc_c89" != xno; then :
3714
3715 fi
3716
3717 ac_ext=c
3718 ac_cpp='$CPP $CPPFLAGS'
3719 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3720 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3721 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3722
3723 depcc="$CC" am_compiler_list=
3724
3725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3726 $as_echo_n "checking dependency style of $depcc... " >&6; }
3727 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3728 $as_echo_n "(cached) " >&6
3729 else
3730 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3731 # We make a subdir and do the tests there. Otherwise we can end up
3732 # making bogus files that we don't know about and never remove. For
3733 # instance it was reported that on HP-UX the gcc test will end up
3734 # making a dummy file named `D' -- because `-MD' means `put the output
3735 # in D'.
3736 rm -rf conftest.dir
3737 mkdir conftest.dir
3738 # Copy depcomp to subdir because otherwise we won't find it if we're
3739 # using a relative directory.
3740 cp "$am_depcomp" conftest.dir
3741 cd conftest.dir
3742 # We will build objects and dependencies in a subdirectory because
3743 # it helps to detect inapplicable dependency modes. For instance
3744 # both Tru64's cc and ICC support -MD to output dependencies as a
3745 # side effect of compilation, but ICC will put the dependencies in
3746 # the current directory while Tru64 will put them in the object
3747 # directory.
3748 mkdir sub
3749
3750 am_cv_CC_dependencies_compiler_type=none
3751 if test "$am_compiler_list" = ""; then
3752 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3753 fi
3754 am__universal=false
3755 case " $depcc " in #(
3756 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3757 esac
3758
3759 for depmode in $am_compiler_list; do
3760 # Setup a source with many dependencies, because some compilers
3761 # like to wrap large dependency lists on column 80 (with \), and
3762 # we should not choose a depcomp mode which is confused by this.
3763 #
3764 # We need to recreate these files for each test, as the compiler may
3765 # overwrite some of them when testing with obscure command lines.
3766 # This happens at least with the AIX C compiler.
3767 : > sub/conftest.c
3768 for i in 1 2 3 4 5 6; do
3769 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3770 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3771 # Solaris 8's {/usr,}/bin/sh.
3772 touch sub/conftst$i.h
3773 done
3774 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3775
3776 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3777 # mode. It turns out that the SunPro C++ compiler does not properly
3778 # handle `-M -o', and we need to detect this. Also, some Intel
3779 # versions had trouble with output in subdirs
3780 am__obj=sub/conftest.${OBJEXT-o}
3781 am__minus_obj="-o $am__obj"
3782 case $depmode in
3783 gcc)
3784 # This depmode causes a compiler race in universal mode.
3785 test "$am__universal" = false || continue
3786 ;;
3787 nosideeffect)
3788 # after this tag, mechanisms are not by side-effect, so they'll
3789 # only be used when explicitly requested
3790 if test "x$enable_dependency_tracking" = xyes; then
3791 continue
3792 else
3793 break
3794 fi
3795 ;;
3796 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3797 # This compiler won't grok `-c -o', but also, the minuso test has
3798 # not run yet. These depmodes are late enough in the game, and
3799 # so weak that their functioning should not be impacted.
3800 am__obj=conftest.${OBJEXT-o}
3801 am__minus_obj=
3802 ;;
3803 none) break ;;
3804 esac
3805 if depmode=$depmode \
3806 source=sub/conftest.c object=$am__obj \
3807 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3808 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3809 >/dev/null 2>conftest.err &&
3810 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3811 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3812 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3813 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3814 # icc doesn't choke on unknown options, it will just issue warnings
3815 # or remarks (even with -Werror). So we grep stderr for any message
3816 # that says an option was ignored or not supported.
3817 # When given -MP, icc 7.0 and 7.1 complain thusly:
3818 # icc: Command line warning: ignoring option '-M'; no argument required
3819 # The diagnosis changed in icc 8.0:
3820 # icc: Command line remark: option '-MP' not supported
3821 if (grep 'ignoring option' conftest.err ||
3822 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3823 am_cv_CC_dependencies_compiler_type=$depmode
3824 break
3825 fi
3826 fi
3827 done
3828
3829 cd ..
3830 rm -rf conftest.dir
3831 else
3832 am_cv_CC_dependencies_compiler_type=none
3833 fi
3834
3835 fi
3836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3837 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3838 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3839
3840 if
3841 test "x$enable_dependency_tracking" != xno \
3842 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3843 am__fastdepCC_TRUE=
3844 am__fastdepCC_FALSE='#'
3845 else
3846 am__fastdepCC_TRUE='#'
3847 am__fastdepCC_FALSE=
3848 fi
3849
3850
3851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3852 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3853 if ${ac_cv_prog_cc_c99+:} false; then :
3854 $as_echo_n "(cached) " >&6
3855 else
3856 ac_cv_prog_cc_c99=no
3857 ac_save_CC=$CC
3858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3859 /* end confdefs.h. */
3860 #include <stdarg.h>
3861 #include <stdbool.h>
3862 #include <stdlib.h>
3863 #include <wchar.h>
3864 #include <stdio.h>
3865
3866 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3867 #define debug(...) fprintf (stderr, __VA_ARGS__)
3868 #define showlist(...) puts (#__VA_ARGS__)
3869 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3870 static void
3871 test_varargs_macros (void)
3872 {
3873 int x = 1234;
3874 int y = 5678;
3875 debug ("Flag");
3876 debug ("X = %d\n", x);
3877 showlist (The first, second, and third items.);
3878 report (x>y, "x is %d but y is %d", x, y);
3879 }
3880
3881 // Check long long types.
3882 #define BIG64 18446744073709551615ull
3883 #define BIG32 4294967295ul
3884 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3885 #if !BIG_OK
3886 your preprocessor is broken;
3887 #endif
3888 #if BIG_OK
3889 #else
3890 your preprocessor is broken;
3891 #endif
3892 static long long int bignum = -9223372036854775807LL;
3893 static unsigned long long int ubignum = BIG64;
3894
3895 struct incomplete_array
3896 {
3897 int datasize;
3898 double data[];
3899 };
3900
3901 struct named_init {
3902 int number;
3903 const wchar_t *name;
3904 double average;
3905 };
3906
3907 typedef const char *ccp;
3908
3909 static inline int
3910 test_restrict (ccp restrict text)
3911 {
3912 // See if C++-style comments work.
3913 // Iterate through items via the restricted pointer.
3914 // Also check for declarations in for loops.
3915 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3916 continue;
3917 return 0;
3918 }
3919
3920 // Check varargs and va_copy.
3921 static void
3922 test_varargs (const char *format, ...)
3923 {
3924 va_list args;
3925 va_start (args, format);
3926 va_list args_copy;
3927 va_copy (args_copy, args);
3928
3929 const char *str;
3930 int number;
3931 float fnumber;
3932
3933 while (*format)
3934 {
3935 switch (*format++)
3936 {
3937 case 's': // string
3938 str = va_arg (args_copy, const char *);
3939 break;
3940 case 'd': // int
3941 number = va_arg (args_copy, int);
3942 break;
3943 case 'f': // float
3944 fnumber = va_arg (args_copy, double);
3945 break;
3946 default:
3947 break;
3948 }
3949 }
3950 va_end (args_copy);
3951 va_end (args);
3952 }
3953
3954 int
3955 main ()
3956 {
3957
3958 // Check bool.
3959 _Bool success = false;
3960
3961 // Check restrict.
3962 if (test_restrict ("String literal") == 0)
3963 success = true;
3964 char *restrict newvar = "Another string";
3965
3966 // Check varargs.
3967 test_varargs ("s, d' f .", "string", 65, 34.234);
3968 test_varargs_macros ();
3969
3970 // Check flexible array members.
3971 struct incomplete_array *ia =
3972 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3973 ia->datasize = 10;
3974 for (int i = 0; i < ia->datasize; ++i)
3975 ia->data[i] = i * 1.234;
3976
3977 // Check named initializers.
3978 struct named_init ni = {
3979 .number = 34,
3980 .name = L"Test wide string",
3981 .average = 543.34343,
3982 };
3983
3984 ni.number = 58;
3985
3986 int dynamic_array[ni.number];
3987 dynamic_array[ni.number - 1] = 543;
3988
3989 // work around unused variable warnings
3990 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3991 || dynamic_array[ni.number - 1] != 543);
3992
3993 ;
3994 return 0;
3995 }
3996 _ACEOF
3997 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
3998 do
3999 CC="$ac_save_CC $ac_arg"
4000 if ac_fn_c_try_compile "$LINENO"; then :
4001 ac_cv_prog_cc_c99=$ac_arg
4002 fi
4003 rm -f core conftest.err conftest.$ac_objext
4004 test "x$ac_cv_prog_cc_c99" != "xno" && break
4005 done
4006 rm -f conftest.$ac_ext
4007 CC=$ac_save_CC
4008
4009 fi
4010 # AC_CACHE_VAL
4011 case "x$ac_cv_prog_cc_c99" in
4012 x)
4013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4014 $as_echo "none needed" >&6; } ;;
4015 xno)
4016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4017 $as_echo "unsupported" >&6; } ;;
4018 *)
4019 CC="$CC $ac_cv_prog_cc_c99"
4020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4021 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4022 esac
4023 if test "x$ac_cv_prog_cc_c99" != xno; then :
4024
4025 fi
4026
4027
4028
4029 ac_ext=c
4030 ac_cpp='$CPP $CPPFLAGS'
4031 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4032 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4033 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4035 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4036 # On Suns, sometimes $CPP names a directory.
4037 if test -n "$CPP" && test -d "$CPP"; then
4038 CPP=
4039 fi
4040 if test -z "$CPP"; then
4041 if ${ac_cv_prog_CPP+:} false; then :
4042 $as_echo_n "(cached) " >&6
4043 else
4044 # Double quotes because CPP needs to be expanded
4045 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4046 do
4047 ac_preproc_ok=false
4048 for ac_c_preproc_warn_flag in '' yes
4049 do
4050 # Use a header file that comes with gcc, so configuring glibc
4051 # with a fresh cross-compiler works.
4052 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4053 # <limits.h> exists even on freestanding compilers.
4054 # On the NeXT, cc -E runs the code through the compiler's parser,
4055 # not just through cpp. "Syntax error" is here to catch this case.
4056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4057 /* end confdefs.h. */
4058 #ifdef __STDC__
4059 # include <limits.h>
4060 #else
4061 # include <assert.h>
4062 #endif
4063 Syntax error
4064 _ACEOF
4065 if ac_fn_c_try_cpp "$LINENO"; then :
4066
4067 else
4068 # Broken: fails on valid input.
4069 continue
4070 fi
4071 rm -f conftest.err conftest.i conftest.$ac_ext
4072
4073 # OK, works on sane cases. Now check whether nonexistent headers
4074 # can be detected and how.
4075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4076 /* end confdefs.h. */
4077 #include <ac_nonexistent.h>
4078 _ACEOF
4079 if ac_fn_c_try_cpp "$LINENO"; then :
4080 # Broken: success on invalid input.
4081 continue
4082 else
4083 # Passes both tests.
4084 ac_preproc_ok=:
4085 break
4086 fi
4087 rm -f conftest.err conftest.i conftest.$ac_ext
4088
4089 done
4090 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4091 rm -f conftest.i conftest.err conftest.$ac_ext
4092 if $ac_preproc_ok; then :
4093 break
4094 fi
4095
4096 done
4097 ac_cv_prog_CPP=$CPP
4098
4099 fi
4100 CPP=$ac_cv_prog_CPP
4101 else
4102 ac_cv_prog_CPP=$CPP
4103 fi
4104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4105 $as_echo "$CPP" >&6; }
4106 ac_preproc_ok=false
4107 for ac_c_preproc_warn_flag in '' yes
4108 do
4109 # Use a header file that comes with gcc, so configuring glibc
4110 # with a fresh cross-compiler works.
4111 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4112 # <limits.h> exists even on freestanding compilers.
4113 # On the NeXT, cc -E runs the code through the compiler's parser,
4114 # not just through cpp. "Syntax error" is here to catch this case.
4115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4116 /* end confdefs.h. */
4117 #ifdef __STDC__
4118 # include <limits.h>
4119 #else
4120 # include <assert.h>
4121 #endif
4122 Syntax error
4123 _ACEOF
4124 if ac_fn_c_try_cpp "$LINENO"; then :
4125
4126 else
4127 # Broken: fails on valid input.
4128 continue
4129 fi
4130 rm -f conftest.err conftest.i conftest.$ac_ext
4131
4132 # OK, works on sane cases. Now check whether nonexistent headers
4133 # can be detected and how.
4134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4135 /* end confdefs.h. */
4136 #include <ac_nonexistent.h>
4137 _ACEOF
4138 if ac_fn_c_try_cpp "$LINENO"; then :
4139 # Broken: success on invalid input.
4140 continue
4141 else
4142 # Passes both tests.
4143 ac_preproc_ok=:
4144 break
4145 fi
4146 rm -f conftest.err conftest.i conftest.$ac_ext
4147
4148 done
4149 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4150 rm -f conftest.i conftest.err conftest.$ac_ext
4151 if $ac_preproc_ok; then :
4152
4153 else
4154 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4155 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4156 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4157 See \`config.log' for more details" "$LINENO" 5; }
4158 fi
4159
4160 ac_ext=c
4161 ac_cpp='$CPP $CPPFLAGS'
4162 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4163 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4164 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4165
4166
4167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4168 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4169 if ${ac_cv_path_GREP+:} false; then :
4170 $as_echo_n "(cached) " >&6
4171 else
4172 if test -z "$GREP"; then
4173 ac_path_GREP_found=false
4174 # Loop through the user's path and test for each of PROGNAME-LIST
4175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4176 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4177 do
4178 IFS=$as_save_IFS
4179 test -z "$as_dir" && as_dir=.
4180 for ac_prog in grep ggrep; do
4181 for ac_exec_ext in '' $ac_executable_extensions; do
4182 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4183 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4184 # Check for GNU ac_path_GREP and select it if it is found.
4185 # Check for GNU $ac_path_GREP
4186 case `"$ac_path_GREP" --version 2>&1` in
4187 *GNU*)
4188 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4189 *)
4190 ac_count=0
4191 $as_echo_n 0123456789 >"conftest.in"
4192 while :
4193 do
4194 cat "conftest.in" "conftest.in" >"conftest.tmp"
4195 mv "conftest.tmp" "conftest.in"
4196 cp "conftest.in" "conftest.nl"
4197 $as_echo 'GREP' >> "conftest.nl"
4198 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4199 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4200 as_fn_arith $ac_count + 1 && ac_count=$as_val
4201 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4202 # Best one so far, save it but keep looking for a better one
4203 ac_cv_path_GREP="$ac_path_GREP"
4204 ac_path_GREP_max=$ac_count
4205 fi
4206 # 10*(2^10) chars as input seems more than enough
4207 test $ac_count -gt 10 && break
4208 done
4209 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4210 esac
4211
4212 $ac_path_GREP_found && break 3
4213 done
4214 done
4215 done
4216 IFS=$as_save_IFS
4217 if test -z "$ac_cv_path_GREP"; then
4218 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4219 fi
4220 else
4221 ac_cv_path_GREP=$GREP
4222 fi
4223
4224 fi
4225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4226 $as_echo "$ac_cv_path_GREP" >&6; }
4227 GREP="$ac_cv_path_GREP"
4228
4229
4230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4231 $as_echo_n "checking for egrep... " >&6; }
4232 if ${ac_cv_path_EGREP+:} false; then :
4233 $as_echo_n "(cached) " >&6
4234 else
4235 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4236 then ac_cv_path_EGREP="$GREP -E"
4237 else
4238 if test -z "$EGREP"; then
4239 ac_path_EGREP_found=false
4240 # Loop through the user's path and test for each of PROGNAME-LIST
4241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4242 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4243 do
4244 IFS=$as_save_IFS
4245 test -z "$as_dir" && as_dir=.
4246 for ac_prog in egrep; do
4247 for ac_exec_ext in '' $ac_executable_extensions; do
4248 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4249 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4250 # Check for GNU ac_path_EGREP and select it if it is found.
4251 # Check for GNU $ac_path_EGREP
4252 case `"$ac_path_EGREP" --version 2>&1` in
4253 *GNU*)
4254 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4255 *)
4256 ac_count=0
4257 $as_echo_n 0123456789 >"conftest.in"
4258 while :
4259 do
4260 cat "conftest.in" "conftest.in" >"conftest.tmp"
4261 mv "conftest.tmp" "conftest.in"
4262 cp "conftest.in" "conftest.nl"
4263 $as_echo 'EGREP' >> "conftest.nl"
4264 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4265 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4266 as_fn_arith $ac_count + 1 && ac_count=$as_val
4267 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4268 # Best one so far, save it but keep looking for a better one
4269 ac_cv_path_EGREP="$ac_path_EGREP"
4270 ac_path_EGREP_max=$ac_count
4271 fi
4272 # 10*(2^10) chars as input seems more than enough
4273 test $ac_count -gt 10 && break
4274 done
4275 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4276 esac
4277
4278 $ac_path_EGREP_found && break 3
4279 done
4280 done
4281 done
4282 IFS=$as_save_IFS
4283 if test -z "$ac_cv_path_EGREP"; then
4284 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4285 fi
4286 else
4287 ac_cv_path_EGREP=$EGREP
4288 fi
4289
4290 fi
4291 fi
4292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4293 $as_echo "$ac_cv_path_EGREP" >&6; }
4294 EGREP="$ac_cv_path_EGREP"
4295
4296
4297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4298 $as_echo_n "checking for ANSI C header files... " >&6; }
4299 if ${ac_cv_header_stdc+:} false; then :
4300 $as_echo_n "(cached) " >&6
4301 else
4302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4303 /* end confdefs.h. */
4304 #include <stdlib.h>
4305 #include <stdarg.h>
4306 #include <string.h>
4307 #include <float.h>
4308
4309 int
4310 main ()
4311 {
4312
4313 ;
4314 return 0;
4315 }
4316 _ACEOF
4317 if ac_fn_c_try_compile "$LINENO"; then :
4318 ac_cv_header_stdc=yes
4319 else
4320 ac_cv_header_stdc=no
4321 fi
4322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4323
4324 if test $ac_cv_header_stdc = yes; then
4325 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4327 /* end confdefs.h. */
4328 #include <string.h>
4329
4330 _ACEOF
4331 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4332 $EGREP "memchr" >/dev/null 2>&1; then :
4333
4334 else
4335 ac_cv_header_stdc=no
4336 fi
4337 rm -f conftest*
4338
4339 fi
4340
4341 if test $ac_cv_header_stdc = yes; then
4342 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4344 /* end confdefs.h. */
4345 #include <stdlib.h>
4346
4347 _ACEOF
4348 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4349 $EGREP "free" >/dev/null 2>&1; then :
4350
4351 else
4352 ac_cv_header_stdc=no
4353 fi
4354 rm -f conftest*
4355
4356 fi
4357
4358 if test $ac_cv_header_stdc = yes; then
4359 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4360 if test "$cross_compiling" = yes; then :
4361 :
4362 else
4363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4364 /* end confdefs.h. */
4365 #include <ctype.h>
4366 #include <stdlib.h>
4367 #if ((' ' & 0x0FF) == 0x020)
4368 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4369 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4370 #else
4371 # define ISLOWER(c) \
4372 (('a' <= (c) && (c) <= 'i') \
4373 || ('j' <= (c) && (c) <= 'r') \
4374 || ('s' <= (c) && (c) <= 'z'))
4375 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4376 #endif
4377
4378 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4379 int
4380 main ()
4381 {
4382 int i;
4383 for (i = 0; i < 256; i++)
4384 if (XOR (islower (i), ISLOWER (i))
4385 || toupper (i) != TOUPPER (i))
4386 return 2;
4387 return 0;
4388 }
4389 _ACEOF
4390 if ac_fn_c_try_run "$LINENO"; then :
4391
4392 else
4393 ac_cv_header_stdc=no
4394 fi
4395 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4396 conftest.$ac_objext conftest.beam conftest.$ac_ext
4397 fi
4398
4399 fi
4400 fi
4401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4402 $as_echo "$ac_cv_header_stdc" >&6; }
4403 if test $ac_cv_header_stdc = yes; then
4404
4405 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4406
4407 fi
4408
4409 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4410 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4411 inttypes.h stdint.h unistd.h
4412 do :
4413 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4414 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4415 "
4416 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4417 cat >>confdefs.h <<_ACEOF
4418 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4419 _ACEOF
4420
4421 fi
4422
4423 done
4424
4425
4426
4427
4428
4429
4430 ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
4431 if test "x$ac_cv_have_decl___clang__" = xyes; then :
4432 CLANGCC="yes"
4433 else
4434 CLANGCC="no"
4435 fi
4436
4437 ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
4438 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
4439 INTELCC="yes"
4440 else
4441 INTELCC="no"
4442 fi
4443
4444 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4445 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
4446 SUNCC="yes"
4447 else
4448 SUNCC="no"
4449 fi
4450
4451
4452
4453
4454 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4455 if test -n "$ac_tool_prefix"; then
4456 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4457 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4459 $as_echo_n "checking for $ac_word... " >&6; }
4460 if ${ac_cv_path_PKG_CONFIG+:} false; then :
4461 $as_echo_n "(cached) " >&6
4462 else
4463 case $PKG_CONFIG in
4464 [\\/]* | ?:[\\/]*)
4465 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4466 ;;
4467 *)
4468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4469 for as_dir in $PATH
4470 do
4471 IFS=$as_save_IFS
4472 test -z "$as_dir" && as_dir=.
4473 for ac_exec_ext in '' $ac_executable_extensions; do
4474 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4475 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4476 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4477 break 2
4478 fi
4479 done
4480 done
4481 IFS=$as_save_IFS
4482
4483 ;;
4484 esac
4485 fi
4486 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4487 if test -n "$PKG_CONFIG"; then
4488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4489 $as_echo "$PKG_CONFIG" >&6; }
4490 else
4491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4492 $as_echo "no" >&6; }
4493 fi
4494
4495
4496 fi
4497 if test -z "$ac_cv_path_PKG_CONFIG"; then
4498 ac_pt_PKG_CONFIG=$PKG_CONFIG
4499 # Extract the first word of "pkg-config", so it can be a program name with args.
4500 set dummy pkg-config; ac_word=$2
4501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4502 $as_echo_n "checking for $ac_word... " >&6; }
4503 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4504 $as_echo_n "(cached) " >&6
4505 else
4506 case $ac_pt_PKG_CONFIG in
4507 [\\/]* | ?:[\\/]*)
4508 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4509 ;;
4510 *)
4511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4512 for as_dir in $PATH
4513 do
4514 IFS=$as_save_IFS
4515 test -z "$as_dir" && as_dir=.
4516 for ac_exec_ext in '' $ac_executable_extensions; do
4517 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4518 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4519 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4520 break 2
4521 fi
4522 done
4523 done
4524 IFS=$as_save_IFS
4525
4526 ;;
4527 esac
4528 fi
4529 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4530 if test -n "$ac_pt_PKG_CONFIG"; then
4531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4532 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
4533 else
4534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4535 $as_echo "no" >&6; }
4536 fi
4537
4538 if test "x$ac_pt_PKG_CONFIG" = x; then
4539 PKG_CONFIG=""
4540 else
4541 case $cross_compiling:$ac_tool_warned in
4542 yes:)
4543 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4544 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4545 ac_tool_warned=yes ;;
4546 esac
4547 PKG_CONFIG=$ac_pt_PKG_CONFIG
4548 fi
4549 else
4550 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4551 fi
4552
4553 fi
4554 if test -n "$PKG_CONFIG"; then
4555 _pkg_min_version=0.9.0
4556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4557 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4558 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4560 $as_echo "yes" >&6; }
4561 else
4562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4563 $as_echo "no" >&6; }
4564 PKG_CONFIG=""
4565 fi
4566
4567 fi
4568 # Make sure we can run config.sub.
4569 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4570 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4571
4572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4573 $as_echo_n "checking build system type... " >&6; }
4574 if ${ac_cv_build+:} false; then :
4575 $as_echo_n "(cached) " >&6
4576 else
4577 ac_build_alias=$build_alias
4578 test "x$ac_build_alias" = x &&
4579 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4580 test "x$ac_build_alias" = x &&
4581 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4582 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4583 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4584
4585 fi
4586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4587 $as_echo "$ac_cv_build" >&6; }
4588 case $ac_cv_build in
4589 *-*-*) ;;
4590 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4591 esac
4592 build=$ac_cv_build
4593 ac_save_IFS=$IFS; IFS='-'
4594 set x $ac_cv_build
4595 shift
4596 build_cpu=$1
4597 build_vendor=$2
4598 shift; shift
4599 # Remember, the first character of IFS is used to create $*,
4600 # except with old shells:
4601 build_os=$*
4602 IFS=$ac_save_IFS
4603 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4604
4605
4606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4607 $as_echo_n "checking host system type... " >&6; }
4608 if ${ac_cv_host+:} false; then :
4609 $as_echo_n "(cached) " >&6
4610 else
4611 if test "x$host_alias" = x; then
4612 ac_cv_host=$ac_cv_build
4613 else
4614 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4615 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4616 fi
4617
4618 fi
4619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4620 $as_echo "$ac_cv_host" >&6; }
4621 case $ac_cv_host in
4622 *-*-*) ;;
4623 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4624 esac
4625 host=$ac_cv_host
4626 ac_save_IFS=$IFS; IFS='-'
4627 set x $ac_cv_host
4628 shift
4629 host_cpu=$1
4630 host_vendor=$2
4631 shift; shift
4632 # Remember, the first character of IFS is used to create $*,
4633 # except with old shells:
4634 host_os=$*
4635 IFS=$ac_save_IFS
4636 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4637
4638
4639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4640 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4641 if ${ac_cv_path_SED+:} false; then :
4642 $as_echo_n "(cached) " >&6
4643 else
4644 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4645 for ac_i in 1 2 3 4 5 6 7; do
4646 ac_script="$ac_script$as_nl$ac_script"
4647 done
4648 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4649 { ac_script=; unset ac_script;}
4650 if test -z "$SED"; then
4651 ac_path_SED_found=false
4652 # Loop through the user's path and test for each of PROGNAME-LIST
4653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4654 for as_dir in $PATH
4655 do
4656 IFS=$as_save_IFS
4657 test -z "$as_dir" && as_dir=.
4658 for ac_prog in sed gsed; do
4659 for ac_exec_ext in '' $ac_executable_extensions; do
4660 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4661 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4662 # Check for GNU ac_path_SED and select it if it is found.
4663 # Check for GNU $ac_path_SED
4664 case `"$ac_path_SED" --version 2>&1` in
4665 *GNU*)
4666 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4667 *)
4668 ac_count=0
4669 $as_echo_n 0123456789 >"conftest.in"
4670 while :
4671 do
4672 cat "conftest.in" "conftest.in" >"conftest.tmp"
4673 mv "conftest.tmp" "conftest.in"
4674 cp "conftest.in" "conftest.nl"
4675 $as_echo '' >> "conftest.nl"
4676 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4677 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4678 as_fn_arith $ac_count + 1 && ac_count=$as_val
4679 if test $ac_count -gt ${ac_path_SED_max-0}; then
4680 # Best one so far, save it but keep looking for a better one
4681 ac_cv_path_SED="$ac_path_SED"
4682 ac_path_SED_max=$ac_count
4683 fi
4684 # 10*(2^10) chars as input seems more than enough
4685 test $ac_count -gt 10 && break
4686 done
4687 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4688 esac
4689
4690 $ac_path_SED_found && break 3
4691 done
4692 done
4693 done
4694 IFS=$as_save_IFS
4695 if test -z "$ac_cv_path_SED"; then
4696 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4697 fi
4698 else
4699 ac_cv_path_SED=$SED
4700 fi
4701
4702 fi
4703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4704 $as_echo "$ac_cv_path_SED" >&6; }
4705 SED="$ac_cv_path_SED"
4706 rm -f conftest.sed
4707
4708
4709
4710
4711
4712
4713 # Check whether --enable-selective-werror was given.
4714 if test "${enable_selective_werror+set}" = set; then :
4715 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4716 else
4717 SELECTIVE_WERROR=yes
4718 fi
4719
4720
4721
4722
4723
4724 # -v is too short to test reliably with XORG_TESTSET_CFLAG
4725 if test "x$SUNCC" = "xyes"; then
4726 BASE_CFLAGS="-v"
4727 else
4728 BASE_CFLAGS=""
4729 fi
4730
4731 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
4732
4733
4734
4735
4736
4737
4738
4739
4740
4741
4742
4743
4744
4745 xorg_testset_save_CFLAGS="$CFLAGS"
4746
4747 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4748 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4750 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4751 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4752 $as_echo_n "(cached) " >&6
4753 else
4754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4755 /* end confdefs.h. */
4756 int i;
4757 _ACEOF
4758 if ac_fn_c_try_compile "$LINENO"; then :
4759 xorg_cv_cc_flag_unknown_warning_option=yes
4760 else
4761 xorg_cv_cc_flag_unknown_warning_option=no
4762 fi
4763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4764 fi
4765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4766 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4767 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4768 CFLAGS="$xorg_testset_save_CFLAGS"
4769 fi
4770
4771 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4772 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4773 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4774 fi
4775 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4777 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4778 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4779 $as_echo_n "(cached) " >&6
4780 else
4781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4782 /* end confdefs.h. */
4783 int i;
4784 _ACEOF
4785 if ac_fn_c_try_compile "$LINENO"; then :
4786 xorg_cv_cc_flag_unused_command_line_argument=yes
4787 else
4788 xorg_cv_cc_flag_unused_command_line_argument=no
4789 fi
4790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4791 fi
4792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4793 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4794 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4795 CFLAGS="$xorg_testset_save_CFLAGS"
4796 fi
4797
4798 found="no"
4799
4800 if test $found = "no" ; then
4801 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4802 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4803 fi
4804
4805 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4806 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4807 fi
4808
4809 CFLAGS="$CFLAGS -Wall"
4810
4811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
4812 $as_echo_n "checking if $CC supports -Wall... " >&6; }
4813 cacheid=xorg_cv_cc_flag__Wall
4814 if eval \${$cacheid+:} false; then :
4815 $as_echo_n "(cached) " >&6
4816 else
4817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4818 /* end confdefs.h. */
4819 int i;
4820 int
4821 main ()
4822 {
4823
4824 ;
4825 return 0;
4826 }
4827 _ACEOF
4828 if ac_fn_c_try_link "$LINENO"; then :
4829 eval $cacheid=yes
4830 else
4831 eval $cacheid=no
4832 fi
4833 rm -f core conftest.err conftest.$ac_objext \
4834 conftest$ac_exeext conftest.$ac_ext
4835 fi
4836
4837
4838 CFLAGS="$xorg_testset_save_CFLAGS"
4839
4840 eval supported=\$$cacheid
4841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4842 $as_echo "$supported" >&6; }
4843 if test "$supported" = "yes" ; then
4844 BASE_CFLAGS="$BASE_CFLAGS -Wall"
4845 found="yes"
4846 fi
4847 fi
4848
4849
4850
4851
4852
4853
4854
4855
4856
4857
4858
4859
4860
4861
4862
4863 xorg_testset_save_CFLAGS="$CFLAGS"
4864
4865 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4866 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4868 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4869 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4870 $as_echo_n "(cached) " >&6
4871 else
4872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4873 /* end confdefs.h. */
4874 int i;
4875 _ACEOF
4876 if ac_fn_c_try_compile "$LINENO"; then :
4877 xorg_cv_cc_flag_unknown_warning_option=yes
4878 else
4879 xorg_cv_cc_flag_unknown_warning_option=no
4880 fi
4881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4882 fi
4883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4884 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4885 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4886 CFLAGS="$xorg_testset_save_CFLAGS"
4887 fi
4888
4889 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4890 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4891 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4892 fi
4893 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4895 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4896 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4897 $as_echo_n "(cached) " >&6
4898 else
4899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4900 /* end confdefs.h. */
4901 int i;
4902 _ACEOF
4903 if ac_fn_c_try_compile "$LINENO"; then :
4904 xorg_cv_cc_flag_unused_command_line_argument=yes
4905 else
4906 xorg_cv_cc_flag_unused_command_line_argument=no
4907 fi
4908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4909 fi
4910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4911 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4912 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4913 CFLAGS="$xorg_testset_save_CFLAGS"
4914 fi
4915
4916 found="no"
4917
4918 if test $found = "no" ; then
4919 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4920 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4921 fi
4922
4923 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4924 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4925 fi
4926
4927 CFLAGS="$CFLAGS -Wpointer-arith"
4928
4929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
4930 $as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
4931 cacheid=xorg_cv_cc_flag__Wpointer_arith
4932 if eval \${$cacheid+:} false; then :
4933 $as_echo_n "(cached) " >&6
4934 else
4935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4936 /* end confdefs.h. */
4937 int i;
4938 int
4939 main ()
4940 {
4941
4942 ;
4943 return 0;
4944 }
4945 _ACEOF
4946 if ac_fn_c_try_link "$LINENO"; then :
4947 eval $cacheid=yes
4948 else
4949 eval $cacheid=no
4950 fi
4951 rm -f core conftest.err conftest.$ac_objext \
4952 conftest$ac_exeext conftest.$ac_ext
4953 fi
4954
4955
4956 CFLAGS="$xorg_testset_save_CFLAGS"
4957
4958 eval supported=\$$cacheid
4959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4960 $as_echo "$supported" >&6; }
4961 if test "$supported" = "yes" ; then
4962 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
4963 found="yes"
4964 fi
4965 fi
4966
4967
4968
4969
4970
4971
4972
4973
4974
4975
4976
4977
4978
4979
4980
4981 xorg_testset_save_CFLAGS="$CFLAGS"
4982
4983 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4984 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4986 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4987 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4988 $as_echo_n "(cached) " >&6
4989 else
4990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4991 /* end confdefs.h. */
4992 int i;
4993 _ACEOF
4994 if ac_fn_c_try_compile "$LINENO"; then :
4995 xorg_cv_cc_flag_unknown_warning_option=yes
4996 else
4997 xorg_cv_cc_flag_unknown_warning_option=no
4998 fi
4999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5000 fi
5001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5002 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5003 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5004 CFLAGS="$xorg_testset_save_CFLAGS"
5005 fi
5006
5007 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5008 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5009 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5010 fi
5011 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5013 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5014 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5015 $as_echo_n "(cached) " >&6
5016 else
5017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5018 /* end confdefs.h. */
5019 int i;
5020 _ACEOF
5021 if ac_fn_c_try_compile "$LINENO"; then :
5022 xorg_cv_cc_flag_unused_command_line_argument=yes
5023 else
5024 xorg_cv_cc_flag_unused_command_line_argument=no
5025 fi
5026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5027 fi
5028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5029 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5030 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5031 CFLAGS="$xorg_testset_save_CFLAGS"
5032 fi
5033
5034 found="no"
5035
5036 if test $found = "no" ; then
5037 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5038 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5039 fi
5040
5041 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5042 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5043 fi
5044
5045 CFLAGS="$CFLAGS -Wmissing-declarations"
5046
5047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
5048 $as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
5049 cacheid=xorg_cv_cc_flag__Wmissing_declarations
5050 if eval \${$cacheid+:} false; then :
5051 $as_echo_n "(cached) " >&6
5052 else
5053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5054 /* end confdefs.h. */
5055 int i;
5056 int
5057 main ()
5058 {
5059
5060 ;
5061 return 0;
5062 }
5063 _ACEOF
5064 if ac_fn_c_try_link "$LINENO"; then :
5065 eval $cacheid=yes
5066 else
5067 eval $cacheid=no
5068 fi
5069 rm -f core conftest.err conftest.$ac_objext \
5070 conftest$ac_exeext conftest.$ac_ext
5071 fi
5072
5073
5074 CFLAGS="$xorg_testset_save_CFLAGS"
5075
5076 eval supported=\$$cacheid
5077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5078 $as_echo "$supported" >&6; }
5079 if test "$supported" = "yes" ; then
5080 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5081 found="yes"
5082 fi
5083 fi
5084
5085
5086
5087
5088
5089
5090
5091
5092
5093
5094
5095
5096
5097
5098
5099 xorg_testset_save_CFLAGS="$CFLAGS"
5100
5101 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5102 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5104 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5105 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5106 $as_echo_n "(cached) " >&6
5107 else
5108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5109 /* end confdefs.h. */
5110 int i;
5111 _ACEOF
5112 if ac_fn_c_try_compile "$LINENO"; then :
5113 xorg_cv_cc_flag_unknown_warning_option=yes
5114 else
5115 xorg_cv_cc_flag_unknown_warning_option=no
5116 fi
5117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5118 fi
5119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5120 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5121 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5122 CFLAGS="$xorg_testset_save_CFLAGS"
5123 fi
5124
5125 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5126 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5127 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5128 fi
5129 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5131 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5132 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5133 $as_echo_n "(cached) " >&6
5134 else
5135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5136 /* end confdefs.h. */
5137 int i;
5138 _ACEOF
5139 if ac_fn_c_try_compile "$LINENO"; then :
5140 xorg_cv_cc_flag_unused_command_line_argument=yes
5141 else
5142 xorg_cv_cc_flag_unused_command_line_argument=no
5143 fi
5144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5145 fi
5146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5147 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5148 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5149 CFLAGS="$xorg_testset_save_CFLAGS"
5150 fi
5151
5152 found="no"
5153
5154 if test $found = "no" ; then
5155 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5156 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5157 fi
5158
5159 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5160 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5161 fi
5162
5163 CFLAGS="$CFLAGS -Wformat=2"
5164
5165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5166 $as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
5167 cacheid=`$as_echo "xorg_cv_cc_flag_-Wformat=2" | $as_tr_sh`
5168 if eval \${$cacheid+:} false; then :
5169 $as_echo_n "(cached) " >&6
5170 else
5171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5172 /* end confdefs.h. */
5173 int i;
5174 int
5175 main ()
5176 {
5177
5178 ;
5179 return 0;
5180 }
5181 _ACEOF
5182 if ac_fn_c_try_link "$LINENO"; then :
5183 eval $cacheid=yes
5184 else
5185 eval $cacheid=no
5186 fi
5187 rm -f core conftest.err conftest.$ac_objext \
5188 conftest$ac_exeext conftest.$ac_ext
5189 fi
5190
5191
5192 CFLAGS="$xorg_testset_save_CFLAGS"
5193
5194 eval supported=\$$cacheid
5195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5196 $as_echo "$supported" >&6; }
5197 if test "$supported" = "yes" ; then
5198 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5199 found="yes"
5200 fi
5201 fi
5202
5203 if test $found = "no" ; then
5204 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5205 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5206 fi
5207
5208 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5209 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5210 fi
5211
5212 CFLAGS="$CFLAGS -Wformat"
5213
5214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5215 $as_echo_n "checking if $CC supports -Wformat... " >&6; }
5216 cacheid=xorg_cv_cc_flag__Wformat
5217 if eval \${$cacheid+:} false; then :
5218 $as_echo_n "(cached) " >&6
5219 else
5220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5221 /* end confdefs.h. */
5222 int i;
5223 int
5224 main ()
5225 {
5226
5227 ;
5228 return 0;
5229 }
5230 _ACEOF
5231 if ac_fn_c_try_link "$LINENO"; then :
5232 eval $cacheid=yes
5233 else
5234 eval $cacheid=no
5235 fi
5236 rm -f core conftest.err conftest.$ac_objext \
5237 conftest$ac_exeext conftest.$ac_ext
5238 fi
5239
5240
5241 CFLAGS="$xorg_testset_save_CFLAGS"
5242
5243 eval supported=\$$cacheid
5244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5245 $as_echo "$supported" >&6; }
5246 if test "$supported" = "yes" ; then
5247 BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5248 found="yes"
5249 fi
5250 fi
5251
5252
5253
5254
5255
5256
5257
5258
5259
5260
5261
5262
5263
5264
5265
5266
5267
5268 xorg_testset_save_CFLAGS="$CFLAGS"
5269
5270 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5271 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5273 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5274 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5275 $as_echo_n "(cached) " >&6
5276 else
5277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5278 /* end confdefs.h. */
5279 int i;
5280 _ACEOF
5281 if ac_fn_c_try_compile "$LINENO"; then :
5282 xorg_cv_cc_flag_unknown_warning_option=yes
5283 else
5284 xorg_cv_cc_flag_unknown_warning_option=no
5285 fi
5286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5287 fi
5288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5289 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5290 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5291 CFLAGS="$xorg_testset_save_CFLAGS"
5292 fi
5293
5294 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5295 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5296 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5297 fi
5298 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5300 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5301 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5302 $as_echo_n "(cached) " >&6
5303 else
5304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5305 /* end confdefs.h. */
5306 int i;
5307 _ACEOF
5308 if ac_fn_c_try_compile "$LINENO"; then :
5309 xorg_cv_cc_flag_unused_command_line_argument=yes
5310 else
5311 xorg_cv_cc_flag_unused_command_line_argument=no
5312 fi
5313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5314 fi
5315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5316 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5317 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5318 CFLAGS="$xorg_testset_save_CFLAGS"
5319 fi
5320
5321 found="no"
5322
5323 if test $found = "no" ; then
5324 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5325 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5326 fi
5327
5328 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5329 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5330 fi
5331
5332 CFLAGS="$CFLAGS -Wstrict-prototypes"
5333
5334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5335 $as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
5336 cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5337 if eval \${$cacheid+:} false; then :
5338 $as_echo_n "(cached) " >&6
5339 else
5340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5341 /* end confdefs.h. */
5342 int i;
5343 int
5344 main ()
5345 {
5346
5347 ;
5348 return 0;
5349 }
5350 _ACEOF
5351 if ac_fn_c_try_link "$LINENO"; then :
5352 eval $cacheid=yes
5353 else
5354 eval $cacheid=no
5355 fi
5356 rm -f core conftest.err conftest.$ac_objext \
5357 conftest$ac_exeext conftest.$ac_ext
5358 fi
5359
5360
5361 CFLAGS="$xorg_testset_save_CFLAGS"
5362
5363 eval supported=\$$cacheid
5364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5365 $as_echo "$supported" >&6; }
5366 if test "$supported" = "yes" ; then
5367 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5368 found="yes"
5369 fi
5370 fi
5371
5372
5373
5374
5375
5376
5377
5378
5379
5380
5381
5382
5383
5384
5385
5386 xorg_testset_save_CFLAGS="$CFLAGS"
5387
5388 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5389 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5391 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5392 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5393 $as_echo_n "(cached) " >&6
5394 else
5395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5396 /* end confdefs.h. */
5397 int i;
5398 _ACEOF
5399 if ac_fn_c_try_compile "$LINENO"; then :
5400 xorg_cv_cc_flag_unknown_warning_option=yes
5401 else
5402 xorg_cv_cc_flag_unknown_warning_option=no
5403 fi
5404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5405 fi
5406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5407 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5408 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5409 CFLAGS="$xorg_testset_save_CFLAGS"
5410 fi
5411
5412 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5413 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5414 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5415 fi
5416 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5418 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5419 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5420 $as_echo_n "(cached) " >&6
5421 else
5422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5423 /* end confdefs.h. */
5424 int i;
5425 _ACEOF
5426 if ac_fn_c_try_compile "$LINENO"; then :
5427 xorg_cv_cc_flag_unused_command_line_argument=yes
5428 else
5429 xorg_cv_cc_flag_unused_command_line_argument=no
5430 fi
5431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5432 fi
5433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5434 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5435 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5436 CFLAGS="$xorg_testset_save_CFLAGS"
5437 fi
5438
5439 found="no"
5440
5441 if test $found = "no" ; then
5442 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5443 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5444 fi
5445
5446 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5447 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5448 fi
5449
5450 CFLAGS="$CFLAGS -Wmissing-prototypes"
5451
5452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5453 $as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
5454 cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5455 if eval \${$cacheid+:} false; then :
5456 $as_echo_n "(cached) " >&6
5457 else
5458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5459 /* end confdefs.h. */
5460 int i;
5461 int
5462 main ()
5463 {
5464
5465 ;
5466 return 0;
5467 }
5468 _ACEOF
5469 if ac_fn_c_try_link "$LINENO"; then :
5470 eval $cacheid=yes
5471 else
5472 eval $cacheid=no
5473 fi
5474 rm -f core conftest.err conftest.$ac_objext \
5475 conftest$ac_exeext conftest.$ac_ext
5476 fi
5477
5478
5479 CFLAGS="$xorg_testset_save_CFLAGS"
5480
5481 eval supported=\$$cacheid
5482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5483 $as_echo "$supported" >&6; }
5484 if test "$supported" = "yes" ; then
5485 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5486 found="yes"
5487 fi
5488 fi
5489
5490
5491
5492
5493
5494
5495
5496
5497
5498
5499
5500
5501
5502
5503
5504 xorg_testset_save_CFLAGS="$CFLAGS"
5505
5506 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5507 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5509 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5510 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5511 $as_echo_n "(cached) " >&6
5512 else
5513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5514 /* end confdefs.h. */
5515 int i;
5516 _ACEOF
5517 if ac_fn_c_try_compile "$LINENO"; then :
5518 xorg_cv_cc_flag_unknown_warning_option=yes
5519 else
5520 xorg_cv_cc_flag_unknown_warning_option=no
5521 fi
5522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5523 fi
5524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5525 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5526 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5527 CFLAGS="$xorg_testset_save_CFLAGS"
5528 fi
5529
5530 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5531 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5532 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5533 fi
5534 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5536 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5537 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5538 $as_echo_n "(cached) " >&6
5539 else
5540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5541 /* end confdefs.h. */
5542 int i;
5543 _ACEOF
5544 if ac_fn_c_try_compile "$LINENO"; then :
5545 xorg_cv_cc_flag_unused_command_line_argument=yes
5546 else
5547 xorg_cv_cc_flag_unused_command_line_argument=no
5548 fi
5549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5550 fi
5551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5552 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5553 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5554 CFLAGS="$xorg_testset_save_CFLAGS"
5555 fi
5556
5557 found="no"
5558
5559 if test $found = "no" ; then
5560 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5561 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5562 fi
5563
5564 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5565 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5566 fi
5567
5568 CFLAGS="$CFLAGS -Wnested-externs"
5569
5570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5571 $as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
5572 cacheid=xorg_cv_cc_flag__Wnested_externs
5573 if eval \${$cacheid+:} false; then :
5574 $as_echo_n "(cached) " >&6
5575 else
5576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5577 /* end confdefs.h. */
5578 int i;
5579 int
5580 main ()
5581 {
5582
5583 ;
5584 return 0;
5585 }
5586 _ACEOF
5587 if ac_fn_c_try_link "$LINENO"; then :
5588 eval $cacheid=yes
5589 else
5590 eval $cacheid=no
5591 fi
5592 rm -f core conftest.err conftest.$ac_objext \
5593 conftest$ac_exeext conftest.$ac_ext
5594 fi
5595
5596
5597 CFLAGS="$xorg_testset_save_CFLAGS"
5598
5599 eval supported=\$$cacheid
5600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5601 $as_echo "$supported" >&6; }
5602 if test "$supported" = "yes" ; then
5603 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5604 found="yes"
5605 fi
5606 fi
5607
5608
5609
5610
5611
5612
5613
5614
5615
5616
5617
5618
5619
5620
5621
5622 xorg_testset_save_CFLAGS="$CFLAGS"
5623
5624 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5625 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5627 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5628 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5629 $as_echo_n "(cached) " >&6
5630 else
5631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5632 /* end confdefs.h. */
5633 int i;
5634 _ACEOF
5635 if ac_fn_c_try_compile "$LINENO"; then :
5636 xorg_cv_cc_flag_unknown_warning_option=yes
5637 else
5638 xorg_cv_cc_flag_unknown_warning_option=no
5639 fi
5640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5641 fi
5642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5643 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5644 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5645 CFLAGS="$xorg_testset_save_CFLAGS"
5646 fi
5647
5648 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5649 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5650 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5651 fi
5652 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5654 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5655 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5656 $as_echo_n "(cached) " >&6
5657 else
5658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5659 /* end confdefs.h. */
5660 int i;
5661 _ACEOF
5662 if ac_fn_c_try_compile "$LINENO"; then :
5663 xorg_cv_cc_flag_unused_command_line_argument=yes
5664 else
5665 xorg_cv_cc_flag_unused_command_line_argument=no
5666 fi
5667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5668 fi
5669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5670 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5671 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5672 CFLAGS="$xorg_testset_save_CFLAGS"
5673 fi
5674
5675 found="no"
5676
5677 if test $found = "no" ; then
5678 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5679 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5680 fi
5681
5682 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5683 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5684 fi
5685
5686 CFLAGS="$CFLAGS -Wbad-function-cast"
5687
5688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
5689 $as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
5690 cacheid=xorg_cv_cc_flag__Wbad_function_cast
5691 if eval \${$cacheid+:} false; then :
5692 $as_echo_n "(cached) " >&6
5693 else
5694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5695 /* end confdefs.h. */
5696 int i;
5697 int
5698 main ()
5699 {
5700
5701 ;
5702 return 0;
5703 }
5704 _ACEOF
5705 if ac_fn_c_try_link "$LINENO"; then :
5706 eval $cacheid=yes
5707 else
5708 eval $cacheid=no
5709 fi
5710 rm -f core conftest.err conftest.$ac_objext \
5711 conftest$ac_exeext conftest.$ac_ext
5712 fi
5713
5714
5715 CFLAGS="$xorg_testset_save_CFLAGS"
5716
5717 eval supported=\$$cacheid
5718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5719 $as_echo "$supported" >&6; }
5720 if test "$supported" = "yes" ; then
5721 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
5722 found="yes"
5723 fi
5724 fi
5725
5726
5727
5728
5729
5730
5731
5732
5733
5734
5735
5736
5737
5738
5739
5740 xorg_testset_save_CFLAGS="$CFLAGS"
5741
5742 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5743 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5745 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5746 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5747 $as_echo_n "(cached) " >&6
5748 else
5749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5750 /* end confdefs.h. */
5751 int i;
5752 _ACEOF
5753 if ac_fn_c_try_compile "$LINENO"; then :
5754 xorg_cv_cc_flag_unknown_warning_option=yes
5755 else
5756 xorg_cv_cc_flag_unknown_warning_option=no
5757 fi
5758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5759 fi
5760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5761 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5762 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5763 CFLAGS="$xorg_testset_save_CFLAGS"
5764 fi
5765
5766 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5767 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5768 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5769 fi
5770 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5772 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5773 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5774 $as_echo_n "(cached) " >&6
5775 else
5776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5777 /* end confdefs.h. */
5778 int i;
5779 _ACEOF
5780 if ac_fn_c_try_compile "$LINENO"; then :
5781 xorg_cv_cc_flag_unused_command_line_argument=yes
5782 else
5783 xorg_cv_cc_flag_unused_command_line_argument=no
5784 fi
5785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5786 fi
5787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5788 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5789 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5790 CFLAGS="$xorg_testset_save_CFLAGS"
5791 fi
5792
5793 found="no"
5794
5795 if test $found = "no" ; then
5796 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5797 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5798 fi
5799
5800 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5801 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5802 fi
5803
5804 CFLAGS="$CFLAGS -Wold-style-definition"
5805
5806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
5807 $as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
5808 cacheid=xorg_cv_cc_flag__Wold_style_definition
5809 if eval \${$cacheid+:} false; then :
5810 $as_echo_n "(cached) " >&6
5811 else
5812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5813 /* end confdefs.h. */
5814 int i;
5815 int
5816 main ()
5817 {
5818
5819 ;
5820 return 0;
5821 }
5822 _ACEOF
5823 if ac_fn_c_try_link "$LINENO"; then :
5824 eval $cacheid=yes
5825 else
5826 eval $cacheid=no
5827 fi
5828 rm -f core conftest.err conftest.$ac_objext \
5829 conftest$ac_exeext conftest.$ac_ext
5830 fi
5831
5832
5833 CFLAGS="$xorg_testset_save_CFLAGS"
5834
5835 eval supported=\$$cacheid
5836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5837 $as_echo "$supported" >&6; }
5838 if test "$supported" = "yes" ; then
5839 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
5840 found="yes"
5841 fi
5842 fi
5843
5844
5845
5846
5847
5848
5849
5850
5851
5852
5853
5854
5855
5856
5857
5858 xorg_testset_save_CFLAGS="$CFLAGS"
5859
5860 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5861 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5863 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5864 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5865 $as_echo_n "(cached) " >&6
5866 else
5867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5868 /* end confdefs.h. */
5869 int i;
5870 _ACEOF
5871 if ac_fn_c_try_compile "$LINENO"; then :
5872 xorg_cv_cc_flag_unknown_warning_option=yes
5873 else
5874 xorg_cv_cc_flag_unknown_warning_option=no
5875 fi
5876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5877 fi
5878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5879 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5880 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5881 CFLAGS="$xorg_testset_save_CFLAGS"
5882 fi
5883
5884 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5885 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5886 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5887 fi
5888 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5890 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5891 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5892 $as_echo_n "(cached) " >&6
5893 else
5894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5895 /* end confdefs.h. */
5896 int i;
5897 _ACEOF
5898 if ac_fn_c_try_compile "$LINENO"; then :
5899 xorg_cv_cc_flag_unused_command_line_argument=yes
5900 else
5901 xorg_cv_cc_flag_unused_command_line_argument=no
5902 fi
5903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5904 fi
5905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5906 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5907 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5908 CFLAGS="$xorg_testset_save_CFLAGS"
5909 fi
5910
5911 found="no"
5912
5913 if test $found = "no" ; then
5914 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5915 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5916 fi
5917
5918 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5919 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5920 fi
5921
5922 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
5923
5924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
5925 $as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
5926 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
5927 if eval \${$cacheid+:} false; then :
5928 $as_echo_n "(cached) " >&6
5929 else
5930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5931 /* end confdefs.h. */
5932 int i;
5933 int
5934 main ()
5935 {
5936
5937 ;
5938 return 0;
5939 }
5940 _ACEOF
5941 if ac_fn_c_try_link "$LINENO"; then :
5942 eval $cacheid=yes
5943 else
5944 eval $cacheid=no
5945 fi
5946 rm -f core conftest.err conftest.$ac_objext \
5947 conftest$ac_exeext conftest.$ac_ext
5948 fi
5949
5950
5951 CFLAGS="$xorg_testset_save_CFLAGS"
5952
5953 eval supported=\$$cacheid
5954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5955 $as_echo "$supported" >&6; }
5956 if test "$supported" = "yes" ; then
5957 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
5958 found="yes"
5959 fi
5960 fi
5961
5962
5963
5964
5965
5966 # This chunk adds additional warnings that could catch undesired effects.
5967
5968
5969
5970
5971
5972
5973
5974
5975
5976
5977
5978
5979
5980 xorg_testset_save_CFLAGS="$CFLAGS"
5981
5982 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5983 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5985 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5986 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5987 $as_echo_n "(cached) " >&6
5988 else
5989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5990 /* end confdefs.h. */
5991 int i;
5992 _ACEOF
5993 if ac_fn_c_try_compile "$LINENO"; then :
5994 xorg_cv_cc_flag_unknown_warning_option=yes
5995 else
5996 xorg_cv_cc_flag_unknown_warning_option=no
5997 fi
5998 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5999 fi
6000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6001 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6002 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6003 CFLAGS="$xorg_testset_save_CFLAGS"
6004 fi
6005
6006 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6007 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6008 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6009 fi
6010 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6012 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6013 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6014 $as_echo_n "(cached) " >&6
6015 else
6016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6017 /* end confdefs.h. */
6018 int i;
6019 _ACEOF
6020 if ac_fn_c_try_compile "$LINENO"; then :
6021 xorg_cv_cc_flag_unused_command_line_argument=yes
6022 else
6023 xorg_cv_cc_flag_unused_command_line_argument=no
6024 fi
6025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6026 fi
6027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6028 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6029 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6030 CFLAGS="$xorg_testset_save_CFLAGS"
6031 fi
6032
6033 found="no"
6034
6035 if test $found = "no" ; then
6036 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6037 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6038 fi
6039
6040 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6041 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6042 fi
6043
6044 CFLAGS="$CFLAGS -Wunused"
6045
6046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
6047 $as_echo_n "checking if $CC supports -Wunused... " >&6; }
6048 cacheid=xorg_cv_cc_flag__Wunused
6049 if eval \${$cacheid+:} false; then :
6050 $as_echo_n "(cached) " >&6
6051 else
6052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6053 /* end confdefs.h. */
6054 int i;
6055 int
6056 main ()
6057 {
6058
6059 ;
6060 return 0;
6061 }
6062 _ACEOF
6063 if ac_fn_c_try_link "$LINENO"; then :
6064 eval $cacheid=yes
6065 else
6066 eval $cacheid=no
6067 fi
6068 rm -f core conftest.err conftest.$ac_objext \
6069 conftest$ac_exeext conftest.$ac_ext
6070 fi
6071
6072
6073 CFLAGS="$xorg_testset_save_CFLAGS"
6074
6075 eval supported=\$$cacheid
6076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6077 $as_echo "$supported" >&6; }
6078 if test "$supported" = "yes" ; then
6079 BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6080 found="yes"
6081 fi
6082 fi
6083
6084
6085
6086
6087
6088
6089
6090
6091
6092
6093
6094
6095
6096
6097
6098 xorg_testset_save_CFLAGS="$CFLAGS"
6099
6100 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6101 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6103 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6104 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6105 $as_echo_n "(cached) " >&6
6106 else
6107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6108 /* end confdefs.h. */
6109 int i;
6110 _ACEOF
6111 if ac_fn_c_try_compile "$LINENO"; then :
6112 xorg_cv_cc_flag_unknown_warning_option=yes
6113 else
6114 xorg_cv_cc_flag_unknown_warning_option=no
6115 fi
6116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6117 fi
6118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6119 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6120 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6121 CFLAGS="$xorg_testset_save_CFLAGS"
6122 fi
6123
6124 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6125 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6126 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6127 fi
6128 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6130 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6131 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6132 $as_echo_n "(cached) " >&6
6133 else
6134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6135 /* end confdefs.h. */
6136 int i;
6137 _ACEOF
6138 if ac_fn_c_try_compile "$LINENO"; then :
6139 xorg_cv_cc_flag_unused_command_line_argument=yes
6140 else
6141 xorg_cv_cc_flag_unused_command_line_argument=no
6142 fi
6143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6144 fi
6145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6146 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6147 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6148 CFLAGS="$xorg_testset_save_CFLAGS"
6149 fi
6150
6151 found="no"
6152
6153 if test $found = "no" ; then
6154 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6155 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6156 fi
6157
6158 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6159 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6160 fi
6161
6162 CFLAGS="$CFLAGS -Wuninitialized"
6163
6164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6165 $as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
6166 cacheid=xorg_cv_cc_flag__Wuninitialized
6167 if eval \${$cacheid+:} false; then :
6168 $as_echo_n "(cached) " >&6
6169 else
6170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6171 /* end confdefs.h. */
6172 int i;
6173 int
6174 main ()
6175 {
6176
6177 ;
6178 return 0;
6179 }
6180 _ACEOF
6181 if ac_fn_c_try_link "$LINENO"; then :
6182 eval $cacheid=yes
6183 else
6184 eval $cacheid=no
6185 fi
6186 rm -f core conftest.err conftest.$ac_objext \
6187 conftest$ac_exeext conftest.$ac_ext
6188 fi
6189
6190
6191 CFLAGS="$xorg_testset_save_CFLAGS"
6192
6193 eval supported=\$$cacheid
6194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6195 $as_echo "$supported" >&6; }
6196 if test "$supported" = "yes" ; then
6197 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6198 found="yes"
6199 fi
6200 fi
6201
6202
6203
6204
6205
6206
6207
6208
6209
6210
6211
6212
6213
6214
6215
6216 xorg_testset_save_CFLAGS="$CFLAGS"
6217
6218 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6219 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6221 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6222 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6223 $as_echo_n "(cached) " >&6
6224 else
6225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6226 /* end confdefs.h. */
6227 int i;
6228 _ACEOF
6229 if ac_fn_c_try_compile "$LINENO"; then :
6230 xorg_cv_cc_flag_unknown_warning_option=yes
6231 else
6232 xorg_cv_cc_flag_unknown_warning_option=no
6233 fi
6234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6235 fi
6236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6237 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6238 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6239 CFLAGS="$xorg_testset_save_CFLAGS"
6240 fi
6241
6242 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6243 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6244 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6245 fi
6246 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6248 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6249 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6250 $as_echo_n "(cached) " >&6
6251 else
6252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6253 /* end confdefs.h. */
6254 int i;
6255 _ACEOF
6256 if ac_fn_c_try_compile "$LINENO"; then :
6257 xorg_cv_cc_flag_unused_command_line_argument=yes
6258 else
6259 xorg_cv_cc_flag_unused_command_line_argument=no
6260 fi
6261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6262 fi
6263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6264 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6265 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6266 CFLAGS="$xorg_testset_save_CFLAGS"
6267 fi
6268
6269 found="no"
6270
6271 if test $found = "no" ; then
6272 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6273 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6274 fi
6275
6276 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6277 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6278 fi
6279
6280 CFLAGS="$CFLAGS -Wshadow"
6281
6282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6283 $as_echo_n "checking if $CC supports -Wshadow... " >&6; }
6284 cacheid=xorg_cv_cc_flag__Wshadow
6285 if eval \${$cacheid+:} false; then :
6286 $as_echo_n "(cached) " >&6
6287 else
6288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6289 /* end confdefs.h. */
6290 int i;
6291 int
6292 main ()
6293 {
6294
6295 ;
6296 return 0;
6297 }
6298 _ACEOF
6299 if ac_fn_c_try_link "$LINENO"; then :
6300 eval $cacheid=yes
6301 else
6302 eval $cacheid=no
6303 fi
6304 rm -f core conftest.err conftest.$ac_objext \
6305 conftest$ac_exeext conftest.$ac_ext
6306 fi
6307
6308
6309 CFLAGS="$xorg_testset_save_CFLAGS"
6310
6311 eval supported=\$$cacheid
6312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6313 $as_echo "$supported" >&6; }
6314 if test "$supported" = "yes" ; then
6315 BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6316 found="yes"
6317 fi
6318 fi
6319
6320
6321
6322
6323
6324
6325
6326
6327
6328
6329
6330
6331
6332
6333
6334 xorg_testset_save_CFLAGS="$CFLAGS"
6335
6336 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6337 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6339 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6340 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6341 $as_echo_n "(cached) " >&6
6342 else
6343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6344 /* end confdefs.h. */
6345 int i;
6346 _ACEOF
6347 if ac_fn_c_try_compile "$LINENO"; then :
6348 xorg_cv_cc_flag_unknown_warning_option=yes
6349 else
6350 xorg_cv_cc_flag_unknown_warning_option=no
6351 fi
6352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6353 fi
6354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6355 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6356 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6357 CFLAGS="$xorg_testset_save_CFLAGS"
6358 fi
6359
6360 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6361 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6362 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6363 fi
6364 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6366 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6367 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6368 $as_echo_n "(cached) " >&6
6369 else
6370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6371 /* end confdefs.h. */
6372 int i;
6373 _ACEOF
6374 if ac_fn_c_try_compile "$LINENO"; then :
6375 xorg_cv_cc_flag_unused_command_line_argument=yes
6376 else
6377 xorg_cv_cc_flag_unused_command_line_argument=no
6378 fi
6379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6380 fi
6381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6382 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6383 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6384 CFLAGS="$xorg_testset_save_CFLAGS"
6385 fi
6386
6387 found="no"
6388
6389 if test $found = "no" ; then
6390 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6391 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6392 fi
6393
6394 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6395 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6396 fi
6397
6398 CFLAGS="$CFLAGS -Wcast-qual"
6399
6400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wcast-qual" >&5
6401 $as_echo_n "checking if $CC supports -Wcast-qual... " >&6; }
6402 cacheid=xorg_cv_cc_flag__Wcast_qual
6403 if eval \${$cacheid+:} false; then :
6404 $as_echo_n "(cached) " >&6
6405 else
6406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6407 /* end confdefs.h. */
6408 int i;
6409 int
6410 main ()
6411 {
6412
6413 ;
6414 return 0;
6415 }
6416 _ACEOF
6417 if ac_fn_c_try_link "$LINENO"; then :
6418 eval $cacheid=yes
6419 else
6420 eval $cacheid=no
6421 fi
6422 rm -f core conftest.err conftest.$ac_objext \
6423 conftest$ac_exeext conftest.$ac_ext
6424 fi
6425
6426
6427 CFLAGS="$xorg_testset_save_CFLAGS"
6428
6429 eval supported=\$$cacheid
6430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6431 $as_echo "$supported" >&6; }
6432 if test "$supported" = "yes" ; then
6433 BASE_CFLAGS="$BASE_CFLAGS -Wcast-qual"
6434 found="yes"
6435 fi
6436 fi
6437
6438
6439
6440
6441
6442
6443
6444
6445
6446
6447
6448
6449
6450
6451
6452 xorg_testset_save_CFLAGS="$CFLAGS"
6453
6454 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6455 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6457 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6458 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6459 $as_echo_n "(cached) " >&6
6460 else
6461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6462 /* end confdefs.h. */
6463 int i;
6464 _ACEOF
6465 if ac_fn_c_try_compile "$LINENO"; then :
6466 xorg_cv_cc_flag_unknown_warning_option=yes
6467 else
6468 xorg_cv_cc_flag_unknown_warning_option=no
6469 fi
6470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6471 fi
6472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6473 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6474 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6475 CFLAGS="$xorg_testset_save_CFLAGS"
6476 fi
6477
6478 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6479 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6480 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6481 fi
6482 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6484 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6485 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6486 $as_echo_n "(cached) " >&6
6487 else
6488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6489 /* end confdefs.h. */
6490 int i;
6491 _ACEOF
6492 if ac_fn_c_try_compile "$LINENO"; then :
6493 xorg_cv_cc_flag_unused_command_line_argument=yes
6494 else
6495 xorg_cv_cc_flag_unused_command_line_argument=no
6496 fi
6497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6498 fi
6499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6500 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6501 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6502 CFLAGS="$xorg_testset_save_CFLAGS"
6503 fi
6504
6505 found="no"
6506
6507 if test $found = "no" ; then
6508 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6509 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6510 fi
6511
6512 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6513 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6514 fi
6515
6516 CFLAGS="$CFLAGS -Wmissing-noreturn"
6517
6518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6519 $as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
6520 cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6521 if eval \${$cacheid+:} false; then :
6522 $as_echo_n "(cached) " >&6
6523 else
6524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6525 /* end confdefs.h. */
6526 int i;
6527 int
6528 main ()
6529 {
6530
6531 ;
6532 return 0;
6533 }
6534 _ACEOF
6535 if ac_fn_c_try_link "$LINENO"; then :
6536 eval $cacheid=yes
6537 else
6538 eval $cacheid=no
6539 fi
6540 rm -f core conftest.err conftest.$ac_objext \
6541 conftest$ac_exeext conftest.$ac_ext
6542 fi
6543
6544
6545 CFLAGS="$xorg_testset_save_CFLAGS"
6546
6547 eval supported=\$$cacheid
6548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6549 $as_echo "$supported" >&6; }
6550 if test "$supported" = "yes" ; then
6551 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6552 found="yes"
6553 fi
6554 fi
6555
6556
6557
6558
6559
6560
6561
6562
6563
6564
6565
6566
6567
6568
6569
6570 xorg_testset_save_CFLAGS="$CFLAGS"
6571
6572 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6573 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6575 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6576 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6577 $as_echo_n "(cached) " >&6
6578 else
6579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6580 /* end confdefs.h. */
6581 int i;
6582 _ACEOF
6583 if ac_fn_c_try_compile "$LINENO"; then :
6584 xorg_cv_cc_flag_unknown_warning_option=yes
6585 else
6586 xorg_cv_cc_flag_unknown_warning_option=no
6587 fi
6588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6589 fi
6590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6591 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6592 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6593 CFLAGS="$xorg_testset_save_CFLAGS"
6594 fi
6595
6596 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6597 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6598 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6599 fi
6600 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6602 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6603 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6604 $as_echo_n "(cached) " >&6
6605 else
6606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6607 /* end confdefs.h. */
6608 int i;
6609 _ACEOF
6610 if ac_fn_c_try_compile "$LINENO"; then :
6611 xorg_cv_cc_flag_unused_command_line_argument=yes
6612 else
6613 xorg_cv_cc_flag_unused_command_line_argument=no
6614 fi
6615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6616 fi
6617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6618 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6619 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6620 CFLAGS="$xorg_testset_save_CFLAGS"
6621 fi
6622
6623 found="no"
6624
6625 if test $found = "no" ; then
6626 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6627 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6628 fi
6629
6630 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6631 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6632 fi
6633
6634 CFLAGS="$CFLAGS -Wmissing-format-attribute"
6635
6636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6637 $as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6638 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6639 if eval \${$cacheid+:} false; then :
6640 $as_echo_n "(cached) " >&6
6641 else
6642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6643 /* end confdefs.h. */
6644 int i;
6645 int
6646 main ()
6647 {
6648
6649 ;
6650 return 0;
6651 }
6652 _ACEOF
6653 if ac_fn_c_try_link "$LINENO"; then :
6654 eval $cacheid=yes
6655 else
6656 eval $cacheid=no
6657 fi
6658 rm -f core conftest.err conftest.$ac_objext \
6659 conftest$ac_exeext conftest.$ac_ext
6660 fi
6661
6662
6663 CFLAGS="$xorg_testset_save_CFLAGS"
6664
6665 eval supported=\$$cacheid
6666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6667 $as_echo "$supported" >&6; }
6668 if test "$supported" = "yes" ; then
6669 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6670 found="yes"
6671 fi
6672 fi
6673
6674
6675
6676
6677
6678
6679
6680
6681
6682
6683
6684
6685
6686
6687
6688 xorg_testset_save_CFLAGS="$CFLAGS"
6689
6690 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6691 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6693 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6694 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6695 $as_echo_n "(cached) " >&6
6696 else
6697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6698 /* end confdefs.h. */
6699 int i;
6700 _ACEOF
6701 if ac_fn_c_try_compile "$LINENO"; then :
6702 xorg_cv_cc_flag_unknown_warning_option=yes
6703 else
6704 xorg_cv_cc_flag_unknown_warning_option=no
6705 fi
6706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6707 fi
6708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6709 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6710 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6711 CFLAGS="$xorg_testset_save_CFLAGS"
6712 fi
6713
6714 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6715 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6716 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6717 fi
6718 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6720 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6721 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6722 $as_echo_n "(cached) " >&6
6723 else
6724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6725 /* end confdefs.h. */
6726 int i;
6727 _ACEOF
6728 if ac_fn_c_try_compile "$LINENO"; then :
6729 xorg_cv_cc_flag_unused_command_line_argument=yes
6730 else
6731 xorg_cv_cc_flag_unused_command_line_argument=no
6732 fi
6733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6734 fi
6735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6736 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6737 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6738 CFLAGS="$xorg_testset_save_CFLAGS"
6739 fi
6740
6741 found="no"
6742
6743 if test $found = "no" ; then
6744 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6745 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6746 fi
6747
6748 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6749 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6750 fi
6751
6752 CFLAGS="$CFLAGS -Wredundant-decls"
6753
6754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
6755 $as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
6756 cacheid=xorg_cv_cc_flag__Wredundant_decls
6757 if eval \${$cacheid+:} false; then :
6758 $as_echo_n "(cached) " >&6
6759 else
6760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6761 /* end confdefs.h. */
6762 int i;
6763 int
6764 main ()
6765 {
6766
6767 ;
6768 return 0;
6769 }
6770 _ACEOF
6771 if ac_fn_c_try_link "$LINENO"; then :
6772 eval $cacheid=yes
6773 else
6774 eval $cacheid=no
6775 fi
6776 rm -f core conftest.err conftest.$ac_objext \
6777 conftest$ac_exeext conftest.$ac_ext
6778 fi
6779
6780
6781 CFLAGS="$xorg_testset_save_CFLAGS"
6782
6783 eval supported=\$$cacheid
6784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6785 $as_echo "$supported" >&6; }
6786 if test "$supported" = "yes" ; then
6787 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
6788 found="yes"
6789 fi
6790 fi
6791
6792
6793
6794 # These are currently disabled because they are noisy. They will be enabled
6795 # in the future once the codebase is sufficiently modernized to silence
6796 # them. For now, I don't want them to drown out the other warnings.
6797 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wlogical-op])
6798 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
6799 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
6800
6801 # Turn some warnings into errors, so we don't accidently get successful builds
6802 # when there are problems that should be fixed.
6803
6804 if test "x$SELECTIVE_WERROR" = "xyes" ; then
6805
6806
6807
6808
6809
6810
6811
6812
6813
6814
6815
6816
6817
6818 xorg_testset_save_CFLAGS="$CFLAGS"
6819
6820 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6821 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6823 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6824 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6825 $as_echo_n "(cached) " >&6
6826 else
6827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6828 /* end confdefs.h. */
6829 int i;
6830 _ACEOF
6831 if ac_fn_c_try_compile "$LINENO"; then :
6832 xorg_cv_cc_flag_unknown_warning_option=yes
6833 else
6834 xorg_cv_cc_flag_unknown_warning_option=no
6835 fi
6836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6837 fi
6838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6839 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6840 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6841 CFLAGS="$xorg_testset_save_CFLAGS"
6842 fi
6843
6844 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6845 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6846 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6847 fi
6848 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6850 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6851 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6852 $as_echo_n "(cached) " >&6
6853 else
6854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6855 /* end confdefs.h. */
6856 int i;
6857 _ACEOF
6858 if ac_fn_c_try_compile "$LINENO"; then :
6859 xorg_cv_cc_flag_unused_command_line_argument=yes
6860 else
6861 xorg_cv_cc_flag_unused_command_line_argument=no
6862 fi
6863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6864 fi
6865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6866 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6867 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6868 CFLAGS="$xorg_testset_save_CFLAGS"
6869 fi
6870
6871 found="no"
6872
6873 if test $found = "no" ; then
6874 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6875 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6876 fi
6877
6878 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6879 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6880 fi
6881
6882 CFLAGS="$CFLAGS -Werror=implicit"
6883
6884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
6885 $as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
6886 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=implicit" | $as_tr_sh`
6887 if eval \${$cacheid+:} false; then :
6888 $as_echo_n "(cached) " >&6
6889 else
6890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6891 /* end confdefs.h. */
6892 int i;
6893 int
6894 main ()
6895 {
6896
6897 ;
6898 return 0;
6899 }
6900 _ACEOF
6901 if ac_fn_c_try_link "$LINENO"; then :
6902 eval $cacheid=yes
6903 else
6904 eval $cacheid=no
6905 fi
6906 rm -f core conftest.err conftest.$ac_objext \
6907 conftest$ac_exeext conftest.$ac_ext
6908 fi
6909
6910
6911 CFLAGS="$xorg_testset_save_CFLAGS"
6912
6913 eval supported=\$$cacheid
6914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6915 $as_echo "$supported" >&6; }
6916 if test "$supported" = "yes" ; then
6917 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
6918 found="yes"
6919 fi
6920 fi
6921
6922 if test $found = "no" ; then
6923 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6924 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6925 fi
6926
6927 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6928 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6929 fi
6930
6931 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
6932
6933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
6934 $as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
6935 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" | $as_tr_sh`
6936 if eval \${$cacheid+:} false; then :
6937 $as_echo_n "(cached) " >&6
6938 else
6939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6940 /* end confdefs.h. */
6941 int i;
6942 int
6943 main ()
6944 {
6945
6946 ;
6947 return 0;
6948 }
6949 _ACEOF
6950 if ac_fn_c_try_link "$LINENO"; then :
6951 eval $cacheid=yes
6952 else
6953 eval $cacheid=no
6954 fi
6955 rm -f core conftest.err conftest.$ac_objext \
6956 conftest$ac_exeext conftest.$ac_ext
6957 fi
6958
6959
6960 CFLAGS="$xorg_testset_save_CFLAGS"
6961
6962 eval supported=\$$cacheid
6963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6964 $as_echo "$supported" >&6; }
6965 if test "$supported" = "yes" ; then
6966 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
6967 found="yes"
6968 fi
6969 fi
6970
6971
6972
6973
6974
6975
6976
6977
6978
6979
6980
6981
6982
6983
6984
6985 xorg_testset_save_CFLAGS="$CFLAGS"
6986
6987 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6988 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6990 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6991 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6992 $as_echo_n "(cached) " >&6
6993 else
6994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6995 /* end confdefs.h. */
6996 int i;
6997 _ACEOF
6998 if ac_fn_c_try_compile "$LINENO"; then :
6999 xorg_cv_cc_flag_unknown_warning_option=yes
7000 else
7001 xorg_cv_cc_flag_unknown_warning_option=no
7002 fi
7003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7004 fi
7005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7006 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7007 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7008 CFLAGS="$xorg_testset_save_CFLAGS"
7009 fi
7010
7011 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7012 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7013 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7014 fi
7015 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7017 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7018 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7019 $as_echo_n "(cached) " >&6
7020 else
7021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7022 /* end confdefs.h. */
7023 int i;
7024 _ACEOF
7025 if ac_fn_c_try_compile "$LINENO"; then :
7026 xorg_cv_cc_flag_unused_command_line_argument=yes
7027 else
7028 xorg_cv_cc_flag_unused_command_line_argument=no
7029 fi
7030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7031 fi
7032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7033 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7034 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7035 CFLAGS="$xorg_testset_save_CFLAGS"
7036 fi
7037
7038 found="no"
7039
7040 if test $found = "no" ; then
7041 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7042 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7043 fi
7044
7045 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7046 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7047 fi
7048
7049 CFLAGS="$CFLAGS -Werror=nonnull"
7050
7051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
7052 $as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
7053 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=nonnull" | $as_tr_sh`
7054 if eval \${$cacheid+:} false; then :
7055 $as_echo_n "(cached) " >&6
7056 else
7057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7058 /* end confdefs.h. */
7059 int i;
7060 int
7061 main ()
7062 {
7063
7064 ;
7065 return 0;
7066 }
7067 _ACEOF
7068 if ac_fn_c_try_link "$LINENO"; then :
7069 eval $cacheid=yes
7070 else
7071 eval $cacheid=no
7072 fi
7073 rm -f core conftest.err conftest.$ac_objext \
7074 conftest$ac_exeext conftest.$ac_ext
7075 fi
7076
7077
7078 CFLAGS="$xorg_testset_save_CFLAGS"
7079
7080 eval supported=\$$cacheid
7081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7082 $as_echo "$supported" >&6; }
7083 if test "$supported" = "yes" ; then
7084 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7085 found="yes"
7086 fi
7087 fi
7088
7089
7090
7091
7092
7093
7094
7095
7096
7097
7098
7099
7100
7101
7102
7103 xorg_testset_save_CFLAGS="$CFLAGS"
7104
7105 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7106 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7108 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7109 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7110 $as_echo_n "(cached) " >&6
7111 else
7112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7113 /* end confdefs.h. */
7114 int i;
7115 _ACEOF
7116 if ac_fn_c_try_compile "$LINENO"; then :
7117 xorg_cv_cc_flag_unknown_warning_option=yes
7118 else
7119 xorg_cv_cc_flag_unknown_warning_option=no
7120 fi
7121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7122 fi
7123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7124 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7125 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7126 CFLAGS="$xorg_testset_save_CFLAGS"
7127 fi
7128
7129 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7130 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7131 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7132 fi
7133 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7135 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7136 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7137 $as_echo_n "(cached) " >&6
7138 else
7139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7140 /* end confdefs.h. */
7141 int i;
7142 _ACEOF
7143 if ac_fn_c_try_compile "$LINENO"; then :
7144 xorg_cv_cc_flag_unused_command_line_argument=yes
7145 else
7146 xorg_cv_cc_flag_unused_command_line_argument=no
7147 fi
7148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7149 fi
7150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7151 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7152 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7153 CFLAGS="$xorg_testset_save_CFLAGS"
7154 fi
7155
7156 found="no"
7157
7158 if test $found = "no" ; then
7159 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7160 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7161 fi
7162
7163 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7164 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7165 fi
7166
7167 CFLAGS="$CFLAGS -Werror=init-self"
7168
7169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7170 $as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
7171 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=init-self" | $as_tr_sh`
7172 if eval \${$cacheid+:} false; then :
7173 $as_echo_n "(cached) " >&6
7174 else
7175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7176 /* end confdefs.h. */
7177 int i;
7178 int
7179 main ()
7180 {
7181
7182 ;
7183 return 0;
7184 }
7185 _ACEOF
7186 if ac_fn_c_try_link "$LINENO"; then :
7187 eval $cacheid=yes
7188 else
7189 eval $cacheid=no
7190 fi
7191 rm -f core conftest.err conftest.$ac_objext \
7192 conftest$ac_exeext conftest.$ac_ext
7193 fi
7194
7195
7196 CFLAGS="$xorg_testset_save_CFLAGS"
7197
7198 eval supported=\$$cacheid
7199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7200 $as_echo "$supported" >&6; }
7201 if test "$supported" = "yes" ; then
7202 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7203 found="yes"
7204 fi
7205 fi
7206
7207
7208
7209
7210
7211
7212
7213
7214
7215
7216
7217
7218
7219
7220
7221 xorg_testset_save_CFLAGS="$CFLAGS"
7222
7223 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7224 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7226 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7227 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7228 $as_echo_n "(cached) " >&6
7229 else
7230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7231 /* end confdefs.h. */
7232 int i;
7233 _ACEOF
7234 if ac_fn_c_try_compile "$LINENO"; then :
7235 xorg_cv_cc_flag_unknown_warning_option=yes
7236 else
7237 xorg_cv_cc_flag_unknown_warning_option=no
7238 fi
7239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7240 fi
7241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7242 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7243 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7244 CFLAGS="$xorg_testset_save_CFLAGS"
7245 fi
7246
7247 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7248 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7249 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7250 fi
7251 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7253 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7254 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7255 $as_echo_n "(cached) " >&6
7256 else
7257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7258 /* end confdefs.h. */
7259 int i;
7260 _ACEOF
7261 if ac_fn_c_try_compile "$LINENO"; then :
7262 xorg_cv_cc_flag_unused_command_line_argument=yes
7263 else
7264 xorg_cv_cc_flag_unused_command_line_argument=no
7265 fi
7266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7267 fi
7268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7269 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7270 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7271 CFLAGS="$xorg_testset_save_CFLAGS"
7272 fi
7273
7274 found="no"
7275
7276 if test $found = "no" ; then
7277 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7278 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7279 fi
7280
7281 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7282 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7283 fi
7284
7285 CFLAGS="$CFLAGS -Werror=main"
7286
7287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7288 $as_echo_n "checking if $CC supports -Werror=main... " >&6; }
7289 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=main" | $as_tr_sh`
7290 if eval \${$cacheid+:} false; then :
7291 $as_echo_n "(cached) " >&6
7292 else
7293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7294 /* end confdefs.h. */
7295 int i;
7296 int
7297 main ()
7298 {
7299
7300 ;
7301 return 0;
7302 }
7303 _ACEOF
7304 if ac_fn_c_try_link "$LINENO"; then :
7305 eval $cacheid=yes
7306 else
7307 eval $cacheid=no
7308 fi
7309 rm -f core conftest.err conftest.$ac_objext \
7310 conftest$ac_exeext conftest.$ac_ext
7311 fi
7312
7313
7314 CFLAGS="$xorg_testset_save_CFLAGS"
7315
7316 eval supported=\$$cacheid
7317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7318 $as_echo "$supported" >&6; }
7319 if test "$supported" = "yes" ; then
7320 BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7321 found="yes"
7322 fi
7323 fi
7324
7325
7326
7327
7328
7329
7330
7331
7332
7333
7334
7335
7336
7337
7338
7339 xorg_testset_save_CFLAGS="$CFLAGS"
7340
7341 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7342 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7344 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7345 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7346 $as_echo_n "(cached) " >&6
7347 else
7348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7349 /* end confdefs.h. */
7350 int i;
7351 _ACEOF
7352 if ac_fn_c_try_compile "$LINENO"; then :
7353 xorg_cv_cc_flag_unknown_warning_option=yes
7354 else
7355 xorg_cv_cc_flag_unknown_warning_option=no
7356 fi
7357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7358 fi
7359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7360 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7361 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7362 CFLAGS="$xorg_testset_save_CFLAGS"
7363 fi
7364
7365 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7366 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7367 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7368 fi
7369 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7371 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7372 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7373 $as_echo_n "(cached) " >&6
7374 else
7375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7376 /* end confdefs.h. */
7377 int i;
7378 _ACEOF
7379 if ac_fn_c_try_compile "$LINENO"; then :
7380 xorg_cv_cc_flag_unused_command_line_argument=yes
7381 else
7382 xorg_cv_cc_flag_unused_command_line_argument=no
7383 fi
7384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7385 fi
7386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7387 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7388 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7389 CFLAGS="$xorg_testset_save_CFLAGS"
7390 fi
7391
7392 found="no"
7393
7394 if test $found = "no" ; then
7395 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7396 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7397 fi
7398
7399 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7400 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7401 fi
7402
7403 CFLAGS="$CFLAGS -Werror=missing-braces"
7404
7405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
7406 $as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
7407 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=missing-braces" | $as_tr_sh`
7408 if eval \${$cacheid+:} false; then :
7409 $as_echo_n "(cached) " >&6
7410 else
7411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7412 /* end confdefs.h. */
7413 int i;
7414 int
7415 main ()
7416 {
7417
7418 ;
7419 return 0;
7420 }
7421 _ACEOF
7422 if ac_fn_c_try_link "$LINENO"; then :
7423 eval $cacheid=yes
7424 else
7425 eval $cacheid=no
7426 fi
7427 rm -f core conftest.err conftest.$ac_objext \
7428 conftest$ac_exeext conftest.$ac_ext
7429 fi
7430
7431
7432 CFLAGS="$xorg_testset_save_CFLAGS"
7433
7434 eval supported=\$$cacheid
7435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7436 $as_echo "$supported" >&6; }
7437 if test "$supported" = "yes" ; then
7438 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7439 found="yes"
7440 fi
7441 fi
7442
7443
7444
7445
7446
7447
7448
7449
7450
7451
7452
7453
7454
7455
7456
7457 xorg_testset_save_CFLAGS="$CFLAGS"
7458
7459 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7460 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7462 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7463 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7464 $as_echo_n "(cached) " >&6
7465 else
7466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7467 /* end confdefs.h. */
7468 int i;
7469 _ACEOF
7470 if ac_fn_c_try_compile "$LINENO"; then :
7471 xorg_cv_cc_flag_unknown_warning_option=yes
7472 else
7473 xorg_cv_cc_flag_unknown_warning_option=no
7474 fi
7475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7476 fi
7477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7478 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7479 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7480 CFLAGS="$xorg_testset_save_CFLAGS"
7481 fi
7482
7483 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7484 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7485 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7486 fi
7487 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7489 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7490 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7491 $as_echo_n "(cached) " >&6
7492 else
7493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7494 /* end confdefs.h. */
7495 int i;
7496 _ACEOF
7497 if ac_fn_c_try_compile "$LINENO"; then :
7498 xorg_cv_cc_flag_unused_command_line_argument=yes
7499 else
7500 xorg_cv_cc_flag_unused_command_line_argument=no
7501 fi
7502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7503 fi
7504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7505 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7506 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7507 CFLAGS="$xorg_testset_save_CFLAGS"
7508 fi
7509
7510 found="no"
7511
7512 if test $found = "no" ; then
7513 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7514 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7515 fi
7516
7517 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7518 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7519 fi
7520
7521 CFLAGS="$CFLAGS -Werror=sequence-point"
7522
7523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
7524 $as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
7525 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=sequence-point" | $as_tr_sh`
7526 if eval \${$cacheid+:} false; then :
7527 $as_echo_n "(cached) " >&6
7528 else
7529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7530 /* end confdefs.h. */
7531 int i;
7532 int
7533 main ()
7534 {
7535
7536 ;
7537 return 0;
7538 }
7539 _ACEOF
7540 if ac_fn_c_try_link "$LINENO"; then :
7541 eval $cacheid=yes
7542 else
7543 eval $cacheid=no
7544 fi
7545 rm -f core conftest.err conftest.$ac_objext \
7546 conftest$ac_exeext conftest.$ac_ext
7547 fi
7548
7549
7550 CFLAGS="$xorg_testset_save_CFLAGS"
7551
7552 eval supported=\$$cacheid
7553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7554 $as_echo "$supported" >&6; }
7555 if test "$supported" = "yes" ; then
7556 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
7557 found="yes"
7558 fi
7559 fi
7560
7561
7562
7563
7564
7565
7566
7567
7568
7569
7570
7571
7572
7573
7574
7575 xorg_testset_save_CFLAGS="$CFLAGS"
7576
7577 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7578 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7580 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7581 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7582 $as_echo_n "(cached) " >&6
7583 else
7584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7585 /* end confdefs.h. */
7586 int i;
7587 _ACEOF
7588 if ac_fn_c_try_compile "$LINENO"; then :
7589 xorg_cv_cc_flag_unknown_warning_option=yes
7590 else
7591 xorg_cv_cc_flag_unknown_warning_option=no
7592 fi
7593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7594 fi
7595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7596 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7597 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7598 CFLAGS="$xorg_testset_save_CFLAGS"
7599 fi
7600
7601 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7602 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7603 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7604 fi
7605 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7607 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7608 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7609 $as_echo_n "(cached) " >&6
7610 else
7611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7612 /* end confdefs.h. */
7613 int i;
7614 _ACEOF
7615 if ac_fn_c_try_compile "$LINENO"; then :
7616 xorg_cv_cc_flag_unused_command_line_argument=yes
7617 else
7618 xorg_cv_cc_flag_unused_command_line_argument=no
7619 fi
7620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7621 fi
7622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7623 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7624 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7625 CFLAGS="$xorg_testset_save_CFLAGS"
7626 fi
7627
7628 found="no"
7629
7630 if test $found = "no" ; then
7631 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7632 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7633 fi
7634
7635 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7636 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7637 fi
7638
7639 CFLAGS="$CFLAGS -Werror=return-type"
7640
7641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
7642 $as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
7643 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=return-type" | $as_tr_sh`
7644 if eval \${$cacheid+:} false; then :
7645 $as_echo_n "(cached) " >&6
7646 else
7647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7648 /* end confdefs.h. */
7649 int i;
7650 int
7651 main ()
7652 {
7653
7654 ;
7655 return 0;
7656 }
7657 _ACEOF
7658 if ac_fn_c_try_link "$LINENO"; then :
7659 eval $cacheid=yes
7660 else
7661 eval $cacheid=no
7662 fi
7663 rm -f core conftest.err conftest.$ac_objext \
7664 conftest$ac_exeext conftest.$ac_ext
7665 fi
7666
7667
7668 CFLAGS="$xorg_testset_save_CFLAGS"
7669
7670 eval supported=\$$cacheid
7671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7672 $as_echo "$supported" >&6; }
7673 if test "$supported" = "yes" ; then
7674 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
7675 found="yes"
7676 fi
7677 fi
7678
7679 if test $found = "no" ; then
7680 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7681 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7682 fi
7683
7684 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7685 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7686 fi
7687
7688 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7689
7690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
7691 $as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
7692 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_FUNC_HAS_NO_RETURN_STMT" | $as_tr_sh`
7693 if eval \${$cacheid+:} false; then :
7694 $as_echo_n "(cached) " >&6
7695 else
7696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7697 /* end confdefs.h. */
7698 int i;
7699 int
7700 main ()
7701 {
7702
7703 ;
7704 return 0;
7705 }
7706 _ACEOF
7707 if ac_fn_c_try_link "$LINENO"; then :
7708 eval $cacheid=yes
7709 else
7710 eval $cacheid=no
7711 fi
7712 rm -f core conftest.err conftest.$ac_objext \
7713 conftest$ac_exeext conftest.$ac_ext
7714 fi
7715
7716
7717 CFLAGS="$xorg_testset_save_CFLAGS"
7718
7719 eval supported=\$$cacheid
7720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7721 $as_echo "$supported" >&6; }
7722 if test "$supported" = "yes" ; then
7723 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7724 found="yes"
7725 fi
7726 fi
7727
7728
7729
7730
7731
7732
7733
7734
7735
7736
7737
7738
7739
7740
7741
7742 xorg_testset_save_CFLAGS="$CFLAGS"
7743
7744 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7745 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7747 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7748 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7749 $as_echo_n "(cached) " >&6
7750 else
7751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7752 /* end confdefs.h. */
7753 int i;
7754 _ACEOF
7755 if ac_fn_c_try_compile "$LINENO"; then :
7756 xorg_cv_cc_flag_unknown_warning_option=yes
7757 else
7758 xorg_cv_cc_flag_unknown_warning_option=no
7759 fi
7760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7761 fi
7762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7763 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7764 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7765 CFLAGS="$xorg_testset_save_CFLAGS"
7766 fi
7767
7768 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7769 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7770 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7771 fi
7772 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7774 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7775 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7776 $as_echo_n "(cached) " >&6
7777 else
7778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7779 /* end confdefs.h. */
7780 int i;
7781 _ACEOF
7782 if ac_fn_c_try_compile "$LINENO"; then :
7783 xorg_cv_cc_flag_unused_command_line_argument=yes
7784 else
7785 xorg_cv_cc_flag_unused_command_line_argument=no
7786 fi
7787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7788 fi
7789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7790 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7791 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7792 CFLAGS="$xorg_testset_save_CFLAGS"
7793 fi
7794
7795 found="no"
7796
7797 if test $found = "no" ; then
7798 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7799 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7800 fi
7801
7802 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7803 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7804 fi
7805
7806 CFLAGS="$CFLAGS -Werror=trigraphs"
7807
7808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
7809 $as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
7810 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=trigraphs" | $as_tr_sh`
7811 if eval \${$cacheid+:} false; then :
7812 $as_echo_n "(cached) " >&6
7813 else
7814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7815 /* end confdefs.h. */
7816 int i;
7817 int
7818 main ()
7819 {
7820
7821 ;
7822 return 0;
7823 }
7824 _ACEOF
7825 if ac_fn_c_try_link "$LINENO"; then :
7826 eval $cacheid=yes
7827 else
7828 eval $cacheid=no
7829 fi
7830 rm -f core conftest.err conftest.$ac_objext \
7831 conftest$ac_exeext conftest.$ac_ext
7832 fi
7833
7834
7835 CFLAGS="$xorg_testset_save_CFLAGS"
7836
7837 eval supported=\$$cacheid
7838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7839 $as_echo "$supported" >&6; }
7840 if test "$supported" = "yes" ; then
7841 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
7842 found="yes"
7843 fi
7844 fi
7845
7846
7847
7848
7849
7850
7851
7852
7853
7854
7855
7856
7857
7858
7859
7860 xorg_testset_save_CFLAGS="$CFLAGS"
7861
7862 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7863 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7865 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7866 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7867 $as_echo_n "(cached) " >&6
7868 else
7869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7870 /* end confdefs.h. */
7871 int i;
7872 _ACEOF
7873 if ac_fn_c_try_compile "$LINENO"; then :
7874 xorg_cv_cc_flag_unknown_warning_option=yes
7875 else
7876 xorg_cv_cc_flag_unknown_warning_option=no
7877 fi
7878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7879 fi
7880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7881 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7882 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7883 CFLAGS="$xorg_testset_save_CFLAGS"
7884 fi
7885
7886 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7887 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7888 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7889 fi
7890 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7892 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7893 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7894 $as_echo_n "(cached) " >&6
7895 else
7896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7897 /* end confdefs.h. */
7898 int i;
7899 _ACEOF
7900 if ac_fn_c_try_compile "$LINENO"; then :
7901 xorg_cv_cc_flag_unused_command_line_argument=yes
7902 else
7903 xorg_cv_cc_flag_unused_command_line_argument=no
7904 fi
7905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7906 fi
7907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7908 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7909 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7910 CFLAGS="$xorg_testset_save_CFLAGS"
7911 fi
7912
7913 found="no"
7914
7915 if test $found = "no" ; then
7916 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7917 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7918 fi
7919
7920 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7921 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7922 fi
7923
7924 CFLAGS="$CFLAGS -Werror=array-bounds"
7925
7926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
7927 $as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
7928 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=array-bounds" | $as_tr_sh`
7929 if eval \${$cacheid+:} false; then :
7930 $as_echo_n "(cached) " >&6
7931 else
7932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7933 /* end confdefs.h. */
7934 int i;
7935 int
7936 main ()
7937 {
7938
7939 ;
7940 return 0;
7941 }
7942 _ACEOF
7943 if ac_fn_c_try_link "$LINENO"; then :
7944 eval $cacheid=yes
7945 else
7946 eval $cacheid=no
7947 fi
7948 rm -f core conftest.err conftest.$ac_objext \
7949 conftest$ac_exeext conftest.$ac_ext
7950 fi
7951
7952
7953 CFLAGS="$xorg_testset_save_CFLAGS"
7954
7955 eval supported=\$$cacheid
7956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7957 $as_echo "$supported" >&6; }
7958 if test "$supported" = "yes" ; then
7959 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
7960 found="yes"
7961 fi
7962 fi
7963
7964
7965
7966
7967
7968
7969
7970
7971
7972
7973
7974
7975
7976
7977
7978 xorg_testset_save_CFLAGS="$CFLAGS"
7979
7980 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7981 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7983 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7984 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7985 $as_echo_n "(cached) " >&6
7986 else
7987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7988 /* end confdefs.h. */
7989 int i;
7990 _ACEOF
7991 if ac_fn_c_try_compile "$LINENO"; then :
7992 xorg_cv_cc_flag_unknown_warning_option=yes
7993 else
7994 xorg_cv_cc_flag_unknown_warning_option=no
7995 fi
7996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7997 fi
7998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7999 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8000 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8001 CFLAGS="$xorg_testset_save_CFLAGS"
8002 fi
8003
8004 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8005 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8006 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8007 fi
8008 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8010 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8011 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8012 $as_echo_n "(cached) " >&6
8013 else
8014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8015 /* end confdefs.h. */
8016 int i;
8017 _ACEOF
8018 if ac_fn_c_try_compile "$LINENO"; then :
8019 xorg_cv_cc_flag_unused_command_line_argument=yes
8020 else
8021 xorg_cv_cc_flag_unused_command_line_argument=no
8022 fi
8023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8024 fi
8025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8026 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8027 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8028 CFLAGS="$xorg_testset_save_CFLAGS"
8029 fi
8030
8031 found="no"
8032
8033 if test $found = "no" ; then
8034 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8035 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8036 fi
8037
8038 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8039 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8040 fi
8041
8042 CFLAGS="$CFLAGS -Werror=write-strings"
8043
8044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
8045 $as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
8046 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=write-strings" | $as_tr_sh`
8047 if eval \${$cacheid+:} false; then :
8048 $as_echo_n "(cached) " >&6
8049 else
8050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8051 /* end confdefs.h. */
8052 int i;
8053 int
8054 main ()
8055 {
8056
8057 ;
8058 return 0;
8059 }
8060 _ACEOF
8061 if ac_fn_c_try_link "$LINENO"; then :
8062 eval $cacheid=yes
8063 else
8064 eval $cacheid=no
8065 fi
8066 rm -f core conftest.err conftest.$ac_objext \
8067 conftest$ac_exeext conftest.$ac_ext
8068 fi
8069
8070
8071 CFLAGS="$xorg_testset_save_CFLAGS"
8072
8073 eval supported=\$$cacheid
8074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8075 $as_echo "$supported" >&6; }
8076 if test "$supported" = "yes" ; then
8077 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
8078 found="yes"
8079 fi
8080 fi
8081
8082
8083
8084
8085
8086
8087
8088
8089
8090
8091
8092
8093
8094
8095
8096 xorg_testset_save_CFLAGS="$CFLAGS"
8097
8098 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8099 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8101 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8102 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8103 $as_echo_n "(cached) " >&6
8104 else
8105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8106 /* end confdefs.h. */
8107 int i;
8108 _ACEOF
8109 if ac_fn_c_try_compile "$LINENO"; then :
8110 xorg_cv_cc_flag_unknown_warning_option=yes
8111 else
8112 xorg_cv_cc_flag_unknown_warning_option=no
8113 fi
8114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8115 fi
8116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8117 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8118 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8119 CFLAGS="$xorg_testset_save_CFLAGS"
8120 fi
8121
8122 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8123 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8124 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8125 fi
8126 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8128 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8129 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8130 $as_echo_n "(cached) " >&6
8131 else
8132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8133 /* end confdefs.h. */
8134 int i;
8135 _ACEOF
8136 if ac_fn_c_try_compile "$LINENO"; then :
8137 xorg_cv_cc_flag_unused_command_line_argument=yes
8138 else
8139 xorg_cv_cc_flag_unused_command_line_argument=no
8140 fi
8141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8142 fi
8143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8144 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8145 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8146 CFLAGS="$xorg_testset_save_CFLAGS"
8147 fi
8148
8149 found="no"
8150
8151 if test $found = "no" ; then
8152 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8153 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8154 fi
8155
8156 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8157 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8158 fi
8159
8160 CFLAGS="$CFLAGS -Werror=address"
8161
8162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
8163 $as_echo_n "checking if $CC supports -Werror=address... " >&6; }
8164 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=address" | $as_tr_sh`
8165 if eval \${$cacheid+:} false; then :
8166 $as_echo_n "(cached) " >&6
8167 else
8168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8169 /* end confdefs.h. */
8170 int i;
8171 int
8172 main ()
8173 {
8174
8175 ;
8176 return 0;
8177 }
8178 _ACEOF
8179 if ac_fn_c_try_link "$LINENO"; then :
8180 eval $cacheid=yes
8181 else
8182 eval $cacheid=no
8183 fi
8184 rm -f core conftest.err conftest.$ac_objext \
8185 conftest$ac_exeext conftest.$ac_ext
8186 fi
8187
8188
8189 CFLAGS="$xorg_testset_save_CFLAGS"
8190
8191 eval supported=\$$cacheid
8192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8193 $as_echo "$supported" >&6; }
8194 if test "$supported" = "yes" ; then
8195 BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8196 found="yes"
8197 fi
8198 fi
8199
8200
8201
8202
8203
8204
8205
8206
8207
8208
8209
8210
8211
8212
8213
8214 xorg_testset_save_CFLAGS="$CFLAGS"
8215
8216 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8217 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8219 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8220 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8221 $as_echo_n "(cached) " >&6
8222 else
8223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8224 /* end confdefs.h. */
8225 int i;
8226 _ACEOF
8227 if ac_fn_c_try_compile "$LINENO"; then :
8228 xorg_cv_cc_flag_unknown_warning_option=yes
8229 else
8230 xorg_cv_cc_flag_unknown_warning_option=no
8231 fi
8232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8233 fi
8234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8235 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8236 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8237 CFLAGS="$xorg_testset_save_CFLAGS"
8238 fi
8239
8240 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8241 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8242 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8243 fi
8244 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8246 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8247 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8248 $as_echo_n "(cached) " >&6
8249 else
8250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8251 /* end confdefs.h. */
8252 int i;
8253 _ACEOF
8254 if ac_fn_c_try_compile "$LINENO"; then :
8255 xorg_cv_cc_flag_unused_command_line_argument=yes
8256 else
8257 xorg_cv_cc_flag_unused_command_line_argument=no
8258 fi
8259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8260 fi
8261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8262 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8263 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8264 CFLAGS="$xorg_testset_save_CFLAGS"
8265 fi
8266
8267 found="no"
8268
8269 if test $found = "no" ; then
8270 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8271 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8272 fi
8273
8274 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8275 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8276 fi
8277
8278 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8279
8280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
8281 $as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
8282 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=int-to-pointer-cast" | $as_tr_sh`
8283 if eval \${$cacheid+:} false; then :
8284 $as_echo_n "(cached) " >&6
8285 else
8286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8287 /* end confdefs.h. */
8288 int i;
8289 int
8290 main ()
8291 {
8292
8293 ;
8294 return 0;
8295 }
8296 _ACEOF
8297 if ac_fn_c_try_link "$LINENO"; then :
8298 eval $cacheid=yes
8299 else
8300 eval $cacheid=no
8301 fi
8302 rm -f core conftest.err conftest.$ac_objext \
8303 conftest$ac_exeext conftest.$ac_ext
8304 fi
8305
8306
8307 CFLAGS="$xorg_testset_save_CFLAGS"
8308
8309 eval supported=\$$cacheid
8310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8311 $as_echo "$supported" >&6; }
8312 if test "$supported" = "yes" ; then
8313 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8314 found="yes"
8315 fi
8316 fi
8317
8318 if test $found = "no" ; then
8319 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8320 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8321 fi
8322
8323 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8324 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8325 fi
8326
8327 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8328
8329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8330 $as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8331 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_BAD_PTR_INT_COMBINATION" | $as_tr_sh`
8332 if eval \${$cacheid+:} false; then :
8333 $as_echo_n "(cached) " >&6
8334 else
8335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8336 /* end confdefs.h. */
8337 int i;
8338 int
8339 main ()
8340 {
8341
8342 ;
8343 return 0;
8344 }
8345 _ACEOF
8346 if ac_fn_c_try_link "$LINENO"; then :
8347 eval $cacheid=yes
8348 else
8349 eval $cacheid=no
8350 fi
8351 rm -f core conftest.err conftest.$ac_objext \
8352 conftest$ac_exeext conftest.$ac_ext
8353 fi
8354
8355
8356 CFLAGS="$xorg_testset_save_CFLAGS"
8357
8358 eval supported=\$$cacheid
8359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8360 $as_echo "$supported" >&6; }
8361 if test "$supported" = "yes" ; then
8362 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8363 found="yes"
8364 fi
8365 fi
8366
8367
8368
8369
8370
8371
8372
8373
8374
8375
8376
8377
8378
8379
8380
8381 xorg_testset_save_CFLAGS="$CFLAGS"
8382
8383 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8384 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8386 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8387 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8388 $as_echo_n "(cached) " >&6
8389 else
8390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8391 /* end confdefs.h. */
8392 int i;
8393 _ACEOF
8394 if ac_fn_c_try_compile "$LINENO"; then :
8395 xorg_cv_cc_flag_unknown_warning_option=yes
8396 else
8397 xorg_cv_cc_flag_unknown_warning_option=no
8398 fi
8399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8400 fi
8401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8402 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8403 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8404 CFLAGS="$xorg_testset_save_CFLAGS"
8405 fi
8406
8407 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8408 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8409 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8410 fi
8411 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8413 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8414 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8415 $as_echo_n "(cached) " >&6
8416 else
8417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8418 /* end confdefs.h. */
8419 int i;
8420 _ACEOF
8421 if ac_fn_c_try_compile "$LINENO"; then :
8422 xorg_cv_cc_flag_unused_command_line_argument=yes
8423 else
8424 xorg_cv_cc_flag_unused_command_line_argument=no
8425 fi
8426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8427 fi
8428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8429 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8430 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8431 CFLAGS="$xorg_testset_save_CFLAGS"
8432 fi
8433
8434 found="no"
8435
8436 if test $found = "no" ; then
8437 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8438 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8439 fi
8440
8441 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8442 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8443 fi
8444
8445 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
8446
8447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
8448 $as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
8449 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=pointer-to-int-cast" | $as_tr_sh`
8450 if eval \${$cacheid+:} false; then :
8451 $as_echo_n "(cached) " >&6
8452 else
8453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8454 /* end confdefs.h. */
8455 int i;
8456 int
8457 main ()
8458 {
8459
8460 ;
8461 return 0;
8462 }
8463 _ACEOF
8464 if ac_fn_c_try_link "$LINENO"; then :
8465 eval $cacheid=yes
8466 else
8467 eval $cacheid=no
8468 fi
8469 rm -f core conftest.err conftest.$ac_objext \
8470 conftest$ac_exeext conftest.$ac_ext
8471 fi
8472
8473
8474 CFLAGS="$xorg_testset_save_CFLAGS"
8475
8476 eval supported=\$$cacheid
8477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8478 $as_echo "$supported" >&6; }
8479 if test "$supported" = "yes" ; then
8480 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
8481 found="yes"
8482 fi
8483 fi
8484
8485 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
8486 else
8487 { $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
8488 $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;}
8489
8490
8491
8492
8493
8494
8495
8496
8497
8498
8499
8500
8501
8502 xorg_testset_save_CFLAGS="$CFLAGS"
8503
8504 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8505 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8507 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8508 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8509 $as_echo_n "(cached) " >&6
8510 else
8511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8512 /* end confdefs.h. */
8513 int i;
8514 _ACEOF
8515 if ac_fn_c_try_compile "$LINENO"; then :
8516 xorg_cv_cc_flag_unknown_warning_option=yes
8517 else
8518 xorg_cv_cc_flag_unknown_warning_option=no
8519 fi
8520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8521 fi
8522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8523 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8524 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8525 CFLAGS="$xorg_testset_save_CFLAGS"
8526 fi
8527
8528 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8529 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8530 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8531 fi
8532 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8534 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8535 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8536 $as_echo_n "(cached) " >&6
8537 else
8538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8539 /* end confdefs.h. */
8540 int i;
8541 _ACEOF
8542 if ac_fn_c_try_compile "$LINENO"; then :
8543 xorg_cv_cc_flag_unused_command_line_argument=yes
8544 else
8545 xorg_cv_cc_flag_unused_command_line_argument=no
8546 fi
8547 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8548 fi
8549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8550 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8551 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8552 CFLAGS="$xorg_testset_save_CFLAGS"
8553 fi
8554
8555 found="no"
8556
8557 if test $found = "no" ; then
8558 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8559 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8560 fi
8561
8562 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8563 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8564 fi
8565
8566 CFLAGS="$CFLAGS -Wimplicit"
8567
8568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
8569 $as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
8570 cacheid=xorg_cv_cc_flag__Wimplicit
8571 if eval \${$cacheid+:} false; then :
8572 $as_echo_n "(cached) " >&6
8573 else
8574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8575 /* end confdefs.h. */
8576 int i;
8577 int
8578 main ()
8579 {
8580
8581 ;
8582 return 0;
8583 }
8584 _ACEOF
8585 if ac_fn_c_try_link "$LINENO"; then :
8586 eval $cacheid=yes
8587 else
8588 eval $cacheid=no
8589 fi
8590 rm -f core conftest.err conftest.$ac_objext \
8591 conftest$ac_exeext conftest.$ac_ext
8592 fi
8593
8594
8595 CFLAGS="$xorg_testset_save_CFLAGS"
8596
8597 eval supported=\$$cacheid
8598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8599 $as_echo "$supported" >&6; }
8600 if test "$supported" = "yes" ; then
8601 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
8602 found="yes"
8603 fi
8604 fi
8605
8606
8607
8608
8609
8610
8611
8612
8613
8614
8615
8616
8617
8618
8619
8620 xorg_testset_save_CFLAGS="$CFLAGS"
8621
8622 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8623 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8625 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8626 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8627 $as_echo_n "(cached) " >&6
8628 else
8629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8630 /* end confdefs.h. */
8631 int i;
8632 _ACEOF
8633 if ac_fn_c_try_compile "$LINENO"; then :
8634 xorg_cv_cc_flag_unknown_warning_option=yes
8635 else
8636 xorg_cv_cc_flag_unknown_warning_option=no
8637 fi
8638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8639 fi
8640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8641 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8642 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8643 CFLAGS="$xorg_testset_save_CFLAGS"
8644 fi
8645
8646 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8647 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8648 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8649 fi
8650 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8652 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8653 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8654 $as_echo_n "(cached) " >&6
8655 else
8656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8657 /* end confdefs.h. */
8658 int i;
8659 _ACEOF
8660 if ac_fn_c_try_compile "$LINENO"; then :
8661 xorg_cv_cc_flag_unused_command_line_argument=yes
8662 else
8663 xorg_cv_cc_flag_unused_command_line_argument=no
8664 fi
8665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8666 fi
8667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8668 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8669 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8670 CFLAGS="$xorg_testset_save_CFLAGS"
8671 fi
8672
8673 found="no"
8674
8675 if test $found = "no" ; then
8676 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8677 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8678 fi
8679
8680 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8681 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8682 fi
8683
8684 CFLAGS="$CFLAGS -Wnonnull"
8685
8686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
8687 $as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
8688 cacheid=xorg_cv_cc_flag__Wnonnull
8689 if eval \${$cacheid+:} false; then :
8690 $as_echo_n "(cached) " >&6
8691 else
8692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8693 /* end confdefs.h. */
8694 int i;
8695 int
8696 main ()
8697 {
8698
8699 ;
8700 return 0;
8701 }
8702 _ACEOF
8703 if ac_fn_c_try_link "$LINENO"; then :
8704 eval $cacheid=yes
8705 else
8706 eval $cacheid=no
8707 fi
8708 rm -f core conftest.err conftest.$ac_objext \
8709 conftest$ac_exeext conftest.$ac_ext
8710 fi
8711
8712
8713 CFLAGS="$xorg_testset_save_CFLAGS"
8714
8715 eval supported=\$$cacheid
8716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8717 $as_echo "$supported" >&6; }
8718 if test "$supported" = "yes" ; then
8719 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
8720 found="yes"
8721 fi
8722 fi
8723
8724
8725
8726
8727
8728
8729
8730
8731
8732
8733
8734
8735
8736
8737
8738 xorg_testset_save_CFLAGS="$CFLAGS"
8739
8740 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8741 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8743 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8744 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8745 $as_echo_n "(cached) " >&6
8746 else
8747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8748 /* end confdefs.h. */
8749 int i;
8750 _ACEOF
8751 if ac_fn_c_try_compile "$LINENO"; then :
8752 xorg_cv_cc_flag_unknown_warning_option=yes
8753 else
8754 xorg_cv_cc_flag_unknown_warning_option=no
8755 fi
8756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8757 fi
8758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8759 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8760 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8761 CFLAGS="$xorg_testset_save_CFLAGS"
8762 fi
8763
8764 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8765 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8766 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8767 fi
8768 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8770 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8771 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8772 $as_echo_n "(cached) " >&6
8773 else
8774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8775 /* end confdefs.h. */
8776 int i;
8777 _ACEOF
8778 if ac_fn_c_try_compile "$LINENO"; then :
8779 xorg_cv_cc_flag_unused_command_line_argument=yes
8780 else
8781 xorg_cv_cc_flag_unused_command_line_argument=no
8782 fi
8783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8784 fi
8785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8786 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8787 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8788 CFLAGS="$xorg_testset_save_CFLAGS"
8789 fi
8790
8791 found="no"
8792
8793 if test $found = "no" ; then
8794 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8795 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8796 fi
8797
8798 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8799 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8800 fi
8801
8802 CFLAGS="$CFLAGS -Winit-self"
8803
8804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
8805 $as_echo_n "checking if $CC supports -Winit-self... " >&6; }
8806 cacheid=xorg_cv_cc_flag__Winit_self
8807 if eval \${$cacheid+:} false; then :
8808 $as_echo_n "(cached) " >&6
8809 else
8810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8811 /* end confdefs.h. */
8812 int i;
8813 int
8814 main ()
8815 {
8816
8817 ;
8818 return 0;
8819 }
8820 _ACEOF
8821 if ac_fn_c_try_link "$LINENO"; then :
8822 eval $cacheid=yes
8823 else
8824 eval $cacheid=no
8825 fi
8826 rm -f core conftest.err conftest.$ac_objext \
8827 conftest$ac_exeext conftest.$ac_ext
8828 fi
8829
8830
8831 CFLAGS="$xorg_testset_save_CFLAGS"
8832
8833 eval supported=\$$cacheid
8834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8835 $as_echo "$supported" >&6; }
8836 if test "$supported" = "yes" ; then
8837 BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
8838 found="yes"
8839 fi
8840 fi
8841
8842
8843
8844
8845
8846
8847
8848
8849
8850
8851
8852
8853
8854
8855
8856 xorg_testset_save_CFLAGS="$CFLAGS"
8857
8858 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8859 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8861 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8862 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8863 $as_echo_n "(cached) " >&6
8864 else
8865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8866 /* end confdefs.h. */
8867 int i;
8868 _ACEOF
8869 if ac_fn_c_try_compile "$LINENO"; then :
8870 xorg_cv_cc_flag_unknown_warning_option=yes
8871 else
8872 xorg_cv_cc_flag_unknown_warning_option=no
8873 fi
8874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8875 fi
8876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8877 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8878 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8879 CFLAGS="$xorg_testset_save_CFLAGS"
8880 fi
8881
8882 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8883 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8884 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8885 fi
8886 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8888 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8889 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8890 $as_echo_n "(cached) " >&6
8891 else
8892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8893 /* end confdefs.h. */
8894 int i;
8895 _ACEOF
8896 if ac_fn_c_try_compile "$LINENO"; then :
8897 xorg_cv_cc_flag_unused_command_line_argument=yes
8898 else
8899 xorg_cv_cc_flag_unused_command_line_argument=no
8900 fi
8901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8902 fi
8903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8904 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8905 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8906 CFLAGS="$xorg_testset_save_CFLAGS"
8907 fi
8908
8909 found="no"
8910
8911 if test $found = "no" ; then
8912 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8913 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8914 fi
8915
8916 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8917 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8918 fi
8919
8920 CFLAGS="$CFLAGS -Wmain"
8921
8922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
8923 $as_echo_n "checking if $CC supports -Wmain... " >&6; }
8924 cacheid=xorg_cv_cc_flag__Wmain
8925 if eval \${$cacheid+:} false; then :
8926 $as_echo_n "(cached) " >&6
8927 else
8928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8929 /* end confdefs.h. */
8930 int i;
8931 int
8932 main ()
8933 {
8934
8935 ;
8936 return 0;
8937 }
8938 _ACEOF
8939 if ac_fn_c_try_link "$LINENO"; then :
8940 eval $cacheid=yes
8941 else
8942 eval $cacheid=no
8943 fi
8944 rm -f core conftest.err conftest.$ac_objext \
8945 conftest$ac_exeext conftest.$ac_ext
8946 fi
8947
8948
8949 CFLAGS="$xorg_testset_save_CFLAGS"
8950
8951 eval supported=\$$cacheid
8952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8953 $as_echo "$supported" >&6; }
8954 if test "$supported" = "yes" ; then
8955 BASE_CFLAGS="$BASE_CFLAGS -Wmain"
8956 found="yes"
8957 fi
8958 fi
8959
8960
8961
8962
8963
8964
8965
8966
8967
8968
8969
8970
8971
8972
8973
8974 xorg_testset_save_CFLAGS="$CFLAGS"
8975
8976 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8977 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8979 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8980 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8981 $as_echo_n "(cached) " >&6
8982 else
8983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8984 /* end confdefs.h. */
8985 int i;
8986 _ACEOF
8987 if ac_fn_c_try_compile "$LINENO"; then :
8988 xorg_cv_cc_flag_unknown_warning_option=yes
8989 else
8990 xorg_cv_cc_flag_unknown_warning_option=no
8991 fi
8992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8993 fi
8994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8995 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8996 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8997 CFLAGS="$xorg_testset_save_CFLAGS"
8998 fi
8999
9000 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9001 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9002 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9003 fi
9004 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9006 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9007 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9008 $as_echo_n "(cached) " >&6
9009 else
9010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9011 /* end confdefs.h. */
9012 int i;
9013 _ACEOF
9014 if ac_fn_c_try_compile "$LINENO"; then :
9015 xorg_cv_cc_flag_unused_command_line_argument=yes
9016 else
9017 xorg_cv_cc_flag_unused_command_line_argument=no
9018 fi
9019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9020 fi
9021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9022 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9023 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9024 CFLAGS="$xorg_testset_save_CFLAGS"
9025 fi
9026
9027 found="no"
9028
9029 if test $found = "no" ; then
9030 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9031 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9032 fi
9033
9034 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9035 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9036 fi
9037
9038 CFLAGS="$CFLAGS -Wmissing-braces"
9039
9040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
9041 $as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
9042 cacheid=xorg_cv_cc_flag__Wmissing_braces
9043 if eval \${$cacheid+:} false; then :
9044 $as_echo_n "(cached) " >&6
9045 else
9046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9047 /* end confdefs.h. */
9048 int i;
9049 int
9050 main ()
9051 {
9052
9053 ;
9054 return 0;
9055 }
9056 _ACEOF
9057 if ac_fn_c_try_link "$LINENO"; then :
9058 eval $cacheid=yes
9059 else
9060 eval $cacheid=no
9061 fi
9062 rm -f core conftest.err conftest.$ac_objext \
9063 conftest$ac_exeext conftest.$ac_ext
9064 fi
9065
9066
9067 CFLAGS="$xorg_testset_save_CFLAGS"
9068
9069 eval supported=\$$cacheid
9070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9071 $as_echo "$supported" >&6; }
9072 if test "$supported" = "yes" ; then
9073 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
9074 found="yes"
9075 fi
9076 fi
9077
9078
9079
9080
9081
9082
9083
9084
9085
9086
9087
9088
9089
9090
9091
9092 xorg_testset_save_CFLAGS="$CFLAGS"
9093
9094 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9095 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9097 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9098 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9099 $as_echo_n "(cached) " >&6
9100 else
9101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9102 /* end confdefs.h. */
9103 int i;
9104 _ACEOF
9105 if ac_fn_c_try_compile "$LINENO"; then :
9106 xorg_cv_cc_flag_unknown_warning_option=yes
9107 else
9108 xorg_cv_cc_flag_unknown_warning_option=no
9109 fi
9110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9111 fi
9112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9113 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9114 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9115 CFLAGS="$xorg_testset_save_CFLAGS"
9116 fi
9117
9118 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9119 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9120 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9121 fi
9122 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9124 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9125 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9126 $as_echo_n "(cached) " >&6
9127 else
9128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9129 /* end confdefs.h. */
9130 int i;
9131 _ACEOF
9132 if ac_fn_c_try_compile "$LINENO"; then :
9133 xorg_cv_cc_flag_unused_command_line_argument=yes
9134 else
9135 xorg_cv_cc_flag_unused_command_line_argument=no
9136 fi
9137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9138 fi
9139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9140 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9141 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9142 CFLAGS="$xorg_testset_save_CFLAGS"
9143 fi
9144
9145 found="no"
9146
9147 if test $found = "no" ; then
9148 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9149 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9150 fi
9151
9152 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9153 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9154 fi
9155
9156 CFLAGS="$CFLAGS -Wsequence-point"
9157
9158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
9159 $as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
9160 cacheid=xorg_cv_cc_flag__Wsequence_point
9161 if eval \${$cacheid+:} false; then :
9162 $as_echo_n "(cached) " >&6
9163 else
9164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9165 /* end confdefs.h. */
9166 int i;
9167 int
9168 main ()
9169 {
9170
9171 ;
9172 return 0;
9173 }
9174 _ACEOF
9175 if ac_fn_c_try_link "$LINENO"; then :
9176 eval $cacheid=yes
9177 else
9178 eval $cacheid=no
9179 fi
9180 rm -f core conftest.err conftest.$ac_objext \
9181 conftest$ac_exeext conftest.$ac_ext
9182 fi
9183
9184
9185 CFLAGS="$xorg_testset_save_CFLAGS"
9186
9187 eval supported=\$$cacheid
9188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9189 $as_echo "$supported" >&6; }
9190 if test "$supported" = "yes" ; then
9191 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9192 found="yes"
9193 fi
9194 fi
9195
9196
9197
9198
9199
9200
9201
9202
9203
9204
9205
9206
9207
9208
9209
9210 xorg_testset_save_CFLAGS="$CFLAGS"
9211
9212 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9213 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9215 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9216 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9217 $as_echo_n "(cached) " >&6
9218 else
9219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9220 /* end confdefs.h. */
9221 int i;
9222 _ACEOF
9223 if ac_fn_c_try_compile "$LINENO"; then :
9224 xorg_cv_cc_flag_unknown_warning_option=yes
9225 else
9226 xorg_cv_cc_flag_unknown_warning_option=no
9227 fi
9228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9229 fi
9230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9231 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9232 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9233 CFLAGS="$xorg_testset_save_CFLAGS"
9234 fi
9235
9236 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9237 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9238 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9239 fi
9240 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9242 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9243 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9244 $as_echo_n "(cached) " >&6
9245 else
9246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9247 /* end confdefs.h. */
9248 int i;
9249 _ACEOF
9250 if ac_fn_c_try_compile "$LINENO"; then :
9251 xorg_cv_cc_flag_unused_command_line_argument=yes
9252 else
9253 xorg_cv_cc_flag_unused_command_line_argument=no
9254 fi
9255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9256 fi
9257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9258 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9259 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9260 CFLAGS="$xorg_testset_save_CFLAGS"
9261 fi
9262
9263 found="no"
9264
9265 if test $found = "no" ; then
9266 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9267 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9268 fi
9269
9270 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9271 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9272 fi
9273
9274 CFLAGS="$CFLAGS -Wreturn-type"
9275
9276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
9277 $as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
9278 cacheid=xorg_cv_cc_flag__Wreturn_type
9279 if eval \${$cacheid+:} false; then :
9280 $as_echo_n "(cached) " >&6
9281 else
9282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9283 /* end confdefs.h. */
9284 int i;
9285 int
9286 main ()
9287 {
9288
9289 ;
9290 return 0;
9291 }
9292 _ACEOF
9293 if ac_fn_c_try_link "$LINENO"; then :
9294 eval $cacheid=yes
9295 else
9296 eval $cacheid=no
9297 fi
9298 rm -f core conftest.err conftest.$ac_objext \
9299 conftest$ac_exeext conftest.$ac_ext
9300 fi
9301
9302
9303 CFLAGS="$xorg_testset_save_CFLAGS"
9304
9305 eval supported=\$$cacheid
9306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9307 $as_echo "$supported" >&6; }
9308 if test "$supported" = "yes" ; then
9309 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9310 found="yes"
9311 fi
9312 fi
9313
9314
9315
9316
9317
9318
9319
9320
9321
9322
9323
9324
9325
9326
9327
9328 xorg_testset_save_CFLAGS="$CFLAGS"
9329
9330 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9331 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9333 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9334 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9335 $as_echo_n "(cached) " >&6
9336 else
9337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9338 /* end confdefs.h. */
9339 int i;
9340 _ACEOF
9341 if ac_fn_c_try_compile "$LINENO"; then :
9342 xorg_cv_cc_flag_unknown_warning_option=yes
9343 else
9344 xorg_cv_cc_flag_unknown_warning_option=no
9345 fi
9346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9347 fi
9348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9349 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9350 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9351 CFLAGS="$xorg_testset_save_CFLAGS"
9352 fi
9353
9354 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9355 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9356 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9357 fi
9358 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9360 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9361 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9362 $as_echo_n "(cached) " >&6
9363 else
9364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9365 /* end confdefs.h. */
9366 int i;
9367 _ACEOF
9368 if ac_fn_c_try_compile "$LINENO"; then :
9369 xorg_cv_cc_flag_unused_command_line_argument=yes
9370 else
9371 xorg_cv_cc_flag_unused_command_line_argument=no
9372 fi
9373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9374 fi
9375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9376 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9377 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9378 CFLAGS="$xorg_testset_save_CFLAGS"
9379 fi
9380
9381 found="no"
9382
9383 if test $found = "no" ; then
9384 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9385 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9386 fi
9387
9388 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9389 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9390 fi
9391
9392 CFLAGS="$CFLAGS -Wtrigraphs"
9393
9394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
9395 $as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
9396 cacheid=xorg_cv_cc_flag__Wtrigraphs
9397 if eval \${$cacheid+:} false; then :
9398 $as_echo_n "(cached) " >&6
9399 else
9400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9401 /* end confdefs.h. */
9402 int i;
9403 int
9404 main ()
9405 {
9406
9407 ;
9408 return 0;
9409 }
9410 _ACEOF
9411 if ac_fn_c_try_link "$LINENO"; then :
9412 eval $cacheid=yes
9413 else
9414 eval $cacheid=no
9415 fi
9416 rm -f core conftest.err conftest.$ac_objext \
9417 conftest$ac_exeext conftest.$ac_ext
9418 fi
9419
9420
9421 CFLAGS="$xorg_testset_save_CFLAGS"
9422
9423 eval supported=\$$cacheid
9424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9425 $as_echo "$supported" >&6; }
9426 if test "$supported" = "yes" ; then
9427 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
9428 found="yes"
9429 fi
9430 fi
9431
9432
9433
9434
9435
9436
9437
9438
9439
9440
9441
9442
9443
9444
9445
9446 xorg_testset_save_CFLAGS="$CFLAGS"
9447
9448 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9449 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9451 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9452 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9453 $as_echo_n "(cached) " >&6
9454 else
9455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9456 /* end confdefs.h. */
9457 int i;
9458 _ACEOF
9459 if ac_fn_c_try_compile "$LINENO"; then :
9460 xorg_cv_cc_flag_unknown_warning_option=yes
9461 else
9462 xorg_cv_cc_flag_unknown_warning_option=no
9463 fi
9464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9465 fi
9466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9467 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9468 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9469 CFLAGS="$xorg_testset_save_CFLAGS"
9470 fi
9471
9472 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9473 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9474 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9475 fi
9476 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9478 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9479 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9480 $as_echo_n "(cached) " >&6
9481 else
9482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9483 /* end confdefs.h. */
9484 int i;
9485 _ACEOF
9486 if ac_fn_c_try_compile "$LINENO"; then :
9487 xorg_cv_cc_flag_unused_command_line_argument=yes
9488 else
9489 xorg_cv_cc_flag_unused_command_line_argument=no
9490 fi
9491 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9492 fi
9493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9494 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9495 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9496 CFLAGS="$xorg_testset_save_CFLAGS"
9497 fi
9498
9499 found="no"
9500
9501 if test $found = "no" ; then
9502 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9503 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9504 fi
9505
9506 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9507 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9508 fi
9509
9510 CFLAGS="$CFLAGS -Warray-bounds"
9511
9512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
9513 $as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
9514 cacheid=xorg_cv_cc_flag__Warray_bounds
9515 if eval \${$cacheid+:} false; then :
9516 $as_echo_n "(cached) " >&6
9517 else
9518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9519 /* end confdefs.h. */
9520 int i;
9521 int
9522 main ()
9523 {
9524
9525 ;
9526 return 0;
9527 }
9528 _ACEOF
9529 if ac_fn_c_try_link "$LINENO"; then :
9530 eval $cacheid=yes
9531 else
9532 eval $cacheid=no
9533 fi
9534 rm -f core conftest.err conftest.$ac_objext \
9535 conftest$ac_exeext conftest.$ac_ext
9536 fi
9537
9538
9539 CFLAGS="$xorg_testset_save_CFLAGS"
9540
9541 eval supported=\$$cacheid
9542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9543 $as_echo "$supported" >&6; }
9544 if test "$supported" = "yes" ; then
9545 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
9546 found="yes"
9547 fi
9548 fi
9549
9550
9551
9552
9553
9554
9555
9556
9557
9558
9559
9560
9561
9562
9563
9564 xorg_testset_save_CFLAGS="$CFLAGS"
9565
9566 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9567 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9569 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9570 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9571 $as_echo_n "(cached) " >&6
9572 else
9573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9574 /* end confdefs.h. */
9575 int i;
9576 _ACEOF
9577 if ac_fn_c_try_compile "$LINENO"; then :
9578 xorg_cv_cc_flag_unknown_warning_option=yes
9579 else
9580 xorg_cv_cc_flag_unknown_warning_option=no
9581 fi
9582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9583 fi
9584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9585 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9586 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9587 CFLAGS="$xorg_testset_save_CFLAGS"
9588 fi
9589
9590 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9591 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9592 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9593 fi
9594 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9596 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9597 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9598 $as_echo_n "(cached) " >&6
9599 else
9600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9601 /* end confdefs.h. */
9602 int i;
9603 _ACEOF
9604 if ac_fn_c_try_compile "$LINENO"; then :
9605 xorg_cv_cc_flag_unused_command_line_argument=yes
9606 else
9607 xorg_cv_cc_flag_unused_command_line_argument=no
9608 fi
9609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9610 fi
9611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9612 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9613 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9614 CFLAGS="$xorg_testset_save_CFLAGS"
9615 fi
9616
9617 found="no"
9618
9619 if test $found = "no" ; then
9620 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9621 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9622 fi
9623
9624 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9625 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9626 fi
9627
9628 CFLAGS="$CFLAGS -Wwrite-strings"
9629
9630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
9631 $as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
9632 cacheid=xorg_cv_cc_flag__Wwrite_strings
9633 if eval \${$cacheid+:} false; then :
9634 $as_echo_n "(cached) " >&6
9635 else
9636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9637 /* end confdefs.h. */
9638 int i;
9639 int
9640 main ()
9641 {
9642
9643 ;
9644 return 0;
9645 }
9646 _ACEOF
9647 if ac_fn_c_try_link "$LINENO"; then :
9648 eval $cacheid=yes
9649 else
9650 eval $cacheid=no
9651 fi
9652 rm -f core conftest.err conftest.$ac_objext \
9653 conftest$ac_exeext conftest.$ac_ext
9654 fi
9655
9656
9657 CFLAGS="$xorg_testset_save_CFLAGS"
9658
9659 eval supported=\$$cacheid
9660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9661 $as_echo "$supported" >&6; }
9662 if test "$supported" = "yes" ; then
9663 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
9664 found="yes"
9665 fi
9666 fi
9667
9668
9669
9670
9671
9672
9673
9674
9675
9676
9677
9678
9679
9680
9681
9682 xorg_testset_save_CFLAGS="$CFLAGS"
9683
9684 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9685 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9687 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9688 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9689 $as_echo_n "(cached) " >&6
9690 else
9691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9692 /* end confdefs.h. */
9693 int i;
9694 _ACEOF
9695 if ac_fn_c_try_compile "$LINENO"; then :
9696 xorg_cv_cc_flag_unknown_warning_option=yes
9697 else
9698 xorg_cv_cc_flag_unknown_warning_option=no
9699 fi
9700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9701 fi
9702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9703 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9704 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9705 CFLAGS="$xorg_testset_save_CFLAGS"
9706 fi
9707
9708 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9709 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9710 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9711 fi
9712 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9714 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9715 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9716 $as_echo_n "(cached) " >&6
9717 else
9718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9719 /* end confdefs.h. */
9720 int i;
9721 _ACEOF
9722 if ac_fn_c_try_compile "$LINENO"; then :
9723 xorg_cv_cc_flag_unused_command_line_argument=yes
9724 else
9725 xorg_cv_cc_flag_unused_command_line_argument=no
9726 fi
9727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9728 fi
9729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9730 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9731 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9732 CFLAGS="$xorg_testset_save_CFLAGS"
9733 fi
9734
9735 found="no"
9736
9737 if test $found = "no" ; then
9738 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9739 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9740 fi
9741
9742 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9743 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9744 fi
9745
9746 CFLAGS="$CFLAGS -Waddress"
9747
9748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
9749 $as_echo_n "checking if $CC supports -Waddress... " >&6; }
9750 cacheid=xorg_cv_cc_flag__Waddress
9751 if eval \${$cacheid+:} false; then :
9752 $as_echo_n "(cached) " >&6
9753 else
9754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9755 /* end confdefs.h. */
9756 int i;
9757 int
9758 main ()
9759 {
9760
9761 ;
9762 return 0;
9763 }
9764 _ACEOF
9765 if ac_fn_c_try_link "$LINENO"; then :
9766 eval $cacheid=yes
9767 else
9768 eval $cacheid=no
9769 fi
9770 rm -f core conftest.err conftest.$ac_objext \
9771 conftest$ac_exeext conftest.$ac_ext
9772 fi
9773
9774
9775 CFLAGS="$xorg_testset_save_CFLAGS"
9776
9777 eval supported=\$$cacheid
9778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9779 $as_echo "$supported" >&6; }
9780 if test "$supported" = "yes" ; then
9781 BASE_CFLAGS="$BASE_CFLAGS -Waddress"
9782 found="yes"
9783 fi
9784 fi
9785
9786
9787
9788
9789
9790
9791
9792
9793
9794
9795
9796
9797
9798
9799
9800 xorg_testset_save_CFLAGS="$CFLAGS"
9801
9802 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9803 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9805 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9806 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9807 $as_echo_n "(cached) " >&6
9808 else
9809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9810 /* end confdefs.h. */
9811 int i;
9812 _ACEOF
9813 if ac_fn_c_try_compile "$LINENO"; then :
9814 xorg_cv_cc_flag_unknown_warning_option=yes
9815 else
9816 xorg_cv_cc_flag_unknown_warning_option=no
9817 fi
9818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9819 fi
9820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9821 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9822 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9823 CFLAGS="$xorg_testset_save_CFLAGS"
9824 fi
9825
9826 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9827 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9828 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9829 fi
9830 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9832 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9833 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9834 $as_echo_n "(cached) " >&6
9835 else
9836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9837 /* end confdefs.h. */
9838 int i;
9839 _ACEOF
9840 if ac_fn_c_try_compile "$LINENO"; then :
9841 xorg_cv_cc_flag_unused_command_line_argument=yes
9842 else
9843 xorg_cv_cc_flag_unused_command_line_argument=no
9844 fi
9845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9846 fi
9847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9848 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9849 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9850 CFLAGS="$xorg_testset_save_CFLAGS"
9851 fi
9852
9853 found="no"
9854
9855 if test $found = "no" ; then
9856 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9857 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9858 fi
9859
9860 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9861 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9862 fi
9863
9864 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
9865
9866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
9867 $as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
9868 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
9869 if eval \${$cacheid+:} false; then :
9870 $as_echo_n "(cached) " >&6
9871 else
9872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9873 /* end confdefs.h. */
9874 int i;
9875 int
9876 main ()
9877 {
9878
9879 ;
9880 return 0;
9881 }
9882 _ACEOF
9883 if ac_fn_c_try_link "$LINENO"; then :
9884 eval $cacheid=yes
9885 else
9886 eval $cacheid=no
9887 fi
9888 rm -f core conftest.err conftest.$ac_objext \
9889 conftest$ac_exeext conftest.$ac_ext
9890 fi
9891
9892
9893 CFLAGS="$xorg_testset_save_CFLAGS"
9894
9895 eval supported=\$$cacheid
9896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9897 $as_echo "$supported" >&6; }
9898 if test "$supported" = "yes" ; then
9899 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
9900 found="yes"
9901 fi
9902 fi
9903
9904
9905
9906
9907
9908
9909
9910
9911
9912
9913
9914
9915
9916
9917
9918 xorg_testset_save_CFLAGS="$CFLAGS"
9919
9920 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9921 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9923 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9924 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9925 $as_echo_n "(cached) " >&6
9926 else
9927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9928 /* end confdefs.h. */
9929 int i;
9930 _ACEOF
9931 if ac_fn_c_try_compile "$LINENO"; then :
9932 xorg_cv_cc_flag_unknown_warning_option=yes
9933 else
9934 xorg_cv_cc_flag_unknown_warning_option=no
9935 fi
9936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9937 fi
9938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9939 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9940 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9941 CFLAGS="$xorg_testset_save_CFLAGS"
9942 fi
9943
9944 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9945 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9946 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9947 fi
9948 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9950 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9951 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9952 $as_echo_n "(cached) " >&6
9953 else
9954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9955 /* end confdefs.h. */
9956 int i;
9957 _ACEOF
9958 if ac_fn_c_try_compile "$LINENO"; then :
9959 xorg_cv_cc_flag_unused_command_line_argument=yes
9960 else
9961 xorg_cv_cc_flag_unused_command_line_argument=no
9962 fi
9963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9964 fi
9965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9966 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9967 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9968 CFLAGS="$xorg_testset_save_CFLAGS"
9969 fi
9970
9971 found="no"
9972
9973 if test $found = "no" ; then
9974 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9975 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9976 fi
9977
9978 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9979 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9980 fi
9981
9982 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
9983
9984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
9985 $as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
9986 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
9987 if eval \${$cacheid+:} false; then :
9988 $as_echo_n "(cached) " >&6
9989 else
9990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9991 /* end confdefs.h. */
9992 int i;
9993 int
9994 main ()
9995 {
9996
9997 ;
9998 return 0;
9999 }
10000 _ACEOF
10001 if ac_fn_c_try_link "$LINENO"; then :
10002 eval $cacheid=yes
10003 else
10004 eval $cacheid=no
10005 fi
10006 rm -f core conftest.err conftest.$ac_objext \
10007 conftest$ac_exeext conftest.$ac_ext
10008 fi
10009
10010
10011 CFLAGS="$xorg_testset_save_CFLAGS"
10012
10013 eval supported=\$$cacheid
10014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10015 $as_echo "$supported" >&6; }
10016 if test "$supported" = "yes" ; then
10017 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
10018 found="yes"
10019 fi
10020 fi
10021
10022
10023 fi
10024
10025
10026
10027
10028
10029
10030
10031 CWARNFLAGS="$BASE_CFLAGS"
10032 if test "x$GCC" = xyes ; then
10033 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
10034 fi
10035
10036
10037
10038
10039
10040
10041
10042
10043 # Check whether --enable-strict-compilation was given.
10044 if test "${enable_strict_compilation+set}" = set; then :
10045 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
10046 else
10047 STRICT_COMPILE=no
10048 fi
10049
10050
10051
10052
10053
10054
10055 STRICT_CFLAGS=""
10056
10057
10058
10059
10060
10061
10062
10063
10064
10065
10066
10067
10068
10069 xorg_testset_save_CFLAGS="$CFLAGS"
10070
10071 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10072 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10074 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10075 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10076 $as_echo_n "(cached) " >&6
10077 else
10078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10079 /* end confdefs.h. */
10080 int i;
10081 _ACEOF
10082 if ac_fn_c_try_compile "$LINENO"; then :
10083 xorg_cv_cc_flag_unknown_warning_option=yes
10084 else
10085 xorg_cv_cc_flag_unknown_warning_option=no
10086 fi
10087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10088 fi
10089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10090 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10091 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10092 CFLAGS="$xorg_testset_save_CFLAGS"
10093 fi
10094
10095 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10096 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10097 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10098 fi
10099 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10101 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10102 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10103 $as_echo_n "(cached) " >&6
10104 else
10105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10106 /* end confdefs.h. */
10107 int i;
10108 _ACEOF
10109 if ac_fn_c_try_compile "$LINENO"; then :
10110 xorg_cv_cc_flag_unused_command_line_argument=yes
10111 else
10112 xorg_cv_cc_flag_unused_command_line_argument=no
10113 fi
10114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10115 fi
10116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10117 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10118 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10119 CFLAGS="$xorg_testset_save_CFLAGS"
10120 fi
10121
10122 found="no"
10123
10124 if test $found = "no" ; then
10125 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10126 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10127 fi
10128
10129 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10130 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10131 fi
10132
10133 CFLAGS="$CFLAGS -pedantic"
10134
10135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
10136 $as_echo_n "checking if $CC supports -pedantic... " >&6; }
10137 cacheid=xorg_cv_cc_flag__pedantic
10138 if eval \${$cacheid+:} false; then :
10139 $as_echo_n "(cached) " >&6
10140 else
10141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10142 /* end confdefs.h. */
10143 int i;
10144 int
10145 main ()
10146 {
10147
10148 ;
10149 return 0;
10150 }
10151 _ACEOF
10152 if ac_fn_c_try_link "$LINENO"; then :
10153 eval $cacheid=yes
10154 else
10155 eval $cacheid=no
10156 fi
10157 rm -f core conftest.err conftest.$ac_objext \
10158 conftest$ac_exeext conftest.$ac_ext
10159 fi
10160
10161
10162 CFLAGS="$xorg_testset_save_CFLAGS"
10163
10164 eval supported=\$$cacheid
10165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10166 $as_echo "$supported" >&6; }
10167 if test "$supported" = "yes" ; then
10168 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
10169 found="yes"
10170 fi
10171 fi
10172
10173
10174
10175
10176
10177
10178
10179
10180
10181
10182
10183
10184
10185
10186
10187 xorg_testset_save_CFLAGS="$CFLAGS"
10188
10189 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10190 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10192 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10193 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10194 $as_echo_n "(cached) " >&6
10195 else
10196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10197 /* end confdefs.h. */
10198 int i;
10199 _ACEOF
10200 if ac_fn_c_try_compile "$LINENO"; then :
10201 xorg_cv_cc_flag_unknown_warning_option=yes
10202 else
10203 xorg_cv_cc_flag_unknown_warning_option=no
10204 fi
10205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10206 fi
10207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10208 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10209 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10210 CFLAGS="$xorg_testset_save_CFLAGS"
10211 fi
10212
10213 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10214 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10215 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10216 fi
10217 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10219 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10220 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10221 $as_echo_n "(cached) " >&6
10222 else
10223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10224 /* end confdefs.h. */
10225 int i;
10226 _ACEOF
10227 if ac_fn_c_try_compile "$LINENO"; then :
10228 xorg_cv_cc_flag_unused_command_line_argument=yes
10229 else
10230 xorg_cv_cc_flag_unused_command_line_argument=no
10231 fi
10232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10233 fi
10234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10235 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10236 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10237 CFLAGS="$xorg_testset_save_CFLAGS"
10238 fi
10239
10240 found="no"
10241
10242 if test $found = "no" ; then
10243 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10244 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10245 fi
10246
10247 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10248 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10249 fi
10250
10251 CFLAGS="$CFLAGS -Werror"
10252
10253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
10254 $as_echo_n "checking if $CC supports -Werror... " >&6; }
10255 cacheid=xorg_cv_cc_flag__Werror
10256 if eval \${$cacheid+:} false; then :
10257 $as_echo_n "(cached) " >&6
10258 else
10259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10260 /* end confdefs.h. */
10261 int i;
10262 int
10263 main ()
10264 {
10265
10266 ;
10267 return 0;
10268 }
10269 _ACEOF
10270 if ac_fn_c_try_link "$LINENO"; then :
10271 eval $cacheid=yes
10272 else
10273 eval $cacheid=no
10274 fi
10275 rm -f core conftest.err conftest.$ac_objext \
10276 conftest$ac_exeext conftest.$ac_ext
10277 fi
10278
10279
10280 CFLAGS="$xorg_testset_save_CFLAGS"
10281
10282 eval supported=\$$cacheid
10283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10284 $as_echo "$supported" >&6; }
10285 if test "$supported" = "yes" ; then
10286 STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
10287 found="yes"
10288 fi
10289 fi
10290
10291 if test $found = "no" ; then
10292 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10293 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10294 fi
10295
10296 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10297 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10298 fi
10299
10300 CFLAGS="$CFLAGS -errwarn"
10301
10302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
10303 $as_echo_n "checking if $CC supports -errwarn... " >&6; }
10304 cacheid=xorg_cv_cc_flag__errwarn
10305 if eval \${$cacheid+:} false; then :
10306 $as_echo_n "(cached) " >&6
10307 else
10308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10309 /* end confdefs.h. */
10310 int i;
10311 int
10312 main ()
10313 {
10314
10315 ;
10316 return 0;
10317 }
10318 _ACEOF
10319 if ac_fn_c_try_link "$LINENO"; then :
10320 eval $cacheid=yes
10321 else
10322 eval $cacheid=no
10323 fi
10324 rm -f core conftest.err conftest.$ac_objext \
10325 conftest$ac_exeext conftest.$ac_ext
10326 fi
10327
10328
10329 CFLAGS="$xorg_testset_save_CFLAGS"
10330
10331 eval supported=\$$cacheid
10332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10333 $as_echo "$supported" >&6; }
10334 if test "$supported" = "yes" ; then
10335 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
10336 found="yes"
10337 fi
10338 fi
10339
10340
10341
10342 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
10343 # activate it with -Werror, so we add it here explicitly.
10344
10345
10346
10347
10348
10349
10350
10351
10352
10353
10354
10355
10356
10357 xorg_testset_save_CFLAGS="$CFLAGS"
10358
10359 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10360 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10362 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10363 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10364 $as_echo_n "(cached) " >&6
10365 else
10366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10367 /* end confdefs.h. */
10368 int i;
10369 _ACEOF
10370 if ac_fn_c_try_compile "$LINENO"; then :
10371 xorg_cv_cc_flag_unknown_warning_option=yes
10372 else
10373 xorg_cv_cc_flag_unknown_warning_option=no
10374 fi
10375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10376 fi
10377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10378 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10379 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10380 CFLAGS="$xorg_testset_save_CFLAGS"
10381 fi
10382
10383 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10384 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10385 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10386 fi
10387 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10389 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10390 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10391 $as_echo_n "(cached) " >&6
10392 else
10393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10394 /* end confdefs.h. */
10395 int i;
10396 _ACEOF
10397 if ac_fn_c_try_compile "$LINENO"; then :
10398 xorg_cv_cc_flag_unused_command_line_argument=yes
10399 else
10400 xorg_cv_cc_flag_unused_command_line_argument=no
10401 fi
10402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10403 fi
10404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10405 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10406 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10407 CFLAGS="$xorg_testset_save_CFLAGS"
10408 fi
10409
10410 found="no"
10411
10412 if test $found = "no" ; then
10413 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10414 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10415 fi
10416
10417 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10418 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10419 fi
10420
10421 CFLAGS="$CFLAGS -Werror=attributes"
10422
10423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
10424 $as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
10425 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=attributes" | $as_tr_sh`
10426 if eval \${$cacheid+:} false; then :
10427 $as_echo_n "(cached) " >&6
10428 else
10429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10430 /* end confdefs.h. */
10431 int i;
10432 int
10433 main ()
10434 {
10435
10436 ;
10437 return 0;
10438 }
10439 _ACEOF
10440 if ac_fn_c_try_link "$LINENO"; then :
10441 eval $cacheid=yes
10442 else
10443 eval $cacheid=no
10444 fi
10445 rm -f core conftest.err conftest.$ac_objext \
10446 conftest$ac_exeext conftest.$ac_ext
10447 fi
10448
10449
10450 CFLAGS="$xorg_testset_save_CFLAGS"
10451
10452 eval supported=\$$cacheid
10453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10454 $as_echo "$supported" >&6; }
10455 if test "$supported" = "yes" ; then
10456 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
10457 found="yes"
10458 fi
10459 fi
10460
10461
10462
10463 if test "x$STRICT_COMPILE" = "xyes"; then
10464 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
10465 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
10466 fi
10467
10468
10469
10470
10471
10472
10473 cat >>confdefs.h <<_ACEOF
10474 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
10475 _ACEOF
10476
10477 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
10478 if test "x$PVM" = "x"; then
10479 PVM="0"
10480 fi
10481
10482 cat >>confdefs.h <<_ACEOF
10483 #define PACKAGE_VERSION_MINOR $PVM
10484 _ACEOF
10485
10486 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
10487 if test "x$PVP" = "x"; then
10488 PVP="0"
10489 fi
10490
10491 cat >>confdefs.h <<_ACEOF
10492 #define PACKAGE_VERSION_PATCHLEVEL $PVP
10493 _ACEOF
10494
10495
10496
10497 CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
10498 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
10499 || (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
10500 echo 'git directory not found: installing possibly empty changelog.' >&2)"
10501
10502
10503
10504
10505 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
10506 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
10507 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
10508 || (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
10509 echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
10510
10511
10512
10513
10514
10515
10516 if test x$APP_MAN_SUFFIX = x ; then
10517 APP_MAN_SUFFIX=1
10518 fi
10519 if test x$APP_MAN_DIR = x ; then
10520 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
10521 fi
10522
10523 if test x$LIB_MAN_SUFFIX = x ; then
10524 LIB_MAN_SUFFIX=3
10525 fi
10526 if test x$LIB_MAN_DIR = x ; then
10527 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
10528 fi
10529
10530 if test x$FILE_MAN_SUFFIX = x ; then
10531 case $host_os in
10532 solaris*) FILE_MAN_SUFFIX=4 ;;
10533 *) FILE_MAN_SUFFIX=5 ;;
10534 esac
10535 fi
10536 if test x$FILE_MAN_DIR = x ; then
10537 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
10538 fi
10539
10540 if test x$MISC_MAN_SUFFIX = x ; then
10541 case $host_os in
10542 solaris*) MISC_MAN_SUFFIX=5 ;;
10543 *) MISC_MAN_SUFFIX=7 ;;
10544 esac
10545 fi
10546 if test x$MISC_MAN_DIR = x ; then
10547 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
10548 fi
10549
10550 if test x$DRIVER_MAN_SUFFIX = x ; then
10551 case $host_os in
10552 solaris*) DRIVER_MAN_SUFFIX=7 ;;
10553 *) DRIVER_MAN_SUFFIX=4 ;;
10554 esac
10555 fi
10556 if test x$DRIVER_MAN_DIR = x ; then
10557 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
10558 fi
10559
10560 if test x$ADMIN_MAN_SUFFIX = x ; then
10561 case $host_os in
10562 solaris*) ADMIN_MAN_SUFFIX=1m ;;
10563 *) ADMIN_MAN_SUFFIX=8 ;;
10564 esac
10565 fi
10566 if test x$ADMIN_MAN_DIR = x ; then
10567 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
10568 fi
10569
10570
10571
10572
10573
10574
10575
10576
10577
10578
10579
10580
10581
10582
10583
10584 XORG_MAN_PAGE="X Version 11"
10585
10586 MAN_SUBSTS="\
10587 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10588 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10589 -e 's|__xservername__|Xorg|g' \
10590 -e 's|__xconfigfile__|xorg.conf|g' \
10591 -e 's|__projectroot__|\$(prefix)|g' \
10592 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
10593 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
10594 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
10595 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
10596 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
10597 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
10598 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
10599
10600
10601
10602 # Check whether --enable-silent-rules was given.
10603 if test "${enable_silent_rules+set}" = set; then :
10604 enableval=$enable_silent_rules;
10605 fi
10606
10607 case $enable_silent_rules in
10608 yes) AM_DEFAULT_VERBOSITY=0;;
10609 no) AM_DEFAULT_VERBOSITY=1;;
10610 *) AM_DEFAULT_VERBOSITY=0;;
10611 esac
10612 AM_BACKSLASH='\'
10613
10614
10615
10616 # Initialize libtool
10617 # Check whether --enable-static was given.
10618 if test "${enable_static+set}" = set; then :
10619 enableval=$enable_static; p=${PACKAGE-default}
10620 case $enableval in
10621 yes) enable_static=yes ;;
10622 no) enable_static=no ;;
10623 *)
10624 enable_static=no
10625 # Look at the argument we got. We use all the common list separators.
10626 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10627 for pkg in $enableval; do
10628 IFS="$lt_save_ifs"
10629 if test "X$pkg" = "X$p"; then
10630 enable_static=yes
10631 fi
10632 done
10633 IFS="$lt_save_ifs"
10634 ;;
10635 esac
10636 else
10637 enable_static=no
10638 fi
10639
10640
10641
10642
10643
10644
10645
10646
10647
10648 case `pwd` in
10649 *\ * | *\ *)
10650 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
10651 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
10652 esac
10653
10654
10655
10656 macro_version='2.4.2'
10657 macro_revision='1.3337'
10658
10659
10660
10661
10662
10663
10664
10665
10666
10667
10668
10669
10670
10671 ltmain="$ac_aux_dir/ltmain.sh"
10672
10673 # Backslashify metacharacters that are still active within
10674 # double-quoted strings.
10675 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
10676
10677 # Same as above, but do not quote variable references.
10678 double_quote_subst='s/\(["`\\]\)/\\\1/g'
10679
10680 # Sed substitution to delay expansion of an escaped shell variable in a
10681 # double_quote_subst'ed string.
10682 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
10683
10684 # Sed substitution to delay expansion of an escaped single quote.
10685 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
10686
10687 # Sed substitution to avoid accidental globbing in evaled expressions
10688 no_glob_subst='s/\*/\\\*/g'
10689
10690 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
10691 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
10692 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
10693
10694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
10695 $as_echo_n "checking how to print strings... " >&6; }
10696 # Test print first, because it will be a builtin if present.
10697 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
10698 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
10699 ECHO='print -r --'
10700 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
10701 ECHO='printf %s\n'
10702 else
10703 # Use this function as a fallback that always works.
10704 func_fallback_echo ()
10705 {
10706 eval 'cat <<_LTECHO_EOF
10707 $1
10708 _LTECHO_EOF'
10709 }
10710 ECHO='func_fallback_echo'
10711 fi
10712
10713 # func_echo_all arg...
10714 # Invoke $ECHO with all args, space-separated.
10715 func_echo_all ()
10716 {
10717 $ECHO ""
10718 }
10719
10720 case "$ECHO" in
10721 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
10722 $as_echo "printf" >&6; } ;;
10723 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
10724 $as_echo "print -r" >&6; } ;;
10725 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
10726 $as_echo "cat" >&6; } ;;
10727 esac
10728
10729
10730
10731
10732
10733
10734
10735
10736
10737
10738
10739
10740
10741
10742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
10743 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
10744 if ${ac_cv_path_SED+:} false; then :
10745 $as_echo_n "(cached) " >&6
10746 else
10747 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
10748 for ac_i in 1 2 3 4 5 6 7; do
10749 ac_script="$ac_script$as_nl$ac_script"
10750 done
10751 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
10752 { ac_script=; unset ac_script;}
10753 if test -z "$SED"; then
10754 ac_path_SED_found=false
10755 # Loop through the user's path and test for each of PROGNAME-LIST
10756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10757 for as_dir in $PATH
10758 do
10759 IFS=$as_save_IFS
10760 test -z "$as_dir" && as_dir=.
10761 for ac_prog in sed gsed; do
10762 for ac_exec_ext in '' $ac_executable_extensions; do
10763 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
10764 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
10765 # Check for GNU ac_path_SED and select it if it is found.
10766 # Check for GNU $ac_path_SED
10767 case `"$ac_path_SED" --version 2>&1` in
10768 *GNU*)
10769 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
10770 *)
10771 ac_count=0
10772 $as_echo_n 0123456789 >"conftest.in"
10773 while :
10774 do
10775 cat "conftest.in" "conftest.in" >"conftest.tmp"
10776 mv "conftest.tmp" "conftest.in"
10777 cp "conftest.in" "conftest.nl"
10778 $as_echo '' >> "conftest.nl"
10779 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
10780 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
10781 as_fn_arith $ac_count + 1 && ac_count=$as_val
10782 if test $ac_count -gt ${ac_path_SED_max-0}; then
10783 # Best one so far, save it but keep looking for a better one
10784 ac_cv_path_SED="$ac_path_SED"
10785 ac_path_SED_max=$ac_count
10786 fi
10787 # 10*(2^10) chars as input seems more than enough
10788 test $ac_count -gt 10 && break
10789 done
10790 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
10791 esac
10792
10793 $ac_path_SED_found && break 3
10794 done
10795 done
10796 done
10797 IFS=$as_save_IFS
10798 if test -z "$ac_cv_path_SED"; then
10799 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
10800 fi
10801 else
10802 ac_cv_path_SED=$SED
10803 fi
10804
10805 fi
10806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
10807 $as_echo "$ac_cv_path_SED" >&6; }
10808 SED="$ac_cv_path_SED"
10809 rm -f conftest.sed
10810
10811 test -z "$SED" && SED=sed
10812 Xsed="$SED -e 1s/^X//"
10813
10814
10815
10816
10817
10818
10819
10820
10821
10822
10823
10824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
10825 $as_echo_n "checking for fgrep... " >&6; }
10826 if ${ac_cv_path_FGREP+:} false; then :
10827 $as_echo_n "(cached) " >&6
10828 else
10829 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
10830 then ac_cv_path_FGREP="$GREP -F"
10831 else
10832 if test -z "$FGREP"; then
10833 ac_path_FGREP_found=false
10834 # Loop through the user's path and test for each of PROGNAME-LIST
10835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10836 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
10837 do
10838 IFS=$as_save_IFS
10839 test -z "$as_dir" && as_dir=.
10840 for ac_prog in fgrep; do
10841 for ac_exec_ext in '' $ac_executable_extensions; do
10842 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
10843 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
10844 # Check for GNU ac_path_FGREP and select it if it is found.
10845 # Check for GNU $ac_path_FGREP
10846 case `"$ac_path_FGREP" --version 2>&1` in
10847 *GNU*)
10848 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
10849 *)
10850 ac_count=0
10851 $as_echo_n 0123456789 >"conftest.in"
10852 while :
10853 do
10854 cat "conftest.in" "conftest.in" >"conftest.tmp"
10855 mv "conftest.tmp" "conftest.in"
10856 cp "conftest.in" "conftest.nl"
10857 $as_echo 'FGREP' >> "conftest.nl"
10858 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
10859 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
10860 as_fn_arith $ac_count + 1 && ac_count=$as_val
10861 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
10862 # Best one so far, save it but keep looking for a better one
10863 ac_cv_path_FGREP="$ac_path_FGREP"
10864 ac_path_FGREP_max=$ac_count
10865 fi
10866 # 10*(2^10) chars as input seems more than enough
10867 test $ac_count -gt 10 && break
10868 done
10869 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
10870 esac
10871
10872 $ac_path_FGREP_found && break 3
10873 done
10874 done
10875 done
10876 IFS=$as_save_IFS
10877 if test -z "$ac_cv_path_FGREP"; then
10878 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
10879 fi
10880 else
10881 ac_cv_path_FGREP=$FGREP
10882 fi
10883
10884 fi
10885 fi
10886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
10887 $as_echo "$ac_cv_path_FGREP" >&6; }
10888 FGREP="$ac_cv_path_FGREP"
10889
10890
10891 test -z "$GREP" && GREP=grep
10892
10893
10894
10895
10896
10897
10898
10899
10900
10901
10902
10903
10904
10905
10906
10907
10908
10909
10910
10911 # Check whether --with-gnu-ld was given.
10912 if test "${with_gnu_ld+set}" = set; then :
10913 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10914 else
10915 with_gnu_ld=no
10916 fi
10917
10918 ac_prog=ld
10919 if test "$GCC" = yes; then
10920 # Check if gcc -print-prog-name=ld gives a path.
10921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
10922 $as_echo_n "checking for ld used by $CC... " >&6; }
10923 case $host in
10924 *-*-mingw*)
10925 # gcc leaves a trailing carriage return which upsets mingw
10926 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10927 *)
10928 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10929 esac
10930 case $ac_prog in
10931 # Accept absolute paths.
10932 [\\/]* | ?:[\\/]*)
10933 re_direlt='/[^/][^/]*/\.\./'
10934 # Canonicalize the pathname of ld
10935 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
10936 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
10937 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
10938 done
10939 test -z "$LD" && LD="$ac_prog"
10940 ;;
10941 "")
10942 # If it fails, then pretend we aren't using GCC.
10943 ac_prog=ld
10944 ;;
10945 *)
10946 # If it is relative, then search for the first ld in PATH.
10947 with_gnu_ld=unknown
10948 ;;
10949 esac
10950 elif test "$with_gnu_ld" = yes; then
10951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
10952 $as_echo_n "checking for GNU ld... " >&6; }
10953 else
10954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
10955 $as_echo_n "checking for non-GNU ld... " >&6; }
10956 fi
10957 if ${lt_cv_path_LD+:} false; then :
10958 $as_echo_n "(cached) " >&6
10959 else
10960 if test -z "$LD"; then
10961 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10962 for ac_dir in $PATH; do
10963 IFS="$lt_save_ifs"
10964 test -z "$ac_dir" && ac_dir=.
10965 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10966 lt_cv_path_LD="$ac_dir/$ac_prog"
10967 # Check to see if the program is GNU ld. I'd rather use --version,
10968 # but apparently some variants of GNU ld only accept -v.
10969 # Break only if it was the GNU/non-GNU ld that we prefer.
10970 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10971 *GNU* | *'with BFD'*)
10972 test "$with_gnu_ld" != no && break
10973 ;;
10974 *)
10975 test "$with_gnu_ld" != yes && break
10976 ;;
10977 esac
10978 fi
10979 done
10980 IFS="$lt_save_ifs"
10981 else
10982 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10983 fi
10984 fi
10985
10986 LD="$lt_cv_path_LD"
10987 if test -n "$LD"; then
10988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
10989 $as_echo "$LD" >&6; }
10990 else
10991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10992 $as_echo "no" >&6; }
10993 fi
10994 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
10995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
10996 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
10997 if ${lt_cv_prog_gnu_ld+:} false; then :
10998 $as_echo_n "(cached) " >&6
10999 else
11000 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11001 case `$LD -v 2>&1 </dev/null` in
11002 *GNU* | *'with BFD'*)
11003 lt_cv_prog_gnu_ld=yes
11004 ;;
11005 *)
11006 lt_cv_prog_gnu_ld=no
11007 ;;
11008 esac
11009 fi
11010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
11011 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
11012 with_gnu_ld=$lt_cv_prog_gnu_ld
11013
11014
11015
11016
11017
11018
11019
11020
11021
11022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
11023 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
11024 if ${lt_cv_path_NM+:} false; then :
11025 $as_echo_n "(cached) " >&6
11026 else
11027 if test -n "$NM"; then
11028 # Let the user override the test.
11029 lt_cv_path_NM="$NM"
11030 else
11031 lt_nm_to_check="${ac_tool_prefix}nm"
11032 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
11033 lt_nm_to_check="$lt_nm_to_check nm"
11034 fi
11035 for lt_tmp_nm in $lt_nm_to_check; do
11036 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11037 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
11038 IFS="$lt_save_ifs"
11039 test -z "$ac_dir" && ac_dir=.
11040 tmp_nm="$ac_dir/$lt_tmp_nm"
11041 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
11042 # Check to see if the nm accepts a BSD-compat flag.
11043 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
11044 # nm: unknown option "B" ignored
11045 # Tru64's nm complains that /dev/null is an invalid object file
11046 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
11047 */dev/null* | *'Invalid file or object type'*)
11048 lt_cv_path_NM="$tmp_nm -B"
11049 break
11050 ;;
11051 *)
11052 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
11053 */dev/null*)
11054 lt_cv_path_NM="$tmp_nm -p"
11055 break
11056 ;;
11057 *)
11058 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
11059 continue # so that we can try to find one that supports BSD flags
11060 ;;
11061 esac
11062 ;;
11063 esac
11064 fi
11065 done
11066 IFS="$lt_save_ifs"
11067 done
11068 : ${lt_cv_path_NM=no}
11069 fi
11070 fi
11071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
11072 $as_echo "$lt_cv_path_NM" >&6; }
11073 if test "$lt_cv_path_NM" != "no"; then
11074 NM="$lt_cv_path_NM"
11075 else
11076 # Didn't find any BSD compatible name lister, look for dumpbin.
11077 if test -n "$DUMPBIN"; then :
11078 # Let the user override the test.
11079 else
11080 if test -n "$ac_tool_prefix"; then
11081 for ac_prog in dumpbin "link -dump"
11082 do
11083 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11084 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11086 $as_echo_n "checking for $ac_word... " >&6; }
11087 if ${ac_cv_prog_DUMPBIN+:} false; then :
11088 $as_echo_n "(cached) " >&6
11089 else
11090 if test -n "$DUMPBIN"; then
11091 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
11092 else
11093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11094 for as_dir in $PATH
11095 do
11096 IFS=$as_save_IFS
11097 test -z "$as_dir" && as_dir=.
11098 for ac_exec_ext in '' $ac_executable_extensions; do
11099 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11100 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
11101 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11102 break 2
11103 fi
11104 done
11105 done
11106 IFS=$as_save_IFS
11107
11108 fi
11109 fi
11110 DUMPBIN=$ac_cv_prog_DUMPBIN
11111 if test -n "$DUMPBIN"; then
11112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
11113 $as_echo "$DUMPBIN" >&6; }
11114 else
11115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11116 $as_echo "no" >&6; }
11117 fi
11118
11119
11120 test -n "$DUMPBIN" && break
11121 done
11122 fi
11123 if test -z "$DUMPBIN"; then
11124 ac_ct_DUMPBIN=$DUMPBIN
11125 for ac_prog in dumpbin "link -dump"
11126 do
11127 # Extract the first word of "$ac_prog", so it can be a program name with args.
11128 set dummy $ac_prog; ac_word=$2
11129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11130 $as_echo_n "checking for $ac_word... " >&6; }
11131 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
11132 $as_echo_n "(cached) " >&6
11133 else
11134 if test -n "$ac_ct_DUMPBIN"; then
11135 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
11136 else
11137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11138 for as_dir in $PATH
11139 do
11140 IFS=$as_save_IFS
11141 test -z "$as_dir" && as_dir=.
11142 for ac_exec_ext in '' $ac_executable_extensions; do
11143 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11144 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
11145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11146 break 2
11147 fi
11148 done
11149 done
11150 IFS=$as_save_IFS
11151
11152 fi
11153 fi
11154 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
11155 if test -n "$ac_ct_DUMPBIN"; then
11156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
11157 $as_echo "$ac_ct_DUMPBIN" >&6; }
11158 else
11159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11160 $as_echo "no" >&6; }
11161 fi
11162
11163
11164 test -n "$ac_ct_DUMPBIN" && break
11165 done
11166
11167 if test "x$ac_ct_DUMPBIN" = x; then
11168 DUMPBIN=":"
11169 else
11170 case $cross_compiling:$ac_tool_warned in
11171 yes:)
11172 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11173 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11174 ac_tool_warned=yes ;;
11175 esac
11176 DUMPBIN=$ac_ct_DUMPBIN
11177 fi
11178 fi
11179
11180 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
11181 *COFF*)
11182 DUMPBIN="$DUMPBIN -symbols"
11183 ;;
11184 *)
11185 DUMPBIN=:
11186 ;;
11187 esac
11188 fi
11189
11190 if test "$DUMPBIN" != ":"; then
11191 NM="$DUMPBIN"
11192 fi
11193 fi
11194 test -z "$NM" && NM=nm
11195
11196
11197
11198
11199
11200
11201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
11202 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
11203 if ${lt_cv_nm_interface+:} false; then :
11204 $as_echo_n "(cached) " >&6
11205 else
11206 lt_cv_nm_interface="BSD nm"
11207 echo "int some_variable = 0;" > conftest.$ac_ext
11208 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
11209 (eval "$ac_compile" 2>conftest.err)
11210 cat conftest.err >&5
11211 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
11212 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
11213 cat conftest.err >&5
11214 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
11215 cat conftest.out >&5
11216 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
11217 lt_cv_nm_interface="MS dumpbin"
11218 fi
11219 rm -f conftest*
11220 fi
11221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
11222 $as_echo "$lt_cv_nm_interface" >&6; }
11223
11224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
11225 $as_echo_n "checking whether ln -s works... " >&6; }
11226 LN_S=$as_ln_s
11227 if test "$LN_S" = "ln -s"; then
11228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11229 $as_echo "yes" >&6; }
11230 else
11231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
11232 $as_echo "no, using $LN_S" >&6; }
11233 fi
11234
11235 # find the maximum length of command line arguments
11236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
11237 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
11238 if ${lt_cv_sys_max_cmd_len+:} false; then :
11239 $as_echo_n "(cached) " >&6
11240 else
11241 i=0
11242 teststring="ABCD"
11243
11244 case $build_os in
11245 msdosdjgpp*)
11246 # On DJGPP, this test can blow up pretty badly due to problems in libc
11247 # (any single argument exceeding 2000 bytes causes a buffer overrun
11248 # during glob expansion). Even if it were fixed, the result of this
11249 # check would be larger than it should be.
11250 lt_cv_sys_max_cmd_len=12288; # 12K is about right
11251 ;;
11252
11253 gnu*)
11254 # Under GNU Hurd, this test is not required because there is
11255 # no limit to the length of command line arguments.
11256 # Libtool will interpret -1 as no limit whatsoever
11257 lt_cv_sys_max_cmd_len=-1;
11258 ;;
11259
11260 cygwin* | mingw* | cegcc*)
11261 # On Win9x/ME, this test blows up -- it succeeds, but takes
11262 # about 5 minutes as the teststring grows exponentially.
11263 # Worse, since 9x/ME are not pre-emptively multitasking,
11264 # you end up with a "frozen" computer, even though with patience
11265 # the test eventually succeeds (with a max line length of 256k).
11266 # Instead, let's just punt: use the minimum linelength reported by
11267 # all of the supported platforms: 8192 (on NT/2K/XP).
11268 lt_cv_sys_max_cmd_len=8192;
11269 ;;
11270
11271 mint*)
11272 # On MiNT this can take a long time and run out of memory.
11273 lt_cv_sys_max_cmd_len=8192;
11274 ;;
11275
11276 amigaos*)
11277 # On AmigaOS with pdksh, this test takes hours, literally.
11278 # So we just punt and use a minimum line length of 8192.
11279 lt_cv_sys_max_cmd_len=8192;
11280 ;;
11281
11282 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
11283 # This has been around since 386BSD, at least. Likely further.
11284 if test -x /sbin/sysctl; then
11285 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
11286 elif test -x /usr/sbin/sysctl; then
11287 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
11288 else
11289 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
11290 fi
11291 # And add a safety zone
11292 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11293 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11294 ;;
11295
11296 interix*)
11297 # We know the value 262144 and hardcode it with a safety zone (like BSD)
11298 lt_cv_sys_max_cmd_len=196608
11299 ;;
11300
11301 os2*)
11302 # The test takes a long time on OS/2.
11303 lt_cv_sys_max_cmd_len=8192
11304 ;;
11305
11306 osf*)
11307 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
11308 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
11309 # nice to cause kernel panics so lets avoid the loop below.
11310 # First set a reasonable default.
11311 lt_cv_sys_max_cmd_len=16384
11312 #
11313 if test -x /sbin/sysconfig; then
11314 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
11315 *1*) lt_cv_sys_max_cmd_len=-1 ;;
11316 esac
11317 fi
11318 ;;
11319 sco3.2v5*)
11320 lt_cv_sys_max_cmd_len=102400
11321 ;;
11322 sysv5* | sco5v6* | sysv4.2uw2*)
11323 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
11324 if test -n "$kargmax"; then
11325 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
11326 else
11327 lt_cv_sys_max_cmd_len=32768
11328 fi
11329 ;;
11330 *)
11331 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
11332 if test -n "$lt_cv_sys_max_cmd_len"; then
11333 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11334 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11335 else
11336 # Make teststring a little bigger before we do anything with it.
11337 # a 1K string should be a reasonable start.
11338 for i in 1 2 3 4 5 6 7 8 ; do
11339 teststring=$teststring$teststring
11340 done
11341 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
11342 # If test is not a shell built-in, we'll probably end up computing a
11343 # maximum length that is only half of the actual maximum length, but
11344 # we can't tell.
11345 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
11346 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
11347 test $i != 17 # 1/2 MB should be enough
11348 do
11349 i=`expr $i + 1`
11350 teststring=$teststring$teststring
11351 done
11352 # Only check the string length outside the loop.
11353 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
11354 teststring=
11355 # Add a significant safety factor because C++ compilers can tack on
11356 # massive amounts of additional arguments before passing them to the
11357 # linker. It appears as though 1/2 is a usable value.
11358 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
11359 fi
11360 ;;
11361 esac
11362
11363 fi
11364
11365 if test -n $lt_cv_sys_max_cmd_len ; then
11366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
11367 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
11368 else
11369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
11370 $as_echo "none" >&6; }
11371 fi
11372 max_cmd_len=$lt_cv_sys_max_cmd_len
11373
11374
11375
11376
11377
11378
11379 : ${CP="cp -f"}
11380 : ${MV="mv -f"}
11381 : ${RM="rm -f"}
11382
11383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
11384 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
11385 # Try some XSI features
11386 xsi_shell=no
11387 ( _lt_dummy="a/b/c"
11388 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
11389 = c,a/b,b/c, \
11390 && eval 'test $(( 1 + 1 )) -eq 2 \
11391 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
11392 && xsi_shell=yes
11393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
11394 $as_echo "$xsi_shell" >&6; }
11395
11396
11397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
11398 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
11399 lt_shell_append=no
11400 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
11401 >/dev/null 2>&1 \
11402 && lt_shell_append=yes
11403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
11404 $as_echo "$lt_shell_append" >&6; }
11405
11406
11407 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11408 lt_unset=unset
11409 else
11410 lt_unset=false
11411 fi
11412
11413
11414
11415
11416
11417 # test EBCDIC or ASCII
11418 case `echo X|tr X '\101'` in
11419 A) # ASCII based system
11420 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
11421 lt_SP2NL='tr \040 \012'
11422 lt_NL2SP='tr \015\012 \040\040'
11423 ;;
11424 *) # EBCDIC based system
11425 lt_SP2NL='tr \100 \n'
11426 lt_NL2SP='tr \r\n \100\100'
11427 ;;
11428 esac
11429
11430
11431
11432
11433
11434
11435
11436
11437
11438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
11439 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
11440 if ${lt_cv_to_host_file_cmd+:} false; then :
11441 $as_echo_n "(cached) " >&6
11442 else
11443 case $host in
11444 *-*-mingw* )
11445 case $build in
11446 *-*-mingw* ) # actually msys
11447 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
11448 ;;
11449 *-*-cygwin* )
11450 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
11451 ;;
11452 * ) # otherwise, assume *nix
11453 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
11454 ;;
11455 esac
11456 ;;
11457 *-*-cygwin* )
11458 case $build in
11459 *-*-mingw* ) # actually msys
11460 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
11461 ;;
11462 *-*-cygwin* )
11463 lt_cv_to_host_file_cmd=func_convert_file_noop
11464 ;;
11465 * ) # otherwise, assume *nix
11466 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
11467 ;;
11468 esac
11469 ;;
11470 * ) # unhandled hosts (and "normal" native builds)
11471 lt_cv_to_host_file_cmd=func_convert_file_noop
11472 ;;
11473 esac
11474
11475 fi
11476
11477 to_host_file_cmd=$lt_cv_to_host_file_cmd
11478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
11479 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
11480
11481
11482
11483
11484
11485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
11486 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
11487 if ${lt_cv_to_tool_file_cmd+:} false; then :
11488 $as_echo_n "(cached) " >&6
11489 else
11490 #assume ordinary cross tools, or native build.
11491 lt_cv_to_tool_file_cmd=func_convert_file_noop
11492 case $host in
11493 *-*-mingw* )
11494 case $build in
11495 *-*-mingw* ) # actually msys
11496 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
11497 ;;
11498 esac
11499 ;;
11500 esac
11501
11502 fi
11503
11504 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
11505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
11506 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
11507
11508
11509
11510
11511
11512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
11513 $as_echo_n "checking for $LD option to reload object files... " >&6; }
11514 if ${lt_cv_ld_reload_flag+:} false; then :
11515 $as_echo_n "(cached) " >&6
11516 else
11517 lt_cv_ld_reload_flag='-r'
11518 fi
11519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
11520 $as_echo "$lt_cv_ld_reload_flag" >&6; }
11521 reload_flag=$lt_cv_ld_reload_flag
11522 case $reload_flag in
11523 "" | " "*) ;;
11524 *) reload_flag=" $reload_flag" ;;
11525 esac
11526 reload_cmds='$LD$reload_flag -o $output$reload_objs'
11527 case $host_os in
11528 cygwin* | mingw* | pw32* | cegcc*)
11529 if test "$GCC" != yes; then
11530 reload_cmds=false
11531 fi
11532 ;;
11533 darwin*)
11534 if test "$GCC" = yes; then
11535 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
11536 else
11537 reload_cmds='$LD$reload_flag -o $output$reload_objs'
11538 fi
11539 ;;
11540 esac
11541
11542
11543
11544
11545
11546
11547
11548
11549
11550 if test -n "$ac_tool_prefix"; then
11551 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
11552 set dummy ${ac_tool_prefix}objdump; ac_word=$2
11553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11554 $as_echo_n "checking for $ac_word... " >&6; }
11555 if ${ac_cv_prog_OBJDUMP+:} false; then :
11556 $as_echo_n "(cached) " >&6
11557 else
11558 if test -n "$OBJDUMP"; then
11559 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
11560 else
11561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11562 for as_dir in $PATH
11563 do
11564 IFS=$as_save_IFS
11565 test -z "$as_dir" && as_dir=.
11566 for ac_exec_ext in '' $ac_executable_extensions; do
11567 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11568 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
11569 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11570 break 2
11571 fi
11572 done
11573 done
11574 IFS=$as_save_IFS
11575
11576 fi
11577 fi
11578 OBJDUMP=$ac_cv_prog_OBJDUMP
11579 if test -n "$OBJDUMP"; then
11580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
11581 $as_echo "$OBJDUMP" >&6; }
11582 else
11583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11584 $as_echo "no" >&6; }
11585 fi
11586
11587
11588 fi
11589 if test -z "$ac_cv_prog_OBJDUMP"; then
11590 ac_ct_OBJDUMP=$OBJDUMP
11591 # Extract the first word of "objdump", so it can be a program name with args.
11592 set dummy objdump; ac_word=$2
11593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11594 $as_echo_n "checking for $ac_word... " >&6; }
11595 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
11596 $as_echo_n "(cached) " >&6
11597 else
11598 if test -n "$ac_ct_OBJDUMP"; then
11599 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
11600 else
11601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11602 for as_dir in $PATH
11603 do
11604 IFS=$as_save_IFS
11605 test -z "$as_dir" && as_dir=.
11606 for ac_exec_ext in '' $ac_executable_extensions; do
11607 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11608 ac_cv_prog_ac_ct_OBJDUMP="objdump"
11609 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11610 break 2
11611 fi
11612 done
11613 done
11614 IFS=$as_save_IFS
11615
11616 fi
11617 fi
11618 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11619 if test -n "$ac_ct_OBJDUMP"; then
11620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
11621 $as_echo "$ac_ct_OBJDUMP" >&6; }
11622 else
11623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11624 $as_echo "no" >&6; }
11625 fi
11626
11627 if test "x$ac_ct_OBJDUMP" = x; then
11628 OBJDUMP="false"
11629 else
11630 case $cross_compiling:$ac_tool_warned in
11631 yes:)
11632 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11633 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11634 ac_tool_warned=yes ;;
11635 esac
11636 OBJDUMP=$ac_ct_OBJDUMP
11637 fi
11638 else
11639 OBJDUMP="$ac_cv_prog_OBJDUMP"
11640 fi
11641
11642 test -z "$OBJDUMP" && OBJDUMP=objdump
11643
11644
11645
11646
11647
11648
11649
11650
11651
11652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
11653 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
11654 if ${lt_cv_deplibs_check_method+:} false; then :
11655 $as_echo_n "(cached) " >&6
11656 else
11657 lt_cv_file_magic_cmd='$MAGIC_CMD'
11658 lt_cv_file_magic_test_file=
11659 lt_cv_deplibs_check_method='unknown'
11660 # Need to set the preceding variable on all platforms that support
11661 # interlibrary dependencies.
11662 # 'none' -- dependencies not supported.
11663 # `unknown' -- same as none, but documents that we really don't know.
11664 # 'pass_all' -- all dependencies passed with no checks.
11665 # 'test_compile' -- check by making test program.
11666 # 'file_magic [[regex]]' -- check by looking for files in library path
11667 # which responds to the $file_magic_cmd with a given extended regex.
11668 # If you have `file' or equivalent on your system and you're not sure
11669 # whether `pass_all' will *always* work, you probably want this one.
11670
11671 case $host_os in
11672 aix[4-9]*)
11673 lt_cv_deplibs_check_method=pass_all
11674 ;;
11675
11676 beos*)
11677 lt_cv_deplibs_check_method=pass_all
11678 ;;
11679
11680 bsdi[45]*)
11681 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
11682 lt_cv_file_magic_cmd='/usr/bin/file -L'
11683 lt_cv_file_magic_test_file=/shlib/libc.so
11684 ;;
11685
11686 cygwin*)
11687 # func_win32_libid is a shell function defined in ltmain.sh
11688 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11689 lt_cv_file_magic_cmd='func_win32_libid'
11690 ;;
11691
11692 mingw* | pw32*)
11693 # Base MSYS/MinGW do not provide the 'file' command needed by
11694 # func_win32_libid shell function, so use a weaker test based on 'objdump',
11695 # unless we find 'file', for example because we are cross-compiling.
11696 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
11697 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
11698 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11699 lt_cv_file_magic_cmd='func_win32_libid'
11700 else
11701 # Keep this pattern in sync with the one in func_win32_libid.
11702 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
11703 lt_cv_file_magic_cmd='$OBJDUMP -f'
11704 fi
11705 ;;
11706
11707 cegcc*)
11708 # use the weaker test based on 'objdump'. See mingw*.
11709 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
11710 lt_cv_file_magic_cmd='$OBJDUMP -f'
11711 ;;
11712
11713 darwin* | rhapsody*)
11714 lt_cv_deplibs_check_method=pass_all
11715 ;;
11716
11717 freebsd* | dragonfly*)
11718 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11719 case $host_cpu in
11720 i*86 )
11721 # Not sure whether the presence of OpenBSD here was a mistake.
11722 # Let's accept both of them until this is cleared up.
11723 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
11724 lt_cv_file_magic_cmd=/usr/bin/file
11725 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
11726 ;;
11727 esac
11728 else
11729 lt_cv_deplibs_check_method=pass_all
11730 fi
11731 ;;
11732
11733 gnu*)
11734 lt_cv_deplibs_check_method=pass_all
11735 ;;
11736
11737 haiku*)
11738 lt_cv_deplibs_check_method=pass_all
11739 ;;
11740
11741 hpux10.20* | hpux11*)
11742 lt_cv_file_magic_cmd=/usr/bin/file
11743 case $host_cpu in
11744 ia64*)
11745 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
11746 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
11747 ;;
11748 hppa*64*)
11749 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]'
11750 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
11751 ;;
11752 *)
11753 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
11754 lt_cv_file_magic_test_file=/usr/lib/libc.sl
11755 ;;
11756 esac
11757 ;;
11758
11759 interix[3-9]*)
11760 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
11761 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
11762 ;;
11763
11764 irix5* | irix6* | nonstopux*)
11765 case $LD in
11766 *-32|*"-32 ") libmagic=32-bit;;
11767 *-n32|*"-n32 ") libmagic=N32;;
11768 *-64|*"-64 ") libmagic=64-bit;;
11769 *) libmagic=never-match;;
11770 esac
11771 lt_cv_deplibs_check_method=pass_all
11772 ;;
11773
11774 # This must be glibc/ELF.
11775 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11776 lt_cv_deplibs_check_method=pass_all
11777 ;;
11778
11779 netbsd*)
11780 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11781 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11782 else
11783 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
11784 fi
11785 ;;
11786
11787 newos6*)
11788 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
11789 lt_cv_file_magic_cmd=/usr/bin/file
11790 lt_cv_file_magic_test_file=/usr/lib/libnls.so
11791 ;;
11792
11793 *nto* | *qnx*)
11794 lt_cv_deplibs_check_method=pass_all
11795 ;;
11796
11797 openbsd*)
11798 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11799 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
11800 else
11801 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11802 fi
11803 ;;
11804
11805 osf3* | osf4* | osf5*)
11806 lt_cv_deplibs_check_method=pass_all
11807 ;;
11808
11809 rdos*)
11810 lt_cv_deplibs_check_method=pass_all
11811 ;;
11812
11813 solaris*)
11814 lt_cv_deplibs_check_method=pass_all
11815 ;;
11816
11817 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11818 lt_cv_deplibs_check_method=pass_all
11819 ;;
11820
11821 sysv4 | sysv4.3*)
11822 case $host_vendor in
11823 motorola)
11824 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]'
11825 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
11826 ;;
11827 ncr)
11828 lt_cv_deplibs_check_method=pass_all
11829 ;;
11830 sequent)
11831 lt_cv_file_magic_cmd='/bin/file'
11832 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
11833 ;;
11834 sni)
11835 lt_cv_file_magic_cmd='/bin/file'
11836 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
11837 lt_cv_file_magic_test_file=/lib/libc.so
11838 ;;
11839 siemens)
11840 lt_cv_deplibs_check_method=pass_all
11841 ;;
11842 pc)
11843 lt_cv_deplibs_check_method=pass_all
11844 ;;
11845 esac
11846 ;;
11847
11848 tpf*)
11849 lt_cv_deplibs_check_method=pass_all
11850 ;;
11851 esac
11852
11853 fi
11854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
11855 $as_echo "$lt_cv_deplibs_check_method" >&6; }
11856
11857 file_magic_glob=
11858 want_nocaseglob=no
11859 if test "$build" = "$host"; then
11860 case $host_os in
11861 mingw* | pw32*)
11862 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
11863 want_nocaseglob=yes
11864 else
11865 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
11866 fi
11867 ;;
11868 esac
11869 fi
11870
11871 file_magic_cmd=$lt_cv_file_magic_cmd
11872 deplibs_check_method=$lt_cv_deplibs_check_method
11873 test -z "$deplibs_check_method" && deplibs_check_method=unknown
11874
11875
11876
11877
11878
11879
11880
11881
11882
11883
11884
11885
11886
11887
11888
11889
11890
11891
11892
11893
11894
11895
11896 if test -n "$ac_tool_prefix"; then
11897 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
11898 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
11899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11900 $as_echo_n "checking for $ac_word... " >&6; }
11901 if ${ac_cv_prog_DLLTOOL+:} false; then :
11902 $as_echo_n "(cached) " >&6
11903 else
11904 if test -n "$DLLTOOL"; then
11905 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11906 else
11907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11908 for as_dir in $PATH
11909 do
11910 IFS=$as_save_IFS
11911 test -z "$as_dir" && as_dir=.
11912 for ac_exec_ext in '' $ac_executable_extensions; do
11913 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11914 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
11915 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11916 break 2
11917 fi
11918 done
11919 done
11920 IFS=$as_save_IFS
11921
11922 fi
11923 fi
11924 DLLTOOL=$ac_cv_prog_DLLTOOL
11925 if test -n "$DLLTOOL"; then
11926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11927 $as_echo "$DLLTOOL" >&6; }
11928 else
11929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11930 $as_echo "no" >&6; }
11931 fi
11932
11933
11934 fi
11935 if test -z "$ac_cv_prog_DLLTOOL"; then
11936 ac_ct_DLLTOOL=$DLLTOOL
11937 # Extract the first word of "dlltool", so it can be a program name with args.
11938 set dummy dlltool; ac_word=$2
11939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11940 $as_echo_n "checking for $ac_word... " >&6; }
11941 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
11942 $as_echo_n "(cached) " >&6
11943 else
11944 if test -n "$ac_ct_DLLTOOL"; then
11945 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
11946 else
11947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11948 for as_dir in $PATH
11949 do
11950 IFS=$as_save_IFS
11951 test -z "$as_dir" && as_dir=.
11952 for ac_exec_ext in '' $ac_executable_extensions; do
11953 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11954 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
11955 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11956 break 2
11957 fi
11958 done
11959 done
11960 IFS=$as_save_IFS
11961
11962 fi
11963 fi
11964 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
11965 if test -n "$ac_ct_DLLTOOL"; then
11966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
11967 $as_echo "$ac_ct_DLLTOOL" >&6; }
11968 else
11969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11970 $as_echo "no" >&6; }
11971 fi
11972
11973 if test "x$ac_ct_DLLTOOL" = x; then
11974 DLLTOOL="false"
11975 else
11976 case $cross_compiling:$ac_tool_warned in
11977 yes:)
11978 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11979 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11980 ac_tool_warned=yes ;;
11981 esac
11982 DLLTOOL=$ac_ct_DLLTOOL
11983 fi
11984 else
11985 DLLTOOL="$ac_cv_prog_DLLTOOL"
11986 fi
11987
11988 test -z "$DLLTOOL" && DLLTOOL=dlltool
11989
11990
11991
11992
11993
11994
11995
11996
11997
11998
11999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
12000 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
12001 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
12002 $as_echo_n "(cached) " >&6
12003 else
12004 lt_cv_sharedlib_from_linklib_cmd='unknown'
12005
12006 case $host_os in
12007 cygwin* | mingw* | pw32* | cegcc*)
12008 # two different shell functions defined in ltmain.sh
12009 # decide which to use based on capabilities of $DLLTOOL
12010 case `$DLLTOOL --help 2>&1` in
12011 *--identify-strict*)
12012 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
12013 ;;
12014 *)
12015 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
12016 ;;
12017 esac
12018 ;;
12019 *)
12020 # fallback: assume linklib IS sharedlib
12021 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
12022 ;;
12023 esac
12024
12025 fi
12026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
12027 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
12028 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
12029 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
12030
12031
12032
12033
12034
12035
12036
12037 if test -n "$ac_tool_prefix"; then
12038 for ac_prog in ar
12039 do
12040 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12041 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12043 $as_echo_n "checking for $ac_word... " >&6; }
12044 if ${ac_cv_prog_AR+:} false; then :
12045 $as_echo_n "(cached) " >&6
12046 else
12047 if test -n "$AR"; then
12048 ac_cv_prog_AR="$AR" # Let the user override the test.
12049 else
12050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12051 for as_dir in $PATH
12052 do
12053 IFS=$as_save_IFS
12054 test -z "$as_dir" && as_dir=.
12055 for ac_exec_ext in '' $ac_executable_extensions; do
12056 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12057 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
12058 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12059 break 2
12060 fi
12061 done
12062 done
12063 IFS=$as_save_IFS
12064
12065 fi
12066 fi
12067 AR=$ac_cv_prog_AR
12068 if test -n "$AR"; then
12069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
12070 $as_echo "$AR" >&6; }
12071 else
12072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12073 $as_echo "no" >&6; }
12074 fi
12075
12076
12077 test -n "$AR" && break
12078 done
12079 fi
12080 if test -z "$AR"; then
12081 ac_ct_AR=$AR
12082 for ac_prog in ar
12083 do
12084 # Extract the first word of "$ac_prog", so it can be a program name with args.
12085 set dummy $ac_prog; ac_word=$2
12086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12087 $as_echo_n "checking for $ac_word... " >&6; }
12088 if ${ac_cv_prog_ac_ct_AR+:} false; then :
12089 $as_echo_n "(cached) " >&6
12090 else
12091 if test -n "$ac_ct_AR"; then
12092 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
12093 else
12094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12095 for as_dir in $PATH
12096 do
12097 IFS=$as_save_IFS
12098 test -z "$as_dir" && as_dir=.
12099 for ac_exec_ext in '' $ac_executable_extensions; do
12100 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12101 ac_cv_prog_ac_ct_AR="$ac_prog"
12102 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12103 break 2
12104 fi
12105 done
12106 done
12107 IFS=$as_save_IFS
12108
12109 fi
12110 fi
12111 ac_ct_AR=$ac_cv_prog_ac_ct_AR
12112 if test -n "$ac_ct_AR"; then
12113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
12114 $as_echo "$ac_ct_AR" >&6; }
12115 else
12116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12117 $as_echo "no" >&6; }
12118 fi
12119
12120
12121 test -n "$ac_ct_AR" && break
12122 done
12123
12124 if test "x$ac_ct_AR" = x; then
12125 AR="false"
12126 else
12127 case $cross_compiling:$ac_tool_warned in
12128 yes:)
12129 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12130 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12131 ac_tool_warned=yes ;;
12132 esac
12133 AR=$ac_ct_AR
12134 fi
12135 fi
12136
12137 : ${AR=ar}
12138 : ${AR_FLAGS=cru}
12139
12140
12141
12142
12143
12144
12145
12146
12147
12148
12149
12150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
12151 $as_echo_n "checking for archiver @FILE support... " >&6; }
12152 if ${lt_cv_ar_at_file+:} false; then :
12153 $as_echo_n "(cached) " >&6
12154 else
12155 lt_cv_ar_at_file=no
12156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12157 /* end confdefs.h. */
12158
12159 int
12160 main ()
12161 {
12162
12163 ;
12164 return 0;
12165 }
12166 _ACEOF
12167 if ac_fn_c_try_compile "$LINENO"; then :
12168 echo conftest.$ac_objext > conftest.lst
12169 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
12170 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
12171 (eval $lt_ar_try) 2>&5
12172 ac_status=$?
12173 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12174 test $ac_status = 0; }
12175 if test "$ac_status" -eq 0; then
12176 # Ensure the archiver fails upon bogus file names.
12177 rm -f conftest.$ac_objext libconftest.a
12178 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
12179 (eval $lt_ar_try) 2>&5
12180 ac_status=$?
12181 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12182 test $ac_status = 0; }
12183 if test "$ac_status" -ne 0; then
12184 lt_cv_ar_at_file=@
12185 fi
12186 fi
12187 rm -f conftest.* libconftest.a
12188
12189 fi
12190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12191
12192 fi
12193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
12194 $as_echo "$lt_cv_ar_at_file" >&6; }
12195
12196 if test "x$lt_cv_ar_at_file" = xno; then
12197 archiver_list_spec=
12198 else
12199 archiver_list_spec=$lt_cv_ar_at_file
12200 fi
12201
12202
12203
12204
12205
12206
12207
12208 if test -n "$ac_tool_prefix"; then
12209 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
12210 set dummy ${ac_tool_prefix}strip; ac_word=$2
12211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12212 $as_echo_n "checking for $ac_word... " >&6; }
12213 if ${ac_cv_prog_STRIP+:} false; then :
12214 $as_echo_n "(cached) " >&6
12215 else
12216 if test -n "$STRIP"; then
12217 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12218 else
12219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12220 for as_dir in $PATH
12221 do
12222 IFS=$as_save_IFS
12223 test -z "$as_dir" && as_dir=.
12224 for ac_exec_ext in '' $ac_executable_extensions; do
12225 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12226 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
12227 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12228 break 2
12229 fi
12230 done
12231 done
12232 IFS=$as_save_IFS
12233
12234 fi
12235 fi
12236 STRIP=$ac_cv_prog_STRIP
12237 if test -n "$STRIP"; then
12238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12239 $as_echo "$STRIP" >&6; }
12240 else
12241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12242 $as_echo "no" >&6; }
12243 fi
12244
12245
12246 fi
12247 if test -z "$ac_cv_prog_STRIP"; then
12248 ac_ct_STRIP=$STRIP
12249 # Extract the first word of "strip", so it can be a program name with args.
12250 set dummy strip; ac_word=$2
12251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12252 $as_echo_n "checking for $ac_word... " >&6; }
12253 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
12254 $as_echo_n "(cached) " >&6
12255 else
12256 if test -n "$ac_ct_STRIP"; then
12257 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
12258 else
12259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12260 for as_dir in $PATH
12261 do
12262 IFS=$as_save_IFS
12263 test -z "$as_dir" && as_dir=.
12264 for ac_exec_ext in '' $ac_executable_extensions; do
12265 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12266 ac_cv_prog_ac_ct_STRIP="strip"
12267 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12268 break 2
12269 fi
12270 done
12271 done
12272 IFS=$as_save_IFS
12273
12274 fi
12275 fi
12276 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
12277 if test -n "$ac_ct_STRIP"; then
12278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
12279 $as_echo "$ac_ct_STRIP" >&6; }
12280 else
12281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12282 $as_echo "no" >&6; }
12283 fi
12284
12285 if test "x$ac_ct_STRIP" = x; then
12286 STRIP=":"
12287 else
12288 case $cross_compiling:$ac_tool_warned in
12289 yes:)
12290 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12291 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12292 ac_tool_warned=yes ;;
12293 esac
12294 STRIP=$ac_ct_STRIP
12295 fi
12296 else
12297 STRIP="$ac_cv_prog_STRIP"
12298 fi
12299
12300 test -z "$STRIP" && STRIP=:
12301
12302
12303
12304
12305
12306
12307 if test -n "$ac_tool_prefix"; then
12308 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12309 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12311 $as_echo_n "checking for $ac_word... " >&6; }
12312 if ${ac_cv_prog_RANLIB+:} false; then :
12313 $as_echo_n "(cached) " >&6
12314 else
12315 if test -n "$RANLIB"; then
12316 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12317 else
12318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12319 for as_dir in $PATH
12320 do
12321 IFS=$as_save_IFS
12322 test -z "$as_dir" && as_dir=.
12323 for ac_exec_ext in '' $ac_executable_extensions; do
12324 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12325 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12326 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12327 break 2
12328 fi
12329 done
12330 done
12331 IFS=$as_save_IFS
12332
12333 fi
12334 fi
12335 RANLIB=$ac_cv_prog_RANLIB
12336 if test -n "$RANLIB"; then
12337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
12338 $as_echo "$RANLIB" >&6; }
12339 else
12340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12341 $as_echo "no" >&6; }
12342 fi
12343
12344
12345 fi
12346 if test -z "$ac_cv_prog_RANLIB"; then
12347 ac_ct_RANLIB=$RANLIB
12348 # Extract the first word of "ranlib", so it can be a program name with args.
12349 set dummy ranlib; ac_word=$2
12350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12351 $as_echo_n "checking for $ac_word... " >&6; }
12352 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
12353 $as_echo_n "(cached) " >&6
12354 else
12355 if test -n "$ac_ct_RANLIB"; then
12356 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12357 else
12358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12359 for as_dir in $PATH
12360 do
12361 IFS=$as_save_IFS
12362 test -z "$as_dir" && as_dir=.
12363 for ac_exec_ext in '' $ac_executable_extensions; do
12364 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12365 ac_cv_prog_ac_ct_RANLIB="ranlib"
12366 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12367 break 2
12368 fi
12369 done
12370 done
12371 IFS=$as_save_IFS
12372
12373 fi
12374 fi
12375 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12376 if test -n "$ac_ct_RANLIB"; then
12377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
12378 $as_echo "$ac_ct_RANLIB" >&6; }
12379 else
12380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12381 $as_echo "no" >&6; }
12382 fi
12383
12384 if test "x$ac_ct_RANLIB" = x; then
12385 RANLIB=":"
12386 else
12387 case $cross_compiling:$ac_tool_warned in
12388 yes:)
12389 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12390 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12391 ac_tool_warned=yes ;;
12392 esac
12393 RANLIB=$ac_ct_RANLIB
12394 fi
12395 else
12396 RANLIB="$ac_cv_prog_RANLIB"
12397 fi
12398
12399 test -z "$RANLIB" && RANLIB=:
12400
12401
12402
12403
12404
12405
12406 # Determine commands to create old-style static archives.
12407 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
12408 old_postinstall_cmds='chmod 644 $oldlib'
12409 old_postuninstall_cmds=
12410
12411 if test -n "$RANLIB"; then
12412 case $host_os in
12413 openbsd*)
12414 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
12415 ;;
12416 *)
12417 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
12418 ;;
12419 esac
12420 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
12421 fi
12422
12423 case $host_os in
12424 darwin*)
12425 lock_old_archive_extraction=yes ;;
12426 *)
12427 lock_old_archive_extraction=no ;;
12428 esac
12429
12430
12431
12432
12433
12434
12435
12436
12437
12438
12439
12440
12441
12442
12443
12444
12445
12446
12447
12448
12449
12450
12451
12452
12453
12454
12455
12456
12457
12458
12459
12460
12461
12462
12463
12464
12465
12466
12467
12468 # If no C compiler was specified, use CC.
12469 LTCC=${LTCC-"$CC"}
12470
12471 # If no C compiler flags were specified, use CFLAGS.
12472 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12473
12474 # Allow CC to be a program name with arguments.
12475 compiler=$CC
12476
12477
12478 # Check for command to grab the raw symbol name followed by C symbol from nm.
12479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
12480 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
12481 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
12482 $as_echo_n "(cached) " >&6
12483 else
12484
12485 # These are sane defaults that work on at least a few old systems.
12486 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
12487
12488 # Character class describing NM global symbol codes.
12489 symcode='[BCDEGRST]'
12490
12491 # Regexp to match symbols that can be accessed directly from C.
12492 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
12493
12494 # Define system-specific variables.
12495 case $host_os in
12496 aix*)
12497 symcode='[BCDT]'
12498 ;;
12499 cygwin* | mingw* | pw32* | cegcc*)
12500 symcode='[ABCDGISTW]'
12501 ;;
12502 hpux*)
12503 if test "$host_cpu" = ia64; then
12504 symcode='[ABCDEGRST]'
12505 fi
12506 ;;
12507 irix* | nonstopux*)
12508 symcode='[BCDEGRST]'
12509 ;;
12510 osf*)
12511 symcode='[BCDEGQRST]'
12512 ;;
12513 solaris*)
12514 symcode='[BDRT]'
12515 ;;
12516 sco3.2v5*)
12517 symcode='[DT]'
12518 ;;
12519 sysv4.2uw2*)
12520 symcode='[DT]'
12521 ;;
12522 sysv5* | sco5v6* | unixware* | OpenUNIX*)
12523 symcode='[ABDT]'
12524 ;;
12525 sysv4)
12526 symcode='[DFNSTU]'
12527 ;;
12528 esac
12529
12530 # If we're using GNU nm, then use its standard symbol codes.
12531 case `$NM -V 2>&1` in
12532 *GNU* | *'with BFD'*)
12533 symcode='[ABCDGIRSTW]' ;;
12534 esac
12535
12536 # Transform an extracted symbol line into a proper C declaration.
12537 # Some systems (esp. on ia64) link data and code symbols differently,
12538 # so use this general approach.
12539 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
12540
12541 # Transform an extracted symbol line into symbol name and symbol address
12542 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
12543 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'"
12544
12545 # Handle CRLF in mingw tool chain
12546 opt_cr=
12547 case $build_os in
12548 mingw*)
12549 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
12550 ;;
12551 esac
12552
12553 # Try without a prefix underscore, then with it.
12554 for ac_symprfx in "" "_"; do
12555
12556 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
12557 symxfrm="\\1 $ac_symprfx\\2 \\2"
12558
12559 # Write the raw and C identifiers.
12560 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12561 # Fake it for dumpbin and say T for any non-static function
12562 # and D for any global variable.
12563 # Also find C++ and __fastcall symbols from MSVC++,
12564 # which start with @ or ?.
12565 lt_cv_sys_global_symbol_pipe="$AWK '"\
12566 " {last_section=section; section=\$ 3};"\
12567 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
12568 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
12569 " \$ 0!~/External *\|/{next};"\
12570 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
12571 " {if(hide[section]) next};"\
12572 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
12573 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
12574 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
12575 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
12576 " ' prfx=^$ac_symprfx"
12577 else
12578 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
12579 fi
12580 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
12581
12582 # Check to see that the pipe works correctly.
12583 pipe_works=no
12584
12585 rm -f conftest*
12586 cat > conftest.$ac_ext <<_LT_EOF
12587 #ifdef __cplusplus
12588 extern "C" {
12589 #endif
12590 char nm_test_var;
12591 void nm_test_func(void);
12592 void nm_test_func(void){}
12593 #ifdef __cplusplus
12594 }
12595 #endif
12596 int main(){nm_test_var='a';nm_test_func();return(0);}
12597 _LT_EOF
12598
12599 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12600 (eval $ac_compile) 2>&5
12601 ac_status=$?
12602 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12603 test $ac_status = 0; }; then
12604 # Now try to grab the symbols.
12605 nlist=conftest.nm
12606 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
12607 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
12608 ac_status=$?
12609 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12610 test $ac_status = 0; } && test -s "$nlist"; then
12611 # Try sorting and uniquifying the output.
12612 if sort "$nlist" | uniq > "$nlist"T; then
12613 mv -f "$nlist"T "$nlist"
12614 else
12615 rm -f "$nlist"T
12616 fi
12617
12618 # Make sure that we snagged all the symbols we need.
12619 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
12620 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
12621 cat <<_LT_EOF > conftest.$ac_ext
12622 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
12623 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
12624 /* DATA imports from DLLs on WIN32 con't be const, because runtime
12625 relocations are performed -- see ld's documentation on pseudo-relocs. */
12626 # define LT_DLSYM_CONST
12627 #elif defined(__osf__)
12628 /* This system does not cope well with relocations in const data. */
12629 # define LT_DLSYM_CONST
12630 #else
12631 # define LT_DLSYM_CONST const
12632 #endif
12633
12634 #ifdef __cplusplus
12635 extern "C" {
12636 #endif
12637
12638 _LT_EOF
12639 # Now generate the symbol file.
12640 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
12641
12642 cat <<_LT_EOF >> conftest.$ac_ext
12643
12644 /* The mapping between symbol names and symbols. */
12645 LT_DLSYM_CONST struct {
12646 const char *name;
12647 void *address;
12648 }
12649 lt__PROGRAM__LTX_preloaded_symbols[] =
12650 {
12651 { "@PROGRAM@", (void *) 0 },
12652 _LT_EOF
12653 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
12654 cat <<\_LT_EOF >> conftest.$ac_ext
12655 {0, (void *) 0}
12656 };
12657
12658 /* This works around a problem in FreeBSD linker */
12659 #ifdef FREEBSD_WORKAROUND
12660 static const void *lt_preloaded_setup() {
12661 return lt__PROGRAM__LTX_preloaded_symbols;
12662 }
12663 #endif
12664
12665 #ifdef __cplusplus
12666 }
12667 #endif
12668 _LT_EOF
12669 # Now try linking the two files.
12670 mv conftest.$ac_objext conftstm.$ac_objext
12671 lt_globsym_save_LIBS=$LIBS
12672 lt_globsym_save_CFLAGS=$CFLAGS
12673 LIBS="conftstm.$ac_objext"
12674 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
12675 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12676 (eval $ac_link) 2>&5
12677 ac_status=$?
12678 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12679 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
12680 pipe_works=yes
12681 fi
12682 LIBS=$lt_globsym_save_LIBS
12683 CFLAGS=$lt_globsym_save_CFLAGS
12684 else
12685 echo "cannot find nm_test_func in $nlist" >&5
12686 fi
12687 else
12688 echo "cannot find nm_test_var in $nlist" >&5
12689 fi
12690 else
12691 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
12692 fi
12693 else
12694 echo "$progname: failed program was:" >&5
12695 cat conftest.$ac_ext >&5
12696 fi
12697 rm -rf conftest* conftst*
12698
12699 # Do not use the global_symbol_pipe unless it works.
12700 if test "$pipe_works" = yes; then
12701 break
12702 else
12703 lt_cv_sys_global_symbol_pipe=
12704 fi
12705 done
12706
12707 fi
12708
12709 if test -z "$lt_cv_sys_global_symbol_pipe"; then
12710 lt_cv_sys_global_symbol_to_cdecl=
12711 fi
12712 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
12713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
12714 $as_echo "failed" >&6; }
12715 else
12716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
12717 $as_echo "ok" >&6; }
12718 fi
12719
12720 # Response file support.
12721 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12722 nm_file_list_spec='@'
12723 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
12724 nm_file_list_spec='@'
12725 fi
12726
12727
12728
12729
12730
12731
12732
12733
12734
12735
12736
12737
12738
12739
12740
12741
12742
12743
12744
12745
12746
12747
12748
12749
12750
12751
12752
12753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
12754 $as_echo_n "checking for sysroot... " >&6; }
12755
12756 # Check whether --with-sysroot was given.
12757 if test "${with_sysroot+set}" = set; then :
12758 withval=$with_sysroot;
12759 else
12760 with_sysroot=no
12761 fi
12762
12763
12764 lt_sysroot=
12765 case ${with_sysroot} in #(
12766 yes)
12767 if test "$GCC" = yes; then
12768 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
12769 fi
12770 ;; #(
12771 /*)
12772 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
12773 ;; #(
12774 no|'')
12775 ;; #(
12776 *)
12777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
12778 $as_echo "${with_sysroot}" >&6; }
12779 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
12780 ;;
12781 esac
12782
12783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
12784 $as_echo "${lt_sysroot:-no}" >&6; }
12785
12786
12787
12788
12789
12790 # Check whether --enable-libtool-lock was given.
12791 if test "${enable_libtool_lock+set}" = set; then :
12792 enableval=$enable_libtool_lock;
12793 fi
12794
12795 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12796
12797 # Some flags need to be propagated to the compiler or linker for good
12798 # libtool support.
12799 case $host in
12800 ia64-*-hpux*)
12801 # Find out which ABI we are using.
12802 echo 'int i;' > conftest.$ac_ext
12803 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12804 (eval $ac_compile) 2>&5
12805 ac_status=$?
12806 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12807 test $ac_status = 0; }; then
12808 case `/usr/bin/file conftest.$ac_objext` in
12809 *ELF-32*)
12810 HPUX_IA64_MODE="32"
12811 ;;
12812 *ELF-64*)
12813 HPUX_IA64_MODE="64"
12814 ;;
12815 esac
12816 fi
12817 rm -rf conftest*
12818 ;;
12819 *-*-irix6*)
12820 # Find out which ABI we are using.
12821 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
12822 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12823 (eval $ac_compile) 2>&5
12824 ac_status=$?
12825 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12826 test $ac_status = 0; }; then
12827 if test "$lt_cv_prog_gnu_ld" = yes; then
12828 case `/usr/bin/file conftest.$ac_objext` in
12829 *32-bit*)
12830 LD="${LD-ld} -melf32bsmip"
12831 ;;
12832 *N32*)
12833 LD="${LD-ld} -melf32bmipn32"
12834 ;;
12835 *64-bit*)
12836 LD="${LD-ld} -melf64bmip"
12837 ;;
12838 esac
12839 else
12840 case `/usr/bin/file conftest.$ac_objext` in
12841 *32-bit*)
12842 LD="${LD-ld} -32"
12843 ;;
12844 *N32*)
12845 LD="${LD-ld} -n32"
12846 ;;
12847 *64-bit*)
12848 LD="${LD-ld} -64"
12849 ;;
12850 esac
12851 fi
12852 fi
12853 rm -rf conftest*
12854 ;;
12855
12856 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
12857 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
12858 # Find out which ABI we are using.
12859 echo 'int i;' > conftest.$ac_ext
12860 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12861 (eval $ac_compile) 2>&5
12862 ac_status=$?
12863 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12864 test $ac_status = 0; }; then
12865 case `/usr/bin/file conftest.o` in
12866 *32-bit*)
12867 case $host in
12868 x86_64-*kfreebsd*-gnu)
12869 LD="${LD-ld} -m elf_i386_fbsd"
12870 ;;
12871 x86_64-*linux*)
12872 LD="${LD-ld} -m elf_i386"
12873 ;;
12874 ppc64-*linux*|powerpc64-*linux*)
12875 LD="${LD-ld} -m elf32ppclinux"
12876 ;;
12877 s390x-*linux*)
12878 LD="${LD-ld} -m elf_s390"
12879 ;;
12880 sparc64-*linux*)
12881 LD="${LD-ld} -m elf32_sparc"
12882 ;;
12883 esac
12884 ;;
12885 *64-bit*)
12886 case $host in
12887 x86_64-*kfreebsd*-gnu)
12888 LD="${LD-ld} -m elf_x86_64_fbsd"
12889 ;;
12890 x86_64-*linux*)
12891 LD="${LD-ld} -m elf_x86_64"
12892 ;;
12893 ppc*-*linux*|powerpc*-*linux*)
12894 LD="${LD-ld} -m elf64ppc"
12895 ;;
12896 s390*-*linux*|s390*-*tpf*)
12897 LD="${LD-ld} -m elf64_s390"
12898 ;;
12899 sparc*-*linux*)
12900 LD="${LD-ld} -m elf64_sparc"
12901 ;;
12902 esac
12903 ;;
12904 esac
12905 fi
12906 rm -rf conftest*
12907 ;;
12908
12909 *-*-sco3.2v5*)
12910 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
12911 SAVE_CFLAGS="$CFLAGS"
12912 CFLAGS="$CFLAGS -belf"
12913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
12914 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
12915 if ${lt_cv_cc_needs_belf+:} false; then :
12916 $as_echo_n "(cached) " >&6
12917 else
12918 ac_ext=c
12919 ac_cpp='$CPP $CPPFLAGS'
12920 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12921 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12922 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12923
12924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12925 /* end confdefs.h. */
12926
12927 int
12928 main ()
12929 {
12930
12931 ;
12932 return 0;
12933 }
12934 _ACEOF
12935 if ac_fn_c_try_link "$LINENO"; then :
12936 lt_cv_cc_needs_belf=yes
12937 else
12938 lt_cv_cc_needs_belf=no
12939 fi
12940 rm -f core conftest.err conftest.$ac_objext \
12941 conftest$ac_exeext conftest.$ac_ext
12942 ac_ext=c
12943 ac_cpp='$CPP $CPPFLAGS'
12944 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12945 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12946 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12947
12948 fi
12949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
12950 $as_echo "$lt_cv_cc_needs_belf" >&6; }
12951 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
12952 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
12953 CFLAGS="$SAVE_CFLAGS"
12954 fi
12955 ;;
12956 *-*solaris*)
12957 # Find out which ABI we are using.
12958 echo 'int i;' > conftest.$ac_ext
12959 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12960 (eval $ac_compile) 2>&5
12961 ac_status=$?
12962 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12963 test $ac_status = 0; }; then
12964 case `/usr/bin/file conftest.o` in
12965 *64-bit*)
12966 case $lt_cv_prog_gnu_ld in
12967 yes*)
12968 case $host in
12969 i?86-*-solaris*)
12970 LD="${LD-ld} -m elf_x86_64"
12971 ;;
12972 sparc*-*-solaris*)
12973 LD="${LD-ld} -m elf64_sparc"
12974 ;;
12975 esac
12976 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
12977 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
12978 LD="${LD-ld}_sol2"
12979 fi
12980 ;;
12981 *)
12982 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
12983 LD="${LD-ld} -64"
12984 fi
12985 ;;
12986 esac
12987 ;;
12988 esac
12989 fi
12990 rm -rf conftest*
12991 ;;
12992 esac
12993
12994 need_locks="$enable_libtool_lock"
12995
12996 if test -n "$ac_tool_prefix"; then
12997 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
12998 set dummy ${ac_tool_prefix}mt; ac_word=$2
12999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13000 $as_echo_n "checking for $ac_word... " >&6; }
13001 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
13002 $as_echo_n "(cached) " >&6
13003 else
13004 if test -n "$MANIFEST_TOOL"; then
13005 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
13006 else
13007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13008 for as_dir in $PATH
13009 do
13010 IFS=$as_save_IFS
13011 test -z "$as_dir" && as_dir=.
13012 for ac_exec_ext in '' $ac_executable_extensions; do
13013 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13014 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
13015 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13016 break 2
13017 fi
13018 done
13019 done
13020 IFS=$as_save_IFS
13021
13022 fi
13023 fi
13024 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
13025 if test -n "$MANIFEST_TOOL"; then
13026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
13027 $as_echo "$MANIFEST_TOOL" >&6; }
13028 else
13029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13030 $as_echo "no" >&6; }
13031 fi
13032
13033
13034 fi
13035 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
13036 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
13037 # Extract the first word of "mt", so it can be a program name with args.
13038 set dummy mt; ac_word=$2
13039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13040 $as_echo_n "checking for $ac_word... " >&6; }
13041 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
13042 $as_echo_n "(cached) " >&6
13043 else
13044 if test -n "$ac_ct_MANIFEST_TOOL"; then
13045 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
13046 else
13047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13048 for as_dir in $PATH
13049 do
13050 IFS=$as_save_IFS
13051 test -z "$as_dir" && as_dir=.
13052 for ac_exec_ext in '' $ac_executable_extensions; do
13053 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13054 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
13055 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13056 break 2
13057 fi
13058 done
13059 done
13060 IFS=$as_save_IFS
13061
13062 fi
13063 fi
13064 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
13065 if test -n "$ac_ct_MANIFEST_TOOL"; then
13066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
13067 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
13068 else
13069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13070 $as_echo "no" >&6; }
13071 fi
13072
13073 if test "x$ac_ct_MANIFEST_TOOL" = x; then
13074 MANIFEST_TOOL=":"
13075 else
13076 case $cross_compiling:$ac_tool_warned in
13077 yes:)
13078 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13079 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13080 ac_tool_warned=yes ;;
13081 esac
13082 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
13083 fi
13084 else
13085 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
13086 fi
13087
13088 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
13089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
13090 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
13091 if ${lt_cv_path_mainfest_tool+:} false; then :
13092 $as_echo_n "(cached) " >&6
13093 else
13094 lt_cv_path_mainfest_tool=no
13095 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
13096 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
13097 cat conftest.err >&5
13098 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
13099 lt_cv_path_mainfest_tool=yes
13100 fi
13101 rm -f conftest*
13102 fi
13103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
13104 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
13105 if test "x$lt_cv_path_mainfest_tool" != xyes; then
13106 MANIFEST_TOOL=:
13107 fi
13108
13109
13110
13111
13112
13113
13114 case $host_os in
13115 rhapsody* | darwin*)
13116 if test -n "$ac_tool_prefix"; then
13117 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
13118 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
13119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13120 $as_echo_n "checking for $ac_word... " >&6; }
13121 if ${ac_cv_prog_DSYMUTIL+:} false; then :
13122 $as_echo_n "(cached) " >&6
13123 else
13124 if test -n "$DSYMUTIL"; then
13125 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
13126 else
13127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13128 for as_dir in $PATH
13129 do
13130 IFS=$as_save_IFS
13131 test -z "$as_dir" && as_dir=.
13132 for ac_exec_ext in '' $ac_executable_extensions; do
13133 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13134 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
13135 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13136 break 2
13137 fi
13138 done
13139 done
13140 IFS=$as_save_IFS
13141
13142 fi
13143 fi
13144 DSYMUTIL=$ac_cv_prog_DSYMUTIL
13145 if test -n "$DSYMUTIL"; then
13146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
13147 $as_echo "$DSYMUTIL" >&6; }
13148 else
13149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13150 $as_echo "no" >&6; }
13151 fi
13152
13153
13154 fi
13155 if test -z "$ac_cv_prog_DSYMUTIL"; then
13156 ac_ct_DSYMUTIL=$DSYMUTIL
13157 # Extract the first word of "dsymutil", so it can be a program name with args.
13158 set dummy dsymutil; ac_word=$2
13159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13160 $as_echo_n "checking for $ac_word... " >&6; }
13161 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
13162 $as_echo_n "(cached) " >&6
13163 else
13164 if test -n "$ac_ct_DSYMUTIL"; then
13165 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
13166 else
13167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13168 for as_dir in $PATH
13169 do
13170 IFS=$as_save_IFS
13171 test -z "$as_dir" && as_dir=.
13172 for ac_exec_ext in '' $ac_executable_extensions; do
13173 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13174 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
13175 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13176 break 2
13177 fi
13178 done
13179 done
13180 IFS=$as_save_IFS
13181
13182 fi
13183 fi
13184 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
13185 if test -n "$ac_ct_DSYMUTIL"; then
13186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
13187 $as_echo "$ac_ct_DSYMUTIL" >&6; }
13188 else
13189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13190 $as_echo "no" >&6; }
13191 fi
13192
13193 if test "x$ac_ct_DSYMUTIL" = x; then
13194 DSYMUTIL=":"
13195 else
13196 case $cross_compiling:$ac_tool_warned in
13197 yes:)
13198 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13199 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13200 ac_tool_warned=yes ;;
13201 esac
13202 DSYMUTIL=$ac_ct_DSYMUTIL
13203 fi
13204 else
13205 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
13206 fi
13207
13208 if test -n "$ac_tool_prefix"; then
13209 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
13210 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
13211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13212 $as_echo_n "checking for $ac_word... " >&6; }
13213 if ${ac_cv_prog_NMEDIT+:} false; then :
13214 $as_echo_n "(cached) " >&6
13215 else
13216 if test -n "$NMEDIT"; then
13217 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
13218 else
13219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13220 for as_dir in $PATH
13221 do
13222 IFS=$as_save_IFS
13223 test -z "$as_dir" && as_dir=.
13224 for ac_exec_ext in '' $ac_executable_extensions; do
13225 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13226 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
13227 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13228 break 2
13229 fi
13230 done
13231 done
13232 IFS=$as_save_IFS
13233
13234 fi
13235 fi
13236 NMEDIT=$ac_cv_prog_NMEDIT
13237 if test -n "$NMEDIT"; then
13238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
13239 $as_echo "$NMEDIT" >&6; }
13240 else
13241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13242 $as_echo "no" >&6; }
13243 fi
13244
13245
13246 fi
13247 if test -z "$ac_cv_prog_NMEDIT"; then
13248 ac_ct_NMEDIT=$NMEDIT
13249 # Extract the first word of "nmedit", so it can be a program name with args.
13250 set dummy nmedit; ac_word=$2
13251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13252 $as_echo_n "checking for $ac_word... " >&6; }
13253 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
13254 $as_echo_n "(cached) " >&6
13255 else
13256 if test -n "$ac_ct_NMEDIT"; then
13257 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
13258 else
13259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13260 for as_dir in $PATH
13261 do
13262 IFS=$as_save_IFS
13263 test -z "$as_dir" && as_dir=.
13264 for ac_exec_ext in '' $ac_executable_extensions; do
13265 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13266 ac_cv_prog_ac_ct_NMEDIT="nmedit"
13267 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13268 break 2
13269 fi
13270 done
13271 done
13272 IFS=$as_save_IFS
13273
13274 fi
13275 fi
13276 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
13277 if test -n "$ac_ct_NMEDIT"; then
13278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
13279 $as_echo "$ac_ct_NMEDIT" >&6; }
13280 else
13281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13282 $as_echo "no" >&6; }
13283 fi
13284
13285 if test "x$ac_ct_NMEDIT" = x; then
13286 NMEDIT=":"
13287 else
13288 case $cross_compiling:$ac_tool_warned in
13289 yes:)
13290 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13291 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13292 ac_tool_warned=yes ;;
13293 esac
13294 NMEDIT=$ac_ct_NMEDIT
13295 fi
13296 else
13297 NMEDIT="$ac_cv_prog_NMEDIT"
13298 fi
13299
13300 if test -n "$ac_tool_prefix"; then
13301 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
13302 set dummy ${ac_tool_prefix}lipo; ac_word=$2
13303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13304 $as_echo_n "checking for $ac_word... " >&6; }
13305 if ${ac_cv_prog_LIPO+:} false; then :
13306 $as_echo_n "(cached) " >&6
13307 else
13308 if test -n "$LIPO"; then
13309 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
13310 else
13311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13312 for as_dir in $PATH
13313 do
13314 IFS=$as_save_IFS
13315 test -z "$as_dir" && as_dir=.
13316 for ac_exec_ext in '' $ac_executable_extensions; do
13317 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13318 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
13319 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13320 break 2
13321 fi
13322 done
13323 done
13324 IFS=$as_save_IFS
13325
13326 fi
13327 fi
13328 LIPO=$ac_cv_prog_LIPO
13329 if test -n "$LIPO"; then
13330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
13331 $as_echo "$LIPO" >&6; }
13332 else
13333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13334 $as_echo "no" >&6; }
13335 fi
13336
13337
13338 fi
13339 if test -z "$ac_cv_prog_LIPO"; then
13340 ac_ct_LIPO=$LIPO
13341 # Extract the first word of "lipo", so it can be a program name with args.
13342 set dummy lipo; ac_word=$2
13343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13344 $as_echo_n "checking for $ac_word... " >&6; }
13345 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
13346 $as_echo_n "(cached) " >&6
13347 else
13348 if test -n "$ac_ct_LIPO"; then
13349 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
13350 else
13351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13352 for as_dir in $PATH
13353 do
13354 IFS=$as_save_IFS
13355 test -z "$as_dir" && as_dir=.
13356 for ac_exec_ext in '' $ac_executable_extensions; do
13357 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13358 ac_cv_prog_ac_ct_LIPO="lipo"
13359 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13360 break 2
13361 fi
13362 done
13363 done
13364 IFS=$as_save_IFS
13365
13366 fi
13367 fi
13368 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
13369 if test -n "$ac_ct_LIPO"; then
13370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
13371 $as_echo "$ac_ct_LIPO" >&6; }
13372 else
13373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13374 $as_echo "no" >&6; }
13375 fi
13376
13377 if test "x$ac_ct_LIPO" = x; then
13378 LIPO=":"
13379 else
13380 case $cross_compiling:$ac_tool_warned in
13381 yes:)
13382 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13383 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13384 ac_tool_warned=yes ;;
13385 esac
13386 LIPO=$ac_ct_LIPO
13387 fi
13388 else
13389 LIPO="$ac_cv_prog_LIPO"
13390 fi
13391
13392 if test -n "$ac_tool_prefix"; then
13393 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
13394 set dummy ${ac_tool_prefix}otool; ac_word=$2
13395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13396 $as_echo_n "checking for $ac_word... " >&6; }
13397 if ${ac_cv_prog_OTOOL+:} false; then :
13398 $as_echo_n "(cached) " >&6
13399 else
13400 if test -n "$OTOOL"; then
13401 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
13402 else
13403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13404 for as_dir in $PATH
13405 do
13406 IFS=$as_save_IFS
13407 test -z "$as_dir" && as_dir=.
13408 for ac_exec_ext in '' $ac_executable_extensions; do
13409 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13410 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
13411 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13412 break 2
13413 fi
13414 done
13415 done
13416 IFS=$as_save_IFS
13417
13418 fi
13419 fi
13420 OTOOL=$ac_cv_prog_OTOOL
13421 if test -n "$OTOOL"; then
13422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
13423 $as_echo "$OTOOL" >&6; }
13424 else
13425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13426 $as_echo "no" >&6; }
13427 fi
13428
13429
13430 fi
13431 if test -z "$ac_cv_prog_OTOOL"; then
13432 ac_ct_OTOOL=$OTOOL
13433 # Extract the first word of "otool", so it can be a program name with args.
13434 set dummy otool; ac_word=$2
13435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13436 $as_echo_n "checking for $ac_word... " >&6; }
13437 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
13438 $as_echo_n "(cached) " >&6
13439 else
13440 if test -n "$ac_ct_OTOOL"; then
13441 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
13442 else
13443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13444 for as_dir in $PATH
13445 do
13446 IFS=$as_save_IFS
13447 test -z "$as_dir" && as_dir=.
13448 for ac_exec_ext in '' $ac_executable_extensions; do
13449 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13450 ac_cv_prog_ac_ct_OTOOL="otool"
13451 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13452 break 2
13453 fi
13454 done
13455 done
13456 IFS=$as_save_IFS
13457
13458 fi
13459 fi
13460 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
13461 if test -n "$ac_ct_OTOOL"; then
13462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
13463 $as_echo "$ac_ct_OTOOL" >&6; }
13464 else
13465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13466 $as_echo "no" >&6; }
13467 fi
13468
13469 if test "x$ac_ct_OTOOL" = x; then
13470 OTOOL=":"
13471 else
13472 case $cross_compiling:$ac_tool_warned in
13473 yes:)
13474 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13475 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13476 ac_tool_warned=yes ;;
13477 esac
13478 OTOOL=$ac_ct_OTOOL
13479 fi
13480 else
13481 OTOOL="$ac_cv_prog_OTOOL"
13482 fi
13483
13484 if test -n "$ac_tool_prefix"; then
13485 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
13486 set dummy ${ac_tool_prefix}otool64; ac_word=$2
13487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13488 $as_echo_n "checking for $ac_word... " >&6; }
13489 if ${ac_cv_prog_OTOOL64+:} false; then :
13490 $as_echo_n "(cached) " >&6
13491 else
13492 if test -n "$OTOOL64"; then
13493 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
13494 else
13495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13496 for as_dir in $PATH
13497 do
13498 IFS=$as_save_IFS
13499 test -z "$as_dir" && as_dir=.
13500 for ac_exec_ext in '' $ac_executable_extensions; do
13501 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13502 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
13503 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13504 break 2
13505 fi
13506 done
13507 done
13508 IFS=$as_save_IFS
13509
13510 fi
13511 fi
13512 OTOOL64=$ac_cv_prog_OTOOL64
13513 if test -n "$OTOOL64"; then
13514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
13515 $as_echo "$OTOOL64" >&6; }
13516 else
13517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13518 $as_echo "no" >&6; }
13519 fi
13520
13521
13522 fi
13523 if test -z "$ac_cv_prog_OTOOL64"; then
13524 ac_ct_OTOOL64=$OTOOL64
13525 # Extract the first word of "otool64", so it can be a program name with args.
13526 set dummy otool64; ac_word=$2
13527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13528 $as_echo_n "checking for $ac_word... " >&6; }
13529 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
13530 $as_echo_n "(cached) " >&6
13531 else
13532 if test -n "$ac_ct_OTOOL64"; then
13533 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
13534 else
13535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13536 for as_dir in $PATH
13537 do
13538 IFS=$as_save_IFS
13539 test -z "$as_dir" && as_dir=.
13540 for ac_exec_ext in '' $ac_executable_extensions; do
13541 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13542 ac_cv_prog_ac_ct_OTOOL64="otool64"
13543 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13544 break 2
13545 fi
13546 done
13547 done
13548 IFS=$as_save_IFS
13549
13550 fi
13551 fi
13552 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
13553 if test -n "$ac_ct_OTOOL64"; then
13554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
13555 $as_echo "$ac_ct_OTOOL64" >&6; }
13556 else
13557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13558 $as_echo "no" >&6; }
13559 fi
13560
13561 if test "x$ac_ct_OTOOL64" = x; then
13562 OTOOL64=":"
13563 else
13564 case $cross_compiling:$ac_tool_warned in
13565 yes:)
13566 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13567 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13568 ac_tool_warned=yes ;;
13569 esac
13570 OTOOL64=$ac_ct_OTOOL64
13571 fi
13572 else
13573 OTOOL64="$ac_cv_prog_OTOOL64"
13574 fi
13575
13576
13577
13578
13579
13580
13581
13582
13583
13584
13585
13586
13587
13588
13589
13590
13591
13592
13593
13594
13595
13596
13597
13598
13599
13600
13601
13602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
13603 $as_echo_n "checking for -single_module linker flag... " >&6; }
13604 if ${lt_cv_apple_cc_single_mod+:} false; then :
13605 $as_echo_n "(cached) " >&6
13606 else
13607 lt_cv_apple_cc_single_mod=no
13608 if test -z "${LT_MULTI_MODULE}"; then
13609 # By default we will add the -single_module flag. You can override
13610 # by either setting the environment variable LT_MULTI_MODULE
13611 # non-empty at configure time, or by adding -multi_module to the
13612 # link flags.
13613 rm -rf libconftest.dylib*
13614 echo "int foo(void){return 1;}" > conftest.c
13615 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13616 -dynamiclib -Wl,-single_module conftest.c" >&5
13617 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13618 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
13619 _lt_result=$?
13620 # If there is a non-empty error log, and "single_module"
13621 # appears in it, assume the flag caused a linker warning
13622 if test -s conftest.err && $GREP single_module conftest.err; then
13623 cat conftest.err >&5
13624 # Otherwise, if the output was created with a 0 exit code from
13625 # the compiler, it worked.
13626 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
13627 lt_cv_apple_cc_single_mod=yes
13628 else
13629 cat conftest.err >&5
13630 fi
13631 rm -rf libconftest.dylib*
13632 rm -f conftest.*
13633 fi
13634 fi
13635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
13636 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
13637
13638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
13639 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
13640 if ${lt_cv_ld_exported_symbols_list+:} false; then :
13641 $as_echo_n "(cached) " >&6
13642 else
13643 lt_cv_ld_exported_symbols_list=no
13644 save_LDFLAGS=$LDFLAGS
13645 echo "_main" > conftest.sym
13646 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
13647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13648 /* end confdefs.h. */
13649
13650 int
13651 main ()
13652 {
13653
13654 ;
13655 return 0;
13656 }
13657 _ACEOF
13658 if ac_fn_c_try_link "$LINENO"; then :
13659 lt_cv_ld_exported_symbols_list=yes
13660 else
13661 lt_cv_ld_exported_symbols_list=no
13662 fi
13663 rm -f core conftest.err conftest.$ac_objext \
13664 conftest$ac_exeext conftest.$ac_ext
13665 LDFLAGS="$save_LDFLAGS"
13666
13667 fi
13668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
13669 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
13670
13671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
13672 $as_echo_n "checking for -force_load linker flag... " >&6; }
13673 if ${lt_cv_ld_force_load+:} false; then :
13674 $as_echo_n "(cached) " >&6
13675 else
13676 lt_cv_ld_force_load=no
13677 cat > conftest.c << _LT_EOF
13678 int forced_loaded() { return 2;}
13679 _LT_EOF
13680 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
13681 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
13682 echo "$AR cru libconftest.a conftest.o" >&5
13683 $AR cru libconftest.a conftest.o 2>&5
13684 echo "$RANLIB libconftest.a" >&5
13685 $RANLIB libconftest.a 2>&5
13686 cat > conftest.c << _LT_EOF
13687 int main() { return 0;}
13688 _LT_EOF
13689 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
13690 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
13691 _lt_result=$?
13692 if test -s conftest.err && $GREP force_load conftest.err; then
13693 cat conftest.err >&5
13694 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
13695 lt_cv_ld_force_load=yes
13696 else
13697 cat conftest.err >&5
13698 fi
13699 rm -f conftest.err libconftest.a conftest conftest.c
13700 rm -rf conftest.dSYM
13701
13702 fi
13703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
13704 $as_echo "$lt_cv_ld_force_load" >&6; }
13705 case $host_os in
13706 rhapsody* | darwin1.[012])
13707 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
13708 darwin1.*)
13709 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13710 darwin*) # darwin 5.x on
13711 # if running on 10.5 or later, the deployment target defaults
13712 # to the OS version, if on x86, and 10.4, the deployment
13713 # target defaults to 10.4. Don't you love it?
13714 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
13715 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
13716 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13717 10.[012]*)
13718 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13719 10.*)
13720 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13721 esac
13722 ;;
13723 esac
13724 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
13725 _lt_dar_single_mod='$single_module'
13726 fi
13727 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
13728 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
13729 else
13730 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
13731 fi
13732 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
13733 _lt_dsymutil='~$DSYMUTIL $lib || :'
13734 else
13735 _lt_dsymutil=
13736 fi
13737 ;;
13738 esac
13739
13740 for ac_header in dlfcn.h
13741 do :
13742 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
13743 "
13744 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
13745 cat >>confdefs.h <<_ACEOF
13746 #define HAVE_DLFCN_H 1
13747 _ACEOF
13748
13749 fi
13750
13751 done
13752
13753
13754
13755
13756
13757 # Set options
13758
13759
13760
13761 enable_dlopen=no
13762
13763
13764 enable_win32_dll=no
13765
13766
13767 # Check whether --enable-shared was given.
13768 if test "${enable_shared+set}" = set; then :
13769 enableval=$enable_shared; p=${PACKAGE-default}
13770 case $enableval in
13771 yes) enable_shared=yes ;;
13772 no) enable_shared=no ;;
13773 *)
13774 enable_shared=no
13775 # Look at the argument we got. We use all the common list separators.
13776 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13777 for pkg in $enableval; do
13778 IFS="$lt_save_ifs"
13779 if test "X$pkg" = "X$p"; then
13780 enable_shared=yes
13781 fi
13782 done
13783 IFS="$lt_save_ifs"
13784 ;;
13785 esac
13786 else
13787 enable_shared=yes
13788 fi
13789
13790
13791
13792
13793
13794
13795
13796
13797
13798
13799
13800 # Check whether --with-pic was given.
13801 if test "${with_pic+set}" = set; then :
13802 withval=$with_pic; lt_p=${PACKAGE-default}
13803 case $withval in
13804 yes|no) pic_mode=$withval ;;
13805 *)
13806 pic_mode=default
13807 # Look at the argument we got. We use all the common list separators.
13808 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13809 for lt_pkg in $withval; do
13810 IFS="$lt_save_ifs"
13811 if test "X$lt_pkg" = "X$lt_p"; then
13812 pic_mode=yes
13813 fi
13814 done
13815 IFS="$lt_save_ifs"
13816 ;;
13817 esac
13818 else
13819 pic_mode=default
13820 fi
13821
13822
13823 test -z "$pic_mode" && pic_mode=default
13824
13825
13826
13827
13828
13829
13830
13831 # Check whether --enable-fast-install was given.
13832 if test "${enable_fast_install+set}" = set; then :
13833 enableval=$enable_fast_install; p=${PACKAGE-default}
13834 case $enableval in
13835 yes) enable_fast_install=yes ;;
13836 no) enable_fast_install=no ;;
13837 *)
13838 enable_fast_install=no
13839 # Look at the argument we got. We use all the common list separators.
13840 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13841 for pkg in $enableval; do
13842 IFS="$lt_save_ifs"
13843 if test "X$pkg" = "X$p"; then
13844 enable_fast_install=yes
13845 fi
13846 done
13847 IFS="$lt_save_ifs"
13848 ;;
13849 esac
13850 else
13851 enable_fast_install=yes
13852 fi
13853
13854
13855
13856
13857
13858
13859
13860
13861
13862
13863
13864 # This can be used to rebuild libtool when needed
13865 LIBTOOL_DEPS="$ltmain"
13866
13867 # Always use our own libtool.
13868 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
13869
13870
13871
13872
13873
13874
13875
13876
13877
13878
13879
13880
13881
13882
13883
13884
13885
13886
13887
13888
13889
13890
13891
13892
13893
13894
13895
13896
13897
13898
13899 test -z "$LN_S" && LN_S="ln -s"
13900
13901
13902
13903
13904
13905
13906
13907
13908
13909
13910
13911
13912
13913
13914 if test -n "${ZSH_VERSION+set}" ; then
13915 setopt NO_GLOB_SUBST
13916 fi
13917
13918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
13919 $as_echo_n "checking for objdir... " >&6; }
13920 if ${lt_cv_objdir+:} false; then :
13921 $as_echo_n "(cached) " >&6
13922 else
13923 rm -f .libs 2>/dev/null
13924 mkdir .libs 2>/dev/null
13925 if test -d .libs; then
13926 lt_cv_objdir=.libs
13927 else
13928 # MS-DOS does not allow filenames that begin with a dot.
13929 lt_cv_objdir=_libs
13930 fi
13931 rmdir .libs 2>/dev/null
13932 fi
13933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
13934 $as_echo "$lt_cv_objdir" >&6; }
13935 objdir=$lt_cv_objdir
13936
13937
13938
13939
13940
13941 cat >>confdefs.h <<_ACEOF
13942 #define LT_OBJDIR "$lt_cv_objdir/"
13943 _ACEOF
13944
13945
13946
13947
13948 case $host_os in
13949 aix3*)
13950 # AIX sometimes has problems with the GCC collect2 program. For some
13951 # reason, if we set the COLLECT_NAMES environment variable, the problems
13952 # vanish in a puff of smoke.
13953 if test "X${COLLECT_NAMES+set}" != Xset; then
13954 COLLECT_NAMES=
13955 export COLLECT_NAMES
13956 fi
13957 ;;
13958 esac
13959
13960 # Global variables:
13961 ofile=libtool
13962 can_build_shared=yes
13963
13964 # All known linkers require a `.a' archive for static linking (except MSVC,
13965 # which needs '.lib').
13966 libext=a
13967
13968 with_gnu_ld="$lt_cv_prog_gnu_ld"
13969
13970 old_CC="$CC"
13971 old_CFLAGS="$CFLAGS"
13972
13973 # Set sane defaults for various variables
13974 test -z "$CC" && CC=cc
13975 test -z "$LTCC" && LTCC=$CC
13976 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
13977 test -z "$LD" && LD=ld
13978 test -z "$ac_objext" && ac_objext=o
13979
13980 for cc_temp in $compiler""; do
13981 case $cc_temp in
13982 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13983 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13984 \-*) ;;
13985 *) break;;
13986 esac
13987 done
13988 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13989
13990
13991 # Only perform the check for file, if the check method requires it
13992 test -z "$MAGIC_CMD" && MAGIC_CMD=file
13993 case $deplibs_check_method in
13994 file_magic*)
13995 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
13996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
13997 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
13998 if ${lt_cv_path_MAGIC_CMD+:} false; then :
13999 $as_echo_n "(cached) " >&6
14000 else
14001 case $MAGIC_CMD in
14002 [\\/*] | ?:[\\/]*)
14003 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14004 ;;
14005 *)
14006 lt_save_MAGIC_CMD="$MAGIC_CMD"
14007 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14008 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14009 for ac_dir in $ac_dummy; do
14010 IFS="$lt_save_ifs"
14011 test -z "$ac_dir" && ac_dir=.
14012 if test -f $ac_dir/${ac_tool_prefix}file; then
14013 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14014 if test -n "$file_magic_test_file"; then
14015 case $deplibs_check_method in
14016 "file_magic "*)
14017 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14018 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14019 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14020 $EGREP "$file_magic_regex" > /dev/null; then
14021 :
14022 else
14023 cat <<_LT_EOF 1>&2
14024
14025 *** Warning: the command libtool uses to detect shared libraries,
14026 *** $file_magic_cmd, produces output that libtool cannot recognize.
14027 *** The result is that libtool may fail to recognize shared libraries
14028 *** as such. This will affect the creation of libtool libraries that
14029 *** depend on shared libraries, but programs linked with such libtool
14030 *** libraries will work regardless of this problem. Nevertheless, you
14031 *** may want to report the problem to your system manager and/or to
14032 *** bug-libtool@gnu.org
14033
14034 _LT_EOF
14035 fi ;;
14036 esac
14037 fi
14038 break
14039 fi
14040 done
14041 IFS="$lt_save_ifs"
14042 MAGIC_CMD="$lt_save_MAGIC_CMD"
14043 ;;
14044 esac
14045 fi
14046
14047 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14048 if test -n "$MAGIC_CMD"; then
14049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14050 $as_echo "$MAGIC_CMD" >&6; }
14051 else
14052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14053 $as_echo "no" >&6; }
14054 fi
14055
14056
14057
14058
14059
14060 if test -z "$lt_cv_path_MAGIC_CMD"; then
14061 if test -n "$ac_tool_prefix"; then
14062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
14063 $as_echo_n "checking for file... " >&6; }
14064 if ${lt_cv_path_MAGIC_CMD+:} false; then :
14065 $as_echo_n "(cached) " >&6
14066 else
14067 case $MAGIC_CMD in
14068 [\\/*] | ?:[\\/]*)
14069 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14070 ;;
14071 *)
14072 lt_save_MAGIC_CMD="$MAGIC_CMD"
14073 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14074 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14075 for ac_dir in $ac_dummy; do
14076 IFS="$lt_save_ifs"
14077 test -z "$ac_dir" && ac_dir=.
14078 if test -f $ac_dir/file; then
14079 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14080 if test -n "$file_magic_test_file"; then
14081 case $deplibs_check_method in
14082 "file_magic "*)
14083 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14084 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14085 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14086 $EGREP "$file_magic_regex" > /dev/null; then
14087 :
14088 else
14089 cat <<_LT_EOF 1>&2
14090
14091 *** Warning: the command libtool uses to detect shared libraries,
14092 *** $file_magic_cmd, produces output that libtool cannot recognize.
14093 *** The result is that libtool may fail to recognize shared libraries
14094 *** as such. This will affect the creation of libtool libraries that
14095 *** depend on shared libraries, but programs linked with such libtool
14096 *** libraries will work regardless of this problem. Nevertheless, you
14097 *** may want to report the problem to your system manager and/or to
14098 *** bug-libtool@gnu.org
14099
14100 _LT_EOF
14101 fi ;;
14102 esac
14103 fi
14104 break
14105 fi
14106 done
14107 IFS="$lt_save_ifs"
14108 MAGIC_CMD="$lt_save_MAGIC_CMD"
14109 ;;
14110 esac
14111 fi
14112
14113 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14114 if test -n "$MAGIC_CMD"; then
14115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14116 $as_echo "$MAGIC_CMD" >&6; }
14117 else
14118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14119 $as_echo "no" >&6; }
14120 fi
14121
14122
14123 else
14124 MAGIC_CMD=:
14125 fi
14126 fi
14127
14128 fi
14129 ;;
14130 esac
14131
14132 # Use C for the default configuration in the libtool script
14133
14134 lt_save_CC="$CC"
14135 ac_ext=c
14136 ac_cpp='$CPP $CPPFLAGS'
14137 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14138 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14139 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14140
14141
14142 # Source file extension for C test sources.
14143 ac_ext=c
14144
14145 # Object file extension for compiled C test sources.
14146 objext=o
14147 objext=$objext
14148
14149 # Code to be used in simple compile tests
14150 lt_simple_compile_test_code="int some_variable = 0;"
14151
14152 # Code to be used in simple link tests
14153 lt_simple_link_test_code='int main(){return(0);}'
14154
14155
14156
14157
14158
14159
14160
14161 # If no C compiler was specified, use CC.
14162 LTCC=${LTCC-"$CC"}
14163
14164 # If no C compiler flags were specified, use CFLAGS.
14165 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14166
14167 # Allow CC to be a program name with arguments.
14168 compiler=$CC
14169
14170 # Save the default compiler, since it gets overwritten when the other
14171 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
14172 compiler_DEFAULT=$CC
14173
14174 # save warnings/boilerplate of simple test code
14175 ac_outfile=conftest.$ac_objext
14176 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14177 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14178 _lt_compiler_boilerplate=`cat conftest.err`
14179 $RM conftest*
14180
14181 ac_outfile=conftest.$ac_objext
14182 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14183 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14184 _lt_linker_boilerplate=`cat conftest.err`
14185 $RM -r conftest*
14186
14187
14188 if test -n "$compiler"; then
14189
14190 lt_prog_compiler_no_builtin_flag=
14191
14192 if test "$GCC" = yes; then
14193 case $cc_basename in
14194 nvcc*)
14195 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
14196 *)
14197 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
14198 esac
14199
14200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14201 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
14202 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
14203 $as_echo_n "(cached) " >&6
14204 else
14205 lt_cv_prog_compiler_rtti_exceptions=no
14206 ac_outfile=conftest.$ac_objext
14207 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14208 lt_compiler_flag="-fno-rtti -fno-exceptions"
14209 # Insert the option either (1) after the last *FLAGS variable, or
14210 # (2) before a word containing "conftest.", or (3) at the end.
14211 # Note that $ac_compile itself does not contain backslashes and begins
14212 # with a dollar sign (not a hyphen), so the echo should work correctly.
14213 # The option is referenced via a variable to avoid confusing sed.
14214 lt_compile=`echo "$ac_compile" | $SED \
14215 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14216 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14217 -e 's:$: $lt_compiler_flag:'`
14218 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14219 (eval "$lt_compile" 2>conftest.err)
14220 ac_status=$?
14221 cat conftest.err >&5
14222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14223 if (exit $ac_status) && test -s "$ac_outfile"; then
14224 # The compiler can only warn and ignore the option if not recognized
14225 # So say no if there are warnings other than the usual output.
14226 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14227 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14228 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14229 lt_cv_prog_compiler_rtti_exceptions=yes
14230 fi
14231 fi
14232 $RM conftest*
14233
14234 fi
14235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14236 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14237
14238 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14239 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14240 else
14241 :
14242 fi
14243
14244 fi
14245
14246
14247
14248
14249
14250
14251 lt_prog_compiler_wl=
14252 lt_prog_compiler_pic=
14253 lt_prog_compiler_static=
14254
14255
14256 if test "$GCC" = yes; then
14257 lt_prog_compiler_wl='-Wl,'
14258 lt_prog_compiler_static='-static'
14259
14260 case $host_os in
14261 aix*)
14262 # All AIX code is PIC.
14263 if test "$host_cpu" = ia64; then
14264 # AIX 5 now supports IA64 processor
14265 lt_prog_compiler_static='-Bstatic'
14266 fi
14267 ;;
14268
14269 amigaos*)
14270 case $host_cpu in
14271 powerpc)
14272 # see comment about AmigaOS4 .so support
14273 lt_prog_compiler_pic='-fPIC'
14274 ;;
14275 m68k)
14276 # FIXME: we need at least 68020 code to build shared libraries, but
14277 # adding the `-m68020' flag to GCC prevents building anything better,
14278 # like `-m68040'.
14279 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14280 ;;
14281 esac
14282 ;;
14283
14284 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14285 # PIC is the default for these OSes.
14286 ;;
14287
14288 mingw* | cygwin* | pw32* | os2* | cegcc*)
14289 # This hack is so that the source file can tell whether it is being
14290 # built for inclusion in a dll (and should export symbols for example).
14291 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14292 # (--disable-auto-import) libraries
14293 lt_prog_compiler_pic='-DDLL_EXPORT'
14294 ;;
14295
14296 darwin* | rhapsody*)
14297 # PIC is the default on this platform
14298 # Common symbols not allowed in MH_DYLIB files
14299 lt_prog_compiler_pic='-fno-common'
14300 ;;
14301
14302 haiku*)
14303 # PIC is the default for Haiku.
14304 # The "-static" flag exists, but is broken.
14305 lt_prog_compiler_static=
14306 ;;
14307
14308 hpux*)
14309 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14310 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14311 # sets the default TLS model and affects inlining.
14312 case $host_cpu in
14313 hppa*64*)
14314 # +Z the default
14315 ;;
14316 *)
14317 lt_prog_compiler_pic='-fPIC'
14318 ;;
14319 esac
14320 ;;
14321
14322 interix[3-9]*)
14323 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14324 # Instead, we relocate shared libraries at runtime.
14325 ;;
14326
14327 msdosdjgpp*)
14328 # Just because we use GCC doesn't mean we suddenly get shared libraries
14329 # on systems that don't support them.
14330 lt_prog_compiler_can_build_shared=no
14331 enable_shared=no
14332 ;;
14333
14334 *nto* | *qnx*)
14335 # QNX uses GNU C++, but need to define -shared option too, otherwise
14336 # it will coredump.
14337 lt_prog_compiler_pic='-fPIC -shared'
14338 ;;
14339
14340 sysv4*MP*)
14341 if test -d /usr/nec; then
14342 lt_prog_compiler_pic=-Kconform_pic
14343 fi
14344 ;;
14345
14346 *)
14347 lt_prog_compiler_pic='-fPIC'
14348 ;;
14349 esac
14350
14351 case $cc_basename in
14352 nvcc*) # Cuda Compiler Driver 2.2
14353 lt_prog_compiler_wl='-Xlinker '
14354 if test -n "$lt_prog_compiler_pic"; then
14355 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
14356 fi
14357 ;;
14358 esac
14359 else
14360 # PORTME Check for flag to pass linker flags through the system compiler.
14361 case $host_os in
14362 aix*)
14363 lt_prog_compiler_wl='-Wl,'
14364 if test "$host_cpu" = ia64; then
14365 # AIX 5 now supports IA64 processor
14366 lt_prog_compiler_static='-Bstatic'
14367 else
14368 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14369 fi
14370 ;;
14371
14372 mingw* | cygwin* | pw32* | os2* | cegcc*)
14373 # This hack is so that the source file can tell whether it is being
14374 # built for inclusion in a dll (and should export symbols for example).
14375 lt_prog_compiler_pic='-DDLL_EXPORT'
14376 ;;
14377
14378 hpux9* | hpux10* | hpux11*)
14379 lt_prog_compiler_wl='-Wl,'
14380 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14381 # not for PA HP-UX.
14382 case $host_cpu in
14383 hppa*64*|ia64*)
14384 # +Z the default
14385 ;;
14386 *)
14387 lt_prog_compiler_pic='+Z'
14388 ;;
14389 esac
14390 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14391 lt_prog_compiler_static='${wl}-a ${wl}archive'
14392 ;;
14393
14394 irix5* | irix6* | nonstopux*)
14395 lt_prog_compiler_wl='-Wl,'
14396 # PIC (with -KPIC) is the default.
14397 lt_prog_compiler_static='-non_shared'
14398 ;;
14399
14400 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14401 case $cc_basename in
14402 # old Intel for x86_64 which still supported -KPIC.
14403 ecc*)
14404 lt_prog_compiler_wl='-Wl,'
14405 lt_prog_compiler_pic='-KPIC'
14406 lt_prog_compiler_static='-static'
14407 ;;
14408 # icc used to be incompatible with GCC.
14409 # ICC 10 doesn't accept -KPIC any more.
14410 icc* | ifort*)
14411 lt_prog_compiler_wl='-Wl,'
14412 lt_prog_compiler_pic='-fPIC'
14413 lt_prog_compiler_static='-static'
14414 ;;
14415 # Lahey Fortran 8.1.
14416 lf95*)
14417 lt_prog_compiler_wl='-Wl,'
14418 lt_prog_compiler_pic='--shared'
14419 lt_prog_compiler_static='--static'
14420 ;;
14421 nagfor*)
14422 # NAG Fortran compiler
14423 lt_prog_compiler_wl='-Wl,-Wl,,'
14424 lt_prog_compiler_pic='-PIC'
14425 lt_prog_compiler_static='-Bstatic'
14426 ;;
14427 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
14428 # Portland Group compilers (*not* the Pentium gcc compiler,
14429 # which looks to be a dead project)
14430 lt_prog_compiler_wl='-Wl,'
14431 lt_prog_compiler_pic='-fpic'
14432 lt_prog_compiler_static='-Bstatic'
14433 ;;
14434 ccc*)
14435 lt_prog_compiler_wl='-Wl,'
14436 # All Alpha code is PIC.
14437 lt_prog_compiler_static='-non_shared'
14438 ;;
14439 xl* | bgxl* | bgf* | mpixl*)
14440 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
14441 lt_prog_compiler_wl='-Wl,'
14442 lt_prog_compiler_pic='-qpic'
14443 lt_prog_compiler_static='-qstaticlink'
14444 ;;
14445 *)
14446 case `$CC -V 2>&1 | sed 5q` in
14447 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
14448 # Sun Fortran 8.3 passes all unrecognized flags to the linker
14449 lt_prog_compiler_pic='-KPIC'
14450 lt_prog_compiler_static='-Bstatic'
14451 lt_prog_compiler_wl=''
14452 ;;
14453 *Sun\ F* | *Sun*Fortran*)
14454 lt_prog_compiler_pic='-KPIC'
14455 lt_prog_compiler_static='-Bstatic'
14456 lt_prog_compiler_wl='-Qoption ld '
14457 ;;
14458 *Sun\ C*)
14459 # Sun C 5.9
14460 lt_prog_compiler_pic='-KPIC'
14461 lt_prog_compiler_static='-Bstatic'
14462 lt_prog_compiler_wl='-Wl,'
14463 ;;
14464 *Intel*\ [CF]*Compiler*)
14465 lt_prog_compiler_wl='-Wl,'
14466 lt_prog_compiler_pic='-fPIC'
14467 lt_prog_compiler_static='-static'
14468 ;;
14469 *Portland\ Group*)
14470 lt_prog_compiler_wl='-Wl,'
14471 lt_prog_compiler_pic='-fpic'
14472 lt_prog_compiler_static='-Bstatic'
14473 ;;
14474 esac
14475 ;;
14476 esac
14477 ;;
14478
14479 newsos6)
14480 lt_prog_compiler_pic='-KPIC'
14481 lt_prog_compiler_static='-Bstatic'
14482 ;;
14483
14484 *nto* | *qnx*)
14485 # QNX uses GNU C++, but need to define -shared option too, otherwise
14486 # it will coredump.
14487 lt_prog_compiler_pic='-fPIC -shared'
14488 ;;
14489
14490 osf3* | osf4* | osf5*)
14491 lt_prog_compiler_wl='-Wl,'
14492 # All OSF/1 code is PIC.
14493 lt_prog_compiler_static='-non_shared'
14494 ;;
14495
14496 rdos*)
14497 lt_prog_compiler_static='-non_shared'
14498 ;;
14499
14500 solaris*)
14501 lt_prog_compiler_pic='-KPIC'
14502 lt_prog_compiler_static='-Bstatic'
14503 case $cc_basename in
14504 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
14505 lt_prog_compiler_wl='-Qoption ld ';;
14506 *)
14507 lt_prog_compiler_wl='-Wl,';;
14508 esac
14509 ;;
14510
14511 sunos4*)
14512 lt_prog_compiler_wl='-Qoption ld '
14513 lt_prog_compiler_pic='-PIC'
14514 lt_prog_compiler_static='-Bstatic'
14515 ;;
14516
14517 sysv4 | sysv4.2uw2* | sysv4.3*)
14518 lt_prog_compiler_wl='-Wl,'
14519 lt_prog_compiler_pic='-KPIC'
14520 lt_prog_compiler_static='-Bstatic'
14521 ;;
14522
14523 sysv4*MP*)
14524 if test -d /usr/nec ;then
14525 lt_prog_compiler_pic='-Kconform_pic'
14526 lt_prog_compiler_static='-Bstatic'
14527 fi
14528 ;;
14529
14530 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14531 lt_prog_compiler_wl='-Wl,'
14532 lt_prog_compiler_pic='-KPIC'
14533 lt_prog_compiler_static='-Bstatic'
14534 ;;
14535
14536 unicos*)
14537 lt_prog_compiler_wl='-Wl,'
14538 lt_prog_compiler_can_build_shared=no
14539 ;;
14540
14541 uts4*)
14542 lt_prog_compiler_pic='-pic'
14543 lt_prog_compiler_static='-Bstatic'
14544 ;;
14545
14546 *)
14547 lt_prog_compiler_can_build_shared=no
14548 ;;
14549 esac
14550 fi
14551
14552 case $host_os in
14553 # For platforms which do not support PIC, -DPIC is meaningless:
14554 *djgpp*)
14555 lt_prog_compiler_pic=
14556 ;;
14557 *)
14558 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14559 ;;
14560 esac
14561
14562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14563 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14564 if ${lt_cv_prog_compiler_pic+:} false; then :
14565 $as_echo_n "(cached) " >&6
14566 else
14567 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
14568 fi
14569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
14570 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
14571 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
14572
14573 #
14574 # Check to make sure the PIC flag actually works.
14575 #
14576 if test -n "$lt_prog_compiler_pic"; then
14577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14578 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
14579 if ${lt_cv_prog_compiler_pic_works+:} false; then :
14580 $as_echo_n "(cached) " >&6
14581 else
14582 lt_cv_prog_compiler_pic_works=no
14583 ac_outfile=conftest.$ac_objext
14584 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14585 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14586 # Insert the option either (1) after the last *FLAGS variable, or
14587 # (2) before a word containing "conftest.", or (3) at the end.
14588 # Note that $ac_compile itself does not contain backslashes and begins
14589 # with a dollar sign (not a hyphen), so the echo should work correctly.
14590 # The option is referenced via a variable to avoid confusing sed.
14591 lt_compile=`echo "$ac_compile" | $SED \
14592 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14593 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14594 -e 's:$: $lt_compiler_flag:'`
14595 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14596 (eval "$lt_compile" 2>conftest.err)
14597 ac_status=$?
14598 cat conftest.err >&5
14599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14600 if (exit $ac_status) && test -s "$ac_outfile"; then
14601 # The compiler can only warn and ignore the option if not recognized
14602 # So say no if there are warnings other than the usual output.
14603 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14604 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14605 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14606 lt_cv_prog_compiler_pic_works=yes
14607 fi
14608 fi
14609 $RM conftest*
14610
14611 fi
14612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
14613 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
14614
14615 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
14616 case $lt_prog_compiler_pic in
14617 "" | " "*) ;;
14618 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14619 esac
14620 else
14621 lt_prog_compiler_pic=
14622 lt_prog_compiler_can_build_shared=no
14623 fi
14624
14625 fi
14626
14627
14628
14629
14630
14631
14632
14633
14634
14635
14636
14637 #
14638 # Check to make sure the static flag actually works.
14639 #
14640 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14642 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14643 if ${lt_cv_prog_compiler_static_works+:} false; then :
14644 $as_echo_n "(cached) " >&6
14645 else
14646 lt_cv_prog_compiler_static_works=no
14647 save_LDFLAGS="$LDFLAGS"
14648 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14649 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14650 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14651 # The linker can only warn and ignore the option if not recognized
14652 # So say no if there are warnings
14653 if test -s conftest.err; then
14654 # Append any errors to the config.log.
14655 cat conftest.err 1>&5
14656 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14657 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14658 if diff conftest.exp conftest.er2 >/dev/null; then
14659 lt_cv_prog_compiler_static_works=yes
14660 fi
14661 else
14662 lt_cv_prog_compiler_static_works=yes
14663 fi
14664 fi
14665 $RM -r conftest*
14666 LDFLAGS="$save_LDFLAGS"
14667
14668 fi
14669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
14670 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
14671
14672 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
14673 :
14674 else
14675 lt_prog_compiler_static=
14676 fi
14677
14678
14679
14680
14681
14682
14683
14684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14685 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14686 if ${lt_cv_prog_compiler_c_o+:} false; then :
14687 $as_echo_n "(cached) " >&6
14688 else
14689 lt_cv_prog_compiler_c_o=no
14690 $RM -r conftest 2>/dev/null
14691 mkdir conftest
14692 cd conftest
14693 mkdir out
14694 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14695
14696 lt_compiler_flag="-o out/conftest2.$ac_objext"
14697 # Insert the option either (1) after the last *FLAGS variable, or
14698 # (2) before a word containing "conftest.", or (3) at the end.
14699 # Note that $ac_compile itself does not contain backslashes and begins
14700 # with a dollar sign (not a hyphen), so the echo should work correctly.
14701 lt_compile=`echo "$ac_compile" | $SED \
14702 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14703 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14704 -e 's:$: $lt_compiler_flag:'`
14705 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14706 (eval "$lt_compile" 2>out/conftest.err)
14707 ac_status=$?
14708 cat out/conftest.err >&5
14709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14710 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14711 then
14712 # The compiler can only warn and ignore the option if not recognized
14713 # So say no if there are warnings
14714 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14715 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14716 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14717 lt_cv_prog_compiler_c_o=yes
14718 fi
14719 fi
14720 chmod u+w . 2>&5
14721 $RM conftest*
14722 # SGI C++ compiler will create directory out/ii_files/ for
14723 # template instantiation
14724 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14725 $RM out/* && rmdir out
14726 cd ..
14727 $RM -r conftest
14728 $RM conftest*
14729
14730 fi
14731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
14732 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14733
14734
14735
14736
14737
14738
14739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14740 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14741 if ${lt_cv_prog_compiler_c_o+:} false; then :
14742 $as_echo_n "(cached) " >&6
14743 else
14744 lt_cv_prog_compiler_c_o=no
14745 $RM -r conftest 2>/dev/null
14746 mkdir conftest
14747 cd conftest
14748 mkdir out
14749 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14750
14751 lt_compiler_flag="-o out/conftest2.$ac_objext"
14752 # Insert the option either (1) after the last *FLAGS variable, or
14753 # (2) before a word containing "conftest.", or (3) at the end.
14754 # Note that $ac_compile itself does not contain backslashes and begins
14755 # with a dollar sign (not a hyphen), so the echo should work correctly.
14756 lt_compile=`echo "$ac_compile" | $SED \
14757 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14758 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14759 -e 's:$: $lt_compiler_flag:'`
14760 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14761 (eval "$lt_compile" 2>out/conftest.err)
14762 ac_status=$?
14763 cat out/conftest.err >&5
14764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14765 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14766 then
14767 # The compiler can only warn and ignore the option if not recognized
14768 # So say no if there are warnings
14769 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14770 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14771 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14772 lt_cv_prog_compiler_c_o=yes
14773 fi
14774 fi
14775 chmod u+w . 2>&5
14776 $RM conftest*
14777 # SGI C++ compiler will create directory out/ii_files/ for
14778 # template instantiation
14779 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14780 $RM out/* && rmdir out
14781 cd ..
14782 $RM -r conftest
14783 $RM conftest*
14784
14785 fi
14786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
14787 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14788
14789
14790
14791
14792 hard_links="nottested"
14793 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
14794 # do not overwrite the value of need_locks provided by the user
14795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14796 $as_echo_n "checking if we can lock with hard links... " >&6; }
14797 hard_links=yes
14798 $RM conftest*
14799 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14800 touch conftest.a
14801 ln conftest.a conftest.b 2>&5 || hard_links=no
14802 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14804 $as_echo "$hard_links" >&6; }
14805 if test "$hard_links" = no; then
14806 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14807 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14808 need_locks=warn
14809 fi
14810 else
14811 need_locks=no
14812 fi
14813
14814
14815
14816
14817
14818
14819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14820 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14821
14822 runpath_var=
14823 allow_undefined_flag=
14824 always_export_symbols=no
14825 archive_cmds=
14826 archive_expsym_cmds=
14827 compiler_needs_object=no
14828 enable_shared_with_static_runtimes=no
14829 export_dynamic_flag_spec=
14830 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14831 hardcode_automatic=no
14832 hardcode_direct=no
14833 hardcode_direct_absolute=no
14834 hardcode_libdir_flag_spec=
14835 hardcode_libdir_separator=
14836 hardcode_minus_L=no
14837 hardcode_shlibpath_var=unsupported
14838 inherit_rpath=no
14839 link_all_deplibs=unknown
14840 module_cmds=
14841 module_expsym_cmds=
14842 old_archive_from_new_cmds=
14843 old_archive_from_expsyms_cmds=
14844 thread_safe_flag_spec=
14845 whole_archive_flag_spec=
14846 # include_expsyms should be a list of space-separated symbols to be *always*
14847 # included in the symbol list
14848 include_expsyms=
14849 # exclude_expsyms can be an extended regexp of symbols to exclude
14850 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14851 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14852 # as well as any symbol that contains `d'.
14853 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14854 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14855 # platforms (ab)use it in PIC code, but their linkers get confused if
14856 # the symbol is explicitly referenced. Since portable code cannot
14857 # rely on this symbol name, it's probably fine to never include it in
14858 # preloaded symbol tables.
14859 # Exclude shared library initialization/finalization symbols.
14860 extract_expsyms_cmds=
14861
14862 case $host_os in
14863 cygwin* | mingw* | pw32* | cegcc*)
14864 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14865 # When not using gcc, we currently assume that we are using
14866 # Microsoft Visual C++.
14867 if test "$GCC" != yes; then
14868 with_gnu_ld=no
14869 fi
14870 ;;
14871 interix*)
14872 # we just hope/assume this is gcc and not c89 (= MSVC++)
14873 with_gnu_ld=yes
14874 ;;
14875 openbsd*)
14876 with_gnu_ld=no
14877 ;;
14878 esac
14879
14880 ld_shlibs=yes
14881
14882 # On some targets, GNU ld is compatible enough with the native linker
14883 # that we're better off using the native interface for both.
14884 lt_use_gnu_ld_interface=no
14885 if test "$with_gnu_ld" = yes; then
14886 case $host_os in
14887 aix*)
14888 # The AIX port of GNU ld has always aspired to compatibility
14889 # with the native linker. However, as the warning in the GNU ld
14890 # block says, versions before 2.19.5* couldn't really create working
14891 # shared libraries, regardless of the interface used.
14892 case `$LD -v 2>&1` in
14893 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
14894 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
14895 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
14896 *)
14897 lt_use_gnu_ld_interface=yes
14898 ;;
14899 esac
14900 ;;
14901 *)
14902 lt_use_gnu_ld_interface=yes
14903 ;;
14904 esac
14905 fi
14906
14907 if test "$lt_use_gnu_ld_interface" = yes; then
14908 # If archive_cmds runs LD, not CC, wlarc should be empty
14909 wlarc='${wl}'
14910
14911 # Set some defaults for GNU ld with shared library support. These
14912 # are reset later if shared libraries are not supported. Putting them
14913 # here allows them to be overridden if necessary.
14914 runpath_var=LD_RUN_PATH
14915 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14916 export_dynamic_flag_spec='${wl}--export-dynamic'
14917 # ancient GNU ld didn't support --whole-archive et. al.
14918 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
14919 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14920 else
14921 whole_archive_flag_spec=
14922 fi
14923 supports_anon_versioning=no
14924 case `$LD -v 2>&1` in
14925 *GNU\ gold*) supports_anon_versioning=yes ;;
14926 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14927 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14928 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14929 *\ 2.11.*) ;; # other 2.11 versions
14930 *) supports_anon_versioning=yes ;;
14931 esac
14932
14933 # See if GNU ld supports shared libraries.
14934 case $host_os in
14935 aix[3-9]*)
14936 # On AIX/PPC, the GNU linker is very broken
14937 if test "$host_cpu" != ia64; then
14938 ld_shlibs=no
14939 cat <<_LT_EOF 1>&2
14940
14941 *** Warning: the GNU linker, at least up to release 2.19, is reported
14942 *** to be unable to reliably create shared libraries on AIX.
14943 *** Therefore, libtool is disabling shared libraries support. If you
14944 *** really care for shared libraries, you may want to install binutils
14945 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
14946 *** You will then need to restart the configuration process.
14947
14948 _LT_EOF
14949 fi
14950 ;;
14951
14952 amigaos*)
14953 case $host_cpu in
14954 powerpc)
14955 # see comment about AmigaOS4 .so support
14956 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14957 archive_expsym_cmds=''
14958 ;;
14959 m68k)
14960 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)'
14961 hardcode_libdir_flag_spec='-L$libdir'
14962 hardcode_minus_L=yes
14963 ;;
14964 esac
14965 ;;
14966
14967 beos*)
14968 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14969 allow_undefined_flag=unsupported
14970 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
14971 # support --undefined. This deserves some investigation. FIXME
14972 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14973 else
14974 ld_shlibs=no
14975 fi
14976 ;;
14977
14978 cygwin* | mingw* | pw32* | cegcc*)
14979 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
14980 # as there is no search path for DLLs.
14981 hardcode_libdir_flag_spec='-L$libdir'
14982 export_dynamic_flag_spec='${wl}--export-all-symbols'
14983 allow_undefined_flag=unsupported
14984 always_export_symbols=no
14985 enable_shared_with_static_runtimes=yes
14986 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'
14987 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
14988
14989 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14990 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14991 # If the export-symbols file already is a .def file (1st line
14992 # is EXPORTS), use it as is; otherwise, prepend...
14993 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14994 cp $export_symbols $output_objdir/$soname.def;
14995 else
14996 echo EXPORTS > $output_objdir/$soname.def;
14997 cat $export_symbols >> $output_objdir/$soname.def;
14998 fi~
14999 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15000 else
15001 ld_shlibs=no
15002 fi
15003 ;;
15004
15005 haiku*)
15006 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15007 link_all_deplibs=yes
15008 ;;
15009
15010 interix[3-9]*)
15011 hardcode_direct=no
15012 hardcode_shlibpath_var=no
15013 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15014 export_dynamic_flag_spec='${wl}-E'
15015 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15016 # Instead, shared libraries are loaded at an image base (0x10000000 by
15017 # default) and relocated if they conflict, which is a slow very memory
15018 # consuming and fragmenting process. To avoid this, we pick a random,
15019 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15020 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15021 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15022 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'
15023 ;;
15024
15025 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
15026 tmp_diet=no
15027 if test "$host_os" = linux-dietlibc; then
15028 case $cc_basename in
15029 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
15030 esac
15031 fi
15032 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
15033 && test "$tmp_diet" = no
15034 then
15035 tmp_addflag=' $pic_flag'
15036 tmp_sharedflag='-shared'
15037 case $cc_basename,$host_cpu in
15038 pgcc*) # Portland Group C compiler
15039 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'
15040 tmp_addflag=' $pic_flag'
15041 ;;
15042 pgf77* | pgf90* | pgf95* | pgfortran*)
15043 # Portland Group f77 and f90 compilers
15044 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'
15045 tmp_addflag=' $pic_flag -Mnomain' ;;
15046 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15047 tmp_addflag=' -i_dynamic' ;;
15048 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15049 tmp_addflag=' -i_dynamic -nofor_main' ;;
15050 ifc* | ifort*) # Intel Fortran compiler
15051 tmp_addflag=' -nofor_main' ;;
15052 lf95*) # Lahey Fortran 8.1
15053 whole_archive_flag_spec=
15054 tmp_sharedflag='--shared' ;;
15055 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
15056 tmp_sharedflag='-qmkshrobj'
15057 tmp_addflag= ;;
15058 nvcc*) # Cuda Compiler Driver 2.2
15059 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'
15060 compiler_needs_object=yes
15061 ;;
15062 esac
15063 case `$CC -V 2>&1 | sed 5q` in
15064 *Sun\ C*) # Sun C 5.9
15065 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'
15066 compiler_needs_object=yes
15067 tmp_sharedflag='-G' ;;
15068 *Sun\ F*) # Sun Fortran 8.3
15069 tmp_sharedflag='-G' ;;
15070 esac
15071 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15072
15073 if test "x$supports_anon_versioning" = xyes; then
15074 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15075 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15076 echo "local: *; };" >> $output_objdir/$libname.ver~
15077 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15078 fi
15079
15080 case $cc_basename in
15081 xlf* | bgf* | bgxlf* | mpixlf*)
15082 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
15083 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
15084 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15085 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
15086 if test "x$supports_anon_versioning" = xyes; then
15087 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15088 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15089 echo "local: *; };" >> $output_objdir/$libname.ver~
15090 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
15091 fi
15092 ;;
15093 esac
15094 else
15095 ld_shlibs=no
15096 fi
15097 ;;
15098
15099 netbsd*)
15100 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15101 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15102 wlarc=
15103 else
15104 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15105 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15106 fi
15107 ;;
15108
15109 solaris*)
15110 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
15111 ld_shlibs=no
15112 cat <<_LT_EOF 1>&2
15113
15114 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15115 *** create shared libraries on Solaris systems. Therefore, libtool
15116 *** is disabling shared libraries support. We urge you to upgrade GNU
15117 *** binutils to release 2.9.1 or newer. Another option is to modify
15118 *** your PATH or compiler configuration so that the native linker is
15119 *** used, and then restart.
15120
15121 _LT_EOF
15122 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15123 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15124 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15125 else
15126 ld_shlibs=no
15127 fi
15128 ;;
15129
15130 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15131 case `$LD -v 2>&1` in
15132 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15133 ld_shlibs=no
15134 cat <<_LT_EOF 1>&2
15135
15136 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15137 *** reliably create shared libraries on SCO systems. Therefore, libtool
15138 *** is disabling shared libraries support. We urge you to upgrade GNU
15139 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15140 *** your PATH or compiler configuration so that the native linker is
15141 *** used, and then restart.
15142
15143 _LT_EOF
15144 ;;
15145 *)
15146 # For security reasons, it is highly recommended that you always
15147 # use absolute paths for naming shared libraries, and exclude the
15148 # DT_RUNPATH tag from executables and libraries. But doing so
15149 # requires that you compile everything twice, which is a pain.
15150 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15151 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15152 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15153 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15154 else
15155 ld_shlibs=no
15156 fi
15157 ;;
15158 esac
15159 ;;
15160
15161 sunos4*)
15162 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15163 wlarc=
15164 hardcode_direct=yes
15165 hardcode_shlibpath_var=no
15166 ;;
15167
15168 *)
15169 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15170 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15171 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15172 else
15173 ld_shlibs=no
15174 fi
15175 ;;
15176 esac
15177
15178 if test "$ld_shlibs" = no; then
15179 runpath_var=
15180 hardcode_libdir_flag_spec=
15181 export_dynamic_flag_spec=
15182 whole_archive_flag_spec=
15183 fi
15184 else
15185 # PORTME fill in a description of your system's linker (not GNU ld)
15186 case $host_os in
15187 aix3*)
15188 allow_undefined_flag=unsupported
15189 always_export_symbols=yes
15190 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'
15191 # Note: this linker hardcodes the directories in LIBPATH if there
15192 # are no directories specified by -L.
15193 hardcode_minus_L=yes
15194 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15195 # Neither direct hardcoding nor static linking is supported with a
15196 # broken collect2.
15197 hardcode_direct=unsupported
15198 fi
15199 ;;
15200
15201 aix[4-9]*)
15202 if test "$host_cpu" = ia64; then
15203 # On IA64, the linker does run time linking by default, so we don't
15204 # have to do anything special.
15205 aix_use_runtimelinking=no
15206 exp_sym_flag='-Bexport'
15207 no_entry_flag=""
15208 else
15209 # If we're using GNU nm, then we don't want the "-C" option.
15210 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15211 # Also, AIX nm treats weak defined symbols like other global
15212 # defined symbols, whereas GNU nm marks them as "W".
15213 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15214 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'
15215 else
15216 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'
15217 fi
15218 aix_use_runtimelinking=no
15219
15220 # Test if we are trying to use run time linking or normal
15221 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15222 # need to do runtime linking.
15223 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15224 for ld_flag in $LDFLAGS; do
15225 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15226 aix_use_runtimelinking=yes
15227 break
15228 fi
15229 done
15230 ;;
15231 esac
15232
15233 exp_sym_flag='-bexport'
15234 no_entry_flag='-bnoentry'
15235 fi
15236
15237 # When large executables or shared objects are built, AIX ld can
15238 # have problems creating the table of contents. If linking a library
15239 # or program results in "error TOC overflow" add -mminimal-toc to
15240 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15241 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15242
15243 archive_cmds=''
15244 hardcode_direct=yes
15245 hardcode_direct_absolute=yes
15246 hardcode_libdir_separator=':'
15247 link_all_deplibs=yes
15248 file_list_spec='${wl}-f,'
15249
15250 if test "$GCC" = yes; then
15251 case $host_os in aix4.[012]|aix4.[012].*)
15252 # We only want to do this on AIX 4.2 and lower, the check
15253 # below for broken collect2 doesn't work under 4.3+
15254 collect2name=`${CC} -print-prog-name=collect2`
15255 if test -f "$collect2name" &&
15256 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15257 then
15258 # We have reworked collect2
15259 :
15260 else
15261 # We have old collect2
15262 hardcode_direct=unsupported
15263 # It fails to find uninstalled libraries when the uninstalled
15264 # path is not listed in the libpath. Setting hardcode_minus_L
15265 # to unsupported forces relinking
15266 hardcode_minus_L=yes
15267 hardcode_libdir_flag_spec='-L$libdir'
15268 hardcode_libdir_separator=
15269 fi
15270 ;;
15271 esac
15272 shared_flag='-shared'
15273 if test "$aix_use_runtimelinking" = yes; then
15274 shared_flag="$shared_flag "'${wl}-G'
15275 fi
15276 else
15277 # not using gcc
15278 if test "$host_cpu" = ia64; then
15279 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15280 # chokes on -Wl,-G. The following line is correct:
15281 shared_flag='-G'
15282 else
15283 if test "$aix_use_runtimelinking" = yes; then
15284 shared_flag='${wl}-G'
15285 else
15286 shared_flag='${wl}-bM:SRE'
15287 fi
15288 fi
15289 fi
15290
15291 export_dynamic_flag_spec='${wl}-bexpall'
15292 # It seems that -bexpall does not export symbols beginning with
15293 # underscore (_), so it is better to generate a list of symbols to export.
15294 always_export_symbols=yes
15295 if test "$aix_use_runtimelinking" = yes; then
15296 # Warning - without using the other runtime loading flags (-brtl),
15297 # -berok will link without error, but may produce a broken library.
15298 allow_undefined_flag='-berok'
15299 # Determine the default libpath from the value encoded in an
15300 # empty executable.
15301 if test "${lt_cv_aix_libpath+set}" = set; then
15302 aix_libpath=$lt_cv_aix_libpath
15303 else
15304 if ${lt_cv_aix_libpath_+:} false; then :
15305 $as_echo_n "(cached) " >&6
15306 else
15307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15308 /* end confdefs.h. */
15309
15310 int
15311 main ()
15312 {
15313
15314 ;
15315 return 0;
15316 }
15317 _ACEOF
15318 if ac_fn_c_try_link "$LINENO"; then :
15319
15320 lt_aix_libpath_sed='
15321 /Import File Strings/,/^$/ {
15322 /^0/ {
15323 s/^0 *\([^ ]*\) *$/\1/
15324 p
15325 }
15326 }'
15327 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15328 # Check for a 64-bit object if we didn't find anything.
15329 if test -z "$lt_cv_aix_libpath_"; then
15330 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15331 fi
15332 fi
15333 rm -f core conftest.err conftest.$ac_objext \
15334 conftest$ac_exeext conftest.$ac_ext
15335 if test -z "$lt_cv_aix_libpath_"; then
15336 lt_cv_aix_libpath_="/usr/lib:/lib"
15337 fi
15338
15339 fi
15340
15341 aix_libpath=$lt_cv_aix_libpath_
15342 fi
15343
15344 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15345 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"
15346 else
15347 if test "$host_cpu" = ia64; then
15348 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15349 allow_undefined_flag="-z nodefs"
15350 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"
15351 else
15352 # Determine the default libpath from the value encoded in an
15353 # empty executable.
15354 if test "${lt_cv_aix_libpath+set}" = set; then
15355 aix_libpath=$lt_cv_aix_libpath
15356 else
15357 if ${lt_cv_aix_libpath_+:} false; then :
15358 $as_echo_n "(cached) " >&6
15359 else
15360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15361 /* end confdefs.h. */
15362
15363 int
15364 main ()
15365 {
15366
15367 ;
15368 return 0;
15369 }
15370 _ACEOF
15371 if ac_fn_c_try_link "$LINENO"; then :
15372
15373 lt_aix_libpath_sed='
15374 /Import File Strings/,/^$/ {
15375 /^0/ {
15376 s/^0 *\([^ ]*\) *$/\1/
15377 p
15378 }
15379 }'
15380 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15381 # Check for a 64-bit object if we didn't find anything.
15382 if test -z "$lt_cv_aix_libpath_"; then
15383 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15384 fi
15385 fi
15386 rm -f core conftest.err conftest.$ac_objext \
15387 conftest$ac_exeext conftest.$ac_ext
15388 if test -z "$lt_cv_aix_libpath_"; then
15389 lt_cv_aix_libpath_="/usr/lib:/lib"
15390 fi
15391
15392 fi
15393
15394 aix_libpath=$lt_cv_aix_libpath_
15395 fi
15396
15397 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15398 # Warning - without using the other run time loading flags,
15399 # -berok will link without error, but may produce a broken library.
15400 no_undefined_flag=' ${wl}-bernotok'
15401 allow_undefined_flag=' ${wl}-berok'
15402 if test "$with_gnu_ld" = yes; then
15403 # We only use this code for GNU lds that support --whole-archive.
15404 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15405 else
15406 # Exported symbols can be pulled into shared objects from archives
15407 whole_archive_flag_spec='$convenience'
15408 fi
15409 archive_cmds_need_lc=yes
15410 # This is similar to how AIX traditionally builds its shared libraries.
15411 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'
15412 fi
15413 fi
15414 ;;
15415
15416 amigaos*)
15417 case $host_cpu in
15418 powerpc)
15419 # see comment about AmigaOS4 .so support
15420 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15421 archive_expsym_cmds=''
15422 ;;
15423 m68k)
15424 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)'
15425 hardcode_libdir_flag_spec='-L$libdir'
15426 hardcode_minus_L=yes
15427 ;;
15428 esac
15429 ;;
15430
15431 bsdi[45]*)
15432 export_dynamic_flag_spec=-rdynamic
15433 ;;
15434
15435 cygwin* | mingw* | pw32* | cegcc*)
15436 # When not using gcc, we currently assume that we are using
15437 # Microsoft Visual C++.
15438 # hardcode_libdir_flag_spec is actually meaningless, as there is
15439 # no search path for DLLs.
15440 case $cc_basename in
15441 cl*)
15442 # Native MSVC
15443 hardcode_libdir_flag_spec=' '
15444 allow_undefined_flag=unsupported
15445 always_export_symbols=yes
15446 file_list_spec='@'
15447 # Tell ltmain to make .lib files, not .a files.
15448 libext=lib
15449 # Tell ltmain to make .dll files, not .so files.
15450 shrext_cmds=".dll"
15451 # FIXME: Setting linknames here is a bad hack.
15452 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
15453 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15454 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
15455 else
15456 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
15457 fi~
15458 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
15459 linknames='
15460 # The linker will not automatically build a static lib if we build a DLL.
15461 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
15462 enable_shared_with_static_runtimes=yes
15463 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
15464 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15465 # Don't use ranlib
15466 old_postinstall_cmds='chmod 644 $oldlib'
15467 postlink_cmds='lt_outputfile="@OUTPUT@"~
15468 lt_tool_outputfile="@TOOL_OUTPUT@"~
15469 case $lt_outputfile in
15470 *.exe|*.EXE) ;;
15471 *)
15472 lt_outputfile="$lt_outputfile.exe"
15473 lt_tool_outputfile="$lt_tool_outputfile.exe"
15474 ;;
15475 esac~
15476 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
15477 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
15478 $RM "$lt_outputfile.manifest";
15479 fi'
15480 ;;
15481 *)
15482 # Assume MSVC wrapper
15483 hardcode_libdir_flag_spec=' '
15484 allow_undefined_flag=unsupported
15485 # Tell ltmain to make .lib files, not .a files.
15486 libext=lib
15487 # Tell ltmain to make .dll files, not .so files.
15488 shrext_cmds=".dll"
15489 # FIXME: Setting linknames here is a bad hack.
15490 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
15491 # The linker will automatically build a .lib file if we build a DLL.
15492 old_archive_from_new_cmds='true'
15493 # FIXME: Should let the user specify the lib program.
15494 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
15495 enable_shared_with_static_runtimes=yes
15496 ;;
15497 esac
15498 ;;
15499
15500 darwin* | rhapsody*)
15501
15502
15503 archive_cmds_need_lc=no
15504 hardcode_direct=no
15505 hardcode_automatic=yes
15506 hardcode_shlibpath_var=unsupported
15507 if test "$lt_cv_ld_force_load" = "yes"; then
15508 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\"`'
15509
15510 else
15511 whole_archive_flag_spec=''
15512 fi
15513 link_all_deplibs=yes
15514 allow_undefined_flag="$_lt_dar_allow_undefined"
15515 case $cc_basename in
15516 ifort*) _lt_dar_can_shared=yes ;;
15517 *) _lt_dar_can_shared=$GCC ;;
15518 esac
15519 if test "$_lt_dar_can_shared" = "yes"; then
15520 output_verbose_link_cmd=func_echo_all
15521 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15522 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15523 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}"
15524 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}"
15525
15526 else
15527 ld_shlibs=no
15528 fi
15529
15530 ;;
15531
15532 dgux*)
15533 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15534 hardcode_libdir_flag_spec='-L$libdir'
15535 hardcode_shlibpath_var=no
15536 ;;
15537
15538 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15539 # support. Future versions do this automatically, but an explicit c++rt0.o
15540 # does not break anything, and helps significantly (at the cost of a little
15541 # extra space).
15542 freebsd2.2*)
15543 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15544 hardcode_libdir_flag_spec='-R$libdir'
15545 hardcode_direct=yes
15546 hardcode_shlibpath_var=no
15547 ;;
15548
15549 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15550 freebsd2.*)
15551 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15552 hardcode_direct=yes
15553 hardcode_minus_L=yes
15554 hardcode_shlibpath_var=no
15555 ;;
15556
15557 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15558 freebsd* | dragonfly*)
15559 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15560 hardcode_libdir_flag_spec='-R$libdir'
15561 hardcode_direct=yes
15562 hardcode_shlibpath_var=no
15563 ;;
15564
15565 hpux9*)
15566 if test "$GCC" = yes; then
15567 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'
15568 else
15569 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'
15570 fi
15571 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15572 hardcode_libdir_separator=:
15573 hardcode_direct=yes
15574
15575 # hardcode_minus_L: Not really in the search PATH,
15576 # but as the default location of the library.
15577 hardcode_minus_L=yes
15578 export_dynamic_flag_spec='${wl}-E'
15579 ;;
15580
15581 hpux10*)
15582 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
15583 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15584 else
15585 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15586 fi
15587 if test "$with_gnu_ld" = no; then
15588 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15589 hardcode_libdir_separator=:
15590 hardcode_direct=yes
15591 hardcode_direct_absolute=yes
15592 export_dynamic_flag_spec='${wl}-E'
15593 # hardcode_minus_L: Not really in the search PATH,
15594 # but as the default location of the library.
15595 hardcode_minus_L=yes
15596 fi
15597 ;;
15598
15599 hpux11*)
15600 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
15601 case $host_cpu in
15602 hppa*64*)
15603 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15604 ;;
15605 ia64*)
15606 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15607 ;;
15608 *)
15609 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15610 ;;
15611 esac
15612 else
15613 case $host_cpu in
15614 hppa*64*)
15615 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15616 ;;
15617 ia64*)
15618 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15619 ;;
15620 *)
15621
15622 # Older versions of the 11.00 compiler do not understand -b yet
15623 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
15624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
15625 $as_echo_n "checking if $CC understands -b... " >&6; }
15626 if ${lt_cv_prog_compiler__b+:} false; then :
15627 $as_echo_n "(cached) " >&6
15628 else
15629 lt_cv_prog_compiler__b=no
15630 save_LDFLAGS="$LDFLAGS"
15631 LDFLAGS="$LDFLAGS -b"
15632 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15633 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15634 # The linker can only warn and ignore the option if not recognized
15635 # So say no if there are warnings
15636 if test -s conftest.err; then
15637 # Append any errors to the config.log.
15638 cat conftest.err 1>&5
15639 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15640 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15641 if diff conftest.exp conftest.er2 >/dev/null; then
15642 lt_cv_prog_compiler__b=yes
15643 fi
15644 else
15645 lt_cv_prog_compiler__b=yes
15646 fi
15647 fi
15648 $RM -r conftest*
15649 LDFLAGS="$save_LDFLAGS"
15650
15651 fi
15652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
15653 $as_echo "$lt_cv_prog_compiler__b" >&6; }
15654
15655 if test x"$lt_cv_prog_compiler__b" = xyes; then
15656 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15657 else
15658 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15659 fi
15660
15661 ;;
15662 esac
15663 fi
15664 if test "$with_gnu_ld" = no; then
15665 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15666 hardcode_libdir_separator=:
15667
15668 case $host_cpu in
15669 hppa*64*|ia64*)
15670 hardcode_direct=no
15671 hardcode_shlibpath_var=no
15672 ;;
15673 *)
15674 hardcode_direct=yes
15675 hardcode_direct_absolute=yes
15676 export_dynamic_flag_spec='${wl}-E'
15677
15678 # hardcode_minus_L: Not really in the search PATH,
15679 # but as the default location of the library.
15680 hardcode_minus_L=yes
15681 ;;
15682 esac
15683 fi
15684 ;;
15685
15686 irix5* | irix6* | nonstopux*)
15687 if test "$GCC" = yes; then
15688 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'
15689 # Try to use the -exported_symbol ld option, if it does not
15690 # work, assume that -exports_file does not work either and
15691 # implicitly export all symbols.
15692 # This should be the same for all languages, so no per-tag cache variable.
15693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
15694 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
15695 if ${lt_cv_irix_exported_symbol+:} false; then :
15696 $as_echo_n "(cached) " >&6
15697 else
15698 save_LDFLAGS="$LDFLAGS"
15699 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
15700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15701 /* end confdefs.h. */
15702 int foo (void) { return 0; }
15703 _ACEOF
15704 if ac_fn_c_try_link "$LINENO"; then :
15705 lt_cv_irix_exported_symbol=yes
15706 else
15707 lt_cv_irix_exported_symbol=no
15708 fi
15709 rm -f core conftest.err conftest.$ac_objext \
15710 conftest$ac_exeext conftest.$ac_ext
15711 LDFLAGS="$save_LDFLAGS"
15712 fi
15713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
15714 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
15715 if test "$lt_cv_irix_exported_symbol" = yes; then
15716 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'
15717 fi
15718 else
15719 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'
15720 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'
15721 fi
15722 archive_cmds_need_lc='no'
15723 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15724 hardcode_libdir_separator=:
15725 inherit_rpath=yes
15726 link_all_deplibs=yes
15727 ;;
15728
15729 netbsd*)
15730 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15731 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15732 else
15733 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15734 fi
15735 hardcode_libdir_flag_spec='-R$libdir'
15736 hardcode_direct=yes
15737 hardcode_shlibpath_var=no
15738 ;;
15739
15740 newsos6)
15741 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15742 hardcode_direct=yes
15743 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15744 hardcode_libdir_separator=:
15745 hardcode_shlibpath_var=no
15746 ;;
15747
15748 *nto* | *qnx*)
15749 ;;
15750
15751 openbsd*)
15752 if test -f /usr/libexec/ld.so; then
15753 hardcode_direct=yes
15754 hardcode_shlibpath_var=no
15755 hardcode_direct_absolute=yes
15756 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15757 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15758 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15759 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15760 export_dynamic_flag_spec='${wl}-E'
15761 else
15762 case $host_os in
15763 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15764 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15765 hardcode_libdir_flag_spec='-R$libdir'
15766 ;;
15767 *)
15768 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15769 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15770 ;;
15771 esac
15772 fi
15773 else
15774 ld_shlibs=no
15775 fi
15776 ;;
15777
15778 os2*)
15779 hardcode_libdir_flag_spec='-L$libdir'
15780 hardcode_minus_L=yes
15781 allow_undefined_flag=unsupported
15782 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'
15783 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15784 ;;
15785
15786 osf3*)
15787 if test "$GCC" = yes; then
15788 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15789 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'
15790 else
15791 allow_undefined_flag=' -expect_unresolved \*'
15792 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'
15793 fi
15794 archive_cmds_need_lc='no'
15795 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15796 hardcode_libdir_separator=:
15797 ;;
15798
15799 osf4* | osf5*) # as osf3* with the addition of -msym flag
15800 if test "$GCC" = yes; then
15801 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15802 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'
15803 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15804 else
15805 allow_undefined_flag=' -expect_unresolved \*'
15806 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'
15807 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~
15808 $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'
15809
15810 # Both c and cxx compiler support -rpath directly
15811 hardcode_libdir_flag_spec='-rpath $libdir'
15812 fi
15813 archive_cmds_need_lc='no'
15814 hardcode_libdir_separator=:
15815 ;;
15816
15817 solaris*)
15818 no_undefined_flag=' -z defs'
15819 if test "$GCC" = yes; then
15820 wlarc='${wl}'
15821 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15822 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15823 $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'
15824 else
15825 case `$CC -V 2>&1` in
15826 *"Compilers 5.0"*)
15827 wlarc=''
15828 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15829 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15830 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
15831 ;;
15832 *)
15833 wlarc='${wl}'
15834 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
15835 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15836 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
15837 ;;
15838 esac
15839 fi
15840 hardcode_libdir_flag_spec='-R$libdir'
15841 hardcode_shlibpath_var=no
15842 case $host_os in
15843 solaris2.[0-5] | solaris2.[0-5].*) ;;
15844 *)
15845 # The compiler driver will combine and reorder linker options,
15846 # but understands `-z linker_flag'. GCC discards it without `$wl',
15847 # but is careful enough not to reorder.
15848 # Supported since Solaris 2.6 (maybe 2.5.1?)
15849 if test "$GCC" = yes; then
15850 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15851 else
15852 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
15853 fi
15854 ;;
15855 esac
15856 link_all_deplibs=yes
15857 ;;
15858
15859 sunos4*)
15860 if test "x$host_vendor" = xsequent; then
15861 # Use $CC to link under sequent, because it throws in some extra .o
15862 # files that make .init and .fini sections work.
15863 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15864 else
15865 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15866 fi
15867 hardcode_libdir_flag_spec='-L$libdir'
15868 hardcode_direct=yes
15869 hardcode_minus_L=yes
15870 hardcode_shlibpath_var=no
15871 ;;
15872
15873 sysv4)
15874 case $host_vendor in
15875 sni)
15876 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15877 hardcode_direct=yes # is this really true???
15878 ;;
15879 siemens)
15880 ## LD is ld it makes a PLAMLIB
15881 ## CC just makes a GrossModule.
15882 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15883 reload_cmds='$CC -r -o $output$reload_objs'
15884 hardcode_direct=no
15885 ;;
15886 motorola)
15887 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15888 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
15889 ;;
15890 esac
15891 runpath_var='LD_RUN_PATH'
15892 hardcode_shlibpath_var=no
15893 ;;
15894
15895 sysv4.3*)
15896 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15897 hardcode_shlibpath_var=no
15898 export_dynamic_flag_spec='-Bexport'
15899 ;;
15900
15901 sysv4*MP*)
15902 if test -d /usr/nec; then
15903 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15904 hardcode_shlibpath_var=no
15905 runpath_var=LD_RUN_PATH
15906 hardcode_runpath_var=yes
15907 ld_shlibs=yes
15908 fi
15909 ;;
15910
15911 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15912 no_undefined_flag='${wl}-z,text'
15913 archive_cmds_need_lc=no
15914 hardcode_shlibpath_var=no
15915 runpath_var='LD_RUN_PATH'
15916
15917 if test "$GCC" = yes; then
15918 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15919 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15920 else
15921 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15922 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15923 fi
15924 ;;
15925
15926 sysv5* | sco3.2v5* | sco5v6*)
15927 # Note: We can NOT use -z defs as we might desire, because we do not
15928 # link with -lc, and that would cause any symbols used from libc to
15929 # always be unresolved, which means just about no library would
15930 # ever link correctly. If we're not using GNU ld we use -z text
15931 # though, which does catch some bad symbols but isn't as heavy-handed
15932 # as -z defs.
15933 no_undefined_flag='${wl}-z,text'
15934 allow_undefined_flag='${wl}-z,nodefs'
15935 archive_cmds_need_lc=no
15936 hardcode_shlibpath_var=no
15937 hardcode_libdir_flag_spec='${wl}-R,$libdir'
15938 hardcode_libdir_separator=':'
15939 link_all_deplibs=yes
15940 export_dynamic_flag_spec='${wl}-Bexport'
15941 runpath_var='LD_RUN_PATH'
15942
15943 if test "$GCC" = yes; then
15944 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15945 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15946 else
15947 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15948 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15949 fi
15950 ;;
15951
15952 uts4*)
15953 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15954 hardcode_libdir_flag_spec='-L$libdir'
15955 hardcode_shlibpath_var=no
15956 ;;
15957
15958 *)
15959 ld_shlibs=no
15960 ;;
15961 esac
15962
15963 if test x$host_vendor = xsni; then
15964 case $host in
15965 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15966 export_dynamic_flag_spec='${wl}-Blargedynsym'
15967 ;;
15968 esac
15969 fi
15970 fi
15971
15972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
15973 $as_echo "$ld_shlibs" >&6; }
15974 test "$ld_shlibs" = no && can_build_shared=no
15975
15976 with_gnu_ld=$with_gnu_ld
15977
15978
15979
15980
15981
15982
15983
15984
15985
15986
15987
15988
15989
15990
15991
15992 #
15993 # Do we need to explicitly link libc?
15994 #
15995 case "x$archive_cmds_need_lc" in
15996 x|xyes)
15997 # Assume -lc should be added
15998 archive_cmds_need_lc=yes
15999
16000 if test "$enable_shared" = yes && test "$GCC" = yes; then
16001 case $archive_cmds in
16002 *'~'*)
16003 # FIXME: we may have to deal with multi-command sequences.
16004 ;;
16005 '$CC '*)
16006 # Test whether the compiler implicitly links with -lc since on some
16007 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16008 # to ld, don't add -lc before -lgcc.
16009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16010 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16011 if ${lt_cv_archive_cmds_need_lc+:} false; then :
16012 $as_echo_n "(cached) " >&6
16013 else
16014 $RM conftest*
16015 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16016
16017 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16018 (eval $ac_compile) 2>&5
16019 ac_status=$?
16020 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16021 test $ac_status = 0; } 2>conftest.err; then
16022 soname=conftest
16023 lib=conftest
16024 libobjs=conftest.$ac_objext
16025 deplibs=
16026 wl=$lt_prog_compiler_wl
16027 pic_flag=$lt_prog_compiler_pic
16028 compiler_flags=-v
16029 linker_flags=-v
16030 verstring=
16031 output_objdir=.
16032 libname=conftest
16033 lt_save_allow_undefined_flag=$allow_undefined_flag
16034 allow_undefined_flag=
16035 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16036 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16037 ac_status=$?
16038 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16039 test $ac_status = 0; }
16040 then
16041 lt_cv_archive_cmds_need_lc=no
16042 else
16043 lt_cv_archive_cmds_need_lc=yes
16044 fi
16045 allow_undefined_flag=$lt_save_allow_undefined_flag
16046 else
16047 cat conftest.err 1>&5
16048 fi
16049 $RM conftest*
16050
16051 fi
16052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
16053 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
16054 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
16055 ;;
16056 esac
16057 fi
16058 ;;
16059 esac
16060
16061
16062
16063
16064
16065
16066
16067
16068
16069
16070
16071
16072
16073
16074
16075
16076
16077
16078
16079
16080
16081
16082
16083
16084
16085
16086
16087
16088
16089
16090
16091
16092
16093
16094
16095
16096
16097
16098
16099
16100
16101
16102
16103
16104
16105
16106
16107
16108
16109
16110
16111
16112
16113
16114
16115
16116
16117
16118
16119
16120
16121
16122
16123
16124
16125
16126
16127
16128
16129
16130
16131
16132
16133
16134
16135
16136
16137
16138
16139
16140
16141
16142
16143
16144
16145
16146
16147
16148
16149
16150
16151
16152
16153
16154
16155
16156
16157
16158
16159
16160
16161
16162
16163
16164
16165
16166
16167
16168
16169
16170
16171
16172
16173
16174
16175
16176
16177
16178
16179
16180
16181
16182
16183
16184
16185
16186
16187
16188
16189
16190
16191
16192
16193
16194
16195
16196
16197
16198
16199
16200
16201
16202
16203
16204
16205
16206
16207
16208
16209
16210
16211
16212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16213 $as_echo_n "checking dynamic linker characteristics... " >&6; }
16214
16215 if test "$GCC" = yes; then
16216 case $host_os in
16217 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
16218 *) lt_awk_arg="/^libraries:/" ;;
16219 esac
16220 case $host_os in
16221 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
16222 *) lt_sed_strip_eq="s,=/,/,g" ;;
16223 esac
16224 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
16225 case $lt_search_path_spec in
16226 *\;*)
16227 # if the path contains ";" then we assume it to be the separator
16228 # otherwise default to the standard path separator (i.e. ":") - it is
16229 # assumed that no part of a normal pathname contains ";" but that should
16230 # okay in the real world where ";" in dirpaths is itself problematic.
16231 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
16232 ;;
16233 *)
16234 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
16235 ;;
16236 esac
16237 # Ok, now we have the path, separated by spaces, we can step through it
16238 # and add multilib dir if necessary.
16239 lt_tmp_lt_search_path_spec=
16240 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16241 for lt_sys_path in $lt_search_path_spec; do
16242 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
16243 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
16244 else
16245 test -d "$lt_sys_path" && \
16246 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
16247 fi
16248 done
16249 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
16250 BEGIN {RS=" "; FS="/|\n";} {
16251 lt_foo="";
16252 lt_count=0;
16253 for (lt_i = NF; lt_i > 0; lt_i--) {
16254 if ($lt_i != "" && $lt_i != ".") {
16255 if ($lt_i == "..") {
16256 lt_count++;
16257 } else {
16258 if (lt_count == 0) {
16259 lt_foo="/" $lt_i lt_foo;
16260 } else {
16261 lt_count--;
16262 }
16263 }
16264 }
16265 }
16266 if (lt_foo != "") { lt_freq[lt_foo]++; }
16267 if (lt_freq[lt_foo] == 1) { print lt_foo; }
16268 }'`
16269 # AWK program above erroneously prepends '/' to C:/dos/paths
16270 # for these hosts.
16271 case $host_os in
16272 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
16273 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
16274 esac
16275 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
16276 else
16277 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16278 fi
16279 library_names_spec=
16280 libname_spec='lib$name'
16281 soname_spec=
16282 shrext_cmds=".so"
16283 postinstall_cmds=
16284 postuninstall_cmds=
16285 finish_cmds=
16286 finish_eval=
16287 shlibpath_var=
16288 shlibpath_overrides_runpath=unknown
16289 version_type=none
16290 dynamic_linker="$host_os ld.so"
16291 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16292 need_lib_prefix=unknown
16293 hardcode_into_libs=no
16294
16295 # when you set need_version to no, make sure it does not cause -set_version
16296 # flags to be left without arguments
16297 need_version=unknown
16298
16299 case $host_os in
16300 aix3*)
16301 version_type=linux # correct to gnu/linux during the next big refactor
16302 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16303 shlibpath_var=LIBPATH
16304
16305 # AIX 3 has no versioning support, so we append a major version to the name.
16306 soname_spec='${libname}${release}${shared_ext}$major'
16307 ;;
16308
16309 aix[4-9]*)
16310 version_type=linux # correct to gnu/linux during the next big refactor
16311 need_lib_prefix=no
16312 need_version=no
16313 hardcode_into_libs=yes
16314 if test "$host_cpu" = ia64; then
16315 # AIX 5 supports IA64
16316 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16317 shlibpath_var=LD_LIBRARY_PATH
16318 else
16319 # With GCC up to 2.95.x, collect2 would create an import file
16320 # for dependence libraries. The import file would start with
16321 # the line `#! .'. This would cause the generated library to
16322 # depend on `.', always an invalid library. This was fixed in
16323 # development snapshots of GCC prior to 3.0.
16324 case $host_os in
16325 aix4 | aix4.[01] | aix4.[01].*)
16326 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16327 echo ' yes '
16328 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16329 :
16330 else
16331 can_build_shared=no
16332 fi
16333 ;;
16334 esac
16335 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16336 # soname into executable. Probably we can add versioning support to
16337 # collect2, so additional links can be useful in future.
16338 if test "$aix_use_runtimelinking" = yes; then
16339 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16340 # instead of lib<name>.a to let people know that these are not
16341 # typical AIX shared libraries.
16342 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16343 else
16344 # We preserve .a as extension for shared libraries through AIX4.2
16345 # and later when we are not doing run time linking.
16346 library_names_spec='${libname}${release}.a $libname.a'
16347 soname_spec='${libname}${release}${shared_ext}$major'
16348 fi
16349 shlibpath_var=LIBPATH
16350 fi
16351 ;;
16352
16353 amigaos*)
16354 case $host_cpu in
16355 powerpc)
16356 # Since July 2007 AmigaOS4 officially supports .so libraries.
16357 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16358 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16359 ;;
16360 m68k)
16361 library_names_spec='$libname.ixlibrary $libname.a'
16362 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16363 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'
16364 ;;
16365 esac
16366 ;;
16367
16368 beos*)
16369 library_names_spec='${libname}${shared_ext}'
16370 dynamic_linker="$host_os ld.so"
16371 shlibpath_var=LIBRARY_PATH
16372 ;;
16373
16374 bsdi[45]*)
16375 version_type=linux # correct to gnu/linux during the next big refactor
16376 need_version=no
16377 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16378 soname_spec='${libname}${release}${shared_ext}$major'
16379 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16380 shlibpath_var=LD_LIBRARY_PATH
16381 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16382 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16383 # the default ld.so.conf also contains /usr/contrib/lib and
16384 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16385 # libtool to hard-code these into programs
16386 ;;
16387
16388 cygwin* | mingw* | pw32* | cegcc*)
16389 version_type=windows
16390 shrext_cmds=".dll"
16391 need_version=no
16392 need_lib_prefix=no
16393
16394 case $GCC,$cc_basename in
16395 yes,*)
16396 # gcc
16397 library_names_spec='$libname.dll.a'
16398 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16399 postinstall_cmds='base_file=`basename \${file}`~
16400 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16401 dldir=$destdir/`dirname \$dlpath`~
16402 test -d \$dldir || mkdir -p \$dldir~
16403 $install_prog $dir/$dlname \$dldir/$dlname~
16404 chmod a+x \$dldir/$dlname~
16405 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16406 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16407 fi'
16408 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16409 dlpath=$dir/\$dldll~
16410 $RM \$dlpath'
16411 shlibpath_overrides_runpath=yes
16412
16413 case $host_os in
16414 cygwin*)
16415 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16416 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16417
16418 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
16419 ;;
16420 mingw* | cegcc*)
16421 # MinGW DLLs use traditional 'lib' prefix
16422 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16423 ;;
16424 pw32*)
16425 # pw32 DLLs use 'pw' prefix rather than 'lib'
16426 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16427 ;;
16428 esac
16429 dynamic_linker='Win32 ld.exe'
16430 ;;
16431
16432 *,cl*)
16433 # Native MSVC
16434 libname_spec='$name'
16435 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16436 library_names_spec='${libname}.dll.lib'
16437
16438 case $build_os in
16439 mingw*)
16440 sys_lib_search_path_spec=
16441 lt_save_ifs=$IFS
16442 IFS=';'
16443 for lt_path in $LIB
16444 do
16445 IFS=$lt_save_ifs
16446 # Let DOS variable expansion print the short 8.3 style file name.
16447 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
16448 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
16449 done
16450 IFS=$lt_save_ifs
16451 # Convert to MSYS style.
16452 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
16453 ;;
16454 cygwin*)
16455 # Convert to unix form, then to dos form, then back to unix form
16456 # but this time dos style (no spaces!) so that the unix form looks
16457 # like /cygdrive/c/PROGRA~1:/cygdr...
16458 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
16459 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
16460 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16461 ;;
16462 *)
16463 sys_lib_search_path_spec="$LIB"
16464 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
16465 # It is most probably a Windows format PATH.
16466 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16467 else
16468 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16469 fi
16470 # FIXME: find the short name or the path components, as spaces are
16471 # common. (e.g. "Program Files" -> "PROGRA~1")
16472 ;;
16473 esac
16474
16475 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16476 postinstall_cmds='base_file=`basename \${file}`~
16477 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16478 dldir=$destdir/`dirname \$dlpath`~
16479 test -d \$dldir || mkdir -p \$dldir~
16480 $install_prog $dir/$dlname \$dldir/$dlname'
16481 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16482 dlpath=$dir/\$dldll~
16483 $RM \$dlpath'
16484 shlibpath_overrides_runpath=yes
16485 dynamic_linker='Win32 link.exe'
16486 ;;
16487
16488 *)
16489 # Assume MSVC wrapper
16490 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16491 dynamic_linker='Win32 ld.exe'
16492 ;;
16493 esac
16494 # FIXME: first we should search . and the directory the executable is in
16495 shlibpath_var=PATH
16496 ;;
16497
16498 darwin* | rhapsody*)
16499 dynamic_linker="$host_os dyld"
16500 version_type=darwin
16501 need_lib_prefix=no
16502 need_version=no
16503 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16504 soname_spec='${libname}${release}${major}$shared_ext'
16505 shlibpath_overrides_runpath=yes
16506 shlibpath_var=DYLD_LIBRARY_PATH
16507 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16508
16509 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
16510 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16511 ;;
16512
16513 dgux*)
16514 version_type=linux # correct to gnu/linux during the next big refactor
16515 need_lib_prefix=no
16516 need_version=no
16517 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16518 soname_spec='${libname}${release}${shared_ext}$major'
16519 shlibpath_var=LD_LIBRARY_PATH
16520 ;;
16521
16522 freebsd* | dragonfly*)
16523 # DragonFly does not have aout. When/if they implement a new
16524 # versioning mechanism, adjust this.
16525 if test -x /usr/bin/objformat; then
16526 objformat=`/usr/bin/objformat`
16527 else
16528 case $host_os in
16529 freebsd[23].*) objformat=aout ;;
16530 *) objformat=elf ;;
16531 esac
16532 fi
16533 version_type=freebsd-$objformat
16534 case $version_type in
16535 freebsd-elf*)
16536 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16537 need_version=no
16538 need_lib_prefix=no
16539 ;;
16540 freebsd-*)
16541 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16542 need_version=yes
16543 ;;
16544 esac
16545 shlibpath_var=LD_LIBRARY_PATH
16546 case $host_os in
16547 freebsd2.*)
16548 shlibpath_overrides_runpath=yes
16549 ;;
16550 freebsd3.[01]* | freebsdelf3.[01]*)
16551 shlibpath_overrides_runpath=yes
16552 hardcode_into_libs=yes
16553 ;;
16554 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16555 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16556 shlibpath_overrides_runpath=no
16557 hardcode_into_libs=yes
16558 ;;
16559 *) # from 4.6 on, and DragonFly
16560 shlibpath_overrides_runpath=yes
16561 hardcode_into_libs=yes
16562 ;;
16563 esac
16564 ;;
16565
16566 gnu*)
16567 version_type=linux # correct to gnu/linux during the next big refactor
16568 need_lib_prefix=no
16569 need_version=no
16570 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16571 soname_spec='${libname}${release}${shared_ext}$major'
16572 shlibpath_var=LD_LIBRARY_PATH
16573 shlibpath_overrides_runpath=no
16574 hardcode_into_libs=yes
16575 ;;
16576
16577 haiku*)
16578 version_type=linux # correct to gnu/linux during the next big refactor
16579 need_lib_prefix=no
16580 need_version=no
16581 dynamic_linker="$host_os runtime_loader"
16582 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16583 soname_spec='${libname}${release}${shared_ext}$major'
16584 shlibpath_var=LIBRARY_PATH
16585 shlibpath_overrides_runpath=yes
16586 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
16587 hardcode_into_libs=yes
16588 ;;
16589
16590 hpux9* | hpux10* | hpux11*)
16591 # Give a soname corresponding to the major version so that dld.sl refuses to
16592 # link against other versions.
16593 version_type=sunos
16594 need_lib_prefix=no
16595 need_version=no
16596 case $host_cpu in
16597 ia64*)
16598 shrext_cmds='.so'
16599 hardcode_into_libs=yes
16600 dynamic_linker="$host_os dld.so"
16601 shlibpath_var=LD_LIBRARY_PATH
16602 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16603 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16604 soname_spec='${libname}${release}${shared_ext}$major'
16605 if test "X$HPUX_IA64_MODE" = X32; then
16606 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16607 else
16608 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16609 fi
16610 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16611 ;;
16612 hppa*64*)
16613 shrext_cmds='.sl'
16614 hardcode_into_libs=yes
16615 dynamic_linker="$host_os dld.sl"
16616 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16617 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16618 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16619 soname_spec='${libname}${release}${shared_ext}$major'
16620 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16621 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16622 ;;
16623 *)
16624 shrext_cmds='.sl'
16625 dynamic_linker="$host_os dld.sl"
16626 shlibpath_var=SHLIB_PATH
16627 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16628 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16629 soname_spec='${libname}${release}${shared_ext}$major'
16630 ;;
16631 esac
16632 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
16633 postinstall_cmds='chmod 555 $lib'
16634 # or fails outright, so override atomically:
16635 install_override_mode=555
16636 ;;
16637
16638 interix[3-9]*)
16639 version_type=linux # correct to gnu/linux during the next big refactor
16640 need_lib_prefix=no
16641 need_version=no
16642 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16643 soname_spec='${libname}${release}${shared_ext}$major'
16644 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16645 shlibpath_var=LD_LIBRARY_PATH
16646 shlibpath_overrides_runpath=no
16647 hardcode_into_libs=yes
16648 ;;
16649
16650 irix5* | irix6* | nonstopux*)
16651 case $host_os in
16652 nonstopux*) version_type=nonstopux ;;
16653 *)
16654 if test "$lt_cv_prog_gnu_ld" = yes; then
16655 version_type=linux # correct to gnu/linux during the next big refactor
16656 else
16657 version_type=irix
16658 fi ;;
16659 esac
16660 need_lib_prefix=no
16661 need_version=no
16662 soname_spec='${libname}${release}${shared_ext}$major'
16663 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16664 case $host_os in
16665 irix5* | nonstopux*)
16666 libsuff= shlibsuff=
16667 ;;
16668 *)
16669 case $LD in # libtool.m4 will add one of these switches to LD
16670 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16671 libsuff= shlibsuff= libmagic=32-bit;;
16672 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16673 libsuff=32 shlibsuff=N32 libmagic=N32;;
16674 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16675 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16676 *) libsuff= shlibsuff= libmagic=never-match;;
16677 esac
16678 ;;
16679 esac
16680 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16681 shlibpath_overrides_runpath=no
16682 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16683 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16684 hardcode_into_libs=yes
16685 ;;
16686
16687 # No shared lib support for Linux oldld, aout, or coff.
16688 linux*oldld* | linux*aout* | linux*coff*)
16689 dynamic_linker=no
16690 ;;
16691
16692 # This must be glibc/ELF.
16693 linux* | k*bsd*-gnu | kopensolaris*-gnu)
16694 version_type=linux # correct to gnu/linux during the next big refactor
16695 need_lib_prefix=no
16696 need_version=no
16697 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16698 soname_spec='${libname}${release}${shared_ext}$major'
16699 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16700 shlibpath_var=LD_LIBRARY_PATH
16701 shlibpath_overrides_runpath=no
16702
16703 # Some binutils ld are patched to set DT_RUNPATH
16704 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
16705 $as_echo_n "(cached) " >&6
16706 else
16707 lt_cv_shlibpath_overrides_runpath=no
16708 save_LDFLAGS=$LDFLAGS
16709 save_libdir=$libdir
16710 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
16711 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
16712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16713 /* end confdefs.h. */
16714
16715 int
16716 main ()
16717 {
16718
16719 ;
16720 return 0;
16721 }
16722 _ACEOF
16723 if ac_fn_c_try_link "$LINENO"; then :
16724 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
16725 lt_cv_shlibpath_overrides_runpath=yes
16726 fi
16727 fi
16728 rm -f core conftest.err conftest.$ac_objext \
16729 conftest$ac_exeext conftest.$ac_ext
16730 LDFLAGS=$save_LDFLAGS
16731 libdir=$save_libdir
16732
16733 fi
16734
16735 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16736
16737 # This implies no fast_install, which is unacceptable.
16738 # Some rework will be needed to allow for fast_install
16739 # before this can be enabled.
16740 hardcode_into_libs=yes
16741
16742 # Append ld.so.conf contents to the search path
16743 if test -f /etc/ld.so.conf; then
16744 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' ' '`
16745 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16746 fi
16747
16748 # We used to test for /lib/ld.so.1 and disable shared libraries on
16749 # powerpc, because MkLinux only supported shared libraries with the
16750 # GNU dynamic linker. Since this was broken with cross compilers,
16751 # most powerpc-linux boxes support dynamic linking these days and
16752 # people can always --disable-shared, the test was removed, and we
16753 # assume the GNU/Linux dynamic linker is in use.
16754 dynamic_linker='GNU/Linux ld.so'
16755 ;;
16756
16757 netbsd*)
16758 version_type=sunos
16759 need_lib_prefix=no
16760 need_version=no
16761 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16762 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16763 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16764 dynamic_linker='NetBSD (a.out) ld.so'
16765 else
16766 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16767 soname_spec='${libname}${release}${shared_ext}$major'
16768 dynamic_linker='NetBSD ld.elf_so'
16769 fi
16770 shlibpath_var=LD_LIBRARY_PATH
16771 shlibpath_overrides_runpath=yes
16772 hardcode_into_libs=yes
16773 ;;
16774
16775 newsos6)
16776 version_type=linux # correct to gnu/linux during the next big refactor
16777 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16778 shlibpath_var=LD_LIBRARY_PATH
16779 shlibpath_overrides_runpath=yes
16780 ;;
16781
16782 *nto* | *qnx*)
16783 version_type=qnx
16784 need_lib_prefix=no
16785 need_version=no
16786 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16787 soname_spec='${libname}${release}${shared_ext}$major'
16788 shlibpath_var=LD_LIBRARY_PATH
16789 shlibpath_overrides_runpath=no
16790 hardcode_into_libs=yes
16791 dynamic_linker='ldqnx.so'
16792 ;;
16793
16794 openbsd*)
16795 version_type=sunos
16796 sys_lib_dlsearch_path_spec="/usr/lib"
16797 need_lib_prefix=no
16798 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16799 case $host_os in
16800 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16801 *) need_version=no ;;
16802 esac
16803 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16804 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16805 shlibpath_var=LD_LIBRARY_PATH
16806 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16807 case $host_os in
16808 openbsd2.[89] | openbsd2.[89].*)
16809 shlibpath_overrides_runpath=no
16810 ;;
16811 *)
16812 shlibpath_overrides_runpath=yes
16813 ;;
16814 esac
16815 else
16816 shlibpath_overrides_runpath=yes
16817 fi
16818 ;;
16819
16820 os2*)
16821 libname_spec='$name'
16822 shrext_cmds=".dll"
16823 need_lib_prefix=no
16824 library_names_spec='$libname${shared_ext} $libname.a'
16825 dynamic_linker='OS/2 ld.exe'
16826 shlibpath_var=LIBPATH
16827 ;;
16828
16829 osf3* | osf4* | osf5*)
16830 version_type=osf
16831 need_lib_prefix=no
16832 need_version=no
16833 soname_spec='${libname}${release}${shared_ext}$major'
16834 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16835 shlibpath_var=LD_LIBRARY_PATH
16836 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16837 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16838 ;;
16839
16840 rdos*)
16841 dynamic_linker=no
16842 ;;
16843
16844 solaris*)
16845 version_type=linux # correct to gnu/linux during the next big refactor
16846 need_lib_prefix=no
16847 need_version=no
16848 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16849 soname_spec='${libname}${release}${shared_ext}$major'
16850 shlibpath_var=LD_LIBRARY_PATH
16851 shlibpath_overrides_runpath=yes
16852 hardcode_into_libs=yes
16853 # ldd complains unless libraries are executable
16854 postinstall_cmds='chmod +x $lib'
16855 ;;
16856
16857 sunos4*)
16858 version_type=sunos
16859 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16860 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16861 shlibpath_var=LD_LIBRARY_PATH
16862 shlibpath_overrides_runpath=yes
16863 if test "$with_gnu_ld" = yes; then
16864 need_lib_prefix=no
16865 fi
16866 need_version=yes
16867 ;;
16868
16869 sysv4 | sysv4.3*)
16870 version_type=linux # correct to gnu/linux during the next big refactor
16871 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16872 soname_spec='${libname}${release}${shared_ext}$major'
16873 shlibpath_var=LD_LIBRARY_PATH
16874 case $host_vendor in
16875 sni)
16876 shlibpath_overrides_runpath=no
16877 need_lib_prefix=no
16878 runpath_var=LD_RUN_PATH
16879 ;;
16880 siemens)
16881 need_lib_prefix=no
16882 ;;
16883 motorola)
16884 need_lib_prefix=no
16885 need_version=no
16886 shlibpath_overrides_runpath=no
16887 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16888 ;;
16889 esac
16890 ;;
16891
16892 sysv4*MP*)
16893 if test -d /usr/nec ;then
16894 version_type=linux # correct to gnu/linux during the next big refactor
16895 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16896 soname_spec='$libname${shared_ext}.$major'
16897 shlibpath_var=LD_LIBRARY_PATH
16898 fi
16899 ;;
16900
16901 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16902 version_type=freebsd-elf
16903 need_lib_prefix=no
16904 need_version=no
16905 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16906 soname_spec='${libname}${release}${shared_ext}$major'
16907 shlibpath_var=LD_LIBRARY_PATH
16908 shlibpath_overrides_runpath=yes
16909 hardcode_into_libs=yes
16910 if test "$with_gnu_ld" = yes; then
16911 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16912 else
16913 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16914 case $host_os in
16915 sco3.2v5*)
16916 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16917 ;;
16918 esac
16919 fi
16920 sys_lib_dlsearch_path_spec='/usr/lib'
16921 ;;
16922
16923 tpf*)
16924 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
16925 version_type=linux # correct to gnu/linux during the next big refactor
16926 need_lib_prefix=no
16927 need_version=no
16928 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16929 shlibpath_var=LD_LIBRARY_PATH
16930 shlibpath_overrides_runpath=no
16931 hardcode_into_libs=yes
16932 ;;
16933
16934 uts4*)
16935 version_type=linux # correct to gnu/linux during the next big refactor
16936 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16937 soname_spec='${libname}${release}${shared_ext}$major'
16938 shlibpath_var=LD_LIBRARY_PATH
16939 ;;
16940
16941 *)
16942 dynamic_linker=no
16943 ;;
16944 esac
16945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16946 $as_echo "$dynamic_linker" >&6; }
16947 test "$dynamic_linker" = no && can_build_shared=no
16948
16949 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16950 if test "$GCC" = yes; then
16951 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16952 fi
16953
16954 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16955 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16956 fi
16957 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16958 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16959 fi
16960
16961
16962
16963
16964
16965
16966
16967
16968
16969
16970
16971
16972
16973
16974
16975
16976
16977
16978
16979
16980
16981
16982
16983
16984
16985
16986
16987
16988
16989
16990
16991
16992
16993
16994
16995
16996
16997
16998
16999
17000
17001
17002
17003
17004
17005
17006
17007
17008
17009
17010
17011
17012
17013
17014
17015
17016
17017
17018
17019
17020
17021
17022
17023
17024
17025
17026
17027
17028
17029
17030
17031
17032
17033
17034
17035
17036
17037
17038
17039
17040
17041
17042
17043
17044
17045
17046
17047
17048
17049
17050
17051
17052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17053 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17054 hardcode_action=
17055 if test -n "$hardcode_libdir_flag_spec" ||
17056 test -n "$runpath_var" ||
17057 test "X$hardcode_automatic" = "Xyes" ; then
17058
17059 # We can hardcode non-existent directories.
17060 if test "$hardcode_direct" != no &&
17061 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17062 # have to relink, otherwise we might link with an installed library
17063 # when we should be linking with a yet-to-be-installed one
17064 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
17065 test "$hardcode_minus_L" != no; then
17066 # Linking always hardcodes the temporary library directory.
17067 hardcode_action=relink
17068 else
17069 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17070 hardcode_action=immediate
17071 fi
17072 else
17073 # We cannot hardcode anything, or else we can only hardcode existing
17074 # directories.
17075 hardcode_action=unsupported
17076 fi
17077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
17078 $as_echo "$hardcode_action" >&6; }
17079
17080 if test "$hardcode_action" = relink ||
17081 test "$inherit_rpath" = yes; then
17082 # Fast installation is not supported
17083 enable_fast_install=no
17084 elif test "$shlibpath_overrides_runpath" = yes ||
17085 test "$enable_shared" = no; then
17086 # Fast installation is not necessary
17087 enable_fast_install=needless
17088 fi
17089
17090
17091
17092
17093
17094
17095 if test "x$enable_dlopen" != xyes; then
17096 enable_dlopen=unknown
17097 enable_dlopen_self=unknown
17098 enable_dlopen_self_static=unknown
17099 else
17100 lt_cv_dlopen=no
17101 lt_cv_dlopen_libs=
17102
17103 case $host_os in
17104 beos*)
17105 lt_cv_dlopen="load_add_on"
17106 lt_cv_dlopen_libs=
17107 lt_cv_dlopen_self=yes
17108 ;;
17109
17110 mingw* | pw32* | cegcc*)
17111 lt_cv_dlopen="LoadLibrary"
17112 lt_cv_dlopen_libs=
17113 ;;
17114
17115 cygwin*)
17116 lt_cv_dlopen="dlopen"
17117 lt_cv_dlopen_libs=
17118 ;;
17119
17120 darwin*)
17121 # if libdl is installed we need to link against it
17122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17123 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17124 if ${ac_cv_lib_dl_dlopen+:} false; then :
17125 $as_echo_n "(cached) " >&6
17126 else
17127 ac_check_lib_save_LIBS=$LIBS
17128 LIBS="-ldl $LIBS"
17129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17130 /* end confdefs.h. */
17131
17132 /* Override any GCC internal prototype to avoid an error.
17133 Use char because int might match the return type of a GCC
17134 builtin and then its argument prototype would still apply. */
17135 #ifdef __cplusplus
17136 extern "C"
17137 #endif
17138 char dlopen ();
17139 int
17140 main ()
17141 {
17142 return dlopen ();
17143 ;
17144 return 0;
17145 }
17146 _ACEOF
17147 if ac_fn_c_try_link "$LINENO"; then :
17148 ac_cv_lib_dl_dlopen=yes
17149 else
17150 ac_cv_lib_dl_dlopen=no
17151 fi
17152 rm -f core conftest.err conftest.$ac_objext \
17153 conftest$ac_exeext conftest.$ac_ext
17154 LIBS=$ac_check_lib_save_LIBS
17155 fi
17156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17157 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17158 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
17159 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17160 else
17161
17162 lt_cv_dlopen="dyld"
17163 lt_cv_dlopen_libs=
17164 lt_cv_dlopen_self=yes
17165
17166 fi
17167
17168 ;;
17169
17170 *)
17171 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
17172 if test "x$ac_cv_func_shl_load" = xyes; then :
17173 lt_cv_dlopen="shl_load"
17174 else
17175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17176 $as_echo_n "checking for shl_load in -ldld... " >&6; }
17177 if ${ac_cv_lib_dld_shl_load+:} false; then :
17178 $as_echo_n "(cached) " >&6
17179 else
17180 ac_check_lib_save_LIBS=$LIBS
17181 LIBS="-ldld $LIBS"
17182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17183 /* end confdefs.h. */
17184
17185 /* Override any GCC internal prototype to avoid an error.
17186 Use char because int might match the return type of a GCC
17187 builtin and then its argument prototype would still apply. */
17188 #ifdef __cplusplus
17189 extern "C"
17190 #endif
17191 char shl_load ();
17192 int
17193 main ()
17194 {
17195 return shl_load ();
17196 ;
17197 return 0;
17198 }
17199 _ACEOF
17200 if ac_fn_c_try_link "$LINENO"; then :
17201 ac_cv_lib_dld_shl_load=yes
17202 else
17203 ac_cv_lib_dld_shl_load=no
17204 fi
17205 rm -f core conftest.err conftest.$ac_objext \
17206 conftest$ac_exeext conftest.$ac_ext
17207 LIBS=$ac_check_lib_save_LIBS
17208 fi
17209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17210 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
17211 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
17212 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
17213 else
17214 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
17215 if test "x$ac_cv_func_dlopen" = xyes; then :
17216 lt_cv_dlopen="dlopen"
17217 else
17218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17219 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17220 if ${ac_cv_lib_dl_dlopen+:} false; then :
17221 $as_echo_n "(cached) " >&6
17222 else
17223 ac_check_lib_save_LIBS=$LIBS
17224 LIBS="-ldl $LIBS"
17225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17226 /* end confdefs.h. */
17227
17228 /* Override any GCC internal prototype to avoid an error.
17229 Use char because int might match the return type of a GCC
17230 builtin and then its argument prototype would still apply. */
17231 #ifdef __cplusplus
17232 extern "C"
17233 #endif
17234 char dlopen ();
17235 int
17236 main ()
17237 {
17238 return dlopen ();
17239 ;
17240 return 0;
17241 }
17242 _ACEOF
17243 if ac_fn_c_try_link "$LINENO"; then :
17244 ac_cv_lib_dl_dlopen=yes
17245 else
17246 ac_cv_lib_dl_dlopen=no
17247 fi
17248 rm -f core conftest.err conftest.$ac_objext \
17249 conftest$ac_exeext conftest.$ac_ext
17250 LIBS=$ac_check_lib_save_LIBS
17251 fi
17252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17253 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17254 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
17255 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17256 else
17257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17258 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
17259 if ${ac_cv_lib_svld_dlopen+:} false; then :
17260 $as_echo_n "(cached) " >&6
17261 else
17262 ac_check_lib_save_LIBS=$LIBS
17263 LIBS="-lsvld $LIBS"
17264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17265 /* end confdefs.h. */
17266
17267 /* Override any GCC internal prototype to avoid an error.
17268 Use char because int might match the return type of a GCC
17269 builtin and then its argument prototype would still apply. */
17270 #ifdef __cplusplus
17271 extern "C"
17272 #endif
17273 char dlopen ();
17274 int
17275 main ()
17276 {
17277 return dlopen ();
17278 ;
17279 return 0;
17280 }
17281 _ACEOF
17282 if ac_fn_c_try_link "$LINENO"; then :
17283 ac_cv_lib_svld_dlopen=yes
17284 else
17285 ac_cv_lib_svld_dlopen=no
17286 fi
17287 rm -f core conftest.err conftest.$ac_objext \
17288 conftest$ac_exeext conftest.$ac_ext
17289 LIBS=$ac_check_lib_save_LIBS
17290 fi
17291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17292 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
17293 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
17294 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17295 else
17296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17297 $as_echo_n "checking for dld_link in -ldld... " >&6; }
17298 if ${ac_cv_lib_dld_dld_link+:} false; then :
17299 $as_echo_n "(cached) " >&6
17300 else
17301 ac_check_lib_save_LIBS=$LIBS
17302 LIBS="-ldld $LIBS"
17303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17304 /* end confdefs.h. */
17305
17306 /* Override any GCC internal prototype to avoid an error.
17307 Use char because int might match the return type of a GCC
17308 builtin and then its argument prototype would still apply. */
17309 #ifdef __cplusplus
17310 extern "C"
17311 #endif
17312 char dld_link ();
17313 int
17314 main ()
17315 {
17316 return dld_link ();
17317 ;
17318 return 0;
17319 }
17320 _ACEOF
17321 if ac_fn_c_try_link "$LINENO"; then :
17322 ac_cv_lib_dld_dld_link=yes
17323 else
17324 ac_cv_lib_dld_dld_link=no
17325 fi
17326 rm -f core conftest.err conftest.$ac_objext \
17327 conftest$ac_exeext conftest.$ac_ext
17328 LIBS=$ac_check_lib_save_LIBS
17329 fi
17330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
17331 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
17332 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
17333 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
17334 fi
17335
17336
17337 fi
17338
17339
17340 fi
17341
17342
17343 fi
17344
17345
17346 fi
17347
17348
17349 fi
17350
17351 ;;
17352 esac
17353
17354 if test "x$lt_cv_dlopen" != xno; then
17355 enable_dlopen=yes
17356 else
17357 enable_dlopen=no
17358 fi
17359
17360 case $lt_cv_dlopen in
17361 dlopen)
17362 save_CPPFLAGS="$CPPFLAGS"
17363 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17364
17365 save_LDFLAGS="$LDFLAGS"
17366 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17367
17368 save_LIBS="$LIBS"
17369 LIBS="$lt_cv_dlopen_libs $LIBS"
17370
17371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
17372 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
17373 if ${lt_cv_dlopen_self+:} false; then :
17374 $as_echo_n "(cached) " >&6
17375 else
17376 if test "$cross_compiling" = yes; then :
17377 lt_cv_dlopen_self=cross
17378 else
17379 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17380 lt_status=$lt_dlunknown
17381 cat > conftest.$ac_ext <<_LT_EOF
17382 #line $LINENO "configure"
17383 #include "confdefs.h"
17384
17385 #if HAVE_DLFCN_H
17386 #include <dlfcn.h>
17387 #endif
17388
17389 #include <stdio.h>
17390
17391 #ifdef RTLD_GLOBAL
17392 # define LT_DLGLOBAL RTLD_GLOBAL
17393 #else
17394 # ifdef DL_GLOBAL
17395 # define LT_DLGLOBAL DL_GLOBAL
17396 # else
17397 # define LT_DLGLOBAL 0
17398 # endif
17399 #endif
17400
17401 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17402 find out it does not work in some platform. */
17403 #ifndef LT_DLLAZY_OR_NOW
17404 # ifdef RTLD_LAZY
17405 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17406 # else
17407 # ifdef DL_LAZY
17408 # define LT_DLLAZY_OR_NOW DL_LAZY
17409 # else
17410 # ifdef RTLD_NOW
17411 # define LT_DLLAZY_OR_NOW RTLD_NOW
17412 # else
17413 # ifdef DL_NOW
17414 # define LT_DLLAZY_OR_NOW DL_NOW
17415 # else
17416 # define LT_DLLAZY_OR_NOW 0
17417 # endif
17418 # endif
17419 # endif
17420 # endif
17421 #endif
17422
17423 /* When -fvisbility=hidden is used, assume the code has been annotated
17424 correspondingly for the symbols needed. */
17425 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17426 int fnord () __attribute__((visibility("default")));
17427 #endif
17428
17429 int fnord () { return 42; }
17430 int main ()
17431 {
17432 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17433 int status = $lt_dlunknown;
17434
17435 if (self)
17436 {
17437 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17438 else
17439 {
17440 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17441 else puts (dlerror ());
17442 }
17443 /* dlclose (self); */
17444 }
17445 else
17446 puts (dlerror ());
17447
17448 return status;
17449 }
17450 _LT_EOF
17451 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17452 (eval $ac_link) 2>&5
17453 ac_status=$?
17454 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17455 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17456 (./conftest; exit; ) >&5 2>/dev/null
17457 lt_status=$?
17458 case x$lt_status in
17459 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17460 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17461 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17462 esac
17463 else :
17464 # compilation failed
17465 lt_cv_dlopen_self=no
17466 fi
17467 fi
17468 rm -fr conftest*
17469
17470
17471 fi
17472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
17473 $as_echo "$lt_cv_dlopen_self" >&6; }
17474
17475 if test "x$lt_cv_dlopen_self" = xyes; then
17476 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
17478 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
17479 if ${lt_cv_dlopen_self_static+:} false; then :
17480 $as_echo_n "(cached) " >&6
17481 else
17482 if test "$cross_compiling" = yes; then :
17483 lt_cv_dlopen_self_static=cross
17484 else
17485 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17486 lt_status=$lt_dlunknown
17487 cat > conftest.$ac_ext <<_LT_EOF
17488 #line $LINENO "configure"
17489 #include "confdefs.h"
17490
17491 #if HAVE_DLFCN_H
17492 #include <dlfcn.h>
17493 #endif
17494
17495 #include <stdio.h>
17496
17497 #ifdef RTLD_GLOBAL
17498 # define LT_DLGLOBAL RTLD_GLOBAL
17499 #else
17500 # ifdef DL_GLOBAL
17501 # define LT_DLGLOBAL DL_GLOBAL
17502 # else
17503 # define LT_DLGLOBAL 0
17504 # endif
17505 #endif
17506
17507 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17508 find out it does not work in some platform. */
17509 #ifndef LT_DLLAZY_OR_NOW
17510 # ifdef RTLD_LAZY
17511 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17512 # else
17513 # ifdef DL_LAZY
17514 # define LT_DLLAZY_OR_NOW DL_LAZY
17515 # else
17516 # ifdef RTLD_NOW
17517 # define LT_DLLAZY_OR_NOW RTLD_NOW
17518 # else
17519 # ifdef DL_NOW
17520 # define LT_DLLAZY_OR_NOW DL_NOW
17521 # else
17522 # define LT_DLLAZY_OR_NOW 0
17523 # endif
17524 # endif
17525 # endif
17526 # endif
17527 #endif
17528
17529 /* When -fvisbility=hidden is used, assume the code has been annotated
17530 correspondingly for the symbols needed. */
17531 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17532 int fnord () __attribute__((visibility("default")));
17533 #endif
17534
17535 int fnord () { return 42; }
17536 int main ()
17537 {
17538 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17539 int status = $lt_dlunknown;
17540
17541 if (self)
17542 {
17543 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17544 else
17545 {
17546 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17547 else puts (dlerror ());
17548 }
17549 /* dlclose (self); */
17550 }
17551 else
17552 puts (dlerror ());
17553
17554 return status;
17555 }
17556 _LT_EOF
17557 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17558 (eval $ac_link) 2>&5
17559 ac_status=$?
17560 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17561 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17562 (./conftest; exit; ) >&5 2>/dev/null
17563 lt_status=$?
17564 case x$lt_status in
17565 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17566 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17567 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17568 esac
17569 else :
17570 # compilation failed
17571 lt_cv_dlopen_self_static=no
17572 fi
17573 fi
17574 rm -fr conftest*
17575
17576
17577 fi
17578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
17579 $as_echo "$lt_cv_dlopen_self_static" >&6; }
17580 fi
17581
17582 CPPFLAGS="$save_CPPFLAGS"
17583 LDFLAGS="$save_LDFLAGS"
17584 LIBS="$save_LIBS"
17585 ;;
17586 esac
17587
17588 case $lt_cv_dlopen_self in
17589 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17590 *) enable_dlopen_self=unknown ;;
17591 esac
17592
17593 case $lt_cv_dlopen_self_static in
17594 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17595 *) enable_dlopen_self_static=unknown ;;
17596 esac
17597 fi
17598
17599
17600
17601
17602
17603
17604
17605
17606
17607
17608
17609
17610
17611
17612
17613
17614
17615 striplib=
17616 old_striplib=
17617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
17618 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
17619 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
17620 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17621 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17623 $as_echo "yes" >&6; }
17624 else
17625 # FIXME - insert some real tests, host_os isn't really good enough
17626 case $host_os in
17627 darwin*)
17628 if test -n "$STRIP" ; then
17629 striplib="$STRIP -x"
17630 old_striplib="$STRIP -S"
17631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17632 $as_echo "yes" >&6; }
17633 else
17634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17635 $as_echo "no" >&6; }
17636 fi
17637 ;;
17638 *)
17639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17640 $as_echo "no" >&6; }
17641 ;;
17642 esac
17643 fi
17644
17645
17646
17647
17648
17649
17650
17651
17652
17653
17654
17655
17656 # Report which library types will actually be built
17657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
17658 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
17659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
17660 $as_echo "$can_build_shared" >&6; }
17661
17662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
17663 $as_echo_n "checking whether to build shared libraries... " >&6; }
17664 test "$can_build_shared" = "no" && enable_shared=no
17665
17666 # On AIX, shared libraries and static libraries use the same namespace, and
17667 # are all built from PIC.
17668 case $host_os in
17669 aix3*)
17670 test "$enable_shared" = yes && enable_static=no
17671 if test -n "$RANLIB"; then
17672 archive_cmds="$archive_cmds~\$RANLIB \$lib"
17673 postinstall_cmds='$RANLIB $lib'
17674 fi
17675 ;;
17676
17677 aix[4-9]*)
17678 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17679 test "$enable_shared" = yes && enable_static=no
17680 fi
17681 ;;
17682 esac
17683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
17684 $as_echo "$enable_shared" >&6; }
17685
17686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
17687 $as_echo_n "checking whether to build static libraries... " >&6; }
17688 # Make sure either enable_shared or enable_static is yes.
17689 test "$enable_shared" = yes || enable_static=yes
17690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
17691 $as_echo "$enable_static" >&6; }
17692
17693
17694
17695
17696 fi
17697 ac_ext=c
17698 ac_cpp='$CPP $CPPFLAGS'
17699 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17700 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17701 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17702
17703 CC="$lt_save_CC"
17704
17705
17706
17707
17708
17709
17710
17711
17712
17713
17714
17715
17716
17717
17718
17719 ac_config_commands="$ac_config_commands libtool"
17720
17721
17722
17723
17724 # Only expand once:
17725
17726
17727
17728
17729
17730 # Define a configure option for an alternate module directory
17731
17732 # Check whether --with-xorg-module-dir was given.
17733 if test "${with_xorg_module_dir+set}" = set; then :
17734 withval=$with_xorg_module_dir; moduledir="$withval"
17735 else
17736 moduledir="$libdir/xorg/modules"
17737 fi
17738
17739
17740 # Check whether --enable-dri was given.
17741 if test "${enable_dri+set}" = set; then :
17742 enableval=$enable_dri; DRI="$enableval"
17743 else
17744 DRI=auto
17745 fi
17746
17747
17748 # Check whether --enable-exa was given.
17749 if test "${enable_exa+set}" = set; then :
17750 enableval=$enable_exa; EXA="$enableval"
17751 else
17752 EXA=yes
17753 fi
17754
17755
17756 # Store the list of server defined optional extensions in REQUIRED_MODULES
17757
17758
17759 SAVE_CFLAGS="$CFLAGS"
17760 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
17761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17762 /* end confdefs.h. */
17763
17764 #include "xorg-server.h"
17765 #if !defined RANDR
17766 #error RANDR not defined
17767 #endif
17768
17769 int
17770 main ()
17771 {
17772
17773 ;
17774 return 0;
17775 }
17776 _ACEOF
17777 if ac_fn_c_try_compile "$LINENO"; then :
17778 _EXT_CHECK=yes
17779 else
17780 _EXT_CHECK=no
17781 fi
17782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17783 CFLAGS="$SAVE_CFLAGS"
17784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if RANDR is defined" >&5
17785 $as_echo_n "checking if RANDR is defined... " >&6; }
17786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
17787 $as_echo "$_EXT_CHECK" >&6; }
17788 if test "$_EXT_CHECK" != no; then
17789 REQUIRED_MODULES="$REQUIRED_MODULES randrproto"
17790 fi
17791
17792
17793
17794 SAVE_CFLAGS="$CFLAGS"
17795 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
17796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17797 /* end confdefs.h. */
17798
17799 #include "xorg-server.h"
17800 #if !defined RENDER
17801 #error RENDER not defined
17802 #endif
17803
17804 int
17805 main ()
17806 {
17807
17808 ;
17809 return 0;
17810 }
17811 _ACEOF
17812 if ac_fn_c_try_compile "$LINENO"; then :
17813 _EXT_CHECK=yes
17814 else
17815 _EXT_CHECK=no
17816 fi
17817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17818 CFLAGS="$SAVE_CFLAGS"
17819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if RENDER is defined" >&5
17820 $as_echo_n "checking if RENDER is defined... " >&6; }
17821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
17822 $as_echo "$_EXT_CHECK" >&6; }
17823 if test "$_EXT_CHECK" != no; then
17824 REQUIRED_MODULES="$REQUIRED_MODULES renderproto"
17825 fi
17826
17827
17828
17829 SAVE_CFLAGS="$CFLAGS"
17830 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
17831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17832 /* end confdefs.h. */
17833
17834 #include "xorg-server.h"
17835 #if !defined XV
17836 #error XV not defined
17837 #endif
17838
17839 int
17840 main ()
17841 {
17842
17843 ;
17844 return 0;
17845 }
17846 _ACEOF
17847 if ac_fn_c_try_compile "$LINENO"; then :
17848 _EXT_CHECK=yes
17849 else
17850 _EXT_CHECK=no
17851 fi
17852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17853 CFLAGS="$SAVE_CFLAGS"
17854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XV is defined" >&5
17855 $as_echo_n "checking if XV is defined... " >&6; }
17856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
17857 $as_echo "$_EXT_CHECK" >&6; }
17858 if test "$_EXT_CHECK" != no; then
17859 REQUIRED_MODULES="$REQUIRED_MODULES videoproto"
17860 fi
17861
17862
17863
17864 SAVE_CFLAGS="$CFLAGS"
17865 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
17866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17867 /* end confdefs.h. */
17868
17869 #include "xorg-server.h"
17870 #if !defined DPMSExtension
17871 #error DPMSExtension not defined
17872 #endif
17873
17874 int
17875 main ()
17876 {
17877
17878 ;
17879 return 0;
17880 }
17881 _ACEOF
17882 if ac_fn_c_try_compile "$LINENO"; then :
17883 _EXT_CHECK=yes
17884 else
17885 _EXT_CHECK=no
17886 fi
17887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17888 CFLAGS="$SAVE_CFLAGS"
17889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPMSExtension is defined" >&5
17890 $as_echo_n "checking if DPMSExtension is defined... " >&6; }
17891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
17892 $as_echo "$_EXT_CHECK" >&6; }
17893 if test "$_EXT_CHECK" != no; then
17894 REQUIRED_MODULES="$REQUIRED_MODULES xextproto"
17895 fi
17896
17897
17898 # Obtain compiler/linker options for the driver dependencies
17899
17900 pkg_failed=no
17901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XORG" >&5
17902 $as_echo_n "checking for XORG... " >&6; }
17903
17904 if test -n "$XORG_CFLAGS"; then
17905 pkg_cv_XORG_CFLAGS="$XORG_CFLAGS"
17906 elif test -n "$PKG_CONFIG"; then
17907 if test -n "$PKG_CONFIG" && \
17908 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.2 xproto fontsproto \$REQUIRED_MODULES\""; } >&5
17909 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.2 xproto fontsproto $REQUIRED_MODULES") 2>&5
17910 ac_status=$?
17911 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17912 test $ac_status = 0; }; then
17913 pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.2 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
17914 else
17915 pkg_failed=yes
17916 fi
17917 else
17918 pkg_failed=untried
17919 fi
17920 if test -n "$XORG_LIBS"; then
17921 pkg_cv_XORG_LIBS="$XORG_LIBS"
17922 elif test -n "$PKG_CONFIG"; then
17923 if test -n "$PKG_CONFIG" && \
17924 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.2 xproto fontsproto \$REQUIRED_MODULES\""; } >&5
17925 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.2 xproto fontsproto $REQUIRED_MODULES") 2>&5
17926 ac_status=$?
17927 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17928 test $ac_status = 0; }; then
17929 pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.2 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
17930 else
17931 pkg_failed=yes
17932 fi
17933 else
17934 pkg_failed=untried
17935 fi
17936
17937
17938
17939 if test $pkg_failed = yes; then
17940
17941 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17942 _pkg_short_errors_supported=yes
17943 else
17944 _pkg_short_errors_supported=no
17945 fi
17946 if test $_pkg_short_errors_supported = yes; then
17947 XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xorg-server >= 1.2 xproto fontsproto $REQUIRED_MODULES" 2>&1`
17948 else
17949 XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors "xorg-server >= 1.2 xproto fontsproto $REQUIRED_MODULES" 2>&1`
17950 fi
17951 # Put the nasty error message in config.log where it belongs
17952 echo "$XORG_PKG_ERRORS" >&5
17953
17954 as_fn_error $? "Package requirements (xorg-server >= 1.2 xproto fontsproto $REQUIRED_MODULES) were not met:
17955
17956 $XORG_PKG_ERRORS
17957
17958 Consider adjusting the PKG_CONFIG_PATH environment variable if you
17959 installed software in a non-standard prefix.
17960
17961 Alternatively, you may set the environment variables XORG_CFLAGS
17962 and XORG_LIBS to avoid the need to call pkg-config.
17963 See the pkg-config man page for more details.
17964 " "$LINENO" 5
17965 elif test $pkg_failed = untried; then
17966 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17967 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17968 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
17969 is in your PATH or set the PKG_CONFIG environment variable to the full
17970 path to pkg-config.
17971
17972 Alternatively, you may set the environment variables XORG_CFLAGS
17973 and XORG_LIBS to avoid the need to call pkg-config.
17974 See the pkg-config man page for more details.
17975
17976 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
17977 See \`config.log' for more details" "$LINENO" 5; }
17978 else
17979 XORG_CFLAGS=$pkg_cv_XORG_CFLAGS
17980 XORG_LIBS=$pkg_cv_XORG_LIBS
17981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17982 $as_echo "yes" >&6; }
17983 :
17984 fi
17985
17986 pkg_failed=no
17987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XEXT" >&5
17988 $as_echo_n "checking for XEXT... " >&6; }
17989
17990 if test -n "$XEXT_CFLAGS"; then
17991 pkg_cv_XEXT_CFLAGS="$XEXT_CFLAGS"
17992 elif test -n "$PKG_CONFIG"; then
17993 if test -n "$PKG_CONFIG" && \
17994 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xextproto >= 7.0.99.1\""; } >&5
17995 ($PKG_CONFIG --exists --print-errors "xextproto >= 7.0.99.1") 2>&5
17996 ac_status=$?
17997 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17998 test $ac_status = 0; }; then
17999 pkg_cv_XEXT_CFLAGS=`$PKG_CONFIG --cflags "xextproto >= 7.0.99.1" 2>/dev/null`
18000 else
18001 pkg_failed=yes
18002 fi
18003 else
18004 pkg_failed=untried
18005 fi
18006 if test -n "$XEXT_LIBS"; then
18007 pkg_cv_XEXT_LIBS="$XEXT_LIBS"
18008 elif test -n "$PKG_CONFIG"; then
18009 if test -n "$PKG_CONFIG" && \
18010 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xextproto >= 7.0.99.1\""; } >&5
18011 ($PKG_CONFIG --exists --print-errors "xextproto >= 7.0.99.1") 2>&5
18012 ac_status=$?
18013 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18014 test $ac_status = 0; }; then
18015 pkg_cv_XEXT_LIBS=`$PKG_CONFIG --libs "xextproto >= 7.0.99.1" 2>/dev/null`
18016 else
18017 pkg_failed=yes
18018 fi
18019 else
18020 pkg_failed=untried
18021 fi
18022
18023
18024
18025 if test $pkg_failed = yes; then
18026
18027 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18028 _pkg_short_errors_supported=yes
18029 else
18030 _pkg_short_errors_supported=no
18031 fi
18032 if test $_pkg_short_errors_supported = yes; then
18033 XEXT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xextproto >= 7.0.99.1" 2>&1`
18034 else
18035 XEXT_PKG_ERRORS=`$PKG_CONFIG --print-errors "xextproto >= 7.0.99.1" 2>&1`
18036 fi
18037 # Put the nasty error message in config.log where it belongs
18038 echo "$XEXT_PKG_ERRORS" >&5
18039
18040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18041 $as_echo "no" >&6; }
18042 HAVE_XEXTPROTO_71="no"
18043 elif test $pkg_failed = untried; then
18044 HAVE_XEXTPROTO_71="no"
18045 else
18046 XEXT_CFLAGS=$pkg_cv_XEXT_CFLAGS
18047 XEXT_LIBS=$pkg_cv_XEXT_LIBS
18048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18049 $as_echo "yes" >&6; }
18050 HAVE_XEXTPROTO_71="yes";
18051 $as_echo "#define HAVE_XEXTPROTO_71 1" >>confdefs.h
18052
18053 fi
18054 if test "$HAVE_XEXTPROTO_71" = "yes" ; then
18055 HAVE_XEXTPROTO_71_TRUE=
18056 HAVE_XEXTPROTO_71_FALSE='#'
18057 else
18058 HAVE_XEXTPROTO_71_TRUE='#'
18059 HAVE_XEXTPROTO_71_FALSE=
18060 fi
18061
18062 sdkdir=`$PKG_CONFIG --variable=sdkdir xorg-server`
18063
18064 # Checks for libraries.
18065
18066 if test "$DRI" != no; then
18067 as_ac_File=`$as_echo "ac_cv_file_${sdkdir}/dri.h" | $as_tr_sh`
18068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${sdkdir}/dri.h" >&5
18069 $as_echo_n "checking for ${sdkdir}/dri.h... " >&6; }
18070 if eval \${$as_ac_File+:} false; then :
18071 $as_echo_n "(cached) " >&6
18072 else
18073 test "$cross_compiling" = yes &&
18074 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
18075 if test -r "${sdkdir}/dri.h"; then
18076 eval "$as_ac_File=yes"
18077 else
18078 eval "$as_ac_File=no"
18079 fi
18080 fi
18081 eval ac_res=\$$as_ac_File
18082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18083 $as_echo "$ac_res" >&6; }
18084 if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
18085 have_dri_h="yes"
18086 else
18087 have_dri_h="no"
18088 fi
18089
18090 as_ac_File=`$as_echo "ac_cv_file_${sdkdir}/sarea.h" | $as_tr_sh`
18091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${sdkdir}/sarea.h" >&5
18092 $as_echo_n "checking for ${sdkdir}/sarea.h... " >&6; }
18093 if eval \${$as_ac_File+:} false; then :
18094 $as_echo_n "(cached) " >&6
18095 else
18096 test "$cross_compiling" = yes &&
18097 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
18098 if test -r "${sdkdir}/sarea.h"; then
18099 eval "$as_ac_File=yes"
18100 else
18101 eval "$as_ac_File=no"
18102 fi
18103 fi
18104 eval ac_res=\$$as_ac_File
18105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18106 $as_echo "$ac_res" >&6; }
18107 if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
18108 have_sarea_h="yes"
18109 else
18110 have_sarea_h="no"
18111 fi
18112
18113 as_ac_File=`$as_echo "ac_cv_file_${sdkdir}/dristruct.h" | $as_tr_sh`
18114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${sdkdir}/dristruct.h" >&5
18115 $as_echo_n "checking for ${sdkdir}/dristruct.h... " >&6; }
18116 if eval \${$as_ac_File+:} false; then :
18117 $as_echo_n "(cached) " >&6
18118 else
18119 test "$cross_compiling" = yes &&
18120 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
18121 if test -r "${sdkdir}/dristruct.h"; then
18122 eval "$as_ac_File=yes"
18123 else
18124 eval "$as_ac_File=no"
18125 fi
18126 fi
18127 eval ac_res=\$$as_ac_File
18128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18129 $as_echo "$ac_res" >&6; }
18130 if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
18131 have_dristruct_h="yes"
18132 else
18133 have_dristruct_h="no"
18134 fi
18135
18136 as_ac_File=`$as_echo "ac_cv_file_${sdkdir}/damage.h" | $as_tr_sh`
18137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${sdkdir}/damage.h" >&5
18138 $as_echo_n "checking for ${sdkdir}/damage.h... " >&6; }
18139 if eval \${$as_ac_File+:} false; then :
18140 $as_echo_n "(cached) " >&6
18141 else
18142 test "$cross_compiling" = yes &&
18143 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
18144 if test -r "${sdkdir}/damage.h"; then
18145 eval "$as_ac_File=yes"
18146 else
18147 eval "$as_ac_File=no"
18148 fi
18149 fi
18150 eval ac_res=\$$as_ac_File
18151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18152 $as_echo "$ac_res" >&6; }
18153 if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
18154 have_damage_h="yes"
18155 else
18156 have_damage_h="no"
18157 fi
18158
18159 fi
18160
18161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include DRI support" >&5
18162 $as_echo_n "checking whether to include DRI support... " >&6; }
18163 if test x$DRI = xauto; then
18164 if test "$have_dri_h" = yes -a \
18165 "$have_sarea_h" = yes -a \
18166 "$have_dristruct_h" = yes; then
18167 DRI="yes"
18168 else
18169 DRI="no"
18170 fi
18171 fi
18172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DRI" >&5
18173 $as_echo "$DRI" >&6; }
18174
18175 if test x$DRI = xyes; then
18176 DRI_TRUE=
18177 DRI_FALSE='#'
18178 else
18179 DRI_TRUE='#'
18180 DRI_FALSE=
18181 fi
18182
18183 if test "$DRI" = yes; then
18184
18185 pkg_failed=no
18186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DRI" >&5
18187 $as_echo_n "checking for DRI... " >&6; }
18188
18189 if test -n "$DRI_CFLAGS"; then
18190 pkg_cv_DRI_CFLAGS="$DRI_CFLAGS"
18191 elif test -n "$PKG_CONFIG"; then
18192 if test -n "$PKG_CONFIG" && \
18193 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 2.2 xf86driproto\""; } >&5
18194 ($PKG_CONFIG --exists --print-errors "libdrm >= 2.2 xf86driproto") 2>&5
18195 ac_status=$?
18196 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18197 test $ac_status = 0; }; then
18198 pkg_cv_DRI_CFLAGS=`$PKG_CONFIG --cflags "libdrm >= 2.2 xf86driproto" 2>/dev/null`
18199 else
18200 pkg_failed=yes
18201 fi
18202 else
18203 pkg_failed=untried
18204 fi
18205 if test -n "$DRI_LIBS"; then
18206 pkg_cv_DRI_LIBS="$DRI_LIBS"
18207 elif test -n "$PKG_CONFIG"; then
18208 if test -n "$PKG_CONFIG" && \
18209 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 2.2 xf86driproto\""; } >&5
18210 ($PKG_CONFIG --exists --print-errors "libdrm >= 2.2 xf86driproto") 2>&5
18211 ac_status=$?
18212 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18213 test $ac_status = 0; }; then
18214 pkg_cv_DRI_LIBS=`$PKG_CONFIG --libs "libdrm >= 2.2 xf86driproto" 2>/dev/null`
18215 else
18216 pkg_failed=yes
18217 fi
18218 else
18219 pkg_failed=untried
18220 fi
18221
18222
18223
18224 if test $pkg_failed = yes; then
18225
18226 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18227 _pkg_short_errors_supported=yes
18228 else
18229 _pkg_short_errors_supported=no
18230 fi
18231 if test $_pkg_short_errors_supported = yes; then
18232 DRI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libdrm >= 2.2 xf86driproto" 2>&1`
18233 else
18234 DRI_PKG_ERRORS=`$PKG_CONFIG --print-errors "libdrm >= 2.2 xf86driproto" 2>&1`
18235 fi
18236 # Put the nasty error message in config.log where it belongs
18237 echo "$DRI_PKG_ERRORS" >&5
18238
18239 as_fn_error $? "Package requirements (libdrm >= 2.2 xf86driproto) were not met:
18240
18241 $DRI_PKG_ERRORS
18242
18243 Consider adjusting the PKG_CONFIG_PATH environment variable if you
18244 installed software in a non-standard prefix.
18245
18246 Alternatively, you may set the environment variables DRI_CFLAGS
18247 and DRI_LIBS to avoid the need to call pkg-config.
18248 See the pkg-config man page for more details.
18249 " "$LINENO" 5
18250 elif test $pkg_failed = untried; then
18251 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18252 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18253 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
18254 is in your PATH or set the PKG_CONFIG environment variable to the full
18255 path to pkg-config.
18256
18257 Alternatively, you may set the environment variables DRI_CFLAGS
18258 and DRI_LIBS to avoid the need to call pkg-config.
18259 See the pkg-config man page for more details.
18260
18261 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18262 See \`config.log' for more details" "$LINENO" 5; }
18263 else
18264 DRI_CFLAGS=$pkg_cv_DRI_CFLAGS
18265 DRI_LIBS=$pkg_cv_DRI_LIBS
18266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18267 $as_echo "yes" >&6; }
18268 :
18269 fi
18270
18271 $as_echo "#define XF86DRI 1" >>confdefs.h
18272
18273
18274 $as_echo "#define XF86DRI_DEVEL 1" >>confdefs.h
18275
18276 fi
18277
18278 # Note that this is sort of inverted from drivers/ati/Imakefile in
18279 # the monolith. We test for foo, not for !foo (i.e. ATMISC_CPIO, not
18280 # ATIMISC_AVOID_CPIO), but the defines are negative. So beware. Oh yeah,
18281 # TV_OUT is the special case where it's a positive define, not AVOID_TV_OUT.
18282
18283 # AVOID_CPIO: Only x86, amd64, and alpha are cool with CPIO. It needs a
18284 # little-endian, undirected PIO space of at least 64kB.
18285 # AVOID_DGA: ???
18286 # ATI_TV_OUT: This only works on x86.
18287
18288 ATIMISC_CPIO=no
18289 ATIMISC_DGA=yes
18290 ATIMISC_TV_OUT=no
18291
18292 case $host_cpu in
18293 i*86)
18294 ATIMISC_TV_OUT=yes
18295 ATIMISC_CPIO=yes
18296 ;;
18297 x86_64|amd64|alpha|ia64)
18298 ATIMISC_CPIO=yes
18299 ;;
18300 sparc)
18301 ATIMISC_DGA=no
18302 ;;
18303 *)
18304 ;;
18305 esac
18306
18307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include PIO support" >&5
18308 $as_echo_n "checking whether to include PIO support... " >&6; }
18309 if test "x$ATIMISC_CPIO" = xyes; then
18310 ATIMISC_CPIO_TRUE=
18311 ATIMISC_CPIO_FALSE='#'
18312 else
18313 ATIMISC_CPIO_TRUE='#'
18314 ATIMISC_CPIO_FALSE=
18315 fi
18316
18317 if test "x$ATIMISC_CPIO" = xyes; then
18318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, PIO" >&5
18319 $as_echo "yes, PIO" >&6; }
18320 else
18321
18322 $as_echo "#define AVOID_CPIO 1" >>confdefs.h
18323
18324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, MMIO" >&5
18325 $as_echo "no, MMIO" >&6; }
18326 fi
18327
18328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include DGA support" >&5
18329 $as_echo_n "checking whether to include DGA support... " >&6; }
18330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ATIMISC_DGA" >&5
18331 $as_echo "$ATIMISC_DGA" >&6; }
18332 if test "x$ATIMISC_DGA" = xyes; then
18333 ATIMISC_DGA_TRUE=
18334 ATIMISC_DGA_FALSE='#'
18335 else
18336 ATIMISC_DGA_TRUE='#'
18337 ATIMISC_DGA_FALSE=
18338 fi
18339
18340 if ! test "x$ATIMISC_DGA" = xyes; then
18341
18342 $as_echo "#define AVOID_DGA 1" >>confdefs.h
18343
18344 fi
18345
18346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include TV Out support" >&5
18347 $as_echo_n "checking whether to include TV Out support... " >&6; }
18348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ATIMISC_TV_OUT" >&5
18349 $as_echo "$ATIMISC_TV_OUT" >&6; }
18350 if test "x$ATIMISC_TV_OUT" = xyes; then
18351 ATIMISC_TV_OUT_TRUE=
18352 ATIMISC_TV_OUT_FALSE='#'
18353 else
18354 ATIMISC_TV_OUT_TRUE='#'
18355 ATIMISC_TV_OUT_FALSE=
18356 fi
18357
18358 if test "x$ATIMISC_TV_OUT" = xyes; then
18359
18360 $as_echo "#define TV_OUT 1" >>confdefs.h
18361
18362 fi
18363
18364 # Properly handle EXA.
18365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable EXA support" >&5
18366 $as_echo_n "checking whether to enable EXA support... " >&6; }
18367 if test "x$EXA" = xyes; then
18368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18369 $as_echo "yes" >&6; }
18370
18371 SAVE_CPPFLAGS="$CPPFLAGS"
18372 CPPFLAGS="$CPPFLAGS $XORG_CFLAGS"
18373 ac_fn_c_check_header_mongrel "$LINENO" "exa.h" "ac_cv_header_exa_h" "$ac_includes_default"
18374 if test "x$ac_cv_header_exa_h" = xyes; then :
18375 have_exa_h="yes"
18376 else
18377 have_exa_h="no"
18378 fi
18379
18380
18381 CPPFLAGS="$SAVE_CPPFLAGS"
18382 else
18383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18384 $as_echo "no" >&6; }
18385 fi
18386
18387 SAVE_CPPFLAGS="$CPPFLAGS"
18388 CPPFLAGS="$CPPFLAGS $XORG_CFLAGS"
18389 if test "x$have_exa_h" = xyes; then
18390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether EXA version is at least 2.0.0" >&5
18391 $as_echo_n "checking whether EXA version is at least 2.0.0... " >&6; }
18392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18393 /* end confdefs.h. */
18394
18395 #include "exa.h"
18396 #if EXA_VERSION_MAJOR < 2
18397 #error OLD EXA!
18398 #endif
18399
18400 int
18401 main ()
18402 {
18403
18404 ;
18405 return 0;
18406 }
18407 _ACEOF
18408 if ac_fn_c_try_cpp "$LINENO"; then :
18409 USE_EXA=yes
18410 else
18411 USE_EXA=no
18412 fi
18413 rm -f conftest.err conftest.i conftest.$ac_ext
18414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_EXA" >&5
18415 $as_echo "$USE_EXA" >&6; }
18416
18417 if test "x$USE_EXA" = xyes; then
18418
18419 $as_echo "#define USE_EXA 1" >>confdefs.h
18420
18421 fi
18422 fi
18423
18424 # Check whether --enable-xaa was given.
18425 if test "${enable_xaa+set}" = set; then :
18426 enableval=$enable_xaa; XAA="$enableval"
18427 else
18428 XAA=auto
18429 fi
18430
18431 if test "x$XAA" != xno; then
18432 save_CFLAGS=$CFLAGS
18433 save_CPPFLAGS=$CPPFLAGS
18434 CFLAGS=$XORG_CFLAGS
18435 CPPFLAGS="$XORG_CFLAGS"
18436 for ac_header in xaa.h
18437 do :
18438 ac_fn_c_check_header_mongrel "$LINENO" "xaa.h" "ac_cv_header_xaa_h" "$ac_includes_default"
18439 if test "x$ac_cv_header_xaa_h" = xyes; then :
18440 cat >>confdefs.h <<_ACEOF
18441 #define HAVE_XAA_H 1
18442 _ACEOF
18443 XAA=yes
18444 else
18445 XAA=no
18446 fi
18447
18448 done
18449
18450 CFLAGS=$save_CFLAGS
18451 CPPFLAGS=$save_CPPFLAGS
18452 fi
18453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include XAA support" >&5
18454 $as_echo_n "checking whether to include XAA support... " >&6; }
18455 if test "x$XAA" = xyes; then
18456 XAA_TRUE=
18457 XAA_FALSE='#'
18458 else
18459 XAA_TRUE='#'
18460 XAA_FALSE=
18461 fi
18462
18463 if test "x$XAA" = xyes; then
18464
18465 $as_echo "#define USE_XAA test \"x\$XAA\" = xyes" >>confdefs.h
18466
18467 fi
18468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XAA" >&5
18469 $as_echo "$XAA" >&6; }
18470
18471 ac_fn_c_check_decl "$LINENO" "XSERVER_LIBPCIACCESS" "ac_cv_have_decl_XSERVER_LIBPCIACCESS" "#include \"xorg-server.h\"
18472 "
18473 if test "x$ac_cv_have_decl_XSERVER_LIBPCIACCESS" = xyes; then :
18474 XSERVER_LIBPCIACCESS=yes
18475 else
18476 XSERVER_LIBPCIACCESS=no
18477 fi
18478
18479
18480 CPPFLAGS="$SAVE_CPPFLAGS"
18481
18482 if test "x$USE_EXA" = xyes; then
18483 USE_EXA_TRUE=
18484 USE_EXA_FALSE='#'
18485 else
18486 USE_EXA_TRUE='#'
18487 USE_EXA_FALSE=
18488 fi
18489
18490
18491 if test "x$XSERVER_LIBPCIACCESS" = xyes; then
18492
18493 pkg_failed=no
18494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCIACCESS" >&5
18495 $as_echo_n "checking for PCIACCESS... " >&6; }
18496
18497 if test -n "$PCIACCESS_CFLAGS"; then
18498 pkg_cv_PCIACCESS_CFLAGS="$PCIACCESS_CFLAGS"
18499 elif test -n "$PKG_CONFIG"; then
18500 if test -n "$PKG_CONFIG" && \
18501 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.12.901\""; } >&5
18502 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.12.901") 2>&5
18503 ac_status=$?
18504 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18505 test $ac_status = 0; }; then
18506 pkg_cv_PCIACCESS_CFLAGS=`$PKG_CONFIG --cflags "pciaccess >= 0.12.901" 2>/dev/null`
18507 else
18508 pkg_failed=yes
18509 fi
18510 else
18511 pkg_failed=untried
18512 fi
18513 if test -n "$PCIACCESS_LIBS"; then
18514 pkg_cv_PCIACCESS_LIBS="$PCIACCESS_LIBS"
18515 elif test -n "$PKG_CONFIG"; then
18516 if test -n "$PKG_CONFIG" && \
18517 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.12.901\""; } >&5
18518 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.12.901") 2>&5
18519 ac_status=$?
18520 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18521 test $ac_status = 0; }; then
18522 pkg_cv_PCIACCESS_LIBS=`$PKG_CONFIG --libs "pciaccess >= 0.12.901" 2>/dev/null`
18523 else
18524 pkg_failed=yes
18525 fi
18526 else
18527 pkg_failed=untried
18528 fi
18529
18530
18531
18532 if test $pkg_failed = yes; then
18533
18534 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18535 _pkg_short_errors_supported=yes
18536 else
18537 _pkg_short_errors_supported=no
18538 fi
18539 if test $_pkg_short_errors_supported = yes; then
18540 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pciaccess >= 0.12.901" 2>&1`
18541 else
18542 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --print-errors "pciaccess >= 0.12.901" 2>&1`
18543 fi
18544 # Put the nasty error message in config.log where it belongs
18545 echo "$PCIACCESS_PKG_ERRORS" >&5
18546
18547 as_fn_error $? "Package requirements (pciaccess >= 0.12.901) were not met:
18548
18549 $PCIACCESS_PKG_ERRORS
18550
18551 Consider adjusting the PKG_CONFIG_PATH environment variable if you
18552 installed software in a non-standard prefix.
18553
18554 Alternatively, you may set the environment variables PCIACCESS_CFLAGS
18555 and PCIACCESS_LIBS to avoid the need to call pkg-config.
18556 See the pkg-config man page for more details.
18557 " "$LINENO" 5
18558 elif test $pkg_failed = untried; then
18559 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18560 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18561 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
18562 is in your PATH or set the PKG_CONFIG environment variable to the full
18563 path to pkg-config.
18564
18565 Alternatively, you may set the environment variables PCIACCESS_CFLAGS
18566 and PCIACCESS_LIBS to avoid the need to call pkg-config.
18567 See the pkg-config man page for more details.
18568
18569 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18570 See \`config.log' for more details" "$LINENO" 5; }
18571 else
18572 PCIACCESS_CFLAGS=$pkg_cv_PCIACCESS_CFLAGS
18573 PCIACCESS_LIBS=$pkg_cv_PCIACCESS_LIBS
18574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18575 $as_echo "yes" >&6; }
18576 :
18577 fi
18578 XORG_CFLAGS="$XORG_CFLAGS $PCIACCESS_CFLAGS"
18579 fi
18580 if test "x$XSERVER_LIBPCIACCESS" = xyes; then
18581 XSERVER_LIBPCIACCESS_TRUE=
18582 XSERVER_LIBPCIACCESS_FALSE='#'
18583 else
18584 XSERVER_LIBPCIACCESS_TRUE='#'
18585 XSERVER_LIBPCIACCESS_FALSE=
18586 fi
18587
18588
18589
18590
18591 DRIVER_NAME=mach64
18592
18593
18594 { $as_echo "$as_me:${as_lineno-$LINENO}: Please change the Driver line in xorg.conf from \"ati\" to \"mach64\"
18595 or install the ati wrapper as well:
18596 git://anongit.freedesktop.org/git/xorg/driver/xf86-video-ati
18597 " >&5
18598 $as_echo "$as_me: Please change the Driver line in xorg.conf from \"ati\" to \"mach64\"
18599 or install the ati wrapper as well:
18600 git://anongit.freedesktop.org/git/xorg/driver/xf86-video-ati
18601 " >&6;}
18602
18603 ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile"
18604
18605 cat >confcache <<\_ACEOF
18606 # This file is a shell script that caches the results of configure
18607 # tests run on this system so they can be shared between configure
18608 # scripts and configure runs, see configure's option --config-cache.
18609 # It is not useful on other systems. If it contains results you don't
18610 # want to keep, you may remove or edit it.
18611 #
18612 # config.status only pays attention to the cache file if you give it
18613 # the --recheck option to rerun configure.
18614 #
18615 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18616 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18617 # following values.
18618
18619 _ACEOF
18620
18621 # The following way of writing the cache mishandles newlines in values,
18622 # but we know of no workaround that is simple, portable, and efficient.
18623 # So, we kill variables containing newlines.
18624 # Ultrix sh set writes to stderr and can't be redirected directly,
18625 # and sets the high bit in the cache file unless we assign to the vars.
18626 (
18627 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18628 eval ac_val=\$$ac_var
18629 case $ac_val in #(
18630 *${as_nl}*)
18631 case $ac_var in #(
18632 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18633 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18634 esac
18635 case $ac_var in #(
18636 _ | IFS | as_nl) ;; #(
18637 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18638 *) { eval $ac_var=; unset $ac_var;} ;;
18639 esac ;;
18640 esac
18641 done
18642
18643 (set) 2>&1 |
18644 case $as_nl`(ac_space=' '; set) 2>&1` in #(
18645 *${as_nl}ac_space=\ *)
18646 # `set' does not quote correctly, so add quotes: double-quote
18647 # substitution turns \\\\ into \\, and sed turns \\ into \.
18648 sed -n \
18649 "s/'/'\\\\''/g;
18650 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18651 ;; #(
18652 *)
18653 # `set' quotes correctly as required by POSIX, so do not add quotes.
18654 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18655 ;;
18656 esac |
18657 sort
18658 ) |
18659 sed '
18660 /^ac_cv_env_/b end
18661 t clear
18662 :clear
18663 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18664 t end
18665 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18666 :end' >>confcache
18667 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18668 if test -w "$cache_file"; then
18669 if test "x$cache_file" != "x/dev/null"; then
18670 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18671 $as_echo "$as_me: updating cache $cache_file" >&6;}
18672 if test ! -f "$cache_file" || test -h "$cache_file"; then
18673 cat confcache >"$cache_file"
18674 else
18675 case $cache_file in #(
18676 */* | ?:*)
18677 mv -f confcache "$cache_file"$$ &&
18678 mv -f "$cache_file"$$ "$cache_file" ;; #(
18679 *)
18680 mv -f confcache "$cache_file" ;;
18681 esac
18682 fi
18683 fi
18684 else
18685 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18686 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18687 fi
18688 fi
18689 rm -f confcache
18690
18691 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18692 # Let make expand exec_prefix.
18693 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18694
18695 DEFS=-DHAVE_CONFIG_H
18696
18697 ac_libobjs=
18698 ac_ltlibobjs=
18699 U=
18700 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18701 # 1. Remove the extension, and $U if already installed.
18702 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18703 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18704 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
18705 # will be set to the directory where LIBOBJS objects are built.
18706 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18707 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18708 done
18709 LIBOBJS=$ac_libobjs
18710
18711 LTLIBOBJS=$ac_ltlibobjs
18712
18713
18714 if test -n "$EXEEXT"; then
18715 am__EXEEXT_TRUE=
18716 am__EXEEXT_FALSE='#'
18717 else
18718 am__EXEEXT_TRUE='#'
18719 am__EXEEXT_FALSE=
18720 fi
18721
18722 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
18723 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
18724 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18725 fi
18726 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
18727 as_fn_error $? "conditional \"AMDEP\" was never defined.
18728 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18729 fi
18730 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18731 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
18732 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18733 fi
18734 if test -z "${HAVE_XEXTPROTO_71_TRUE}" && test -z "${HAVE_XEXTPROTO_71_FALSE}"; then
18735 as_fn_error $? "conditional \"HAVE_XEXTPROTO_71\" was never defined.
18736 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18737 fi
18738 if test -z "${DRI_TRUE}" && test -z "${DRI_FALSE}"; then
18739 as_fn_error $? "conditional \"DRI\" was never defined.
18740 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18741 fi
18742 if test -z "${ATIMISC_CPIO_TRUE}" && test -z "${ATIMISC_CPIO_FALSE}"; then
18743 as_fn_error $? "conditional \"ATIMISC_CPIO\" was never defined.
18744 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18745 fi
18746 if test -z "${ATIMISC_DGA_TRUE}" && test -z "${ATIMISC_DGA_FALSE}"; then
18747 as_fn_error $? "conditional \"ATIMISC_DGA\" was never defined.
18748 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18749 fi
18750 if test -z "${ATIMISC_TV_OUT_TRUE}" && test -z "${ATIMISC_TV_OUT_FALSE}"; then
18751 as_fn_error $? "conditional \"ATIMISC_TV_OUT\" was never defined.
18752 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18753 fi
18754 if test -z "${XAA_TRUE}" && test -z "${XAA_FALSE}"; then
18755 as_fn_error $? "conditional \"XAA\" was never defined.
18756 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18757 fi
18758 if test -z "${USE_EXA_TRUE}" && test -z "${USE_EXA_FALSE}"; then
18759 as_fn_error $? "conditional \"USE_EXA\" was never defined.
18760 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18761 fi
18762 if test -z "${XSERVER_LIBPCIACCESS_TRUE}" && test -z "${XSERVER_LIBPCIACCESS_FALSE}"; then
18763 as_fn_error $? "conditional \"XSERVER_LIBPCIACCESS\" was never defined.
18764 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18765 fi
18766
18767 : "${CONFIG_STATUS=./config.status}"
18768 ac_write_fail=0
18769 ac_clean_files_save=$ac_clean_files
18770 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18771 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18772 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18773 as_write_fail=0
18774 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18775 #! $SHELL
18776 # Generated by $as_me.
18777 # Run this file to recreate the current configuration.
18778 # Compiler output produced by configure, useful for debugging
18779 # configure, is in config.log if it exists.
18780
18781 debug=false
18782 ac_cs_recheck=false
18783 ac_cs_silent=false
18784
18785 SHELL=\${CONFIG_SHELL-$SHELL}
18786 export SHELL
18787 _ASEOF
18788 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18789 ## -------------------- ##
18790 ## M4sh Initialization. ##
18791 ## -------------------- ##
18792
18793 # Be more Bourne compatible
18794 DUALCASE=1; export DUALCASE # for MKS sh
18795 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18796 emulate sh
18797 NULLCMD=:
18798 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18799 # is contrary to our usage. Disable this feature.
18800 alias -g '${1+"$@"}'='"$@"'
18801 setopt NO_GLOB_SUBST
18802 else
18803 case `(set -o) 2>/dev/null` in #(
18804 *posix*) :
18805 set -o posix ;; #(
18806 *) :
18807 ;;
18808 esac
18809 fi
18810
18811
18812 as_nl='
18813 '
18814 export as_nl
18815 # Printing a long string crashes Solaris 7 /usr/bin/printf.
18816 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18817 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18818 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18819 # Prefer a ksh shell builtin over an external printf program on Solaris,
18820 # but without wasting forks for bash or zsh.
18821 if test -z "$BASH_VERSION$ZSH_VERSION" \
18822 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18823 as_echo='print -r --'
18824 as_echo_n='print -rn --'
18825 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18826 as_echo='printf %s\n'
18827 as_echo_n='printf %s'
18828 else
18829 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18830 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18831 as_echo_n='/usr/ucb/echo -n'
18832 else
18833 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18834 as_echo_n_body='eval
18835 arg=$1;
18836 case $arg in #(
18837 *"$as_nl"*)
18838 expr "X$arg" : "X\\(.*\\)$as_nl";
18839 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18840 esac;
18841 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18842 '
18843 export as_echo_n_body
18844 as_echo_n='sh -c $as_echo_n_body as_echo'
18845 fi
18846 export as_echo_body
18847 as_echo='sh -c $as_echo_body as_echo'
18848 fi
18849
18850 # The user is always right.
18851 if test "${PATH_SEPARATOR+set}" != set; then
18852 PATH_SEPARATOR=:
18853 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18854 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18855 PATH_SEPARATOR=';'
18856 }
18857 fi
18858
18859
18860 # IFS
18861 # We need space, tab and new line, in precisely that order. Quoting is
18862 # there to prevent editors from complaining about space-tab.
18863 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
18864 # splitting by setting IFS to empty value.)
18865 IFS=" "" $as_nl"
18866
18867 # Find who we are. Look in the path if we contain no directory separator.
18868 as_myself=
18869 case $0 in #((
18870 *[\\/]* ) as_myself=$0 ;;
18871 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18872 for as_dir in $PATH
18873 do
18874 IFS=$as_save_IFS
18875 test -z "$as_dir" && as_dir=.
18876 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18877 done
18878 IFS=$as_save_IFS
18879
18880 ;;
18881 esac
18882 # We did not find ourselves, most probably we were run as `sh COMMAND'
18883 # in which case we are not to be found in the path.
18884 if test "x$as_myself" = x; then
18885 as_myself=$0
18886 fi
18887 if test ! -f "$as_myself"; then
18888 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18889 exit 1
18890 fi
18891
18892 # Unset variables that we do not need and which cause bugs (e.g. in
18893 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
18894 # suppresses any "Segmentation fault" message there. '((' could
18895 # trigger a bug in pdksh 5.2.14.
18896 for as_var in BASH_ENV ENV MAIL MAILPATH
18897 do eval test x\${$as_var+set} = xset \
18898 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18899 done
18900 PS1='$ '
18901 PS2='> '
18902 PS4='+ '
18903
18904 # NLS nuisances.
18905 LC_ALL=C
18906 export LC_ALL
18907 LANGUAGE=C
18908 export LANGUAGE
18909
18910 # CDPATH.
18911 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18912
18913
18914 # as_fn_error STATUS ERROR [LINENO LOG_FD]
18915 # ----------------------------------------
18916 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18917 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18918 # script with STATUS, using 1 if that was 0.
18919 as_fn_error ()
18920 {
18921 as_status=$1; test $as_status -eq 0 && as_status=1
18922 if test "$4"; then
18923 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18924 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
18925 fi
18926 $as_echo "$as_me: error: $2" >&2
18927 as_fn_exit $as_status
18928 } # as_fn_error
18929
18930
18931 # as_fn_set_status STATUS
18932 # -----------------------
18933 # Set $? to STATUS, without forking.
18934 as_fn_set_status ()
18935 {
18936 return $1
18937 } # as_fn_set_status
18938
18939 # as_fn_exit STATUS
18940 # -----------------
18941 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18942 as_fn_exit ()
18943 {
18944 set +e
18945 as_fn_set_status $1
18946 exit $1
18947 } # as_fn_exit
18948
18949 # as_fn_unset VAR
18950 # ---------------
18951 # Portably unset VAR.
18952 as_fn_unset ()
18953 {
18954 { eval $1=; unset $1;}
18955 }
18956 as_unset=as_fn_unset
18957 # as_fn_append VAR VALUE
18958 # ----------------------
18959 # Append the text in VALUE to the end of the definition contained in VAR. Take
18960 # advantage of any shell optimizations that allow amortized linear growth over
18961 # repeated appends, instead of the typical quadratic growth present in naive
18962 # implementations.
18963 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
18964 eval 'as_fn_append ()
18965 {
18966 eval $1+=\$2
18967 }'
18968 else
18969 as_fn_append ()
18970 {
18971 eval $1=\$$1\$2
18972 }
18973 fi # as_fn_append
18974
18975 # as_fn_arith ARG...
18976 # ------------------
18977 # Perform arithmetic evaluation on the ARGs, and store the result in the
18978 # global $as_val. Take advantage of shells that can avoid forks. The arguments
18979 # must be portable across $(()) and expr.
18980 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
18981 eval 'as_fn_arith ()
18982 {
18983 as_val=$(( $* ))
18984 }'
18985 else
18986 as_fn_arith ()
18987 {
18988 as_val=`expr "$@" || test $? -eq 1`
18989 }
18990 fi # as_fn_arith
18991
18992
18993 if expr a : '\(a\)' >/dev/null 2>&1 &&
18994 test "X`expr 00001 : '.*\(...\)'`" = X001; then
18995 as_expr=expr
18996 else
18997 as_expr=false
18998 fi
18999
19000 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19001 as_basename=basename
19002 else
19003 as_basename=false
19004 fi
19005
19006 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19007 as_dirname=dirname
19008 else
19009 as_dirname=false
19010 fi
19011
19012 as_me=`$as_basename -- "$0" ||
19013 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19014 X"$0" : 'X\(//\)$' \| \
19015 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19016 $as_echo X/"$0" |
19017 sed '/^.*\/\([^/][^/]*\)\/*$/{
19018 s//\1/
19019 q
19020 }
19021 /^X\/\(\/\/\)$/{
19022 s//\1/
19023 q
19024 }
19025 /^X\/\(\/\).*/{
19026 s//\1/
19027 q
19028 }
19029 s/.*/./; q'`
19030
19031 # Avoid depending upon Character Ranges.
19032 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19033 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19034 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19035 as_cr_digits='0123456789'
19036 as_cr_alnum=$as_cr_Letters$as_cr_digits
19037
19038 ECHO_C= ECHO_N= ECHO_T=
19039 case `echo -n x` in #(((((
19040 -n*)
19041 case `echo 'xy\c'` in
19042 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
19043 xy) ECHO_C='\c';;
19044 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
19045 ECHO_T=' ';;
19046 esac;;
19047 *)
19048 ECHO_N='-n';;
19049 esac
19050
19051 rm -f conf$$ conf$$.exe conf$$.file
19052 if test -d conf$$.dir; then
19053 rm -f conf$$.dir/conf$$.file
19054 else
19055 rm -f conf$$.dir
19056 mkdir conf$$.dir 2>/dev/null
19057 fi
19058 if (echo >conf$$.file) 2>/dev/null; then
19059 if ln -s conf$$.file conf$$ 2>/dev/null; then
19060 as_ln_s='ln -s'
19061 # ... but there are two gotchas:
19062 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19063 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19064 # In both cases, we have to default to `cp -p'.
19065 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19066 as_ln_s='cp -p'
19067 elif ln conf$$.file conf$$ 2>/dev/null; then
19068 as_ln_s=ln
19069 else
19070 as_ln_s='cp -p'
19071 fi
19072 else
19073 as_ln_s='cp -p'
19074 fi
19075 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19076 rmdir conf$$.dir 2>/dev/null
19077
19078
19079 # as_fn_mkdir_p
19080 # -------------
19081 # Create "$as_dir" as a directory, including parents if necessary.
19082 as_fn_mkdir_p ()
19083 {
19084
19085 case $as_dir in #(
19086 -*) as_dir=./$as_dir;;
19087 esac
19088 test -d "$as_dir" || eval $as_mkdir_p || {
19089 as_dirs=
19090 while :; do
19091 case $as_dir in #(
19092 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19093 *) as_qdir=$as_dir;;
19094 esac
19095 as_dirs="'$as_qdir' $as_dirs"
19096 as_dir=`$as_dirname -- "$as_dir" ||
19097 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19098 X"$as_dir" : 'X\(//\)[^/]' \| \
19099 X"$as_dir" : 'X\(//\)$' \| \
19100 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19101 $as_echo X"$as_dir" |
19102 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19103 s//\1/
19104 q
19105 }
19106 /^X\(\/\/\)[^/].*/{
19107 s//\1/
19108 q
19109 }
19110 /^X\(\/\/\)$/{
19111 s//\1/
19112 q
19113 }
19114 /^X\(\/\).*/{
19115 s//\1/
19116 q
19117 }
19118 s/.*/./; q'`
19119 test -d "$as_dir" && break
19120 done
19121 test -z "$as_dirs" || eval "mkdir $as_dirs"
19122 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
19123
19124
19125 } # as_fn_mkdir_p
19126 if mkdir -p . 2>/dev/null; then
19127 as_mkdir_p='mkdir -p "$as_dir"'
19128 else
19129 test -d ./-p && rmdir ./-p
19130 as_mkdir_p=false
19131 fi
19132
19133 if test -x / >/dev/null 2>&1; then
19134 as_test_x='test -x'
19135 else
19136 if ls -dL / >/dev/null 2>&1; then
19137 as_ls_L_option=L
19138 else
19139 as_ls_L_option=
19140 fi
19141 as_test_x='
19142 eval sh -c '\''
19143 if test -d "$1"; then
19144 test -d "$1/.";
19145 else
19146 case $1 in #(
19147 -*)set "./$1";;
19148 esac;
19149 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
19150 ???[sx]*):;;*)false;;esac;fi
19151 '\'' sh
19152 '
19153 fi
19154 as_executable_p=$as_test_x
19155
19156 # Sed expression to map a string onto a valid CPP name.
19157 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19158
19159 # Sed expression to map a string onto a valid variable name.
19160 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19161
19162
19163 exec 6>&1
19164 ## ----------------------------------- ##
19165 ## Main body of $CONFIG_STATUS script. ##
19166 ## ----------------------------------- ##
19167 _ASEOF
19168 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
19169
19170 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19171 # Save the log message, to keep $0 and so on meaningful, and to
19172 # report actual input values of CONFIG_FILES etc. instead of their
19173 # values after options handling.
19174 ac_log="
19175 This file was extended by xf86-video-mach64 $as_me 6.9.4, which was
19176 generated by GNU Autoconf 2.68. Invocation command line was
19177
19178 CONFIG_FILES = $CONFIG_FILES
19179 CONFIG_HEADERS = $CONFIG_HEADERS
19180 CONFIG_LINKS = $CONFIG_LINKS
19181 CONFIG_COMMANDS = $CONFIG_COMMANDS
19182 $ $0 $@
19183
19184 on `(hostname || uname -n) 2>/dev/null | sed 1q`
19185 "
19186
19187 _ACEOF
19188
19189 case $ac_config_files in *"
19190 "*) set x $ac_config_files; shift; ac_config_files=$*;;
19191 esac
19192
19193 case $ac_config_headers in *"
19194 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
19195 esac
19196
19197
19198 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19199 # Files that config.status was made for.
19200 config_files="$ac_config_files"
19201 config_headers="$ac_config_headers"
19202 config_commands="$ac_config_commands"
19203
19204 _ACEOF
19205
19206 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19207 ac_cs_usage="\
19208 \`$as_me' instantiates files and other configuration actions
19209 from templates according to the current configuration. Unless the files
19210 and actions are specified as TAGs, all are instantiated by default.
19211
19212 Usage: $0 [OPTION]... [TAG]...
19213
19214 -h, --help print this help, then exit
19215 -V, --version print version number and configuration settings, then exit
19216 --config print configuration, then exit
19217 -q, --quiet, --silent
19218 do not print progress messages
19219 -d, --debug don't remove temporary files
19220 --recheck update $as_me by reconfiguring in the same conditions
19221 --file=FILE[:TEMPLATE]
19222 instantiate the configuration file FILE
19223 --header=FILE[:TEMPLATE]
19224 instantiate the configuration header FILE
19225
19226 Configuration files:
19227 $config_files
19228
19229 Configuration headers:
19230 $config_headers
19231
19232 Configuration commands:
19233 $config_commands
19234
19235 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
19236
19237 _ACEOF
19238 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19239 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
19240 ac_cs_version="\\
19241 xf86-video-mach64 config.status 6.9.4
19242 configured by $0, generated by GNU Autoconf 2.68,
19243 with options \\"\$ac_cs_config\\"
19244
19245 Copyright (C) 2010 Free Software Foundation, Inc.
19246 This config.status script is free software; the Free Software Foundation
19247 gives unlimited permission to copy, distribute and modify it."
19248
19249 ac_pwd='$ac_pwd'
19250 srcdir='$srcdir'
19251 INSTALL='$INSTALL'
19252 MKDIR_P='$MKDIR_P'
19253 AWK='$AWK'
19254 test -n "\$AWK" || AWK=awk
19255 _ACEOF
19256
19257 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19258 # The default lists apply if the user does not specify any file.
19259 ac_need_defaults=:
19260 while test $# != 0
19261 do
19262 case $1 in
19263 --*=?*)
19264 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19265 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19266 ac_shift=:
19267 ;;
19268 --*=)
19269 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19270 ac_optarg=
19271 ac_shift=:
19272 ;;
19273 *)
19274 ac_option=$1
19275 ac_optarg=$2
19276 ac_shift=shift
19277 ;;
19278 esac
19279
19280 case $ac_option in
19281 # Handling of the options.
19282 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19283 ac_cs_recheck=: ;;
19284 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19285 $as_echo "$ac_cs_version"; exit ;;
19286 --config | --confi | --conf | --con | --co | --c )
19287 $as_echo "$ac_cs_config"; exit ;;
19288 --debug | --debu | --deb | --de | --d | -d )
19289 debug=: ;;
19290 --file | --fil | --fi | --f )
19291 $ac_shift
19292 case $ac_optarg in
19293 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19294 '') as_fn_error $? "missing file argument" ;;
19295 esac
19296 as_fn_append CONFIG_FILES " '$ac_optarg'"
19297 ac_need_defaults=false;;
19298 --header | --heade | --head | --hea )
19299 $ac_shift
19300 case $ac_optarg in
19301 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19302 esac
19303 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
19304 ac_need_defaults=false;;
19305 --he | --h)
19306 # Conflict between --help and --header
19307 as_fn_error $? "ambiguous option: \`$1'
19308 Try \`$0 --help' for more information.";;
19309 --help | --hel | -h )
19310 $as_echo "$ac_cs_usage"; exit ;;
19311 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19312 | -silent | --silent | --silen | --sile | --sil | --si | --s)
19313 ac_cs_silent=: ;;
19314
19315 # This is an error.
19316 -*) as_fn_error $? "unrecognized option: \`$1'
19317 Try \`$0 --help' for more information." ;;
19318
19319 *) as_fn_append ac_config_targets " $1"
19320 ac_need_defaults=false ;;
19321
19322 esac
19323 shift
19324 done
19325
19326 ac_configure_extra_args=
19327
19328 if $ac_cs_silent; then
19329 exec 6>/dev/null
19330 ac_configure_extra_args="$ac_configure_extra_args --silent"
19331 fi
19332
19333 _ACEOF
19334 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19335 if \$ac_cs_recheck; then
19336 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19337 shift
19338 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19339 CONFIG_SHELL='$SHELL'
19340 export CONFIG_SHELL
19341 exec "\$@"
19342 fi
19343
19344 _ACEOF
19345 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19346 exec 5>>config.log
19347 {
19348 echo
19349 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19350 ## Running $as_me. ##
19351 _ASBOX
19352 $as_echo "$ac_log"
19353 } >&5
19354
19355 _ACEOF
19356 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19357 #
19358 # INIT-COMMANDS
19359 #
19360 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
19361
19362
19363 # The HP-UX ksh and POSIX shell print the target directory to stdout
19364 # if CDPATH is set.
19365 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19366
19367 sed_quote_subst='$sed_quote_subst'
19368 double_quote_subst='$double_quote_subst'
19369 delay_variable_subst='$delay_variable_subst'
19370 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
19371 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
19372 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
19373 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
19374 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
19375 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
19376 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
19377 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
19378 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
19379 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
19380 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
19381 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
19382 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
19383 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
19384 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
19385 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
19386 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
19387 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
19388 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
19389 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
19390 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
19391 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
19392 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
19393 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
19394 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
19395 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
19396 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
19397 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
19398 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
19399 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
19400 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
19401 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
19402 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
19403 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
19404 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
19405 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
19406 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
19407 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
19408 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
19409 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
19410 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
19411 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
19412 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
19413 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
19414 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
19415 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19416 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19417 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
19418 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
19419 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
19420 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
19421 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
19422 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
19423 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
19424 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
19425 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
19426 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"`'
19427 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
19428 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
19429 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
19430 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
19431 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
19432 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
19433 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
19434 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
19435 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
19436 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
19437 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
19438 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
19439 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
19440 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
19441 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
19442 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
19443 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
19444 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
19445 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19446 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
19447 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
19448 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
19449 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
19450 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
19451 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
19452 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19453 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
19454 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19455 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
19456 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19457 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
19458 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
19459 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
19460 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
19461 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
19462 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
19463 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
19464 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
19465 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
19466 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
19467 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
19468 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
19469 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
19470 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
19471 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
19472 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
19473 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
19474 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
19475 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
19476 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
19477 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
19478 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
19479 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
19480 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
19481 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
19482 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
19483 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
19484 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
19485 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
19486 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
19487 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19488 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19489 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
19490 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
19491 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
19492 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
19493 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
19494 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
19495 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
19496 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
19497 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
19498 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
19499 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
19500
19501 LTCC='$LTCC'
19502 LTCFLAGS='$LTCFLAGS'
19503 compiler='$compiler_DEFAULT'
19504
19505 # A function that is used when there is no print builtin or printf.
19506 func_fallback_echo ()
19507 {
19508 eval 'cat <<_LTECHO_EOF
19509 \$1
19510 _LTECHO_EOF'
19511 }
19512
19513 # Quote evaled strings.
19514 for var in SHELL \
19515 ECHO \
19516 PATH_SEPARATOR \
19517 SED \
19518 GREP \
19519 EGREP \
19520 FGREP \
19521 LD \
19522 NM \
19523 LN_S \
19524 lt_SP2NL \
19525 lt_NL2SP \
19526 reload_flag \
19527 OBJDUMP \
19528 deplibs_check_method \
19529 file_magic_cmd \
19530 file_magic_glob \
19531 want_nocaseglob \
19532 DLLTOOL \
19533 sharedlib_from_linklib_cmd \
19534 AR \
19535 AR_FLAGS \
19536 archiver_list_spec \
19537 STRIP \
19538 RANLIB \
19539 CC \
19540 CFLAGS \
19541 compiler \
19542 lt_cv_sys_global_symbol_pipe \
19543 lt_cv_sys_global_symbol_to_cdecl \
19544 lt_cv_sys_global_symbol_to_c_name_address \
19545 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
19546 nm_file_list_spec \
19547 lt_prog_compiler_no_builtin_flag \
19548 lt_prog_compiler_pic \
19549 lt_prog_compiler_wl \
19550 lt_prog_compiler_static \
19551 lt_cv_prog_compiler_c_o \
19552 need_locks \
19553 MANIFEST_TOOL \
19554 DSYMUTIL \
19555 NMEDIT \
19556 LIPO \
19557 OTOOL \
19558 OTOOL64 \
19559 shrext_cmds \
19560 export_dynamic_flag_spec \
19561 whole_archive_flag_spec \
19562 compiler_needs_object \
19563 with_gnu_ld \
19564 allow_undefined_flag \
19565 no_undefined_flag \
19566 hardcode_libdir_flag_spec \
19567 hardcode_libdir_separator \
19568 exclude_expsyms \
19569 include_expsyms \
19570 file_list_spec \
19571 variables_saved_for_relink \
19572 libname_spec \
19573 library_names_spec \
19574 soname_spec \
19575 install_override_mode \
19576 finish_eval \
19577 old_striplib \
19578 striplib; do
19579 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19580 *[\\\\\\\`\\"\\\$]*)
19581 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
19582 ;;
19583 *)
19584 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19585 ;;
19586 esac
19587 done
19588
19589 # Double-quote double-evaled strings.
19590 for var in reload_cmds \
19591 old_postinstall_cmds \
19592 old_postuninstall_cmds \
19593 old_archive_cmds \
19594 extract_expsyms_cmds \
19595 old_archive_from_new_cmds \
19596 old_archive_from_expsyms_cmds \
19597 archive_cmds \
19598 archive_expsym_cmds \
19599 module_cmds \
19600 module_expsym_cmds \
19601 export_symbols_cmds \
19602 prelink_cmds \
19603 postlink_cmds \
19604 postinstall_cmds \
19605 postuninstall_cmds \
19606 finish_cmds \
19607 sys_lib_search_path_spec \
19608 sys_lib_dlsearch_path_spec; do
19609 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19610 *[\\\\\\\`\\"\\\$]*)
19611 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
19612 ;;
19613 *)
19614 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19615 ;;
19616 esac
19617 done
19618
19619 ac_aux_dir='$ac_aux_dir'
19620 xsi_shell='$xsi_shell'
19621 lt_shell_append='$lt_shell_append'
19622
19623 # See if we are running on zsh, and set the options which allow our
19624 # commands through without removal of \ escapes INIT.
19625 if test -n "\${ZSH_VERSION+set}" ; then
19626 setopt NO_GLOB_SUBST
19627 fi
19628
19629
19630 PACKAGE='$PACKAGE'
19631 VERSION='$VERSION'
19632 TIMESTAMP='$TIMESTAMP'
19633 RM='$RM'
19634 ofile='$ofile'
19635
19636
19637
19638
19639 _ACEOF
19640
19641 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19642
19643 # Handling of arguments.
19644 for ac_config_target in $ac_config_targets
19645 do
19646 case $ac_config_target in
19647 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
19648 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
19649 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
19650 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19651 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
19652 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
19653
19654 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19655 esac
19656 done
19657
19658
19659 # If the user did not use the arguments to specify the items to instantiate,
19660 # then the envvar interface is used. Set only those that are not.
19661 # We use the long form for the default assignment because of an extremely
19662 # bizarre bug on SunOS 4.1.3.
19663 if $ac_need_defaults; then
19664 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19665 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19666 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19667 fi
19668
19669 # Have a temporary directory for convenience. Make it in the build tree
19670 # simply because there is no reason against having it here, and in addition,
19671 # creating and moving files from /tmp can sometimes cause problems.
19672 # Hook for its removal unless debugging.
19673 # Note that there is a small window in which the directory will not be cleaned:
19674 # after its creation but before its name has been assigned to `$tmp'.
19675 $debug ||
19676 {
19677 tmp= ac_tmp=
19678 trap 'exit_status=$?
19679 : "${ac_tmp:=$tmp}"
19680 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19681 ' 0
19682 trap 'as_fn_exit 1' 1 2 13 15
19683 }
19684 # Create a (secure) tmp directory for tmp files.
19685
19686 {
19687 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19688 test -d "$tmp"
19689 } ||
19690 {
19691 tmp=./conf$$-$RANDOM
19692 (umask 077 && mkdir "$tmp")
19693 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19694 ac_tmp=$tmp
19695
19696 # Set up the scripts for CONFIG_FILES section.
19697 # No need to generate them if there are no CONFIG_FILES.
19698 # This happens for instance with `./config.status config.h'.
19699 if test -n "$CONFIG_FILES"; then
19700
19701
19702 ac_cr=`echo X | tr X '\015'`
19703 # On cygwin, bash can eat \r inside `` if the user requested igncr.
19704 # But we know of no other shell where ac_cr would be empty at this
19705 # point, so we can use a bashism as a fallback.
19706 if test "x$ac_cr" = x; then
19707 eval ac_cr=\$\'\\r\'
19708 fi
19709 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19710 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19711 ac_cs_awk_cr='\\r'
19712 else
19713 ac_cs_awk_cr=$ac_cr
19714 fi
19715
19716 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19717 _ACEOF
19718
19719
19720 {
19721 echo "cat >conf$$subs.awk <<_ACEOF" &&
19722 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19723 echo "_ACEOF"
19724 } >conf$$subs.sh ||
19725 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19726 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19727 ac_delim='%!_!# '
19728 for ac_last_try in false false false false false :; do
19729 . ./conf$$subs.sh ||
19730 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19731
19732 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19733 if test $ac_delim_n = $ac_delim_num; then
19734 break
19735 elif $ac_last_try; then
19736 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19737 else
19738 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19739 fi
19740 done
19741 rm -f conf$$subs.sh
19742
19743 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19744 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
19745 _ACEOF
19746 sed -n '
19747 h
19748 s/^/S["/; s/!.*/"]=/
19749 p
19750 g
19751 s/^[^!]*!//
19752 :repl
19753 t repl
19754 s/'"$ac_delim"'$//
19755 t delim
19756 :nl
19757 h
19758 s/\(.\{148\}\)..*/\1/
19759 t more1
19760 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19761 p
19762 n
19763 b repl
19764 :more1
19765 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19766 p
19767 g
19768 s/.\{148\}//
19769 t nl
19770 :delim
19771 h
19772 s/\(.\{148\}\)..*/\1/
19773 t more2
19774 s/["\\]/\\&/g; s/^/"/; s/$/"/
19775 p
19776 b
19777 :more2
19778 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19779 p
19780 g
19781 s/.\{148\}//
19782 t delim
19783 ' <conf$$subs.awk | sed '
19784 /^[^""]/{
19785 N
19786 s/\n//
19787 }
19788 ' >>$CONFIG_STATUS || ac_write_fail=1
19789 rm -f conf$$subs.awk
19790 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19791 _ACAWK
19792 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
19793 for (key in S) S_is_set[key] = 1
19794 FS = ""
19795
19796 }
19797 {
19798 line = $ 0
19799 nfields = split(line, field, "@")
19800 substed = 0
19801 len = length(field[1])
19802 for (i = 2; i < nfields; i++) {
19803 key = field[i]
19804 keylen = length(key)
19805 if (S_is_set[key]) {
19806 value = S[key]
19807 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19808 len += length(value) + length(field[++i])
19809 substed = 1
19810 } else
19811 len += 1 + keylen
19812 }
19813
19814 print line
19815 }
19816
19817 _ACAWK
19818 _ACEOF
19819 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19820 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19821 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19822 else
19823 cat
19824 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
19825 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
19826 _ACEOF
19827
19828 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19829 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
19830 # trailing colons and then remove the whole line if VPATH becomes empty
19831 # (actually we leave an empty line to preserve line numbers).
19832 if test "x$srcdir" = x.; then
19833 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
19834 h
19835 s///
19836 s/^/:/
19837 s/[ ]*$/:/
19838 s/:\$(srcdir):/:/g
19839 s/:\${srcdir}:/:/g
19840 s/:@srcdir@:/:/g
19841 s/^:*//
19842 s/:*$//
19843 x
19844 s/\(=[ ]*\).*/\1/
19845 G
19846 s/\n//
19847 s/^[^=]*=[ ]*$//
19848 }'
19849 fi
19850
19851 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19852 fi # test -n "$CONFIG_FILES"
19853
19854 # Set up the scripts for CONFIG_HEADERS section.
19855 # No need to generate them if there are no CONFIG_HEADERS.
19856 # This happens for instance with `./config.status Makefile'.
19857 if test -n "$CONFIG_HEADERS"; then
19858 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
19859 BEGIN {
19860 _ACEOF
19861
19862 # Transform confdefs.h into an awk script `defines.awk', embedded as
19863 # here-document in config.status, that substitutes the proper values into
19864 # config.h.in to produce config.h.
19865
19866 # Create a delimiter string that does not exist in confdefs.h, to ease
19867 # handling of long lines.
19868 ac_delim='%!_!# '
19869 for ac_last_try in false false :; do
19870 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
19871 if test -z "$ac_tt"; then
19872 break
19873 elif $ac_last_try; then
19874 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
19875 else
19876 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19877 fi
19878 done
19879
19880 # For the awk script, D is an array of macro values keyed by name,
19881 # likewise P contains macro parameters if any. Preserve backslash
19882 # newline sequences.
19883
19884 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19885 sed -n '
19886 s/.\{148\}/&'"$ac_delim"'/g
19887 t rset
19888 :rset
19889 s/^[ ]*#[ ]*define[ ][ ]*/ /
19890 t def
19891 d
19892 :def
19893 s/\\$//
19894 t bsnl
19895 s/["\\]/\\&/g
19896 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19897 D["\1"]=" \3"/p
19898 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
19899 d
19900 :bsnl
19901 s/["\\]/\\&/g
19902 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19903 D["\1"]=" \3\\\\\\n"\\/p
19904 t cont
19905 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
19906 t cont
19907 d
19908 :cont
19909 n
19910 s/.\{148\}/&'"$ac_delim"'/g
19911 t clear
19912 :clear
19913 s/\\$//
19914 t bsnlc
19915 s/["\\]/\\&/g; s/^/"/; s/$/"/p
19916 d
19917 :bsnlc
19918 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
19919 b cont
19920 ' <confdefs.h | sed '
19921 s/'"$ac_delim"'/"\\\
19922 "/g' >>$CONFIG_STATUS || ac_write_fail=1
19923
19924 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19925 for (key in D) D_is_set[key] = 1
19926 FS = ""
19927 }
19928 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
19929 line = \$ 0
19930 split(line, arg, " ")
19931 if (arg[1] == "#") {
19932 defundef = arg[2]
19933 mac1 = arg[3]
19934 } else {
19935 defundef = substr(arg[1], 2)
19936 mac1 = arg[2]
19937 }
19938 split(mac1, mac2, "(") #)
19939 macro = mac2[1]
19940 prefix = substr(line, 1, index(line, defundef) - 1)
19941 if (D_is_set[macro]) {
19942 # Preserve the white space surrounding the "#".
19943 print prefix "define", macro P[macro] D[macro]
19944 next
19945 } else {
19946 # Replace #undef with comments. This is necessary, for example,
19947 # in the case of _POSIX_SOURCE, which is predefined and required
19948 # on some systems where configure will not decide to define it.
19949 if (defundef == "undef") {
19950 print "/*", prefix defundef, macro, "*/"
19951 next
19952 }
19953 }
19954 }
19955 { print }
19956 _ACAWK
19957 _ACEOF
19958 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19959 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
19960 fi # test -n "$CONFIG_HEADERS"
19961
19962
19963 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
19964 shift
19965 for ac_tag
19966 do
19967 case $ac_tag in
19968 :[FHLC]) ac_mode=$ac_tag; continue;;
19969 esac
19970 case $ac_mode$ac_tag in
19971 :[FHL]*:*);;
19972 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
19973 :[FH]-) ac_tag=-:-;;
19974 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19975 esac
19976 ac_save_IFS=$IFS
19977 IFS=:
19978 set x $ac_tag
19979 IFS=$ac_save_IFS
19980 shift
19981 ac_file=$1
19982 shift
19983
19984 case $ac_mode in
19985 :L) ac_source=$1;;
19986 :[FH])
19987 ac_file_inputs=
19988 for ac_f
19989 do
19990 case $ac_f in
19991 -) ac_f="$ac_tmp/stdin";;
19992 *) # Look for the file first in the build tree, then in the source tree
19993 # (if the path is not absolute). The absolute path cannot be DOS-style,
19994 # because $ac_f cannot contain `:'.
19995 test -f "$ac_f" ||
19996 case $ac_f in
19997 [\\/$]*) false;;
19998 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19999 esac ||
20000 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
20001 esac
20002 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20003 as_fn_append ac_file_inputs " '$ac_f'"
20004 done
20005
20006 # Let's still pretend it is `configure' which instantiates (i.e., don't
20007 # use $as_me), people would be surprised to read:
20008 # /* config.h. Generated by config.status. */
20009 configure_input='Generated from '`
20010 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20011 `' by configure.'
20012 if test x"$ac_file" != x-; then
20013 configure_input="$ac_file. $configure_input"
20014 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20015 $as_echo "$as_me: creating $ac_file" >&6;}
20016 fi
20017 # Neutralize special characters interpreted by sed in replacement strings.
20018 case $configure_input in #(
20019 *\&* | *\|* | *\\* )
20020 ac_sed_conf_input=`$as_echo "$configure_input" |
20021 sed 's/[\\\\&|]/\\\\&/g'`;; #(
20022 *) ac_sed_conf_input=$configure_input;;
20023 esac
20024
20025 case $ac_tag in
20026 *:-:* | *:-) cat >"$ac_tmp/stdin" \
20027 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
20028 esac
20029 ;;
20030 esac
20031
20032 ac_dir=`$as_dirname -- "$ac_file" ||
20033 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20034 X"$ac_file" : 'X\(//\)[^/]' \| \
20035 X"$ac_file" : 'X\(//\)$' \| \
20036 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20037 $as_echo X"$ac_file" |
20038 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20039 s//\1/
20040 q
20041 }
20042 /^X\(\/\/\)[^/].*/{
20043 s//\1/
20044 q
20045 }
20046 /^X\(\/\/\)$/{
20047 s//\1/
20048 q
20049 }
20050 /^X\(\/\).*/{
20051 s//\1/
20052 q
20053 }
20054 s/.*/./; q'`
20055 as_dir="$ac_dir"; as_fn_mkdir_p
20056 ac_builddir=.
20057
20058 case "$ac_dir" in
20059 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20060 *)
20061 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20062 # A ".." for each directory in $ac_dir_suffix.
20063 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20064 case $ac_top_builddir_sub in
20065 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20066 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20067 esac ;;
20068 esac
20069 ac_abs_top_builddir=$ac_pwd
20070 ac_abs_builddir=$ac_pwd$ac_dir_suffix
20071 # for backward compatibility:
20072 ac_top_builddir=$ac_top_build_prefix
20073
20074 case $srcdir in
20075 .) # We are building in place.
20076 ac_srcdir=.
20077 ac_top_srcdir=$ac_top_builddir_sub
20078 ac_abs_top_srcdir=$ac_pwd ;;
20079 [\\/]* | ?:[\\/]* ) # Absolute name.
20080 ac_srcdir=$srcdir$ac_dir_suffix;
20081 ac_top_srcdir=$srcdir
20082 ac_abs_top_srcdir=$srcdir ;;
20083 *) # Relative name.
20084 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20085 ac_top_srcdir=$ac_top_build_prefix$srcdir
20086 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20087 esac
20088 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20089
20090
20091 case $ac_mode in
20092 :F)
20093 #
20094 # CONFIG_FILE
20095 #
20096
20097 case $INSTALL in
20098 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20099 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
20100 esac
20101 ac_MKDIR_P=$MKDIR_P
20102 case $MKDIR_P in
20103 [\\/$]* | ?:[\\/]* ) ;;
20104 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
20105 esac
20106 _ACEOF
20107
20108 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20109 # If the template does not know about datarootdir, expand it.
20110 # FIXME: This hack should be removed a few years after 2.60.
20111 ac_datarootdir_hack=; ac_datarootdir_seen=
20112 ac_sed_dataroot='
20113 /datarootdir/ {
20114 p
20115 q
20116 }
20117 /@datadir@/p
20118 /@docdir@/p
20119 /@infodir@/p
20120 /@localedir@/p
20121 /@mandir@/p'
20122 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20123 *datarootdir*) ac_datarootdir_seen=yes;;
20124 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20125 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20126 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20127 _ACEOF
20128 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20129 ac_datarootdir_hack='
20130 s&@datadir@&$datadir&g
20131 s&@docdir@&$docdir&g
20132 s&@infodir@&$infodir&g
20133 s&@localedir@&$localedir&g
20134 s&@mandir@&$mandir&g
20135 s&\\\${datarootdir}&$datarootdir&g' ;;
20136 esac
20137 _ACEOF
20138
20139 # Neutralize VPATH when `$srcdir' = `.'.
20140 # Shell code in configure.ac might set extrasub.
20141 # FIXME: do we really want to maintain this feature?
20142 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20143 ac_sed_extra="$ac_vpsub
20144 $extrasub
20145 _ACEOF
20146 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20147 :t
20148 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20149 s|@configure_input@|$ac_sed_conf_input|;t t
20150 s&@top_builddir@&$ac_top_builddir_sub&;t t
20151 s&@top_build_prefix@&$ac_top_build_prefix&;t t
20152 s&@srcdir@&$ac_srcdir&;t t
20153 s&@abs_srcdir@&$ac_abs_srcdir&;t t
20154 s&@top_srcdir@&$ac_top_srcdir&;t t
20155 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20156 s&@builddir@&$ac_builddir&;t t
20157 s&@abs_builddir@&$ac_abs_builddir&;t t
20158 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20159 s&@INSTALL@&$ac_INSTALL&;t t
20160 s&@MKDIR_P@&$ac_MKDIR_P&;t t
20161 $ac_datarootdir_hack
20162 "
20163 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
20164 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20165
20166 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20167 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
20168 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
20169 "$ac_tmp/out"`; test -z "$ac_out"; } &&
20170 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20171 which seems to be undefined. Please make sure it is defined" >&5
20172 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20173 which seems to be undefined. Please make sure it is defined" >&2;}
20174
20175 rm -f "$ac_tmp/stdin"
20176 case $ac_file in
20177 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
20178 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
20179 esac \
20180 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20181 ;;
20182 :H)
20183 #
20184 # CONFIG_HEADER
20185 #
20186 if test x"$ac_file" != x-; then
20187 {
20188 $as_echo "/* $configure_input */" \
20189 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
20190 } >"$ac_tmp/config.h" \
20191 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20192 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
20193 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
20194 $as_echo "$as_me: $ac_file is unchanged" >&6;}
20195 else
20196 rm -f "$ac_file"
20197 mv "$ac_tmp/config.h" "$ac_file" \
20198 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20199 fi
20200 else
20201 $as_echo "/* $configure_input */" \
20202 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
20203 || as_fn_error $? "could not create -" "$LINENO" 5
20204 fi
20205 # Compute "$ac_file"'s index in $config_headers.
20206 _am_arg="$ac_file"
20207 _am_stamp_count=1
20208 for _am_header in $config_headers :; do
20209 case $_am_header in
20210 $_am_arg | $_am_arg:* )
20211 break ;;
20212 * )
20213 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20214 esac
20215 done
20216 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
20217 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20218 X"$_am_arg" : 'X\(//\)[^/]' \| \
20219 X"$_am_arg" : 'X\(//\)$' \| \
20220 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
20221 $as_echo X"$_am_arg" |
20222 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20223 s//\1/
20224 q
20225 }
20226 /^X\(\/\/\)[^/].*/{
20227 s//\1/
20228 q
20229 }
20230 /^X\(\/\/\)$/{
20231 s//\1/
20232 q
20233 }
20234 /^X\(\/\).*/{
20235 s//\1/
20236 q
20237 }
20238 s/.*/./; q'`/stamp-h$_am_stamp_count
20239 ;;
20240
20241 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
20242 $as_echo "$as_me: executing $ac_file commands" >&6;}
20243 ;;
20244 esac
20245
20246
20247 case $ac_file$ac_mode in
20248 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
20249 # Autoconf 2.62 quotes --file arguments for eval, but not when files
20250 # are listed without --file. Let's play safe and only enable the eval
20251 # if we detect the quoting.
20252 case $CONFIG_FILES in
20253 *\'*) eval set x "$CONFIG_FILES" ;;
20254 *) set x $CONFIG_FILES ;;
20255 esac
20256 shift
20257 for mf
20258 do
20259 # Strip MF so we end up with the name of the file.
20260 mf=`echo "$mf" | sed -e 's/:.*$//'`
20261 # Check whether this is an Automake generated Makefile or not.
20262 # We used to match only the files named `Makefile.in', but
20263 # some people rename them; so instead we look at the file content.
20264 # Grep'ing the first line is not enough: some people post-process
20265 # each Makefile.in and add a new line on top of each file to say so.
20266 # Grep'ing the whole file is not good either: AIX grep has a line
20267 # limit of 2048, but all sed's we know have understand at least 4000.
20268 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
20269 dirpart=`$as_dirname -- "$mf" ||
20270 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20271 X"$mf" : 'X\(//\)[^/]' \| \
20272 X"$mf" : 'X\(//\)$' \| \
20273 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
20274 $as_echo X"$mf" |
20275 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20276 s//\1/
20277 q
20278 }
20279 /^X\(\/\/\)[^/].*/{
20280 s//\1/
20281 q
20282 }
20283 /^X\(\/\/\)$/{
20284 s//\1/
20285 q
20286 }
20287 /^X\(\/\).*/{
20288 s//\1/
20289 q
20290 }
20291 s/.*/./; q'`
20292 else
20293 continue
20294 fi
20295 # Extract the definition of DEPDIR, am__include, and am__quote
20296 # from the Makefile without running `make'.
20297 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
20298 test -z "$DEPDIR" && continue
20299 am__include=`sed -n 's/^am__include = //p' < "$mf"`
20300 test -z "am__include" && continue
20301 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
20302 # When using ansi2knr, U may be empty or an underscore; expand it
20303 U=`sed -n 's/^U = //p' < "$mf"`
20304 # Find all dependency output files, they are included files with
20305 # $(DEPDIR) in their names. We invoke sed twice because it is the
20306 # simplest approach to changing $(DEPDIR) to its actual value in the
20307 # expansion.
20308 for file in `sed -n "
20309 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
20310 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
20311 # Make sure the directory exists.
20312 test -f "$dirpart/$file" && continue
20313 fdir=`$as_dirname -- "$file" ||
20314 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20315 X"$file" : 'X\(//\)[^/]' \| \
20316 X"$file" : 'X\(//\)$' \| \
20317 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
20318 $as_echo X"$file" |
20319 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20320 s//\1/
20321 q
20322 }
20323 /^X\(\/\/\)[^/].*/{
20324 s//\1/
20325 q
20326 }
20327 /^X\(\/\/\)$/{
20328 s//\1/
20329 q
20330 }
20331 /^X\(\/\).*/{
20332 s//\1/
20333 q
20334 }
20335 s/.*/./; q'`
20336 as_dir=$dirpart/$fdir; as_fn_mkdir_p
20337 # echo "creating $dirpart/$file"
20338 echo '# dummy' > "$dirpart/$file"
20339 done
20340 done
20341 }
20342 ;;
20343 "libtool":C)
20344
20345 # See if we are running on zsh, and set the options which allow our
20346 # commands through without removal of \ escapes.
20347 if test -n "${ZSH_VERSION+set}" ; then
20348 setopt NO_GLOB_SUBST
20349 fi
20350
20351 cfgfile="${ofile}T"
20352 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
20353 $RM "$cfgfile"
20354
20355 cat <<_LT_EOF >> "$cfgfile"
20356 #! $SHELL
20357
20358 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
20359 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
20360 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20361 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
20362 #
20363 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
20364 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
20365 # Foundation, Inc.
20366 # Written by Gordon Matzigkeit, 1996
20367 #
20368 # This file is part of GNU Libtool.
20369 #
20370 # GNU Libtool is free software; you can redistribute it and/or
20371 # modify it under the terms of the GNU General Public License as
20372 # published by the Free Software Foundation; either version 2 of
20373 # the License, or (at your option) any later version.
20374 #
20375 # As a special exception to the GNU General Public License,
20376 # if you distribute this file as part of a program or library that
20377 # is built using GNU Libtool, you may include this file under the
20378 # same distribution terms that you use for the rest of that program.
20379 #
20380 # GNU Libtool is distributed in the hope that it will be useful,
20381 # but WITHOUT ANY WARRANTY; without even the implied warranty of
20382 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20383 # GNU General Public License for more details.
20384 #
20385 # You should have received a copy of the GNU General Public License
20386 # along with GNU Libtool; see the file COPYING. If not, a copy
20387 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
20388 # obtained by writing to the Free Software Foundation, Inc.,
20389 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20390
20391
20392 # The names of the tagged configurations supported by this script.
20393 available_tags=""
20394
20395 # ### BEGIN LIBTOOL CONFIG
20396
20397 # Whether or not to build static libraries.
20398 build_old_libs=$enable_static
20399
20400 # Which release of libtool.m4 was used?
20401 macro_version=$macro_version
20402 macro_revision=$macro_revision
20403
20404 # Whether or not to build shared libraries.
20405 build_libtool_libs=$enable_shared
20406
20407 # What type of objects to build.
20408 pic_mode=$pic_mode
20409
20410 # Whether or not to optimize for fast installation.
20411 fast_install=$enable_fast_install
20412
20413 # Shell to use when invoking shell scripts.
20414 SHELL=$lt_SHELL
20415
20416 # An echo program that protects backslashes.
20417 ECHO=$lt_ECHO
20418
20419 # The PATH separator for the build system.
20420 PATH_SEPARATOR=$lt_PATH_SEPARATOR
20421
20422 # The host system.
20423 host_alias=$host_alias
20424 host=$host
20425 host_os=$host_os
20426
20427 # The build system.
20428 build_alias=$build_alias
20429 build=$build
20430 build_os=$build_os
20431
20432 # A sed program that does not truncate output.
20433 SED=$lt_SED
20434
20435 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
20436 Xsed="\$SED -e 1s/^X//"
20437
20438 # A grep program that handles long lines.
20439 GREP=$lt_GREP
20440
20441 # An ERE matcher.
20442 EGREP=$lt_EGREP
20443
20444 # A literal string matcher.
20445 FGREP=$lt_FGREP
20446
20447 # A BSD- or MS-compatible name lister.
20448 NM=$lt_NM
20449
20450 # Whether we need soft or hard links.
20451 LN_S=$lt_LN_S
20452
20453 # What is the maximum length of a command?
20454 max_cmd_len=$max_cmd_len
20455
20456 # Object file suffix (normally "o").
20457 objext=$ac_objext
20458
20459 # Executable file suffix (normally "").
20460 exeext=$exeext
20461
20462 # whether the shell understands "unset".
20463 lt_unset=$lt_unset
20464
20465 # turn spaces into newlines.
20466 SP2NL=$lt_lt_SP2NL
20467
20468 # turn newlines into spaces.
20469 NL2SP=$lt_lt_NL2SP
20470
20471 # convert \$build file names to \$host format.
20472 to_host_file_cmd=$lt_cv_to_host_file_cmd
20473
20474 # convert \$build files to toolchain format.
20475 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
20476
20477 # An object symbol dumper.
20478 OBJDUMP=$lt_OBJDUMP
20479
20480 # Method to check whether dependent libraries are shared objects.
20481 deplibs_check_method=$lt_deplibs_check_method
20482
20483 # Command to use when deplibs_check_method = "file_magic".
20484 file_magic_cmd=$lt_file_magic_cmd
20485
20486 # How to find potential files when deplibs_check_method = "file_magic".
20487 file_magic_glob=$lt_file_magic_glob
20488
20489 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
20490 want_nocaseglob=$lt_want_nocaseglob
20491
20492 # DLL creation program.
20493 DLLTOOL=$lt_DLLTOOL
20494
20495 # Command to associate shared and link libraries.
20496 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
20497
20498 # The archiver.
20499 AR=$lt_AR
20500
20501 # Flags to create an archive.
20502 AR_FLAGS=$lt_AR_FLAGS
20503
20504 # How to feed a file listing to the archiver.
20505 archiver_list_spec=$lt_archiver_list_spec
20506
20507 # A symbol stripping program.
20508 STRIP=$lt_STRIP
20509
20510 # Commands used to install an old-style archive.
20511 RANLIB=$lt_RANLIB
20512 old_postinstall_cmds=$lt_old_postinstall_cmds
20513 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20514
20515 # Whether to use a lock for old archive extraction.
20516 lock_old_archive_extraction=$lock_old_archive_extraction
20517
20518 # A C compiler.
20519 LTCC=$lt_CC
20520
20521 # LTCC compiler flags.
20522 LTCFLAGS=$lt_CFLAGS
20523
20524 # Take the output of nm and produce a listing of raw symbols and C names.
20525 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20526
20527 # Transform the output of nm in a proper C declaration.
20528 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20529
20530 # Transform the output of nm in a C name address pair.
20531 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20532
20533 # Transform the output of nm in a C name address pair when lib prefix is needed.
20534 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
20535
20536 # Specify filename containing input files for \$NM.
20537 nm_file_list_spec=$lt_nm_file_list_spec
20538
20539 # The root where to search for dependent libraries,and in which our libraries should be installed.
20540 lt_sysroot=$lt_sysroot
20541
20542 # The name of the directory that contains temporary libtool files.
20543 objdir=$objdir
20544
20545 # Used to examine libraries when file_magic_cmd begins with "file".
20546 MAGIC_CMD=$MAGIC_CMD
20547
20548 # Must we lock files when doing compilation?
20549 need_locks=$lt_need_locks
20550
20551 # Manifest tool.
20552 MANIFEST_TOOL=$lt_MANIFEST_TOOL
20553
20554 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
20555 DSYMUTIL=$lt_DSYMUTIL
20556
20557 # Tool to change global to local symbols on Mac OS X.
20558 NMEDIT=$lt_NMEDIT
20559
20560 # Tool to manipulate fat objects and archives on Mac OS X.
20561 LIPO=$lt_LIPO
20562
20563 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
20564 OTOOL=$lt_OTOOL
20565
20566 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
20567 OTOOL64=$lt_OTOOL64
20568
20569 # Old archive suffix (normally "a").
20570 libext=$libext
20571
20572 # Shared library suffix (normally ".so").
20573 shrext_cmds=$lt_shrext_cmds
20574
20575 # The commands to extract the exported symbol list from a shared archive.
20576 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20577
20578 # Variables whose values should be saved in libtool wrapper scripts and
20579 # restored at link time.
20580 variables_saved_for_relink=$lt_variables_saved_for_relink
20581
20582 # Do we need the "lib" prefix for modules?
20583 need_lib_prefix=$need_lib_prefix
20584
20585 # Do we need a version for libraries?
20586 need_version=$need_version
20587
20588 # Library versioning type.
20589 version_type=$version_type
20590
20591 # Shared library runtime path variable.
20592 runpath_var=$runpath_var
20593
20594 # Shared library path variable.
20595 shlibpath_var=$shlibpath_var
20596
20597 # Is shlibpath searched before the hard-coded library search path?
20598 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20599
20600 # Format of library name prefix.
20601 libname_spec=$lt_libname_spec
20602
20603 # List of archive names. First name is the real one, the rest are links.
20604 # The last name is the one that the linker finds with -lNAME
20605 library_names_spec=$lt_library_names_spec
20606
20607 # The coded name of the library, if different from the real name.
20608 soname_spec=$lt_soname_spec
20609
20610 # Permission mode override for installation of shared libraries.
20611 install_override_mode=$lt_install_override_mode
20612
20613 # Command to use after installation of a shared archive.
20614 postinstall_cmds=$lt_postinstall_cmds
20615
20616 # Command to use after uninstallation of a shared archive.
20617 postuninstall_cmds=$lt_postuninstall_cmds
20618
20619 # Commands used to finish a libtool library installation in a directory.
20620 finish_cmds=$lt_finish_cmds
20621
20622 # As "finish_cmds", except a single script fragment to be evaled but
20623 # not shown.
20624 finish_eval=$lt_finish_eval
20625
20626 # Whether we should hardcode library paths into libraries.
20627 hardcode_into_libs=$hardcode_into_libs
20628
20629 # Compile-time system search path for libraries.
20630 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20631
20632 # Run-time system search path for libraries.
20633 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20634
20635 # Whether dlopen is supported.
20636 dlopen_support=$enable_dlopen
20637
20638 # Whether dlopen of programs is supported.
20639 dlopen_self=$enable_dlopen_self
20640
20641 # Whether dlopen of statically linked programs is supported.
20642 dlopen_self_static=$enable_dlopen_self_static
20643
20644 # Commands to strip libraries.
20645 old_striplib=$lt_old_striplib
20646 striplib=$lt_striplib
20647
20648
20649 # The linker used to build libraries.
20650 LD=$lt_LD
20651
20652 # How to create reloadable object files.
20653 reload_flag=$lt_reload_flag
20654 reload_cmds=$lt_reload_cmds
20655
20656 # Commands used to build an old-style archive.
20657 old_archive_cmds=$lt_old_archive_cmds
20658
20659 # A language specific compiler.
20660 CC=$lt_compiler
20661
20662 # Is the compiler the GNU compiler?
20663 with_gcc=$GCC
20664
20665 # Compiler flag to turn off builtin functions.
20666 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
20667
20668 # Additional compiler flags for building library objects.
20669 pic_flag=$lt_lt_prog_compiler_pic
20670
20671 # How to pass a linker flag through the compiler.
20672 wl=$lt_lt_prog_compiler_wl
20673
20674 # Compiler flag to prevent dynamic linking.
20675 link_static_flag=$lt_lt_prog_compiler_static
20676
20677 # Does compiler simultaneously support -c and -o options?
20678 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
20679
20680 # Whether or not to add -lc for building shared libraries.
20681 build_libtool_need_lc=$archive_cmds_need_lc
20682
20683 # Whether or not to disallow shared libs when runtime libs are static.
20684 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
20685
20686 # Compiler flag to allow reflexive dlopens.
20687 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
20688
20689 # Compiler flag to generate shared objects directly from archives.
20690 whole_archive_flag_spec=$lt_whole_archive_flag_spec
20691
20692 # Whether the compiler copes with passing no objects directly.
20693 compiler_needs_object=$lt_compiler_needs_object
20694
20695 # Create an old-style archive from a shared archive.
20696 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
20697
20698 # Create a temporary old-style archive to link instead of a shared archive.
20699 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
20700
20701 # Commands used to build a shared archive.
20702 archive_cmds=$lt_archive_cmds
20703 archive_expsym_cmds=$lt_archive_expsym_cmds
20704
20705 # Commands used to build a loadable module if different from building
20706 # a shared archive.
20707 module_cmds=$lt_module_cmds
20708 module_expsym_cmds=$lt_module_expsym_cmds
20709
20710 # Whether we are building with GNU ld or not.
20711 with_gnu_ld=$lt_with_gnu_ld
20712
20713 # Flag that allows shared libraries with undefined symbols to be built.
20714 allow_undefined_flag=$lt_allow_undefined_flag
20715
20716 # Flag that enforces no undefined symbols.
20717 no_undefined_flag=$lt_no_undefined_flag
20718
20719 # Flag to hardcode \$libdir into a binary during linking.
20720 # This must work even if \$libdir does not exist
20721 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
20722
20723 # Whether we need a single "-rpath" flag with a separated argument.
20724 hardcode_libdir_separator=$lt_hardcode_libdir_separator
20725
20726 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20727 # DIR into the resulting binary.
20728 hardcode_direct=$hardcode_direct
20729
20730 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20731 # DIR into the resulting binary and the resulting library dependency is
20732 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
20733 # library is relocated.
20734 hardcode_direct_absolute=$hardcode_direct_absolute
20735
20736 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20737 # into the resulting binary.
20738 hardcode_minus_L=$hardcode_minus_L
20739
20740 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20741 # into the resulting binary.
20742 hardcode_shlibpath_var=$hardcode_shlibpath_var
20743
20744 # Set to "yes" if building a shared library automatically hardcodes DIR
20745 # into the library and all subsequent libraries and executables linked
20746 # against it.
20747 hardcode_automatic=$hardcode_automatic
20748
20749 # Set to yes if linker adds runtime paths of dependent libraries
20750 # to runtime path list.
20751 inherit_rpath=$inherit_rpath
20752
20753 # Whether libtool must link a program against all its dependency libraries.
20754 link_all_deplibs=$link_all_deplibs
20755
20756 # Set to "yes" if exported symbols are required.
20757 always_export_symbols=$always_export_symbols
20758
20759 # The commands to list exported symbols.
20760 export_symbols_cmds=$lt_export_symbols_cmds
20761
20762 # Symbols that should not be listed in the preloaded symbols.
20763 exclude_expsyms=$lt_exclude_expsyms
20764
20765 # Symbols that must always be exported.
20766 include_expsyms=$lt_include_expsyms
20767
20768 # Commands necessary for linking programs (against libraries) with templates.
20769 prelink_cmds=$lt_prelink_cmds
20770
20771 # Commands necessary for finishing linking programs.
20772 postlink_cmds=$lt_postlink_cmds
20773
20774 # Specify filename containing input files.
20775 file_list_spec=$lt_file_list_spec
20776
20777 # How to hardcode a shared library path into an executable.
20778 hardcode_action=$hardcode_action
20779
20780 # ### END LIBTOOL CONFIG
20781
20782 _LT_EOF
20783
20784 case $host_os in
20785 aix3*)
20786 cat <<\_LT_EOF >> "$cfgfile"
20787 # AIX sometimes has problems with the GCC collect2 program. For some
20788 # reason, if we set the COLLECT_NAMES environment variable, the problems
20789 # vanish in a puff of smoke.
20790 if test "X${COLLECT_NAMES+set}" != Xset; then
20791 COLLECT_NAMES=
20792 export COLLECT_NAMES
20793 fi
20794 _LT_EOF
20795 ;;
20796 esac
20797
20798
20799 ltmain="$ac_aux_dir/ltmain.sh"
20800
20801
20802 # We use sed instead of cat because bash on DJGPP gets confused if
20803 # if finds mixed CR/LF and LF-only lines. Since sed operates in
20804 # text mode, it properly converts lines to CR/LF. This bash problem
20805 # is reportedly fixed, but why not run on old versions too?
20806 sed '$q' "$ltmain" >> "$cfgfile" \
20807 || (rm -f "$cfgfile"; exit 1)
20808
20809 if test x"$xsi_shell" = xyes; then
20810 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
20811 func_dirname ()\
20812 {\
20813 \ case ${1} in\
20814 \ */*) func_dirname_result="${1%/*}${2}" ;;\
20815 \ * ) func_dirname_result="${3}" ;;\
20816 \ esac\
20817 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
20818 && mv -f "$cfgfile.tmp" "$cfgfile" \
20819 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20820 test 0 -eq $? || _lt_function_replace_fail=:
20821
20822
20823 sed -e '/^func_basename ()$/,/^} # func_basename /c\
20824 func_basename ()\
20825 {\
20826 \ func_basename_result="${1##*/}"\
20827 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
20828 && mv -f "$cfgfile.tmp" "$cfgfile" \
20829 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20830 test 0 -eq $? || _lt_function_replace_fail=:
20831
20832
20833 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
20834 func_dirname_and_basename ()\
20835 {\
20836 \ case ${1} in\
20837 \ */*) func_dirname_result="${1%/*}${2}" ;;\
20838 \ * ) func_dirname_result="${3}" ;;\
20839 \ esac\
20840 \ func_basename_result="${1##*/}"\
20841 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
20842 && mv -f "$cfgfile.tmp" "$cfgfile" \
20843 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20844 test 0 -eq $? || _lt_function_replace_fail=:
20845
20846
20847 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
20848 func_stripname ()\
20849 {\
20850 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
20851 \ # positional parameters, so assign one to ordinary parameter first.\
20852 \ func_stripname_result=${3}\
20853 \ func_stripname_result=${func_stripname_result#"${1}"}\
20854 \ func_stripname_result=${func_stripname_result%"${2}"}\
20855 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
20856 && mv -f "$cfgfile.tmp" "$cfgfile" \
20857 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20858 test 0 -eq $? || _lt_function_replace_fail=:
20859
20860
20861 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
20862 func_split_long_opt ()\
20863 {\
20864 \ func_split_long_opt_name=${1%%=*}\
20865 \ func_split_long_opt_arg=${1#*=}\
20866 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
20867 && mv -f "$cfgfile.tmp" "$cfgfile" \
20868 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20869 test 0 -eq $? || _lt_function_replace_fail=:
20870
20871
20872 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
20873 func_split_short_opt ()\
20874 {\
20875 \ func_split_short_opt_arg=${1#??}\
20876 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
20877 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
20878 && mv -f "$cfgfile.tmp" "$cfgfile" \
20879 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20880 test 0 -eq $? || _lt_function_replace_fail=:
20881
20882
20883 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
20884 func_lo2o ()\
20885 {\
20886 \ case ${1} in\
20887 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
20888 \ *) func_lo2o_result=${1} ;;\
20889 \ esac\
20890 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
20891 && mv -f "$cfgfile.tmp" "$cfgfile" \
20892 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20893 test 0 -eq $? || _lt_function_replace_fail=:
20894
20895
20896 sed -e '/^func_xform ()$/,/^} # func_xform /c\
20897 func_xform ()\
20898 {\
20899 func_xform_result=${1%.*}.lo\
20900 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
20901 && mv -f "$cfgfile.tmp" "$cfgfile" \
20902 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20903 test 0 -eq $? || _lt_function_replace_fail=:
20904
20905
20906 sed -e '/^func_arith ()$/,/^} # func_arith /c\
20907 func_arith ()\
20908 {\
20909 func_arith_result=$(( $* ))\
20910 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
20911 && mv -f "$cfgfile.tmp" "$cfgfile" \
20912 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20913 test 0 -eq $? || _lt_function_replace_fail=:
20914
20915
20916 sed -e '/^func_len ()$/,/^} # func_len /c\
20917 func_len ()\
20918 {\
20919 func_len_result=${#1}\
20920 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
20921 && mv -f "$cfgfile.tmp" "$cfgfile" \
20922 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20923 test 0 -eq $? || _lt_function_replace_fail=:
20924
20925 fi
20926
20927 if test x"$lt_shell_append" = xyes; then
20928 sed -e '/^func_append ()$/,/^} # func_append /c\
20929 func_append ()\
20930 {\
20931 eval "${1}+=\\${2}"\
20932 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
20933 && mv -f "$cfgfile.tmp" "$cfgfile" \
20934 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20935 test 0 -eq $? || _lt_function_replace_fail=:
20936
20937
20938 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
20939 func_append_quoted ()\
20940 {\
20941 \ func_quote_for_eval "${2}"\
20942 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
20943 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
20944 && mv -f "$cfgfile.tmp" "$cfgfile" \
20945 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20946 test 0 -eq $? || _lt_function_replace_fail=:
20947
20948
20949 # Save a `func_append' function call where possible by direct use of '+='
20950 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
20951 && mv -f "$cfgfile.tmp" "$cfgfile" \
20952 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20953 test 0 -eq $? || _lt_function_replace_fail=:
20954 else
20955 # Save a `func_append' function call even when '+=' is not available
20956 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
20957 && mv -f "$cfgfile.tmp" "$cfgfile" \
20958 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20959 test 0 -eq $? || _lt_function_replace_fail=:
20960 fi
20961
20962 if test x"$_lt_function_replace_fail" = x":"; then
20963 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
20964 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
20965 fi
20966
20967
20968 mv -f "$cfgfile" "$ofile" ||
20969 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
20970 chmod +x "$ofile"
20971
20972 ;;
20973
20974 esac
20975 done # for ac_tag
20976
20977
20978 as_fn_exit 0
20979 _ACEOF
20980 ac_clean_files=$ac_clean_files_save
20981
20982 test $ac_write_fail = 0 ||
20983 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
20984
20985
20986 # configure is writing to config.log, and then calls config.status.
20987 # config.status does its own redirection, appending to config.log.
20988 # Unfortunately, on DOS this fails, as config.log is still kept open
20989 # by configure, so config.status won't be able to write to it; its
20990 # output is simply discarded. So we exec the FD to /dev/null,
20991 # effectively closing config.log, so it can be properly (re)opened and
20992 # appended to by config.status. When coming back to configure, we
20993 # need to make the FD available again.
20994 if test "$no_create" != yes; then
20995 ac_cs_success=:
20996 ac_config_status_args=
20997 test "$silent" = yes &&
20998 ac_config_status_args="$ac_config_status_args --quiet"
20999 exec 5>/dev/null
21000 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21001 exec 5>>config.log
21002 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21003 # would make configure fail if this is the last instruction.
21004 $ac_cs_success || as_fn_exit 1
21005 fi
21006 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
21007 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21008 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
21009 fi
21010
21011