configure revision 1.1.1.4 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for xf86-video-ati 6.14.6.
4 #
5 # Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
6 #
7 #
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10 # Foundation, Inc.
11 #
12 #
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
18
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 emulate sh
23 NULLCMD=:
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
27 setopt NO_GLOB_SUBST
28 else
29 case `(set -o) 2>/dev/null` in #(
30 *posix*) :
31 set -o posix ;; #(
32 *) :
33 ;;
34 esac
35 fi
36
37
38 as_nl='
39 '
40 export as_nl
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49 as_echo='print -r --'
50 as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52 as_echo='printf %s\n'
53 as_echo_n='printf %s'
54 else
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
58 else
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 as_echo_n_body='eval
61 arg=$1;
62 case $arg in #(
63 *"$as_nl"*)
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66 esac;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 '
69 export as_echo_n_body
70 as_echo_n='sh -c $as_echo_n_body as_echo'
71 fi
72 export as_echo_body
73 as_echo='sh -c $as_echo_body as_echo'
74 fi
75
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
78 PATH_SEPARATOR=:
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81 PATH_SEPARATOR=';'
82 }
83 fi
84
85
86 # IFS
87 # We need space, tab and new line, in precisely that order. Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
91 IFS=" "" $as_nl"
92
93 # Find who we are. Look in the path if we contain no directory separator.
94 as_myself=
95 case $0 in #((
96 *[\\/]* ) as_myself=$0 ;;
97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98 for as_dir in $PATH
99 do
100 IFS=$as_save_IFS
101 test -z "$as_dir" && as_dir=.
102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103 done
104 IFS=$as_save_IFS
105
106 ;;
107 esac
108 # We did not find ourselves, most probably we were run as `sh COMMAND'
109 # in which case we are not to be found in the path.
110 if test "x$as_myself" = x; then
111 as_myself=$0
112 fi
113 if test ! -f "$as_myself"; then
114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115 exit 1
116 fi
117
118 # Unset variables that we do not need and which cause bugs (e.g. in
119 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
120 # suppresses any "Segmentation fault" message there. '((' could
121 # trigger a bug in pdksh 5.2.14.
122 for as_var in BASH_ENV ENV MAIL MAILPATH
123 do eval test x\${$as_var+set} = xset \
124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
125 done
126 PS1='$ '
127 PS2='> '
128 PS4='+ '
129
130 # NLS nuisances.
131 LC_ALL=C
132 export LC_ALL
133 LANGUAGE=C
134 export LANGUAGE
135
136 # CDPATH.
137 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138
139 if test "x$CONFIG_SHELL" = x; then
140 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141 emulate sh
142 NULLCMD=:
143 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144 # is contrary to our usage. Disable this feature.
145 alias -g '\${1+\"\$@\"}'='\"\$@\"'
146 setopt NO_GLOB_SUBST
147 else
148 case \`(set -o) 2>/dev/null\` in #(
149 *posix*) :
150 set -o posix ;; #(
151 *) :
152 ;;
153 esac
154 fi
155 "
156 as_required="as_fn_return () { (exit \$1); }
157 as_fn_success () { as_fn_return 0; }
158 as_fn_failure () { as_fn_return 1; }
159 as_fn_ret_success () { return 0; }
160 as_fn_ret_failure () { return 1; }
161
162 exitcode=0
163 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168
169 else
170 exitcode=1; echo positional parameters were not saved.
171 fi
172 test x\$exitcode = x0 || exit 1"
173 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177 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-ati'
573 PACKAGE_TARNAME='xf86-video-ati'
574 PACKAGE_VERSION='6.14.6'
575 PACKAGE_STRING='xf86-video-ati 6.14.6'
576 PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
577 PACKAGE_URL=''
578
579 ac_unique_file="Makefile.am"
580 # Factoring default headers for most tests.
581 ac_includes_default="\
582 #include <stdio.h>
583 #ifdef HAVE_SYS_TYPES_H
584 # include <sys/types.h>
585 #endif
586 #ifdef HAVE_SYS_STAT_H
587 # include <sys/stat.h>
588 #endif
589 #ifdef STDC_HEADERS
590 # include <stdlib.h>
591 # include <stddef.h>
592 #else
593 # ifdef HAVE_STDLIB_H
594 # include <stdlib.h>
595 # endif
596 #endif
597 #ifdef HAVE_STRING_H
598 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
599 # include <memory.h>
600 # endif
601 # include <string.h>
602 #endif
603 #ifdef HAVE_STRINGS_H
604 # include <strings.h>
605 #endif
606 #ifdef HAVE_INTTYPES_H
607 # include <inttypes.h>
608 #endif
609 #ifdef HAVE_STDINT_H
610 # include <stdint.h>
611 #endif
612 #ifdef HAVE_UNISTD_H
613 # include <unistd.h>
614 #endif"
615
616 ac_subst_vars='am__EXEEXT_FALSE
617 am__EXEEXT_TRUE
618 LTLIBOBJS
619 LIBOBJS
620 DRIVER_NAME
621 moduledir
622 XSERVER_LIBPCIACCESS_FALSE
623 XSERVER_LIBPCIACCESS_TRUE
624 PCIACCESS_LIBS
625 PCIACCESS_CFLAGS
626 XF86DRM_MODE_FALSE
627 XF86DRM_MODE_TRUE
628 USE_EXA_FALSE
629 USE_EXA_TRUE
630 LIBUDEV_FALSE
631 LIBUDEV_TRUE
632 DRM_MODE_FALSE
633 DRM_MODE_TRUE
634 LIBUDEV_LIBS
635 LIBUDEV_CFLAGS
636 LIBDRM_RADEON_LIBS
637 LIBDRM_RADEON_CFLAGS
638 DRI_FALSE
639 DRI_TRUE
640 DRI_LIBS
641 DRI_CFLAGS
642 HAVE_XEXTPROTO_71_FALSE
643 HAVE_XEXTPROTO_71_TRUE
644 XEXT_LIBS
645 XEXT_CFLAGS
646 XORG_LIBS
647 XORG_CFLAGS
648 OTOOL64
649 OTOOL
650 LIPO
651 NMEDIT
652 DSYMUTIL
653 MANIFEST_TOOL
654 RANLIB
655 ac_ct_AR
656 AR
657 DLLTOOL
658 OBJDUMP
659 LN_S
660 NM
661 ac_ct_DUMPBIN
662 DUMPBIN
663 LD
664 FGREP
665 LIBTOOL
666 MAINT
667 MAINTAINER_MODE_FALSE
668 MAINTAINER_MODE_TRUE
669 am__fastdepCC_FALSE
670 am__fastdepCC_TRUE
671 CCDEPMODE
672 am__nodep
673 AMDEPBACKSLASH
674 AMDEP_FALSE
675 AMDEP_TRUE
676 am__quote
677 am__include
678 DEPDIR
679 am__untar
680 am__tar
681 AMTAR
682 am__leading_dot
683 SET_MAKE
684 AWK
685 mkdir_p
686 MKDIR_P
687 INSTALL_STRIP_PROGRAM
688 STRIP
689 install_sh
690 MAKEINFO
691 AUTOHEADER
692 AUTOMAKE
693 AUTOCONF
694 ACLOCAL
695 VERSION
696 PACKAGE
697 CYGPATH_W
698 am__isrc
699 AM_BACKSLASH
700 AM_DEFAULT_VERBOSITY
701 AM_DEFAULT_V
702 AM_V
703 MAN_SUBSTS
704 XORG_MAN_PAGE
705 ADMIN_MAN_DIR
706 DRIVER_MAN_DIR
707 MISC_MAN_DIR
708 FILE_MAN_DIR
709 LIB_MAN_DIR
710 APP_MAN_DIR
711 ADMIN_MAN_SUFFIX
712 DRIVER_MAN_SUFFIX
713 MISC_MAN_SUFFIX
714 FILE_MAN_SUFFIX
715 LIB_MAN_SUFFIX
716 APP_MAN_SUFFIX
717 SED
718 host_os
719 host_vendor
720 host_cpu
721 host
722 build_os
723 build_vendor
724 build_cpu
725 build
726 INSTALL_CMD
727 PKG_CONFIG_LIBDIR
728 PKG_CONFIG_PATH
729 PKG_CONFIG
730 CHANGELOG_CMD
731 STRICT_CFLAGS
732 CWARNFLAGS
733 BASE_CFLAGS
734 EGREP
735 GREP
736 CPP
737 OBJEXT
738 EXEEXT
739 ac_ct_CC
740 CPPFLAGS
741 LDFLAGS
742 CFLAGS
743 CC
744 INSTALL_DATA
745 INSTALL_SCRIPT
746 INSTALL_PROGRAM
747 target_alias
748 host_alias
749 build_alias
750 LIBS
751 ECHO_T
752 ECHO_N
753 ECHO_C
754 DEFS
755 mandir
756 localedir
757 libdir
758 psdir
759 pdfdir
760 dvidir
761 htmldir
762 infodir
763 docdir
764 oldincludedir
765 includedir
766 localstatedir
767 sharedstatedir
768 sysconfdir
769 datadir
770 datarootdir
771 libexecdir
772 sbindir
773 bindir
774 program_transform_name
775 prefix
776 exec_prefix
777 PACKAGE_URL
778 PACKAGE_BUGREPORT
779 PACKAGE_STRING
780 PACKAGE_VERSION
781 PACKAGE_TARNAME
782 PACKAGE_NAME
783 PATH_SEPARATOR
784 SHELL'
785 ac_subst_files=''
786 ac_user_opts='
787 enable_option_checking
788 enable_selective_werror
789 enable_strict_compilation
790 enable_silent_rules
791 enable_dependency_tracking
792 enable_largefile
793 enable_maintainer_mode
794 enable_static
795 enable_shared
796 with_pic
797 enable_fast_install
798 with_gnu_ld
799 with_sysroot
800 enable_libtool_lock
801 with_xorg_module_dir
802 enable_dri
803 enable_exa
804 enable_kms
805 '
806 ac_precious_vars='build_alias
807 host_alias
808 target_alias
809 CC
810 CFLAGS
811 LDFLAGS
812 LIBS
813 CPPFLAGS
814 CPP
815 PKG_CONFIG
816 PKG_CONFIG_PATH
817 PKG_CONFIG_LIBDIR
818 XORG_CFLAGS
819 XORG_LIBS
820 XEXT_CFLAGS
821 XEXT_LIBS
822 DRI_CFLAGS
823 DRI_LIBS
824 LIBDRM_RADEON_CFLAGS
825 LIBDRM_RADEON_LIBS
826 LIBUDEV_CFLAGS
827 LIBUDEV_LIBS
828 PCIACCESS_CFLAGS
829 PCIACCESS_LIBS'
830
831
832 # Initialize some variables set by options.
833 ac_init_help=
834 ac_init_version=false
835 ac_unrecognized_opts=
836 ac_unrecognized_sep=
837 # The variables have the same names as the options, with
838 # dashes changed to underlines.
839 cache_file=/dev/null
840 exec_prefix=NONE
841 no_create=
842 no_recursion=
843 prefix=NONE
844 program_prefix=NONE
845 program_suffix=NONE
846 program_transform_name=s,x,x,
847 silent=
848 site=
849 srcdir=
850 verbose=
851 x_includes=NONE
852 x_libraries=NONE
853
854 # Installation directory options.
855 # These are left unexpanded so users can "make install exec_prefix=/foo"
856 # and all the variables that are supposed to be based on exec_prefix
857 # by default will actually change.
858 # Use braces instead of parens because sh, perl, etc. also accept them.
859 # (The list follows the same order as the GNU Coding Standards.)
860 bindir='${exec_prefix}/bin'
861 sbindir='${exec_prefix}/sbin'
862 libexecdir='${exec_prefix}/libexec'
863 datarootdir='${prefix}/share'
864 datadir='${datarootdir}'
865 sysconfdir='${prefix}/etc'
866 sharedstatedir='${prefix}/com'
867 localstatedir='${prefix}/var'
868 includedir='${prefix}/include'
869 oldincludedir='/usr/include'
870 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
871 infodir='${datarootdir}/info'
872 htmldir='${docdir}'
873 dvidir='${docdir}'
874 pdfdir='${docdir}'
875 psdir='${docdir}'
876 libdir='${exec_prefix}/lib'
877 localedir='${datarootdir}/locale'
878 mandir='${datarootdir}/man'
879
880 ac_prev=
881 ac_dashdash=
882 for ac_option
883 do
884 # If the previous option needs an argument, assign it.
885 if test -n "$ac_prev"; then
886 eval $ac_prev=\$ac_option
887 ac_prev=
888 continue
889 fi
890
891 case $ac_option in
892 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
893 *=) ac_optarg= ;;
894 *) ac_optarg=yes ;;
895 esac
896
897 # Accept the important Cygnus configure options, so we can diagnose typos.
898
899 case $ac_dashdash$ac_option in
900 --)
901 ac_dashdash=yes ;;
902
903 -bindir | --bindir | --bindi | --bind | --bin | --bi)
904 ac_prev=bindir ;;
905 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
906 bindir=$ac_optarg ;;
907
908 -build | --build | --buil | --bui | --bu)
909 ac_prev=build_alias ;;
910 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
911 build_alias=$ac_optarg ;;
912
913 -cache-file | --cache-file | --cache-fil | --cache-fi \
914 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
915 ac_prev=cache_file ;;
916 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
917 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
918 cache_file=$ac_optarg ;;
919
920 --config-cache | -C)
921 cache_file=config.cache ;;
922
923 -datadir | --datadir | --datadi | --datad)
924 ac_prev=datadir ;;
925 -datadir=* | --datadir=* | --datadi=* | --datad=*)
926 datadir=$ac_optarg ;;
927
928 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
929 | --dataroo | --dataro | --datar)
930 ac_prev=datarootdir ;;
931 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
932 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
933 datarootdir=$ac_optarg ;;
934
935 -disable-* | --disable-*)
936 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
937 # Reject names that are not valid shell variable names.
938 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
939 as_fn_error $? "invalid feature name: $ac_useropt"
940 ac_useropt_orig=$ac_useropt
941 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
942 case $ac_user_opts in
943 *"
944 "enable_$ac_useropt"
945 "*) ;;
946 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
947 ac_unrecognized_sep=', ';;
948 esac
949 eval enable_$ac_useropt=no ;;
950
951 -docdir | --docdir | --docdi | --doc | --do)
952 ac_prev=docdir ;;
953 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
954 docdir=$ac_optarg ;;
955
956 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
957 ac_prev=dvidir ;;
958 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
959 dvidir=$ac_optarg ;;
960
961 -enable-* | --enable-*)
962 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
963 # Reject names that are not valid shell variable names.
964 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
965 as_fn_error $? "invalid feature name: $ac_useropt"
966 ac_useropt_orig=$ac_useropt
967 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
968 case $ac_user_opts in
969 *"
970 "enable_$ac_useropt"
971 "*) ;;
972 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
973 ac_unrecognized_sep=', ';;
974 esac
975 eval enable_$ac_useropt=\$ac_optarg ;;
976
977 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
978 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
979 | --exec | --exe | --ex)
980 ac_prev=exec_prefix ;;
981 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
982 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
983 | --exec=* | --exe=* | --ex=*)
984 exec_prefix=$ac_optarg ;;
985
986 -gas | --gas | --ga | --g)
987 # Obsolete; use --with-gas.
988 with_gas=yes ;;
989
990 -help | --help | --hel | --he | -h)
991 ac_init_help=long ;;
992 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
993 ac_init_help=recursive ;;
994 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
995 ac_init_help=short ;;
996
997 -host | --host | --hos | --ho)
998 ac_prev=host_alias ;;
999 -host=* | --host=* | --hos=* | --ho=*)
1000 host_alias=$ac_optarg ;;
1001
1002 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1003 ac_prev=htmldir ;;
1004 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1005 | --ht=*)
1006 htmldir=$ac_optarg ;;
1007
1008 -includedir | --includedir | --includedi | --included | --include \
1009 | --includ | --inclu | --incl | --inc)
1010 ac_prev=includedir ;;
1011 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1012 | --includ=* | --inclu=* | --incl=* | --inc=*)
1013 includedir=$ac_optarg ;;
1014
1015 -infodir | --infodir | --infodi | --infod | --info | --inf)
1016 ac_prev=infodir ;;
1017 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1018 infodir=$ac_optarg ;;
1019
1020 -libdir | --libdir | --libdi | --libd)
1021 ac_prev=libdir ;;
1022 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1023 libdir=$ac_optarg ;;
1024
1025 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1026 | --libexe | --libex | --libe)
1027 ac_prev=libexecdir ;;
1028 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1029 | --libexe=* | --libex=* | --libe=*)
1030 libexecdir=$ac_optarg ;;
1031
1032 -localedir | --localedir | --localedi | --localed | --locale)
1033 ac_prev=localedir ;;
1034 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1035 localedir=$ac_optarg ;;
1036
1037 -localstatedir | --localstatedir | --localstatedi | --localstated \
1038 | --localstate | --localstat | --localsta | --localst | --locals)
1039 ac_prev=localstatedir ;;
1040 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1041 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1042 localstatedir=$ac_optarg ;;
1043
1044 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1045 ac_prev=mandir ;;
1046 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1047 mandir=$ac_optarg ;;
1048
1049 -nfp | --nfp | --nf)
1050 # Obsolete; use --without-fp.
1051 with_fp=no ;;
1052
1053 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1054 | --no-cr | --no-c | -n)
1055 no_create=yes ;;
1056
1057 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1058 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1059 no_recursion=yes ;;
1060
1061 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1062 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1063 | --oldin | --oldi | --old | --ol | --o)
1064 ac_prev=oldincludedir ;;
1065 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1066 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1067 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1068 oldincludedir=$ac_optarg ;;
1069
1070 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1071 ac_prev=prefix ;;
1072 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1073 prefix=$ac_optarg ;;
1074
1075 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1076 | --program-pre | --program-pr | --program-p)
1077 ac_prev=program_prefix ;;
1078 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1079 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1080 program_prefix=$ac_optarg ;;
1081
1082 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1083 | --program-suf | --program-su | --program-s)
1084 ac_prev=program_suffix ;;
1085 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1086 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1087 program_suffix=$ac_optarg ;;
1088
1089 -program-transform-name | --program-transform-name \
1090 | --program-transform-nam | --program-transform-na \
1091 | --program-transform-n | --program-transform- \
1092 | --program-transform | --program-transfor \
1093 | --program-transfo | --program-transf \
1094 | --program-trans | --program-tran \
1095 | --progr-tra | --program-tr | --program-t)
1096 ac_prev=program_transform_name ;;
1097 -program-transform-name=* | --program-transform-name=* \
1098 | --program-transform-nam=* | --program-transform-na=* \
1099 | --program-transform-n=* | --program-transform-=* \
1100 | --program-transform=* | --program-transfor=* \
1101 | --program-transfo=* | --program-transf=* \
1102 | --program-trans=* | --program-tran=* \
1103 | --progr-tra=* | --program-tr=* | --program-t=*)
1104 program_transform_name=$ac_optarg ;;
1105
1106 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1107 ac_prev=pdfdir ;;
1108 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1109 pdfdir=$ac_optarg ;;
1110
1111 -psdir | --psdir | --psdi | --psd | --ps)
1112 ac_prev=psdir ;;
1113 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1114 psdir=$ac_optarg ;;
1115
1116 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1117 | -silent | --silent | --silen | --sile | --sil)
1118 silent=yes ;;
1119
1120 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1121 ac_prev=sbindir ;;
1122 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1123 | --sbi=* | --sb=*)
1124 sbindir=$ac_optarg ;;
1125
1126 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1127 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1128 | --sharedst | --shareds | --shared | --share | --shar \
1129 | --sha | --sh)
1130 ac_prev=sharedstatedir ;;
1131 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1132 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1133 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1134 | --sha=* | --sh=*)
1135 sharedstatedir=$ac_optarg ;;
1136
1137 -site | --site | --sit)
1138 ac_prev=site ;;
1139 -site=* | --site=* | --sit=*)
1140 site=$ac_optarg ;;
1141
1142 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1143 ac_prev=srcdir ;;
1144 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1145 srcdir=$ac_optarg ;;
1146
1147 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1148 | --syscon | --sysco | --sysc | --sys | --sy)
1149 ac_prev=sysconfdir ;;
1150 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1151 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1152 sysconfdir=$ac_optarg ;;
1153
1154 -target | --target | --targe | --targ | --tar | --ta | --t)
1155 ac_prev=target_alias ;;
1156 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1157 target_alias=$ac_optarg ;;
1158
1159 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1160 verbose=yes ;;
1161
1162 -version | --version | --versio | --versi | --vers | -V)
1163 ac_init_version=: ;;
1164
1165 -with-* | --with-*)
1166 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1167 # Reject names that are not valid shell variable names.
1168 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1169 as_fn_error $? "invalid package name: $ac_useropt"
1170 ac_useropt_orig=$ac_useropt
1171 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1172 case $ac_user_opts in
1173 *"
1174 "with_$ac_useropt"
1175 "*) ;;
1176 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1177 ac_unrecognized_sep=', ';;
1178 esac
1179 eval with_$ac_useropt=\$ac_optarg ;;
1180
1181 -without-* | --without-*)
1182 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1183 # Reject names that are not valid shell variable names.
1184 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1185 as_fn_error $? "invalid package name: $ac_useropt"
1186 ac_useropt_orig=$ac_useropt
1187 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1188 case $ac_user_opts in
1189 *"
1190 "with_$ac_useropt"
1191 "*) ;;
1192 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1193 ac_unrecognized_sep=', ';;
1194 esac
1195 eval with_$ac_useropt=no ;;
1196
1197 --x)
1198 # Obsolete; use --with-x.
1199 with_x=yes ;;
1200
1201 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1202 | --x-incl | --x-inc | --x-in | --x-i)
1203 ac_prev=x_includes ;;
1204 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1205 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1206 x_includes=$ac_optarg ;;
1207
1208 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1209 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1210 ac_prev=x_libraries ;;
1211 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1212 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1213 x_libraries=$ac_optarg ;;
1214
1215 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1216 Try \`$0 --help' for more information"
1217 ;;
1218
1219 *=*)
1220 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1221 # Reject names that are not valid shell variable names.
1222 case $ac_envvar in #(
1223 '' | [0-9]* | *[!_$as_cr_alnum]* )
1224 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1225 esac
1226 eval $ac_envvar=\$ac_optarg
1227 export $ac_envvar ;;
1228
1229 *)
1230 # FIXME: should be removed in autoconf 3.0.
1231 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1232 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1233 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1234 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1235 ;;
1236
1237 esac
1238 done
1239
1240 if test -n "$ac_prev"; then
1241 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1242 as_fn_error $? "missing argument to $ac_option"
1243 fi
1244
1245 if test -n "$ac_unrecognized_opts"; then
1246 case $enable_option_checking in
1247 no) ;;
1248 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1249 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1250 esac
1251 fi
1252
1253 # Check all directory arguments for consistency.
1254 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1255 datadir sysconfdir sharedstatedir localstatedir includedir \
1256 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1257 libdir localedir mandir
1258 do
1259 eval ac_val=\$$ac_var
1260 # Remove trailing slashes.
1261 case $ac_val in
1262 */ )
1263 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1264 eval $ac_var=\$ac_val;;
1265 esac
1266 # Be sure to have absolute directory names.
1267 case $ac_val in
1268 [\\/$]* | ?:[\\/]* ) continue;;
1269 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1270 esac
1271 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1272 done
1273
1274 # There might be people who depend on the old broken behavior: `$host'
1275 # used to hold the argument of --host etc.
1276 # FIXME: To remove some day.
1277 build=$build_alias
1278 host=$host_alias
1279 target=$target_alias
1280
1281 # FIXME: To remove some day.
1282 if test "x$host_alias" != x; then
1283 if test "x$build_alias" = x; then
1284 cross_compiling=maybe
1285 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1286 If a cross compiler is detected then cross compile mode will be used" >&2
1287 elif test "x$build_alias" != "x$host_alias"; then
1288 cross_compiling=yes
1289 fi
1290 fi
1291
1292 ac_tool_prefix=
1293 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1294
1295 test "$silent" = yes && exec 6>/dev/null
1296
1297
1298 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1299 ac_ls_di=`ls -di .` &&
1300 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1301 as_fn_error $? "working directory cannot be determined"
1302 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1303 as_fn_error $? "pwd does not report name of working directory"
1304
1305
1306 # Find the source files, if location was not specified.
1307 if test -z "$srcdir"; then
1308 ac_srcdir_defaulted=yes
1309 # Try the directory containing this script, then the parent directory.
1310 ac_confdir=`$as_dirname -- "$as_myself" ||
1311 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1312 X"$as_myself" : 'X\(//\)[^/]' \| \
1313 X"$as_myself" : 'X\(//\)$' \| \
1314 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1315 $as_echo X"$as_myself" |
1316 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1317 s//\1/
1318 q
1319 }
1320 /^X\(\/\/\)[^/].*/{
1321 s//\1/
1322 q
1323 }
1324 /^X\(\/\/\)$/{
1325 s//\1/
1326 q
1327 }
1328 /^X\(\/\).*/{
1329 s//\1/
1330 q
1331 }
1332 s/.*/./; q'`
1333 srcdir=$ac_confdir
1334 if test ! -r "$srcdir/$ac_unique_file"; then
1335 srcdir=..
1336 fi
1337 else
1338 ac_srcdir_defaulted=no
1339 fi
1340 if test ! -r "$srcdir/$ac_unique_file"; then
1341 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1342 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1343 fi
1344 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1345 ac_abs_confdir=`(
1346 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1347 pwd)`
1348 # When building in place, set srcdir=.
1349 if test "$ac_abs_confdir" = "$ac_pwd"; then
1350 srcdir=.
1351 fi
1352 # Remove unnecessary trailing slashes from srcdir.
1353 # Double slashes in file names in object file debugging info
1354 # mess up M-x gdb in Emacs.
1355 case $srcdir in
1356 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1357 esac
1358 for ac_var in $ac_precious_vars; do
1359 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1360 eval ac_env_${ac_var}_value=\$${ac_var}
1361 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1362 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1363 done
1364
1365 #
1366 # Report the --help message.
1367 #
1368 if test "$ac_init_help" = "long"; then
1369 # Omit some internal or obsolete options to make the list less imposing.
1370 # This message is too long to be a string in the A/UX 3.1 sh.
1371 cat <<_ACEOF
1372 \`configure' configures xf86-video-ati 6.14.6 to adapt to many kinds of systems.
1373
1374 Usage: $0 [OPTION]... [VAR=VALUE]...
1375
1376 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1377 VAR=VALUE. See below for descriptions of some of the useful variables.
1378
1379 Defaults for the options are specified in brackets.
1380
1381 Configuration:
1382 -h, --help display this help and exit
1383 --help=short display options specific to this package
1384 --help=recursive display the short help of all the included packages
1385 -V, --version display version information and exit
1386 -q, --quiet, --silent do not print \`checking ...' messages
1387 --cache-file=FILE cache test results in FILE [disabled]
1388 -C, --config-cache alias for \`--cache-file=config.cache'
1389 -n, --no-create do not create output files
1390 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1391
1392 Installation directories:
1393 --prefix=PREFIX install architecture-independent files in PREFIX
1394 [$ac_default_prefix]
1395 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1396 [PREFIX]
1397
1398 By default, \`make install' will install all the files in
1399 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1400 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1401 for instance \`--prefix=\$HOME'.
1402
1403 For better control, use the options below.
1404
1405 Fine tuning of the installation directories:
1406 --bindir=DIR user executables [EPREFIX/bin]
1407 --sbindir=DIR system admin executables [EPREFIX/sbin]
1408 --libexecdir=DIR program executables [EPREFIX/libexec]
1409 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1410 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1411 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1412 --libdir=DIR object code libraries [EPREFIX/lib]
1413 --includedir=DIR C header files [PREFIX/include]
1414 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1415 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1416 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1417 --infodir=DIR info documentation [DATAROOTDIR/info]
1418 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1419 --mandir=DIR man documentation [DATAROOTDIR/man]
1420 --docdir=DIR documentation root [DATAROOTDIR/doc/xf86-video-ati]
1421 --htmldir=DIR html documentation [DOCDIR]
1422 --dvidir=DIR dvi documentation [DOCDIR]
1423 --pdfdir=DIR pdf documentation [DOCDIR]
1424 --psdir=DIR ps documentation [DOCDIR]
1425 _ACEOF
1426
1427 cat <<\_ACEOF
1428
1429 Program names:
1430 --program-prefix=PREFIX prepend PREFIX to installed program names
1431 --program-suffix=SUFFIX append SUFFIX to installed program names
1432 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1433
1434 System types:
1435 --build=BUILD configure for building on BUILD [guessed]
1436 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1437 _ACEOF
1438 fi
1439
1440 if test -n "$ac_init_help"; then
1441 case $ac_init_help in
1442 short | recursive ) echo "Configuration of xf86-video-ati 6.14.6:";;
1443 esac
1444 cat <<\_ACEOF
1445
1446 Optional Features:
1447 --disable-option-checking ignore unrecognized --enable/--with options
1448 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1449 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1450 --disable-selective-werror
1451 Turn off selective compiler errors. (default:
1452 enabled)
1453 --enable-strict-compilation
1454 Enable all warnings from compiler and make them
1455 errors (default: disabled)
1456 --enable-silent-rules less verbose build output (undo: `make V=1')
1457 --disable-silent-rules verbose build output (undo: `make V=0')
1458 --disable-dependency-tracking speeds up one-time build
1459 --enable-dependency-tracking do not reject slow dependency extractors
1460 --disable-largefile omit support for large files
1461 --enable-maintainer-mode enable make rules and dependencies not useful
1462 (and sometimes confusing) to the casual installer
1463 --enable-static[=PKGS] build static libraries [default=no]
1464 --enable-shared[=PKGS] build shared libraries [default=yes]
1465 --enable-fast-install[=PKGS]
1466 optimize for fast installation [default=yes]
1467 --disable-libtool-lock avoid locking (might break parallel builds)
1468 --disable-dri Disable DRI support [[default=auto]]
1469 --disable-exa Disable EXA support [[default=enabled]]
1470 --disable-kms Disable KMS support [[default=enabled]]
1471
1472 Optional Packages:
1473 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1474 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1475 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1476 both]
1477 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1478 --with-sysroot=DIR Search for dependent libraries within DIR
1479 (or the compiler's sysroot if not specified).
1480 --with-xorg-module-dir=DIR
1481 Default xorg module directory
1482 [[default=$libdir/xorg/modules]]
1483
1484 Some influential environment variables:
1485 CC C compiler command
1486 CFLAGS C compiler flags
1487 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1488 nonstandard directory <lib dir>
1489 LIBS libraries to pass to the linker, e.g. -l<library>
1490 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1491 you have headers in a nonstandard directory <include dir>
1492 CPP C preprocessor
1493 PKG_CONFIG path to pkg-config utility
1494 PKG_CONFIG_PATH
1495 directories to add to pkg-config's search path
1496 PKG_CONFIG_LIBDIR
1497 path overriding pkg-config's built-in search path
1498 XORG_CFLAGS C compiler flags for XORG, overriding pkg-config
1499 XORG_LIBS linker flags for XORG, overriding pkg-config
1500 XEXT_CFLAGS C compiler flags for XEXT, overriding pkg-config
1501 XEXT_LIBS linker flags for XEXT, overriding pkg-config
1502 DRI_CFLAGS C compiler flags for DRI, overriding pkg-config
1503 DRI_LIBS linker flags for DRI, overriding pkg-config
1504 LIBDRM_RADEON_CFLAGS
1505 C compiler flags for LIBDRM_RADEON, overriding pkg-config
1506 LIBDRM_RADEON_LIBS
1507 linker flags for LIBDRM_RADEON, overriding pkg-config
1508 LIBUDEV_CFLAGS
1509 C compiler flags for LIBUDEV, overriding pkg-config
1510 LIBUDEV_LIBS
1511 linker flags for LIBUDEV, overriding pkg-config
1512 PCIACCESS_CFLAGS
1513 C compiler flags for PCIACCESS, overriding pkg-config
1514 PCIACCESS_LIBS
1515 linker flags for PCIACCESS, overriding pkg-config
1516
1517 Use these variables to override the choices made by `configure' or to help
1518 it to find libraries and programs with nonstandard names/locations.
1519
1520 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1521 _ACEOF
1522 ac_status=$?
1523 fi
1524
1525 if test "$ac_init_help" = "recursive"; then
1526 # If there are subdirs, report their specific --help.
1527 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1528 test -d "$ac_dir" ||
1529 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1530 continue
1531 ac_builddir=.
1532
1533 case "$ac_dir" in
1534 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1535 *)
1536 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1537 # A ".." for each directory in $ac_dir_suffix.
1538 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1539 case $ac_top_builddir_sub in
1540 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1541 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1542 esac ;;
1543 esac
1544 ac_abs_top_builddir=$ac_pwd
1545 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1546 # for backward compatibility:
1547 ac_top_builddir=$ac_top_build_prefix
1548
1549 case $srcdir in
1550 .) # We are building in place.
1551 ac_srcdir=.
1552 ac_top_srcdir=$ac_top_builddir_sub
1553 ac_abs_top_srcdir=$ac_pwd ;;
1554 [\\/]* | ?:[\\/]* ) # Absolute name.
1555 ac_srcdir=$srcdir$ac_dir_suffix;
1556 ac_top_srcdir=$srcdir
1557 ac_abs_top_srcdir=$srcdir ;;
1558 *) # Relative name.
1559 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1560 ac_top_srcdir=$ac_top_build_prefix$srcdir
1561 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1562 esac
1563 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1564
1565 cd "$ac_dir" || { ac_status=$?; continue; }
1566 # Check for guested configure.
1567 if test -f "$ac_srcdir/configure.gnu"; then
1568 echo &&
1569 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1570 elif test -f "$ac_srcdir/configure"; then
1571 echo &&
1572 $SHELL "$ac_srcdir/configure" --help=recursive
1573 else
1574 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1575 fi || ac_status=$?
1576 cd "$ac_pwd" || { ac_status=$?; break; }
1577 done
1578 fi
1579
1580 test -n "$ac_init_help" && exit $ac_status
1581 if $ac_init_version; then
1582 cat <<\_ACEOF
1583 xf86-video-ati configure 6.14.6
1584 generated by GNU Autoconf 2.68
1585
1586 Copyright (C) 2010 Free Software Foundation, Inc.
1587 This configure script is free software; the Free Software Foundation
1588 gives unlimited permission to copy, distribute and modify it.
1589 _ACEOF
1590 exit
1591 fi
1592
1593 ## ------------------------ ##
1594 ## Autoconf initialization. ##
1595 ## ------------------------ ##
1596
1597 # ac_fn_c_try_compile LINENO
1598 # --------------------------
1599 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1600 ac_fn_c_try_compile ()
1601 {
1602 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1603 rm -f conftest.$ac_objext
1604 if { { ac_try="$ac_compile"
1605 case "(($ac_try" in
1606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1607 *) ac_try_echo=$ac_try;;
1608 esac
1609 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1610 $as_echo "$ac_try_echo"; } >&5
1611 (eval "$ac_compile") 2>conftest.err
1612 ac_status=$?
1613 if test -s conftest.err; then
1614 grep -v '^ *+' conftest.err >conftest.er1
1615 cat conftest.er1 >&5
1616 mv -f conftest.er1 conftest.err
1617 fi
1618 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1619 test $ac_status = 0; } && {
1620 test -z "$ac_c_werror_flag" ||
1621 test ! -s conftest.err
1622 } && test -s conftest.$ac_objext; then :
1623 ac_retval=0
1624 else
1625 $as_echo "$as_me: failed program was:" >&5
1626 sed 's/^/| /' conftest.$ac_ext >&5
1627
1628 ac_retval=1
1629 fi
1630 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1631 as_fn_set_status $ac_retval
1632
1633 } # ac_fn_c_try_compile
1634
1635 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1636 # ---------------------------------------------
1637 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1638 # accordingly.
1639 ac_fn_c_check_decl ()
1640 {
1641 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1642 as_decl_name=`echo $2|sed 's/ *(.*//'`
1643 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1645 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1646 if eval \${$3+:} false; then :
1647 $as_echo_n "(cached) " >&6
1648 else
1649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1650 /* end confdefs.h. */
1651 $4
1652 int
1653 main ()
1654 {
1655 #ifndef $as_decl_name
1656 #ifdef __cplusplus
1657 (void) $as_decl_use;
1658 #else
1659 (void) $as_decl_name;
1660 #endif
1661 #endif
1662
1663 ;
1664 return 0;
1665 }
1666 _ACEOF
1667 if ac_fn_c_try_compile "$LINENO"; then :
1668 eval "$3=yes"
1669 else
1670 eval "$3=no"
1671 fi
1672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1673 fi
1674 eval ac_res=\$$3
1675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1676 $as_echo "$ac_res" >&6; }
1677 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1678
1679 } # ac_fn_c_check_decl
1680
1681 # ac_fn_c_try_cpp LINENO
1682 # ----------------------
1683 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1684 ac_fn_c_try_cpp ()
1685 {
1686 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1687 if { { ac_try="$ac_cpp conftest.$ac_ext"
1688 case "(($ac_try" in
1689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1690 *) ac_try_echo=$ac_try;;
1691 esac
1692 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1693 $as_echo "$ac_try_echo"; } >&5
1694 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1695 ac_status=$?
1696 if test -s conftest.err; then
1697 grep -v '^ *+' conftest.err >conftest.er1
1698 cat conftest.er1 >&5
1699 mv -f conftest.er1 conftest.err
1700 fi
1701 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1702 test $ac_status = 0; } > conftest.i && {
1703 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1704 test ! -s conftest.err
1705 }; then :
1706 ac_retval=0
1707 else
1708 $as_echo "$as_me: failed program was:" >&5
1709 sed 's/^/| /' conftest.$ac_ext >&5
1710
1711 ac_retval=1
1712 fi
1713 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1714 as_fn_set_status $ac_retval
1715
1716 } # ac_fn_c_try_cpp
1717
1718 # ac_fn_c_try_run LINENO
1719 # ----------------------
1720 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1721 # that executables *can* be run.
1722 ac_fn_c_try_run ()
1723 {
1724 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1725 if { { ac_try="$ac_link"
1726 case "(($ac_try" in
1727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1728 *) ac_try_echo=$ac_try;;
1729 esac
1730 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1731 $as_echo "$ac_try_echo"; } >&5
1732 (eval "$ac_link") 2>&5
1733 ac_status=$?
1734 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1735 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1736 { { case "(($ac_try" in
1737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1738 *) ac_try_echo=$ac_try;;
1739 esac
1740 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1741 $as_echo "$ac_try_echo"; } >&5
1742 (eval "$ac_try") 2>&5
1743 ac_status=$?
1744 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1745 test $ac_status = 0; }; }; then :
1746 ac_retval=0
1747 else
1748 $as_echo "$as_me: program exited with status $ac_status" >&5
1749 $as_echo "$as_me: failed program was:" >&5
1750 sed 's/^/| /' conftest.$ac_ext >&5
1751
1752 ac_retval=$ac_status
1753 fi
1754 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1755 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1756 as_fn_set_status $ac_retval
1757
1758 } # ac_fn_c_try_run
1759
1760 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1761 # -------------------------------------------------------
1762 # Tests whether HEADER exists and can be compiled using the include files in
1763 # INCLUDES, setting the cache variable VAR accordingly.
1764 ac_fn_c_check_header_compile ()
1765 {
1766 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1768 $as_echo_n "checking for $2... " >&6; }
1769 if eval \${$3+:} false; then :
1770 $as_echo_n "(cached) " >&6
1771 else
1772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1773 /* end confdefs.h. */
1774 $4
1775 #include <$2>
1776 _ACEOF
1777 if ac_fn_c_try_compile "$LINENO"; then :
1778 eval "$3=yes"
1779 else
1780 eval "$3=no"
1781 fi
1782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1783 fi
1784 eval ac_res=\$$3
1785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1786 $as_echo "$ac_res" >&6; }
1787 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1788
1789 } # ac_fn_c_check_header_compile
1790
1791 # ac_fn_c_try_link LINENO
1792 # -----------------------
1793 # Try to link conftest.$ac_ext, and return whether this succeeded.
1794 ac_fn_c_try_link ()
1795 {
1796 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1797 rm -f conftest.$ac_objext conftest$ac_exeext
1798 if { { ac_try="$ac_link"
1799 case "(($ac_try" in
1800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1801 *) ac_try_echo=$ac_try;;
1802 esac
1803 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1804 $as_echo "$ac_try_echo"; } >&5
1805 (eval "$ac_link") 2>conftest.err
1806 ac_status=$?
1807 if test -s conftest.err; then
1808 grep -v '^ *+' conftest.err >conftest.er1
1809 cat conftest.er1 >&5
1810 mv -f conftest.er1 conftest.err
1811 fi
1812 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1813 test $ac_status = 0; } && {
1814 test -z "$ac_c_werror_flag" ||
1815 test ! -s conftest.err
1816 } && test -s conftest$ac_exeext && {
1817 test "$cross_compiling" = yes ||
1818 $as_test_x conftest$ac_exeext
1819 }; then :
1820 ac_retval=0
1821 else
1822 $as_echo "$as_me: failed program was:" >&5
1823 sed 's/^/| /' conftest.$ac_ext >&5
1824
1825 ac_retval=1
1826 fi
1827 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1828 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1829 # interfere with the next link command; also delete a directory that is
1830 # left behind by Apple's compiler. We do this before executing the actions.
1831 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1832 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1833 as_fn_set_status $ac_retval
1834
1835 } # ac_fn_c_try_link
1836
1837 # ac_fn_c_check_func LINENO FUNC VAR
1838 # ----------------------------------
1839 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1840 ac_fn_c_check_func ()
1841 {
1842 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1844 $as_echo_n "checking for $2... " >&6; }
1845 if eval \${$3+:} false; then :
1846 $as_echo_n "(cached) " >&6
1847 else
1848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1849 /* end confdefs.h. */
1850 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1851 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1852 #define $2 innocuous_$2
1853
1854 /* System header to define __stub macros and hopefully few prototypes,
1855 which can conflict with char $2 (); below.
1856 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1857 <limits.h> exists even on freestanding compilers. */
1858
1859 #ifdef __STDC__
1860 # include <limits.h>
1861 #else
1862 # include <assert.h>
1863 #endif
1864
1865 #undef $2
1866
1867 /* Override any GCC internal prototype to avoid an error.
1868 Use char because int might match the return type of a GCC
1869 builtin and then its argument prototype would still apply. */
1870 #ifdef __cplusplus
1871 extern "C"
1872 #endif
1873 char $2 ();
1874 /* The GNU C library defines this for functions which it implements
1875 to always fail with ENOSYS. Some functions are actually named
1876 something starting with __ and the normal name is an alias. */
1877 #if defined __stub_$2 || defined __stub___$2
1878 choke me
1879 #endif
1880
1881 int
1882 main ()
1883 {
1884 return $2 ();
1885 ;
1886 return 0;
1887 }
1888 _ACEOF
1889 if ac_fn_c_try_link "$LINENO"; then :
1890 eval "$3=yes"
1891 else
1892 eval "$3=no"
1893 fi
1894 rm -f core conftest.err conftest.$ac_objext \
1895 conftest$ac_exeext conftest.$ac_ext
1896 fi
1897 eval ac_res=\$$3
1898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1899 $as_echo "$ac_res" >&6; }
1900 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1901
1902 } # ac_fn_c_check_func
1903
1904 # ac_fn_c_check_header_preproc LINENO HEADER VAR
1905 # ----------------------------------------------
1906 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
1907 ac_fn_c_check_header_preproc ()
1908 {
1909 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1911 $as_echo_n "checking for $2... " >&6; }
1912 if eval \${$3+:} false; then :
1913 $as_echo_n "(cached) " >&6
1914 else
1915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1916 /* end confdefs.h. */
1917 #include <$2>
1918 _ACEOF
1919 if ac_fn_c_try_cpp "$LINENO"; then :
1920 eval "$3=yes"
1921 else
1922 eval "$3=no"
1923 fi
1924 rm -f conftest.err conftest.i conftest.$ac_ext
1925 fi
1926 eval ac_res=\$$3
1927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1928 $as_echo "$ac_res" >&6; }
1929 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1930
1931 } # ac_fn_c_check_header_preproc
1932
1933 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1934 # -------------------------------------------------------
1935 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1936 # the include files in INCLUDES and setting the cache variable VAR
1937 # accordingly.
1938 ac_fn_c_check_header_mongrel ()
1939 {
1940 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1941 if eval \${$3+:} false; then :
1942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1943 $as_echo_n "checking for $2... " >&6; }
1944 if eval \${$3+:} false; then :
1945 $as_echo_n "(cached) " >&6
1946 fi
1947 eval ac_res=\$$3
1948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1949 $as_echo "$ac_res" >&6; }
1950 else
1951 # Is the header compilable?
1952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1953 $as_echo_n "checking $2 usability... " >&6; }
1954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1955 /* end confdefs.h. */
1956 $4
1957 #include <$2>
1958 _ACEOF
1959 if ac_fn_c_try_compile "$LINENO"; then :
1960 ac_header_compiler=yes
1961 else
1962 ac_header_compiler=no
1963 fi
1964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1966 $as_echo "$ac_header_compiler" >&6; }
1967
1968 # Is the header present?
1969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1970 $as_echo_n "checking $2 presence... " >&6; }
1971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1972 /* end confdefs.h. */
1973 #include <$2>
1974 _ACEOF
1975 if ac_fn_c_try_cpp "$LINENO"; then :
1976 ac_header_preproc=yes
1977 else
1978 ac_header_preproc=no
1979 fi
1980 rm -f conftest.err conftest.i conftest.$ac_ext
1981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1982 $as_echo "$ac_header_preproc" >&6; }
1983
1984 # So? What about this header?
1985 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1986 yes:no: )
1987 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1988 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1989 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1990 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1991 ;;
1992 no:yes:* )
1993 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1994 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1995 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1996 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1997 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1998 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1999 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2000 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2001 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2002 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2003 ( $as_echo "## ---------------------------------------------------------------------- ##
2004 ## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
2005 ## ---------------------------------------------------------------------- ##"
2006 ) | sed "s/^/$as_me: WARNING: /" >&2
2007 ;;
2008 esac
2009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2010 $as_echo_n "checking for $2... " >&6; }
2011 if eval \${$3+:} false; then :
2012 $as_echo_n "(cached) " >&6
2013 else
2014 eval "$3=\$ac_header_compiler"
2015 fi
2016 eval ac_res=\$$3
2017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2018 $as_echo "$ac_res" >&6; }
2019 fi
2020 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2021
2022 } # ac_fn_c_check_header_mongrel
2023 cat >config.log <<_ACEOF
2024 This file contains any messages produced by compilers while
2025 running configure, to aid debugging if configure makes a mistake.
2026
2027 It was created by xf86-video-ati $as_me 6.14.6, which was
2028 generated by GNU Autoconf 2.68. Invocation command line was
2029
2030 $ $0 $@
2031
2032 _ACEOF
2033 exec 5>>config.log
2034 {
2035 cat <<_ASUNAME
2036 ## --------- ##
2037 ## Platform. ##
2038 ## --------- ##
2039
2040 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2041 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2042 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2043 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2044 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2045
2046 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2047 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2048
2049 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2050 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2051 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2052 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2053 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2054 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2055 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2056
2057 _ASUNAME
2058
2059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2060 for as_dir in $PATH
2061 do
2062 IFS=$as_save_IFS
2063 test -z "$as_dir" && as_dir=.
2064 $as_echo "PATH: $as_dir"
2065 done
2066 IFS=$as_save_IFS
2067
2068 } >&5
2069
2070 cat >&5 <<_ACEOF
2071
2072
2073 ## ----------- ##
2074 ## Core tests. ##
2075 ## ----------- ##
2076
2077 _ACEOF
2078
2079
2080 # Keep a trace of the command line.
2081 # Strip out --no-create and --no-recursion so they do not pile up.
2082 # Strip out --silent because we don't want to record it for future runs.
2083 # Also quote any args containing shell meta-characters.
2084 # Make two passes to allow for proper duplicate-argument suppression.
2085 ac_configure_args=
2086 ac_configure_args0=
2087 ac_configure_args1=
2088 ac_must_keep_next=false
2089 for ac_pass in 1 2
2090 do
2091 for ac_arg
2092 do
2093 case $ac_arg in
2094 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2095 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2096 | -silent | --silent | --silen | --sile | --sil)
2097 continue ;;
2098 *\'*)
2099 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2100 esac
2101 case $ac_pass in
2102 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2103 2)
2104 as_fn_append ac_configure_args1 " '$ac_arg'"
2105 if test $ac_must_keep_next = true; then
2106 ac_must_keep_next=false # Got value, back to normal.
2107 else
2108 case $ac_arg in
2109 *=* | --config-cache | -C | -disable-* | --disable-* \
2110 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2111 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2112 | -with-* | --with-* | -without-* | --without-* | --x)
2113 case "$ac_configure_args0 " in
2114 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2115 esac
2116 ;;
2117 -* ) ac_must_keep_next=true ;;
2118 esac
2119 fi
2120 as_fn_append ac_configure_args " '$ac_arg'"
2121 ;;
2122 esac
2123 done
2124 done
2125 { ac_configure_args0=; unset ac_configure_args0;}
2126 { ac_configure_args1=; unset ac_configure_args1;}
2127
2128 # When interrupted or exit'd, cleanup temporary files, and complete
2129 # config.log. We remove comments because anyway the quotes in there
2130 # would cause problems or look ugly.
2131 # WARNING: Use '\'' to represent an apostrophe within the trap.
2132 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2133 trap 'exit_status=$?
2134 # Save into config.log some information that might help in debugging.
2135 {
2136 echo
2137
2138 $as_echo "## ---------------- ##
2139 ## Cache variables. ##
2140 ## ---------------- ##"
2141 echo
2142 # The following way of writing the cache mishandles newlines in values,
2143 (
2144 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2145 eval ac_val=\$$ac_var
2146 case $ac_val in #(
2147 *${as_nl}*)
2148 case $ac_var in #(
2149 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2150 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2151 esac
2152 case $ac_var in #(
2153 _ | IFS | as_nl) ;; #(
2154 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2155 *) { eval $ac_var=; unset $ac_var;} ;;
2156 esac ;;
2157 esac
2158 done
2159 (set) 2>&1 |
2160 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2161 *${as_nl}ac_space=\ *)
2162 sed -n \
2163 "s/'\''/'\''\\\\'\'''\''/g;
2164 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2165 ;; #(
2166 *)
2167 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2168 ;;
2169 esac |
2170 sort
2171 )
2172 echo
2173
2174 $as_echo "## ----------------- ##
2175 ## Output variables. ##
2176 ## ----------------- ##"
2177 echo
2178 for ac_var in $ac_subst_vars
2179 do
2180 eval ac_val=\$$ac_var
2181 case $ac_val in
2182 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2183 esac
2184 $as_echo "$ac_var='\''$ac_val'\''"
2185 done | sort
2186 echo
2187
2188 if test -n "$ac_subst_files"; then
2189 $as_echo "## ------------------- ##
2190 ## File substitutions. ##
2191 ## ------------------- ##"
2192 echo
2193 for ac_var in $ac_subst_files
2194 do
2195 eval ac_val=\$$ac_var
2196 case $ac_val in
2197 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2198 esac
2199 $as_echo "$ac_var='\''$ac_val'\''"
2200 done | sort
2201 echo
2202 fi
2203
2204 if test -s confdefs.h; then
2205 $as_echo "## ----------- ##
2206 ## confdefs.h. ##
2207 ## ----------- ##"
2208 echo
2209 cat confdefs.h
2210 echo
2211 fi
2212 test "$ac_signal" != 0 &&
2213 $as_echo "$as_me: caught signal $ac_signal"
2214 $as_echo "$as_me: exit $exit_status"
2215 } >&5
2216 rm -f core *.core core.conftest.* &&
2217 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2218 exit $exit_status
2219 ' 0
2220 for ac_signal in 1 2 13 15; do
2221 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2222 done
2223 ac_signal=0
2224
2225 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2226 rm -f -r conftest* confdefs.h
2227
2228 $as_echo "/* confdefs.h */" > confdefs.h
2229
2230 # Predefined preprocessor variables.
2231
2232 cat >>confdefs.h <<_ACEOF
2233 #define PACKAGE_NAME "$PACKAGE_NAME"
2234 _ACEOF
2235
2236 cat >>confdefs.h <<_ACEOF
2237 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2238 _ACEOF
2239
2240 cat >>confdefs.h <<_ACEOF
2241 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2242 _ACEOF
2243
2244 cat >>confdefs.h <<_ACEOF
2245 #define PACKAGE_STRING "$PACKAGE_STRING"
2246 _ACEOF
2247
2248 cat >>confdefs.h <<_ACEOF
2249 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2250 _ACEOF
2251
2252 cat >>confdefs.h <<_ACEOF
2253 #define PACKAGE_URL "$PACKAGE_URL"
2254 _ACEOF
2255
2256
2257 # Let the site file select an alternate cache file if it wants to.
2258 # Prefer an explicitly selected file to automatically selected ones.
2259 ac_site_file1=NONE
2260 ac_site_file2=NONE
2261 if test -n "$CONFIG_SITE"; then
2262 # We do not want a PATH search for config.site.
2263 case $CONFIG_SITE in #((
2264 -*) ac_site_file1=./$CONFIG_SITE;;
2265 */*) ac_site_file1=$CONFIG_SITE;;
2266 *) ac_site_file1=./$CONFIG_SITE;;
2267 esac
2268 elif test "x$prefix" != xNONE; then
2269 ac_site_file1=$prefix/share/config.site
2270 ac_site_file2=$prefix/etc/config.site
2271 else
2272 ac_site_file1=$ac_default_prefix/share/config.site
2273 ac_site_file2=$ac_default_prefix/etc/config.site
2274 fi
2275 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2276 do
2277 test "x$ac_site_file" = xNONE && continue
2278 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2279 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2280 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2281 sed 's/^/| /' "$ac_site_file" >&5
2282 . "$ac_site_file" \
2283 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2284 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2285 as_fn_error $? "failed to load site script $ac_site_file
2286 See \`config.log' for more details" "$LINENO" 5; }
2287 fi
2288 done
2289
2290 if test -r "$cache_file"; then
2291 # Some versions of bash will fail to source /dev/null (special files
2292 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2293 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2294 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2295 $as_echo "$as_me: loading cache $cache_file" >&6;}
2296 case $cache_file in
2297 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2298 *) . "./$cache_file";;
2299 esac
2300 fi
2301 else
2302 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2303 $as_echo "$as_me: creating cache $cache_file" >&6;}
2304 >$cache_file
2305 fi
2306
2307 # Check that the precious variables saved in the cache have kept the same
2308 # value.
2309 ac_cache_corrupted=false
2310 for ac_var in $ac_precious_vars; do
2311 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2312 eval ac_new_set=\$ac_env_${ac_var}_set
2313 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2314 eval ac_new_val=\$ac_env_${ac_var}_value
2315 case $ac_old_set,$ac_new_set in
2316 set,)
2317 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2318 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2319 ac_cache_corrupted=: ;;
2320 ,set)
2321 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2322 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2323 ac_cache_corrupted=: ;;
2324 ,);;
2325 *)
2326 if test "x$ac_old_val" != "x$ac_new_val"; then
2327 # differences in whitespace do not lead to failure.
2328 ac_old_val_w=`echo x $ac_old_val`
2329 ac_new_val_w=`echo x $ac_new_val`
2330 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2331 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2332 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2333 ac_cache_corrupted=:
2334 else
2335 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2336 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2337 eval $ac_var=\$ac_old_val
2338 fi
2339 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2340 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2341 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2342 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2343 fi;;
2344 esac
2345 # Pass precious variables to config.status.
2346 if test "$ac_new_set" = set; then
2347 case $ac_new_val in
2348 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2349 *) ac_arg=$ac_var=$ac_new_val ;;
2350 esac
2351 case " $ac_configure_args " in
2352 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2353 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2354 esac
2355 fi
2356 done
2357 if $ac_cache_corrupted; then
2358 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2359 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2360 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2361 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2362 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2363 fi
2364 ## -------------------- ##
2365 ## Main body of script. ##
2366 ## -------------------- ##
2367
2368 ac_ext=c
2369 ac_cpp='$CPP $CPPFLAGS'
2370 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2371 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2372 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2373
2374
2375
2376
2377 ac_config_headers="$ac_config_headers config.h"
2378
2379
2380 # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392 ac_aux_dir=
2393 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2394 if test -f "$ac_dir/install-sh"; then
2395 ac_aux_dir=$ac_dir
2396 ac_install_sh="$ac_aux_dir/install-sh -c"
2397 break
2398 elif test -f "$ac_dir/install.sh"; then
2399 ac_aux_dir=$ac_dir
2400 ac_install_sh="$ac_aux_dir/install.sh -c"
2401 break
2402 elif test -f "$ac_dir/shtool"; then
2403 ac_aux_dir=$ac_dir
2404 ac_install_sh="$ac_aux_dir/shtool install -c"
2405 break
2406 fi
2407 done
2408 if test -z "$ac_aux_dir"; then
2409 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2410 fi
2411
2412 # These three variables are undocumented and unsupported,
2413 # and are intended to be withdrawn in a future Autoconf release.
2414 # They can cause serious problems if a builder's source tree is in a directory
2415 # whose full name contains unusual characters.
2416 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2417 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2418 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2419
2420
2421 # Find a good install program. We prefer a C program (faster),
2422 # so one script is as good as another. But avoid the broken or
2423 # incompatible versions:
2424 # SysV /etc/install, /usr/sbin/install
2425 # SunOS /usr/etc/install
2426 # IRIX /sbin/install
2427 # AIX /bin/install
2428 # AmigaOS /C/install, which installs bootblocks on floppy discs
2429 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2430 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2431 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2432 # OS/2's system install, which has a completely different semantic
2433 # ./install, which can be erroneously created by make from ./install.sh.
2434 # Reject install programs that cannot install multiple files.
2435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2436 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2437 if test -z "$INSTALL"; then
2438 if ${ac_cv_path_install+:} false; then :
2439 $as_echo_n "(cached) " >&6
2440 else
2441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2442 for as_dir in $PATH
2443 do
2444 IFS=$as_save_IFS
2445 test -z "$as_dir" && as_dir=.
2446 # Account for people who put trailing slashes in PATH elements.
2447 case $as_dir/ in #((
2448 ./ | .// | /[cC]/* | \
2449 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2450 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2451 /usr/ucb/* ) ;;
2452 *)
2453 # OSF1 and SCO ODT 3.0 have their own names for install.
2454 # Don't use installbsd from OSF since it installs stuff as root
2455 # by default.
2456 for ac_prog in ginstall scoinst install; do
2457 for ac_exec_ext in '' $ac_executable_extensions; do
2458 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2459 if test $ac_prog = install &&
2460 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2461 # AIX install. It has an incompatible calling convention.
2462 :
2463 elif test $ac_prog = install &&
2464 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2465 # program-specific install script used by HP pwplus--don't use.
2466 :
2467 else
2468 rm -rf conftest.one conftest.two conftest.dir
2469 echo one > conftest.one
2470 echo two > conftest.two
2471 mkdir conftest.dir
2472 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2473 test -s conftest.one && test -s conftest.two &&
2474 test -s conftest.dir/conftest.one &&
2475 test -s conftest.dir/conftest.two
2476 then
2477 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2478 break 3
2479 fi
2480 fi
2481 fi
2482 done
2483 done
2484 ;;
2485 esac
2486
2487 done
2488 IFS=$as_save_IFS
2489
2490 rm -rf conftest.one conftest.two conftest.dir
2491
2492 fi
2493 if test "${ac_cv_path_install+set}" = set; then
2494 INSTALL=$ac_cv_path_install
2495 else
2496 # As a last resort, use the slow shell script. Don't cache a
2497 # value for INSTALL within a source directory, because that will
2498 # break other packages using the cache if that directory is
2499 # removed, or if the value is a relative name.
2500 INSTALL=$ac_install_sh
2501 fi
2502 fi
2503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2504 $as_echo "$INSTALL" >&6; }
2505
2506 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2507 # It thinks the first close brace ends the variable substitution.
2508 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2509
2510 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2511
2512 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2513
2514 ac_ext=c
2515 ac_cpp='$CPP $CPPFLAGS'
2516 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2517 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2518 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2519 if test -n "$ac_tool_prefix"; then
2520 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2521 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2523 $as_echo_n "checking for $ac_word... " >&6; }
2524 if ${ac_cv_prog_CC+:} false; then :
2525 $as_echo_n "(cached) " >&6
2526 else
2527 if test -n "$CC"; then
2528 ac_cv_prog_CC="$CC" # Let the user override the test.
2529 else
2530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2531 for as_dir in $PATH
2532 do
2533 IFS=$as_save_IFS
2534 test -z "$as_dir" && as_dir=.
2535 for ac_exec_ext in '' $ac_executable_extensions; do
2536 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2537 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2538 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2539 break 2
2540 fi
2541 done
2542 done
2543 IFS=$as_save_IFS
2544
2545 fi
2546 fi
2547 CC=$ac_cv_prog_CC
2548 if test -n "$CC"; then
2549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2550 $as_echo "$CC" >&6; }
2551 else
2552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2553 $as_echo "no" >&6; }
2554 fi
2555
2556
2557 fi
2558 if test -z "$ac_cv_prog_CC"; then
2559 ac_ct_CC=$CC
2560 # Extract the first word of "gcc", so it can be a program name with args.
2561 set dummy gcc; ac_word=$2
2562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2563 $as_echo_n "checking for $ac_word... " >&6; }
2564 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2565 $as_echo_n "(cached) " >&6
2566 else
2567 if test -n "$ac_ct_CC"; then
2568 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2569 else
2570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2571 for as_dir in $PATH
2572 do
2573 IFS=$as_save_IFS
2574 test -z "$as_dir" && as_dir=.
2575 for ac_exec_ext in '' $ac_executable_extensions; do
2576 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2577 ac_cv_prog_ac_ct_CC="gcc"
2578 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2579 break 2
2580 fi
2581 done
2582 done
2583 IFS=$as_save_IFS
2584
2585 fi
2586 fi
2587 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2588 if test -n "$ac_ct_CC"; then
2589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2590 $as_echo "$ac_ct_CC" >&6; }
2591 else
2592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2593 $as_echo "no" >&6; }
2594 fi
2595
2596 if test "x$ac_ct_CC" = x; then
2597 CC=""
2598 else
2599 case $cross_compiling:$ac_tool_warned in
2600 yes:)
2601 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2602 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2603 ac_tool_warned=yes ;;
2604 esac
2605 CC=$ac_ct_CC
2606 fi
2607 else
2608 CC="$ac_cv_prog_CC"
2609 fi
2610
2611 if test -z "$CC"; then
2612 if test -n "$ac_tool_prefix"; then
2613 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2614 set dummy ${ac_tool_prefix}cc; ac_word=$2
2615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2616 $as_echo_n "checking for $ac_word... " >&6; }
2617 if ${ac_cv_prog_CC+:} false; then :
2618 $as_echo_n "(cached) " >&6
2619 else
2620 if test -n "$CC"; then
2621 ac_cv_prog_CC="$CC" # Let the user override the test.
2622 else
2623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2624 for as_dir in $PATH
2625 do
2626 IFS=$as_save_IFS
2627 test -z "$as_dir" && as_dir=.
2628 for ac_exec_ext in '' $ac_executable_extensions; do
2629 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2630 ac_cv_prog_CC="${ac_tool_prefix}cc"
2631 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2632 break 2
2633 fi
2634 done
2635 done
2636 IFS=$as_save_IFS
2637
2638 fi
2639 fi
2640 CC=$ac_cv_prog_CC
2641 if test -n "$CC"; then
2642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2643 $as_echo "$CC" >&6; }
2644 else
2645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2646 $as_echo "no" >&6; }
2647 fi
2648
2649
2650 fi
2651 fi
2652 if test -z "$CC"; then
2653 # Extract the first word of "cc", so it can be a program name with args.
2654 set dummy cc; ac_word=$2
2655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2656 $as_echo_n "checking for $ac_word... " >&6; }
2657 if ${ac_cv_prog_CC+:} false; then :
2658 $as_echo_n "(cached) " >&6
2659 else
2660 if test -n "$CC"; then
2661 ac_cv_prog_CC="$CC" # Let the user override the test.
2662 else
2663 ac_prog_rejected=no
2664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2665 for as_dir in $PATH
2666 do
2667 IFS=$as_save_IFS
2668 test -z "$as_dir" && as_dir=.
2669 for ac_exec_ext in '' $ac_executable_extensions; do
2670 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2671 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2672 ac_prog_rejected=yes
2673 continue
2674 fi
2675 ac_cv_prog_CC="cc"
2676 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2677 break 2
2678 fi
2679 done
2680 done
2681 IFS=$as_save_IFS
2682
2683 if test $ac_prog_rejected = yes; then
2684 # We found a bogon in the path, so make sure we never use it.
2685 set dummy $ac_cv_prog_CC
2686 shift
2687 if test $# != 0; then
2688 # We chose a different compiler from the bogus one.
2689 # However, it has the same basename, so the bogon will be chosen
2690 # first if we set CC to just the basename; use the full file name.
2691 shift
2692 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2693 fi
2694 fi
2695 fi
2696 fi
2697 CC=$ac_cv_prog_CC
2698 if test -n "$CC"; then
2699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2700 $as_echo "$CC" >&6; }
2701 else
2702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2703 $as_echo "no" >&6; }
2704 fi
2705
2706
2707 fi
2708 if test -z "$CC"; then
2709 if test -n "$ac_tool_prefix"; then
2710 for ac_prog in cl.exe
2711 do
2712 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2713 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2715 $as_echo_n "checking for $ac_word... " >&6; }
2716 if ${ac_cv_prog_CC+:} false; then :
2717 $as_echo_n "(cached) " >&6
2718 else
2719 if test -n "$CC"; then
2720 ac_cv_prog_CC="$CC" # Let the user override the test.
2721 else
2722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2723 for as_dir in $PATH
2724 do
2725 IFS=$as_save_IFS
2726 test -z "$as_dir" && as_dir=.
2727 for ac_exec_ext in '' $ac_executable_extensions; do
2728 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2729 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2730 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2731 break 2
2732 fi
2733 done
2734 done
2735 IFS=$as_save_IFS
2736
2737 fi
2738 fi
2739 CC=$ac_cv_prog_CC
2740 if test -n "$CC"; then
2741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2742 $as_echo "$CC" >&6; }
2743 else
2744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2745 $as_echo "no" >&6; }
2746 fi
2747
2748
2749 test -n "$CC" && break
2750 done
2751 fi
2752 if test -z "$CC"; then
2753 ac_ct_CC=$CC
2754 for ac_prog in cl.exe
2755 do
2756 # Extract the first word of "$ac_prog", so it can be a program name with args.
2757 set dummy $ac_prog; ac_word=$2
2758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2759 $as_echo_n "checking for $ac_word... " >&6; }
2760 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2761 $as_echo_n "(cached) " >&6
2762 else
2763 if test -n "$ac_ct_CC"; then
2764 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2765 else
2766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2767 for as_dir in $PATH
2768 do
2769 IFS=$as_save_IFS
2770 test -z "$as_dir" && as_dir=.
2771 for ac_exec_ext in '' $ac_executable_extensions; do
2772 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2773 ac_cv_prog_ac_ct_CC="$ac_prog"
2774 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2775 break 2
2776 fi
2777 done
2778 done
2779 IFS=$as_save_IFS
2780
2781 fi
2782 fi
2783 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2784 if test -n "$ac_ct_CC"; then
2785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2786 $as_echo "$ac_ct_CC" >&6; }
2787 else
2788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2789 $as_echo "no" >&6; }
2790 fi
2791
2792
2793 test -n "$ac_ct_CC" && break
2794 done
2795
2796 if test "x$ac_ct_CC" = x; then
2797 CC=""
2798 else
2799 case $cross_compiling:$ac_tool_warned in
2800 yes:)
2801 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2802 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2803 ac_tool_warned=yes ;;
2804 esac
2805 CC=$ac_ct_CC
2806 fi
2807 fi
2808
2809 fi
2810
2811
2812 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2813 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2814 as_fn_error $? "no acceptable C compiler found in \$PATH
2815 See \`config.log' for more details" "$LINENO" 5; }
2816
2817 # Provide some information about the compiler.
2818 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2819 set X $ac_compile
2820 ac_compiler=$2
2821 for ac_option in --version -v -V -qversion; do
2822 { { ac_try="$ac_compiler $ac_option >&5"
2823 case "(($ac_try" in
2824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2825 *) ac_try_echo=$ac_try;;
2826 esac
2827 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2828 $as_echo "$ac_try_echo"; } >&5
2829 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2830 ac_status=$?
2831 if test -s conftest.err; then
2832 sed '10a\
2833 ... rest of stderr output deleted ...
2834 10q' conftest.err >conftest.er1
2835 cat conftest.er1 >&5
2836 fi
2837 rm -f conftest.er1 conftest.err
2838 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2839 test $ac_status = 0; }
2840 done
2841
2842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2843 /* end confdefs.h. */
2844
2845 int
2846 main ()
2847 {
2848
2849 ;
2850 return 0;
2851 }
2852 _ACEOF
2853 ac_clean_files_save=$ac_clean_files
2854 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2855 # Try to create an executable without -o first, disregard a.out.
2856 # It will help us diagnose broken compilers, and finding out an intuition
2857 # of exeext.
2858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2859 $as_echo_n "checking whether the C compiler works... " >&6; }
2860 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2861
2862 # The possible output files:
2863 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2864
2865 ac_rmfiles=
2866 for ac_file in $ac_files
2867 do
2868 case $ac_file in
2869 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2870 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2871 esac
2872 done
2873 rm -f $ac_rmfiles
2874
2875 if { { ac_try="$ac_link_default"
2876 case "(($ac_try" in
2877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2878 *) ac_try_echo=$ac_try;;
2879 esac
2880 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2881 $as_echo "$ac_try_echo"; } >&5
2882 (eval "$ac_link_default") 2>&5
2883 ac_status=$?
2884 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2885 test $ac_status = 0; }; then :
2886 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2887 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2888 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2889 # so that the user can short-circuit this test for compilers unknown to
2890 # Autoconf.
2891 for ac_file in $ac_files ''
2892 do
2893 test -f "$ac_file" || continue
2894 case $ac_file in
2895 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2896 ;;
2897 [ab].out )
2898 # We found the default executable, but exeext='' is most
2899 # certainly right.
2900 break;;
2901 *.* )
2902 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2903 then :; else
2904 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2905 fi
2906 # We set ac_cv_exeext here because the later test for it is not
2907 # safe: cross compilers may not add the suffix if given an `-o'
2908 # argument, so we may need to know it at that point already.
2909 # Even if this section looks crufty: it has the advantage of
2910 # actually working.
2911 break;;
2912 * )
2913 break;;
2914 esac
2915 done
2916 test "$ac_cv_exeext" = no && ac_cv_exeext=
2917
2918 else
2919 ac_file=''
2920 fi
2921 if test -z "$ac_file"; then :
2922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2923 $as_echo "no" >&6; }
2924 $as_echo "$as_me: failed program was:" >&5
2925 sed 's/^/| /' conftest.$ac_ext >&5
2926
2927 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2928 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2929 as_fn_error 77 "C compiler cannot create executables
2930 See \`config.log' for more details" "$LINENO" 5; }
2931 else
2932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2933 $as_echo "yes" >&6; }
2934 fi
2935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2936 $as_echo_n "checking for C compiler default output file name... " >&6; }
2937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2938 $as_echo "$ac_file" >&6; }
2939 ac_exeext=$ac_cv_exeext
2940
2941 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2942 ac_clean_files=$ac_clean_files_save
2943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2944 $as_echo_n "checking for suffix of executables... " >&6; }
2945 if { { ac_try="$ac_link"
2946 case "(($ac_try" in
2947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2948 *) ac_try_echo=$ac_try;;
2949 esac
2950 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2951 $as_echo "$ac_try_echo"; } >&5
2952 (eval "$ac_link") 2>&5
2953 ac_status=$?
2954 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2955 test $ac_status = 0; }; then :
2956 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2957 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2958 # work properly (i.e., refer to `conftest.exe'), while it won't with
2959 # `rm'.
2960 for ac_file in conftest.exe conftest conftest.*; do
2961 test -f "$ac_file" || continue
2962 case $ac_file in
2963 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2964 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2965 break;;
2966 * ) break;;
2967 esac
2968 done
2969 else
2970 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2971 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2972 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2973 See \`config.log' for more details" "$LINENO" 5; }
2974 fi
2975 rm -f conftest conftest$ac_cv_exeext
2976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2977 $as_echo "$ac_cv_exeext" >&6; }
2978
2979 rm -f conftest.$ac_ext
2980 EXEEXT=$ac_cv_exeext
2981 ac_exeext=$EXEEXT
2982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2983 /* end confdefs.h. */
2984 #include <stdio.h>
2985 int
2986 main ()
2987 {
2988 FILE *f = fopen ("conftest.out", "w");
2989 return ferror (f) || fclose (f) != 0;
2990
2991 ;
2992 return 0;
2993 }
2994 _ACEOF
2995 ac_clean_files="$ac_clean_files conftest.out"
2996 # Check that the compiler produces executables we can run. If not, either
2997 # the compiler is broken, or we cross compile.
2998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2999 $as_echo_n "checking whether we are cross compiling... " >&6; }
3000 if test "$cross_compiling" != yes; then
3001 { { ac_try="$ac_link"
3002 case "(($ac_try" in
3003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3004 *) ac_try_echo=$ac_try;;
3005 esac
3006 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3007 $as_echo "$ac_try_echo"; } >&5
3008 (eval "$ac_link") 2>&5
3009 ac_status=$?
3010 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3011 test $ac_status = 0; }
3012 if { ac_try='./conftest$ac_cv_exeext'
3013 { { case "(($ac_try" in
3014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3015 *) ac_try_echo=$ac_try;;
3016 esac
3017 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3018 $as_echo "$ac_try_echo"; } >&5
3019 (eval "$ac_try") 2>&5
3020 ac_status=$?
3021 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3022 test $ac_status = 0; }; }; then
3023 cross_compiling=no
3024 else
3025 if test "$cross_compiling" = maybe; then
3026 cross_compiling=yes
3027 else
3028 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3029 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3030 as_fn_error $? "cannot run C compiled programs.
3031 If you meant to cross compile, use \`--host'.
3032 See \`config.log' for more details" "$LINENO" 5; }
3033 fi
3034 fi
3035 fi
3036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3037 $as_echo "$cross_compiling" >&6; }
3038
3039 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3040 ac_clean_files=$ac_clean_files_save
3041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3042 $as_echo_n "checking for suffix of object files... " >&6; }
3043 if ${ac_cv_objext+:} false; then :
3044 $as_echo_n "(cached) " >&6
3045 else
3046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3047 /* end confdefs.h. */
3048
3049 int
3050 main ()
3051 {
3052
3053 ;
3054 return 0;
3055 }
3056 _ACEOF
3057 rm -f conftest.o conftest.obj
3058 if { { ac_try="$ac_compile"
3059 case "(($ac_try" in
3060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3061 *) ac_try_echo=$ac_try;;
3062 esac
3063 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3064 $as_echo "$ac_try_echo"; } >&5
3065 (eval "$ac_compile") 2>&5
3066 ac_status=$?
3067 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3068 test $ac_status = 0; }; then :
3069 for ac_file in conftest.o conftest.obj conftest.*; do
3070 test -f "$ac_file" || continue;
3071 case $ac_file in
3072 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3073 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3074 break;;
3075 esac
3076 done
3077 else
3078 $as_echo "$as_me: failed program was:" >&5
3079 sed 's/^/| /' conftest.$ac_ext >&5
3080
3081 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3082 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3083 as_fn_error $? "cannot compute suffix of object files: cannot compile
3084 See \`config.log' for more details" "$LINENO" 5; }
3085 fi
3086 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3087 fi
3088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3089 $as_echo "$ac_cv_objext" >&6; }
3090 OBJEXT=$ac_cv_objext
3091 ac_objext=$OBJEXT
3092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3093 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3094 if ${ac_cv_c_compiler_gnu+:} false; then :
3095 $as_echo_n "(cached) " >&6
3096 else
3097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3098 /* end confdefs.h. */
3099
3100 int
3101 main ()
3102 {
3103 #ifndef __GNUC__
3104 choke me
3105 #endif
3106
3107 ;
3108 return 0;
3109 }
3110 _ACEOF
3111 if ac_fn_c_try_compile "$LINENO"; then :
3112 ac_compiler_gnu=yes
3113 else
3114 ac_compiler_gnu=no
3115 fi
3116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3117 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3118
3119 fi
3120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3121 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3122 if test $ac_compiler_gnu = yes; then
3123 GCC=yes
3124 else
3125 GCC=
3126 fi
3127 ac_test_CFLAGS=${CFLAGS+set}
3128 ac_save_CFLAGS=$CFLAGS
3129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3130 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3131 if ${ac_cv_prog_cc_g+:} false; then :
3132 $as_echo_n "(cached) " >&6
3133 else
3134 ac_save_c_werror_flag=$ac_c_werror_flag
3135 ac_c_werror_flag=yes
3136 ac_cv_prog_cc_g=no
3137 CFLAGS="-g"
3138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3139 /* end confdefs.h. */
3140
3141 int
3142 main ()
3143 {
3144
3145 ;
3146 return 0;
3147 }
3148 _ACEOF
3149 if ac_fn_c_try_compile "$LINENO"; then :
3150 ac_cv_prog_cc_g=yes
3151 else
3152 CFLAGS=""
3153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3154 /* end confdefs.h. */
3155
3156 int
3157 main ()
3158 {
3159
3160 ;
3161 return 0;
3162 }
3163 _ACEOF
3164 if ac_fn_c_try_compile "$LINENO"; then :
3165
3166 else
3167 ac_c_werror_flag=$ac_save_c_werror_flag
3168 CFLAGS="-g"
3169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3170 /* end confdefs.h. */
3171
3172 int
3173 main ()
3174 {
3175
3176 ;
3177 return 0;
3178 }
3179 _ACEOF
3180 if ac_fn_c_try_compile "$LINENO"; then :
3181 ac_cv_prog_cc_g=yes
3182 fi
3183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3184 fi
3185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3186 fi
3187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3188 ac_c_werror_flag=$ac_save_c_werror_flag
3189 fi
3190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3191 $as_echo "$ac_cv_prog_cc_g" >&6; }
3192 if test "$ac_test_CFLAGS" = set; then
3193 CFLAGS=$ac_save_CFLAGS
3194 elif test $ac_cv_prog_cc_g = yes; then
3195 if test "$GCC" = yes; then
3196 CFLAGS="-g -O2"
3197 else
3198 CFLAGS="-g"
3199 fi
3200 else
3201 if test "$GCC" = yes; then
3202 CFLAGS="-O2"
3203 else
3204 CFLAGS=
3205 fi
3206 fi
3207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3208 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3209 if ${ac_cv_prog_cc_c89+:} false; then :
3210 $as_echo_n "(cached) " >&6
3211 else
3212 ac_cv_prog_cc_c89=no
3213 ac_save_CC=$CC
3214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3215 /* end confdefs.h. */
3216 #include <stdarg.h>
3217 #include <stdio.h>
3218 #include <sys/types.h>
3219 #include <sys/stat.h>
3220 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3221 struct buf { int x; };
3222 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3223 static char *e (p, i)
3224 char **p;
3225 int i;
3226 {
3227 return p[i];
3228 }
3229 static char *f (char * (*g) (char **, int), char **p, ...)
3230 {
3231 char *s;
3232 va_list v;
3233 va_start (v,p);
3234 s = g (p, va_arg (v,int));
3235 va_end (v);
3236 return s;
3237 }
3238
3239 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3240 function prototypes and stuff, but not '\xHH' hex character constants.
3241 These don't provoke an error unfortunately, instead are silently treated
3242 as 'x'. The following induces an error, until -std is added to get
3243 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3244 array size at least. It's necessary to write '\x00'==0 to get something
3245 that's true only with -std. */
3246 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3247
3248 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3249 inside strings and character constants. */
3250 #define FOO(x) 'x'
3251 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3252
3253 int test (int i, double x);
3254 struct s1 {int (*f) (int a);};
3255 struct s2 {int (*f) (double a);};
3256 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3257 int argc;
3258 char **argv;
3259 int
3260 main ()
3261 {
3262 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3263 ;
3264 return 0;
3265 }
3266 _ACEOF
3267 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3268 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3269 do
3270 CC="$ac_save_CC $ac_arg"
3271 if ac_fn_c_try_compile "$LINENO"; then :
3272 ac_cv_prog_cc_c89=$ac_arg
3273 fi
3274 rm -f core conftest.err conftest.$ac_objext
3275 test "x$ac_cv_prog_cc_c89" != "xno" && break
3276 done
3277 rm -f conftest.$ac_ext
3278 CC=$ac_save_CC
3279
3280 fi
3281 # AC_CACHE_VAL
3282 case "x$ac_cv_prog_cc_c89" in
3283 x)
3284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3285 $as_echo "none needed" >&6; } ;;
3286 xno)
3287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3288 $as_echo "unsupported" >&6; } ;;
3289 *)
3290 CC="$CC $ac_cv_prog_cc_c89"
3291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3292 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3293 esac
3294 if test "x$ac_cv_prog_cc_c89" != xno; then :
3295
3296 fi
3297
3298 ac_ext=c
3299 ac_cpp='$CPP $CPPFLAGS'
3300 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3301 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3302 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3303
3304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3305 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3306 if ${ac_cv_prog_cc_c99+:} false; then :
3307 $as_echo_n "(cached) " >&6
3308 else
3309 ac_cv_prog_cc_c99=no
3310 ac_save_CC=$CC
3311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3312 /* end confdefs.h. */
3313 #include <stdarg.h>
3314 #include <stdbool.h>
3315 #include <stdlib.h>
3316 #include <wchar.h>
3317 #include <stdio.h>
3318
3319 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3320 #define debug(...) fprintf (stderr, __VA_ARGS__)
3321 #define showlist(...) puts (#__VA_ARGS__)
3322 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3323 static void
3324 test_varargs_macros (void)
3325 {
3326 int x = 1234;
3327 int y = 5678;
3328 debug ("Flag");
3329 debug ("X = %d\n", x);
3330 showlist (The first, second, and third items.);
3331 report (x>y, "x is %d but y is %d", x, y);
3332 }
3333
3334 // Check long long types.
3335 #define BIG64 18446744073709551615ull
3336 #define BIG32 4294967295ul
3337 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3338 #if !BIG_OK
3339 your preprocessor is broken;
3340 #endif
3341 #if BIG_OK
3342 #else
3343 your preprocessor is broken;
3344 #endif
3345 static long long int bignum = -9223372036854775807LL;
3346 static unsigned long long int ubignum = BIG64;
3347
3348 struct incomplete_array
3349 {
3350 int datasize;
3351 double data[];
3352 };
3353
3354 struct named_init {
3355 int number;
3356 const wchar_t *name;
3357 double average;
3358 };
3359
3360 typedef const char *ccp;
3361
3362 static inline int
3363 test_restrict (ccp restrict text)
3364 {
3365 // See if C++-style comments work.
3366 // Iterate through items via the restricted pointer.
3367 // Also check for declarations in for loops.
3368 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3369 continue;
3370 return 0;
3371 }
3372
3373 // Check varargs and va_copy.
3374 static void
3375 test_varargs (const char *format, ...)
3376 {
3377 va_list args;
3378 va_start (args, format);
3379 va_list args_copy;
3380 va_copy (args_copy, args);
3381
3382 const char *str;
3383 int number;
3384 float fnumber;
3385
3386 while (*format)
3387 {
3388 switch (*format++)
3389 {
3390 case 's': // string
3391 str = va_arg (args_copy, const char *);
3392 break;
3393 case 'd': // int
3394 number = va_arg (args_copy, int);
3395 break;
3396 case 'f': // float
3397 fnumber = va_arg (args_copy, double);
3398 break;
3399 default:
3400 break;
3401 }
3402 }
3403 va_end (args_copy);
3404 va_end (args);
3405 }
3406
3407 int
3408 main ()
3409 {
3410
3411 // Check bool.
3412 _Bool success = false;
3413
3414 // Check restrict.
3415 if (test_restrict ("String literal") == 0)
3416 success = true;
3417 char *restrict newvar = "Another string";
3418
3419 // Check varargs.
3420 test_varargs ("s, d' f .", "string", 65, 34.234);
3421 test_varargs_macros ();
3422
3423 // Check flexible array members.
3424 struct incomplete_array *ia =
3425 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3426 ia->datasize = 10;
3427 for (int i = 0; i < ia->datasize; ++i)
3428 ia->data[i] = i * 1.234;
3429
3430 // Check named initializers.
3431 struct named_init ni = {
3432 .number = 34,
3433 .name = L"Test wide string",
3434 .average = 543.34343,
3435 };
3436
3437 ni.number = 58;
3438
3439 int dynamic_array[ni.number];
3440 dynamic_array[ni.number - 1] = 543;
3441
3442 // work around unused variable warnings
3443 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3444 || dynamic_array[ni.number - 1] != 543);
3445
3446 ;
3447 return 0;
3448 }
3449 _ACEOF
3450 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
3451 do
3452 CC="$ac_save_CC $ac_arg"
3453 if ac_fn_c_try_compile "$LINENO"; then :
3454 ac_cv_prog_cc_c99=$ac_arg
3455 fi
3456 rm -f core conftest.err conftest.$ac_objext
3457 test "x$ac_cv_prog_cc_c99" != "xno" && break
3458 done
3459 rm -f conftest.$ac_ext
3460 CC=$ac_save_CC
3461
3462 fi
3463 # AC_CACHE_VAL
3464 case "x$ac_cv_prog_cc_c99" in
3465 x)
3466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3467 $as_echo "none needed" >&6; } ;;
3468 xno)
3469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3470 $as_echo "unsupported" >&6; } ;;
3471 *)
3472 CC="$CC $ac_cv_prog_cc_c99"
3473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3474 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
3475 esac
3476 if test "x$ac_cv_prog_cc_c99" != xno; then :
3477
3478 fi
3479
3480
3481
3482 ac_ext=c
3483 ac_cpp='$CPP $CPPFLAGS'
3484 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3485 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3486 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3488 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3489 # On Suns, sometimes $CPP names a directory.
3490 if test -n "$CPP" && test -d "$CPP"; then
3491 CPP=
3492 fi
3493 if test -z "$CPP"; then
3494 if ${ac_cv_prog_CPP+:} false; then :
3495 $as_echo_n "(cached) " >&6
3496 else
3497 # Double quotes because CPP needs to be expanded
3498 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3499 do
3500 ac_preproc_ok=false
3501 for ac_c_preproc_warn_flag in '' yes
3502 do
3503 # Use a header file that comes with gcc, so configuring glibc
3504 # with a fresh cross-compiler works.
3505 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3506 # <limits.h> exists even on freestanding compilers.
3507 # On the NeXT, cc -E runs the code through the compiler's parser,
3508 # not just through cpp. "Syntax error" is here to catch this case.
3509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3510 /* end confdefs.h. */
3511 #ifdef __STDC__
3512 # include <limits.h>
3513 #else
3514 # include <assert.h>
3515 #endif
3516 Syntax error
3517 _ACEOF
3518 if ac_fn_c_try_cpp "$LINENO"; then :
3519
3520 else
3521 # Broken: fails on valid input.
3522 continue
3523 fi
3524 rm -f conftest.err conftest.i conftest.$ac_ext
3525
3526 # OK, works on sane cases. Now check whether nonexistent headers
3527 # can be detected and how.
3528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3529 /* end confdefs.h. */
3530 #include <ac_nonexistent.h>
3531 _ACEOF
3532 if ac_fn_c_try_cpp "$LINENO"; then :
3533 # Broken: success on invalid input.
3534 continue
3535 else
3536 # Passes both tests.
3537 ac_preproc_ok=:
3538 break
3539 fi
3540 rm -f conftest.err conftest.i conftest.$ac_ext
3541
3542 done
3543 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3544 rm -f conftest.i conftest.err conftest.$ac_ext
3545 if $ac_preproc_ok; then :
3546 break
3547 fi
3548
3549 done
3550 ac_cv_prog_CPP=$CPP
3551
3552 fi
3553 CPP=$ac_cv_prog_CPP
3554 else
3555 ac_cv_prog_CPP=$CPP
3556 fi
3557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3558 $as_echo "$CPP" >&6; }
3559 ac_preproc_ok=false
3560 for ac_c_preproc_warn_flag in '' yes
3561 do
3562 # Use a header file that comes with gcc, so configuring glibc
3563 # with a fresh cross-compiler works.
3564 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3565 # <limits.h> exists even on freestanding compilers.
3566 # On the NeXT, cc -E runs the code through the compiler's parser,
3567 # not just through cpp. "Syntax error" is here to catch this case.
3568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3569 /* end confdefs.h. */
3570 #ifdef __STDC__
3571 # include <limits.h>
3572 #else
3573 # include <assert.h>
3574 #endif
3575 Syntax error
3576 _ACEOF
3577 if ac_fn_c_try_cpp "$LINENO"; then :
3578
3579 else
3580 # Broken: fails on valid input.
3581 continue
3582 fi
3583 rm -f conftest.err conftest.i conftest.$ac_ext
3584
3585 # OK, works on sane cases. Now check whether nonexistent headers
3586 # can be detected and how.
3587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3588 /* end confdefs.h. */
3589 #include <ac_nonexistent.h>
3590 _ACEOF
3591 if ac_fn_c_try_cpp "$LINENO"; then :
3592 # Broken: success on invalid input.
3593 continue
3594 else
3595 # Passes both tests.
3596 ac_preproc_ok=:
3597 break
3598 fi
3599 rm -f conftest.err conftest.i conftest.$ac_ext
3600
3601 done
3602 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3603 rm -f conftest.i conftest.err conftest.$ac_ext
3604 if $ac_preproc_ok; then :
3605
3606 else
3607 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3608 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3609 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3610 See \`config.log' for more details" "$LINENO" 5; }
3611 fi
3612
3613 ac_ext=c
3614 ac_cpp='$CPP $CPPFLAGS'
3615 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3616 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3617 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3618
3619
3620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3621 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3622 if ${ac_cv_path_GREP+:} false; then :
3623 $as_echo_n "(cached) " >&6
3624 else
3625 if test -z "$GREP"; then
3626 ac_path_GREP_found=false
3627 # Loop through the user's path and test for each of PROGNAME-LIST
3628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3629 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3630 do
3631 IFS=$as_save_IFS
3632 test -z "$as_dir" && as_dir=.
3633 for ac_prog in grep ggrep; do
3634 for ac_exec_ext in '' $ac_executable_extensions; do
3635 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3636 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3637 # Check for GNU ac_path_GREP and select it if it is found.
3638 # Check for GNU $ac_path_GREP
3639 case `"$ac_path_GREP" --version 2>&1` in
3640 *GNU*)
3641 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3642 *)
3643 ac_count=0
3644 $as_echo_n 0123456789 >"conftest.in"
3645 while :
3646 do
3647 cat "conftest.in" "conftest.in" >"conftest.tmp"
3648 mv "conftest.tmp" "conftest.in"
3649 cp "conftest.in" "conftest.nl"
3650 $as_echo 'GREP' >> "conftest.nl"
3651 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3652 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3653 as_fn_arith $ac_count + 1 && ac_count=$as_val
3654 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3655 # Best one so far, save it but keep looking for a better one
3656 ac_cv_path_GREP="$ac_path_GREP"
3657 ac_path_GREP_max=$ac_count
3658 fi
3659 # 10*(2^10) chars as input seems more than enough
3660 test $ac_count -gt 10 && break
3661 done
3662 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3663 esac
3664
3665 $ac_path_GREP_found && break 3
3666 done
3667 done
3668 done
3669 IFS=$as_save_IFS
3670 if test -z "$ac_cv_path_GREP"; then
3671 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3672 fi
3673 else
3674 ac_cv_path_GREP=$GREP
3675 fi
3676
3677 fi
3678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3679 $as_echo "$ac_cv_path_GREP" >&6; }
3680 GREP="$ac_cv_path_GREP"
3681
3682
3683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3684 $as_echo_n "checking for egrep... " >&6; }
3685 if ${ac_cv_path_EGREP+:} false; then :
3686 $as_echo_n "(cached) " >&6
3687 else
3688 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3689 then ac_cv_path_EGREP="$GREP -E"
3690 else
3691 if test -z "$EGREP"; then
3692 ac_path_EGREP_found=false
3693 # Loop through the user's path and test for each of PROGNAME-LIST
3694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3695 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3696 do
3697 IFS=$as_save_IFS
3698 test -z "$as_dir" && as_dir=.
3699 for ac_prog in egrep; do
3700 for ac_exec_ext in '' $ac_executable_extensions; do
3701 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3702 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3703 # Check for GNU ac_path_EGREP and select it if it is found.
3704 # Check for GNU $ac_path_EGREP
3705 case `"$ac_path_EGREP" --version 2>&1` in
3706 *GNU*)
3707 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3708 *)
3709 ac_count=0
3710 $as_echo_n 0123456789 >"conftest.in"
3711 while :
3712 do
3713 cat "conftest.in" "conftest.in" >"conftest.tmp"
3714 mv "conftest.tmp" "conftest.in"
3715 cp "conftest.in" "conftest.nl"
3716 $as_echo 'EGREP' >> "conftest.nl"
3717 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3718 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3719 as_fn_arith $ac_count + 1 && ac_count=$as_val
3720 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3721 # Best one so far, save it but keep looking for a better one
3722 ac_cv_path_EGREP="$ac_path_EGREP"
3723 ac_path_EGREP_max=$ac_count
3724 fi
3725 # 10*(2^10) chars as input seems more than enough
3726 test $ac_count -gt 10 && break
3727 done
3728 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3729 esac
3730
3731 $ac_path_EGREP_found && break 3
3732 done
3733 done
3734 done
3735 IFS=$as_save_IFS
3736 if test -z "$ac_cv_path_EGREP"; then
3737 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3738 fi
3739 else
3740 ac_cv_path_EGREP=$EGREP
3741 fi
3742
3743 fi
3744 fi
3745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3746 $as_echo "$ac_cv_path_EGREP" >&6; }
3747 EGREP="$ac_cv_path_EGREP"
3748
3749
3750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3751 $as_echo_n "checking for ANSI C header files... " >&6; }
3752 if ${ac_cv_header_stdc+:} false; then :
3753 $as_echo_n "(cached) " >&6
3754 else
3755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3756 /* end confdefs.h. */
3757 #include <stdlib.h>
3758 #include <stdarg.h>
3759 #include <string.h>
3760 #include <float.h>
3761
3762 int
3763 main ()
3764 {
3765
3766 ;
3767 return 0;
3768 }
3769 _ACEOF
3770 if ac_fn_c_try_compile "$LINENO"; then :
3771 ac_cv_header_stdc=yes
3772 else
3773 ac_cv_header_stdc=no
3774 fi
3775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3776
3777 if test $ac_cv_header_stdc = yes; then
3778 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3780 /* end confdefs.h. */
3781 #include <string.h>
3782
3783 _ACEOF
3784 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3785 $EGREP "memchr" >/dev/null 2>&1; then :
3786
3787 else
3788 ac_cv_header_stdc=no
3789 fi
3790 rm -f conftest*
3791
3792 fi
3793
3794 if test $ac_cv_header_stdc = yes; then
3795 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3797 /* end confdefs.h. */
3798 #include <stdlib.h>
3799
3800 _ACEOF
3801 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3802 $EGREP "free" >/dev/null 2>&1; then :
3803
3804 else
3805 ac_cv_header_stdc=no
3806 fi
3807 rm -f conftest*
3808
3809 fi
3810
3811 if test $ac_cv_header_stdc = yes; then
3812 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3813 if test "$cross_compiling" = yes; then :
3814 :
3815 else
3816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3817 /* end confdefs.h. */
3818 #include <ctype.h>
3819 #include <stdlib.h>
3820 #if ((' ' & 0x0FF) == 0x020)
3821 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3822 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3823 #else
3824 # define ISLOWER(c) \
3825 (('a' <= (c) && (c) <= 'i') \
3826 || ('j' <= (c) && (c) <= 'r') \
3827 || ('s' <= (c) && (c) <= 'z'))
3828 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3829 #endif
3830
3831 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3832 int
3833 main ()
3834 {
3835 int i;
3836 for (i = 0; i < 256; i++)
3837 if (XOR (islower (i), ISLOWER (i))
3838 || toupper (i) != TOUPPER (i))
3839 return 2;
3840 return 0;
3841 }
3842 _ACEOF
3843 if ac_fn_c_try_run "$LINENO"; then :
3844
3845 else
3846 ac_cv_header_stdc=no
3847 fi
3848 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3849 conftest.$ac_objext conftest.beam conftest.$ac_ext
3850 fi
3851
3852 fi
3853 fi
3854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3855 $as_echo "$ac_cv_header_stdc" >&6; }
3856 if test $ac_cv_header_stdc = yes; then
3857
3858 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3859
3860 fi
3861
3862 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3863 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3864 inttypes.h stdint.h unistd.h
3865 do :
3866 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3867 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3868 "
3869 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3870 cat >>confdefs.h <<_ACEOF
3871 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3872 _ACEOF
3873
3874 fi
3875
3876 done
3877
3878
3879
3880
3881 ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
3882 if test "x$ac_cv_have_decl___clang__" = xyes; then :
3883 CLANGCC="yes"
3884 else
3885 CLANGCC="no"
3886 fi
3887
3888 ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
3889 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
3890 INTELCC="yes"
3891 else
3892 INTELCC="no"
3893 fi
3894
3895 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
3896 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
3897 SUNCC="yes"
3898 else
3899 SUNCC="no"
3900 fi
3901
3902
3903
3904
3905
3906
3907
3908
3909 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
3910 if test -n "$ac_tool_prefix"; then
3911 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
3912 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
3913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3914 $as_echo_n "checking for $ac_word... " >&6; }
3915 if ${ac_cv_path_PKG_CONFIG+:} false; then :
3916 $as_echo_n "(cached) " >&6
3917 else
3918 case $PKG_CONFIG in
3919 [\\/]* | ?:[\\/]*)
3920 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
3921 ;;
3922 *)
3923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3924 for as_dir in $PATH
3925 do
3926 IFS=$as_save_IFS
3927 test -z "$as_dir" && as_dir=.
3928 for ac_exec_ext in '' $ac_executable_extensions; do
3929 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3930 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
3931 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3932 break 2
3933 fi
3934 done
3935 done
3936 IFS=$as_save_IFS
3937
3938 ;;
3939 esac
3940 fi
3941 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
3942 if test -n "$PKG_CONFIG"; then
3943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
3944 $as_echo "$PKG_CONFIG" >&6; }
3945 else
3946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3947 $as_echo "no" >&6; }
3948 fi
3949
3950
3951 fi
3952 if test -z "$ac_cv_path_PKG_CONFIG"; then
3953 ac_pt_PKG_CONFIG=$PKG_CONFIG
3954 # Extract the first word of "pkg-config", so it can be a program name with args.
3955 set dummy pkg-config; ac_word=$2
3956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3957 $as_echo_n "checking for $ac_word... " >&6; }
3958 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
3959 $as_echo_n "(cached) " >&6
3960 else
3961 case $ac_pt_PKG_CONFIG in
3962 [\\/]* | ?:[\\/]*)
3963 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
3964 ;;
3965 *)
3966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3967 for as_dir in $PATH
3968 do
3969 IFS=$as_save_IFS
3970 test -z "$as_dir" && as_dir=.
3971 for ac_exec_ext in '' $ac_executable_extensions; do
3972 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3973 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
3974 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3975 break 2
3976 fi
3977 done
3978 done
3979 IFS=$as_save_IFS
3980
3981 ;;
3982 esac
3983 fi
3984 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
3985 if test -n "$ac_pt_PKG_CONFIG"; then
3986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
3987 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
3988 else
3989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3990 $as_echo "no" >&6; }
3991 fi
3992
3993 if test "x$ac_pt_PKG_CONFIG" = x; then
3994 PKG_CONFIG=""
3995 else
3996 case $cross_compiling:$ac_tool_warned in
3997 yes:)
3998 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3999 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4000 ac_tool_warned=yes ;;
4001 esac
4002 PKG_CONFIG=$ac_pt_PKG_CONFIG
4003 fi
4004 else
4005 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4006 fi
4007
4008 fi
4009 if test -n "$PKG_CONFIG"; then
4010 _pkg_min_version=0.9.0
4011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4012 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4013 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4015 $as_echo "yes" >&6; }
4016 else
4017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4018 $as_echo "no" >&6; }
4019 PKG_CONFIG=""
4020 fi
4021 fi
4022 # Make sure we can run config.sub.
4023 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4024 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4025
4026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4027 $as_echo_n "checking build system type... " >&6; }
4028 if ${ac_cv_build+:} false; then :
4029 $as_echo_n "(cached) " >&6
4030 else
4031 ac_build_alias=$build_alias
4032 test "x$ac_build_alias" = x &&
4033 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4034 test "x$ac_build_alias" = x &&
4035 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4036 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4037 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4038
4039 fi
4040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4041 $as_echo "$ac_cv_build" >&6; }
4042 case $ac_cv_build in
4043 *-*-*) ;;
4044 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4045 esac
4046 build=$ac_cv_build
4047 ac_save_IFS=$IFS; IFS='-'
4048 set x $ac_cv_build
4049 shift
4050 build_cpu=$1
4051 build_vendor=$2
4052 shift; shift
4053 # Remember, the first character of IFS is used to create $*,
4054 # except with old shells:
4055 build_os=$*
4056 IFS=$ac_save_IFS
4057 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4058
4059
4060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4061 $as_echo_n "checking host system type... " >&6; }
4062 if ${ac_cv_host+:} false; then :
4063 $as_echo_n "(cached) " >&6
4064 else
4065 if test "x$host_alias" = x; then
4066 ac_cv_host=$ac_cv_build
4067 else
4068 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4069 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4070 fi
4071
4072 fi
4073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4074 $as_echo "$ac_cv_host" >&6; }
4075 case $ac_cv_host in
4076 *-*-*) ;;
4077 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4078 esac
4079 host=$ac_cv_host
4080 ac_save_IFS=$IFS; IFS='-'
4081 set x $ac_cv_host
4082 shift
4083 host_cpu=$1
4084 host_vendor=$2
4085 shift; shift
4086 # Remember, the first character of IFS is used to create $*,
4087 # except with old shells:
4088 host_os=$*
4089 IFS=$ac_save_IFS
4090 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4091
4092
4093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4094 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4095 if ${ac_cv_path_SED+:} false; then :
4096 $as_echo_n "(cached) " >&6
4097 else
4098 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4099 for ac_i in 1 2 3 4 5 6 7; do
4100 ac_script="$ac_script$as_nl$ac_script"
4101 done
4102 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4103 { ac_script=; unset ac_script;}
4104 if test -z "$SED"; then
4105 ac_path_SED_found=false
4106 # Loop through the user's path and test for each of PROGNAME-LIST
4107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4108 for as_dir in $PATH
4109 do
4110 IFS=$as_save_IFS
4111 test -z "$as_dir" && as_dir=.
4112 for ac_prog in sed gsed; do
4113 for ac_exec_ext in '' $ac_executable_extensions; do
4114 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4115 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4116 # Check for GNU ac_path_SED and select it if it is found.
4117 # Check for GNU $ac_path_SED
4118 case `"$ac_path_SED" --version 2>&1` in
4119 *GNU*)
4120 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4121 *)
4122 ac_count=0
4123 $as_echo_n 0123456789 >"conftest.in"
4124 while :
4125 do
4126 cat "conftest.in" "conftest.in" >"conftest.tmp"
4127 mv "conftest.tmp" "conftest.in"
4128 cp "conftest.in" "conftest.nl"
4129 $as_echo '' >> "conftest.nl"
4130 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4131 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4132 as_fn_arith $ac_count + 1 && ac_count=$as_val
4133 if test $ac_count -gt ${ac_path_SED_max-0}; then
4134 # Best one so far, save it but keep looking for a better one
4135 ac_cv_path_SED="$ac_path_SED"
4136 ac_path_SED_max=$ac_count
4137 fi
4138 # 10*(2^10) chars as input seems more than enough
4139 test $ac_count -gt 10 && break
4140 done
4141 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4142 esac
4143
4144 $ac_path_SED_found && break 3
4145 done
4146 done
4147 done
4148 IFS=$as_save_IFS
4149 if test -z "$ac_cv_path_SED"; then
4150 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4151 fi
4152 else
4153 ac_cv_path_SED=$SED
4154 fi
4155
4156 fi
4157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4158 $as_echo "$ac_cv_path_SED" >&6; }
4159 SED="$ac_cv_path_SED"
4160 rm -f conftest.sed
4161
4162
4163
4164
4165
4166
4167 # Check whether --enable-selective-werror was given.
4168 if test "${enable_selective_werror+set}" = set; then :
4169 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4170 else
4171 SELECTIVE_WERROR=yes
4172 fi
4173
4174
4175 # -v is too short to test reliably with XORG_TESTSET_CFLAG
4176 if test "x$SUNCC" = "xyes"; then
4177 BASE_CFLAGS="-v"
4178 else
4179 BASE_CFLAGS=""
4180 fi
4181
4182 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
4183
4184
4185
4186
4187
4188 xorg_testset_save_CFLAGS="$CFLAGS"
4189
4190 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
4191 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4193 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4195 /* end confdefs.h. */
4196 int i;
4197 _ACEOF
4198 if ac_fn_c_try_compile "$LINENO"; then :
4199 xorg_testset_unknown_warning_option=yes
4200 else
4201 xorg_testset_unknown_warning_option=no
4202 fi
4203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
4205 $as_echo "$xorg_testset_unknown_warning_option" >&6; }
4206 CFLAGS="$xorg_testset_save_CFLAGS"
4207 fi
4208
4209 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
4210 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4211 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4212 fi
4213 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4215 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4217 /* end confdefs.h. */
4218 int i;
4219 _ACEOF
4220 if ac_fn_c_try_compile "$LINENO"; then :
4221 xorg_testset_unused_command_line_argument=yes
4222 else
4223 xorg_testset_unused_command_line_argument=no
4224 fi
4225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
4227 $as_echo "$xorg_testset_unused_command_line_argument" >&6; }
4228 CFLAGS="$xorg_testset_save_CFLAGS"
4229 fi
4230
4231 found="no"
4232
4233 if test $found = "no" ; then
4234 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4235 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4236 fi
4237
4238 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4239 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4240 fi
4241
4242 CFLAGS="$CFLAGS -Wall"
4243
4244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
4245 $as_echo_n "checking if $CC supports -Wall... " >&6; }
4246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4247 /* end confdefs.h. */
4248 int i;
4249 int
4250 main ()
4251 {
4252
4253 ;
4254 return 0;
4255 }
4256 _ACEOF
4257 if ac_fn_c_try_link "$LINENO"; then :
4258 supported=yes
4259 else
4260 supported=no
4261 fi
4262 rm -f core conftest.err conftest.$ac_objext \
4263 conftest$ac_exeext conftest.$ac_ext
4264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4265 $as_echo "$supported" >&6; }
4266 CFLAGS="$xorg_testset_save_CFLAGS"
4267
4268 if test "$supported" = "yes" ; then
4269 BASE_CFLAGS="$BASE_CFLAGS -Wall"
4270 found="yes"
4271 fi
4272 fi
4273
4274
4275
4276
4277
4278
4279
4280 xorg_testset_save_CFLAGS="$CFLAGS"
4281
4282 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
4283 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4285 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4287 /* end confdefs.h. */
4288 int i;
4289 _ACEOF
4290 if ac_fn_c_try_compile "$LINENO"; then :
4291 xorg_testset_unknown_warning_option=yes
4292 else
4293 xorg_testset_unknown_warning_option=no
4294 fi
4295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
4297 $as_echo "$xorg_testset_unknown_warning_option" >&6; }
4298 CFLAGS="$xorg_testset_save_CFLAGS"
4299 fi
4300
4301 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
4302 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4303 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4304 fi
4305 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4307 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4309 /* end confdefs.h. */
4310 int i;
4311 _ACEOF
4312 if ac_fn_c_try_compile "$LINENO"; then :
4313 xorg_testset_unused_command_line_argument=yes
4314 else
4315 xorg_testset_unused_command_line_argument=no
4316 fi
4317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
4319 $as_echo "$xorg_testset_unused_command_line_argument" >&6; }
4320 CFLAGS="$xorg_testset_save_CFLAGS"
4321 fi
4322
4323 found="no"
4324
4325 if test $found = "no" ; then
4326 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4327 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4328 fi
4329
4330 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4331 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4332 fi
4333
4334 CFLAGS="$CFLAGS -Wpointer-arith"
4335
4336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
4337 $as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
4338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4339 /* end confdefs.h. */
4340 int i;
4341 int
4342 main ()
4343 {
4344
4345 ;
4346 return 0;
4347 }
4348 _ACEOF
4349 if ac_fn_c_try_link "$LINENO"; then :
4350 supported=yes
4351 else
4352 supported=no
4353 fi
4354 rm -f core conftest.err conftest.$ac_objext \
4355 conftest$ac_exeext conftest.$ac_ext
4356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4357 $as_echo "$supported" >&6; }
4358 CFLAGS="$xorg_testset_save_CFLAGS"
4359
4360 if test "$supported" = "yes" ; then
4361 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
4362 found="yes"
4363 fi
4364 fi
4365
4366
4367
4368
4369
4370
4371
4372 xorg_testset_save_CFLAGS="$CFLAGS"
4373
4374 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
4375 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4377 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4379 /* end confdefs.h. */
4380 int i;
4381 _ACEOF
4382 if ac_fn_c_try_compile "$LINENO"; then :
4383 xorg_testset_unknown_warning_option=yes
4384 else
4385 xorg_testset_unknown_warning_option=no
4386 fi
4387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
4389 $as_echo "$xorg_testset_unknown_warning_option" >&6; }
4390 CFLAGS="$xorg_testset_save_CFLAGS"
4391 fi
4392
4393 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
4394 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4395 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4396 fi
4397 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4399 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4401 /* end confdefs.h. */
4402 int i;
4403 _ACEOF
4404 if ac_fn_c_try_compile "$LINENO"; then :
4405 xorg_testset_unused_command_line_argument=yes
4406 else
4407 xorg_testset_unused_command_line_argument=no
4408 fi
4409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
4411 $as_echo "$xorg_testset_unused_command_line_argument" >&6; }
4412 CFLAGS="$xorg_testset_save_CFLAGS"
4413 fi
4414
4415 found="no"
4416
4417 if test $found = "no" ; then
4418 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4419 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4420 fi
4421
4422 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4423 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4424 fi
4425
4426 CFLAGS="$CFLAGS -Wstrict-prototypes"
4427
4428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
4429 $as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
4430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4431 /* end confdefs.h. */
4432 int i;
4433 int
4434 main ()
4435 {
4436
4437 ;
4438 return 0;
4439 }
4440 _ACEOF
4441 if ac_fn_c_try_link "$LINENO"; then :
4442 supported=yes
4443 else
4444 supported=no
4445 fi
4446 rm -f core conftest.err conftest.$ac_objext \
4447 conftest$ac_exeext conftest.$ac_ext
4448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4449 $as_echo "$supported" >&6; }
4450 CFLAGS="$xorg_testset_save_CFLAGS"
4451
4452 if test "$supported" = "yes" ; then
4453 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
4454 found="yes"
4455 fi
4456 fi
4457
4458
4459
4460
4461
4462
4463
4464 xorg_testset_save_CFLAGS="$CFLAGS"
4465
4466 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
4467 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4469 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4471 /* end confdefs.h. */
4472 int i;
4473 _ACEOF
4474 if ac_fn_c_try_compile "$LINENO"; then :
4475 xorg_testset_unknown_warning_option=yes
4476 else
4477 xorg_testset_unknown_warning_option=no
4478 fi
4479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
4481 $as_echo "$xorg_testset_unknown_warning_option" >&6; }
4482 CFLAGS="$xorg_testset_save_CFLAGS"
4483 fi
4484
4485 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
4486 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4487 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4488 fi
4489 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4491 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4493 /* end confdefs.h. */
4494 int i;
4495 _ACEOF
4496 if ac_fn_c_try_compile "$LINENO"; then :
4497 xorg_testset_unused_command_line_argument=yes
4498 else
4499 xorg_testset_unused_command_line_argument=no
4500 fi
4501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
4503 $as_echo "$xorg_testset_unused_command_line_argument" >&6; }
4504 CFLAGS="$xorg_testset_save_CFLAGS"
4505 fi
4506
4507 found="no"
4508
4509 if test $found = "no" ; then
4510 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4511 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4512 fi
4513
4514 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4515 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4516 fi
4517
4518 CFLAGS="$CFLAGS -Wmissing-prototypes"
4519
4520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
4521 $as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
4522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4523 /* end confdefs.h. */
4524 int i;
4525 int
4526 main ()
4527 {
4528
4529 ;
4530 return 0;
4531 }
4532 _ACEOF
4533 if ac_fn_c_try_link "$LINENO"; then :
4534 supported=yes
4535 else
4536 supported=no
4537 fi
4538 rm -f core conftest.err conftest.$ac_objext \
4539 conftest$ac_exeext conftest.$ac_ext
4540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4541 $as_echo "$supported" >&6; }
4542 CFLAGS="$xorg_testset_save_CFLAGS"
4543
4544 if test "$supported" = "yes" ; then
4545 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
4546 found="yes"
4547 fi
4548 fi
4549
4550
4551
4552
4553
4554
4555
4556 xorg_testset_save_CFLAGS="$CFLAGS"
4557
4558 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
4559 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4561 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4563 /* end confdefs.h. */
4564 int i;
4565 _ACEOF
4566 if ac_fn_c_try_compile "$LINENO"; then :
4567 xorg_testset_unknown_warning_option=yes
4568 else
4569 xorg_testset_unknown_warning_option=no
4570 fi
4571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
4573 $as_echo "$xorg_testset_unknown_warning_option" >&6; }
4574 CFLAGS="$xorg_testset_save_CFLAGS"
4575 fi
4576
4577 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
4578 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4579 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4580 fi
4581 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4583 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4585 /* end confdefs.h. */
4586 int i;
4587 _ACEOF
4588 if ac_fn_c_try_compile "$LINENO"; then :
4589 xorg_testset_unused_command_line_argument=yes
4590 else
4591 xorg_testset_unused_command_line_argument=no
4592 fi
4593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
4595 $as_echo "$xorg_testset_unused_command_line_argument" >&6; }
4596 CFLAGS="$xorg_testset_save_CFLAGS"
4597 fi
4598
4599 found="no"
4600
4601 if test $found = "no" ; then
4602 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4603 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4604 fi
4605
4606 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4607 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4608 fi
4609
4610 CFLAGS="$CFLAGS -Wmissing-declarations"
4611
4612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
4613 $as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
4614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4615 /* end confdefs.h. */
4616 int i;
4617 int
4618 main ()
4619 {
4620
4621 ;
4622 return 0;
4623 }
4624 _ACEOF
4625 if ac_fn_c_try_link "$LINENO"; then :
4626 supported=yes
4627 else
4628 supported=no
4629 fi
4630 rm -f core conftest.err conftest.$ac_objext \
4631 conftest$ac_exeext conftest.$ac_ext
4632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4633 $as_echo "$supported" >&6; }
4634 CFLAGS="$xorg_testset_save_CFLAGS"
4635
4636 if test "$supported" = "yes" ; then
4637 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
4638 found="yes"
4639 fi
4640 fi
4641
4642
4643
4644
4645
4646
4647
4648 xorg_testset_save_CFLAGS="$CFLAGS"
4649
4650 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
4651 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4653 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4655 /* end confdefs.h. */
4656 int i;
4657 _ACEOF
4658 if ac_fn_c_try_compile "$LINENO"; then :
4659 xorg_testset_unknown_warning_option=yes
4660 else
4661 xorg_testset_unknown_warning_option=no
4662 fi
4663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
4665 $as_echo "$xorg_testset_unknown_warning_option" >&6; }
4666 CFLAGS="$xorg_testset_save_CFLAGS"
4667 fi
4668
4669 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
4670 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4671 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4672 fi
4673 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4675 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4677 /* end confdefs.h. */
4678 int i;
4679 _ACEOF
4680 if ac_fn_c_try_compile "$LINENO"; then :
4681 xorg_testset_unused_command_line_argument=yes
4682 else
4683 xorg_testset_unused_command_line_argument=no
4684 fi
4685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
4687 $as_echo "$xorg_testset_unused_command_line_argument" >&6; }
4688 CFLAGS="$xorg_testset_save_CFLAGS"
4689 fi
4690
4691 found="no"
4692
4693 if test $found = "no" ; then
4694 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4695 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4696 fi
4697
4698 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4699 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4700 fi
4701
4702 CFLAGS="$CFLAGS -Wnested-externs"
4703
4704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
4705 $as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
4706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4707 /* end confdefs.h. */
4708 int i;
4709 int
4710 main ()
4711 {
4712
4713 ;
4714 return 0;
4715 }
4716 _ACEOF
4717 if ac_fn_c_try_link "$LINENO"; then :
4718 supported=yes
4719 else
4720 supported=no
4721 fi
4722 rm -f core conftest.err conftest.$ac_objext \
4723 conftest$ac_exeext conftest.$ac_ext
4724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4725 $as_echo "$supported" >&6; }
4726 CFLAGS="$xorg_testset_save_CFLAGS"
4727
4728 if test "$supported" = "yes" ; then
4729 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
4730 found="yes"
4731 fi
4732 fi
4733
4734
4735
4736
4737
4738
4739
4740 xorg_testset_save_CFLAGS="$CFLAGS"
4741
4742 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
4743 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4745 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4747 /* end confdefs.h. */
4748 int i;
4749 _ACEOF
4750 if ac_fn_c_try_compile "$LINENO"; then :
4751 xorg_testset_unknown_warning_option=yes
4752 else
4753 xorg_testset_unknown_warning_option=no
4754 fi
4755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
4757 $as_echo "$xorg_testset_unknown_warning_option" >&6; }
4758 CFLAGS="$xorg_testset_save_CFLAGS"
4759 fi
4760
4761 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
4762 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4763 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4764 fi
4765 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4767 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4769 /* end confdefs.h. */
4770 int i;
4771 _ACEOF
4772 if ac_fn_c_try_compile "$LINENO"; then :
4773 xorg_testset_unused_command_line_argument=yes
4774 else
4775 xorg_testset_unused_command_line_argument=no
4776 fi
4777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
4779 $as_echo "$xorg_testset_unused_command_line_argument" >&6; }
4780 CFLAGS="$xorg_testset_save_CFLAGS"
4781 fi
4782
4783 found="no"
4784
4785 if test $found = "no" ; then
4786 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4787 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4788 fi
4789
4790 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4791 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4792 fi
4793
4794 CFLAGS="$CFLAGS -Wbad-function-cast"
4795
4796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
4797 $as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
4798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4799 /* end confdefs.h. */
4800 int i;
4801 int
4802 main ()
4803 {
4804
4805 ;
4806 return 0;
4807 }
4808 _ACEOF
4809 if ac_fn_c_try_link "$LINENO"; then :
4810 supported=yes
4811 else
4812 supported=no
4813 fi
4814 rm -f core conftest.err conftest.$ac_objext \
4815 conftest$ac_exeext conftest.$ac_ext
4816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4817 $as_echo "$supported" >&6; }
4818 CFLAGS="$xorg_testset_save_CFLAGS"
4819
4820 if test "$supported" = "yes" ; then
4821 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
4822 found="yes"
4823 fi
4824 fi
4825
4826
4827
4828
4829
4830
4831
4832 xorg_testset_save_CFLAGS="$CFLAGS"
4833
4834 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
4835 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4837 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4839 /* end confdefs.h. */
4840 int i;
4841 _ACEOF
4842 if ac_fn_c_try_compile "$LINENO"; then :
4843 xorg_testset_unknown_warning_option=yes
4844 else
4845 xorg_testset_unknown_warning_option=no
4846 fi
4847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
4849 $as_echo "$xorg_testset_unknown_warning_option" >&6; }
4850 CFLAGS="$xorg_testset_save_CFLAGS"
4851 fi
4852
4853 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
4854 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4855 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4856 fi
4857 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4859 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4861 /* end confdefs.h. */
4862 int i;
4863 _ACEOF
4864 if ac_fn_c_try_compile "$LINENO"; then :
4865 xorg_testset_unused_command_line_argument=yes
4866 else
4867 xorg_testset_unused_command_line_argument=no
4868 fi
4869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
4871 $as_echo "$xorg_testset_unused_command_line_argument" >&6; }
4872 CFLAGS="$xorg_testset_save_CFLAGS"
4873 fi
4874
4875 found="no"
4876
4877 if test $found = "no" ; then
4878 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4879 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4880 fi
4881
4882 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4883 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4884 fi
4885
4886 CFLAGS="$CFLAGS -Wformat=2"
4887
4888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
4889 $as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
4890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4891 /* end confdefs.h. */
4892 int i;
4893 int
4894 main ()
4895 {
4896
4897 ;
4898 return 0;
4899 }
4900 _ACEOF
4901 if ac_fn_c_try_link "$LINENO"; then :
4902 supported=yes
4903 else
4904 supported=no
4905 fi
4906 rm -f core conftest.err conftest.$ac_objext \
4907 conftest$ac_exeext conftest.$ac_ext
4908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4909 $as_echo "$supported" >&6; }
4910 CFLAGS="$xorg_testset_save_CFLAGS"
4911
4912 if test "$supported" = "yes" ; then
4913 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
4914 found="yes"
4915 fi
4916 fi
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 -Wformat"
4928
4929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
4930 $as_echo_n "checking if $CC supports -Wformat... " >&6; }
4931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4932 /* end confdefs.h. */
4933 int i;
4934 int
4935 main ()
4936 {
4937
4938 ;
4939 return 0;
4940 }
4941 _ACEOF
4942 if ac_fn_c_try_link "$LINENO"; then :
4943 supported=yes
4944 else
4945 supported=no
4946 fi
4947 rm -f core conftest.err conftest.$ac_objext \
4948 conftest$ac_exeext conftest.$ac_ext
4949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4950 $as_echo "$supported" >&6; }
4951 CFLAGS="$xorg_testset_save_CFLAGS"
4952
4953 if test "$supported" = "yes" ; then
4954 BASE_CFLAGS="$BASE_CFLAGS -Wformat"
4955 found="yes"
4956 fi
4957 fi
4958
4959
4960
4961
4962
4963
4964
4965 xorg_testset_save_CFLAGS="$CFLAGS"
4966
4967 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
4968 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4970 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4972 /* end confdefs.h. */
4973 int i;
4974 _ACEOF
4975 if ac_fn_c_try_compile "$LINENO"; then :
4976 xorg_testset_unknown_warning_option=yes
4977 else
4978 xorg_testset_unknown_warning_option=no
4979 fi
4980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
4982 $as_echo "$xorg_testset_unknown_warning_option" >&6; }
4983 CFLAGS="$xorg_testset_save_CFLAGS"
4984 fi
4985
4986 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
4987 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4988 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4989 fi
4990 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4992 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4994 /* end confdefs.h. */
4995 int i;
4996 _ACEOF
4997 if ac_fn_c_try_compile "$LINENO"; then :
4998 xorg_testset_unused_command_line_argument=yes
4999 else
5000 xorg_testset_unused_command_line_argument=no
5001 fi
5002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
5004 $as_echo "$xorg_testset_unused_command_line_argument" >&6; }
5005 CFLAGS="$xorg_testset_save_CFLAGS"
5006 fi
5007
5008 found="no"
5009
5010 if test $found = "no" ; then
5011 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5012 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5013 fi
5014
5015 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5016 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5017 fi
5018
5019 CFLAGS="$CFLAGS -Wold-style-definition"
5020
5021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
5022 $as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
5023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5024 /* end confdefs.h. */
5025 int i;
5026 int
5027 main ()
5028 {
5029
5030 ;
5031 return 0;
5032 }
5033 _ACEOF
5034 if ac_fn_c_try_link "$LINENO"; then :
5035 supported=yes
5036 else
5037 supported=no
5038 fi
5039 rm -f core conftest.err conftest.$ac_objext \
5040 conftest$ac_exeext conftest.$ac_ext
5041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5042 $as_echo "$supported" >&6; }
5043 CFLAGS="$xorg_testset_save_CFLAGS"
5044
5045 if test "$supported" = "yes" ; then
5046 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
5047 found="yes"
5048 fi
5049 fi
5050
5051
5052
5053
5054
5055
5056
5057 xorg_testset_save_CFLAGS="$CFLAGS"
5058
5059 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
5060 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5062 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5064 /* end confdefs.h. */
5065 int i;
5066 _ACEOF
5067 if ac_fn_c_try_compile "$LINENO"; then :
5068 xorg_testset_unknown_warning_option=yes
5069 else
5070 xorg_testset_unknown_warning_option=no
5071 fi
5072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
5074 $as_echo "$xorg_testset_unknown_warning_option" >&6; }
5075 CFLAGS="$xorg_testset_save_CFLAGS"
5076 fi
5077
5078 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
5079 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5080 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5081 fi
5082 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5084 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5086 /* end confdefs.h. */
5087 int i;
5088 _ACEOF
5089 if ac_fn_c_try_compile "$LINENO"; then :
5090 xorg_testset_unused_command_line_argument=yes
5091 else
5092 xorg_testset_unused_command_line_argument=no
5093 fi
5094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
5096 $as_echo "$xorg_testset_unused_command_line_argument" >&6; }
5097 CFLAGS="$xorg_testset_save_CFLAGS"
5098 fi
5099
5100 found="no"
5101
5102 if test $found = "no" ; then
5103 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5104 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5105 fi
5106
5107 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5108 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5109 fi
5110
5111 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
5112
5113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
5114 $as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
5115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5116 /* end confdefs.h. */
5117 int i;
5118 int
5119 main ()
5120 {
5121
5122 ;
5123 return 0;
5124 }
5125 _ACEOF
5126 if ac_fn_c_try_link "$LINENO"; then :
5127 supported=yes
5128 else
5129 supported=no
5130 fi
5131 rm -f core conftest.err conftest.$ac_objext \
5132 conftest$ac_exeext conftest.$ac_ext
5133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5134 $as_echo "$supported" >&6; }
5135 CFLAGS="$xorg_testset_save_CFLAGS"
5136
5137 if test "$supported" = "yes" ; then
5138 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
5139 found="yes"
5140 fi
5141 fi
5142
5143
5144
5145 # This chunk adds additional warnings that could catch undesired effects.
5146
5147
5148
5149
5150
5151 xorg_testset_save_CFLAGS="$CFLAGS"
5152
5153 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
5154 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5156 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5158 /* end confdefs.h. */
5159 int i;
5160 _ACEOF
5161 if ac_fn_c_try_compile "$LINENO"; then :
5162 xorg_testset_unknown_warning_option=yes
5163 else
5164 xorg_testset_unknown_warning_option=no
5165 fi
5166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
5168 $as_echo "$xorg_testset_unknown_warning_option" >&6; }
5169 CFLAGS="$xorg_testset_save_CFLAGS"
5170 fi
5171
5172 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
5173 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5174 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5175 fi
5176 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5178 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5180 /* end confdefs.h. */
5181 int i;
5182 _ACEOF
5183 if ac_fn_c_try_compile "$LINENO"; then :
5184 xorg_testset_unused_command_line_argument=yes
5185 else
5186 xorg_testset_unused_command_line_argument=no
5187 fi
5188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
5190 $as_echo "$xorg_testset_unused_command_line_argument" >&6; }
5191 CFLAGS="$xorg_testset_save_CFLAGS"
5192 fi
5193
5194 found="no"
5195
5196 if test $found = "no" ; then
5197 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5198 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5199 fi
5200
5201 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5202 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5203 fi
5204
5205 CFLAGS="$CFLAGS -Wunused"
5206
5207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
5208 $as_echo_n "checking if $CC supports -Wunused... " >&6; }
5209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5210 /* end confdefs.h. */
5211 int i;
5212 int
5213 main ()
5214 {
5215
5216 ;
5217 return 0;
5218 }
5219 _ACEOF
5220 if ac_fn_c_try_link "$LINENO"; then :
5221 supported=yes
5222 else
5223 supported=no
5224 fi
5225 rm -f core conftest.err conftest.$ac_objext \
5226 conftest$ac_exeext conftest.$ac_ext
5227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5228 $as_echo "$supported" >&6; }
5229 CFLAGS="$xorg_testset_save_CFLAGS"
5230
5231 if test "$supported" = "yes" ; then
5232 BASE_CFLAGS="$BASE_CFLAGS -Wunused"
5233 found="yes"
5234 fi
5235 fi
5236
5237
5238
5239
5240
5241
5242
5243 xorg_testset_save_CFLAGS="$CFLAGS"
5244
5245 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
5246 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5248 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5250 /* end confdefs.h. */
5251 int i;
5252 _ACEOF
5253 if ac_fn_c_try_compile "$LINENO"; then :
5254 xorg_testset_unknown_warning_option=yes
5255 else
5256 xorg_testset_unknown_warning_option=no
5257 fi
5258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
5260 $as_echo "$xorg_testset_unknown_warning_option" >&6; }
5261 CFLAGS="$xorg_testset_save_CFLAGS"
5262 fi
5263
5264 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
5265 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5266 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5267 fi
5268 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5270 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5272 /* end confdefs.h. */
5273 int i;
5274 _ACEOF
5275 if ac_fn_c_try_compile "$LINENO"; then :
5276 xorg_testset_unused_command_line_argument=yes
5277 else
5278 xorg_testset_unused_command_line_argument=no
5279 fi
5280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
5282 $as_echo "$xorg_testset_unused_command_line_argument" >&6; }
5283 CFLAGS="$xorg_testset_save_CFLAGS"
5284 fi
5285
5286 found="no"
5287
5288 if test $found = "no" ; then
5289 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5290 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5291 fi
5292
5293 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5294 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5295 fi
5296
5297 CFLAGS="$CFLAGS -Wuninitialized"
5298
5299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
5300 $as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
5301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5302 /* end confdefs.h. */
5303 int i;
5304 int
5305 main ()
5306 {
5307
5308 ;
5309 return 0;
5310 }
5311 _ACEOF
5312 if ac_fn_c_try_link "$LINENO"; then :
5313 supported=yes
5314 else
5315 supported=no
5316 fi
5317 rm -f core conftest.err conftest.$ac_objext \
5318 conftest$ac_exeext conftest.$ac_ext
5319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5320 $as_echo "$supported" >&6; }
5321 CFLAGS="$xorg_testset_save_CFLAGS"
5322
5323 if test "$supported" = "yes" ; then
5324 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
5325 found="yes"
5326 fi
5327 fi
5328
5329
5330
5331
5332
5333
5334
5335 xorg_testset_save_CFLAGS="$CFLAGS"
5336
5337 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
5338 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5340 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5342 /* end confdefs.h. */
5343 int i;
5344 _ACEOF
5345 if ac_fn_c_try_compile "$LINENO"; then :
5346 xorg_testset_unknown_warning_option=yes
5347 else
5348 xorg_testset_unknown_warning_option=no
5349 fi
5350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
5352 $as_echo "$xorg_testset_unknown_warning_option" >&6; }
5353 CFLAGS="$xorg_testset_save_CFLAGS"
5354 fi
5355
5356 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
5357 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5358 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5359 fi
5360 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5362 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5364 /* end confdefs.h. */
5365 int i;
5366 _ACEOF
5367 if ac_fn_c_try_compile "$LINENO"; then :
5368 xorg_testset_unused_command_line_argument=yes
5369 else
5370 xorg_testset_unused_command_line_argument=no
5371 fi
5372 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
5374 $as_echo "$xorg_testset_unused_command_line_argument" >&6; }
5375 CFLAGS="$xorg_testset_save_CFLAGS"
5376 fi
5377
5378 found="no"
5379
5380 if test $found = "no" ; then
5381 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5382 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5383 fi
5384
5385 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5386 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5387 fi
5388
5389 CFLAGS="$CFLAGS -Wshadow"
5390
5391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
5392 $as_echo_n "checking if $CC supports -Wshadow... " >&6; }
5393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5394 /* end confdefs.h. */
5395 int i;
5396 int
5397 main ()
5398 {
5399
5400 ;
5401 return 0;
5402 }
5403 _ACEOF
5404 if ac_fn_c_try_link "$LINENO"; then :
5405 supported=yes
5406 else
5407 supported=no
5408 fi
5409 rm -f core conftest.err conftest.$ac_objext \
5410 conftest$ac_exeext conftest.$ac_ext
5411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5412 $as_echo "$supported" >&6; }
5413 CFLAGS="$xorg_testset_save_CFLAGS"
5414
5415 if test "$supported" = "yes" ; then
5416 BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
5417 found="yes"
5418 fi
5419 fi
5420
5421
5422
5423
5424
5425
5426
5427 xorg_testset_save_CFLAGS="$CFLAGS"
5428
5429 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
5430 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5432 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5434 /* end confdefs.h. */
5435 int i;
5436 _ACEOF
5437 if ac_fn_c_try_compile "$LINENO"; then :
5438 xorg_testset_unknown_warning_option=yes
5439 else
5440 xorg_testset_unknown_warning_option=no
5441 fi
5442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
5444 $as_echo "$xorg_testset_unknown_warning_option" >&6; }
5445 CFLAGS="$xorg_testset_save_CFLAGS"
5446 fi
5447
5448 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
5449 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5450 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5451 fi
5452 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5454 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5456 /* end confdefs.h. */
5457 int i;
5458 _ACEOF
5459 if ac_fn_c_try_compile "$LINENO"; then :
5460 xorg_testset_unused_command_line_argument=yes
5461 else
5462 xorg_testset_unused_command_line_argument=no
5463 fi
5464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
5466 $as_echo "$xorg_testset_unused_command_line_argument" >&6; }
5467 CFLAGS="$xorg_testset_save_CFLAGS"
5468 fi
5469
5470 found="no"
5471
5472 if test $found = "no" ; then
5473 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5474 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5475 fi
5476
5477 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5478 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5479 fi
5480
5481 CFLAGS="$CFLAGS -Wcast-qual"
5482
5483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wcast-qual" >&5
5484 $as_echo_n "checking if $CC supports -Wcast-qual... " >&6; }
5485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5486 /* end confdefs.h. */
5487 int i;
5488 int
5489 main ()
5490 {
5491
5492 ;
5493 return 0;
5494 }
5495 _ACEOF
5496 if ac_fn_c_try_link "$LINENO"; then :
5497 supported=yes
5498 else
5499 supported=no
5500 fi
5501 rm -f core conftest.err conftest.$ac_objext \
5502 conftest$ac_exeext conftest.$ac_ext
5503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5504 $as_echo "$supported" >&6; }
5505 CFLAGS="$xorg_testset_save_CFLAGS"
5506
5507 if test "$supported" = "yes" ; then
5508 BASE_CFLAGS="$BASE_CFLAGS -Wcast-qual"
5509 found="yes"
5510 fi
5511 fi
5512
5513
5514
5515
5516
5517
5518
5519 xorg_testset_save_CFLAGS="$CFLAGS"
5520
5521 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
5522 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5524 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5526 /* end confdefs.h. */
5527 int i;
5528 _ACEOF
5529 if ac_fn_c_try_compile "$LINENO"; then :
5530 xorg_testset_unknown_warning_option=yes
5531 else
5532 xorg_testset_unknown_warning_option=no
5533 fi
5534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
5536 $as_echo "$xorg_testset_unknown_warning_option" >&6; }
5537 CFLAGS="$xorg_testset_save_CFLAGS"
5538 fi
5539
5540 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
5541 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5542 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5543 fi
5544 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5546 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5548 /* end confdefs.h. */
5549 int i;
5550 _ACEOF
5551 if ac_fn_c_try_compile "$LINENO"; then :
5552 xorg_testset_unused_command_line_argument=yes
5553 else
5554 xorg_testset_unused_command_line_argument=no
5555 fi
5556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
5558 $as_echo "$xorg_testset_unused_command_line_argument" >&6; }
5559 CFLAGS="$xorg_testset_save_CFLAGS"
5560 fi
5561
5562 found="no"
5563
5564 if test $found = "no" ; then
5565 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5566 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5567 fi
5568
5569 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5570 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5571 fi
5572
5573 CFLAGS="$CFLAGS -Wmissing-noreturn"
5574
5575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
5576 $as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
5577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5578 /* end confdefs.h. */
5579 int i;
5580 int
5581 main ()
5582 {
5583
5584 ;
5585 return 0;
5586 }
5587 _ACEOF
5588 if ac_fn_c_try_link "$LINENO"; then :
5589 supported=yes
5590 else
5591 supported=no
5592 fi
5593 rm -f core conftest.err conftest.$ac_objext \
5594 conftest$ac_exeext conftest.$ac_ext
5595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5596 $as_echo "$supported" >&6; }
5597 CFLAGS="$xorg_testset_save_CFLAGS"
5598
5599 if test "$supported" = "yes" ; then
5600 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
5601 found="yes"
5602 fi
5603 fi
5604
5605
5606
5607
5608
5609
5610
5611 xorg_testset_save_CFLAGS="$CFLAGS"
5612
5613 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
5614 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5616 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5618 /* end confdefs.h. */
5619 int i;
5620 _ACEOF
5621 if ac_fn_c_try_compile "$LINENO"; then :
5622 xorg_testset_unknown_warning_option=yes
5623 else
5624 xorg_testset_unknown_warning_option=no
5625 fi
5626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
5628 $as_echo "$xorg_testset_unknown_warning_option" >&6; }
5629 CFLAGS="$xorg_testset_save_CFLAGS"
5630 fi
5631
5632 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
5633 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5634 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5635 fi
5636 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5638 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5640 /* end confdefs.h. */
5641 int i;
5642 _ACEOF
5643 if ac_fn_c_try_compile "$LINENO"; then :
5644 xorg_testset_unused_command_line_argument=yes
5645 else
5646 xorg_testset_unused_command_line_argument=no
5647 fi
5648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
5650 $as_echo "$xorg_testset_unused_command_line_argument" >&6; }
5651 CFLAGS="$xorg_testset_save_CFLAGS"
5652 fi
5653
5654 found="no"
5655
5656 if test $found = "no" ; then
5657 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5658 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5659 fi
5660
5661 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5662 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5663 fi
5664
5665 CFLAGS="$CFLAGS -Wmissing-format-attribute"
5666
5667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
5668 $as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
5669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5670 /* end confdefs.h. */
5671 int i;
5672 int
5673 main ()
5674 {
5675
5676 ;
5677 return 0;
5678 }
5679 _ACEOF
5680 if ac_fn_c_try_link "$LINENO"; then :
5681 supported=yes
5682 else
5683 supported=no
5684 fi
5685 rm -f core conftest.err conftest.$ac_objext \
5686 conftest$ac_exeext conftest.$ac_ext
5687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5688 $as_echo "$supported" >&6; }
5689 CFLAGS="$xorg_testset_save_CFLAGS"
5690
5691 if test "$supported" = "yes" ; then
5692 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
5693 found="yes"
5694 fi
5695 fi
5696
5697
5698
5699
5700
5701
5702
5703 xorg_testset_save_CFLAGS="$CFLAGS"
5704
5705 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
5706 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5708 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5710 /* end confdefs.h. */
5711 int i;
5712 _ACEOF
5713 if ac_fn_c_try_compile "$LINENO"; then :
5714 xorg_testset_unknown_warning_option=yes
5715 else
5716 xorg_testset_unknown_warning_option=no
5717 fi
5718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
5720 $as_echo "$xorg_testset_unknown_warning_option" >&6; }
5721 CFLAGS="$xorg_testset_save_CFLAGS"
5722 fi
5723
5724 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
5725 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5726 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5727 fi
5728 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5730 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5732 /* end confdefs.h. */
5733 int i;
5734 _ACEOF
5735 if ac_fn_c_try_compile "$LINENO"; then :
5736 xorg_testset_unused_command_line_argument=yes
5737 else
5738 xorg_testset_unused_command_line_argument=no
5739 fi
5740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
5742 $as_echo "$xorg_testset_unused_command_line_argument" >&6; }
5743 CFLAGS="$xorg_testset_save_CFLAGS"
5744 fi
5745
5746 found="no"
5747
5748 if test $found = "no" ; then
5749 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5750 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5751 fi
5752
5753 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5754 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5755 fi
5756
5757 CFLAGS="$CFLAGS -Wredundant-decls"
5758
5759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
5760 $as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
5761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5762 /* end confdefs.h. */
5763 int i;
5764 int
5765 main ()
5766 {
5767
5768 ;
5769 return 0;
5770 }
5771 _ACEOF
5772 if ac_fn_c_try_link "$LINENO"; then :
5773 supported=yes
5774 else
5775 supported=no
5776 fi
5777 rm -f core conftest.err conftest.$ac_objext \
5778 conftest$ac_exeext conftest.$ac_ext
5779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5780 $as_echo "$supported" >&6; }
5781 CFLAGS="$xorg_testset_save_CFLAGS"
5782
5783 if test "$supported" = "yes" ; then
5784 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
5785 found="yes"
5786 fi
5787 fi
5788
5789
5790
5791 # These are currently disabled because they are noisy. They will be enabled
5792 # in the future once the codebase is sufficiently modernized to silence
5793 # them. For now, I don't want them to drown out the other warnings.
5794 # XORG_TESTSET_CFLAG([BASE_CFLAGS], [-Wlogical-op])
5795 # XORG_TESTSET_CFLAG([BASE_CFLAGS], [-Wparentheses])
5796 # XORG_TESTSET_CFLAG([BASE_CFLAGS], [-Wcast-align])
5797
5798 # Turn some warnings into errors, so we don't accidently get successful builds
5799 # when there are problems that should be fixed.
5800
5801 if test "x$SELECTIVE_WERROR" = "xyes" ; then
5802
5803
5804
5805
5806
5807 xorg_testset_save_CFLAGS="$CFLAGS"
5808
5809 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
5810 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5812 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5814 /* end confdefs.h. */
5815 int i;
5816 _ACEOF
5817 if ac_fn_c_try_compile "$LINENO"; then :
5818 xorg_testset_unknown_warning_option=yes
5819 else
5820 xorg_testset_unknown_warning_option=no
5821 fi
5822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
5824 $as_echo "$xorg_testset_unknown_warning_option" >&6; }
5825 CFLAGS="$xorg_testset_save_CFLAGS"
5826 fi
5827
5828 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
5829 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5830 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5831 fi
5832 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5834 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5836 /* end confdefs.h. */
5837 int i;
5838 _ACEOF
5839 if ac_fn_c_try_compile "$LINENO"; then :
5840 xorg_testset_unused_command_line_argument=yes
5841 else
5842 xorg_testset_unused_command_line_argument=no
5843 fi
5844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
5846 $as_echo "$xorg_testset_unused_command_line_argument" >&6; }
5847 CFLAGS="$xorg_testset_save_CFLAGS"
5848 fi
5849
5850 found="no"
5851
5852 if test $found = "no" ; then
5853 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5854 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5855 fi
5856
5857 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5858 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5859 fi
5860
5861 CFLAGS="$CFLAGS -Werror=implicit"
5862
5863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
5864 $as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
5865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5866 /* end confdefs.h. */
5867 int i;
5868 int
5869 main ()
5870 {
5871
5872 ;
5873 return 0;
5874 }
5875 _ACEOF
5876 if ac_fn_c_try_link "$LINENO"; then :
5877 supported=yes
5878 else
5879 supported=no
5880 fi
5881 rm -f core conftest.err conftest.$ac_objext \
5882 conftest$ac_exeext conftest.$ac_ext
5883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5884 $as_echo "$supported" >&6; }
5885 CFLAGS="$xorg_testset_save_CFLAGS"
5886
5887 if test "$supported" = "yes" ; then
5888 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
5889 found="yes"
5890 fi
5891 fi
5892
5893 if test $found = "no" ; then
5894 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5895 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5896 fi
5897
5898 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5899 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5900 fi
5901
5902 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
5903
5904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
5905 $as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
5906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5907 /* end confdefs.h. */
5908 int i;
5909 int
5910 main ()
5911 {
5912
5913 ;
5914 return 0;
5915 }
5916 _ACEOF
5917 if ac_fn_c_try_link "$LINENO"; then :
5918 supported=yes
5919 else
5920 supported=no
5921 fi
5922 rm -f core conftest.err conftest.$ac_objext \
5923 conftest$ac_exeext conftest.$ac_ext
5924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5925 $as_echo "$supported" >&6; }
5926 CFLAGS="$xorg_testset_save_CFLAGS"
5927
5928 if test "$supported" = "yes" ; then
5929 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
5930 found="yes"
5931 fi
5932 fi
5933
5934
5935
5936
5937
5938
5939
5940 xorg_testset_save_CFLAGS="$CFLAGS"
5941
5942 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
5943 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5945 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5947 /* end confdefs.h. */
5948 int i;
5949 _ACEOF
5950 if ac_fn_c_try_compile "$LINENO"; then :
5951 xorg_testset_unknown_warning_option=yes
5952 else
5953 xorg_testset_unknown_warning_option=no
5954 fi
5955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
5957 $as_echo "$xorg_testset_unknown_warning_option" >&6; }
5958 CFLAGS="$xorg_testset_save_CFLAGS"
5959 fi
5960
5961 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
5962 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5963 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5964 fi
5965 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5967 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5969 /* end confdefs.h. */
5970 int i;
5971 _ACEOF
5972 if ac_fn_c_try_compile "$LINENO"; then :
5973 xorg_testset_unused_command_line_argument=yes
5974 else
5975 xorg_testset_unused_command_line_argument=no
5976 fi
5977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
5979 $as_echo "$xorg_testset_unused_command_line_argument" >&6; }
5980 CFLAGS="$xorg_testset_save_CFLAGS"
5981 fi
5982
5983 found="no"
5984
5985 if test $found = "no" ; then
5986 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5987 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5988 fi
5989
5990 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5991 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5992 fi
5993
5994 CFLAGS="$CFLAGS -Werror=nonnull"
5995
5996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
5997 $as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
5998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5999 /* end confdefs.h. */
6000 int i;
6001 int
6002 main ()
6003 {
6004
6005 ;
6006 return 0;
6007 }
6008 _ACEOF
6009 if ac_fn_c_try_link "$LINENO"; then :
6010 supported=yes
6011 else
6012 supported=no
6013 fi
6014 rm -f core conftest.err conftest.$ac_objext \
6015 conftest$ac_exeext conftest.$ac_ext
6016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6017 $as_echo "$supported" >&6; }
6018 CFLAGS="$xorg_testset_save_CFLAGS"
6019
6020 if test "$supported" = "yes" ; then
6021 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
6022 found="yes"
6023 fi
6024 fi
6025
6026
6027
6028
6029
6030
6031
6032 xorg_testset_save_CFLAGS="$CFLAGS"
6033
6034 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
6035 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6037 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6039 /* end confdefs.h. */
6040 int i;
6041 _ACEOF
6042 if ac_fn_c_try_compile "$LINENO"; then :
6043 xorg_testset_unknown_warning_option=yes
6044 else
6045 xorg_testset_unknown_warning_option=no
6046 fi
6047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
6049 $as_echo "$xorg_testset_unknown_warning_option" >&6; }
6050 CFLAGS="$xorg_testset_save_CFLAGS"
6051 fi
6052
6053 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
6054 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6055 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6056 fi
6057 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6059 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6061 /* end confdefs.h. */
6062 int i;
6063 _ACEOF
6064 if ac_fn_c_try_compile "$LINENO"; then :
6065 xorg_testset_unused_command_line_argument=yes
6066 else
6067 xorg_testset_unused_command_line_argument=no
6068 fi
6069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
6071 $as_echo "$xorg_testset_unused_command_line_argument" >&6; }
6072 CFLAGS="$xorg_testset_save_CFLAGS"
6073 fi
6074
6075 found="no"
6076
6077 if test $found = "no" ; then
6078 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6079 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6080 fi
6081
6082 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6083 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6084 fi
6085
6086 CFLAGS="$CFLAGS -Werror=init-self"
6087
6088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
6089 $as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
6090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6091 /* end confdefs.h. */
6092 int i;
6093 int
6094 main ()
6095 {
6096
6097 ;
6098 return 0;
6099 }
6100 _ACEOF
6101 if ac_fn_c_try_link "$LINENO"; then :
6102 supported=yes
6103 else
6104 supported=no
6105 fi
6106 rm -f core conftest.err conftest.$ac_objext \
6107 conftest$ac_exeext conftest.$ac_ext
6108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6109 $as_echo "$supported" >&6; }
6110 CFLAGS="$xorg_testset_save_CFLAGS"
6111
6112 if test "$supported" = "yes" ; then
6113 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
6114 found="yes"
6115 fi
6116 fi
6117
6118
6119
6120
6121
6122
6123
6124 xorg_testset_save_CFLAGS="$CFLAGS"
6125
6126 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
6127 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6129 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6131 /* end confdefs.h. */
6132 int i;
6133 _ACEOF
6134 if ac_fn_c_try_compile "$LINENO"; then :
6135 xorg_testset_unknown_warning_option=yes
6136 else
6137 xorg_testset_unknown_warning_option=no
6138 fi
6139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
6141 $as_echo "$xorg_testset_unknown_warning_option" >&6; }
6142 CFLAGS="$xorg_testset_save_CFLAGS"
6143 fi
6144
6145 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
6146 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6147 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6148 fi
6149 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6151 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6153 /* end confdefs.h. */
6154 int i;
6155 _ACEOF
6156 if ac_fn_c_try_compile "$LINENO"; then :
6157 xorg_testset_unused_command_line_argument=yes
6158 else
6159 xorg_testset_unused_command_line_argument=no
6160 fi
6161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
6163 $as_echo "$xorg_testset_unused_command_line_argument" >&6; }
6164 CFLAGS="$xorg_testset_save_CFLAGS"
6165 fi
6166
6167 found="no"
6168
6169 if test $found = "no" ; then
6170 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6171 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6172 fi
6173
6174 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6175 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6176 fi
6177
6178 CFLAGS="$CFLAGS -Werror=main"
6179
6180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
6181 $as_echo_n "checking if $CC supports -Werror=main... " >&6; }
6182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6183 /* end confdefs.h. */
6184 int i;
6185 int
6186 main ()
6187 {
6188
6189 ;
6190 return 0;
6191 }
6192 _ACEOF
6193 if ac_fn_c_try_link "$LINENO"; then :
6194 supported=yes
6195 else
6196 supported=no
6197 fi
6198 rm -f core conftest.err conftest.$ac_objext \
6199 conftest$ac_exeext conftest.$ac_ext
6200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6201 $as_echo "$supported" >&6; }
6202 CFLAGS="$xorg_testset_save_CFLAGS"
6203
6204 if test "$supported" = "yes" ; then
6205 BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
6206 found="yes"
6207 fi
6208 fi
6209
6210
6211
6212
6213
6214
6215
6216 xorg_testset_save_CFLAGS="$CFLAGS"
6217
6218 if test "x$xorg_testset_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 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6223 /* end confdefs.h. */
6224 int i;
6225 _ACEOF
6226 if ac_fn_c_try_compile "$LINENO"; then :
6227 xorg_testset_unknown_warning_option=yes
6228 else
6229 xorg_testset_unknown_warning_option=no
6230 fi
6231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
6233 $as_echo "$xorg_testset_unknown_warning_option" >&6; }
6234 CFLAGS="$xorg_testset_save_CFLAGS"
6235 fi
6236
6237 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
6238 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6239 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6240 fi
6241 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6243 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6245 /* end confdefs.h. */
6246 int i;
6247 _ACEOF
6248 if ac_fn_c_try_compile "$LINENO"; then :
6249 xorg_testset_unused_command_line_argument=yes
6250 else
6251 xorg_testset_unused_command_line_argument=no
6252 fi
6253 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
6255 $as_echo "$xorg_testset_unused_command_line_argument" >&6; }
6256 CFLAGS="$xorg_testset_save_CFLAGS"
6257 fi
6258
6259 found="no"
6260
6261 if test $found = "no" ; then
6262 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6263 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6264 fi
6265
6266 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6267 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6268 fi
6269
6270 CFLAGS="$CFLAGS -Werror=missing-braces"
6271
6272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
6273 $as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
6274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6275 /* end confdefs.h. */
6276 int i;
6277 int
6278 main ()
6279 {
6280
6281 ;
6282 return 0;
6283 }
6284 _ACEOF
6285 if ac_fn_c_try_link "$LINENO"; then :
6286 supported=yes
6287 else
6288 supported=no
6289 fi
6290 rm -f core conftest.err conftest.$ac_objext \
6291 conftest$ac_exeext conftest.$ac_ext
6292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6293 $as_echo "$supported" >&6; }
6294 CFLAGS="$xorg_testset_save_CFLAGS"
6295
6296 if test "$supported" = "yes" ; then
6297 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
6298 found="yes"
6299 fi
6300 fi
6301
6302
6303
6304
6305
6306
6307
6308 xorg_testset_save_CFLAGS="$CFLAGS"
6309
6310 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
6311 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6313 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6315 /* end confdefs.h. */
6316 int i;
6317 _ACEOF
6318 if ac_fn_c_try_compile "$LINENO"; then :
6319 xorg_testset_unknown_warning_option=yes
6320 else
6321 xorg_testset_unknown_warning_option=no
6322 fi
6323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
6325 $as_echo "$xorg_testset_unknown_warning_option" >&6; }
6326 CFLAGS="$xorg_testset_save_CFLAGS"
6327 fi
6328
6329 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
6330 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6331 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6332 fi
6333 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6335 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6337 /* end confdefs.h. */
6338 int i;
6339 _ACEOF
6340 if ac_fn_c_try_compile "$LINENO"; then :
6341 xorg_testset_unused_command_line_argument=yes
6342 else
6343 xorg_testset_unused_command_line_argument=no
6344 fi
6345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
6347 $as_echo "$xorg_testset_unused_command_line_argument" >&6; }
6348 CFLAGS="$xorg_testset_save_CFLAGS"
6349 fi
6350
6351 found="no"
6352
6353 if test $found = "no" ; then
6354 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6355 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6356 fi
6357
6358 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6359 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6360 fi
6361
6362 CFLAGS="$CFLAGS -Werror=sequence-point"
6363
6364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
6365 $as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
6366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6367 /* end confdefs.h. */
6368 int i;
6369 int
6370 main ()
6371 {
6372
6373 ;
6374 return 0;
6375 }
6376 _ACEOF
6377 if ac_fn_c_try_link "$LINENO"; then :
6378 supported=yes
6379 else
6380 supported=no
6381 fi
6382 rm -f core conftest.err conftest.$ac_objext \
6383 conftest$ac_exeext conftest.$ac_ext
6384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6385 $as_echo "$supported" >&6; }
6386 CFLAGS="$xorg_testset_save_CFLAGS"
6387
6388 if test "$supported" = "yes" ; then
6389 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
6390 found="yes"
6391 fi
6392 fi
6393
6394
6395
6396
6397
6398
6399
6400 xorg_testset_save_CFLAGS="$CFLAGS"
6401
6402 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
6403 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6405 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6407 /* end confdefs.h. */
6408 int i;
6409 _ACEOF
6410 if ac_fn_c_try_compile "$LINENO"; then :
6411 xorg_testset_unknown_warning_option=yes
6412 else
6413 xorg_testset_unknown_warning_option=no
6414 fi
6415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
6417 $as_echo "$xorg_testset_unknown_warning_option" >&6; }
6418 CFLAGS="$xorg_testset_save_CFLAGS"
6419 fi
6420
6421 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
6422 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6423 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6424 fi
6425 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6427 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6429 /* end confdefs.h. */
6430 int i;
6431 _ACEOF
6432 if ac_fn_c_try_compile "$LINENO"; then :
6433 xorg_testset_unused_command_line_argument=yes
6434 else
6435 xorg_testset_unused_command_line_argument=no
6436 fi
6437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
6439 $as_echo "$xorg_testset_unused_command_line_argument" >&6; }
6440 CFLAGS="$xorg_testset_save_CFLAGS"
6441 fi
6442
6443 found="no"
6444
6445 if test $found = "no" ; then
6446 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6447 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6448 fi
6449
6450 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6451 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6452 fi
6453
6454 CFLAGS="$CFLAGS -Werror=return-type"
6455
6456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
6457 $as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
6458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6459 /* end confdefs.h. */
6460 int i;
6461 int
6462 main ()
6463 {
6464
6465 ;
6466 return 0;
6467 }
6468 _ACEOF
6469 if ac_fn_c_try_link "$LINENO"; then :
6470 supported=yes
6471 else
6472 supported=no
6473 fi
6474 rm -f core conftest.err conftest.$ac_objext \
6475 conftest$ac_exeext conftest.$ac_ext
6476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6477 $as_echo "$supported" >&6; }
6478 CFLAGS="$xorg_testset_save_CFLAGS"
6479
6480 if test "$supported" = "yes" ; then
6481 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
6482 found="yes"
6483 fi
6484 fi
6485
6486 if test $found = "no" ; then
6487 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6488 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6489 fi
6490
6491 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6492 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6493 fi
6494
6495 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
6496
6497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
6498 $as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
6499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6500 /* end confdefs.h. */
6501 int i;
6502 int
6503 main ()
6504 {
6505
6506 ;
6507 return 0;
6508 }
6509 _ACEOF
6510 if ac_fn_c_try_link "$LINENO"; then :
6511 supported=yes
6512 else
6513 supported=no
6514 fi
6515 rm -f core conftest.err conftest.$ac_objext \
6516 conftest$ac_exeext conftest.$ac_ext
6517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6518 $as_echo "$supported" >&6; }
6519 CFLAGS="$xorg_testset_save_CFLAGS"
6520
6521 if test "$supported" = "yes" ; then
6522 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
6523 found="yes"
6524 fi
6525 fi
6526
6527
6528
6529
6530
6531
6532
6533 xorg_testset_save_CFLAGS="$CFLAGS"
6534
6535 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
6536 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6538 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6540 /* end confdefs.h. */
6541 int i;
6542 _ACEOF
6543 if ac_fn_c_try_compile "$LINENO"; then :
6544 xorg_testset_unknown_warning_option=yes
6545 else
6546 xorg_testset_unknown_warning_option=no
6547 fi
6548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
6550 $as_echo "$xorg_testset_unknown_warning_option" >&6; }
6551 CFLAGS="$xorg_testset_save_CFLAGS"
6552 fi
6553
6554 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
6555 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6556 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6557 fi
6558 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6560 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6562 /* end confdefs.h. */
6563 int i;
6564 _ACEOF
6565 if ac_fn_c_try_compile "$LINENO"; then :
6566 xorg_testset_unused_command_line_argument=yes
6567 else
6568 xorg_testset_unused_command_line_argument=no
6569 fi
6570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
6572 $as_echo "$xorg_testset_unused_command_line_argument" >&6; }
6573 CFLAGS="$xorg_testset_save_CFLAGS"
6574 fi
6575
6576 found="no"
6577
6578 if test $found = "no" ; then
6579 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6580 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6581 fi
6582
6583 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6584 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6585 fi
6586
6587 CFLAGS="$CFLAGS -Werror=trigraphs"
6588
6589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
6590 $as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
6591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6592 /* end confdefs.h. */
6593 int i;
6594 int
6595 main ()
6596 {
6597
6598 ;
6599 return 0;
6600 }
6601 _ACEOF
6602 if ac_fn_c_try_link "$LINENO"; then :
6603 supported=yes
6604 else
6605 supported=no
6606 fi
6607 rm -f core conftest.err conftest.$ac_objext \
6608 conftest$ac_exeext conftest.$ac_ext
6609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6610 $as_echo "$supported" >&6; }
6611 CFLAGS="$xorg_testset_save_CFLAGS"
6612
6613 if test "$supported" = "yes" ; then
6614 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
6615 found="yes"
6616 fi
6617 fi
6618
6619
6620
6621
6622
6623
6624
6625 xorg_testset_save_CFLAGS="$CFLAGS"
6626
6627 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
6628 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6630 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6632 /* end confdefs.h. */
6633 int i;
6634 _ACEOF
6635 if ac_fn_c_try_compile "$LINENO"; then :
6636 xorg_testset_unknown_warning_option=yes
6637 else
6638 xorg_testset_unknown_warning_option=no
6639 fi
6640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
6642 $as_echo "$xorg_testset_unknown_warning_option" >&6; }
6643 CFLAGS="$xorg_testset_save_CFLAGS"
6644 fi
6645
6646 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
6647 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6648 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6649 fi
6650 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6652 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6654 /* end confdefs.h. */
6655 int i;
6656 _ACEOF
6657 if ac_fn_c_try_compile "$LINENO"; then :
6658 xorg_testset_unused_command_line_argument=yes
6659 else
6660 xorg_testset_unused_command_line_argument=no
6661 fi
6662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
6664 $as_echo "$xorg_testset_unused_command_line_argument" >&6; }
6665 CFLAGS="$xorg_testset_save_CFLAGS"
6666 fi
6667
6668 found="no"
6669
6670 if test $found = "no" ; then
6671 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6672 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6673 fi
6674
6675 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6676 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6677 fi
6678
6679 CFLAGS="$CFLAGS -Werror=array-bounds"
6680
6681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
6682 $as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
6683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6684 /* end confdefs.h. */
6685 int i;
6686 int
6687 main ()
6688 {
6689
6690 ;
6691 return 0;
6692 }
6693 _ACEOF
6694 if ac_fn_c_try_link "$LINENO"; then :
6695 supported=yes
6696 else
6697 supported=no
6698 fi
6699 rm -f core conftest.err conftest.$ac_objext \
6700 conftest$ac_exeext conftest.$ac_ext
6701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6702 $as_echo "$supported" >&6; }
6703 CFLAGS="$xorg_testset_save_CFLAGS"
6704
6705 if test "$supported" = "yes" ; then
6706 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
6707 found="yes"
6708 fi
6709 fi
6710
6711
6712
6713
6714
6715
6716
6717 xorg_testset_save_CFLAGS="$CFLAGS"
6718
6719 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
6720 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6722 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6724 /* end confdefs.h. */
6725 int i;
6726 _ACEOF
6727 if ac_fn_c_try_compile "$LINENO"; then :
6728 xorg_testset_unknown_warning_option=yes
6729 else
6730 xorg_testset_unknown_warning_option=no
6731 fi
6732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
6734 $as_echo "$xorg_testset_unknown_warning_option" >&6; }
6735 CFLAGS="$xorg_testset_save_CFLAGS"
6736 fi
6737
6738 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
6739 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6740 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6741 fi
6742 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6744 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6746 /* end confdefs.h. */
6747 int i;
6748 _ACEOF
6749 if ac_fn_c_try_compile "$LINENO"; then :
6750 xorg_testset_unused_command_line_argument=yes
6751 else
6752 xorg_testset_unused_command_line_argument=no
6753 fi
6754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
6756 $as_echo "$xorg_testset_unused_command_line_argument" >&6; }
6757 CFLAGS="$xorg_testset_save_CFLAGS"
6758 fi
6759
6760 found="no"
6761
6762 if test $found = "no" ; then
6763 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6764 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6765 fi
6766
6767 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6768 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6769 fi
6770
6771 CFLAGS="$CFLAGS -Werror=write-strings"
6772
6773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
6774 $as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
6775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6776 /* end confdefs.h. */
6777 int i;
6778 int
6779 main ()
6780 {
6781
6782 ;
6783 return 0;
6784 }
6785 _ACEOF
6786 if ac_fn_c_try_link "$LINENO"; then :
6787 supported=yes
6788 else
6789 supported=no
6790 fi
6791 rm -f core conftest.err conftest.$ac_objext \
6792 conftest$ac_exeext conftest.$ac_ext
6793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6794 $as_echo "$supported" >&6; }
6795 CFLAGS="$xorg_testset_save_CFLAGS"
6796
6797 if test "$supported" = "yes" ; then
6798 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
6799 found="yes"
6800 fi
6801 fi
6802
6803
6804
6805
6806
6807
6808
6809 xorg_testset_save_CFLAGS="$CFLAGS"
6810
6811 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
6812 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6814 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6816 /* end confdefs.h. */
6817 int i;
6818 _ACEOF
6819 if ac_fn_c_try_compile "$LINENO"; then :
6820 xorg_testset_unknown_warning_option=yes
6821 else
6822 xorg_testset_unknown_warning_option=no
6823 fi
6824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
6826 $as_echo "$xorg_testset_unknown_warning_option" >&6; }
6827 CFLAGS="$xorg_testset_save_CFLAGS"
6828 fi
6829
6830 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
6831 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6832 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6833 fi
6834 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6836 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6838 /* end confdefs.h. */
6839 int i;
6840 _ACEOF
6841 if ac_fn_c_try_compile "$LINENO"; then :
6842 xorg_testset_unused_command_line_argument=yes
6843 else
6844 xorg_testset_unused_command_line_argument=no
6845 fi
6846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
6848 $as_echo "$xorg_testset_unused_command_line_argument" >&6; }
6849 CFLAGS="$xorg_testset_save_CFLAGS"
6850 fi
6851
6852 found="no"
6853
6854 if test $found = "no" ; then
6855 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6856 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6857 fi
6858
6859 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6860 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6861 fi
6862
6863 CFLAGS="$CFLAGS -Werror=address"
6864
6865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
6866 $as_echo_n "checking if $CC supports -Werror=address... " >&6; }
6867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6868 /* end confdefs.h. */
6869 int i;
6870 int
6871 main ()
6872 {
6873
6874 ;
6875 return 0;
6876 }
6877 _ACEOF
6878 if ac_fn_c_try_link "$LINENO"; then :
6879 supported=yes
6880 else
6881 supported=no
6882 fi
6883 rm -f core conftest.err conftest.$ac_objext \
6884 conftest$ac_exeext conftest.$ac_ext
6885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6886 $as_echo "$supported" >&6; }
6887 CFLAGS="$xorg_testset_save_CFLAGS"
6888
6889 if test "$supported" = "yes" ; then
6890 BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
6891 found="yes"
6892 fi
6893 fi
6894
6895
6896
6897
6898
6899
6900
6901 xorg_testset_save_CFLAGS="$CFLAGS"
6902
6903 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
6904 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6906 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6908 /* end confdefs.h. */
6909 int i;
6910 _ACEOF
6911 if ac_fn_c_try_compile "$LINENO"; then :
6912 xorg_testset_unknown_warning_option=yes
6913 else
6914 xorg_testset_unknown_warning_option=no
6915 fi
6916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
6918 $as_echo "$xorg_testset_unknown_warning_option" >&6; }
6919 CFLAGS="$xorg_testset_save_CFLAGS"
6920 fi
6921
6922 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
6923 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6924 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6925 fi
6926 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6928 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6930 /* end confdefs.h. */
6931 int i;
6932 _ACEOF
6933 if ac_fn_c_try_compile "$LINENO"; then :
6934 xorg_testset_unused_command_line_argument=yes
6935 else
6936 xorg_testset_unused_command_line_argument=no
6937 fi
6938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
6940 $as_echo "$xorg_testset_unused_command_line_argument" >&6; }
6941 CFLAGS="$xorg_testset_save_CFLAGS"
6942 fi
6943
6944 found="no"
6945
6946 if test $found = "no" ; then
6947 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6948 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6949 fi
6950
6951 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6952 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6953 fi
6954
6955 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
6956
6957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
6958 $as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
6959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6960 /* end confdefs.h. */
6961 int i;
6962 int
6963 main ()
6964 {
6965
6966 ;
6967 return 0;
6968 }
6969 _ACEOF
6970 if ac_fn_c_try_link "$LINENO"; then :
6971 supported=yes
6972 else
6973 supported=no
6974 fi
6975 rm -f core conftest.err conftest.$ac_objext \
6976 conftest$ac_exeext conftest.$ac_ext
6977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6978 $as_echo "$supported" >&6; }
6979 CFLAGS="$xorg_testset_save_CFLAGS"
6980
6981 if test "$supported" = "yes" ; then
6982 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
6983 found="yes"
6984 fi
6985 fi
6986
6987 if test $found = "no" ; then
6988 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6989 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6990 fi
6991
6992 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6993 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6994 fi
6995
6996 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
6997
6998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
6999 $as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
7000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7001 /* end confdefs.h. */
7002 int i;
7003 int
7004 main ()
7005 {
7006
7007 ;
7008 return 0;
7009 }
7010 _ACEOF
7011 if ac_fn_c_try_link "$LINENO"; then :
7012 supported=yes
7013 else
7014 supported=no
7015 fi
7016 rm -f core conftest.err conftest.$ac_objext \
7017 conftest$ac_exeext conftest.$ac_ext
7018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7019 $as_echo "$supported" >&6; }
7020 CFLAGS="$xorg_testset_save_CFLAGS"
7021
7022 if test "$supported" = "yes" ; then
7023 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
7024 found="yes"
7025 fi
7026 fi
7027
7028
7029
7030
7031
7032
7033
7034 xorg_testset_save_CFLAGS="$CFLAGS"
7035
7036 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
7037 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7039 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7041 /* end confdefs.h. */
7042 int i;
7043 _ACEOF
7044 if ac_fn_c_try_compile "$LINENO"; then :
7045 xorg_testset_unknown_warning_option=yes
7046 else
7047 xorg_testset_unknown_warning_option=no
7048 fi
7049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
7051 $as_echo "$xorg_testset_unknown_warning_option" >&6; }
7052 CFLAGS="$xorg_testset_save_CFLAGS"
7053 fi
7054
7055 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
7056 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7057 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7058 fi
7059 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7061 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7063 /* end confdefs.h. */
7064 int i;
7065 _ACEOF
7066 if ac_fn_c_try_compile "$LINENO"; then :
7067 xorg_testset_unused_command_line_argument=yes
7068 else
7069 xorg_testset_unused_command_line_argument=no
7070 fi
7071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
7073 $as_echo "$xorg_testset_unused_command_line_argument" >&6; }
7074 CFLAGS="$xorg_testset_save_CFLAGS"
7075 fi
7076
7077 found="no"
7078
7079 if test $found = "no" ; then
7080 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7081 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7082 fi
7083
7084 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7085 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7086 fi
7087
7088 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
7089
7090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
7091 $as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
7092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7093 /* end confdefs.h. */
7094 int i;
7095 int
7096 main ()
7097 {
7098
7099 ;
7100 return 0;
7101 }
7102 _ACEOF
7103 if ac_fn_c_try_link "$LINENO"; then :
7104 supported=yes
7105 else
7106 supported=no
7107 fi
7108 rm -f core conftest.err conftest.$ac_objext \
7109 conftest$ac_exeext conftest.$ac_ext
7110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7111 $as_echo "$supported" >&6; }
7112 CFLAGS="$xorg_testset_save_CFLAGS"
7113
7114 if test "$supported" = "yes" ; then
7115 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
7116 found="yes"
7117 fi
7118 fi
7119
7120 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
7121 else
7122 { $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
7123 $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;}
7124
7125
7126
7127
7128
7129 xorg_testset_save_CFLAGS="$CFLAGS"
7130
7131 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
7132 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7134 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7136 /* end confdefs.h. */
7137 int i;
7138 _ACEOF
7139 if ac_fn_c_try_compile "$LINENO"; then :
7140 xorg_testset_unknown_warning_option=yes
7141 else
7142 xorg_testset_unknown_warning_option=no
7143 fi
7144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
7146 $as_echo "$xorg_testset_unknown_warning_option" >&6; }
7147 CFLAGS="$xorg_testset_save_CFLAGS"
7148 fi
7149
7150 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
7151 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7152 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7153 fi
7154 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7156 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7158 /* end confdefs.h. */
7159 int i;
7160 _ACEOF
7161 if ac_fn_c_try_compile "$LINENO"; then :
7162 xorg_testset_unused_command_line_argument=yes
7163 else
7164 xorg_testset_unused_command_line_argument=no
7165 fi
7166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
7168 $as_echo "$xorg_testset_unused_command_line_argument" >&6; }
7169 CFLAGS="$xorg_testset_save_CFLAGS"
7170 fi
7171
7172 found="no"
7173
7174 if test $found = "no" ; then
7175 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7176 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7177 fi
7178
7179 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7180 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7181 fi
7182
7183 CFLAGS="$CFLAGS -Wimplicit"
7184
7185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
7186 $as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
7187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7188 /* end confdefs.h. */
7189 int i;
7190 int
7191 main ()
7192 {
7193
7194 ;
7195 return 0;
7196 }
7197 _ACEOF
7198 if ac_fn_c_try_link "$LINENO"; then :
7199 supported=yes
7200 else
7201 supported=no
7202 fi
7203 rm -f core conftest.err conftest.$ac_objext \
7204 conftest$ac_exeext conftest.$ac_ext
7205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7206 $as_echo "$supported" >&6; }
7207 CFLAGS="$xorg_testset_save_CFLAGS"
7208
7209 if test "$supported" = "yes" ; then
7210 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
7211 found="yes"
7212 fi
7213 fi
7214
7215
7216
7217
7218
7219
7220
7221 xorg_testset_save_CFLAGS="$CFLAGS"
7222
7223 if test "x$xorg_testset_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 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7228 /* end confdefs.h. */
7229 int i;
7230 _ACEOF
7231 if ac_fn_c_try_compile "$LINENO"; then :
7232 xorg_testset_unknown_warning_option=yes
7233 else
7234 xorg_testset_unknown_warning_option=no
7235 fi
7236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
7238 $as_echo "$xorg_testset_unknown_warning_option" >&6; }
7239 CFLAGS="$xorg_testset_save_CFLAGS"
7240 fi
7241
7242 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
7243 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7244 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7245 fi
7246 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7248 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7250 /* end confdefs.h. */
7251 int i;
7252 _ACEOF
7253 if ac_fn_c_try_compile "$LINENO"; then :
7254 xorg_testset_unused_command_line_argument=yes
7255 else
7256 xorg_testset_unused_command_line_argument=no
7257 fi
7258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
7260 $as_echo "$xorg_testset_unused_command_line_argument" >&6; }
7261 CFLAGS="$xorg_testset_save_CFLAGS"
7262 fi
7263
7264 found="no"
7265
7266 if test $found = "no" ; then
7267 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7268 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7269 fi
7270
7271 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7272 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7273 fi
7274
7275 CFLAGS="$CFLAGS -Wnonnull"
7276
7277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
7278 $as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
7279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7280 /* end confdefs.h. */
7281 int i;
7282 int
7283 main ()
7284 {
7285
7286 ;
7287 return 0;
7288 }
7289 _ACEOF
7290 if ac_fn_c_try_link "$LINENO"; then :
7291 supported=yes
7292 else
7293 supported=no
7294 fi
7295 rm -f core conftest.err conftest.$ac_objext \
7296 conftest$ac_exeext conftest.$ac_ext
7297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7298 $as_echo "$supported" >&6; }
7299 CFLAGS="$xorg_testset_save_CFLAGS"
7300
7301 if test "$supported" = "yes" ; then
7302 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
7303 found="yes"
7304 fi
7305 fi
7306
7307
7308
7309
7310
7311
7312
7313 xorg_testset_save_CFLAGS="$CFLAGS"
7314
7315 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
7316 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7318 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7320 /* end confdefs.h. */
7321 int i;
7322 _ACEOF
7323 if ac_fn_c_try_compile "$LINENO"; then :
7324 xorg_testset_unknown_warning_option=yes
7325 else
7326 xorg_testset_unknown_warning_option=no
7327 fi
7328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
7330 $as_echo "$xorg_testset_unknown_warning_option" >&6; }
7331 CFLAGS="$xorg_testset_save_CFLAGS"
7332 fi
7333
7334 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
7335 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7336 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7337 fi
7338 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7340 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7342 /* end confdefs.h. */
7343 int i;
7344 _ACEOF
7345 if ac_fn_c_try_compile "$LINENO"; then :
7346 xorg_testset_unused_command_line_argument=yes
7347 else
7348 xorg_testset_unused_command_line_argument=no
7349 fi
7350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
7352 $as_echo "$xorg_testset_unused_command_line_argument" >&6; }
7353 CFLAGS="$xorg_testset_save_CFLAGS"
7354 fi
7355
7356 found="no"
7357
7358 if test $found = "no" ; then
7359 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7360 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7361 fi
7362
7363 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7364 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7365 fi
7366
7367 CFLAGS="$CFLAGS -Winit-self"
7368
7369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
7370 $as_echo_n "checking if $CC supports -Winit-self... " >&6; }
7371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7372 /* end confdefs.h. */
7373 int i;
7374 int
7375 main ()
7376 {
7377
7378 ;
7379 return 0;
7380 }
7381 _ACEOF
7382 if ac_fn_c_try_link "$LINENO"; then :
7383 supported=yes
7384 else
7385 supported=no
7386 fi
7387 rm -f core conftest.err conftest.$ac_objext \
7388 conftest$ac_exeext conftest.$ac_ext
7389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7390 $as_echo "$supported" >&6; }
7391 CFLAGS="$xorg_testset_save_CFLAGS"
7392
7393 if test "$supported" = "yes" ; then
7394 BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
7395 found="yes"
7396 fi
7397 fi
7398
7399
7400
7401
7402
7403
7404
7405 xorg_testset_save_CFLAGS="$CFLAGS"
7406
7407 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
7408 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7410 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7412 /* end confdefs.h. */
7413 int i;
7414 _ACEOF
7415 if ac_fn_c_try_compile "$LINENO"; then :
7416 xorg_testset_unknown_warning_option=yes
7417 else
7418 xorg_testset_unknown_warning_option=no
7419 fi
7420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
7422 $as_echo "$xorg_testset_unknown_warning_option" >&6; }
7423 CFLAGS="$xorg_testset_save_CFLAGS"
7424 fi
7425
7426 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
7427 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7428 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7429 fi
7430 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7432 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7434 /* end confdefs.h. */
7435 int i;
7436 _ACEOF
7437 if ac_fn_c_try_compile "$LINENO"; then :
7438 xorg_testset_unused_command_line_argument=yes
7439 else
7440 xorg_testset_unused_command_line_argument=no
7441 fi
7442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
7444 $as_echo "$xorg_testset_unused_command_line_argument" >&6; }
7445 CFLAGS="$xorg_testset_save_CFLAGS"
7446 fi
7447
7448 found="no"
7449
7450 if test $found = "no" ; then
7451 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7452 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7453 fi
7454
7455 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7456 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7457 fi
7458
7459 CFLAGS="$CFLAGS -Wmain"
7460
7461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
7462 $as_echo_n "checking if $CC supports -Wmain... " >&6; }
7463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7464 /* end confdefs.h. */
7465 int i;
7466 int
7467 main ()
7468 {
7469
7470 ;
7471 return 0;
7472 }
7473 _ACEOF
7474 if ac_fn_c_try_link "$LINENO"; then :
7475 supported=yes
7476 else
7477 supported=no
7478 fi
7479 rm -f core conftest.err conftest.$ac_objext \
7480 conftest$ac_exeext conftest.$ac_ext
7481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7482 $as_echo "$supported" >&6; }
7483 CFLAGS="$xorg_testset_save_CFLAGS"
7484
7485 if test "$supported" = "yes" ; then
7486 BASE_CFLAGS="$BASE_CFLAGS -Wmain"
7487 found="yes"
7488 fi
7489 fi
7490
7491
7492
7493
7494
7495
7496
7497 xorg_testset_save_CFLAGS="$CFLAGS"
7498
7499 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
7500 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7502 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7504 /* end confdefs.h. */
7505 int i;
7506 _ACEOF
7507 if ac_fn_c_try_compile "$LINENO"; then :
7508 xorg_testset_unknown_warning_option=yes
7509 else
7510 xorg_testset_unknown_warning_option=no
7511 fi
7512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
7514 $as_echo "$xorg_testset_unknown_warning_option" >&6; }
7515 CFLAGS="$xorg_testset_save_CFLAGS"
7516 fi
7517
7518 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
7519 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7520 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7521 fi
7522 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7524 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7526 /* end confdefs.h. */
7527 int i;
7528 _ACEOF
7529 if ac_fn_c_try_compile "$LINENO"; then :
7530 xorg_testset_unused_command_line_argument=yes
7531 else
7532 xorg_testset_unused_command_line_argument=no
7533 fi
7534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
7536 $as_echo "$xorg_testset_unused_command_line_argument" >&6; }
7537 CFLAGS="$xorg_testset_save_CFLAGS"
7538 fi
7539
7540 found="no"
7541
7542 if test $found = "no" ; then
7543 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7544 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7545 fi
7546
7547 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7548 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7549 fi
7550
7551 CFLAGS="$CFLAGS -Wmissing-braces"
7552
7553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
7554 $as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
7555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7556 /* end confdefs.h. */
7557 int i;
7558 int
7559 main ()
7560 {
7561
7562 ;
7563 return 0;
7564 }
7565 _ACEOF
7566 if ac_fn_c_try_link "$LINENO"; then :
7567 supported=yes
7568 else
7569 supported=no
7570 fi
7571 rm -f core conftest.err conftest.$ac_objext \
7572 conftest$ac_exeext conftest.$ac_ext
7573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7574 $as_echo "$supported" >&6; }
7575 CFLAGS="$xorg_testset_save_CFLAGS"
7576
7577 if test "$supported" = "yes" ; then
7578 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
7579 found="yes"
7580 fi
7581 fi
7582
7583
7584
7585
7586
7587
7588
7589 xorg_testset_save_CFLAGS="$CFLAGS"
7590
7591 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
7592 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7594 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7596 /* end confdefs.h. */
7597 int i;
7598 _ACEOF
7599 if ac_fn_c_try_compile "$LINENO"; then :
7600 xorg_testset_unknown_warning_option=yes
7601 else
7602 xorg_testset_unknown_warning_option=no
7603 fi
7604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
7606 $as_echo "$xorg_testset_unknown_warning_option" >&6; }
7607 CFLAGS="$xorg_testset_save_CFLAGS"
7608 fi
7609
7610 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
7611 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7612 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7613 fi
7614 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7616 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7618 /* end confdefs.h. */
7619 int i;
7620 _ACEOF
7621 if ac_fn_c_try_compile "$LINENO"; then :
7622 xorg_testset_unused_command_line_argument=yes
7623 else
7624 xorg_testset_unused_command_line_argument=no
7625 fi
7626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
7628 $as_echo "$xorg_testset_unused_command_line_argument" >&6; }
7629 CFLAGS="$xorg_testset_save_CFLAGS"
7630 fi
7631
7632 found="no"
7633
7634 if test $found = "no" ; then
7635 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7636 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7637 fi
7638
7639 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7640 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7641 fi
7642
7643 CFLAGS="$CFLAGS -Wsequence-point"
7644
7645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
7646 $as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
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 supported=yes
7660 else
7661 supported=no
7662 fi
7663 rm -f core conftest.err conftest.$ac_objext \
7664 conftest$ac_exeext conftest.$ac_ext
7665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7666 $as_echo "$supported" >&6; }
7667 CFLAGS="$xorg_testset_save_CFLAGS"
7668
7669 if test "$supported" = "yes" ; then
7670 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
7671 found="yes"
7672 fi
7673 fi
7674
7675
7676
7677
7678
7679
7680
7681 xorg_testset_save_CFLAGS="$CFLAGS"
7682
7683 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
7684 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7686 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7688 /* end confdefs.h. */
7689 int i;
7690 _ACEOF
7691 if ac_fn_c_try_compile "$LINENO"; then :
7692 xorg_testset_unknown_warning_option=yes
7693 else
7694 xorg_testset_unknown_warning_option=no
7695 fi
7696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
7698 $as_echo "$xorg_testset_unknown_warning_option" >&6; }
7699 CFLAGS="$xorg_testset_save_CFLAGS"
7700 fi
7701
7702 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
7703 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7704 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7705 fi
7706 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7708 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7710 /* end confdefs.h. */
7711 int i;
7712 _ACEOF
7713 if ac_fn_c_try_compile "$LINENO"; then :
7714 xorg_testset_unused_command_line_argument=yes
7715 else
7716 xorg_testset_unused_command_line_argument=no
7717 fi
7718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
7720 $as_echo "$xorg_testset_unused_command_line_argument" >&6; }
7721 CFLAGS="$xorg_testset_save_CFLAGS"
7722 fi
7723
7724 found="no"
7725
7726 if test $found = "no" ; then
7727 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7728 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7729 fi
7730
7731 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7732 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7733 fi
7734
7735 CFLAGS="$CFLAGS -Wreturn-type"
7736
7737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
7738 $as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
7739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7740 /* end confdefs.h. */
7741 int i;
7742 int
7743 main ()
7744 {
7745
7746 ;
7747 return 0;
7748 }
7749 _ACEOF
7750 if ac_fn_c_try_link "$LINENO"; then :
7751 supported=yes
7752 else
7753 supported=no
7754 fi
7755 rm -f core conftest.err conftest.$ac_objext \
7756 conftest$ac_exeext conftest.$ac_ext
7757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7758 $as_echo "$supported" >&6; }
7759 CFLAGS="$xorg_testset_save_CFLAGS"
7760
7761 if test "$supported" = "yes" ; then
7762 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
7763 found="yes"
7764 fi
7765 fi
7766
7767
7768
7769
7770
7771
7772
7773 xorg_testset_save_CFLAGS="$CFLAGS"
7774
7775 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
7776 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7778 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7780 /* end confdefs.h. */
7781 int i;
7782 _ACEOF
7783 if ac_fn_c_try_compile "$LINENO"; then :
7784 xorg_testset_unknown_warning_option=yes
7785 else
7786 xorg_testset_unknown_warning_option=no
7787 fi
7788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
7790 $as_echo "$xorg_testset_unknown_warning_option" >&6; }
7791 CFLAGS="$xorg_testset_save_CFLAGS"
7792 fi
7793
7794 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
7795 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7796 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7797 fi
7798 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7800 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7802 /* end confdefs.h. */
7803 int i;
7804 _ACEOF
7805 if ac_fn_c_try_compile "$LINENO"; then :
7806 xorg_testset_unused_command_line_argument=yes
7807 else
7808 xorg_testset_unused_command_line_argument=no
7809 fi
7810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
7812 $as_echo "$xorg_testset_unused_command_line_argument" >&6; }
7813 CFLAGS="$xorg_testset_save_CFLAGS"
7814 fi
7815
7816 found="no"
7817
7818 if test $found = "no" ; then
7819 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7820 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7821 fi
7822
7823 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7824 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7825 fi
7826
7827 CFLAGS="$CFLAGS -Wtrigraphs"
7828
7829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
7830 $as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
7831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7832 /* end confdefs.h. */
7833 int i;
7834 int
7835 main ()
7836 {
7837
7838 ;
7839 return 0;
7840 }
7841 _ACEOF
7842 if ac_fn_c_try_link "$LINENO"; then :
7843 supported=yes
7844 else
7845 supported=no
7846 fi
7847 rm -f core conftest.err conftest.$ac_objext \
7848 conftest$ac_exeext conftest.$ac_ext
7849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7850 $as_echo "$supported" >&6; }
7851 CFLAGS="$xorg_testset_save_CFLAGS"
7852
7853 if test "$supported" = "yes" ; then
7854 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
7855 found="yes"
7856 fi
7857 fi
7858
7859
7860
7861
7862
7863
7864
7865 xorg_testset_save_CFLAGS="$CFLAGS"
7866
7867 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
7868 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7870 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7872 /* end confdefs.h. */
7873 int i;
7874 _ACEOF
7875 if ac_fn_c_try_compile "$LINENO"; then :
7876 xorg_testset_unknown_warning_option=yes
7877 else
7878 xorg_testset_unknown_warning_option=no
7879 fi
7880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
7882 $as_echo "$xorg_testset_unknown_warning_option" >&6; }
7883 CFLAGS="$xorg_testset_save_CFLAGS"
7884 fi
7885
7886 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
7887 if test "x$xorg_testset_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 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7894 /* end confdefs.h. */
7895 int i;
7896 _ACEOF
7897 if ac_fn_c_try_compile "$LINENO"; then :
7898 xorg_testset_unused_command_line_argument=yes
7899 else
7900 xorg_testset_unused_command_line_argument=no
7901 fi
7902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
7904 $as_echo "$xorg_testset_unused_command_line_argument" >&6; }
7905 CFLAGS="$xorg_testset_save_CFLAGS"
7906 fi
7907
7908 found="no"
7909
7910 if test $found = "no" ; then
7911 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7912 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7913 fi
7914
7915 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7916 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7917 fi
7918
7919 CFLAGS="$CFLAGS -Warray-bounds"
7920
7921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
7922 $as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
7923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7924 /* end confdefs.h. */
7925 int i;
7926 int
7927 main ()
7928 {
7929
7930 ;
7931 return 0;
7932 }
7933 _ACEOF
7934 if ac_fn_c_try_link "$LINENO"; then :
7935 supported=yes
7936 else
7937 supported=no
7938 fi
7939 rm -f core conftest.err conftest.$ac_objext \
7940 conftest$ac_exeext conftest.$ac_ext
7941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7942 $as_echo "$supported" >&6; }
7943 CFLAGS="$xorg_testset_save_CFLAGS"
7944
7945 if test "$supported" = "yes" ; then
7946 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
7947 found="yes"
7948 fi
7949 fi
7950
7951
7952
7953
7954
7955
7956
7957 xorg_testset_save_CFLAGS="$CFLAGS"
7958
7959 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
7960 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7962 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7964 /* end confdefs.h. */
7965 int i;
7966 _ACEOF
7967 if ac_fn_c_try_compile "$LINENO"; then :
7968 xorg_testset_unknown_warning_option=yes
7969 else
7970 xorg_testset_unknown_warning_option=no
7971 fi
7972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
7974 $as_echo "$xorg_testset_unknown_warning_option" >&6; }
7975 CFLAGS="$xorg_testset_save_CFLAGS"
7976 fi
7977
7978 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
7979 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7980 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7981 fi
7982 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7984 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7986 /* end confdefs.h. */
7987 int i;
7988 _ACEOF
7989 if ac_fn_c_try_compile "$LINENO"; then :
7990 xorg_testset_unused_command_line_argument=yes
7991 else
7992 xorg_testset_unused_command_line_argument=no
7993 fi
7994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
7996 $as_echo "$xorg_testset_unused_command_line_argument" >&6; }
7997 CFLAGS="$xorg_testset_save_CFLAGS"
7998 fi
7999
8000 found="no"
8001
8002 if test $found = "no" ; then
8003 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8004 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8005 fi
8006
8007 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8008 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8009 fi
8010
8011 CFLAGS="$CFLAGS -Wwrite-strings"
8012
8013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
8014 $as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
8015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8016 /* end confdefs.h. */
8017 int i;
8018 int
8019 main ()
8020 {
8021
8022 ;
8023 return 0;
8024 }
8025 _ACEOF
8026 if ac_fn_c_try_link "$LINENO"; then :
8027 supported=yes
8028 else
8029 supported=no
8030 fi
8031 rm -f core conftest.err conftest.$ac_objext \
8032 conftest$ac_exeext conftest.$ac_ext
8033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8034 $as_echo "$supported" >&6; }
8035 CFLAGS="$xorg_testset_save_CFLAGS"
8036
8037 if test "$supported" = "yes" ; then
8038 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
8039 found="yes"
8040 fi
8041 fi
8042
8043
8044
8045
8046
8047
8048
8049 xorg_testset_save_CFLAGS="$CFLAGS"
8050
8051 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
8052 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8054 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8056 /* end confdefs.h. */
8057 int i;
8058 _ACEOF
8059 if ac_fn_c_try_compile "$LINENO"; then :
8060 xorg_testset_unknown_warning_option=yes
8061 else
8062 xorg_testset_unknown_warning_option=no
8063 fi
8064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
8066 $as_echo "$xorg_testset_unknown_warning_option" >&6; }
8067 CFLAGS="$xorg_testset_save_CFLAGS"
8068 fi
8069
8070 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
8071 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8072 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8073 fi
8074 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8076 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8078 /* end confdefs.h. */
8079 int i;
8080 _ACEOF
8081 if ac_fn_c_try_compile "$LINENO"; then :
8082 xorg_testset_unused_command_line_argument=yes
8083 else
8084 xorg_testset_unused_command_line_argument=no
8085 fi
8086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
8088 $as_echo "$xorg_testset_unused_command_line_argument" >&6; }
8089 CFLAGS="$xorg_testset_save_CFLAGS"
8090 fi
8091
8092 found="no"
8093
8094 if test $found = "no" ; then
8095 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8096 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8097 fi
8098
8099 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8100 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8101 fi
8102
8103 CFLAGS="$CFLAGS -Waddress"
8104
8105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
8106 $as_echo_n "checking if $CC supports -Waddress... " >&6; }
8107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8108 /* end confdefs.h. */
8109 int i;
8110 int
8111 main ()
8112 {
8113
8114 ;
8115 return 0;
8116 }
8117 _ACEOF
8118 if ac_fn_c_try_link "$LINENO"; then :
8119 supported=yes
8120 else
8121 supported=no
8122 fi
8123 rm -f core conftest.err conftest.$ac_objext \
8124 conftest$ac_exeext conftest.$ac_ext
8125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8126 $as_echo "$supported" >&6; }
8127 CFLAGS="$xorg_testset_save_CFLAGS"
8128
8129 if test "$supported" = "yes" ; then
8130 BASE_CFLAGS="$BASE_CFLAGS -Waddress"
8131 found="yes"
8132 fi
8133 fi
8134
8135
8136
8137
8138
8139
8140
8141 xorg_testset_save_CFLAGS="$CFLAGS"
8142
8143 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
8144 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8146 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8148 /* end confdefs.h. */
8149 int i;
8150 _ACEOF
8151 if ac_fn_c_try_compile "$LINENO"; then :
8152 xorg_testset_unknown_warning_option=yes
8153 else
8154 xorg_testset_unknown_warning_option=no
8155 fi
8156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
8158 $as_echo "$xorg_testset_unknown_warning_option" >&6; }
8159 CFLAGS="$xorg_testset_save_CFLAGS"
8160 fi
8161
8162 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
8163 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8164 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8165 fi
8166 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8168 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8170 /* end confdefs.h. */
8171 int i;
8172 _ACEOF
8173 if ac_fn_c_try_compile "$LINENO"; then :
8174 xorg_testset_unused_command_line_argument=yes
8175 else
8176 xorg_testset_unused_command_line_argument=no
8177 fi
8178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
8180 $as_echo "$xorg_testset_unused_command_line_argument" >&6; }
8181 CFLAGS="$xorg_testset_save_CFLAGS"
8182 fi
8183
8184 found="no"
8185
8186 if test $found = "no" ; then
8187 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8188 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8189 fi
8190
8191 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8192 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8193 fi
8194
8195 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
8196
8197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
8198 $as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
8199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8200 /* end confdefs.h. */
8201 int i;
8202 int
8203 main ()
8204 {
8205
8206 ;
8207 return 0;
8208 }
8209 _ACEOF
8210 if ac_fn_c_try_link "$LINENO"; then :
8211 supported=yes
8212 else
8213 supported=no
8214 fi
8215 rm -f core conftest.err conftest.$ac_objext \
8216 conftest$ac_exeext conftest.$ac_ext
8217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8218 $as_echo "$supported" >&6; }
8219 CFLAGS="$xorg_testset_save_CFLAGS"
8220
8221 if test "$supported" = "yes" ; then
8222 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
8223 found="yes"
8224 fi
8225 fi
8226
8227
8228
8229
8230
8231
8232
8233 xorg_testset_save_CFLAGS="$CFLAGS"
8234
8235 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
8236 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8238 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8240 /* end confdefs.h. */
8241 int i;
8242 _ACEOF
8243 if ac_fn_c_try_compile "$LINENO"; then :
8244 xorg_testset_unknown_warning_option=yes
8245 else
8246 xorg_testset_unknown_warning_option=no
8247 fi
8248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
8250 $as_echo "$xorg_testset_unknown_warning_option" >&6; }
8251 CFLAGS="$xorg_testset_save_CFLAGS"
8252 fi
8253
8254 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
8255 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8256 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8257 fi
8258 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8260 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8262 /* end confdefs.h. */
8263 int i;
8264 _ACEOF
8265 if ac_fn_c_try_compile "$LINENO"; then :
8266 xorg_testset_unused_command_line_argument=yes
8267 else
8268 xorg_testset_unused_command_line_argument=no
8269 fi
8270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
8272 $as_echo "$xorg_testset_unused_command_line_argument" >&6; }
8273 CFLAGS="$xorg_testset_save_CFLAGS"
8274 fi
8275
8276 found="no"
8277
8278 if test $found = "no" ; then
8279 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8280 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8281 fi
8282
8283 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8284 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8285 fi
8286
8287 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
8288
8289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
8290 $as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
8291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8292 /* end confdefs.h. */
8293 int i;
8294 int
8295 main ()
8296 {
8297
8298 ;
8299 return 0;
8300 }
8301 _ACEOF
8302 if ac_fn_c_try_link "$LINENO"; then :
8303 supported=yes
8304 else
8305 supported=no
8306 fi
8307 rm -f core conftest.err conftest.$ac_objext \
8308 conftest$ac_exeext conftest.$ac_ext
8309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8310 $as_echo "$supported" >&6; }
8311 CFLAGS="$xorg_testset_save_CFLAGS"
8312
8313 if test "$supported" = "yes" ; then
8314 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
8315 found="yes"
8316 fi
8317 fi
8318
8319
8320 fi
8321
8322
8323
8324
8325
8326
8327 CWARNFLAGS="$BASE_CFLAGS"
8328 if test "x$GCC" = xyes ; then
8329 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
8330 fi
8331
8332
8333
8334
8335
8336
8337 # Check whether --enable-strict-compilation was given.
8338 if test "${enable_strict_compilation+set}" = set; then :
8339 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
8340 else
8341 STRICT_COMPILE=no
8342 fi
8343
8344
8345 STRICT_CFLAGS=""
8346
8347
8348
8349
8350
8351 xorg_testset_save_CFLAGS="$CFLAGS"
8352
8353 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
8354 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8356 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8358 /* end confdefs.h. */
8359 int i;
8360 _ACEOF
8361 if ac_fn_c_try_compile "$LINENO"; then :
8362 xorg_testset_unknown_warning_option=yes
8363 else
8364 xorg_testset_unknown_warning_option=no
8365 fi
8366 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
8368 $as_echo "$xorg_testset_unknown_warning_option" >&6; }
8369 CFLAGS="$xorg_testset_save_CFLAGS"
8370 fi
8371
8372 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
8373 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8374 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8375 fi
8376 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8378 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8380 /* end confdefs.h. */
8381 int i;
8382 _ACEOF
8383 if ac_fn_c_try_compile "$LINENO"; then :
8384 xorg_testset_unused_command_line_argument=yes
8385 else
8386 xorg_testset_unused_command_line_argument=no
8387 fi
8388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
8390 $as_echo "$xorg_testset_unused_command_line_argument" >&6; }
8391 CFLAGS="$xorg_testset_save_CFLAGS"
8392 fi
8393
8394 found="no"
8395
8396 if test $found = "no" ; then
8397 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8398 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8399 fi
8400
8401 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8402 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8403 fi
8404
8405 CFLAGS="$CFLAGS -pedantic"
8406
8407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
8408 $as_echo_n "checking if $CC supports -pedantic... " >&6; }
8409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8410 /* end confdefs.h. */
8411 int i;
8412 int
8413 main ()
8414 {
8415
8416 ;
8417 return 0;
8418 }
8419 _ACEOF
8420 if ac_fn_c_try_link "$LINENO"; then :
8421 supported=yes
8422 else
8423 supported=no
8424 fi
8425 rm -f core conftest.err conftest.$ac_objext \
8426 conftest$ac_exeext conftest.$ac_ext
8427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8428 $as_echo "$supported" >&6; }
8429 CFLAGS="$xorg_testset_save_CFLAGS"
8430
8431 if test "$supported" = "yes" ; then
8432 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
8433 found="yes"
8434 fi
8435 fi
8436
8437
8438
8439
8440
8441
8442
8443 xorg_testset_save_CFLAGS="$CFLAGS"
8444
8445 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
8446 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8448 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8450 /* end confdefs.h. */
8451 int i;
8452 _ACEOF
8453 if ac_fn_c_try_compile "$LINENO"; then :
8454 xorg_testset_unknown_warning_option=yes
8455 else
8456 xorg_testset_unknown_warning_option=no
8457 fi
8458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
8460 $as_echo "$xorg_testset_unknown_warning_option" >&6; }
8461 CFLAGS="$xorg_testset_save_CFLAGS"
8462 fi
8463
8464 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
8465 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8466 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8467 fi
8468 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8470 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8472 /* end confdefs.h. */
8473 int i;
8474 _ACEOF
8475 if ac_fn_c_try_compile "$LINENO"; then :
8476 xorg_testset_unused_command_line_argument=yes
8477 else
8478 xorg_testset_unused_command_line_argument=no
8479 fi
8480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
8482 $as_echo "$xorg_testset_unused_command_line_argument" >&6; }
8483 CFLAGS="$xorg_testset_save_CFLAGS"
8484 fi
8485
8486 found="no"
8487
8488 if test $found = "no" ; then
8489 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8490 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8491 fi
8492
8493 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8494 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8495 fi
8496
8497 CFLAGS="$CFLAGS -Werror"
8498
8499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
8500 $as_echo_n "checking if $CC supports -Werror... " >&6; }
8501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8502 /* end confdefs.h. */
8503 int i;
8504 int
8505 main ()
8506 {
8507
8508 ;
8509 return 0;
8510 }
8511 _ACEOF
8512 if ac_fn_c_try_link "$LINENO"; then :
8513 supported=yes
8514 else
8515 supported=no
8516 fi
8517 rm -f core conftest.err conftest.$ac_objext \
8518 conftest$ac_exeext conftest.$ac_ext
8519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8520 $as_echo "$supported" >&6; }
8521 CFLAGS="$xorg_testset_save_CFLAGS"
8522
8523 if test "$supported" = "yes" ; then
8524 STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
8525 found="yes"
8526 fi
8527 fi
8528
8529 if test $found = "no" ; then
8530 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8531 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8532 fi
8533
8534 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8535 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8536 fi
8537
8538 CFLAGS="$CFLAGS -errwarn"
8539
8540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
8541 $as_echo_n "checking if $CC supports -errwarn... " >&6; }
8542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8543 /* end confdefs.h. */
8544 int i;
8545 int
8546 main ()
8547 {
8548
8549 ;
8550 return 0;
8551 }
8552 _ACEOF
8553 if ac_fn_c_try_link "$LINENO"; then :
8554 supported=yes
8555 else
8556 supported=no
8557 fi
8558 rm -f core conftest.err conftest.$ac_objext \
8559 conftest$ac_exeext conftest.$ac_ext
8560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8561 $as_echo "$supported" >&6; }
8562 CFLAGS="$xorg_testset_save_CFLAGS"
8563
8564 if test "$supported" = "yes" ; then
8565 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
8566 found="yes"
8567 fi
8568 fi
8569
8570
8571
8572 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
8573 # activate it with -Werror, so we add it here explicitly.
8574
8575
8576
8577
8578
8579 xorg_testset_save_CFLAGS="$CFLAGS"
8580
8581 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
8582 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8584 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8586 /* end confdefs.h. */
8587 int i;
8588 _ACEOF
8589 if ac_fn_c_try_compile "$LINENO"; then :
8590 xorg_testset_unknown_warning_option=yes
8591 else
8592 xorg_testset_unknown_warning_option=no
8593 fi
8594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
8596 $as_echo "$xorg_testset_unknown_warning_option" >&6; }
8597 CFLAGS="$xorg_testset_save_CFLAGS"
8598 fi
8599
8600 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
8601 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8602 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8603 fi
8604 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8606 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8608 /* end confdefs.h. */
8609 int i;
8610 _ACEOF
8611 if ac_fn_c_try_compile "$LINENO"; then :
8612 xorg_testset_unused_command_line_argument=yes
8613 else
8614 xorg_testset_unused_command_line_argument=no
8615 fi
8616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
8618 $as_echo "$xorg_testset_unused_command_line_argument" >&6; }
8619 CFLAGS="$xorg_testset_save_CFLAGS"
8620 fi
8621
8622 found="no"
8623
8624 if test $found = "no" ; then
8625 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8626 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8627 fi
8628
8629 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8630 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8631 fi
8632
8633 CFLAGS="$CFLAGS -Werror=attributes"
8634
8635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
8636 $as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
8637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8638 /* end confdefs.h. */
8639 int i;
8640 int
8641 main ()
8642 {
8643
8644 ;
8645 return 0;
8646 }
8647 _ACEOF
8648 if ac_fn_c_try_link "$LINENO"; then :
8649 supported=yes
8650 else
8651 supported=no
8652 fi
8653 rm -f core conftest.err conftest.$ac_objext \
8654 conftest$ac_exeext conftest.$ac_ext
8655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8656 $as_echo "$supported" >&6; }
8657 CFLAGS="$xorg_testset_save_CFLAGS"
8658
8659 if test "$supported" = "yes" ; then
8660 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
8661 found="yes"
8662 fi
8663 fi
8664
8665
8666
8667 if test "x$STRICT_COMPILE" = "xyes"; then
8668 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
8669 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
8670 fi
8671
8672
8673
8674
8675
8676
8677 cat >>confdefs.h <<_ACEOF
8678 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
8679 _ACEOF
8680
8681 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
8682 if test "x$PVM" = "x"; then
8683 PVM="0"
8684 fi
8685
8686 cat >>confdefs.h <<_ACEOF
8687 #define PACKAGE_VERSION_MINOR $PVM
8688 _ACEOF
8689
8690 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
8691 if test "x$PVP" = "x"; then
8692 PVP="0"
8693 fi
8694
8695 cat >>confdefs.h <<_ACEOF
8696 #define PACKAGE_VERSION_PATCHLEVEL $PVP
8697 _ACEOF
8698
8699
8700
8701 CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
8702 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
8703 || (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
8704 echo 'git directory not found: installing possibly empty changelog.' >&2)"
8705
8706
8707
8708
8709 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
8710 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
8711 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
8712 || (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
8713 echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
8714
8715
8716
8717
8718
8719
8720 if test x$APP_MAN_SUFFIX = x ; then
8721 APP_MAN_SUFFIX=1
8722 fi
8723 if test x$APP_MAN_DIR = x ; then
8724 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
8725 fi
8726
8727 if test x$LIB_MAN_SUFFIX = x ; then
8728 LIB_MAN_SUFFIX=3
8729 fi
8730 if test x$LIB_MAN_DIR = x ; then
8731 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
8732 fi
8733
8734 if test x$FILE_MAN_SUFFIX = x ; then
8735 case $host_os in
8736 solaris*) FILE_MAN_SUFFIX=4 ;;
8737 *) FILE_MAN_SUFFIX=5 ;;
8738 esac
8739 fi
8740 if test x$FILE_MAN_DIR = x ; then
8741 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
8742 fi
8743
8744 if test x$MISC_MAN_SUFFIX = x ; then
8745 case $host_os in
8746 solaris*) MISC_MAN_SUFFIX=5 ;;
8747 *) MISC_MAN_SUFFIX=7 ;;
8748 esac
8749 fi
8750 if test x$MISC_MAN_DIR = x ; then
8751 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
8752 fi
8753
8754 if test x$DRIVER_MAN_SUFFIX = x ; then
8755 case $host_os in
8756 solaris*) DRIVER_MAN_SUFFIX=7 ;;
8757 *) DRIVER_MAN_SUFFIX=4 ;;
8758 esac
8759 fi
8760 if test x$DRIVER_MAN_DIR = x ; then
8761 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
8762 fi
8763
8764 if test x$ADMIN_MAN_SUFFIX = x ; then
8765 case $host_os in
8766 solaris*) ADMIN_MAN_SUFFIX=1m ;;
8767 *) ADMIN_MAN_SUFFIX=8 ;;
8768 esac
8769 fi
8770 if test x$ADMIN_MAN_DIR = x ; then
8771 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
8772 fi
8773
8774
8775
8776
8777
8778
8779
8780
8781
8782
8783
8784
8785
8786
8787
8788 XORG_MAN_PAGE="X Version 11"
8789
8790 MAN_SUBSTS="\
8791 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
8792 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
8793 -e 's|__xservername__|Xorg|g' \
8794 -e 's|__xconfigfile__|xorg.conf|g' \
8795 -e 's|__projectroot__|\$(prefix)|g' \
8796 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
8797 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
8798 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
8799 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
8800 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
8801 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
8802 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
8803
8804
8805
8806 # Check whether --enable-silent-rules was given.
8807 if test "${enable_silent_rules+set}" = set; then :
8808 enableval=$enable_silent_rules;
8809 fi
8810
8811 case $enable_silent_rules in
8812 yes) AM_DEFAULT_VERBOSITY=0;;
8813 no) AM_DEFAULT_VERBOSITY=1;;
8814 *) AM_DEFAULT_VERBOSITY=0;;
8815 esac
8816 am_make=${MAKE-make}
8817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
8818 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
8819 if ${am_cv_make_support_nested_variables+:} false; then :
8820 $as_echo_n "(cached) " >&6
8821 else
8822 if $as_echo 'TRUE=$(BAR$(V))
8823 BAR0=false
8824 BAR1=true
8825 V=1
8826 am__doit:
8827 @$(TRUE)
8828 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
8829 am_cv_make_support_nested_variables=yes
8830 else
8831 am_cv_make_support_nested_variables=no
8832 fi
8833 fi
8834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
8835 $as_echo "$am_cv_make_support_nested_variables" >&6; }
8836 if test $am_cv_make_support_nested_variables = yes; then
8837 AM_V='$(V)'
8838 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
8839 else
8840 AM_V=$AM_DEFAULT_VERBOSITY
8841 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
8842 fi
8843 AM_BACKSLASH='\'
8844
8845
8846
8847 ac_aux_dir=
8848 for ac_dir in . "$srcdir"/.; do
8849 if test -f "$ac_dir/install-sh"; then
8850 ac_aux_dir=$ac_dir
8851 ac_install_sh="$ac_aux_dir/install-sh -c"
8852 break
8853 elif test -f "$ac_dir/install.sh"; then
8854 ac_aux_dir=$ac_dir
8855 ac_install_sh="$ac_aux_dir/install.sh -c"
8856 break
8857 elif test -f "$ac_dir/shtool"; then
8858 ac_aux_dir=$ac_dir
8859 ac_install_sh="$ac_aux_dir/shtool install -c"
8860 break
8861 fi
8862 done
8863 if test -z "$ac_aux_dir"; then
8864 as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5
8865 fi
8866
8867 # These three variables are undocumented and unsupported,
8868 # and are intended to be withdrawn in a future Autoconf release.
8869 # They can cause serious problems if a builder's source tree is in a directory
8870 # whose full name contains unusual characters.
8871 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
8872 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
8873 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
8874
8875
8876
8877 # Initialize Automake
8878 am__api_version='1.11'
8879
8880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
8881 $as_echo_n "checking whether build environment is sane... " >&6; }
8882 # Just in case
8883 sleep 1
8884 echo timestamp > conftest.file
8885 # Reject unsafe characters in $srcdir or the absolute working directory
8886 # name. Accept space and tab only in the latter.
8887 am_lf='
8888 '
8889 case `pwd` in
8890 *[\\\"\#\$\&\'\`$am_lf]*)
8891 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
8892 esac
8893 case $srcdir in
8894 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
8895 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
8896 esac
8897
8898 # Do `set' in a subshell so we don't clobber the current shell's
8899 # arguments. Must try -L first in case configure is actually a
8900 # symlink; some systems play weird games with the mod time of symlinks
8901 # (eg FreeBSD returns the mod time of the symlink's containing
8902 # directory).
8903 if (
8904 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
8905 if test "$*" = "X"; then
8906 # -L didn't work.
8907 set X `ls -t "$srcdir/configure" conftest.file`
8908 fi
8909 rm -f conftest.file
8910 if test "$*" != "X $srcdir/configure conftest.file" \
8911 && test "$*" != "X conftest.file $srcdir/configure"; then
8912
8913 # If neither matched, then we have a broken ls. This can happen
8914 # if, for instance, CONFIG_SHELL is bash and it inherits a
8915 # broken ls alias from the environment. This has actually
8916 # happened. Such a system could not be considered "sane".
8917 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
8918 alias in your environment" "$LINENO" 5
8919 fi
8920
8921 test "$2" = conftest.file
8922 )
8923 then
8924 # Ok.
8925 :
8926 else
8927 as_fn_error $? "newly created file is older than distributed files!
8928 Check your system clock" "$LINENO" 5
8929 fi
8930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8931 $as_echo "yes" >&6; }
8932 test "$program_prefix" != NONE &&
8933 program_transform_name="s&^&$program_prefix&;$program_transform_name"
8934 # Use a double $ so make ignores it.
8935 test "$program_suffix" != NONE &&
8936 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
8937 # Double any \ or $.
8938 # By default was `s,x,x', remove it if useless.
8939 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
8940 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
8941
8942 # expand $ac_aux_dir to an absolute path
8943 am_aux_dir=`cd $ac_aux_dir && pwd`
8944
8945 if test x"${MISSING+set}" != xset; then
8946 case $am_aux_dir in
8947 *\ * | *\ *)
8948 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
8949 *)
8950 MISSING="\${SHELL} $am_aux_dir/missing" ;;
8951 esac
8952 fi
8953 # Use eval to expand $SHELL
8954 if eval "$MISSING --run true"; then
8955 am_missing_run="$MISSING --run "
8956 else
8957 am_missing_run=
8958 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
8959 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
8960 fi
8961
8962 if test x"${install_sh}" != xset; then
8963 case $am_aux_dir in
8964 *\ * | *\ *)
8965 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
8966 *)
8967 install_sh="\${SHELL} $am_aux_dir/install-sh"
8968 esac
8969 fi
8970
8971 # Installed binaries are usually stripped using `strip' when the user
8972 # run `make install-strip'. However `strip' might not be the right
8973 # tool to use in cross-compilation environments, therefore Automake
8974 # will honor the `STRIP' environment variable to overrule this program.
8975 if test "$cross_compiling" != no; then
8976 if test -n "$ac_tool_prefix"; then
8977 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8978 set dummy ${ac_tool_prefix}strip; ac_word=$2
8979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8980 $as_echo_n "checking for $ac_word... " >&6; }
8981 if ${ac_cv_prog_STRIP+:} false; then :
8982 $as_echo_n "(cached) " >&6
8983 else
8984 if test -n "$STRIP"; then
8985 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8986 else
8987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8988 for as_dir in $PATH
8989 do
8990 IFS=$as_save_IFS
8991 test -z "$as_dir" && as_dir=.
8992 for ac_exec_ext in '' $ac_executable_extensions; do
8993 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8994 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8995 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8996 break 2
8997 fi
8998 done
8999 done
9000 IFS=$as_save_IFS
9001
9002 fi
9003 fi
9004 STRIP=$ac_cv_prog_STRIP
9005 if test -n "$STRIP"; then
9006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9007 $as_echo "$STRIP" >&6; }
9008 else
9009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9010 $as_echo "no" >&6; }
9011 fi
9012
9013
9014 fi
9015 if test -z "$ac_cv_prog_STRIP"; then
9016 ac_ct_STRIP=$STRIP
9017 # Extract the first word of "strip", so it can be a program name with args.
9018 set dummy strip; ac_word=$2
9019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9020 $as_echo_n "checking for $ac_word... " >&6; }
9021 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
9022 $as_echo_n "(cached) " >&6
9023 else
9024 if test -n "$ac_ct_STRIP"; then
9025 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
9026 else
9027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9028 for as_dir in $PATH
9029 do
9030 IFS=$as_save_IFS
9031 test -z "$as_dir" && as_dir=.
9032 for ac_exec_ext in '' $ac_executable_extensions; do
9033 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9034 ac_cv_prog_ac_ct_STRIP="strip"
9035 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9036 break 2
9037 fi
9038 done
9039 done
9040 IFS=$as_save_IFS
9041
9042 fi
9043 fi
9044 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
9045 if test -n "$ac_ct_STRIP"; then
9046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
9047 $as_echo "$ac_ct_STRIP" >&6; }
9048 else
9049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9050 $as_echo "no" >&6; }
9051 fi
9052
9053 if test "x$ac_ct_STRIP" = x; then
9054 STRIP=":"
9055 else
9056 case $cross_compiling:$ac_tool_warned in
9057 yes:)
9058 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9059 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9060 ac_tool_warned=yes ;;
9061 esac
9062 STRIP=$ac_ct_STRIP
9063 fi
9064 else
9065 STRIP="$ac_cv_prog_STRIP"
9066 fi
9067
9068 fi
9069 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
9070
9071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
9072 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
9073 if test -z "$MKDIR_P"; then
9074 if ${ac_cv_path_mkdir+:} false; then :
9075 $as_echo_n "(cached) " >&6
9076 else
9077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9078 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
9079 do
9080 IFS=$as_save_IFS
9081 test -z "$as_dir" && as_dir=.
9082 for ac_prog in mkdir gmkdir; do
9083 for ac_exec_ext in '' $ac_executable_extensions; do
9084 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
9085 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
9086 'mkdir (GNU coreutils) '* | \
9087 'mkdir (coreutils) '* | \
9088 'mkdir (fileutils) '4.1*)
9089 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
9090 break 3;;
9091 esac
9092 done
9093 done
9094 done
9095 IFS=$as_save_IFS
9096
9097 fi
9098
9099 test -d ./--version && rmdir ./--version
9100 if test "${ac_cv_path_mkdir+set}" = set; then
9101 MKDIR_P="$ac_cv_path_mkdir -p"
9102 else
9103 # As a last resort, use the slow shell script. Don't cache a
9104 # value for MKDIR_P within a source directory, because that will
9105 # break other packages using the cache if that directory is
9106 # removed, or if the value is a relative name.
9107 MKDIR_P="$ac_install_sh -d"
9108 fi
9109 fi
9110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
9111 $as_echo "$MKDIR_P" >&6; }
9112
9113 mkdir_p="$MKDIR_P"
9114 case $mkdir_p in
9115 [\\/$]* | ?:[\\/]*) ;;
9116 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
9117 esac
9118
9119 for ac_prog in gawk mawk nawk awk
9120 do
9121 # Extract the first word of "$ac_prog", so it can be a program name with args.
9122 set dummy $ac_prog; ac_word=$2
9123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9124 $as_echo_n "checking for $ac_word... " >&6; }
9125 if ${ac_cv_prog_AWK+:} false; then :
9126 $as_echo_n "(cached) " >&6
9127 else
9128 if test -n "$AWK"; then
9129 ac_cv_prog_AWK="$AWK" # Let the user override the test.
9130 else
9131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9132 for as_dir in $PATH
9133 do
9134 IFS=$as_save_IFS
9135 test -z "$as_dir" && as_dir=.
9136 for ac_exec_ext in '' $ac_executable_extensions; do
9137 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9138 ac_cv_prog_AWK="$ac_prog"
9139 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9140 break 2
9141 fi
9142 done
9143 done
9144 IFS=$as_save_IFS
9145
9146 fi
9147 fi
9148 AWK=$ac_cv_prog_AWK
9149 if test -n "$AWK"; then
9150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
9151 $as_echo "$AWK" >&6; }
9152 else
9153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9154 $as_echo "no" >&6; }
9155 fi
9156
9157
9158 test -n "$AWK" && break
9159 done
9160
9161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
9162 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
9163 set x ${MAKE-make}
9164 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
9165 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
9166 $as_echo_n "(cached) " >&6
9167 else
9168 cat >conftest.make <<\_ACEOF
9169 SHELL = /bin/sh
9170 all:
9171 @echo '@@@%%%=$(MAKE)=@@@%%%'
9172 _ACEOF
9173 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
9174 case `${MAKE-make} -f conftest.make 2>/dev/null` in
9175 *@@@%%%=?*=@@@%%%*)
9176 eval ac_cv_prog_make_${ac_make}_set=yes;;
9177 *)
9178 eval ac_cv_prog_make_${ac_make}_set=no;;
9179 esac
9180 rm -f conftest.make
9181 fi
9182 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
9183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9184 $as_echo "yes" >&6; }
9185 SET_MAKE=
9186 else
9187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9188 $as_echo "no" >&6; }
9189 SET_MAKE="MAKE=${MAKE-make}"
9190 fi
9191
9192 rm -rf .tst 2>/dev/null
9193 mkdir .tst 2>/dev/null
9194 if test -d .tst; then
9195 am__leading_dot=.
9196 else
9197 am__leading_dot=_
9198 fi
9199 rmdir .tst 2>/dev/null
9200
9201 DEPDIR="${am__leading_dot}deps"
9202
9203 ac_config_commands="$ac_config_commands depfiles"
9204
9205
9206 am_make=${MAKE-make}
9207 cat > confinc << 'END'
9208 am__doit:
9209 @echo this is the am__doit target
9210 .PHONY: am__doit
9211 END
9212 # If we don't find an include directive, just comment out the code.
9213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
9214 $as_echo_n "checking for style of include used by $am_make... " >&6; }
9215 am__include="#"
9216 am__quote=
9217 _am_result=none
9218 # First try GNU make style include.
9219 echo "include confinc" > confmf
9220 # Ignore all kinds of additional output from `make'.
9221 case `$am_make -s -f confmf 2> /dev/null` in #(
9222 *the\ am__doit\ target*)
9223 am__include=include
9224 am__quote=
9225 _am_result=GNU
9226 ;;
9227 esac
9228 # Now try BSD make style include.
9229 if test "$am__include" = "#"; then
9230 echo '.include "confinc"' > confmf
9231 case `$am_make -s -f confmf 2> /dev/null` in #(
9232 *the\ am__doit\ target*)
9233 am__include=.include
9234 am__quote="\""
9235 _am_result=BSD
9236 ;;
9237 esac
9238 fi
9239
9240
9241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
9242 $as_echo "$_am_result" >&6; }
9243 rm -f confinc confmf
9244
9245 # Check whether --enable-dependency-tracking was given.
9246 if test "${enable_dependency_tracking+set}" = set; then :
9247 enableval=$enable_dependency_tracking;
9248 fi
9249
9250 if test "x$enable_dependency_tracking" != xno; then
9251 am_depcomp="$ac_aux_dir/depcomp"
9252 AMDEPBACKSLASH='\'
9253 am__nodep='_no'
9254 fi
9255 if test "x$enable_dependency_tracking" != xno; then
9256 AMDEP_TRUE=
9257 AMDEP_FALSE='#'
9258 else
9259 AMDEP_TRUE='#'
9260 AMDEP_FALSE=
9261 fi
9262
9263
9264 if test "`cd $srcdir && pwd`" != "`pwd`"; then
9265 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
9266 # is not polluted with repeated "-I."
9267 am__isrc=' -I$(srcdir)'
9268 # test to see if srcdir already configured
9269 if test -f $srcdir/config.status; then
9270 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
9271 fi
9272 fi
9273
9274 # test whether we have cygpath
9275 if test -z "$CYGPATH_W"; then
9276 if (cygpath --version) >/dev/null 2>/dev/null; then
9277 CYGPATH_W='cygpath -w'
9278 else
9279 CYGPATH_W=echo
9280 fi
9281 fi
9282
9283
9284 # Define the identity of the package.
9285 PACKAGE='xf86-video-ati'
9286 VERSION='6.14.6'
9287
9288
9289 cat >>confdefs.h <<_ACEOF
9290 #define PACKAGE "$PACKAGE"
9291 _ACEOF
9292
9293
9294 cat >>confdefs.h <<_ACEOF
9295 #define VERSION "$VERSION"
9296 _ACEOF
9297
9298 # Some tools Automake needs.
9299
9300 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
9301
9302
9303 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
9304
9305
9306 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
9307
9308
9309 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
9310
9311
9312 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
9313
9314 # We need awk for the "check" target. The system "awk" is bad on
9315 # some platforms.
9316 # Always define AMTAR for backward compatibility. Yes, it's still used
9317 # in the wild :-( We should find a proper way to deprecate it ...
9318 AMTAR='$${TAR-tar}'
9319
9320 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
9321
9322
9323
9324
9325 depcc="$CC" am_compiler_list=
9326
9327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
9328 $as_echo_n "checking dependency style of $depcc... " >&6; }
9329 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
9330 $as_echo_n "(cached) " >&6
9331 else
9332 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
9333 # We make a subdir and do the tests there. Otherwise we can end up
9334 # making bogus files that we don't know about and never remove. For
9335 # instance it was reported that on HP-UX the gcc test will end up
9336 # making a dummy file named `D' -- because `-MD' means `put the output
9337 # in D'.
9338 rm -rf conftest.dir
9339 mkdir conftest.dir
9340 # Copy depcomp to subdir because otherwise we won't find it if we're
9341 # using a relative directory.
9342 cp "$am_depcomp" conftest.dir
9343 cd conftest.dir
9344 # We will build objects and dependencies in a subdirectory because
9345 # it helps to detect inapplicable dependency modes. For instance
9346 # both Tru64's cc and ICC support -MD to output dependencies as a
9347 # side effect of compilation, but ICC will put the dependencies in
9348 # the current directory while Tru64 will put them in the object
9349 # directory.
9350 mkdir sub
9351
9352 am_cv_CC_dependencies_compiler_type=none
9353 if test "$am_compiler_list" = ""; then
9354 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
9355 fi
9356 am__universal=false
9357 case " $depcc " in #(
9358 *\ -arch\ *\ -arch\ *) am__universal=true ;;
9359 esac
9360
9361 for depmode in $am_compiler_list; do
9362 # Setup a source with many dependencies, because some compilers
9363 # like to wrap large dependency lists on column 80 (with \), and
9364 # we should not choose a depcomp mode which is confused by this.
9365 #
9366 # We need to recreate these files for each test, as the compiler may
9367 # overwrite some of them when testing with obscure command lines.
9368 # This happens at least with the AIX C compiler.
9369 : > sub/conftest.c
9370 for i in 1 2 3 4 5 6; do
9371 echo '#include "conftst'$i'.h"' >> sub/conftest.c
9372 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
9373 # Solaris 8's {/usr,}/bin/sh.
9374 touch sub/conftst$i.h
9375 done
9376 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
9377
9378 # We check with `-c' and `-o' for the sake of the "dashmstdout"
9379 # mode. It turns out that the SunPro C++ compiler does not properly
9380 # handle `-M -o', and we need to detect this. Also, some Intel
9381 # versions had trouble with output in subdirs
9382 am__obj=sub/conftest.${OBJEXT-o}
9383 am__minus_obj="-o $am__obj"
9384 case $depmode in
9385 gcc)
9386 # This depmode causes a compiler race in universal mode.
9387 test "$am__universal" = false || continue
9388 ;;
9389 nosideeffect)
9390 # after this tag, mechanisms are not by side-effect, so they'll
9391 # only be used when explicitly requested
9392 if test "x$enable_dependency_tracking" = xyes; then
9393 continue
9394 else
9395 break
9396 fi
9397 ;;
9398 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
9399 # This compiler won't grok `-c -o', but also, the minuso test has
9400 # not run yet. These depmodes are late enough in the game, and
9401 # so weak that their functioning should not be impacted.
9402 am__obj=conftest.${OBJEXT-o}
9403 am__minus_obj=
9404 ;;
9405 none) break ;;
9406 esac
9407 if depmode=$depmode \
9408 source=sub/conftest.c object=$am__obj \
9409 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
9410 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
9411 >/dev/null 2>conftest.err &&
9412 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
9413 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
9414 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
9415 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
9416 # icc doesn't choke on unknown options, it will just issue warnings
9417 # or remarks (even with -Werror). So we grep stderr for any message
9418 # that says an option was ignored or not supported.
9419 # When given -MP, icc 7.0 and 7.1 complain thusly:
9420 # icc: Command line warning: ignoring option '-M'; no argument required
9421 # The diagnosis changed in icc 8.0:
9422 # icc: Command line remark: option '-MP' not supported
9423 if (grep 'ignoring option' conftest.err ||
9424 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
9425 am_cv_CC_dependencies_compiler_type=$depmode
9426 break
9427 fi
9428 fi
9429 done
9430
9431 cd ..
9432 rm -rf conftest.dir
9433 else
9434 am_cv_CC_dependencies_compiler_type=none
9435 fi
9436
9437 fi
9438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
9439 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
9440 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
9441
9442 if
9443 test "x$enable_dependency_tracking" != xno \
9444 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
9445 am__fastdepCC_TRUE=
9446 am__fastdepCC_FALSE='#'
9447 else
9448 am__fastdepCC_TRUE='#'
9449 am__fastdepCC_FALSE=
9450 fi
9451
9452
9453
9454 # Check whether --enable-largefile was given.
9455 if test "${enable_largefile+set}" = set; then :
9456 enableval=$enable_largefile;
9457 fi
9458
9459 if test "$enable_largefile" != no; then
9460
9461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
9462 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
9463 if ${ac_cv_sys_largefile_CC+:} false; then :
9464 $as_echo_n "(cached) " >&6
9465 else
9466 ac_cv_sys_largefile_CC=no
9467 if test "$GCC" != yes; then
9468 ac_save_CC=$CC
9469 while :; do
9470 # IRIX 6.2 and later do not support large files by default,
9471 # so use the C compiler's -n32 option if that helps.
9472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9473 /* end confdefs.h. */
9474 #include <sys/types.h>
9475 /* Check that off_t can represent 2**63 - 1 correctly.
9476 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9477 since some C++ compilers masquerading as C compilers
9478 incorrectly reject 9223372036854775807. */
9479 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9480 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9481 && LARGE_OFF_T % 2147483647 == 1)
9482 ? 1 : -1];
9483 int
9484 main ()
9485 {
9486
9487 ;
9488 return 0;
9489 }
9490 _ACEOF
9491 if ac_fn_c_try_compile "$LINENO"; then :
9492 break
9493 fi
9494 rm -f core conftest.err conftest.$ac_objext
9495 CC="$CC -n32"
9496 if ac_fn_c_try_compile "$LINENO"; then :
9497 ac_cv_sys_largefile_CC=' -n32'; break
9498 fi
9499 rm -f core conftest.err conftest.$ac_objext
9500 break
9501 done
9502 CC=$ac_save_CC
9503 rm -f conftest.$ac_ext
9504 fi
9505 fi
9506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
9507 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
9508 if test "$ac_cv_sys_largefile_CC" != no; then
9509 CC=$CC$ac_cv_sys_largefile_CC
9510 fi
9511
9512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
9513 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
9514 if ${ac_cv_sys_file_offset_bits+:} false; then :
9515 $as_echo_n "(cached) " >&6
9516 else
9517 while :; do
9518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9519 /* end confdefs.h. */
9520 #include <sys/types.h>
9521 /* Check that off_t can represent 2**63 - 1 correctly.
9522 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9523 since some C++ compilers masquerading as C compilers
9524 incorrectly reject 9223372036854775807. */
9525 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9526 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9527 && LARGE_OFF_T % 2147483647 == 1)
9528 ? 1 : -1];
9529 int
9530 main ()
9531 {
9532
9533 ;
9534 return 0;
9535 }
9536 _ACEOF
9537 if ac_fn_c_try_compile "$LINENO"; then :
9538 ac_cv_sys_file_offset_bits=no; break
9539 fi
9540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9542 /* end confdefs.h. */
9543 #define _FILE_OFFSET_BITS 64
9544 #include <sys/types.h>
9545 /* Check that off_t can represent 2**63 - 1 correctly.
9546 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9547 since some C++ compilers masquerading as C compilers
9548 incorrectly reject 9223372036854775807. */
9549 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9550 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9551 && LARGE_OFF_T % 2147483647 == 1)
9552 ? 1 : -1];
9553 int
9554 main ()
9555 {
9556
9557 ;
9558 return 0;
9559 }
9560 _ACEOF
9561 if ac_fn_c_try_compile "$LINENO"; then :
9562 ac_cv_sys_file_offset_bits=64; break
9563 fi
9564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9565 ac_cv_sys_file_offset_bits=unknown
9566 break
9567 done
9568 fi
9569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
9570 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
9571 case $ac_cv_sys_file_offset_bits in #(
9572 no | unknown) ;;
9573 *)
9574 cat >>confdefs.h <<_ACEOF
9575 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
9576 _ACEOF
9577 ;;
9578 esac
9579 rm -rf conftest*
9580 if test $ac_cv_sys_file_offset_bits = unknown; then
9581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
9582 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
9583 if ${ac_cv_sys_large_files+:} false; then :
9584 $as_echo_n "(cached) " >&6
9585 else
9586 while :; do
9587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9588 /* end confdefs.h. */
9589 #include <sys/types.h>
9590 /* Check that off_t can represent 2**63 - 1 correctly.
9591 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9592 since some C++ compilers masquerading as C compilers
9593 incorrectly reject 9223372036854775807. */
9594 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9595 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9596 && LARGE_OFF_T % 2147483647 == 1)
9597 ? 1 : -1];
9598 int
9599 main ()
9600 {
9601
9602 ;
9603 return 0;
9604 }
9605 _ACEOF
9606 if ac_fn_c_try_compile "$LINENO"; then :
9607 ac_cv_sys_large_files=no; break
9608 fi
9609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9611 /* end confdefs.h. */
9612 #define _LARGE_FILES 1
9613 #include <sys/types.h>
9614 /* Check that off_t can represent 2**63 - 1 correctly.
9615 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9616 since some C++ compilers masquerading as C compilers
9617 incorrectly reject 9223372036854775807. */
9618 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9619 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9620 && LARGE_OFF_T % 2147483647 == 1)
9621 ? 1 : -1];
9622 int
9623 main ()
9624 {
9625
9626 ;
9627 return 0;
9628 }
9629 _ACEOF
9630 if ac_fn_c_try_compile "$LINENO"; then :
9631 ac_cv_sys_large_files=1; break
9632 fi
9633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9634 ac_cv_sys_large_files=unknown
9635 break
9636 done
9637 fi
9638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
9639 $as_echo "$ac_cv_sys_large_files" >&6; }
9640 case $ac_cv_sys_large_files in #(
9641 no | unknown) ;;
9642 *)
9643 cat >>confdefs.h <<_ACEOF
9644 #define _LARGE_FILES $ac_cv_sys_large_files
9645 _ACEOF
9646 ;;
9647 esac
9648 rm -rf conftest*
9649 fi
9650 fi
9651
9652
9653
9654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
9655 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
9656 # Check whether --enable-maintainer-mode was given.
9657 if test "${enable_maintainer_mode+set}" = set; then :
9658 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
9659 else
9660 USE_MAINTAINER_MODE=no
9661 fi
9662
9663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
9664 $as_echo "$USE_MAINTAINER_MODE" >&6; }
9665 if test $USE_MAINTAINER_MODE = yes; then
9666 MAINTAINER_MODE_TRUE=
9667 MAINTAINER_MODE_FALSE='#'
9668 else
9669 MAINTAINER_MODE_TRUE='#'
9670 MAINTAINER_MODE_FALSE=
9671 fi
9672
9673 MAINT=$MAINTAINER_MODE_TRUE
9674
9675
9676
9677 # Initialize libtool
9678 # Check whether --enable-static was given.
9679 if test "${enable_static+set}" = set; then :
9680 enableval=$enable_static; p=${PACKAGE-default}
9681 case $enableval in
9682 yes) enable_static=yes ;;
9683 no) enable_static=no ;;
9684 *)
9685 enable_static=no
9686 # Look at the argument we got. We use all the common list separators.
9687 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9688 for pkg in $enableval; do
9689 IFS="$lt_save_ifs"
9690 if test "X$pkg" = "X$p"; then
9691 enable_static=yes
9692 fi
9693 done
9694 IFS="$lt_save_ifs"
9695 ;;
9696 esac
9697 else
9698 enable_static=no
9699 fi
9700
9701
9702
9703
9704
9705
9706
9707
9708
9709 case `pwd` in
9710 *\ * | *\ *)
9711 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
9712 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
9713 esac
9714
9715
9716
9717 macro_version='2.4.2'
9718 macro_revision='1.3337'
9719
9720
9721
9722
9723
9724
9725
9726
9727
9728
9729
9730
9731
9732 ltmain="$ac_aux_dir/ltmain.sh"
9733
9734 # Backslashify metacharacters that are still active within
9735 # double-quoted strings.
9736 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
9737
9738 # Same as above, but do not quote variable references.
9739 double_quote_subst='s/\(["`\\]\)/\\\1/g'
9740
9741 # Sed substitution to delay expansion of an escaped shell variable in a
9742 # double_quote_subst'ed string.
9743 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
9744
9745 # Sed substitution to delay expansion of an escaped single quote.
9746 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
9747
9748 # Sed substitution to avoid accidental globbing in evaled expressions
9749 no_glob_subst='s/\*/\\\*/g'
9750
9751 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
9752 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
9753 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
9754
9755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
9756 $as_echo_n "checking how to print strings... " >&6; }
9757 # Test print first, because it will be a builtin if present.
9758 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
9759 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
9760 ECHO='print -r --'
9761 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
9762 ECHO='printf %s\n'
9763 else
9764 # Use this function as a fallback that always works.
9765 func_fallback_echo ()
9766 {
9767 eval 'cat <<_LTECHO_EOF
9768 $1
9769 _LTECHO_EOF'
9770 }
9771 ECHO='func_fallback_echo'
9772 fi
9773
9774 # func_echo_all arg...
9775 # Invoke $ECHO with all args, space-separated.
9776 func_echo_all ()
9777 {
9778 $ECHO ""
9779 }
9780
9781 case "$ECHO" in
9782 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
9783 $as_echo "printf" >&6; } ;;
9784 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
9785 $as_echo "print -r" >&6; } ;;
9786 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
9787 $as_echo "cat" >&6; } ;;
9788 esac
9789
9790
9791
9792
9793
9794
9795
9796
9797
9798
9799
9800
9801
9802
9803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
9804 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
9805 if ${ac_cv_path_SED+:} false; then :
9806 $as_echo_n "(cached) " >&6
9807 else
9808 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
9809 for ac_i in 1 2 3 4 5 6 7; do
9810 ac_script="$ac_script$as_nl$ac_script"
9811 done
9812 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
9813 { ac_script=; unset ac_script;}
9814 if test -z "$SED"; then
9815 ac_path_SED_found=false
9816 # Loop through the user's path and test for each of PROGNAME-LIST
9817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9818 for as_dir in $PATH
9819 do
9820 IFS=$as_save_IFS
9821 test -z "$as_dir" && as_dir=.
9822 for ac_prog in sed gsed; do
9823 for ac_exec_ext in '' $ac_executable_extensions; do
9824 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
9825 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
9826 # Check for GNU ac_path_SED and select it if it is found.
9827 # Check for GNU $ac_path_SED
9828 case `"$ac_path_SED" --version 2>&1` in
9829 *GNU*)
9830 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
9831 *)
9832 ac_count=0
9833 $as_echo_n 0123456789 >"conftest.in"
9834 while :
9835 do
9836 cat "conftest.in" "conftest.in" >"conftest.tmp"
9837 mv "conftest.tmp" "conftest.in"
9838 cp "conftest.in" "conftest.nl"
9839 $as_echo '' >> "conftest.nl"
9840 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
9841 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
9842 as_fn_arith $ac_count + 1 && ac_count=$as_val
9843 if test $ac_count -gt ${ac_path_SED_max-0}; then
9844 # Best one so far, save it but keep looking for a better one
9845 ac_cv_path_SED="$ac_path_SED"
9846 ac_path_SED_max=$ac_count
9847 fi
9848 # 10*(2^10) chars as input seems more than enough
9849 test $ac_count -gt 10 && break
9850 done
9851 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
9852 esac
9853
9854 $ac_path_SED_found && break 3
9855 done
9856 done
9857 done
9858 IFS=$as_save_IFS
9859 if test -z "$ac_cv_path_SED"; then
9860 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
9861 fi
9862 else
9863 ac_cv_path_SED=$SED
9864 fi
9865
9866 fi
9867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
9868 $as_echo "$ac_cv_path_SED" >&6; }
9869 SED="$ac_cv_path_SED"
9870 rm -f conftest.sed
9871
9872 test -z "$SED" && SED=sed
9873 Xsed="$SED -e 1s/^X//"
9874
9875
9876
9877
9878
9879
9880
9881
9882
9883
9884
9885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
9886 $as_echo_n "checking for fgrep... " >&6; }
9887 if ${ac_cv_path_FGREP+:} false; then :
9888 $as_echo_n "(cached) " >&6
9889 else
9890 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
9891 then ac_cv_path_FGREP="$GREP -F"
9892 else
9893 if test -z "$FGREP"; then
9894 ac_path_FGREP_found=false
9895 # Loop through the user's path and test for each of PROGNAME-LIST
9896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9897 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
9898 do
9899 IFS=$as_save_IFS
9900 test -z "$as_dir" && as_dir=.
9901 for ac_prog in fgrep; do
9902 for ac_exec_ext in '' $ac_executable_extensions; do
9903 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
9904 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
9905 # Check for GNU ac_path_FGREP and select it if it is found.
9906 # Check for GNU $ac_path_FGREP
9907 case `"$ac_path_FGREP" --version 2>&1` in
9908 *GNU*)
9909 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
9910 *)
9911 ac_count=0
9912 $as_echo_n 0123456789 >"conftest.in"
9913 while :
9914 do
9915 cat "conftest.in" "conftest.in" >"conftest.tmp"
9916 mv "conftest.tmp" "conftest.in"
9917 cp "conftest.in" "conftest.nl"
9918 $as_echo 'FGREP' >> "conftest.nl"
9919 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
9920 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
9921 as_fn_arith $ac_count + 1 && ac_count=$as_val
9922 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
9923 # Best one so far, save it but keep looking for a better one
9924 ac_cv_path_FGREP="$ac_path_FGREP"
9925 ac_path_FGREP_max=$ac_count
9926 fi
9927 # 10*(2^10) chars as input seems more than enough
9928 test $ac_count -gt 10 && break
9929 done
9930 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
9931 esac
9932
9933 $ac_path_FGREP_found && break 3
9934 done
9935 done
9936 done
9937 IFS=$as_save_IFS
9938 if test -z "$ac_cv_path_FGREP"; then
9939 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
9940 fi
9941 else
9942 ac_cv_path_FGREP=$FGREP
9943 fi
9944
9945 fi
9946 fi
9947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
9948 $as_echo "$ac_cv_path_FGREP" >&6; }
9949 FGREP="$ac_cv_path_FGREP"
9950
9951
9952 test -z "$GREP" && GREP=grep
9953
9954
9955
9956
9957
9958
9959
9960
9961
9962
9963
9964
9965
9966
9967
9968
9969
9970
9971
9972 # Check whether --with-gnu-ld was given.
9973 if test "${with_gnu_ld+set}" = set; then :
9974 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
9975 else
9976 with_gnu_ld=no
9977 fi
9978
9979 ac_prog=ld
9980 if test "$GCC" = yes; then
9981 # Check if gcc -print-prog-name=ld gives a path.
9982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
9983 $as_echo_n "checking for ld used by $CC... " >&6; }
9984 case $host in
9985 *-*-mingw*)
9986 # gcc leaves a trailing carriage return which upsets mingw
9987 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9988 *)
9989 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9990 esac
9991 case $ac_prog in
9992 # Accept absolute paths.
9993 [\\/]* | ?:[\\/]*)
9994 re_direlt='/[^/][^/]*/\.\./'
9995 # Canonicalize the pathname of ld
9996 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
9997 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
9998 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
9999 done
10000 test -z "$LD" && LD="$ac_prog"
10001 ;;
10002 "")
10003 # If it fails, then pretend we aren't using GCC.
10004 ac_prog=ld
10005 ;;
10006 *)
10007 # If it is relative, then search for the first ld in PATH.
10008 with_gnu_ld=unknown
10009 ;;
10010 esac
10011 elif test "$with_gnu_ld" = yes; then
10012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
10013 $as_echo_n "checking for GNU ld... " >&6; }
10014 else
10015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
10016 $as_echo_n "checking for non-GNU ld... " >&6; }
10017 fi
10018 if ${lt_cv_path_LD+:} false; then :
10019 $as_echo_n "(cached) " >&6
10020 else
10021 if test -z "$LD"; then
10022 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10023 for ac_dir in $PATH; do
10024 IFS="$lt_save_ifs"
10025 test -z "$ac_dir" && ac_dir=.
10026 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10027 lt_cv_path_LD="$ac_dir/$ac_prog"
10028 # Check to see if the program is GNU ld. I'd rather use --version,
10029 # but apparently some variants of GNU ld only accept -v.
10030 # Break only if it was the GNU/non-GNU ld that we prefer.
10031 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10032 *GNU* | *'with BFD'*)
10033 test "$with_gnu_ld" != no && break
10034 ;;
10035 *)
10036 test "$with_gnu_ld" != yes && break
10037 ;;
10038 esac
10039 fi
10040 done
10041 IFS="$lt_save_ifs"
10042 else
10043 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10044 fi
10045 fi
10046
10047 LD="$lt_cv_path_LD"
10048 if test -n "$LD"; then
10049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
10050 $as_echo "$LD" >&6; }
10051 else
10052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10053 $as_echo "no" >&6; }
10054 fi
10055 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
10056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
10057 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
10058 if ${lt_cv_prog_gnu_ld+:} false; then :
10059 $as_echo_n "(cached) " >&6
10060 else
10061 # I'd rather use --version here, but apparently some GNU lds only accept -v.
10062 case `$LD -v 2>&1 </dev/null` in
10063 *GNU* | *'with BFD'*)
10064 lt_cv_prog_gnu_ld=yes
10065 ;;
10066 *)
10067 lt_cv_prog_gnu_ld=no
10068 ;;
10069 esac
10070 fi
10071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
10072 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
10073 with_gnu_ld=$lt_cv_prog_gnu_ld
10074
10075
10076
10077
10078
10079
10080
10081
10082
10083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
10084 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
10085 if ${lt_cv_path_NM+:} false; then :
10086 $as_echo_n "(cached) " >&6
10087 else
10088 if test -n "$NM"; then
10089 # Let the user override the test.
10090 lt_cv_path_NM="$NM"
10091 else
10092 lt_nm_to_check="${ac_tool_prefix}nm"
10093 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
10094 lt_nm_to_check="$lt_nm_to_check nm"
10095 fi
10096 for lt_tmp_nm in $lt_nm_to_check; do
10097 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10098 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
10099 IFS="$lt_save_ifs"
10100 test -z "$ac_dir" && ac_dir=.
10101 tmp_nm="$ac_dir/$lt_tmp_nm"
10102 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
10103 # Check to see if the nm accepts a BSD-compat flag.
10104 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
10105 # nm: unknown option "B" ignored
10106 # Tru64's nm complains that /dev/null is an invalid object file
10107 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
10108 */dev/null* | *'Invalid file or object type'*)
10109 lt_cv_path_NM="$tmp_nm -B"
10110 break
10111 ;;
10112 *)
10113 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
10114 */dev/null*)
10115 lt_cv_path_NM="$tmp_nm -p"
10116 break
10117 ;;
10118 *)
10119 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
10120 continue # so that we can try to find one that supports BSD flags
10121 ;;
10122 esac
10123 ;;
10124 esac
10125 fi
10126 done
10127 IFS="$lt_save_ifs"
10128 done
10129 : ${lt_cv_path_NM=no}
10130 fi
10131 fi
10132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
10133 $as_echo "$lt_cv_path_NM" >&6; }
10134 if test "$lt_cv_path_NM" != "no"; then
10135 NM="$lt_cv_path_NM"
10136 else
10137 # Didn't find any BSD compatible name lister, look for dumpbin.
10138 if test -n "$DUMPBIN"; then :
10139 # Let the user override the test.
10140 else
10141 if test -n "$ac_tool_prefix"; then
10142 for ac_prog in dumpbin "link -dump"
10143 do
10144 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10145 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10147 $as_echo_n "checking for $ac_word... " >&6; }
10148 if ${ac_cv_prog_DUMPBIN+:} false; then :
10149 $as_echo_n "(cached) " >&6
10150 else
10151 if test -n "$DUMPBIN"; then
10152 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
10153 else
10154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10155 for as_dir in $PATH
10156 do
10157 IFS=$as_save_IFS
10158 test -z "$as_dir" && as_dir=.
10159 for ac_exec_ext in '' $ac_executable_extensions; do
10160 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10161 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
10162 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10163 break 2
10164 fi
10165 done
10166 done
10167 IFS=$as_save_IFS
10168
10169 fi
10170 fi
10171 DUMPBIN=$ac_cv_prog_DUMPBIN
10172 if test -n "$DUMPBIN"; then
10173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
10174 $as_echo "$DUMPBIN" >&6; }
10175 else
10176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10177 $as_echo "no" >&6; }
10178 fi
10179
10180
10181 test -n "$DUMPBIN" && break
10182 done
10183 fi
10184 if test -z "$DUMPBIN"; then
10185 ac_ct_DUMPBIN=$DUMPBIN
10186 for ac_prog in dumpbin "link -dump"
10187 do
10188 # Extract the first word of "$ac_prog", so it can be a program name with args.
10189 set dummy $ac_prog; ac_word=$2
10190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10191 $as_echo_n "checking for $ac_word... " >&6; }
10192 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
10193 $as_echo_n "(cached) " >&6
10194 else
10195 if test -n "$ac_ct_DUMPBIN"; then
10196 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
10197 else
10198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10199 for as_dir in $PATH
10200 do
10201 IFS=$as_save_IFS
10202 test -z "$as_dir" && as_dir=.
10203 for ac_exec_ext in '' $ac_executable_extensions; do
10204 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10205 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
10206 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10207 break 2
10208 fi
10209 done
10210 done
10211 IFS=$as_save_IFS
10212
10213 fi
10214 fi
10215 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
10216 if test -n "$ac_ct_DUMPBIN"; then
10217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
10218 $as_echo "$ac_ct_DUMPBIN" >&6; }
10219 else
10220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10221 $as_echo "no" >&6; }
10222 fi
10223
10224
10225 test -n "$ac_ct_DUMPBIN" && break
10226 done
10227
10228 if test "x$ac_ct_DUMPBIN" = x; then
10229 DUMPBIN=":"
10230 else
10231 case $cross_compiling:$ac_tool_warned in
10232 yes:)
10233 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10234 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10235 ac_tool_warned=yes ;;
10236 esac
10237 DUMPBIN=$ac_ct_DUMPBIN
10238 fi
10239 fi
10240
10241 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
10242 *COFF*)
10243 DUMPBIN="$DUMPBIN -symbols"
10244 ;;
10245 *)
10246 DUMPBIN=:
10247 ;;
10248 esac
10249 fi
10250
10251 if test "$DUMPBIN" != ":"; then
10252 NM="$DUMPBIN"
10253 fi
10254 fi
10255 test -z "$NM" && NM=nm
10256
10257
10258
10259
10260
10261
10262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
10263 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
10264 if ${lt_cv_nm_interface+:} false; then :
10265 $as_echo_n "(cached) " >&6
10266 else
10267 lt_cv_nm_interface="BSD nm"
10268 echo "int some_variable = 0;" > conftest.$ac_ext
10269 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
10270 (eval "$ac_compile" 2>conftest.err)
10271 cat conftest.err >&5
10272 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
10273 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
10274 cat conftest.err >&5
10275 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
10276 cat conftest.out >&5
10277 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
10278 lt_cv_nm_interface="MS dumpbin"
10279 fi
10280 rm -f conftest*
10281 fi
10282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
10283 $as_echo "$lt_cv_nm_interface" >&6; }
10284
10285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
10286 $as_echo_n "checking whether ln -s works... " >&6; }
10287 LN_S=$as_ln_s
10288 if test "$LN_S" = "ln -s"; then
10289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10290 $as_echo "yes" >&6; }
10291 else
10292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
10293 $as_echo "no, using $LN_S" >&6; }
10294 fi
10295
10296 # find the maximum length of command line arguments
10297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
10298 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
10299 if ${lt_cv_sys_max_cmd_len+:} false; then :
10300 $as_echo_n "(cached) " >&6
10301 else
10302 i=0
10303 teststring="ABCD"
10304
10305 case $build_os in
10306 msdosdjgpp*)
10307 # On DJGPP, this test can blow up pretty badly due to problems in libc
10308 # (any single argument exceeding 2000 bytes causes a buffer overrun
10309 # during glob expansion). Even if it were fixed, the result of this
10310 # check would be larger than it should be.
10311 lt_cv_sys_max_cmd_len=12288; # 12K is about right
10312 ;;
10313
10314 gnu*)
10315 # Under GNU Hurd, this test is not required because there is
10316 # no limit to the length of command line arguments.
10317 # Libtool will interpret -1 as no limit whatsoever
10318 lt_cv_sys_max_cmd_len=-1;
10319 ;;
10320
10321 cygwin* | mingw* | cegcc*)
10322 # On Win9x/ME, this test blows up -- it succeeds, but takes
10323 # about 5 minutes as the teststring grows exponentially.
10324 # Worse, since 9x/ME are not pre-emptively multitasking,
10325 # you end up with a "frozen" computer, even though with patience
10326 # the test eventually succeeds (with a max line length of 256k).
10327 # Instead, let's just punt: use the minimum linelength reported by
10328 # all of the supported platforms: 8192 (on NT/2K/XP).
10329 lt_cv_sys_max_cmd_len=8192;
10330 ;;
10331
10332 mint*)
10333 # On MiNT this can take a long time and run out of memory.
10334 lt_cv_sys_max_cmd_len=8192;
10335 ;;
10336
10337 amigaos*)
10338 # On AmigaOS with pdksh, this test takes hours, literally.
10339 # So we just punt and use a minimum line length of 8192.
10340 lt_cv_sys_max_cmd_len=8192;
10341 ;;
10342
10343 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
10344 # This has been around since 386BSD, at least. Likely further.
10345 if test -x /sbin/sysctl; then
10346 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
10347 elif test -x /usr/sbin/sysctl; then
10348 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
10349 else
10350 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
10351 fi
10352 # And add a safety zone
10353 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
10354 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
10355 ;;
10356
10357 interix*)
10358 # We know the value 262144 and hardcode it with a safety zone (like BSD)
10359 lt_cv_sys_max_cmd_len=196608
10360 ;;
10361
10362 os2*)
10363 # The test takes a long time on OS/2.
10364 lt_cv_sys_max_cmd_len=8192
10365 ;;
10366
10367 osf*)
10368 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
10369 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
10370 # nice to cause kernel panics so lets avoid the loop below.
10371 # First set a reasonable default.
10372 lt_cv_sys_max_cmd_len=16384
10373 #
10374 if test -x /sbin/sysconfig; then
10375 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
10376 *1*) lt_cv_sys_max_cmd_len=-1 ;;
10377 esac
10378 fi
10379 ;;
10380 sco3.2v5*)
10381 lt_cv_sys_max_cmd_len=102400
10382 ;;
10383 sysv5* | sco5v6* | sysv4.2uw2*)
10384 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
10385 if test -n "$kargmax"; then
10386 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
10387 else
10388 lt_cv_sys_max_cmd_len=32768
10389 fi
10390 ;;
10391 *)
10392 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
10393 if test -n "$lt_cv_sys_max_cmd_len"; then
10394 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
10395 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
10396 else
10397 # Make teststring a little bigger before we do anything with it.
10398 # a 1K string should be a reasonable start.
10399 for i in 1 2 3 4 5 6 7 8 ; do
10400 teststring=$teststring$teststring
10401 done
10402 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
10403 # If test is not a shell built-in, we'll probably end up computing a
10404 # maximum length that is only half of the actual maximum length, but
10405 # we can't tell.
10406 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
10407 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
10408 test $i != 17 # 1/2 MB should be enough
10409 do
10410 i=`expr $i + 1`
10411 teststring=$teststring$teststring
10412 done
10413 # Only check the string length outside the loop.
10414 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
10415 teststring=
10416 # Add a significant safety factor because C++ compilers can tack on
10417 # massive amounts of additional arguments before passing them to the
10418 # linker. It appears as though 1/2 is a usable value.
10419 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
10420 fi
10421 ;;
10422 esac
10423
10424 fi
10425
10426 if test -n $lt_cv_sys_max_cmd_len ; then
10427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
10428 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
10429 else
10430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
10431 $as_echo "none" >&6; }
10432 fi
10433 max_cmd_len=$lt_cv_sys_max_cmd_len
10434
10435
10436
10437
10438
10439
10440 : ${CP="cp -f"}
10441 : ${MV="mv -f"}
10442 : ${RM="rm -f"}
10443
10444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
10445 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
10446 # Try some XSI features
10447 xsi_shell=no
10448 ( _lt_dummy="a/b/c"
10449 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
10450 = c,a/b,b/c, \
10451 && eval 'test $(( 1 + 1 )) -eq 2 \
10452 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
10453 && xsi_shell=yes
10454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
10455 $as_echo "$xsi_shell" >&6; }
10456
10457
10458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
10459 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
10460 lt_shell_append=no
10461 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
10462 >/dev/null 2>&1 \
10463 && lt_shell_append=yes
10464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
10465 $as_echo "$lt_shell_append" >&6; }
10466
10467
10468 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
10469 lt_unset=unset
10470 else
10471 lt_unset=false
10472 fi
10473
10474
10475
10476
10477
10478 # test EBCDIC or ASCII
10479 case `echo X|tr X '\101'` in
10480 A) # ASCII based system
10481 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
10482 lt_SP2NL='tr \040 \012'
10483 lt_NL2SP='tr \015\012 \040\040'
10484 ;;
10485 *) # EBCDIC based system
10486 lt_SP2NL='tr \100 \n'
10487 lt_NL2SP='tr \r\n \100\100'
10488 ;;
10489 esac
10490
10491
10492
10493
10494
10495
10496
10497
10498
10499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
10500 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
10501 if ${lt_cv_to_host_file_cmd+:} false; then :
10502 $as_echo_n "(cached) " >&6
10503 else
10504 case $host in
10505 *-*-mingw* )
10506 case $build in
10507 *-*-mingw* ) # actually msys
10508 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
10509 ;;
10510 *-*-cygwin* )
10511 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
10512 ;;
10513 * ) # otherwise, assume *nix
10514 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
10515 ;;
10516 esac
10517 ;;
10518 *-*-cygwin* )
10519 case $build in
10520 *-*-mingw* ) # actually msys
10521 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
10522 ;;
10523 *-*-cygwin* )
10524 lt_cv_to_host_file_cmd=func_convert_file_noop
10525 ;;
10526 * ) # otherwise, assume *nix
10527 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
10528 ;;
10529 esac
10530 ;;
10531 * ) # unhandled hosts (and "normal" native builds)
10532 lt_cv_to_host_file_cmd=func_convert_file_noop
10533 ;;
10534 esac
10535
10536 fi
10537
10538 to_host_file_cmd=$lt_cv_to_host_file_cmd
10539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
10540 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
10541
10542
10543
10544
10545
10546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
10547 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
10548 if ${lt_cv_to_tool_file_cmd+:} false; then :
10549 $as_echo_n "(cached) " >&6
10550 else
10551 #assume ordinary cross tools, or native build.
10552 lt_cv_to_tool_file_cmd=func_convert_file_noop
10553 case $host in
10554 *-*-mingw* )
10555 case $build in
10556 *-*-mingw* ) # actually msys
10557 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
10558 ;;
10559 esac
10560 ;;
10561 esac
10562
10563 fi
10564
10565 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
10566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
10567 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
10568
10569
10570
10571
10572
10573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
10574 $as_echo_n "checking for $LD option to reload object files... " >&6; }
10575 if ${lt_cv_ld_reload_flag+:} false; then :
10576 $as_echo_n "(cached) " >&6
10577 else
10578 lt_cv_ld_reload_flag='-r'
10579 fi
10580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
10581 $as_echo "$lt_cv_ld_reload_flag" >&6; }
10582 reload_flag=$lt_cv_ld_reload_flag
10583 case $reload_flag in
10584 "" | " "*) ;;
10585 *) reload_flag=" $reload_flag" ;;
10586 esac
10587 reload_cmds='$LD$reload_flag -o $output$reload_objs'
10588 case $host_os in
10589 cygwin* | mingw* | pw32* | cegcc*)
10590 if test "$GCC" != yes; then
10591 reload_cmds=false
10592 fi
10593 ;;
10594 darwin*)
10595 if test "$GCC" = yes; then
10596 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
10597 else
10598 reload_cmds='$LD$reload_flag -o $output$reload_objs'
10599 fi
10600 ;;
10601 esac
10602
10603
10604
10605
10606
10607
10608
10609
10610
10611 if test -n "$ac_tool_prefix"; then
10612 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
10613 set dummy ${ac_tool_prefix}objdump; ac_word=$2
10614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10615 $as_echo_n "checking for $ac_word... " >&6; }
10616 if ${ac_cv_prog_OBJDUMP+:} false; then :
10617 $as_echo_n "(cached) " >&6
10618 else
10619 if test -n "$OBJDUMP"; then
10620 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
10621 else
10622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10623 for as_dir in $PATH
10624 do
10625 IFS=$as_save_IFS
10626 test -z "$as_dir" && as_dir=.
10627 for ac_exec_ext in '' $ac_executable_extensions; do
10628 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10629 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
10630 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10631 break 2
10632 fi
10633 done
10634 done
10635 IFS=$as_save_IFS
10636
10637 fi
10638 fi
10639 OBJDUMP=$ac_cv_prog_OBJDUMP
10640 if test -n "$OBJDUMP"; then
10641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
10642 $as_echo "$OBJDUMP" >&6; }
10643 else
10644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10645 $as_echo "no" >&6; }
10646 fi
10647
10648
10649 fi
10650 if test -z "$ac_cv_prog_OBJDUMP"; then
10651 ac_ct_OBJDUMP=$OBJDUMP
10652 # Extract the first word of "objdump", so it can be a program name with args.
10653 set dummy objdump; ac_word=$2
10654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10655 $as_echo_n "checking for $ac_word... " >&6; }
10656 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
10657 $as_echo_n "(cached) " >&6
10658 else
10659 if test -n "$ac_ct_OBJDUMP"; then
10660 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
10661 else
10662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10663 for as_dir in $PATH
10664 do
10665 IFS=$as_save_IFS
10666 test -z "$as_dir" && as_dir=.
10667 for ac_exec_ext in '' $ac_executable_extensions; do
10668 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10669 ac_cv_prog_ac_ct_OBJDUMP="objdump"
10670 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10671 break 2
10672 fi
10673 done
10674 done
10675 IFS=$as_save_IFS
10676
10677 fi
10678 fi
10679 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
10680 if test -n "$ac_ct_OBJDUMP"; then
10681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
10682 $as_echo "$ac_ct_OBJDUMP" >&6; }
10683 else
10684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10685 $as_echo "no" >&6; }
10686 fi
10687
10688 if test "x$ac_ct_OBJDUMP" = x; then
10689 OBJDUMP="false"
10690 else
10691 case $cross_compiling:$ac_tool_warned in
10692 yes:)
10693 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10694 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10695 ac_tool_warned=yes ;;
10696 esac
10697 OBJDUMP=$ac_ct_OBJDUMP
10698 fi
10699 else
10700 OBJDUMP="$ac_cv_prog_OBJDUMP"
10701 fi
10702
10703 test -z "$OBJDUMP" && OBJDUMP=objdump
10704
10705
10706
10707
10708
10709
10710
10711
10712
10713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
10714 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
10715 if ${lt_cv_deplibs_check_method+:} false; then :
10716 $as_echo_n "(cached) " >&6
10717 else
10718 lt_cv_file_magic_cmd='$MAGIC_CMD'
10719 lt_cv_file_magic_test_file=
10720 lt_cv_deplibs_check_method='unknown'
10721 # Need to set the preceding variable on all platforms that support
10722 # interlibrary dependencies.
10723 # 'none' -- dependencies not supported.
10724 # `unknown' -- same as none, but documents that we really don't know.
10725 # 'pass_all' -- all dependencies passed with no checks.
10726 # 'test_compile' -- check by making test program.
10727 # 'file_magic [[regex]]' -- check by looking for files in library path
10728 # which responds to the $file_magic_cmd with a given extended regex.
10729 # If you have `file' or equivalent on your system and you're not sure
10730 # whether `pass_all' will *always* work, you probably want this one.
10731
10732 case $host_os in
10733 aix[4-9]*)
10734 lt_cv_deplibs_check_method=pass_all
10735 ;;
10736
10737 beos*)
10738 lt_cv_deplibs_check_method=pass_all
10739 ;;
10740
10741 bsdi[45]*)
10742 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
10743 lt_cv_file_magic_cmd='/usr/bin/file -L'
10744 lt_cv_file_magic_test_file=/shlib/libc.so
10745 ;;
10746
10747 cygwin*)
10748 # func_win32_libid is a shell function defined in ltmain.sh
10749 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10750 lt_cv_file_magic_cmd='func_win32_libid'
10751 ;;
10752
10753 mingw* | pw32*)
10754 # Base MSYS/MinGW do not provide the 'file' command needed by
10755 # func_win32_libid shell function, so use a weaker test based on 'objdump',
10756 # unless we find 'file', for example because we are cross-compiling.
10757 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
10758 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
10759 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10760 lt_cv_file_magic_cmd='func_win32_libid'
10761 else
10762 # Keep this pattern in sync with the one in func_win32_libid.
10763 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
10764 lt_cv_file_magic_cmd='$OBJDUMP -f'
10765 fi
10766 ;;
10767
10768 cegcc*)
10769 # use the weaker test based on 'objdump'. See mingw*.
10770 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
10771 lt_cv_file_magic_cmd='$OBJDUMP -f'
10772 ;;
10773
10774 darwin* | rhapsody*)
10775 lt_cv_deplibs_check_method=pass_all
10776 ;;
10777
10778 freebsd* | dragonfly*)
10779 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
10780 case $host_cpu in
10781 i*86 )
10782 # Not sure whether the presence of OpenBSD here was a mistake.
10783 # Let's accept both of them until this is cleared up.
10784 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
10785 lt_cv_file_magic_cmd=/usr/bin/file
10786 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
10787 ;;
10788 esac
10789 else
10790 lt_cv_deplibs_check_method=pass_all
10791 fi
10792 ;;
10793
10794 gnu*)
10795 lt_cv_deplibs_check_method=pass_all
10796 ;;
10797
10798 haiku*)
10799 lt_cv_deplibs_check_method=pass_all
10800 ;;
10801
10802 hpux10.20* | hpux11*)
10803 lt_cv_file_magic_cmd=/usr/bin/file
10804 case $host_cpu in
10805 ia64*)
10806 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
10807 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
10808 ;;
10809 hppa*64*)
10810 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]'
10811 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
10812 ;;
10813 *)
10814 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
10815 lt_cv_file_magic_test_file=/usr/lib/libc.sl
10816 ;;
10817 esac
10818 ;;
10819
10820 interix[3-9]*)
10821 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
10822 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
10823 ;;
10824
10825 irix5* | irix6* | nonstopux*)
10826 case $LD in
10827 *-32|*"-32 ") libmagic=32-bit;;
10828 *-n32|*"-n32 ") libmagic=N32;;
10829 *-64|*"-64 ") libmagic=64-bit;;
10830 *) libmagic=never-match;;
10831 esac
10832 lt_cv_deplibs_check_method=pass_all
10833 ;;
10834
10835 # This must be glibc/ELF.
10836 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10837 lt_cv_deplibs_check_method=pass_all
10838 ;;
10839
10840 netbsd*)
10841 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
10842 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10843 else
10844 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
10845 fi
10846 ;;
10847
10848 newos6*)
10849 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
10850 lt_cv_file_magic_cmd=/usr/bin/file
10851 lt_cv_file_magic_test_file=/usr/lib/libnls.so
10852 ;;
10853
10854 *nto* | *qnx*)
10855 lt_cv_deplibs_check_method=pass_all
10856 ;;
10857
10858 openbsd*)
10859 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10860 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
10861 else
10862 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10863 fi
10864 ;;
10865
10866 osf3* | osf4* | osf5*)
10867 lt_cv_deplibs_check_method=pass_all
10868 ;;
10869
10870 rdos*)
10871 lt_cv_deplibs_check_method=pass_all
10872 ;;
10873
10874 solaris*)
10875 lt_cv_deplibs_check_method=pass_all
10876 ;;
10877
10878 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10879 lt_cv_deplibs_check_method=pass_all
10880 ;;
10881
10882 sysv4 | sysv4.3*)
10883 case $host_vendor in
10884 motorola)
10885 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]'
10886 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
10887 ;;
10888 ncr)
10889 lt_cv_deplibs_check_method=pass_all
10890 ;;
10891 sequent)
10892 lt_cv_file_magic_cmd='/bin/file'
10893 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
10894 ;;
10895 sni)
10896 lt_cv_file_magic_cmd='/bin/file'
10897 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
10898 lt_cv_file_magic_test_file=/lib/libc.so
10899 ;;
10900 siemens)
10901 lt_cv_deplibs_check_method=pass_all
10902 ;;
10903 pc)
10904 lt_cv_deplibs_check_method=pass_all
10905 ;;
10906 esac
10907 ;;
10908
10909 tpf*)
10910 lt_cv_deplibs_check_method=pass_all
10911 ;;
10912 esac
10913
10914 fi
10915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
10916 $as_echo "$lt_cv_deplibs_check_method" >&6; }
10917
10918 file_magic_glob=
10919 want_nocaseglob=no
10920 if test "$build" = "$host"; then
10921 case $host_os in
10922 mingw* | pw32*)
10923 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
10924 want_nocaseglob=yes
10925 else
10926 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
10927 fi
10928 ;;
10929 esac
10930 fi
10931
10932 file_magic_cmd=$lt_cv_file_magic_cmd
10933 deplibs_check_method=$lt_cv_deplibs_check_method
10934 test -z "$deplibs_check_method" && deplibs_check_method=unknown
10935
10936
10937
10938
10939
10940
10941
10942
10943
10944
10945
10946
10947
10948
10949
10950
10951
10952
10953
10954
10955
10956
10957 if test -n "$ac_tool_prefix"; then
10958 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
10959 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
10960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10961 $as_echo_n "checking for $ac_word... " >&6; }
10962 if ${ac_cv_prog_DLLTOOL+:} false; then :
10963 $as_echo_n "(cached) " >&6
10964 else
10965 if test -n "$DLLTOOL"; then
10966 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
10967 else
10968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10969 for as_dir in $PATH
10970 do
10971 IFS=$as_save_IFS
10972 test -z "$as_dir" && as_dir=.
10973 for ac_exec_ext in '' $ac_executable_extensions; do
10974 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10975 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
10976 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10977 break 2
10978 fi
10979 done
10980 done
10981 IFS=$as_save_IFS
10982
10983 fi
10984 fi
10985 DLLTOOL=$ac_cv_prog_DLLTOOL
10986 if test -n "$DLLTOOL"; then
10987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
10988 $as_echo "$DLLTOOL" >&6; }
10989 else
10990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10991 $as_echo "no" >&6; }
10992 fi
10993
10994
10995 fi
10996 if test -z "$ac_cv_prog_DLLTOOL"; then
10997 ac_ct_DLLTOOL=$DLLTOOL
10998 # Extract the first word of "dlltool", so it can be a program name with args.
10999 set dummy dlltool; ac_word=$2
11000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11001 $as_echo_n "checking for $ac_word... " >&6; }
11002 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
11003 $as_echo_n "(cached) " >&6
11004 else
11005 if test -n "$ac_ct_DLLTOOL"; then
11006 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
11007 else
11008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11009 for as_dir in $PATH
11010 do
11011 IFS=$as_save_IFS
11012 test -z "$as_dir" && as_dir=.
11013 for ac_exec_ext in '' $ac_executable_extensions; do
11014 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11015 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
11016 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11017 break 2
11018 fi
11019 done
11020 done
11021 IFS=$as_save_IFS
11022
11023 fi
11024 fi
11025 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
11026 if test -n "$ac_ct_DLLTOOL"; then
11027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
11028 $as_echo "$ac_ct_DLLTOOL" >&6; }
11029 else
11030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11031 $as_echo "no" >&6; }
11032 fi
11033
11034 if test "x$ac_ct_DLLTOOL" = x; then
11035 DLLTOOL="false"
11036 else
11037 case $cross_compiling:$ac_tool_warned in
11038 yes:)
11039 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11040 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11041 ac_tool_warned=yes ;;
11042 esac
11043 DLLTOOL=$ac_ct_DLLTOOL
11044 fi
11045 else
11046 DLLTOOL="$ac_cv_prog_DLLTOOL"
11047 fi
11048
11049 test -z "$DLLTOOL" && DLLTOOL=dlltool
11050
11051
11052
11053
11054
11055
11056
11057
11058
11059
11060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
11061 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
11062 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
11063 $as_echo_n "(cached) " >&6
11064 else
11065 lt_cv_sharedlib_from_linklib_cmd='unknown'
11066
11067 case $host_os in
11068 cygwin* | mingw* | pw32* | cegcc*)
11069 # two different shell functions defined in ltmain.sh
11070 # decide which to use based on capabilities of $DLLTOOL
11071 case `$DLLTOOL --help 2>&1` in
11072 *--identify-strict*)
11073 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
11074 ;;
11075 *)
11076 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
11077 ;;
11078 esac
11079 ;;
11080 *)
11081 # fallback: assume linklib IS sharedlib
11082 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
11083 ;;
11084 esac
11085
11086 fi
11087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
11088 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
11089 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
11090 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
11091
11092
11093
11094
11095
11096
11097
11098 if test -n "$ac_tool_prefix"; then
11099 for ac_prog in ar
11100 do
11101 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11102 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11104 $as_echo_n "checking for $ac_word... " >&6; }
11105 if ${ac_cv_prog_AR+:} false; then :
11106 $as_echo_n "(cached) " >&6
11107 else
11108 if test -n "$AR"; then
11109 ac_cv_prog_AR="$AR" # Let the user override the test.
11110 else
11111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11112 for as_dir in $PATH
11113 do
11114 IFS=$as_save_IFS
11115 test -z "$as_dir" && as_dir=.
11116 for ac_exec_ext in '' $ac_executable_extensions; do
11117 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11118 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
11119 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11120 break 2
11121 fi
11122 done
11123 done
11124 IFS=$as_save_IFS
11125
11126 fi
11127 fi
11128 AR=$ac_cv_prog_AR
11129 if test -n "$AR"; then
11130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
11131 $as_echo "$AR" >&6; }
11132 else
11133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11134 $as_echo "no" >&6; }
11135 fi
11136
11137
11138 test -n "$AR" && break
11139 done
11140 fi
11141 if test -z "$AR"; then
11142 ac_ct_AR=$AR
11143 for ac_prog in ar
11144 do
11145 # Extract the first word of "$ac_prog", so it can be a program name with args.
11146 set dummy $ac_prog; ac_word=$2
11147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11148 $as_echo_n "checking for $ac_word... " >&6; }
11149 if ${ac_cv_prog_ac_ct_AR+:} false; then :
11150 $as_echo_n "(cached) " >&6
11151 else
11152 if test -n "$ac_ct_AR"; then
11153 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
11154 else
11155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11156 for as_dir in $PATH
11157 do
11158 IFS=$as_save_IFS
11159 test -z "$as_dir" && as_dir=.
11160 for ac_exec_ext in '' $ac_executable_extensions; do
11161 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11162 ac_cv_prog_ac_ct_AR="$ac_prog"
11163 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11164 break 2
11165 fi
11166 done
11167 done
11168 IFS=$as_save_IFS
11169
11170 fi
11171 fi
11172 ac_ct_AR=$ac_cv_prog_ac_ct_AR
11173 if test -n "$ac_ct_AR"; then
11174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
11175 $as_echo "$ac_ct_AR" >&6; }
11176 else
11177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11178 $as_echo "no" >&6; }
11179 fi
11180
11181
11182 test -n "$ac_ct_AR" && break
11183 done
11184
11185 if test "x$ac_ct_AR" = x; then
11186 AR="false"
11187 else
11188 case $cross_compiling:$ac_tool_warned in
11189 yes:)
11190 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11191 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11192 ac_tool_warned=yes ;;
11193 esac
11194 AR=$ac_ct_AR
11195 fi
11196 fi
11197
11198 : ${AR=ar}
11199 : ${AR_FLAGS=cru}
11200
11201
11202
11203
11204
11205
11206
11207
11208
11209
11210
11211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
11212 $as_echo_n "checking for archiver @FILE support... " >&6; }
11213 if ${lt_cv_ar_at_file+:} false; then :
11214 $as_echo_n "(cached) " >&6
11215 else
11216 lt_cv_ar_at_file=no
11217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11218 /* end confdefs.h. */
11219
11220 int
11221 main ()
11222 {
11223
11224 ;
11225 return 0;
11226 }
11227 _ACEOF
11228 if ac_fn_c_try_compile "$LINENO"; then :
11229 echo conftest.$ac_objext > conftest.lst
11230 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
11231 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
11232 (eval $lt_ar_try) 2>&5
11233 ac_status=$?
11234 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11235 test $ac_status = 0; }
11236 if test "$ac_status" -eq 0; then
11237 # Ensure the archiver fails upon bogus file names.
11238 rm -f conftest.$ac_objext libconftest.a
11239 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
11240 (eval $lt_ar_try) 2>&5
11241 ac_status=$?
11242 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11243 test $ac_status = 0; }
11244 if test "$ac_status" -ne 0; then
11245 lt_cv_ar_at_file=@
11246 fi
11247 fi
11248 rm -f conftest.* libconftest.a
11249
11250 fi
11251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11252
11253 fi
11254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
11255 $as_echo "$lt_cv_ar_at_file" >&6; }
11256
11257 if test "x$lt_cv_ar_at_file" = xno; then
11258 archiver_list_spec=
11259 else
11260 archiver_list_spec=$lt_cv_ar_at_file
11261 fi
11262
11263
11264
11265
11266
11267
11268
11269 if test -n "$ac_tool_prefix"; then
11270 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
11271 set dummy ${ac_tool_prefix}strip; ac_word=$2
11272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11273 $as_echo_n "checking for $ac_word... " >&6; }
11274 if ${ac_cv_prog_STRIP+:} false; then :
11275 $as_echo_n "(cached) " >&6
11276 else
11277 if test -n "$STRIP"; then
11278 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11279 else
11280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11281 for as_dir in $PATH
11282 do
11283 IFS=$as_save_IFS
11284 test -z "$as_dir" && as_dir=.
11285 for ac_exec_ext in '' $ac_executable_extensions; do
11286 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11287 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
11288 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11289 break 2
11290 fi
11291 done
11292 done
11293 IFS=$as_save_IFS
11294
11295 fi
11296 fi
11297 STRIP=$ac_cv_prog_STRIP
11298 if test -n "$STRIP"; then
11299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
11300 $as_echo "$STRIP" >&6; }
11301 else
11302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11303 $as_echo "no" >&6; }
11304 fi
11305
11306
11307 fi
11308 if test -z "$ac_cv_prog_STRIP"; then
11309 ac_ct_STRIP=$STRIP
11310 # Extract the first word of "strip", so it can be a program name with args.
11311 set dummy strip; ac_word=$2
11312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11313 $as_echo_n "checking for $ac_word... " >&6; }
11314 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
11315 $as_echo_n "(cached) " >&6
11316 else
11317 if test -n "$ac_ct_STRIP"; then
11318 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
11319 else
11320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11321 for as_dir in $PATH
11322 do
11323 IFS=$as_save_IFS
11324 test -z "$as_dir" && as_dir=.
11325 for ac_exec_ext in '' $ac_executable_extensions; do
11326 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11327 ac_cv_prog_ac_ct_STRIP="strip"
11328 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11329 break 2
11330 fi
11331 done
11332 done
11333 IFS=$as_save_IFS
11334
11335 fi
11336 fi
11337 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11338 if test -n "$ac_ct_STRIP"; then
11339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
11340 $as_echo "$ac_ct_STRIP" >&6; }
11341 else
11342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11343 $as_echo "no" >&6; }
11344 fi
11345
11346 if test "x$ac_ct_STRIP" = x; then
11347 STRIP=":"
11348 else
11349 case $cross_compiling:$ac_tool_warned in
11350 yes:)
11351 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11352 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11353 ac_tool_warned=yes ;;
11354 esac
11355 STRIP=$ac_ct_STRIP
11356 fi
11357 else
11358 STRIP="$ac_cv_prog_STRIP"
11359 fi
11360
11361 test -z "$STRIP" && STRIP=:
11362
11363
11364
11365
11366
11367
11368 if test -n "$ac_tool_prefix"; then
11369 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11370 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11372 $as_echo_n "checking for $ac_word... " >&6; }
11373 if ${ac_cv_prog_RANLIB+:} false; then :
11374 $as_echo_n "(cached) " >&6
11375 else
11376 if test -n "$RANLIB"; then
11377 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11378 else
11379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11380 for as_dir in $PATH
11381 do
11382 IFS=$as_save_IFS
11383 test -z "$as_dir" && as_dir=.
11384 for ac_exec_ext in '' $ac_executable_extensions; do
11385 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11386 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11387 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11388 break 2
11389 fi
11390 done
11391 done
11392 IFS=$as_save_IFS
11393
11394 fi
11395 fi
11396 RANLIB=$ac_cv_prog_RANLIB
11397 if test -n "$RANLIB"; then
11398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
11399 $as_echo "$RANLIB" >&6; }
11400 else
11401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11402 $as_echo "no" >&6; }
11403 fi
11404
11405
11406 fi
11407 if test -z "$ac_cv_prog_RANLIB"; then
11408 ac_ct_RANLIB=$RANLIB
11409 # Extract the first word of "ranlib", so it can be a program name with args.
11410 set dummy ranlib; ac_word=$2
11411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11412 $as_echo_n "checking for $ac_word... " >&6; }
11413 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
11414 $as_echo_n "(cached) " >&6
11415 else
11416 if test -n "$ac_ct_RANLIB"; then
11417 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11418 else
11419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11420 for as_dir in $PATH
11421 do
11422 IFS=$as_save_IFS
11423 test -z "$as_dir" && as_dir=.
11424 for ac_exec_ext in '' $ac_executable_extensions; do
11425 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11426 ac_cv_prog_ac_ct_RANLIB="ranlib"
11427 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11428 break 2
11429 fi
11430 done
11431 done
11432 IFS=$as_save_IFS
11433
11434 fi
11435 fi
11436 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11437 if test -n "$ac_ct_RANLIB"; then
11438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
11439 $as_echo "$ac_ct_RANLIB" >&6; }
11440 else
11441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11442 $as_echo "no" >&6; }
11443 fi
11444
11445 if test "x$ac_ct_RANLIB" = x; then
11446 RANLIB=":"
11447 else
11448 case $cross_compiling:$ac_tool_warned in
11449 yes:)
11450 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11451 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11452 ac_tool_warned=yes ;;
11453 esac
11454 RANLIB=$ac_ct_RANLIB
11455 fi
11456 else
11457 RANLIB="$ac_cv_prog_RANLIB"
11458 fi
11459
11460 test -z "$RANLIB" && RANLIB=:
11461
11462
11463
11464
11465
11466
11467 # Determine commands to create old-style static archives.
11468 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
11469 old_postinstall_cmds='chmod 644 $oldlib'
11470 old_postuninstall_cmds=
11471
11472 if test -n "$RANLIB"; then
11473 case $host_os in
11474 openbsd*)
11475 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
11476 ;;
11477 *)
11478 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
11479 ;;
11480 esac
11481 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
11482 fi
11483
11484 case $host_os in
11485 darwin*)
11486 lock_old_archive_extraction=yes ;;
11487 *)
11488 lock_old_archive_extraction=no ;;
11489 esac
11490
11491
11492
11493
11494
11495
11496
11497
11498
11499
11500
11501
11502
11503
11504
11505
11506
11507
11508
11509
11510
11511
11512
11513
11514
11515
11516
11517
11518
11519
11520
11521
11522
11523
11524
11525
11526
11527
11528
11529 # If no C compiler was specified, use CC.
11530 LTCC=${LTCC-"$CC"}
11531
11532 # If no C compiler flags were specified, use CFLAGS.
11533 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11534
11535 # Allow CC to be a program name with arguments.
11536 compiler=$CC
11537
11538
11539 # Check for command to grab the raw symbol name followed by C symbol from nm.
11540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
11541 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
11542 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
11543 $as_echo_n "(cached) " >&6
11544 else
11545
11546 # These are sane defaults that work on at least a few old systems.
11547 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
11548
11549 # Character class describing NM global symbol codes.
11550 symcode='[BCDEGRST]'
11551
11552 # Regexp to match symbols that can be accessed directly from C.
11553 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
11554
11555 # Define system-specific variables.
11556 case $host_os in
11557 aix*)
11558 symcode='[BCDT]'
11559 ;;
11560 cygwin* | mingw* | pw32* | cegcc*)
11561 symcode='[ABCDGISTW]'
11562 ;;
11563 hpux*)
11564 if test "$host_cpu" = ia64; then
11565 symcode='[ABCDEGRST]'
11566 fi
11567 ;;
11568 irix* | nonstopux*)
11569 symcode='[BCDEGRST]'
11570 ;;
11571 osf*)
11572 symcode='[BCDEGQRST]'
11573 ;;
11574 solaris*)
11575 symcode='[BDRT]'
11576 ;;
11577 sco3.2v5*)
11578 symcode='[DT]'
11579 ;;
11580 sysv4.2uw2*)
11581 symcode='[DT]'
11582 ;;
11583 sysv5* | sco5v6* | unixware* | OpenUNIX*)
11584 symcode='[ABDT]'
11585 ;;
11586 sysv4)
11587 symcode='[DFNSTU]'
11588 ;;
11589 esac
11590
11591 # If we're using GNU nm, then use its standard symbol codes.
11592 case `$NM -V 2>&1` in
11593 *GNU* | *'with BFD'*)
11594 symcode='[ABCDGIRSTW]' ;;
11595 esac
11596
11597 # Transform an extracted symbol line into a proper C declaration.
11598 # Some systems (esp. on ia64) link data and code symbols differently,
11599 # so use this general approach.
11600 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
11601
11602 # Transform an extracted symbol line into symbol name and symbol address
11603 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
11604 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'"
11605
11606 # Handle CRLF in mingw tool chain
11607 opt_cr=
11608 case $build_os in
11609 mingw*)
11610 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
11611 ;;
11612 esac
11613
11614 # Try without a prefix underscore, then with it.
11615 for ac_symprfx in "" "_"; do
11616
11617 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
11618 symxfrm="\\1 $ac_symprfx\\2 \\2"
11619
11620 # Write the raw and C identifiers.
11621 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
11622 # Fake it for dumpbin and say T for any non-static function
11623 # and D for any global variable.
11624 # Also find C++ and __fastcall symbols from MSVC++,
11625 # which start with @ or ?.
11626 lt_cv_sys_global_symbol_pipe="$AWK '"\
11627 " {last_section=section; section=\$ 3};"\
11628 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
11629 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
11630 " \$ 0!~/External *\|/{next};"\
11631 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
11632 " {if(hide[section]) next};"\
11633 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
11634 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
11635 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
11636 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
11637 " ' prfx=^$ac_symprfx"
11638 else
11639 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
11640 fi
11641 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
11642
11643 # Check to see that the pipe works correctly.
11644 pipe_works=no
11645
11646 rm -f conftest*
11647 cat > conftest.$ac_ext <<_LT_EOF
11648 #ifdef __cplusplus
11649 extern "C" {
11650 #endif
11651 char nm_test_var;
11652 void nm_test_func(void);
11653 void nm_test_func(void){}
11654 #ifdef __cplusplus
11655 }
11656 #endif
11657 int main(){nm_test_var='a';nm_test_func();return(0);}
11658 _LT_EOF
11659
11660 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11661 (eval $ac_compile) 2>&5
11662 ac_status=$?
11663 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11664 test $ac_status = 0; }; then
11665 # Now try to grab the symbols.
11666 nlist=conftest.nm
11667 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
11668 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
11669 ac_status=$?
11670 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11671 test $ac_status = 0; } && test -s "$nlist"; then
11672 # Try sorting and uniquifying the output.
11673 if sort "$nlist" | uniq > "$nlist"T; then
11674 mv -f "$nlist"T "$nlist"
11675 else
11676 rm -f "$nlist"T
11677 fi
11678
11679 # Make sure that we snagged all the symbols we need.
11680 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
11681 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
11682 cat <<_LT_EOF > conftest.$ac_ext
11683 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
11684 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
11685 /* DATA imports from DLLs on WIN32 con't be const, because runtime
11686 relocations are performed -- see ld's documentation on pseudo-relocs. */
11687 # define LT_DLSYM_CONST
11688 #elif defined(__osf__)
11689 /* This system does not cope well with relocations in const data. */
11690 # define LT_DLSYM_CONST
11691 #else
11692 # define LT_DLSYM_CONST const
11693 #endif
11694
11695 #ifdef __cplusplus
11696 extern "C" {
11697 #endif
11698
11699 _LT_EOF
11700 # Now generate the symbol file.
11701 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
11702
11703 cat <<_LT_EOF >> conftest.$ac_ext
11704
11705 /* The mapping between symbol names and symbols. */
11706 LT_DLSYM_CONST struct {
11707 const char *name;
11708 void *address;
11709 }
11710 lt__PROGRAM__LTX_preloaded_symbols[] =
11711 {
11712 { "@PROGRAM@", (void *) 0 },
11713 _LT_EOF
11714 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
11715 cat <<\_LT_EOF >> conftest.$ac_ext
11716 {0, (void *) 0}
11717 };
11718
11719 /* This works around a problem in FreeBSD linker */
11720 #ifdef FREEBSD_WORKAROUND
11721 static const void *lt_preloaded_setup() {
11722 return lt__PROGRAM__LTX_preloaded_symbols;
11723 }
11724 #endif
11725
11726 #ifdef __cplusplus
11727 }
11728 #endif
11729 _LT_EOF
11730 # Now try linking the two files.
11731 mv conftest.$ac_objext conftstm.$ac_objext
11732 lt_globsym_save_LIBS=$LIBS
11733 lt_globsym_save_CFLAGS=$CFLAGS
11734 LIBS="conftstm.$ac_objext"
11735 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
11736 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11737 (eval $ac_link) 2>&5
11738 ac_status=$?
11739 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11740 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
11741 pipe_works=yes
11742 fi
11743 LIBS=$lt_globsym_save_LIBS
11744 CFLAGS=$lt_globsym_save_CFLAGS
11745 else
11746 echo "cannot find nm_test_func in $nlist" >&5
11747 fi
11748 else
11749 echo "cannot find nm_test_var in $nlist" >&5
11750 fi
11751 else
11752 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
11753 fi
11754 else
11755 echo "$progname: failed program was:" >&5
11756 cat conftest.$ac_ext >&5
11757 fi
11758 rm -rf conftest* conftst*
11759
11760 # Do not use the global_symbol_pipe unless it works.
11761 if test "$pipe_works" = yes; then
11762 break
11763 else
11764 lt_cv_sys_global_symbol_pipe=
11765 fi
11766 done
11767
11768 fi
11769
11770 if test -z "$lt_cv_sys_global_symbol_pipe"; then
11771 lt_cv_sys_global_symbol_to_cdecl=
11772 fi
11773 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
11774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
11775 $as_echo "failed" >&6; }
11776 else
11777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
11778 $as_echo "ok" >&6; }
11779 fi
11780
11781 # Response file support.
11782 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
11783 nm_file_list_spec='@'
11784 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
11785 nm_file_list_spec='@'
11786 fi
11787
11788
11789
11790
11791
11792
11793
11794
11795
11796
11797
11798
11799
11800
11801
11802
11803
11804
11805
11806
11807
11808
11809
11810
11811
11812
11813
11814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
11815 $as_echo_n "checking for sysroot... " >&6; }
11816
11817 # Check whether --with-sysroot was given.
11818 if test "${with_sysroot+set}" = set; then :
11819 withval=$with_sysroot;
11820 else
11821 with_sysroot=no
11822 fi
11823
11824
11825 lt_sysroot=
11826 case ${with_sysroot} in #(
11827 yes)
11828 if test "$GCC" = yes; then
11829 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
11830 fi
11831 ;; #(
11832 /*)
11833 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
11834 ;; #(
11835 no|'')
11836 ;; #(
11837 *)
11838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
11839 $as_echo "${with_sysroot}" >&6; }
11840 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
11841 ;;
11842 esac
11843
11844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
11845 $as_echo "${lt_sysroot:-no}" >&6; }
11846
11847
11848
11849
11850
11851 # Check whether --enable-libtool-lock was given.
11852 if test "${enable_libtool_lock+set}" = set; then :
11853 enableval=$enable_libtool_lock;
11854 fi
11855
11856 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
11857
11858 # Some flags need to be propagated to the compiler or linker for good
11859 # libtool support.
11860 case $host in
11861 ia64-*-hpux*)
11862 # Find out which ABI we are using.
11863 echo 'int i;' > conftest.$ac_ext
11864 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11865 (eval $ac_compile) 2>&5
11866 ac_status=$?
11867 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11868 test $ac_status = 0; }; then
11869 case `/usr/bin/file conftest.$ac_objext` in
11870 *ELF-32*)
11871 HPUX_IA64_MODE="32"
11872 ;;
11873 *ELF-64*)
11874 HPUX_IA64_MODE="64"
11875 ;;
11876 esac
11877 fi
11878 rm -rf conftest*
11879 ;;
11880 *-*-irix6*)
11881 # Find out which ABI we are using.
11882 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
11883 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11884 (eval $ac_compile) 2>&5
11885 ac_status=$?
11886 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11887 test $ac_status = 0; }; then
11888 if test "$lt_cv_prog_gnu_ld" = yes; then
11889 case `/usr/bin/file conftest.$ac_objext` in
11890 *32-bit*)
11891 LD="${LD-ld} -melf32bsmip"
11892 ;;
11893 *N32*)
11894 LD="${LD-ld} -melf32bmipn32"
11895 ;;
11896 *64-bit*)
11897 LD="${LD-ld} -melf64bmip"
11898 ;;
11899 esac
11900 else
11901 case `/usr/bin/file conftest.$ac_objext` in
11902 *32-bit*)
11903 LD="${LD-ld} -32"
11904 ;;
11905 *N32*)
11906 LD="${LD-ld} -n32"
11907 ;;
11908 *64-bit*)
11909 LD="${LD-ld} -64"
11910 ;;
11911 esac
11912 fi
11913 fi
11914 rm -rf conftest*
11915 ;;
11916
11917 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
11918 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
11919 # Find out which ABI we are using.
11920 echo 'int i;' > conftest.$ac_ext
11921 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11922 (eval $ac_compile) 2>&5
11923 ac_status=$?
11924 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11925 test $ac_status = 0; }; then
11926 case `/usr/bin/file conftest.o` in
11927 *32-bit*)
11928 case $host in
11929 x86_64-*kfreebsd*-gnu)
11930 LD="${LD-ld} -m elf_i386_fbsd"
11931 ;;
11932 x86_64-*linux*)
11933 LD="${LD-ld} -m elf_i386"
11934 ;;
11935 ppc64-*linux*|powerpc64-*linux*)
11936 LD="${LD-ld} -m elf32ppclinux"
11937 ;;
11938 s390x-*linux*)
11939 LD="${LD-ld} -m elf_s390"
11940 ;;
11941 sparc64-*linux*)
11942 LD="${LD-ld} -m elf32_sparc"
11943 ;;
11944 esac
11945 ;;
11946 *64-bit*)
11947 case $host in
11948 x86_64-*kfreebsd*-gnu)
11949 LD="${LD-ld} -m elf_x86_64_fbsd"
11950 ;;
11951 x86_64-*linux*)
11952 LD="${LD-ld} -m elf_x86_64"
11953 ;;
11954 ppc*-*linux*|powerpc*-*linux*)
11955 LD="${LD-ld} -m elf64ppc"
11956 ;;
11957 s390*-*linux*|s390*-*tpf*)
11958 LD="${LD-ld} -m elf64_s390"
11959 ;;
11960 sparc*-*linux*)
11961 LD="${LD-ld} -m elf64_sparc"
11962 ;;
11963 esac
11964 ;;
11965 esac
11966 fi
11967 rm -rf conftest*
11968 ;;
11969
11970 *-*-sco3.2v5*)
11971 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
11972 SAVE_CFLAGS="$CFLAGS"
11973 CFLAGS="$CFLAGS -belf"
11974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
11975 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
11976 if ${lt_cv_cc_needs_belf+:} false; then :
11977 $as_echo_n "(cached) " >&6
11978 else
11979 ac_ext=c
11980 ac_cpp='$CPP $CPPFLAGS'
11981 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11982 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11983 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11984
11985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11986 /* end confdefs.h. */
11987
11988 int
11989 main ()
11990 {
11991
11992 ;
11993 return 0;
11994 }
11995 _ACEOF
11996 if ac_fn_c_try_link "$LINENO"; then :
11997 lt_cv_cc_needs_belf=yes
11998 else
11999 lt_cv_cc_needs_belf=no
12000 fi
12001 rm -f core conftest.err conftest.$ac_objext \
12002 conftest$ac_exeext conftest.$ac_ext
12003 ac_ext=c
12004 ac_cpp='$CPP $CPPFLAGS'
12005 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12006 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12007 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12008
12009 fi
12010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
12011 $as_echo "$lt_cv_cc_needs_belf" >&6; }
12012 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
12013 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
12014 CFLAGS="$SAVE_CFLAGS"
12015 fi
12016 ;;
12017 *-*solaris*)
12018 # Find out which ABI we are using.
12019 echo 'int i;' > conftest.$ac_ext
12020 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12021 (eval $ac_compile) 2>&5
12022 ac_status=$?
12023 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12024 test $ac_status = 0; }; then
12025 case `/usr/bin/file conftest.o` in
12026 *64-bit*)
12027 case $lt_cv_prog_gnu_ld in
12028 yes*)
12029 case $host in
12030 i?86-*-solaris*)
12031 LD="${LD-ld} -m elf_x86_64"
12032 ;;
12033 sparc*-*-solaris*)
12034 LD="${LD-ld} -m elf64_sparc"
12035 ;;
12036 esac
12037 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
12038 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
12039 LD="${LD-ld}_sol2"
12040 fi
12041 ;;
12042 *)
12043 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
12044 LD="${LD-ld} -64"
12045 fi
12046 ;;
12047 esac
12048 ;;
12049 esac
12050 fi
12051 rm -rf conftest*
12052 ;;
12053 esac
12054
12055 need_locks="$enable_libtool_lock"
12056
12057 if test -n "$ac_tool_prefix"; then
12058 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
12059 set dummy ${ac_tool_prefix}mt; ac_word=$2
12060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12061 $as_echo_n "checking for $ac_word... " >&6; }
12062 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
12063 $as_echo_n "(cached) " >&6
12064 else
12065 if test -n "$MANIFEST_TOOL"; then
12066 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
12067 else
12068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12069 for as_dir in $PATH
12070 do
12071 IFS=$as_save_IFS
12072 test -z "$as_dir" && as_dir=.
12073 for ac_exec_ext in '' $ac_executable_extensions; do
12074 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12075 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
12076 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12077 break 2
12078 fi
12079 done
12080 done
12081 IFS=$as_save_IFS
12082
12083 fi
12084 fi
12085 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
12086 if test -n "$MANIFEST_TOOL"; then
12087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
12088 $as_echo "$MANIFEST_TOOL" >&6; }
12089 else
12090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12091 $as_echo "no" >&6; }
12092 fi
12093
12094
12095 fi
12096 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
12097 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
12098 # Extract the first word of "mt", so it can be a program name with args.
12099 set dummy mt; ac_word=$2
12100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12101 $as_echo_n "checking for $ac_word... " >&6; }
12102 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
12103 $as_echo_n "(cached) " >&6
12104 else
12105 if test -n "$ac_ct_MANIFEST_TOOL"; then
12106 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
12107 else
12108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12109 for as_dir in $PATH
12110 do
12111 IFS=$as_save_IFS
12112 test -z "$as_dir" && as_dir=.
12113 for ac_exec_ext in '' $ac_executable_extensions; do
12114 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12115 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
12116 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12117 break 2
12118 fi
12119 done
12120 done
12121 IFS=$as_save_IFS
12122
12123 fi
12124 fi
12125 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
12126 if test -n "$ac_ct_MANIFEST_TOOL"; then
12127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
12128 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
12129 else
12130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12131 $as_echo "no" >&6; }
12132 fi
12133
12134 if test "x$ac_ct_MANIFEST_TOOL" = x; then
12135 MANIFEST_TOOL=":"
12136 else
12137 case $cross_compiling:$ac_tool_warned in
12138 yes:)
12139 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12140 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12141 ac_tool_warned=yes ;;
12142 esac
12143 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
12144 fi
12145 else
12146 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
12147 fi
12148
12149 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
12150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
12151 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
12152 if ${lt_cv_path_mainfest_tool+:} false; then :
12153 $as_echo_n "(cached) " >&6
12154 else
12155 lt_cv_path_mainfest_tool=no
12156 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
12157 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
12158 cat conftest.err >&5
12159 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
12160 lt_cv_path_mainfest_tool=yes
12161 fi
12162 rm -f conftest*
12163 fi
12164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
12165 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
12166 if test "x$lt_cv_path_mainfest_tool" != xyes; then
12167 MANIFEST_TOOL=:
12168 fi
12169
12170
12171
12172
12173
12174
12175 case $host_os in
12176 rhapsody* | darwin*)
12177 if test -n "$ac_tool_prefix"; then
12178 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
12179 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
12180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12181 $as_echo_n "checking for $ac_word... " >&6; }
12182 if ${ac_cv_prog_DSYMUTIL+:} false; then :
12183 $as_echo_n "(cached) " >&6
12184 else
12185 if test -n "$DSYMUTIL"; then
12186 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
12187 else
12188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12189 for as_dir in $PATH
12190 do
12191 IFS=$as_save_IFS
12192 test -z "$as_dir" && as_dir=.
12193 for ac_exec_ext in '' $ac_executable_extensions; do
12194 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12195 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
12196 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12197 break 2
12198 fi
12199 done
12200 done
12201 IFS=$as_save_IFS
12202
12203 fi
12204 fi
12205 DSYMUTIL=$ac_cv_prog_DSYMUTIL
12206 if test -n "$DSYMUTIL"; then
12207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
12208 $as_echo "$DSYMUTIL" >&6; }
12209 else
12210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12211 $as_echo "no" >&6; }
12212 fi
12213
12214
12215 fi
12216 if test -z "$ac_cv_prog_DSYMUTIL"; then
12217 ac_ct_DSYMUTIL=$DSYMUTIL
12218 # Extract the first word of "dsymutil", so it can be a program name with args.
12219 set dummy dsymutil; ac_word=$2
12220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12221 $as_echo_n "checking for $ac_word... " >&6; }
12222 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
12223 $as_echo_n "(cached) " >&6
12224 else
12225 if test -n "$ac_ct_DSYMUTIL"; then
12226 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
12227 else
12228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12229 for as_dir in $PATH
12230 do
12231 IFS=$as_save_IFS
12232 test -z "$as_dir" && as_dir=.
12233 for ac_exec_ext in '' $ac_executable_extensions; do
12234 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12235 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
12236 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12237 break 2
12238 fi
12239 done
12240 done
12241 IFS=$as_save_IFS
12242
12243 fi
12244 fi
12245 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
12246 if test -n "$ac_ct_DSYMUTIL"; then
12247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
12248 $as_echo "$ac_ct_DSYMUTIL" >&6; }
12249 else
12250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12251 $as_echo "no" >&6; }
12252 fi
12253
12254 if test "x$ac_ct_DSYMUTIL" = x; then
12255 DSYMUTIL=":"
12256 else
12257 case $cross_compiling:$ac_tool_warned in
12258 yes:)
12259 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12260 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12261 ac_tool_warned=yes ;;
12262 esac
12263 DSYMUTIL=$ac_ct_DSYMUTIL
12264 fi
12265 else
12266 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
12267 fi
12268
12269 if test -n "$ac_tool_prefix"; then
12270 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
12271 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
12272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12273 $as_echo_n "checking for $ac_word... " >&6; }
12274 if ${ac_cv_prog_NMEDIT+:} false; then :
12275 $as_echo_n "(cached) " >&6
12276 else
12277 if test -n "$NMEDIT"; then
12278 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
12279 else
12280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12281 for as_dir in $PATH
12282 do
12283 IFS=$as_save_IFS
12284 test -z "$as_dir" && as_dir=.
12285 for ac_exec_ext in '' $ac_executable_extensions; do
12286 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12287 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
12288 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12289 break 2
12290 fi
12291 done
12292 done
12293 IFS=$as_save_IFS
12294
12295 fi
12296 fi
12297 NMEDIT=$ac_cv_prog_NMEDIT
12298 if test -n "$NMEDIT"; then
12299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
12300 $as_echo "$NMEDIT" >&6; }
12301 else
12302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12303 $as_echo "no" >&6; }
12304 fi
12305
12306
12307 fi
12308 if test -z "$ac_cv_prog_NMEDIT"; then
12309 ac_ct_NMEDIT=$NMEDIT
12310 # Extract the first word of "nmedit", so it can be a program name with args.
12311 set dummy nmedit; ac_word=$2
12312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12313 $as_echo_n "checking for $ac_word... " >&6; }
12314 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
12315 $as_echo_n "(cached) " >&6
12316 else
12317 if test -n "$ac_ct_NMEDIT"; then
12318 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
12319 else
12320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12321 for as_dir in $PATH
12322 do
12323 IFS=$as_save_IFS
12324 test -z "$as_dir" && as_dir=.
12325 for ac_exec_ext in '' $ac_executable_extensions; do
12326 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12327 ac_cv_prog_ac_ct_NMEDIT="nmedit"
12328 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12329 break 2
12330 fi
12331 done
12332 done
12333 IFS=$as_save_IFS
12334
12335 fi
12336 fi
12337 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
12338 if test -n "$ac_ct_NMEDIT"; then
12339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
12340 $as_echo "$ac_ct_NMEDIT" >&6; }
12341 else
12342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12343 $as_echo "no" >&6; }
12344 fi
12345
12346 if test "x$ac_ct_NMEDIT" = x; then
12347 NMEDIT=":"
12348 else
12349 case $cross_compiling:$ac_tool_warned in
12350 yes:)
12351 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12352 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12353 ac_tool_warned=yes ;;
12354 esac
12355 NMEDIT=$ac_ct_NMEDIT
12356 fi
12357 else
12358 NMEDIT="$ac_cv_prog_NMEDIT"
12359 fi
12360
12361 if test -n "$ac_tool_prefix"; then
12362 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
12363 set dummy ${ac_tool_prefix}lipo; ac_word=$2
12364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12365 $as_echo_n "checking for $ac_word... " >&6; }
12366 if ${ac_cv_prog_LIPO+:} false; then :
12367 $as_echo_n "(cached) " >&6
12368 else
12369 if test -n "$LIPO"; then
12370 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
12371 else
12372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12373 for as_dir in $PATH
12374 do
12375 IFS=$as_save_IFS
12376 test -z "$as_dir" && as_dir=.
12377 for ac_exec_ext in '' $ac_executable_extensions; do
12378 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12379 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
12380 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12381 break 2
12382 fi
12383 done
12384 done
12385 IFS=$as_save_IFS
12386
12387 fi
12388 fi
12389 LIPO=$ac_cv_prog_LIPO
12390 if test -n "$LIPO"; then
12391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
12392 $as_echo "$LIPO" >&6; }
12393 else
12394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12395 $as_echo "no" >&6; }
12396 fi
12397
12398
12399 fi
12400 if test -z "$ac_cv_prog_LIPO"; then
12401 ac_ct_LIPO=$LIPO
12402 # Extract the first word of "lipo", so it can be a program name with args.
12403 set dummy lipo; ac_word=$2
12404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12405 $as_echo_n "checking for $ac_word... " >&6; }
12406 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
12407 $as_echo_n "(cached) " >&6
12408 else
12409 if test -n "$ac_ct_LIPO"; then
12410 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
12411 else
12412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12413 for as_dir in $PATH
12414 do
12415 IFS=$as_save_IFS
12416 test -z "$as_dir" && as_dir=.
12417 for ac_exec_ext in '' $ac_executable_extensions; do
12418 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12419 ac_cv_prog_ac_ct_LIPO="lipo"
12420 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12421 break 2
12422 fi
12423 done
12424 done
12425 IFS=$as_save_IFS
12426
12427 fi
12428 fi
12429 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
12430 if test -n "$ac_ct_LIPO"; then
12431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
12432 $as_echo "$ac_ct_LIPO" >&6; }
12433 else
12434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12435 $as_echo "no" >&6; }
12436 fi
12437
12438 if test "x$ac_ct_LIPO" = x; then
12439 LIPO=":"
12440 else
12441 case $cross_compiling:$ac_tool_warned in
12442 yes:)
12443 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12444 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12445 ac_tool_warned=yes ;;
12446 esac
12447 LIPO=$ac_ct_LIPO
12448 fi
12449 else
12450 LIPO="$ac_cv_prog_LIPO"
12451 fi
12452
12453 if test -n "$ac_tool_prefix"; then
12454 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
12455 set dummy ${ac_tool_prefix}otool; ac_word=$2
12456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12457 $as_echo_n "checking for $ac_word... " >&6; }
12458 if ${ac_cv_prog_OTOOL+:} false; then :
12459 $as_echo_n "(cached) " >&6
12460 else
12461 if test -n "$OTOOL"; then
12462 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12463 else
12464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12465 for as_dir in $PATH
12466 do
12467 IFS=$as_save_IFS
12468 test -z "$as_dir" && as_dir=.
12469 for ac_exec_ext in '' $ac_executable_extensions; do
12470 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12471 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
12472 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12473 break 2
12474 fi
12475 done
12476 done
12477 IFS=$as_save_IFS
12478
12479 fi
12480 fi
12481 OTOOL=$ac_cv_prog_OTOOL
12482 if test -n "$OTOOL"; then
12483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
12484 $as_echo "$OTOOL" >&6; }
12485 else
12486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12487 $as_echo "no" >&6; }
12488 fi
12489
12490
12491 fi
12492 if test -z "$ac_cv_prog_OTOOL"; then
12493 ac_ct_OTOOL=$OTOOL
12494 # Extract the first word of "otool", so it can be a program name with args.
12495 set dummy otool; ac_word=$2
12496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12497 $as_echo_n "checking for $ac_word... " >&6; }
12498 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
12499 $as_echo_n "(cached) " >&6
12500 else
12501 if test -n "$ac_ct_OTOOL"; then
12502 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
12503 else
12504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12505 for as_dir in $PATH
12506 do
12507 IFS=$as_save_IFS
12508 test -z "$as_dir" && as_dir=.
12509 for ac_exec_ext in '' $ac_executable_extensions; do
12510 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12511 ac_cv_prog_ac_ct_OTOOL="otool"
12512 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12513 break 2
12514 fi
12515 done
12516 done
12517 IFS=$as_save_IFS
12518
12519 fi
12520 fi
12521 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
12522 if test -n "$ac_ct_OTOOL"; then
12523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
12524 $as_echo "$ac_ct_OTOOL" >&6; }
12525 else
12526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12527 $as_echo "no" >&6; }
12528 fi
12529
12530 if test "x$ac_ct_OTOOL" = x; then
12531 OTOOL=":"
12532 else
12533 case $cross_compiling:$ac_tool_warned in
12534 yes:)
12535 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12536 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12537 ac_tool_warned=yes ;;
12538 esac
12539 OTOOL=$ac_ct_OTOOL
12540 fi
12541 else
12542 OTOOL="$ac_cv_prog_OTOOL"
12543 fi
12544
12545 if test -n "$ac_tool_prefix"; then
12546 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
12547 set dummy ${ac_tool_prefix}otool64; ac_word=$2
12548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12549 $as_echo_n "checking for $ac_word... " >&6; }
12550 if ${ac_cv_prog_OTOOL64+:} false; then :
12551 $as_echo_n "(cached) " >&6
12552 else
12553 if test -n "$OTOOL64"; then
12554 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
12555 else
12556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12557 for as_dir in $PATH
12558 do
12559 IFS=$as_save_IFS
12560 test -z "$as_dir" && as_dir=.
12561 for ac_exec_ext in '' $ac_executable_extensions; do
12562 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12563 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
12564 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12565 break 2
12566 fi
12567 done
12568 done
12569 IFS=$as_save_IFS
12570
12571 fi
12572 fi
12573 OTOOL64=$ac_cv_prog_OTOOL64
12574 if test -n "$OTOOL64"; then
12575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
12576 $as_echo "$OTOOL64" >&6; }
12577 else
12578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12579 $as_echo "no" >&6; }
12580 fi
12581
12582
12583 fi
12584 if test -z "$ac_cv_prog_OTOOL64"; then
12585 ac_ct_OTOOL64=$OTOOL64
12586 # Extract the first word of "otool64", so it can be a program name with args.
12587 set dummy otool64; ac_word=$2
12588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12589 $as_echo_n "checking for $ac_word... " >&6; }
12590 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
12591 $as_echo_n "(cached) " >&6
12592 else
12593 if test -n "$ac_ct_OTOOL64"; then
12594 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
12595 else
12596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12597 for as_dir in $PATH
12598 do
12599 IFS=$as_save_IFS
12600 test -z "$as_dir" && as_dir=.
12601 for ac_exec_ext in '' $ac_executable_extensions; do
12602 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12603 ac_cv_prog_ac_ct_OTOOL64="otool64"
12604 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12605 break 2
12606 fi
12607 done
12608 done
12609 IFS=$as_save_IFS
12610
12611 fi
12612 fi
12613 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
12614 if test -n "$ac_ct_OTOOL64"; then
12615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
12616 $as_echo "$ac_ct_OTOOL64" >&6; }
12617 else
12618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12619 $as_echo "no" >&6; }
12620 fi
12621
12622 if test "x$ac_ct_OTOOL64" = x; then
12623 OTOOL64=":"
12624 else
12625 case $cross_compiling:$ac_tool_warned in
12626 yes:)
12627 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12628 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12629 ac_tool_warned=yes ;;
12630 esac
12631 OTOOL64=$ac_ct_OTOOL64
12632 fi
12633 else
12634 OTOOL64="$ac_cv_prog_OTOOL64"
12635 fi
12636
12637
12638
12639
12640
12641
12642
12643
12644
12645
12646
12647
12648
12649
12650
12651
12652
12653
12654
12655
12656
12657
12658
12659
12660
12661
12662
12663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
12664 $as_echo_n "checking for -single_module linker flag... " >&6; }
12665 if ${lt_cv_apple_cc_single_mod+:} false; then :
12666 $as_echo_n "(cached) " >&6
12667 else
12668 lt_cv_apple_cc_single_mod=no
12669 if test -z "${LT_MULTI_MODULE}"; then
12670 # By default we will add the -single_module flag. You can override
12671 # by either setting the environment variable LT_MULTI_MODULE
12672 # non-empty at configure time, or by adding -multi_module to the
12673 # link flags.
12674 rm -rf libconftest.dylib*
12675 echo "int foo(void){return 1;}" > conftest.c
12676 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
12677 -dynamiclib -Wl,-single_module conftest.c" >&5
12678 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
12679 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
12680 _lt_result=$?
12681 # If there is a non-empty error log, and "single_module"
12682 # appears in it, assume the flag caused a linker warning
12683 if test -s conftest.err && $GREP single_module conftest.err; then
12684 cat conftest.err >&5
12685 # Otherwise, if the output was created with a 0 exit code from
12686 # the compiler, it worked.
12687 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
12688 lt_cv_apple_cc_single_mod=yes
12689 else
12690 cat conftest.err >&5
12691 fi
12692 rm -rf libconftest.dylib*
12693 rm -f conftest.*
12694 fi
12695 fi
12696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
12697 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
12698
12699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
12700 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
12701 if ${lt_cv_ld_exported_symbols_list+:} false; then :
12702 $as_echo_n "(cached) " >&6
12703 else
12704 lt_cv_ld_exported_symbols_list=no
12705 save_LDFLAGS=$LDFLAGS
12706 echo "_main" > conftest.sym
12707 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
12708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12709 /* end confdefs.h. */
12710
12711 int
12712 main ()
12713 {
12714
12715 ;
12716 return 0;
12717 }
12718 _ACEOF
12719 if ac_fn_c_try_link "$LINENO"; then :
12720 lt_cv_ld_exported_symbols_list=yes
12721 else
12722 lt_cv_ld_exported_symbols_list=no
12723 fi
12724 rm -f core conftest.err conftest.$ac_objext \
12725 conftest$ac_exeext conftest.$ac_ext
12726 LDFLAGS="$save_LDFLAGS"
12727
12728 fi
12729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
12730 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
12731
12732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
12733 $as_echo_n "checking for -force_load linker flag... " >&6; }
12734 if ${lt_cv_ld_force_load+:} false; then :
12735 $as_echo_n "(cached) " >&6
12736 else
12737 lt_cv_ld_force_load=no
12738 cat > conftest.c << _LT_EOF
12739 int forced_loaded() { return 2;}
12740 _LT_EOF
12741 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
12742 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
12743 echo "$AR cru libconftest.a conftest.o" >&5
12744 $AR cru libconftest.a conftest.o 2>&5
12745 echo "$RANLIB libconftest.a" >&5
12746 $RANLIB libconftest.a 2>&5
12747 cat > conftest.c << _LT_EOF
12748 int main() { return 0;}
12749 _LT_EOF
12750 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
12751 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
12752 _lt_result=$?
12753 if test -s conftest.err && $GREP force_load conftest.err; then
12754 cat conftest.err >&5
12755 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
12756 lt_cv_ld_force_load=yes
12757 else
12758 cat conftest.err >&5
12759 fi
12760 rm -f conftest.err libconftest.a conftest conftest.c
12761 rm -rf conftest.dSYM
12762
12763 fi
12764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
12765 $as_echo "$lt_cv_ld_force_load" >&6; }
12766 case $host_os in
12767 rhapsody* | darwin1.[012])
12768 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
12769 darwin1.*)
12770 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
12771 darwin*) # darwin 5.x on
12772 # if running on 10.5 or later, the deployment target defaults
12773 # to the OS version, if on x86, and 10.4, the deployment
12774 # target defaults to 10.4. Don't you love it?
12775 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
12776 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
12777 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
12778 10.[012]*)
12779 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
12780 10.*)
12781 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
12782 esac
12783 ;;
12784 esac
12785 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
12786 _lt_dar_single_mod='$single_module'
12787 fi
12788 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
12789 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
12790 else
12791 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
12792 fi
12793 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
12794 _lt_dsymutil='~$DSYMUTIL $lib || :'
12795 else
12796 _lt_dsymutil=
12797 fi
12798 ;;
12799 esac
12800
12801 for ac_header in dlfcn.h
12802 do :
12803 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
12804 "
12805 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
12806 cat >>confdefs.h <<_ACEOF
12807 #define HAVE_DLFCN_H 1
12808 _ACEOF
12809
12810 fi
12811
12812 done
12813
12814
12815
12816
12817
12818 # Set options
12819
12820
12821
12822 enable_dlopen=no
12823
12824
12825 enable_win32_dll=no
12826
12827
12828 # Check whether --enable-shared was given.
12829 if test "${enable_shared+set}" = set; then :
12830 enableval=$enable_shared; p=${PACKAGE-default}
12831 case $enableval in
12832 yes) enable_shared=yes ;;
12833 no) enable_shared=no ;;
12834 *)
12835 enable_shared=no
12836 # Look at the argument we got. We use all the common list separators.
12837 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12838 for pkg in $enableval; do
12839 IFS="$lt_save_ifs"
12840 if test "X$pkg" = "X$p"; then
12841 enable_shared=yes
12842 fi
12843 done
12844 IFS="$lt_save_ifs"
12845 ;;
12846 esac
12847 else
12848 enable_shared=yes
12849 fi
12850
12851
12852
12853
12854
12855
12856
12857
12858
12859
12860
12861 # Check whether --with-pic was given.
12862 if test "${with_pic+set}" = set; then :
12863 withval=$with_pic; lt_p=${PACKAGE-default}
12864 case $withval in
12865 yes|no) pic_mode=$withval ;;
12866 *)
12867 pic_mode=default
12868 # Look at the argument we got. We use all the common list separators.
12869 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12870 for lt_pkg in $withval; do
12871 IFS="$lt_save_ifs"
12872 if test "X$lt_pkg" = "X$lt_p"; then
12873 pic_mode=yes
12874 fi
12875 done
12876 IFS="$lt_save_ifs"
12877 ;;
12878 esac
12879 else
12880 pic_mode=default
12881 fi
12882
12883
12884 test -z "$pic_mode" && pic_mode=default
12885
12886
12887
12888
12889
12890
12891
12892 # Check whether --enable-fast-install was given.
12893 if test "${enable_fast_install+set}" = set; then :
12894 enableval=$enable_fast_install; p=${PACKAGE-default}
12895 case $enableval in
12896 yes) enable_fast_install=yes ;;
12897 no) enable_fast_install=no ;;
12898 *)
12899 enable_fast_install=no
12900 # Look at the argument we got. We use all the common list separators.
12901 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12902 for pkg in $enableval; do
12903 IFS="$lt_save_ifs"
12904 if test "X$pkg" = "X$p"; then
12905 enable_fast_install=yes
12906 fi
12907 done
12908 IFS="$lt_save_ifs"
12909 ;;
12910 esac
12911 else
12912 enable_fast_install=yes
12913 fi
12914
12915
12916
12917
12918
12919
12920
12921
12922
12923
12924
12925 # This can be used to rebuild libtool when needed
12926 LIBTOOL_DEPS="$ltmain"
12927
12928 # Always use our own libtool.
12929 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
12930
12931
12932
12933
12934
12935
12936
12937
12938
12939
12940
12941
12942
12943
12944
12945
12946
12947
12948
12949
12950
12951
12952
12953
12954
12955
12956
12957
12958
12959
12960 test -z "$LN_S" && LN_S="ln -s"
12961
12962
12963
12964
12965
12966
12967
12968
12969
12970
12971
12972
12973
12974
12975 if test -n "${ZSH_VERSION+set}" ; then
12976 setopt NO_GLOB_SUBST
12977 fi
12978
12979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
12980 $as_echo_n "checking for objdir... " >&6; }
12981 if ${lt_cv_objdir+:} false; then :
12982 $as_echo_n "(cached) " >&6
12983 else
12984 rm -f .libs 2>/dev/null
12985 mkdir .libs 2>/dev/null
12986 if test -d .libs; then
12987 lt_cv_objdir=.libs
12988 else
12989 # MS-DOS does not allow filenames that begin with a dot.
12990 lt_cv_objdir=_libs
12991 fi
12992 rmdir .libs 2>/dev/null
12993 fi
12994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
12995 $as_echo "$lt_cv_objdir" >&6; }
12996 objdir=$lt_cv_objdir
12997
12998
12999
13000
13001
13002 cat >>confdefs.h <<_ACEOF
13003 #define LT_OBJDIR "$lt_cv_objdir/"
13004 _ACEOF
13005
13006
13007
13008
13009 case $host_os in
13010 aix3*)
13011 # AIX sometimes has problems with the GCC collect2 program. For some
13012 # reason, if we set the COLLECT_NAMES environment variable, the problems
13013 # vanish in a puff of smoke.
13014 if test "X${COLLECT_NAMES+set}" != Xset; then
13015 COLLECT_NAMES=
13016 export COLLECT_NAMES
13017 fi
13018 ;;
13019 esac
13020
13021 # Global variables:
13022 ofile=libtool
13023 can_build_shared=yes
13024
13025 # All known linkers require a `.a' archive for static linking (except MSVC,
13026 # which needs '.lib').
13027 libext=a
13028
13029 with_gnu_ld="$lt_cv_prog_gnu_ld"
13030
13031 old_CC="$CC"
13032 old_CFLAGS="$CFLAGS"
13033
13034 # Set sane defaults for various variables
13035 test -z "$CC" && CC=cc
13036 test -z "$LTCC" && LTCC=$CC
13037 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
13038 test -z "$LD" && LD=ld
13039 test -z "$ac_objext" && ac_objext=o
13040
13041 for cc_temp in $compiler""; do
13042 case $cc_temp in
13043 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13044 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13045 \-*) ;;
13046 *) break;;
13047 esac
13048 done
13049 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13050
13051
13052 # Only perform the check for file, if the check method requires it
13053 test -z "$MAGIC_CMD" && MAGIC_CMD=file
13054 case $deplibs_check_method in
13055 file_magic*)
13056 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
13057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
13058 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
13059 if ${lt_cv_path_MAGIC_CMD+:} false; then :
13060 $as_echo_n "(cached) " >&6
13061 else
13062 case $MAGIC_CMD in
13063 [\\/*] | ?:[\\/]*)
13064 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13065 ;;
13066 *)
13067 lt_save_MAGIC_CMD="$MAGIC_CMD"
13068 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13069 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13070 for ac_dir in $ac_dummy; do
13071 IFS="$lt_save_ifs"
13072 test -z "$ac_dir" && ac_dir=.
13073 if test -f $ac_dir/${ac_tool_prefix}file; then
13074 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
13075 if test -n "$file_magic_test_file"; then
13076 case $deplibs_check_method in
13077 "file_magic "*)
13078 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
13079 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13080 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13081 $EGREP "$file_magic_regex" > /dev/null; then
13082 :
13083 else
13084 cat <<_LT_EOF 1>&2
13085
13086 *** Warning: the command libtool uses to detect shared libraries,
13087 *** $file_magic_cmd, produces output that libtool cannot recognize.
13088 *** The result is that libtool may fail to recognize shared libraries
13089 *** as such. This will affect the creation of libtool libraries that
13090 *** depend on shared libraries, but programs linked with such libtool
13091 *** libraries will work regardless of this problem. Nevertheless, you
13092 *** may want to report the problem to your system manager and/or to
13093 *** bug-libtool@gnu.org
13094
13095 _LT_EOF
13096 fi ;;
13097 esac
13098 fi
13099 break
13100 fi
13101 done
13102 IFS="$lt_save_ifs"
13103 MAGIC_CMD="$lt_save_MAGIC_CMD"
13104 ;;
13105 esac
13106 fi
13107
13108 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13109 if test -n "$MAGIC_CMD"; then
13110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
13111 $as_echo "$MAGIC_CMD" >&6; }
13112 else
13113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13114 $as_echo "no" >&6; }
13115 fi
13116
13117
13118
13119
13120
13121 if test -z "$lt_cv_path_MAGIC_CMD"; then
13122 if test -n "$ac_tool_prefix"; then
13123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
13124 $as_echo_n "checking for file... " >&6; }
13125 if ${lt_cv_path_MAGIC_CMD+:} false; then :
13126 $as_echo_n "(cached) " >&6
13127 else
13128 case $MAGIC_CMD in
13129 [\\/*] | ?:[\\/]*)
13130 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13131 ;;
13132 *)
13133 lt_save_MAGIC_CMD="$MAGIC_CMD"
13134 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13135 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13136 for ac_dir in $ac_dummy; do
13137 IFS="$lt_save_ifs"
13138 test -z "$ac_dir" && ac_dir=.
13139 if test -f $ac_dir/file; then
13140 lt_cv_path_MAGIC_CMD="$ac_dir/file"
13141 if test -n "$file_magic_test_file"; then
13142 case $deplibs_check_method in
13143 "file_magic "*)
13144 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
13145 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13146 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13147 $EGREP "$file_magic_regex" > /dev/null; then
13148 :
13149 else
13150 cat <<_LT_EOF 1>&2
13151
13152 *** Warning: the command libtool uses to detect shared libraries,
13153 *** $file_magic_cmd, produces output that libtool cannot recognize.
13154 *** The result is that libtool may fail to recognize shared libraries
13155 *** as such. This will affect the creation of libtool libraries that
13156 *** depend on shared libraries, but programs linked with such libtool
13157 *** libraries will work regardless of this problem. Nevertheless, you
13158 *** may want to report the problem to your system manager and/or to
13159 *** bug-libtool@gnu.org
13160
13161 _LT_EOF
13162 fi ;;
13163 esac
13164 fi
13165 break
13166 fi
13167 done
13168 IFS="$lt_save_ifs"
13169 MAGIC_CMD="$lt_save_MAGIC_CMD"
13170 ;;
13171 esac
13172 fi
13173
13174 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13175 if test -n "$MAGIC_CMD"; then
13176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
13177 $as_echo "$MAGIC_CMD" >&6; }
13178 else
13179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13180 $as_echo "no" >&6; }
13181 fi
13182
13183
13184 else
13185 MAGIC_CMD=:
13186 fi
13187 fi
13188
13189 fi
13190 ;;
13191 esac
13192
13193 # Use C for the default configuration in the libtool script
13194
13195 lt_save_CC="$CC"
13196 ac_ext=c
13197 ac_cpp='$CPP $CPPFLAGS'
13198 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13199 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13200 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13201
13202
13203 # Source file extension for C test sources.
13204 ac_ext=c
13205
13206 # Object file extension for compiled C test sources.
13207 objext=o
13208 objext=$objext
13209
13210 # Code to be used in simple compile tests
13211 lt_simple_compile_test_code="int some_variable = 0;"
13212
13213 # Code to be used in simple link tests
13214 lt_simple_link_test_code='int main(){return(0);}'
13215
13216
13217
13218
13219
13220
13221
13222 # If no C compiler was specified, use CC.
13223 LTCC=${LTCC-"$CC"}
13224
13225 # If no C compiler flags were specified, use CFLAGS.
13226 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13227
13228 # Allow CC to be a program name with arguments.
13229 compiler=$CC
13230
13231 # Save the default compiler, since it gets overwritten when the other
13232 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
13233 compiler_DEFAULT=$CC
13234
13235 # save warnings/boilerplate of simple test code
13236 ac_outfile=conftest.$ac_objext
13237 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13238 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13239 _lt_compiler_boilerplate=`cat conftest.err`
13240 $RM conftest*
13241
13242 ac_outfile=conftest.$ac_objext
13243 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13244 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13245 _lt_linker_boilerplate=`cat conftest.err`
13246 $RM -r conftest*
13247
13248
13249 if test -n "$compiler"; then
13250
13251 lt_prog_compiler_no_builtin_flag=
13252
13253 if test "$GCC" = yes; then
13254 case $cc_basename in
13255 nvcc*)
13256 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
13257 *)
13258 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
13259 esac
13260
13261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
13262 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
13263 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
13264 $as_echo_n "(cached) " >&6
13265 else
13266 lt_cv_prog_compiler_rtti_exceptions=no
13267 ac_outfile=conftest.$ac_objext
13268 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13269 lt_compiler_flag="-fno-rtti -fno-exceptions"
13270 # Insert the option either (1) after the last *FLAGS variable, or
13271 # (2) before a word containing "conftest.", or (3) at the end.
13272 # Note that $ac_compile itself does not contain backslashes and begins
13273 # with a dollar sign (not a hyphen), so the echo should work correctly.
13274 # The option is referenced via a variable to avoid confusing sed.
13275 lt_compile=`echo "$ac_compile" | $SED \
13276 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13277 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13278 -e 's:$: $lt_compiler_flag:'`
13279 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13280 (eval "$lt_compile" 2>conftest.err)
13281 ac_status=$?
13282 cat conftest.err >&5
13283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13284 if (exit $ac_status) && test -s "$ac_outfile"; then
13285 # The compiler can only warn and ignore the option if not recognized
13286 # So say no if there are warnings other than the usual output.
13287 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13288 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13289 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13290 lt_cv_prog_compiler_rtti_exceptions=yes
13291 fi
13292 fi
13293 $RM conftest*
13294
13295 fi
13296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
13297 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
13298
13299 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
13300 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
13301 else
13302 :
13303 fi
13304
13305 fi
13306
13307
13308
13309
13310
13311
13312 lt_prog_compiler_wl=
13313 lt_prog_compiler_pic=
13314 lt_prog_compiler_static=
13315
13316
13317 if test "$GCC" = yes; then
13318 lt_prog_compiler_wl='-Wl,'
13319 lt_prog_compiler_static='-static'
13320
13321 case $host_os in
13322 aix*)
13323 # All AIX code is PIC.
13324 if test "$host_cpu" = ia64; then
13325 # AIX 5 now supports IA64 processor
13326 lt_prog_compiler_static='-Bstatic'
13327 fi
13328 ;;
13329
13330 amigaos*)
13331 case $host_cpu in
13332 powerpc)
13333 # see comment about AmigaOS4 .so support
13334 lt_prog_compiler_pic='-fPIC'
13335 ;;
13336 m68k)
13337 # FIXME: we need at least 68020 code to build shared libraries, but
13338 # adding the `-m68020' flag to GCC prevents building anything better,
13339 # like `-m68040'.
13340 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
13341 ;;
13342 esac
13343 ;;
13344
13345 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13346 # PIC is the default for these OSes.
13347 ;;
13348
13349 mingw* | cygwin* | pw32* | os2* | cegcc*)
13350 # This hack is so that the source file can tell whether it is being
13351 # built for inclusion in a dll (and should export symbols for example).
13352 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13353 # (--disable-auto-import) libraries
13354 lt_prog_compiler_pic='-DDLL_EXPORT'
13355 ;;
13356
13357 darwin* | rhapsody*)
13358 # PIC is the default on this platform
13359 # Common symbols not allowed in MH_DYLIB files
13360 lt_prog_compiler_pic='-fno-common'
13361 ;;
13362
13363 haiku*)
13364 # PIC is the default for Haiku.
13365 # The "-static" flag exists, but is broken.
13366 lt_prog_compiler_static=
13367 ;;
13368
13369 hpux*)
13370 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13371 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13372 # sets the default TLS model and affects inlining.
13373 case $host_cpu in
13374 hppa*64*)
13375 # +Z the default
13376 ;;
13377 *)
13378 lt_prog_compiler_pic='-fPIC'
13379 ;;
13380 esac
13381 ;;
13382
13383 interix[3-9]*)
13384 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13385 # Instead, we relocate shared libraries at runtime.
13386 ;;
13387
13388 msdosdjgpp*)
13389 # Just because we use GCC doesn't mean we suddenly get shared libraries
13390 # on systems that don't support them.
13391 lt_prog_compiler_can_build_shared=no
13392 enable_shared=no
13393 ;;
13394
13395 *nto* | *qnx*)
13396 # QNX uses GNU C++, but need to define -shared option too, otherwise
13397 # it will coredump.
13398 lt_prog_compiler_pic='-fPIC -shared'
13399 ;;
13400
13401 sysv4*MP*)
13402 if test -d /usr/nec; then
13403 lt_prog_compiler_pic=-Kconform_pic
13404 fi
13405 ;;
13406
13407 *)
13408 lt_prog_compiler_pic='-fPIC'
13409 ;;
13410 esac
13411
13412 case $cc_basename in
13413 nvcc*) # Cuda Compiler Driver 2.2
13414 lt_prog_compiler_wl='-Xlinker '
13415 if test -n "$lt_prog_compiler_pic"; then
13416 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
13417 fi
13418 ;;
13419 esac
13420 else
13421 # PORTME Check for flag to pass linker flags through the system compiler.
13422 case $host_os in
13423 aix*)
13424 lt_prog_compiler_wl='-Wl,'
13425 if test "$host_cpu" = ia64; then
13426 # AIX 5 now supports IA64 processor
13427 lt_prog_compiler_static='-Bstatic'
13428 else
13429 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
13430 fi
13431 ;;
13432
13433 mingw* | cygwin* | pw32* | os2* | cegcc*)
13434 # This hack is so that the source file can tell whether it is being
13435 # built for inclusion in a dll (and should export symbols for example).
13436 lt_prog_compiler_pic='-DDLL_EXPORT'
13437 ;;
13438
13439 hpux9* | hpux10* | hpux11*)
13440 lt_prog_compiler_wl='-Wl,'
13441 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13442 # not for PA HP-UX.
13443 case $host_cpu in
13444 hppa*64*|ia64*)
13445 # +Z the default
13446 ;;
13447 *)
13448 lt_prog_compiler_pic='+Z'
13449 ;;
13450 esac
13451 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13452 lt_prog_compiler_static='${wl}-a ${wl}archive'
13453 ;;
13454
13455 irix5* | irix6* | nonstopux*)
13456 lt_prog_compiler_wl='-Wl,'
13457 # PIC (with -KPIC) is the default.
13458 lt_prog_compiler_static='-non_shared'
13459 ;;
13460
13461 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13462 case $cc_basename in
13463 # old Intel for x86_64 which still supported -KPIC.
13464 ecc*)
13465 lt_prog_compiler_wl='-Wl,'
13466 lt_prog_compiler_pic='-KPIC'
13467 lt_prog_compiler_static='-static'
13468 ;;
13469 # icc used to be incompatible with GCC.
13470 # ICC 10 doesn't accept -KPIC any more.
13471 icc* | ifort*)
13472 lt_prog_compiler_wl='-Wl,'
13473 lt_prog_compiler_pic='-fPIC'
13474 lt_prog_compiler_static='-static'
13475 ;;
13476 # Lahey Fortran 8.1.
13477 lf95*)
13478 lt_prog_compiler_wl='-Wl,'
13479 lt_prog_compiler_pic='--shared'
13480 lt_prog_compiler_static='--static'
13481 ;;
13482 nagfor*)
13483 # NAG Fortran compiler
13484 lt_prog_compiler_wl='-Wl,-Wl,,'
13485 lt_prog_compiler_pic='-PIC'
13486 lt_prog_compiler_static='-Bstatic'
13487 ;;
13488 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
13489 # Portland Group compilers (*not* the Pentium gcc compiler,
13490 # which looks to be a dead project)
13491 lt_prog_compiler_wl='-Wl,'
13492 lt_prog_compiler_pic='-fpic'
13493 lt_prog_compiler_static='-Bstatic'
13494 ;;
13495 ccc*)
13496 lt_prog_compiler_wl='-Wl,'
13497 # All Alpha code is PIC.
13498 lt_prog_compiler_static='-non_shared'
13499 ;;
13500 xl* | bgxl* | bgf* | mpixl*)
13501 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
13502 lt_prog_compiler_wl='-Wl,'
13503 lt_prog_compiler_pic='-qpic'
13504 lt_prog_compiler_static='-qstaticlink'
13505 ;;
13506 *)
13507 case `$CC -V 2>&1 | sed 5q` in
13508 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
13509 # Sun Fortran 8.3 passes all unrecognized flags to the linker
13510 lt_prog_compiler_pic='-KPIC'
13511 lt_prog_compiler_static='-Bstatic'
13512 lt_prog_compiler_wl=''
13513 ;;
13514 *Sun\ F* | *Sun*Fortran*)
13515 lt_prog_compiler_pic='-KPIC'
13516 lt_prog_compiler_static='-Bstatic'
13517 lt_prog_compiler_wl='-Qoption ld '
13518 ;;
13519 *Sun\ C*)
13520 # Sun C 5.9
13521 lt_prog_compiler_pic='-KPIC'
13522 lt_prog_compiler_static='-Bstatic'
13523 lt_prog_compiler_wl='-Wl,'
13524 ;;
13525 *Intel*\ [CF]*Compiler*)
13526 lt_prog_compiler_wl='-Wl,'
13527 lt_prog_compiler_pic='-fPIC'
13528 lt_prog_compiler_static='-static'
13529 ;;
13530 *Portland\ Group*)
13531 lt_prog_compiler_wl='-Wl,'
13532 lt_prog_compiler_pic='-fpic'
13533 lt_prog_compiler_static='-Bstatic'
13534 ;;
13535 esac
13536 ;;
13537 esac
13538 ;;
13539
13540 newsos6)
13541 lt_prog_compiler_pic='-KPIC'
13542 lt_prog_compiler_static='-Bstatic'
13543 ;;
13544
13545 *nto* | *qnx*)
13546 # QNX uses GNU C++, but need to define -shared option too, otherwise
13547 # it will coredump.
13548 lt_prog_compiler_pic='-fPIC -shared'
13549 ;;
13550
13551 osf3* | osf4* | osf5*)
13552 lt_prog_compiler_wl='-Wl,'
13553 # All OSF/1 code is PIC.
13554 lt_prog_compiler_static='-non_shared'
13555 ;;
13556
13557 rdos*)
13558 lt_prog_compiler_static='-non_shared'
13559 ;;
13560
13561 solaris*)
13562 lt_prog_compiler_pic='-KPIC'
13563 lt_prog_compiler_static='-Bstatic'
13564 case $cc_basename in
13565 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
13566 lt_prog_compiler_wl='-Qoption ld ';;
13567 *)
13568 lt_prog_compiler_wl='-Wl,';;
13569 esac
13570 ;;
13571
13572 sunos4*)
13573 lt_prog_compiler_wl='-Qoption ld '
13574 lt_prog_compiler_pic='-PIC'
13575 lt_prog_compiler_static='-Bstatic'
13576 ;;
13577
13578 sysv4 | sysv4.2uw2* | sysv4.3*)
13579 lt_prog_compiler_wl='-Wl,'
13580 lt_prog_compiler_pic='-KPIC'
13581 lt_prog_compiler_static='-Bstatic'
13582 ;;
13583
13584 sysv4*MP*)
13585 if test -d /usr/nec ;then
13586 lt_prog_compiler_pic='-Kconform_pic'
13587 lt_prog_compiler_static='-Bstatic'
13588 fi
13589 ;;
13590
13591 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13592 lt_prog_compiler_wl='-Wl,'
13593 lt_prog_compiler_pic='-KPIC'
13594 lt_prog_compiler_static='-Bstatic'
13595 ;;
13596
13597 unicos*)
13598 lt_prog_compiler_wl='-Wl,'
13599 lt_prog_compiler_can_build_shared=no
13600 ;;
13601
13602 uts4*)
13603 lt_prog_compiler_pic='-pic'
13604 lt_prog_compiler_static='-Bstatic'
13605 ;;
13606
13607 *)
13608 lt_prog_compiler_can_build_shared=no
13609 ;;
13610 esac
13611 fi
13612
13613 case $host_os in
13614 # For platforms which do not support PIC, -DPIC is meaningless:
13615 *djgpp*)
13616 lt_prog_compiler_pic=
13617 ;;
13618 *)
13619 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
13620 ;;
13621 esac
13622
13623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13624 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13625 if ${lt_cv_prog_compiler_pic+:} false; then :
13626 $as_echo_n "(cached) " >&6
13627 else
13628 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
13629 fi
13630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
13631 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
13632 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
13633
13634 #
13635 # Check to make sure the PIC flag actually works.
13636 #
13637 if test -n "$lt_prog_compiler_pic"; then
13638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
13639 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
13640 if ${lt_cv_prog_compiler_pic_works+:} false; then :
13641 $as_echo_n "(cached) " >&6
13642 else
13643 lt_cv_prog_compiler_pic_works=no
13644 ac_outfile=conftest.$ac_objext
13645 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13646 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
13647 # Insert the option either (1) after the last *FLAGS variable, or
13648 # (2) before a word containing "conftest.", or (3) at the end.
13649 # Note that $ac_compile itself does not contain backslashes and begins
13650 # with a dollar sign (not a hyphen), so the echo should work correctly.
13651 # The option is referenced via a variable to avoid confusing sed.
13652 lt_compile=`echo "$ac_compile" | $SED \
13653 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13654 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13655 -e 's:$: $lt_compiler_flag:'`
13656 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13657 (eval "$lt_compile" 2>conftest.err)
13658 ac_status=$?
13659 cat conftest.err >&5
13660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13661 if (exit $ac_status) && test -s "$ac_outfile"; then
13662 # The compiler can only warn and ignore the option if not recognized
13663 # So say no if there are warnings other than the usual output.
13664 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13665 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13666 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13667 lt_cv_prog_compiler_pic_works=yes
13668 fi
13669 fi
13670 $RM conftest*
13671
13672 fi
13673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
13674 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
13675
13676 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
13677 case $lt_prog_compiler_pic in
13678 "" | " "*) ;;
13679 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
13680 esac
13681 else
13682 lt_prog_compiler_pic=
13683 lt_prog_compiler_can_build_shared=no
13684 fi
13685
13686 fi
13687
13688
13689
13690
13691
13692
13693
13694
13695
13696
13697
13698 #
13699 # Check to make sure the static flag actually works.
13700 #
13701 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
13702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13703 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13704 if ${lt_cv_prog_compiler_static_works+:} false; then :
13705 $as_echo_n "(cached) " >&6
13706 else
13707 lt_cv_prog_compiler_static_works=no
13708 save_LDFLAGS="$LDFLAGS"
13709 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13710 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13711 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13712 # The linker can only warn and ignore the option if not recognized
13713 # So say no if there are warnings
13714 if test -s conftest.err; then
13715 # Append any errors to the config.log.
13716 cat conftest.err 1>&5
13717 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13718 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13719 if diff conftest.exp conftest.er2 >/dev/null; then
13720 lt_cv_prog_compiler_static_works=yes
13721 fi
13722 else
13723 lt_cv_prog_compiler_static_works=yes
13724 fi
13725 fi
13726 $RM -r conftest*
13727 LDFLAGS="$save_LDFLAGS"
13728
13729 fi
13730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
13731 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
13732
13733 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
13734 :
13735 else
13736 lt_prog_compiler_static=
13737 fi
13738
13739
13740
13741
13742
13743
13744
13745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13746 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13747 if ${lt_cv_prog_compiler_c_o+:} false; then :
13748 $as_echo_n "(cached) " >&6
13749 else
13750 lt_cv_prog_compiler_c_o=no
13751 $RM -r conftest 2>/dev/null
13752 mkdir conftest
13753 cd conftest
13754 mkdir out
13755 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13756
13757 lt_compiler_flag="-o out/conftest2.$ac_objext"
13758 # Insert the option either (1) after the last *FLAGS variable, or
13759 # (2) before a word containing "conftest.", or (3) at the end.
13760 # Note that $ac_compile itself does not contain backslashes and begins
13761 # with a dollar sign (not a hyphen), so the echo should work correctly.
13762 lt_compile=`echo "$ac_compile" | $SED \
13763 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13764 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13765 -e 's:$: $lt_compiler_flag:'`
13766 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13767 (eval "$lt_compile" 2>out/conftest.err)
13768 ac_status=$?
13769 cat out/conftest.err >&5
13770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13771 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13772 then
13773 # The compiler can only warn and ignore the option if not recognized
13774 # So say no if there are warnings
13775 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13776 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13777 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13778 lt_cv_prog_compiler_c_o=yes
13779 fi
13780 fi
13781 chmod u+w . 2>&5
13782 $RM conftest*
13783 # SGI C++ compiler will create directory out/ii_files/ for
13784 # template instantiation
13785 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13786 $RM out/* && rmdir out
13787 cd ..
13788 $RM -r conftest
13789 $RM conftest*
13790
13791 fi
13792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
13793 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
13794
13795
13796
13797
13798
13799
13800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13801 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13802 if ${lt_cv_prog_compiler_c_o+:} false; then :
13803 $as_echo_n "(cached) " >&6
13804 else
13805 lt_cv_prog_compiler_c_o=no
13806 $RM -r conftest 2>/dev/null
13807 mkdir conftest
13808 cd conftest
13809 mkdir out
13810 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13811
13812 lt_compiler_flag="-o out/conftest2.$ac_objext"
13813 # Insert the option either (1) after the last *FLAGS variable, or
13814 # (2) before a word containing "conftest.", or (3) at the end.
13815 # Note that $ac_compile itself does not contain backslashes and begins
13816 # with a dollar sign (not a hyphen), so the echo should work correctly.
13817 lt_compile=`echo "$ac_compile" | $SED \
13818 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13819 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13820 -e 's:$: $lt_compiler_flag:'`
13821 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13822 (eval "$lt_compile" 2>out/conftest.err)
13823 ac_status=$?
13824 cat out/conftest.err >&5
13825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13826 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13827 then
13828 # The compiler can only warn and ignore the option if not recognized
13829 # So say no if there are warnings
13830 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13831 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13832 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13833 lt_cv_prog_compiler_c_o=yes
13834 fi
13835 fi
13836 chmod u+w . 2>&5
13837 $RM conftest*
13838 # SGI C++ compiler will create directory out/ii_files/ for
13839 # template instantiation
13840 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13841 $RM out/* && rmdir out
13842 cd ..
13843 $RM -r conftest
13844 $RM conftest*
13845
13846 fi
13847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
13848 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
13849
13850
13851
13852
13853 hard_links="nottested"
13854 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
13855 # do not overwrite the value of need_locks provided by the user
13856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13857 $as_echo_n "checking if we can lock with hard links... " >&6; }
13858 hard_links=yes
13859 $RM conftest*
13860 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13861 touch conftest.a
13862 ln conftest.a conftest.b 2>&5 || hard_links=no
13863 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13865 $as_echo "$hard_links" >&6; }
13866 if test "$hard_links" = no; then
13867 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13868 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13869 need_locks=warn
13870 fi
13871 else
13872 need_locks=no
13873 fi
13874
13875
13876
13877
13878
13879
13880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13881 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13882
13883 runpath_var=
13884 allow_undefined_flag=
13885 always_export_symbols=no
13886 archive_cmds=
13887 archive_expsym_cmds=
13888 compiler_needs_object=no
13889 enable_shared_with_static_runtimes=no
13890 export_dynamic_flag_spec=
13891 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13892 hardcode_automatic=no
13893 hardcode_direct=no
13894 hardcode_direct_absolute=no
13895 hardcode_libdir_flag_spec=
13896 hardcode_libdir_separator=
13897 hardcode_minus_L=no
13898 hardcode_shlibpath_var=unsupported
13899 inherit_rpath=no
13900 link_all_deplibs=unknown
13901 module_cmds=
13902 module_expsym_cmds=
13903 old_archive_from_new_cmds=
13904 old_archive_from_expsyms_cmds=
13905 thread_safe_flag_spec=
13906 whole_archive_flag_spec=
13907 # include_expsyms should be a list of space-separated symbols to be *always*
13908 # included in the symbol list
13909 include_expsyms=
13910 # exclude_expsyms can be an extended regexp of symbols to exclude
13911 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13912 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13913 # as well as any symbol that contains `d'.
13914 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13915 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13916 # platforms (ab)use it in PIC code, but their linkers get confused if
13917 # the symbol is explicitly referenced. Since portable code cannot
13918 # rely on this symbol name, it's probably fine to never include it in
13919 # preloaded symbol tables.
13920 # Exclude shared library initialization/finalization symbols.
13921 extract_expsyms_cmds=
13922
13923 case $host_os in
13924 cygwin* | mingw* | pw32* | cegcc*)
13925 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13926 # When not using gcc, we currently assume that we are using
13927 # Microsoft Visual C++.
13928 if test "$GCC" != yes; then
13929 with_gnu_ld=no
13930 fi
13931 ;;
13932 interix*)
13933 # we just hope/assume this is gcc and not c89 (= MSVC++)
13934 with_gnu_ld=yes
13935 ;;
13936 openbsd*)
13937 with_gnu_ld=no
13938 ;;
13939 esac
13940
13941 ld_shlibs=yes
13942
13943 # On some targets, GNU ld is compatible enough with the native linker
13944 # that we're better off using the native interface for both.
13945 lt_use_gnu_ld_interface=no
13946 if test "$with_gnu_ld" = yes; then
13947 case $host_os in
13948 aix*)
13949 # The AIX port of GNU ld has always aspired to compatibility
13950 # with the native linker. However, as the warning in the GNU ld
13951 # block says, versions before 2.19.5* couldn't really create working
13952 # shared libraries, regardless of the interface used.
13953 case `$LD -v 2>&1` in
13954 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
13955 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
13956 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
13957 *)
13958 lt_use_gnu_ld_interface=yes
13959 ;;
13960 esac
13961 ;;
13962 *)
13963 lt_use_gnu_ld_interface=yes
13964 ;;
13965 esac
13966 fi
13967
13968 if test "$lt_use_gnu_ld_interface" = yes; then
13969 # If archive_cmds runs LD, not CC, wlarc should be empty
13970 wlarc='${wl}'
13971
13972 # Set some defaults for GNU ld with shared library support. These
13973 # are reset later if shared libraries are not supported. Putting them
13974 # here allows them to be overridden if necessary.
13975 runpath_var=LD_RUN_PATH
13976 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13977 export_dynamic_flag_spec='${wl}--export-dynamic'
13978 # ancient GNU ld didn't support --whole-archive et. al.
13979 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
13980 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13981 else
13982 whole_archive_flag_spec=
13983 fi
13984 supports_anon_versioning=no
13985 case `$LD -v 2>&1` in
13986 *GNU\ gold*) supports_anon_versioning=yes ;;
13987 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13988 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13989 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13990 *\ 2.11.*) ;; # other 2.11 versions
13991 *) supports_anon_versioning=yes ;;
13992 esac
13993
13994 # See if GNU ld supports shared libraries.
13995 case $host_os in
13996 aix[3-9]*)
13997 # On AIX/PPC, the GNU linker is very broken
13998 if test "$host_cpu" != ia64; then
13999 ld_shlibs=no
14000 cat <<_LT_EOF 1>&2
14001
14002 *** Warning: the GNU linker, at least up to release 2.19, is reported
14003 *** to be unable to reliably create shared libraries on AIX.
14004 *** Therefore, libtool is disabling shared libraries support. If you
14005 *** really care for shared libraries, you may want to install binutils
14006 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
14007 *** You will then need to restart the configuration process.
14008
14009 _LT_EOF
14010 fi
14011 ;;
14012
14013 amigaos*)
14014 case $host_cpu in
14015 powerpc)
14016 # see comment about AmigaOS4 .so support
14017 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14018 archive_expsym_cmds=''
14019 ;;
14020 m68k)
14021 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)'
14022 hardcode_libdir_flag_spec='-L$libdir'
14023 hardcode_minus_L=yes
14024 ;;
14025 esac
14026 ;;
14027
14028 beos*)
14029 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14030 allow_undefined_flag=unsupported
14031 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
14032 # support --undefined. This deserves some investigation. FIXME
14033 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14034 else
14035 ld_shlibs=no
14036 fi
14037 ;;
14038
14039 cygwin* | mingw* | pw32* | cegcc*)
14040 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
14041 # as there is no search path for DLLs.
14042 hardcode_libdir_flag_spec='-L$libdir'
14043 export_dynamic_flag_spec='${wl}--export-all-symbols'
14044 allow_undefined_flag=unsupported
14045 always_export_symbols=no
14046 enable_shared_with_static_runtimes=yes
14047 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'
14048 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
14049
14050 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14051 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14052 # If the export-symbols file already is a .def file (1st line
14053 # is EXPORTS), use it as is; otherwise, prepend...
14054 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14055 cp $export_symbols $output_objdir/$soname.def;
14056 else
14057 echo EXPORTS > $output_objdir/$soname.def;
14058 cat $export_symbols >> $output_objdir/$soname.def;
14059 fi~
14060 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14061 else
14062 ld_shlibs=no
14063 fi
14064 ;;
14065
14066 haiku*)
14067 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14068 link_all_deplibs=yes
14069 ;;
14070
14071 interix[3-9]*)
14072 hardcode_direct=no
14073 hardcode_shlibpath_var=no
14074 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14075 export_dynamic_flag_spec='${wl}-E'
14076 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14077 # Instead, shared libraries are loaded at an image base (0x10000000 by
14078 # default) and relocated if they conflict, which is a slow very memory
14079 # consuming and fragmenting process. To avoid this, we pick a random,
14080 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14081 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14082 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14083 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'
14084 ;;
14085
14086 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
14087 tmp_diet=no
14088 if test "$host_os" = linux-dietlibc; then
14089 case $cc_basename in
14090 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
14091 esac
14092 fi
14093 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
14094 && test "$tmp_diet" = no
14095 then
14096 tmp_addflag=' $pic_flag'
14097 tmp_sharedflag='-shared'
14098 case $cc_basename,$host_cpu in
14099 pgcc*) # Portland Group C compiler
14100 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'
14101 tmp_addflag=' $pic_flag'
14102 ;;
14103 pgf77* | pgf90* | pgf95* | pgfortran*)
14104 # Portland Group f77 and f90 compilers
14105 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'
14106 tmp_addflag=' $pic_flag -Mnomain' ;;
14107 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14108 tmp_addflag=' -i_dynamic' ;;
14109 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14110 tmp_addflag=' -i_dynamic -nofor_main' ;;
14111 ifc* | ifort*) # Intel Fortran compiler
14112 tmp_addflag=' -nofor_main' ;;
14113 lf95*) # Lahey Fortran 8.1
14114 whole_archive_flag_spec=
14115 tmp_sharedflag='--shared' ;;
14116 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
14117 tmp_sharedflag='-qmkshrobj'
14118 tmp_addflag= ;;
14119 nvcc*) # Cuda Compiler Driver 2.2
14120 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'
14121 compiler_needs_object=yes
14122 ;;
14123 esac
14124 case `$CC -V 2>&1 | sed 5q` in
14125 *Sun\ C*) # Sun C 5.9
14126 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'
14127 compiler_needs_object=yes
14128 tmp_sharedflag='-G' ;;
14129 *Sun\ F*) # Sun Fortran 8.3
14130 tmp_sharedflag='-G' ;;
14131 esac
14132 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14133
14134 if test "x$supports_anon_versioning" = xyes; then
14135 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
14136 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14137 echo "local: *; };" >> $output_objdir/$libname.ver~
14138 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14139 fi
14140
14141 case $cc_basename in
14142 xlf* | bgf* | bgxlf* | mpixlf*)
14143 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
14144 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
14145 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14146 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
14147 if test "x$supports_anon_versioning" = xyes; then
14148 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
14149 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14150 echo "local: *; };" >> $output_objdir/$libname.ver~
14151 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
14152 fi
14153 ;;
14154 esac
14155 else
14156 ld_shlibs=no
14157 fi
14158 ;;
14159
14160 netbsd*)
14161 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14162 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14163 wlarc=
14164 else
14165 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14166 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14167 fi
14168 ;;
14169
14170 solaris*)
14171 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
14172 ld_shlibs=no
14173 cat <<_LT_EOF 1>&2
14174
14175 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14176 *** create shared libraries on Solaris systems. Therefore, libtool
14177 *** is disabling shared libraries support. We urge you to upgrade GNU
14178 *** binutils to release 2.9.1 or newer. Another option is to modify
14179 *** your PATH or compiler configuration so that the native linker is
14180 *** used, and then restart.
14181
14182 _LT_EOF
14183 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14184 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14185 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14186 else
14187 ld_shlibs=no
14188 fi
14189 ;;
14190
14191 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14192 case `$LD -v 2>&1` in
14193 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14194 ld_shlibs=no
14195 cat <<_LT_EOF 1>&2
14196
14197 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14198 *** reliably create shared libraries on SCO systems. Therefore, libtool
14199 *** is disabling shared libraries support. We urge you to upgrade GNU
14200 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14201 *** your PATH or compiler configuration so that the native linker is
14202 *** used, and then restart.
14203
14204 _LT_EOF
14205 ;;
14206 *)
14207 # For security reasons, it is highly recommended that you always
14208 # use absolute paths for naming shared libraries, and exclude the
14209 # DT_RUNPATH tag from executables and libraries. But doing so
14210 # requires that you compile everything twice, which is a pain.
14211 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14212 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14213 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14214 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14215 else
14216 ld_shlibs=no
14217 fi
14218 ;;
14219 esac
14220 ;;
14221
14222 sunos4*)
14223 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14224 wlarc=
14225 hardcode_direct=yes
14226 hardcode_shlibpath_var=no
14227 ;;
14228
14229 *)
14230 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14231 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14232 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14233 else
14234 ld_shlibs=no
14235 fi
14236 ;;
14237 esac
14238
14239 if test "$ld_shlibs" = no; then
14240 runpath_var=
14241 hardcode_libdir_flag_spec=
14242 export_dynamic_flag_spec=
14243 whole_archive_flag_spec=
14244 fi
14245 else
14246 # PORTME fill in a description of your system's linker (not GNU ld)
14247 case $host_os in
14248 aix3*)
14249 allow_undefined_flag=unsupported
14250 always_export_symbols=yes
14251 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'
14252 # Note: this linker hardcodes the directories in LIBPATH if there
14253 # are no directories specified by -L.
14254 hardcode_minus_L=yes
14255 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14256 # Neither direct hardcoding nor static linking is supported with a
14257 # broken collect2.
14258 hardcode_direct=unsupported
14259 fi
14260 ;;
14261
14262 aix[4-9]*)
14263 if test "$host_cpu" = ia64; then
14264 # On IA64, the linker does run time linking by default, so we don't
14265 # have to do anything special.
14266 aix_use_runtimelinking=no
14267 exp_sym_flag='-Bexport'
14268 no_entry_flag=""
14269 else
14270 # If we're using GNU nm, then we don't want the "-C" option.
14271 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14272 # Also, AIX nm treats weak defined symbols like other global
14273 # defined symbols, whereas GNU nm marks them as "W".
14274 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14275 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'
14276 else
14277 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'
14278 fi
14279 aix_use_runtimelinking=no
14280
14281 # Test if we are trying to use run time linking or normal
14282 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14283 # need to do runtime linking.
14284 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14285 for ld_flag in $LDFLAGS; do
14286 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14287 aix_use_runtimelinking=yes
14288 break
14289 fi
14290 done
14291 ;;
14292 esac
14293
14294 exp_sym_flag='-bexport'
14295 no_entry_flag='-bnoentry'
14296 fi
14297
14298 # When large executables or shared objects are built, AIX ld can
14299 # have problems creating the table of contents. If linking a library
14300 # or program results in "error TOC overflow" add -mminimal-toc to
14301 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14302 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14303
14304 archive_cmds=''
14305 hardcode_direct=yes
14306 hardcode_direct_absolute=yes
14307 hardcode_libdir_separator=':'
14308 link_all_deplibs=yes
14309 file_list_spec='${wl}-f,'
14310
14311 if test "$GCC" = yes; then
14312 case $host_os in aix4.[012]|aix4.[012].*)
14313 # We only want to do this on AIX 4.2 and lower, the check
14314 # below for broken collect2 doesn't work under 4.3+
14315 collect2name=`${CC} -print-prog-name=collect2`
14316 if test -f "$collect2name" &&
14317 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
14318 then
14319 # We have reworked collect2
14320 :
14321 else
14322 # We have old collect2
14323 hardcode_direct=unsupported
14324 # It fails to find uninstalled libraries when the uninstalled
14325 # path is not listed in the libpath. Setting hardcode_minus_L
14326 # to unsupported forces relinking
14327 hardcode_minus_L=yes
14328 hardcode_libdir_flag_spec='-L$libdir'
14329 hardcode_libdir_separator=
14330 fi
14331 ;;
14332 esac
14333 shared_flag='-shared'
14334 if test "$aix_use_runtimelinking" = yes; then
14335 shared_flag="$shared_flag "'${wl}-G'
14336 fi
14337 else
14338 # not using gcc
14339 if test "$host_cpu" = ia64; then
14340 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14341 # chokes on -Wl,-G. The following line is correct:
14342 shared_flag='-G'
14343 else
14344 if test "$aix_use_runtimelinking" = yes; then
14345 shared_flag='${wl}-G'
14346 else
14347 shared_flag='${wl}-bM:SRE'
14348 fi
14349 fi
14350 fi
14351
14352 export_dynamic_flag_spec='${wl}-bexpall'
14353 # It seems that -bexpall does not export symbols beginning with
14354 # underscore (_), so it is better to generate a list of symbols to export.
14355 always_export_symbols=yes
14356 if test "$aix_use_runtimelinking" = yes; then
14357 # Warning - without using the other runtime loading flags (-brtl),
14358 # -berok will link without error, but may produce a broken library.
14359 allow_undefined_flag='-berok'
14360 # Determine the default libpath from the value encoded in an
14361 # empty executable.
14362 if test "${lt_cv_aix_libpath+set}" = set; then
14363 aix_libpath=$lt_cv_aix_libpath
14364 else
14365 if ${lt_cv_aix_libpath_+:} false; then :
14366 $as_echo_n "(cached) " >&6
14367 else
14368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14369 /* end confdefs.h. */
14370
14371 int
14372 main ()
14373 {
14374
14375 ;
14376 return 0;
14377 }
14378 _ACEOF
14379 if ac_fn_c_try_link "$LINENO"; then :
14380
14381 lt_aix_libpath_sed='
14382 /Import File Strings/,/^$/ {
14383 /^0/ {
14384 s/^0 *\([^ ]*\) *$/\1/
14385 p
14386 }
14387 }'
14388 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14389 # Check for a 64-bit object if we didn't find anything.
14390 if test -z "$lt_cv_aix_libpath_"; then
14391 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14392 fi
14393 fi
14394 rm -f core conftest.err conftest.$ac_objext \
14395 conftest$ac_exeext conftest.$ac_ext
14396 if test -z "$lt_cv_aix_libpath_"; then
14397 lt_cv_aix_libpath_="/usr/lib:/lib"
14398 fi
14399
14400 fi
14401
14402 aix_libpath=$lt_cv_aix_libpath_
14403 fi
14404
14405 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
14406 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"
14407 else
14408 if test "$host_cpu" = ia64; then
14409 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
14410 allow_undefined_flag="-z nodefs"
14411 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"
14412 else
14413 # Determine the default libpath from the value encoded in an
14414 # empty executable.
14415 if test "${lt_cv_aix_libpath+set}" = set; then
14416 aix_libpath=$lt_cv_aix_libpath
14417 else
14418 if ${lt_cv_aix_libpath_+:} false; then :
14419 $as_echo_n "(cached) " >&6
14420 else
14421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14422 /* end confdefs.h. */
14423
14424 int
14425 main ()
14426 {
14427
14428 ;
14429 return 0;
14430 }
14431 _ACEOF
14432 if ac_fn_c_try_link "$LINENO"; then :
14433
14434 lt_aix_libpath_sed='
14435 /Import File Strings/,/^$/ {
14436 /^0/ {
14437 s/^0 *\([^ ]*\) *$/\1/
14438 p
14439 }
14440 }'
14441 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14442 # Check for a 64-bit object if we didn't find anything.
14443 if test -z "$lt_cv_aix_libpath_"; then
14444 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14445 fi
14446 fi
14447 rm -f core conftest.err conftest.$ac_objext \
14448 conftest$ac_exeext conftest.$ac_ext
14449 if test -z "$lt_cv_aix_libpath_"; then
14450 lt_cv_aix_libpath_="/usr/lib:/lib"
14451 fi
14452
14453 fi
14454
14455 aix_libpath=$lt_cv_aix_libpath_
14456 fi
14457
14458 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
14459 # Warning - without using the other run time loading flags,
14460 # -berok will link without error, but may produce a broken library.
14461 no_undefined_flag=' ${wl}-bernotok'
14462 allow_undefined_flag=' ${wl}-berok'
14463 if test "$with_gnu_ld" = yes; then
14464 # We only use this code for GNU lds that support --whole-archive.
14465 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14466 else
14467 # Exported symbols can be pulled into shared objects from archives
14468 whole_archive_flag_spec='$convenience'
14469 fi
14470 archive_cmds_need_lc=yes
14471 # This is similar to how AIX traditionally builds its shared libraries.
14472 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'
14473 fi
14474 fi
14475 ;;
14476
14477 amigaos*)
14478 case $host_cpu in
14479 powerpc)
14480 # see comment about AmigaOS4 .so support
14481 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14482 archive_expsym_cmds=''
14483 ;;
14484 m68k)
14485 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)'
14486 hardcode_libdir_flag_spec='-L$libdir'
14487 hardcode_minus_L=yes
14488 ;;
14489 esac
14490 ;;
14491
14492 bsdi[45]*)
14493 export_dynamic_flag_spec=-rdynamic
14494 ;;
14495
14496 cygwin* | mingw* | pw32* | cegcc*)
14497 # When not using gcc, we currently assume that we are using
14498 # Microsoft Visual C++.
14499 # hardcode_libdir_flag_spec is actually meaningless, as there is
14500 # no search path for DLLs.
14501 case $cc_basename in
14502 cl*)
14503 # Native MSVC
14504 hardcode_libdir_flag_spec=' '
14505 allow_undefined_flag=unsupported
14506 always_export_symbols=yes
14507 file_list_spec='@'
14508 # Tell ltmain to make .lib files, not .a files.
14509 libext=lib
14510 # Tell ltmain to make .dll files, not .so files.
14511 shrext_cmds=".dll"
14512 # FIXME: Setting linknames here is a bad hack.
14513 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
14514 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14515 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
14516 else
14517 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
14518 fi~
14519 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
14520 linknames='
14521 # The linker will not automatically build a static lib if we build a DLL.
14522 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
14523 enable_shared_with_static_runtimes=yes
14524 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
14525 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14526 # Don't use ranlib
14527 old_postinstall_cmds='chmod 644 $oldlib'
14528 postlink_cmds='lt_outputfile="@OUTPUT@"~
14529 lt_tool_outputfile="@TOOL_OUTPUT@"~
14530 case $lt_outputfile in
14531 *.exe|*.EXE) ;;
14532 *)
14533 lt_outputfile="$lt_outputfile.exe"
14534 lt_tool_outputfile="$lt_tool_outputfile.exe"
14535 ;;
14536 esac~
14537 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
14538 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
14539 $RM "$lt_outputfile.manifest";
14540 fi'
14541 ;;
14542 *)
14543 # Assume MSVC wrapper
14544 hardcode_libdir_flag_spec=' '
14545 allow_undefined_flag=unsupported
14546 # Tell ltmain to make .lib files, not .a files.
14547 libext=lib
14548 # Tell ltmain to make .dll files, not .so files.
14549 shrext_cmds=".dll"
14550 # FIXME: Setting linknames here is a bad hack.
14551 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
14552 # The linker will automatically build a .lib file if we build a DLL.
14553 old_archive_from_new_cmds='true'
14554 # FIXME: Should let the user specify the lib program.
14555 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
14556 enable_shared_with_static_runtimes=yes
14557 ;;
14558 esac
14559 ;;
14560
14561 darwin* | rhapsody*)
14562
14563
14564 archive_cmds_need_lc=no
14565 hardcode_direct=no
14566 hardcode_automatic=yes
14567 hardcode_shlibpath_var=unsupported
14568 if test "$lt_cv_ld_force_load" = "yes"; then
14569 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\"`'
14570
14571 else
14572 whole_archive_flag_spec=''
14573 fi
14574 link_all_deplibs=yes
14575 allow_undefined_flag="$_lt_dar_allow_undefined"
14576 case $cc_basename in
14577 ifort*) _lt_dar_can_shared=yes ;;
14578 *) _lt_dar_can_shared=$GCC ;;
14579 esac
14580 if test "$_lt_dar_can_shared" = "yes"; then
14581 output_verbose_link_cmd=func_echo_all
14582 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
14583 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
14584 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}"
14585 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}"
14586
14587 else
14588 ld_shlibs=no
14589 fi
14590
14591 ;;
14592
14593 dgux*)
14594 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14595 hardcode_libdir_flag_spec='-L$libdir'
14596 hardcode_shlibpath_var=no
14597 ;;
14598
14599 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14600 # support. Future versions do this automatically, but an explicit c++rt0.o
14601 # does not break anything, and helps significantly (at the cost of a little
14602 # extra space).
14603 freebsd2.2*)
14604 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14605 hardcode_libdir_flag_spec='-R$libdir'
14606 hardcode_direct=yes
14607 hardcode_shlibpath_var=no
14608 ;;
14609
14610 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14611 freebsd2.*)
14612 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14613 hardcode_direct=yes
14614 hardcode_minus_L=yes
14615 hardcode_shlibpath_var=no
14616 ;;
14617
14618 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14619 freebsd* | dragonfly*)
14620 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14621 hardcode_libdir_flag_spec='-R$libdir'
14622 hardcode_direct=yes
14623 hardcode_shlibpath_var=no
14624 ;;
14625
14626 hpux9*)
14627 if test "$GCC" = yes; then
14628 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'
14629 else
14630 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'
14631 fi
14632 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14633 hardcode_libdir_separator=:
14634 hardcode_direct=yes
14635
14636 # hardcode_minus_L: Not really in the search PATH,
14637 # but as the default location of the library.
14638 hardcode_minus_L=yes
14639 export_dynamic_flag_spec='${wl}-E'
14640 ;;
14641
14642 hpux10*)
14643 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
14644 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14645 else
14646 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14647 fi
14648 if test "$with_gnu_ld" = no; then
14649 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14650 hardcode_libdir_separator=:
14651 hardcode_direct=yes
14652 hardcode_direct_absolute=yes
14653 export_dynamic_flag_spec='${wl}-E'
14654 # hardcode_minus_L: Not really in the search PATH,
14655 # but as the default location of the library.
14656 hardcode_minus_L=yes
14657 fi
14658 ;;
14659
14660 hpux11*)
14661 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
14662 case $host_cpu in
14663 hppa*64*)
14664 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14665 ;;
14666 ia64*)
14667 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14668 ;;
14669 *)
14670 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14671 ;;
14672 esac
14673 else
14674 case $host_cpu in
14675 hppa*64*)
14676 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14677 ;;
14678 ia64*)
14679 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14680 ;;
14681 *)
14682
14683 # Older versions of the 11.00 compiler do not understand -b yet
14684 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
14685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
14686 $as_echo_n "checking if $CC understands -b... " >&6; }
14687 if ${lt_cv_prog_compiler__b+:} false; then :
14688 $as_echo_n "(cached) " >&6
14689 else
14690 lt_cv_prog_compiler__b=no
14691 save_LDFLAGS="$LDFLAGS"
14692 LDFLAGS="$LDFLAGS -b"
14693 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14694 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14695 # The linker can only warn and ignore the option if not recognized
14696 # So say no if there are warnings
14697 if test -s conftest.err; then
14698 # Append any errors to the config.log.
14699 cat conftest.err 1>&5
14700 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14701 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14702 if diff conftest.exp conftest.er2 >/dev/null; then
14703 lt_cv_prog_compiler__b=yes
14704 fi
14705 else
14706 lt_cv_prog_compiler__b=yes
14707 fi
14708 fi
14709 $RM -r conftest*
14710 LDFLAGS="$save_LDFLAGS"
14711
14712 fi
14713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
14714 $as_echo "$lt_cv_prog_compiler__b" >&6; }
14715
14716 if test x"$lt_cv_prog_compiler__b" = xyes; then
14717 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14718 else
14719 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14720 fi
14721
14722 ;;
14723 esac
14724 fi
14725 if test "$with_gnu_ld" = no; then
14726 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14727 hardcode_libdir_separator=:
14728
14729 case $host_cpu in
14730 hppa*64*|ia64*)
14731 hardcode_direct=no
14732 hardcode_shlibpath_var=no
14733 ;;
14734 *)
14735 hardcode_direct=yes
14736 hardcode_direct_absolute=yes
14737 export_dynamic_flag_spec='${wl}-E'
14738
14739 # hardcode_minus_L: Not really in the search PATH,
14740 # but as the default location of the library.
14741 hardcode_minus_L=yes
14742 ;;
14743 esac
14744 fi
14745 ;;
14746
14747 irix5* | irix6* | nonstopux*)
14748 if test "$GCC" = yes; then
14749 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'
14750 # Try to use the -exported_symbol ld option, if it does not
14751 # work, assume that -exports_file does not work either and
14752 # implicitly export all symbols.
14753 # This should be the same for all languages, so no per-tag cache variable.
14754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
14755 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
14756 if ${lt_cv_irix_exported_symbol+:} false; then :
14757 $as_echo_n "(cached) " >&6
14758 else
14759 save_LDFLAGS="$LDFLAGS"
14760 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
14761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14762 /* end confdefs.h. */
14763 int foo (void) { return 0; }
14764 _ACEOF
14765 if ac_fn_c_try_link "$LINENO"; then :
14766 lt_cv_irix_exported_symbol=yes
14767 else
14768 lt_cv_irix_exported_symbol=no
14769 fi
14770 rm -f core conftest.err conftest.$ac_objext \
14771 conftest$ac_exeext conftest.$ac_ext
14772 LDFLAGS="$save_LDFLAGS"
14773 fi
14774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
14775 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
14776 if test "$lt_cv_irix_exported_symbol" = yes; then
14777 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'
14778 fi
14779 else
14780 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'
14781 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'
14782 fi
14783 archive_cmds_need_lc='no'
14784 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14785 hardcode_libdir_separator=:
14786 inherit_rpath=yes
14787 link_all_deplibs=yes
14788 ;;
14789
14790 netbsd*)
14791 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14792 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14793 else
14794 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14795 fi
14796 hardcode_libdir_flag_spec='-R$libdir'
14797 hardcode_direct=yes
14798 hardcode_shlibpath_var=no
14799 ;;
14800
14801 newsos6)
14802 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14803 hardcode_direct=yes
14804 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14805 hardcode_libdir_separator=:
14806 hardcode_shlibpath_var=no
14807 ;;
14808
14809 *nto* | *qnx*)
14810 ;;
14811
14812 openbsd*)
14813 if test -f /usr/libexec/ld.so; then
14814 hardcode_direct=yes
14815 hardcode_shlibpath_var=no
14816 hardcode_direct_absolute=yes
14817 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14818 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14819 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14820 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14821 export_dynamic_flag_spec='${wl}-E'
14822 else
14823 case $host_os in
14824 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14825 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14826 hardcode_libdir_flag_spec='-R$libdir'
14827 ;;
14828 *)
14829 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14830 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14831 ;;
14832 esac
14833 fi
14834 else
14835 ld_shlibs=no
14836 fi
14837 ;;
14838
14839 os2*)
14840 hardcode_libdir_flag_spec='-L$libdir'
14841 hardcode_minus_L=yes
14842 allow_undefined_flag=unsupported
14843 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'
14844 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14845 ;;
14846
14847 osf3*)
14848 if test "$GCC" = yes; then
14849 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
14850 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'
14851 else
14852 allow_undefined_flag=' -expect_unresolved \*'
14853 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'
14854 fi
14855 archive_cmds_need_lc='no'
14856 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14857 hardcode_libdir_separator=:
14858 ;;
14859
14860 osf4* | osf5*) # as osf3* with the addition of -msym flag
14861 if test "$GCC" = yes; then
14862 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
14863 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'
14864 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14865 else
14866 allow_undefined_flag=' -expect_unresolved \*'
14867 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'
14868 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~
14869 $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'
14870
14871 # Both c and cxx compiler support -rpath directly
14872 hardcode_libdir_flag_spec='-rpath $libdir'
14873 fi
14874 archive_cmds_need_lc='no'
14875 hardcode_libdir_separator=:
14876 ;;
14877
14878 solaris*)
14879 no_undefined_flag=' -z defs'
14880 if test "$GCC" = yes; then
14881 wlarc='${wl}'
14882 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14883 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14884 $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'
14885 else
14886 case `$CC -V 2>&1` in
14887 *"Compilers 5.0"*)
14888 wlarc=''
14889 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14890 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14891 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
14892 ;;
14893 *)
14894 wlarc='${wl}'
14895 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
14896 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14897 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
14898 ;;
14899 esac
14900 fi
14901 hardcode_libdir_flag_spec='-R$libdir'
14902 hardcode_shlibpath_var=no
14903 case $host_os in
14904 solaris2.[0-5] | solaris2.[0-5].*) ;;
14905 *)
14906 # The compiler driver will combine and reorder linker options,
14907 # but understands `-z linker_flag'. GCC discards it without `$wl',
14908 # but is careful enough not to reorder.
14909 # Supported since Solaris 2.6 (maybe 2.5.1?)
14910 if test "$GCC" = yes; then
14911 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14912 else
14913 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
14914 fi
14915 ;;
14916 esac
14917 link_all_deplibs=yes
14918 ;;
14919
14920 sunos4*)
14921 if test "x$host_vendor" = xsequent; then
14922 # Use $CC to link under sequent, because it throws in some extra .o
14923 # files that make .init and .fini sections work.
14924 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14925 else
14926 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14927 fi
14928 hardcode_libdir_flag_spec='-L$libdir'
14929 hardcode_direct=yes
14930 hardcode_minus_L=yes
14931 hardcode_shlibpath_var=no
14932 ;;
14933
14934 sysv4)
14935 case $host_vendor in
14936 sni)
14937 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14938 hardcode_direct=yes # is this really true???
14939 ;;
14940 siemens)
14941 ## LD is ld it makes a PLAMLIB
14942 ## CC just makes a GrossModule.
14943 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14944 reload_cmds='$CC -r -o $output$reload_objs'
14945 hardcode_direct=no
14946 ;;
14947 motorola)
14948 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14949 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
14950 ;;
14951 esac
14952 runpath_var='LD_RUN_PATH'
14953 hardcode_shlibpath_var=no
14954 ;;
14955
14956 sysv4.3*)
14957 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14958 hardcode_shlibpath_var=no
14959 export_dynamic_flag_spec='-Bexport'
14960 ;;
14961
14962 sysv4*MP*)
14963 if test -d /usr/nec; then
14964 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14965 hardcode_shlibpath_var=no
14966 runpath_var=LD_RUN_PATH
14967 hardcode_runpath_var=yes
14968 ld_shlibs=yes
14969 fi
14970 ;;
14971
14972 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14973 no_undefined_flag='${wl}-z,text'
14974 archive_cmds_need_lc=no
14975 hardcode_shlibpath_var=no
14976 runpath_var='LD_RUN_PATH'
14977
14978 if test "$GCC" = yes; then
14979 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14980 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14981 else
14982 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14983 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14984 fi
14985 ;;
14986
14987 sysv5* | sco3.2v5* | sco5v6*)
14988 # Note: We can NOT use -z defs as we might desire, because we do not
14989 # link with -lc, and that would cause any symbols used from libc to
14990 # always be unresolved, which means just about no library would
14991 # ever link correctly. If we're not using GNU ld we use -z text
14992 # though, which does catch some bad symbols but isn't as heavy-handed
14993 # as -z defs.
14994 no_undefined_flag='${wl}-z,text'
14995 allow_undefined_flag='${wl}-z,nodefs'
14996 archive_cmds_need_lc=no
14997 hardcode_shlibpath_var=no
14998 hardcode_libdir_flag_spec='${wl}-R,$libdir'
14999 hardcode_libdir_separator=':'
15000 link_all_deplibs=yes
15001 export_dynamic_flag_spec='${wl}-Bexport'
15002 runpath_var='LD_RUN_PATH'
15003
15004 if test "$GCC" = yes; then
15005 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15006 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15007 else
15008 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15009 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15010 fi
15011 ;;
15012
15013 uts4*)
15014 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15015 hardcode_libdir_flag_spec='-L$libdir'
15016 hardcode_shlibpath_var=no
15017 ;;
15018
15019 *)
15020 ld_shlibs=no
15021 ;;
15022 esac
15023
15024 if test x$host_vendor = xsni; then
15025 case $host in
15026 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15027 export_dynamic_flag_spec='${wl}-Blargedynsym'
15028 ;;
15029 esac
15030 fi
15031 fi
15032
15033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
15034 $as_echo "$ld_shlibs" >&6; }
15035 test "$ld_shlibs" = no && can_build_shared=no
15036
15037 with_gnu_ld=$with_gnu_ld
15038
15039
15040
15041
15042
15043
15044
15045
15046
15047
15048
15049
15050
15051
15052
15053 #
15054 # Do we need to explicitly link libc?
15055 #
15056 case "x$archive_cmds_need_lc" in
15057 x|xyes)
15058 # Assume -lc should be added
15059 archive_cmds_need_lc=yes
15060
15061 if test "$enable_shared" = yes && test "$GCC" = yes; then
15062 case $archive_cmds in
15063 *'~'*)
15064 # FIXME: we may have to deal with multi-command sequences.
15065 ;;
15066 '$CC '*)
15067 # Test whether the compiler implicitly links with -lc since on some
15068 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15069 # to ld, don't add -lc before -lgcc.
15070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15071 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15072 if ${lt_cv_archive_cmds_need_lc+:} false; then :
15073 $as_echo_n "(cached) " >&6
15074 else
15075 $RM conftest*
15076 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15077
15078 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15079 (eval $ac_compile) 2>&5
15080 ac_status=$?
15081 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15082 test $ac_status = 0; } 2>conftest.err; then
15083 soname=conftest
15084 lib=conftest
15085 libobjs=conftest.$ac_objext
15086 deplibs=
15087 wl=$lt_prog_compiler_wl
15088 pic_flag=$lt_prog_compiler_pic
15089 compiler_flags=-v
15090 linker_flags=-v
15091 verstring=
15092 output_objdir=.
15093 libname=conftest
15094 lt_save_allow_undefined_flag=$allow_undefined_flag
15095 allow_undefined_flag=
15096 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15097 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15098 ac_status=$?
15099 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15100 test $ac_status = 0; }
15101 then
15102 lt_cv_archive_cmds_need_lc=no
15103 else
15104 lt_cv_archive_cmds_need_lc=yes
15105 fi
15106 allow_undefined_flag=$lt_save_allow_undefined_flag
15107 else
15108 cat conftest.err 1>&5
15109 fi
15110 $RM conftest*
15111
15112 fi
15113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
15114 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
15115 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
15116 ;;
15117 esac
15118 fi
15119 ;;
15120 esac
15121
15122
15123
15124
15125
15126
15127
15128
15129
15130
15131
15132
15133
15134
15135
15136
15137
15138
15139
15140
15141
15142
15143
15144
15145
15146
15147
15148
15149
15150
15151
15152
15153
15154
15155
15156
15157
15158
15159
15160
15161
15162
15163
15164
15165
15166
15167
15168
15169
15170
15171
15172
15173
15174
15175
15176
15177
15178
15179
15180
15181
15182
15183
15184
15185
15186
15187
15188
15189
15190
15191
15192
15193
15194
15195
15196
15197
15198
15199
15200
15201
15202
15203
15204
15205
15206
15207
15208
15209
15210
15211
15212
15213
15214
15215
15216
15217
15218
15219
15220
15221
15222
15223
15224
15225
15226
15227
15228
15229
15230
15231
15232
15233
15234
15235
15236
15237
15238
15239
15240
15241
15242
15243
15244
15245
15246
15247
15248
15249
15250
15251
15252
15253
15254
15255
15256
15257
15258
15259
15260
15261
15262
15263
15264
15265
15266
15267
15268
15269
15270
15271
15272
15273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15274 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15275
15276 if test "$GCC" = yes; then
15277 case $host_os in
15278 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
15279 *) lt_awk_arg="/^libraries:/" ;;
15280 esac
15281 case $host_os in
15282 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
15283 *) lt_sed_strip_eq="s,=/,/,g" ;;
15284 esac
15285 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
15286 case $lt_search_path_spec in
15287 *\;*)
15288 # if the path contains ";" then we assume it to be the separator
15289 # otherwise default to the standard path separator (i.e. ":") - it is
15290 # assumed that no part of a normal pathname contains ";" but that should
15291 # okay in the real world where ";" in dirpaths is itself problematic.
15292 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
15293 ;;
15294 *)
15295 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
15296 ;;
15297 esac
15298 # Ok, now we have the path, separated by spaces, we can step through it
15299 # and add multilib dir if necessary.
15300 lt_tmp_lt_search_path_spec=
15301 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
15302 for lt_sys_path in $lt_search_path_spec; do
15303 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
15304 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
15305 else
15306 test -d "$lt_sys_path" && \
15307 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
15308 fi
15309 done
15310 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
15311 BEGIN {RS=" "; FS="/|\n";} {
15312 lt_foo="";
15313 lt_count=0;
15314 for (lt_i = NF; lt_i > 0; lt_i--) {
15315 if ($lt_i != "" && $lt_i != ".") {
15316 if ($lt_i == "..") {
15317 lt_count++;
15318 } else {
15319 if (lt_count == 0) {
15320 lt_foo="/" $lt_i lt_foo;
15321 } else {
15322 lt_count--;
15323 }
15324 }
15325 }
15326 }
15327 if (lt_foo != "") { lt_freq[lt_foo]++; }
15328 if (lt_freq[lt_foo] == 1) { print lt_foo; }
15329 }'`
15330 # AWK program above erroneously prepends '/' to C:/dos/paths
15331 # for these hosts.
15332 case $host_os in
15333 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
15334 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
15335 esac
15336 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
15337 else
15338 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15339 fi
15340 library_names_spec=
15341 libname_spec='lib$name'
15342 soname_spec=
15343 shrext_cmds=".so"
15344 postinstall_cmds=
15345 postuninstall_cmds=
15346 finish_cmds=
15347 finish_eval=
15348 shlibpath_var=
15349 shlibpath_overrides_runpath=unknown
15350 version_type=none
15351 dynamic_linker="$host_os ld.so"
15352 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15353 need_lib_prefix=unknown
15354 hardcode_into_libs=no
15355
15356 # when you set need_version to no, make sure it does not cause -set_version
15357 # flags to be left without arguments
15358 need_version=unknown
15359
15360 case $host_os in
15361 aix3*)
15362 version_type=linux # correct to gnu/linux during the next big refactor
15363 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15364 shlibpath_var=LIBPATH
15365
15366 # AIX 3 has no versioning support, so we append a major version to the name.
15367 soname_spec='${libname}${release}${shared_ext}$major'
15368 ;;
15369
15370 aix[4-9]*)
15371 version_type=linux # correct to gnu/linux during the next big refactor
15372 need_lib_prefix=no
15373 need_version=no
15374 hardcode_into_libs=yes
15375 if test "$host_cpu" = ia64; then
15376 # AIX 5 supports IA64
15377 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15378 shlibpath_var=LD_LIBRARY_PATH
15379 else
15380 # With GCC up to 2.95.x, collect2 would create an import file
15381 # for dependence libraries. The import file would start with
15382 # the line `#! .'. This would cause the generated library to
15383 # depend on `.', always an invalid library. This was fixed in
15384 # development snapshots of GCC prior to 3.0.
15385 case $host_os in
15386 aix4 | aix4.[01] | aix4.[01].*)
15387 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15388 echo ' yes '
15389 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15390 :
15391 else
15392 can_build_shared=no
15393 fi
15394 ;;
15395 esac
15396 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15397 # soname into executable. Probably we can add versioning support to
15398 # collect2, so additional links can be useful in future.
15399 if test "$aix_use_runtimelinking" = yes; then
15400 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15401 # instead of lib<name>.a to let people know that these are not
15402 # typical AIX shared libraries.
15403 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15404 else
15405 # We preserve .a as extension for shared libraries through AIX4.2
15406 # and later when we are not doing run time linking.
15407 library_names_spec='${libname}${release}.a $libname.a'
15408 soname_spec='${libname}${release}${shared_ext}$major'
15409 fi
15410 shlibpath_var=LIBPATH
15411 fi
15412 ;;
15413
15414 amigaos*)
15415 case $host_cpu in
15416 powerpc)
15417 # Since July 2007 AmigaOS4 officially supports .so libraries.
15418 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15419 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15420 ;;
15421 m68k)
15422 library_names_spec='$libname.ixlibrary $libname.a'
15423 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15424 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'
15425 ;;
15426 esac
15427 ;;
15428
15429 beos*)
15430 library_names_spec='${libname}${shared_ext}'
15431 dynamic_linker="$host_os ld.so"
15432 shlibpath_var=LIBRARY_PATH
15433 ;;
15434
15435 bsdi[45]*)
15436 version_type=linux # correct to gnu/linux during the next big refactor
15437 need_version=no
15438 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15439 soname_spec='${libname}${release}${shared_ext}$major'
15440 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15441 shlibpath_var=LD_LIBRARY_PATH
15442 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15443 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15444 # the default ld.so.conf also contains /usr/contrib/lib and
15445 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15446 # libtool to hard-code these into programs
15447 ;;
15448
15449 cygwin* | mingw* | pw32* | cegcc*)
15450 version_type=windows
15451 shrext_cmds=".dll"
15452 need_version=no
15453 need_lib_prefix=no
15454
15455 case $GCC,$cc_basename in
15456 yes,*)
15457 # gcc
15458 library_names_spec='$libname.dll.a'
15459 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15460 postinstall_cmds='base_file=`basename \${file}`~
15461 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15462 dldir=$destdir/`dirname \$dlpath`~
15463 test -d \$dldir || mkdir -p \$dldir~
15464 $install_prog $dir/$dlname \$dldir/$dlname~
15465 chmod a+x \$dldir/$dlname~
15466 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15467 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15468 fi'
15469 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15470 dlpath=$dir/\$dldll~
15471 $RM \$dlpath'
15472 shlibpath_overrides_runpath=yes
15473
15474 case $host_os in
15475 cygwin*)
15476 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15477 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15478
15479 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
15480 ;;
15481 mingw* | cegcc*)
15482 # MinGW DLLs use traditional 'lib' prefix
15483 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15484 ;;
15485 pw32*)
15486 # pw32 DLLs use 'pw' prefix rather than 'lib'
15487 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15488 ;;
15489 esac
15490 dynamic_linker='Win32 ld.exe'
15491 ;;
15492
15493 *,cl*)
15494 # Native MSVC
15495 libname_spec='$name'
15496 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15497 library_names_spec='${libname}.dll.lib'
15498
15499 case $build_os in
15500 mingw*)
15501 sys_lib_search_path_spec=
15502 lt_save_ifs=$IFS
15503 IFS=';'
15504 for lt_path in $LIB
15505 do
15506 IFS=$lt_save_ifs
15507 # Let DOS variable expansion print the short 8.3 style file name.
15508 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15509 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15510 done
15511 IFS=$lt_save_ifs
15512 # Convert to MSYS style.
15513 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15514 ;;
15515 cygwin*)
15516 # Convert to unix form, then to dos form, then back to unix form
15517 # but this time dos style (no spaces!) so that the unix form looks
15518 # like /cygdrive/c/PROGRA~1:/cygdr...
15519 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15520 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15521 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15522 ;;
15523 *)
15524 sys_lib_search_path_spec="$LIB"
15525 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15526 # It is most probably a Windows format PATH.
15527 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15528 else
15529 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15530 fi
15531 # FIXME: find the short name or the path components, as spaces are
15532 # common. (e.g. "Program Files" -> "PROGRA~1")
15533 ;;
15534 esac
15535
15536 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15537 postinstall_cmds='base_file=`basename \${file}`~
15538 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15539 dldir=$destdir/`dirname \$dlpath`~
15540 test -d \$dldir || mkdir -p \$dldir~
15541 $install_prog $dir/$dlname \$dldir/$dlname'
15542 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15543 dlpath=$dir/\$dldll~
15544 $RM \$dlpath'
15545 shlibpath_overrides_runpath=yes
15546 dynamic_linker='Win32 link.exe'
15547 ;;
15548
15549 *)
15550 # Assume MSVC wrapper
15551 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15552 dynamic_linker='Win32 ld.exe'
15553 ;;
15554 esac
15555 # FIXME: first we should search . and the directory the executable is in
15556 shlibpath_var=PATH
15557 ;;
15558
15559 darwin* | rhapsody*)
15560 dynamic_linker="$host_os dyld"
15561 version_type=darwin
15562 need_lib_prefix=no
15563 need_version=no
15564 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15565 soname_spec='${libname}${release}${major}$shared_ext'
15566 shlibpath_overrides_runpath=yes
15567 shlibpath_var=DYLD_LIBRARY_PATH
15568 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15569
15570 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
15571 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15572 ;;
15573
15574 dgux*)
15575 version_type=linux # correct to gnu/linux during the next big refactor
15576 need_lib_prefix=no
15577 need_version=no
15578 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15579 soname_spec='${libname}${release}${shared_ext}$major'
15580 shlibpath_var=LD_LIBRARY_PATH
15581 ;;
15582
15583 freebsd* | dragonfly*)
15584 # DragonFly does not have aout. When/if they implement a new
15585 # versioning mechanism, adjust this.
15586 if test -x /usr/bin/objformat; then
15587 objformat=`/usr/bin/objformat`
15588 else
15589 case $host_os in
15590 freebsd[23].*) objformat=aout ;;
15591 *) objformat=elf ;;
15592 esac
15593 fi
15594 version_type=freebsd-$objformat
15595 case $version_type in
15596 freebsd-elf*)
15597 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15598 need_version=no
15599 need_lib_prefix=no
15600 ;;
15601 freebsd-*)
15602 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15603 need_version=yes
15604 ;;
15605 esac
15606 shlibpath_var=LD_LIBRARY_PATH
15607 case $host_os in
15608 freebsd2.*)
15609 shlibpath_overrides_runpath=yes
15610 ;;
15611 freebsd3.[01]* | freebsdelf3.[01]*)
15612 shlibpath_overrides_runpath=yes
15613 hardcode_into_libs=yes
15614 ;;
15615 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15616 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15617 shlibpath_overrides_runpath=no
15618 hardcode_into_libs=yes
15619 ;;
15620 *) # from 4.6 on, and DragonFly
15621 shlibpath_overrides_runpath=yes
15622 hardcode_into_libs=yes
15623 ;;
15624 esac
15625 ;;
15626
15627 gnu*)
15628 version_type=linux # correct to gnu/linux during the next big refactor
15629 need_lib_prefix=no
15630 need_version=no
15631 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15632 soname_spec='${libname}${release}${shared_ext}$major'
15633 shlibpath_var=LD_LIBRARY_PATH
15634 shlibpath_overrides_runpath=no
15635 hardcode_into_libs=yes
15636 ;;
15637
15638 haiku*)
15639 version_type=linux # correct to gnu/linux during the next big refactor
15640 need_lib_prefix=no
15641 need_version=no
15642 dynamic_linker="$host_os runtime_loader"
15643 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15644 soname_spec='${libname}${release}${shared_ext}$major'
15645 shlibpath_var=LIBRARY_PATH
15646 shlibpath_overrides_runpath=yes
15647 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15648 hardcode_into_libs=yes
15649 ;;
15650
15651 hpux9* | hpux10* | hpux11*)
15652 # Give a soname corresponding to the major version so that dld.sl refuses to
15653 # link against other versions.
15654 version_type=sunos
15655 need_lib_prefix=no
15656 need_version=no
15657 case $host_cpu in
15658 ia64*)
15659 shrext_cmds='.so'
15660 hardcode_into_libs=yes
15661 dynamic_linker="$host_os dld.so"
15662 shlibpath_var=LD_LIBRARY_PATH
15663 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15664 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15665 soname_spec='${libname}${release}${shared_ext}$major'
15666 if test "X$HPUX_IA64_MODE" = X32; then
15667 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15668 else
15669 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15670 fi
15671 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15672 ;;
15673 hppa*64*)
15674 shrext_cmds='.sl'
15675 hardcode_into_libs=yes
15676 dynamic_linker="$host_os dld.sl"
15677 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15678 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15679 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15680 soname_spec='${libname}${release}${shared_ext}$major'
15681 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15682 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15683 ;;
15684 *)
15685 shrext_cmds='.sl'
15686 dynamic_linker="$host_os dld.sl"
15687 shlibpath_var=SHLIB_PATH
15688 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15689 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15690 soname_spec='${libname}${release}${shared_ext}$major'
15691 ;;
15692 esac
15693 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15694 postinstall_cmds='chmod 555 $lib'
15695 # or fails outright, so override atomically:
15696 install_override_mode=555
15697 ;;
15698
15699 interix[3-9]*)
15700 version_type=linux # correct to gnu/linux during the next big refactor
15701 need_lib_prefix=no
15702 need_version=no
15703 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15704 soname_spec='${libname}${release}${shared_ext}$major'
15705 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15706 shlibpath_var=LD_LIBRARY_PATH
15707 shlibpath_overrides_runpath=no
15708 hardcode_into_libs=yes
15709 ;;
15710
15711 irix5* | irix6* | nonstopux*)
15712 case $host_os in
15713 nonstopux*) version_type=nonstopux ;;
15714 *)
15715 if test "$lt_cv_prog_gnu_ld" = yes; then
15716 version_type=linux # correct to gnu/linux during the next big refactor
15717 else
15718 version_type=irix
15719 fi ;;
15720 esac
15721 need_lib_prefix=no
15722 need_version=no
15723 soname_spec='${libname}${release}${shared_ext}$major'
15724 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15725 case $host_os in
15726 irix5* | nonstopux*)
15727 libsuff= shlibsuff=
15728 ;;
15729 *)
15730 case $LD in # libtool.m4 will add one of these switches to LD
15731 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15732 libsuff= shlibsuff= libmagic=32-bit;;
15733 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15734 libsuff=32 shlibsuff=N32 libmagic=N32;;
15735 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15736 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15737 *) libsuff= shlibsuff= libmagic=never-match;;
15738 esac
15739 ;;
15740 esac
15741 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15742 shlibpath_overrides_runpath=no
15743 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15744 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15745 hardcode_into_libs=yes
15746 ;;
15747
15748 # No shared lib support for Linux oldld, aout, or coff.
15749 linux*oldld* | linux*aout* | linux*coff*)
15750 dynamic_linker=no
15751 ;;
15752
15753 # This must be glibc/ELF.
15754 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15755 version_type=linux # correct to gnu/linux during the next big refactor
15756 need_lib_prefix=no
15757 need_version=no
15758 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15759 soname_spec='${libname}${release}${shared_ext}$major'
15760 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15761 shlibpath_var=LD_LIBRARY_PATH
15762 shlibpath_overrides_runpath=no
15763
15764 # Some binutils ld are patched to set DT_RUNPATH
15765 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15766 $as_echo_n "(cached) " >&6
15767 else
15768 lt_cv_shlibpath_overrides_runpath=no
15769 save_LDFLAGS=$LDFLAGS
15770 save_libdir=$libdir
15771 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
15772 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
15773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15774 /* end confdefs.h. */
15775
15776 int
15777 main ()
15778 {
15779
15780 ;
15781 return 0;
15782 }
15783 _ACEOF
15784 if ac_fn_c_try_link "$LINENO"; then :
15785 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15786 lt_cv_shlibpath_overrides_runpath=yes
15787 fi
15788 fi
15789 rm -f core conftest.err conftest.$ac_objext \
15790 conftest$ac_exeext conftest.$ac_ext
15791 LDFLAGS=$save_LDFLAGS
15792 libdir=$save_libdir
15793
15794 fi
15795
15796 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15797
15798 # This implies no fast_install, which is unacceptable.
15799 # Some rework will be needed to allow for fast_install
15800 # before this can be enabled.
15801 hardcode_into_libs=yes
15802
15803 # Add ABI-specific directories to the system library path.
15804 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
15805
15806 # Append ld.so.conf contents to the search path
15807 if test -f /etc/ld.so.conf; then
15808 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' ' '`
15809 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
15810
15811 fi
15812
15813 # We used to test for /lib/ld.so.1 and disable shared libraries on
15814 # powerpc, because MkLinux only supported shared libraries with the
15815 # GNU dynamic linker. Since this was broken with cross compilers,
15816 # most powerpc-linux boxes support dynamic linking these days and
15817 # people can always --disable-shared, the test was removed, and we
15818 # assume the GNU/Linux dynamic linker is in use.
15819 dynamic_linker='GNU/Linux ld.so'
15820 ;;
15821
15822 netbsd*)
15823 version_type=sunos
15824 need_lib_prefix=no
15825 need_version=no
15826 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15827 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15828 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15829 dynamic_linker='NetBSD (a.out) ld.so'
15830 else
15831 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15832 soname_spec='${libname}${release}${shared_ext}$major'
15833 dynamic_linker='NetBSD ld.elf_so'
15834 fi
15835 shlibpath_var=LD_LIBRARY_PATH
15836 shlibpath_overrides_runpath=yes
15837 hardcode_into_libs=yes
15838 ;;
15839
15840 newsos6)
15841 version_type=linux # correct to gnu/linux during the next big refactor
15842 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15843 shlibpath_var=LD_LIBRARY_PATH
15844 shlibpath_overrides_runpath=yes
15845 ;;
15846
15847 *nto* | *qnx*)
15848 version_type=qnx
15849 need_lib_prefix=no
15850 need_version=no
15851 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15852 soname_spec='${libname}${release}${shared_ext}$major'
15853 shlibpath_var=LD_LIBRARY_PATH
15854 shlibpath_overrides_runpath=no
15855 hardcode_into_libs=yes
15856 dynamic_linker='ldqnx.so'
15857 ;;
15858
15859 openbsd*)
15860 version_type=sunos
15861 sys_lib_dlsearch_path_spec="/usr/lib"
15862 need_lib_prefix=no
15863 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15864 case $host_os in
15865 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15866 *) need_version=no ;;
15867 esac
15868 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15869 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15870 shlibpath_var=LD_LIBRARY_PATH
15871 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15872 case $host_os in
15873 openbsd2.[89] | openbsd2.[89].*)
15874 shlibpath_overrides_runpath=no
15875 ;;
15876 *)
15877 shlibpath_overrides_runpath=yes
15878 ;;
15879 esac
15880 else
15881 shlibpath_overrides_runpath=yes
15882 fi
15883 ;;
15884
15885 os2*)
15886 libname_spec='$name'
15887 shrext_cmds=".dll"
15888 need_lib_prefix=no
15889 library_names_spec='$libname${shared_ext} $libname.a'
15890 dynamic_linker='OS/2 ld.exe'
15891 shlibpath_var=LIBPATH
15892 ;;
15893
15894 osf3* | osf4* | osf5*)
15895 version_type=osf
15896 need_lib_prefix=no
15897 need_version=no
15898 soname_spec='${libname}${release}${shared_ext}$major'
15899 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15900 shlibpath_var=LD_LIBRARY_PATH
15901 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15902 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15903 ;;
15904
15905 rdos*)
15906 dynamic_linker=no
15907 ;;
15908
15909 solaris*)
15910 version_type=linux # correct to gnu/linux during the next big refactor
15911 need_lib_prefix=no
15912 need_version=no
15913 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15914 soname_spec='${libname}${release}${shared_ext}$major'
15915 shlibpath_var=LD_LIBRARY_PATH
15916 shlibpath_overrides_runpath=yes
15917 hardcode_into_libs=yes
15918 # ldd complains unless libraries are executable
15919 postinstall_cmds='chmod +x $lib'
15920 ;;
15921
15922 sunos4*)
15923 version_type=sunos
15924 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15925 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15926 shlibpath_var=LD_LIBRARY_PATH
15927 shlibpath_overrides_runpath=yes
15928 if test "$with_gnu_ld" = yes; then
15929 need_lib_prefix=no
15930 fi
15931 need_version=yes
15932 ;;
15933
15934 sysv4 | sysv4.3*)
15935 version_type=linux # correct to gnu/linux during the next big refactor
15936 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15937 soname_spec='${libname}${release}${shared_ext}$major'
15938 shlibpath_var=LD_LIBRARY_PATH
15939 case $host_vendor in
15940 sni)
15941 shlibpath_overrides_runpath=no
15942 need_lib_prefix=no
15943 runpath_var=LD_RUN_PATH
15944 ;;
15945 siemens)
15946 need_lib_prefix=no
15947 ;;
15948 motorola)
15949 need_lib_prefix=no
15950 need_version=no
15951 shlibpath_overrides_runpath=no
15952 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15953 ;;
15954 esac
15955 ;;
15956
15957 sysv4*MP*)
15958 if test -d /usr/nec ;then
15959 version_type=linux # correct to gnu/linux during the next big refactor
15960 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15961 soname_spec='$libname${shared_ext}.$major'
15962 shlibpath_var=LD_LIBRARY_PATH
15963 fi
15964 ;;
15965
15966 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15967 version_type=freebsd-elf
15968 need_lib_prefix=no
15969 need_version=no
15970 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15971 soname_spec='${libname}${release}${shared_ext}$major'
15972 shlibpath_var=LD_LIBRARY_PATH
15973 shlibpath_overrides_runpath=yes
15974 hardcode_into_libs=yes
15975 if test "$with_gnu_ld" = yes; then
15976 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15977 else
15978 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15979 case $host_os in
15980 sco3.2v5*)
15981 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15982 ;;
15983 esac
15984 fi
15985 sys_lib_dlsearch_path_spec='/usr/lib'
15986 ;;
15987
15988 tpf*)
15989 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15990 version_type=linux # correct to gnu/linux during the next big refactor
15991 need_lib_prefix=no
15992 need_version=no
15993 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15994 shlibpath_var=LD_LIBRARY_PATH
15995 shlibpath_overrides_runpath=no
15996 hardcode_into_libs=yes
15997 ;;
15998
15999 uts4*)
16000 version_type=linux # correct to gnu/linux during the next big refactor
16001 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16002 soname_spec='${libname}${release}${shared_ext}$major'
16003 shlibpath_var=LD_LIBRARY_PATH
16004 ;;
16005
16006 *)
16007 dynamic_linker=no
16008 ;;
16009 esac
16010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16011 $as_echo "$dynamic_linker" >&6; }
16012 test "$dynamic_linker" = no && can_build_shared=no
16013
16014 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16015 if test "$GCC" = yes; then
16016 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16017 fi
16018
16019 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16020 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16021 fi
16022 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16023 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16024 fi
16025
16026
16027
16028
16029
16030
16031
16032
16033
16034
16035
16036
16037
16038
16039
16040
16041
16042
16043
16044
16045
16046
16047
16048
16049
16050
16051
16052
16053
16054
16055
16056
16057
16058
16059
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16118 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16119 hardcode_action=
16120 if test -n "$hardcode_libdir_flag_spec" ||
16121 test -n "$runpath_var" ||
16122 test "X$hardcode_automatic" = "Xyes" ; then
16123
16124 # We can hardcode non-existent directories.
16125 if test "$hardcode_direct" != no &&
16126 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16127 # have to relink, otherwise we might link with an installed library
16128 # when we should be linking with a yet-to-be-installed one
16129 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
16130 test "$hardcode_minus_L" != no; then
16131 # Linking always hardcodes the temporary library directory.
16132 hardcode_action=relink
16133 else
16134 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16135 hardcode_action=immediate
16136 fi
16137 else
16138 # We cannot hardcode anything, or else we can only hardcode existing
16139 # directories.
16140 hardcode_action=unsupported
16141 fi
16142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
16143 $as_echo "$hardcode_action" >&6; }
16144
16145 if test "$hardcode_action" = relink ||
16146 test "$inherit_rpath" = yes; then
16147 # Fast installation is not supported
16148 enable_fast_install=no
16149 elif test "$shlibpath_overrides_runpath" = yes ||
16150 test "$enable_shared" = no; then
16151 # Fast installation is not necessary
16152 enable_fast_install=needless
16153 fi
16154
16155
16156
16157
16158
16159
16160 if test "x$enable_dlopen" != xyes; then
16161 enable_dlopen=unknown
16162 enable_dlopen_self=unknown
16163 enable_dlopen_self_static=unknown
16164 else
16165 lt_cv_dlopen=no
16166 lt_cv_dlopen_libs=
16167
16168 case $host_os in
16169 beos*)
16170 lt_cv_dlopen="load_add_on"
16171 lt_cv_dlopen_libs=
16172 lt_cv_dlopen_self=yes
16173 ;;
16174
16175 mingw* | pw32* | cegcc*)
16176 lt_cv_dlopen="LoadLibrary"
16177 lt_cv_dlopen_libs=
16178 ;;
16179
16180 cygwin*)
16181 lt_cv_dlopen="dlopen"
16182 lt_cv_dlopen_libs=
16183 ;;
16184
16185 darwin*)
16186 # if libdl is installed we need to link against it
16187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
16188 $as_echo_n "checking for dlopen in -ldl... " >&6; }
16189 if ${ac_cv_lib_dl_dlopen+:} false; then :
16190 $as_echo_n "(cached) " >&6
16191 else
16192 ac_check_lib_save_LIBS=$LIBS
16193 LIBS="-ldl $LIBS"
16194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16195 /* end confdefs.h. */
16196
16197 /* Override any GCC internal prototype to avoid an error.
16198 Use char because int might match the return type of a GCC
16199 builtin and then its argument prototype would still apply. */
16200 #ifdef __cplusplus
16201 extern "C"
16202 #endif
16203 char dlopen ();
16204 int
16205 main ()
16206 {
16207 return dlopen ();
16208 ;
16209 return 0;
16210 }
16211 _ACEOF
16212 if ac_fn_c_try_link "$LINENO"; then :
16213 ac_cv_lib_dl_dlopen=yes
16214 else
16215 ac_cv_lib_dl_dlopen=no
16216 fi
16217 rm -f core conftest.err conftest.$ac_objext \
16218 conftest$ac_exeext conftest.$ac_ext
16219 LIBS=$ac_check_lib_save_LIBS
16220 fi
16221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
16222 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
16223 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
16224 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16225 else
16226
16227 lt_cv_dlopen="dyld"
16228 lt_cv_dlopen_libs=
16229 lt_cv_dlopen_self=yes
16230
16231 fi
16232
16233 ;;
16234
16235 *)
16236 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
16237 if test "x$ac_cv_func_shl_load" = xyes; then :
16238 lt_cv_dlopen="shl_load"
16239 else
16240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
16241 $as_echo_n "checking for shl_load in -ldld... " >&6; }
16242 if ${ac_cv_lib_dld_shl_load+:} false; then :
16243 $as_echo_n "(cached) " >&6
16244 else
16245 ac_check_lib_save_LIBS=$LIBS
16246 LIBS="-ldld $LIBS"
16247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16248 /* end confdefs.h. */
16249
16250 /* Override any GCC internal prototype to avoid an error.
16251 Use char because int might match the return type of a GCC
16252 builtin and then its argument prototype would still apply. */
16253 #ifdef __cplusplus
16254 extern "C"
16255 #endif
16256 char shl_load ();
16257 int
16258 main ()
16259 {
16260 return shl_load ();
16261 ;
16262 return 0;
16263 }
16264 _ACEOF
16265 if ac_fn_c_try_link "$LINENO"; then :
16266 ac_cv_lib_dld_shl_load=yes
16267 else
16268 ac_cv_lib_dld_shl_load=no
16269 fi
16270 rm -f core conftest.err conftest.$ac_objext \
16271 conftest$ac_exeext conftest.$ac_ext
16272 LIBS=$ac_check_lib_save_LIBS
16273 fi
16274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
16275 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
16276 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
16277 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
16278 else
16279 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
16280 if test "x$ac_cv_func_dlopen" = xyes; then :
16281 lt_cv_dlopen="dlopen"
16282 else
16283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
16284 $as_echo_n "checking for dlopen in -ldl... " >&6; }
16285 if ${ac_cv_lib_dl_dlopen+:} false; then :
16286 $as_echo_n "(cached) " >&6
16287 else
16288 ac_check_lib_save_LIBS=$LIBS
16289 LIBS="-ldl $LIBS"
16290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16291 /* end confdefs.h. */
16292
16293 /* Override any GCC internal prototype to avoid an error.
16294 Use char because int might match the return type of a GCC
16295 builtin and then its argument prototype would still apply. */
16296 #ifdef __cplusplus
16297 extern "C"
16298 #endif
16299 char dlopen ();
16300 int
16301 main ()
16302 {
16303 return dlopen ();
16304 ;
16305 return 0;
16306 }
16307 _ACEOF
16308 if ac_fn_c_try_link "$LINENO"; then :
16309 ac_cv_lib_dl_dlopen=yes
16310 else
16311 ac_cv_lib_dl_dlopen=no
16312 fi
16313 rm -f core conftest.err conftest.$ac_objext \
16314 conftest$ac_exeext conftest.$ac_ext
16315 LIBS=$ac_check_lib_save_LIBS
16316 fi
16317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
16318 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
16319 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
16320 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16321 else
16322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
16323 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
16324 if ${ac_cv_lib_svld_dlopen+:} false; then :
16325 $as_echo_n "(cached) " >&6
16326 else
16327 ac_check_lib_save_LIBS=$LIBS
16328 LIBS="-lsvld $LIBS"
16329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16330 /* end confdefs.h. */
16331
16332 /* Override any GCC internal prototype to avoid an error.
16333 Use char because int might match the return type of a GCC
16334 builtin and then its argument prototype would still apply. */
16335 #ifdef __cplusplus
16336 extern "C"
16337 #endif
16338 char dlopen ();
16339 int
16340 main ()
16341 {
16342 return dlopen ();
16343 ;
16344 return 0;
16345 }
16346 _ACEOF
16347 if ac_fn_c_try_link "$LINENO"; then :
16348 ac_cv_lib_svld_dlopen=yes
16349 else
16350 ac_cv_lib_svld_dlopen=no
16351 fi
16352 rm -f core conftest.err conftest.$ac_objext \
16353 conftest$ac_exeext conftest.$ac_ext
16354 LIBS=$ac_check_lib_save_LIBS
16355 fi
16356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
16357 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
16358 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
16359 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
16360 else
16361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
16362 $as_echo_n "checking for dld_link in -ldld... " >&6; }
16363 if ${ac_cv_lib_dld_dld_link+:} false; then :
16364 $as_echo_n "(cached) " >&6
16365 else
16366 ac_check_lib_save_LIBS=$LIBS
16367 LIBS="-ldld $LIBS"
16368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16369 /* end confdefs.h. */
16370
16371 /* Override any GCC internal prototype to avoid an error.
16372 Use char because int might match the return type of a GCC
16373 builtin and then its argument prototype would still apply. */
16374 #ifdef __cplusplus
16375 extern "C"
16376 #endif
16377 char dld_link ();
16378 int
16379 main ()
16380 {
16381 return dld_link ();
16382 ;
16383 return 0;
16384 }
16385 _ACEOF
16386 if ac_fn_c_try_link "$LINENO"; then :
16387 ac_cv_lib_dld_dld_link=yes
16388 else
16389 ac_cv_lib_dld_dld_link=no
16390 fi
16391 rm -f core conftest.err conftest.$ac_objext \
16392 conftest$ac_exeext conftest.$ac_ext
16393 LIBS=$ac_check_lib_save_LIBS
16394 fi
16395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
16396 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
16397 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
16398 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
16399 fi
16400
16401
16402 fi
16403
16404
16405 fi
16406
16407
16408 fi
16409
16410
16411 fi
16412
16413
16414 fi
16415
16416 ;;
16417 esac
16418
16419 if test "x$lt_cv_dlopen" != xno; then
16420 enable_dlopen=yes
16421 else
16422 enable_dlopen=no
16423 fi
16424
16425 case $lt_cv_dlopen in
16426 dlopen)
16427 save_CPPFLAGS="$CPPFLAGS"
16428 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
16429
16430 save_LDFLAGS="$LDFLAGS"
16431 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
16432
16433 save_LIBS="$LIBS"
16434 LIBS="$lt_cv_dlopen_libs $LIBS"
16435
16436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
16437 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
16438 if ${lt_cv_dlopen_self+:} false; then :
16439 $as_echo_n "(cached) " >&6
16440 else
16441 if test "$cross_compiling" = yes; then :
16442 lt_cv_dlopen_self=cross
16443 else
16444 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16445 lt_status=$lt_dlunknown
16446 cat > conftest.$ac_ext <<_LT_EOF
16447 #line $LINENO "configure"
16448 #include "confdefs.h"
16449
16450 #if HAVE_DLFCN_H
16451 #include <dlfcn.h>
16452 #endif
16453
16454 #include <stdio.h>
16455
16456 #ifdef RTLD_GLOBAL
16457 # define LT_DLGLOBAL RTLD_GLOBAL
16458 #else
16459 # ifdef DL_GLOBAL
16460 # define LT_DLGLOBAL DL_GLOBAL
16461 # else
16462 # define LT_DLGLOBAL 0
16463 # endif
16464 #endif
16465
16466 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16467 find out it does not work in some platform. */
16468 #ifndef LT_DLLAZY_OR_NOW
16469 # ifdef RTLD_LAZY
16470 # define LT_DLLAZY_OR_NOW RTLD_LAZY
16471 # else
16472 # ifdef DL_LAZY
16473 # define LT_DLLAZY_OR_NOW DL_LAZY
16474 # else
16475 # ifdef RTLD_NOW
16476 # define LT_DLLAZY_OR_NOW RTLD_NOW
16477 # else
16478 # ifdef DL_NOW
16479 # define LT_DLLAZY_OR_NOW DL_NOW
16480 # else
16481 # define LT_DLLAZY_OR_NOW 0
16482 # endif
16483 # endif
16484 # endif
16485 # endif
16486 #endif
16487
16488 /* When -fvisbility=hidden is used, assume the code has been annotated
16489 correspondingly for the symbols needed. */
16490 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
16491 int fnord () __attribute__((visibility("default")));
16492 #endif
16493
16494 int fnord () { return 42; }
16495 int main ()
16496 {
16497 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16498 int status = $lt_dlunknown;
16499
16500 if (self)
16501 {
16502 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
16503 else
16504 {
16505 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16506 else puts (dlerror ());
16507 }
16508 /* dlclose (self); */
16509 }
16510 else
16511 puts (dlerror ());
16512
16513 return status;
16514 }
16515 _LT_EOF
16516 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
16517 (eval $ac_link) 2>&5
16518 ac_status=$?
16519 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16520 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
16521 (./conftest; exit; ) >&5 2>/dev/null
16522 lt_status=$?
16523 case x$lt_status in
16524 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
16525 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
16526 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
16527 esac
16528 else :
16529 # compilation failed
16530 lt_cv_dlopen_self=no
16531 fi
16532 fi
16533 rm -fr conftest*
16534
16535
16536 fi
16537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
16538 $as_echo "$lt_cv_dlopen_self" >&6; }
16539
16540 if test "x$lt_cv_dlopen_self" = xyes; then
16541 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
16542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
16543 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
16544 if ${lt_cv_dlopen_self_static+:} false; then :
16545 $as_echo_n "(cached) " >&6
16546 else
16547 if test "$cross_compiling" = yes; then :
16548 lt_cv_dlopen_self_static=cross
16549 else
16550 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16551 lt_status=$lt_dlunknown
16552 cat > conftest.$ac_ext <<_LT_EOF
16553 #line $LINENO "configure"
16554 #include "confdefs.h"
16555
16556 #if HAVE_DLFCN_H
16557 #include <dlfcn.h>
16558 #endif
16559
16560 #include <stdio.h>
16561
16562 #ifdef RTLD_GLOBAL
16563 # define LT_DLGLOBAL RTLD_GLOBAL
16564 #else
16565 # ifdef DL_GLOBAL
16566 # define LT_DLGLOBAL DL_GLOBAL
16567 # else
16568 # define LT_DLGLOBAL 0
16569 # endif
16570 #endif
16571
16572 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16573 find out it does not work in some platform. */
16574 #ifndef LT_DLLAZY_OR_NOW
16575 # ifdef RTLD_LAZY
16576 # define LT_DLLAZY_OR_NOW RTLD_LAZY
16577 # else
16578 # ifdef DL_LAZY
16579 # define LT_DLLAZY_OR_NOW DL_LAZY
16580 # else
16581 # ifdef RTLD_NOW
16582 # define LT_DLLAZY_OR_NOW RTLD_NOW
16583 # else
16584 # ifdef DL_NOW
16585 # define LT_DLLAZY_OR_NOW DL_NOW
16586 # else
16587 # define LT_DLLAZY_OR_NOW 0
16588 # endif
16589 # endif
16590 # endif
16591 # endif
16592 #endif
16593
16594 /* When -fvisbility=hidden is used, assume the code has been annotated
16595 correspondingly for the symbols needed. */
16596 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
16597 int fnord () __attribute__((visibility("default")));
16598 #endif
16599
16600 int fnord () { return 42; }
16601 int main ()
16602 {
16603 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16604 int status = $lt_dlunknown;
16605
16606 if (self)
16607 {
16608 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
16609 else
16610 {
16611 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16612 else puts (dlerror ());
16613 }
16614 /* dlclose (self); */
16615 }
16616 else
16617 puts (dlerror ());
16618
16619 return status;
16620 }
16621 _LT_EOF
16622 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
16623 (eval $ac_link) 2>&5
16624 ac_status=$?
16625 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16626 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
16627 (./conftest; exit; ) >&5 2>/dev/null
16628 lt_status=$?
16629 case x$lt_status in
16630 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
16631 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
16632 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
16633 esac
16634 else :
16635 # compilation failed
16636 lt_cv_dlopen_self_static=no
16637 fi
16638 fi
16639 rm -fr conftest*
16640
16641
16642 fi
16643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
16644 $as_echo "$lt_cv_dlopen_self_static" >&6; }
16645 fi
16646
16647 CPPFLAGS="$save_CPPFLAGS"
16648 LDFLAGS="$save_LDFLAGS"
16649 LIBS="$save_LIBS"
16650 ;;
16651 esac
16652
16653 case $lt_cv_dlopen_self in
16654 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
16655 *) enable_dlopen_self=unknown ;;
16656 esac
16657
16658 case $lt_cv_dlopen_self_static in
16659 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
16660 *) enable_dlopen_self_static=unknown ;;
16661 esac
16662 fi
16663
16664
16665
16666
16667
16668
16669
16670
16671
16672
16673
16674
16675
16676
16677
16678
16679
16680 striplib=
16681 old_striplib=
16682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
16683 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
16684 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
16685 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16686 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16688 $as_echo "yes" >&6; }
16689 else
16690 # FIXME - insert some real tests, host_os isn't really good enough
16691 case $host_os in
16692 darwin*)
16693 if test -n "$STRIP" ; then
16694 striplib="$STRIP -x"
16695 old_striplib="$STRIP -S"
16696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16697 $as_echo "yes" >&6; }
16698 else
16699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16700 $as_echo "no" >&6; }
16701 fi
16702 ;;
16703 *)
16704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16705 $as_echo "no" >&6; }
16706 ;;
16707 esac
16708 fi
16709
16710
16711
16712
16713
16714
16715
16716
16717
16718
16719
16720
16721 # Report which library types will actually be built
16722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
16723 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
16724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
16725 $as_echo "$can_build_shared" >&6; }
16726
16727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
16728 $as_echo_n "checking whether to build shared libraries... " >&6; }
16729 test "$can_build_shared" = "no" && enable_shared=no
16730
16731 # On AIX, shared libraries and static libraries use the same namespace, and
16732 # are all built from PIC.
16733 case $host_os in
16734 aix3*)
16735 test "$enable_shared" = yes && enable_static=no
16736 if test -n "$RANLIB"; then
16737 archive_cmds="$archive_cmds~\$RANLIB \$lib"
16738 postinstall_cmds='$RANLIB $lib'
16739 fi
16740 ;;
16741
16742 aix[4-9]*)
16743 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
16744 test "$enable_shared" = yes && enable_static=no
16745 fi
16746 ;;
16747 esac
16748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
16749 $as_echo "$enable_shared" >&6; }
16750
16751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
16752 $as_echo_n "checking whether to build static libraries... " >&6; }
16753 # Make sure either enable_shared or enable_static is yes.
16754 test "$enable_shared" = yes || enable_static=yes
16755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
16756 $as_echo "$enable_static" >&6; }
16757
16758
16759
16760
16761 fi
16762 ac_ext=c
16763 ac_cpp='$CPP $CPPFLAGS'
16764 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16765 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16766 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16767
16768 CC="$lt_save_CC"
16769
16770
16771
16772
16773
16774
16775
16776
16777
16778
16779
16780
16781
16782
16783
16784 ac_config_commands="$ac_config_commands libtool"
16785
16786
16787
16788
16789 # Only expand once:
16790
16791
16792
16793 # Checks for programs.
16794 if test "x$CC" != xcc; then
16795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
16796 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
16797 else
16798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
16799 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
16800 fi
16801 set dummy $CC; ac_cc=`$as_echo "$2" |
16802 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
16803 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
16804 $as_echo_n "(cached) " >&6
16805 else
16806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16807 /* end confdefs.h. */
16808
16809 int
16810 main ()
16811 {
16812
16813 ;
16814 return 0;
16815 }
16816 _ACEOF
16817 # Make sure it works both with $CC and with simple cc.
16818 # We do the test twice because some compilers refuse to overwrite an
16819 # existing .o file with -o, though they will create one.
16820 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
16821 rm -f conftest2.*
16822 if { { case "(($ac_try" in
16823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16824 *) ac_try_echo=$ac_try;;
16825 esac
16826 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
16827 $as_echo "$ac_try_echo"; } >&5
16828 (eval "$ac_try") 2>&5
16829 ac_status=$?
16830 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16831 test $ac_status = 0; } &&
16832 test -f conftest2.$ac_objext && { { case "(($ac_try" in
16833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16834 *) ac_try_echo=$ac_try;;
16835 esac
16836 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
16837 $as_echo "$ac_try_echo"; } >&5
16838 (eval "$ac_try") 2>&5
16839 ac_status=$?
16840 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16841 test $ac_status = 0; };
16842 then
16843 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
16844 if test "x$CC" != xcc; then
16845 # Test first that cc exists at all.
16846 if { ac_try='cc -c conftest.$ac_ext >&5'
16847 { { case "(($ac_try" in
16848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16849 *) ac_try_echo=$ac_try;;
16850 esac
16851 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
16852 $as_echo "$ac_try_echo"; } >&5
16853 (eval "$ac_try") 2>&5
16854 ac_status=$?
16855 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16856 test $ac_status = 0; }; }; then
16857 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
16858 rm -f conftest2.*
16859 if { { case "(($ac_try" in
16860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16861 *) ac_try_echo=$ac_try;;
16862 esac
16863 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
16864 $as_echo "$ac_try_echo"; } >&5
16865 (eval "$ac_try") 2>&5
16866 ac_status=$?
16867 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16868 test $ac_status = 0; } &&
16869 test -f conftest2.$ac_objext && { { case "(($ac_try" in
16870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16871 *) ac_try_echo=$ac_try;;
16872 esac
16873 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
16874 $as_echo "$ac_try_echo"; } >&5
16875 (eval "$ac_try") 2>&5
16876 ac_status=$?
16877 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16878 test $ac_status = 0; };
16879 then
16880 # cc works too.
16881 :
16882 else
16883 # cc exists but doesn't like -o.
16884 eval ac_cv_prog_cc_${ac_cc}_c_o=no
16885 fi
16886 fi
16887 fi
16888 else
16889 eval ac_cv_prog_cc_${ac_cc}_c_o=no
16890 fi
16891 rm -f core conftest*
16892
16893 fi
16894 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
16895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16896 $as_echo "yes" >&6; }
16897 else
16898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16899 $as_echo "no" >&6; }
16900
16901 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
16902
16903 fi
16904
16905 # FIXME: we rely on the cache variable name because
16906 # there is no other way.
16907 set dummy $CC
16908 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
16909 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
16910 if test "$am_t" != yes; then
16911 # Losing compiler, so override with the script.
16912 # FIXME: It is wrong to rewrite CC.
16913 # But if we don't then we get into trouble of one sort or another.
16914 # A longer-term fix would be to have automake use am__CC in this case,
16915 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
16916 CC="$am_aux_dir/compile $CC"
16917 fi
16918
16919
16920
16921 if test "x$GCC" = "xyes"; then
16922 CPPFLAGS="$CPPFLAGS -Wall"
16923 fi
16924
16925
16926
16927 # Define a configure option for an alternate module directory
16928
16929 # Check whether --with-xorg-module-dir was given.
16930 if test "${with_xorg_module_dir+set}" = set; then :
16931 withval=$with_xorg_module_dir; moduledir="$withval"
16932 else
16933 moduledir="$libdir/xorg/modules"
16934 fi
16935
16936
16937 # Check whether --enable-dri was given.
16938 if test "${enable_dri+set}" = set; then :
16939 enableval=$enable_dri; DRI="$enableval"
16940 else
16941 DRI=auto
16942 fi
16943
16944
16945 # Check whether --enable-exa was given.
16946 if test "${enable_exa+set}" = set; then :
16947 enableval=$enable_exa; EXA="$enableval"
16948 else
16949 EXA=yes
16950 fi
16951
16952
16953 # Check whether --enable-kms was given.
16954 if test "${enable_kms+set}" = set; then :
16955 enableval=$enable_kms; DRM_MODE="$enableval"
16956 else
16957 DRM_MODE=yes
16958 fi
16959
16960
16961 # Store the list of server defined optional extensions in REQUIRED_MODULES
16962
16963
16964 SAVE_CFLAGS="$CFLAGS"
16965 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
16966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16967 /* end confdefs.h. */
16968
16969 #include "xorg-server.h"
16970 #if !defined RANDR
16971 #error RANDR not defined
16972 #endif
16973
16974 int
16975 main ()
16976 {
16977
16978 ;
16979 return 0;
16980 }
16981 _ACEOF
16982 if ac_fn_c_try_compile "$LINENO"; then :
16983 _EXT_CHECK=yes
16984 else
16985 _EXT_CHECK=no
16986 fi
16987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16988 CFLAGS="$SAVE_CFLAGS"
16989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if RANDR is defined" >&5
16990 $as_echo_n "checking if RANDR is defined... " >&6; }
16991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
16992 $as_echo "$_EXT_CHECK" >&6; }
16993 if test "$_EXT_CHECK" != no; then
16994 REQUIRED_MODULES="$REQUIRED_MODULES randrproto"
16995 fi
16996
16997
16998
16999 SAVE_CFLAGS="$CFLAGS"
17000 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
17001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17002 /* end confdefs.h. */
17003
17004 #include "xorg-server.h"
17005 #if !defined RENDER
17006 #error RENDER not defined
17007 #endif
17008
17009 int
17010 main ()
17011 {
17012
17013 ;
17014 return 0;
17015 }
17016 _ACEOF
17017 if ac_fn_c_try_compile "$LINENO"; then :
17018 _EXT_CHECK=yes
17019 else
17020 _EXT_CHECK=no
17021 fi
17022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17023 CFLAGS="$SAVE_CFLAGS"
17024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if RENDER is defined" >&5
17025 $as_echo_n "checking if RENDER is defined... " >&6; }
17026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
17027 $as_echo "$_EXT_CHECK" >&6; }
17028 if test "$_EXT_CHECK" != no; then
17029 REQUIRED_MODULES="$REQUIRED_MODULES renderproto"
17030 fi
17031
17032
17033
17034 SAVE_CFLAGS="$CFLAGS"
17035 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
17036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17037 /* end confdefs.h. */
17038
17039 #include "xorg-server.h"
17040 #if !defined XV
17041 #error XV not defined
17042 #endif
17043
17044 int
17045 main ()
17046 {
17047
17048 ;
17049 return 0;
17050 }
17051 _ACEOF
17052 if ac_fn_c_try_compile "$LINENO"; then :
17053 _EXT_CHECK=yes
17054 else
17055 _EXT_CHECK=no
17056 fi
17057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17058 CFLAGS="$SAVE_CFLAGS"
17059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XV is defined" >&5
17060 $as_echo_n "checking if XV is defined... " >&6; }
17061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
17062 $as_echo "$_EXT_CHECK" >&6; }
17063 if test "$_EXT_CHECK" != no; then
17064 REQUIRED_MODULES="$REQUIRED_MODULES videoproto"
17065 fi
17066
17067
17068
17069 SAVE_CFLAGS="$CFLAGS"
17070 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
17071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17072 /* end confdefs.h. */
17073
17074 #include "xorg-server.h"
17075 #if !defined DPMSExtension
17076 #error DPMSExtension not defined
17077 #endif
17078
17079 int
17080 main ()
17081 {
17082
17083 ;
17084 return 0;
17085 }
17086 _ACEOF
17087 if ac_fn_c_try_compile "$LINENO"; then :
17088 _EXT_CHECK=yes
17089 else
17090 _EXT_CHECK=no
17091 fi
17092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17093 CFLAGS="$SAVE_CFLAGS"
17094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPMSExtension is defined" >&5
17095 $as_echo_n "checking if DPMSExtension is defined... " >&6; }
17096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
17097 $as_echo "$_EXT_CHECK" >&6; }
17098 if test "$_EXT_CHECK" != no; then
17099 REQUIRED_MODULES="$REQUIRED_MODULES xextproto"
17100 fi
17101
17102
17103 # Obtain compiler/linker options for the driver dependencies
17104
17105 pkg_failed=no
17106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XORG" >&5
17107 $as_echo_n "checking for XORG... " >&6; }
17108
17109 if test -n "$XORG_CFLAGS"; then
17110 pkg_cv_XORG_CFLAGS="$XORG_CFLAGS"
17111 elif test -n "$PKG_CONFIG"; then
17112 if test -n "$PKG_CONFIG" && \
17113 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.3 xproto fontsproto \$REQUIRED_MODULES\""; } >&5
17114 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.3 xproto fontsproto $REQUIRED_MODULES") 2>&5
17115 ac_status=$?
17116 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17117 test $ac_status = 0; }; then
17118 pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.3 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
17119 else
17120 pkg_failed=yes
17121 fi
17122 else
17123 pkg_failed=untried
17124 fi
17125 if test -n "$XORG_LIBS"; then
17126 pkg_cv_XORG_LIBS="$XORG_LIBS"
17127 elif test -n "$PKG_CONFIG"; then
17128 if test -n "$PKG_CONFIG" && \
17129 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.3 xproto fontsproto \$REQUIRED_MODULES\""; } >&5
17130 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.3 xproto fontsproto $REQUIRED_MODULES") 2>&5
17131 ac_status=$?
17132 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17133 test $ac_status = 0; }; then
17134 pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.3 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
17135 else
17136 pkg_failed=yes
17137 fi
17138 else
17139 pkg_failed=untried
17140 fi
17141
17142
17143
17144 if test $pkg_failed = yes; then
17145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17146 $as_echo "no" >&6; }
17147
17148 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17149 _pkg_short_errors_supported=yes
17150 else
17151 _pkg_short_errors_supported=no
17152 fi
17153 if test $_pkg_short_errors_supported = yes; then
17154 XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xorg-server >= 1.3 xproto fontsproto $REQUIRED_MODULES" 2>&1`
17155 else
17156 XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors "xorg-server >= 1.3 xproto fontsproto $REQUIRED_MODULES" 2>&1`
17157 fi
17158 # Put the nasty error message in config.log where it belongs
17159 echo "$XORG_PKG_ERRORS" >&5
17160
17161 as_fn_error $? "Package requirements (xorg-server >= 1.3 xproto fontsproto $REQUIRED_MODULES) were not met:
17162
17163 $XORG_PKG_ERRORS
17164
17165 Consider adjusting the PKG_CONFIG_PATH environment variable if you
17166 installed software in a non-standard prefix.
17167
17168 Alternatively, you may set the environment variables XORG_CFLAGS
17169 and XORG_LIBS to avoid the need to call pkg-config.
17170 See the pkg-config man page for more details." "$LINENO" 5
17171
17172 elif test $pkg_failed = untried; then
17173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17174 $as_echo "no" >&6; }
17175 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17176 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17177 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
17178 is in your PATH or set the PKG_CONFIG environment variable to the full
17179 path to pkg-config.
17180
17181 Alternatively, you may set the environment variables XORG_CFLAGS
17182 and XORG_LIBS to avoid the need to call pkg-config.
17183 See the pkg-config man page for more details.
17184
17185 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
17186 See \`config.log' for more details" "$LINENO" 5; }
17187
17188 else
17189 XORG_CFLAGS=$pkg_cv_XORG_CFLAGS
17190 XORG_LIBS=$pkg_cv_XORG_LIBS
17191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17192 $as_echo "yes" >&6; }
17193
17194 fi
17195
17196 pkg_failed=no
17197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XEXT" >&5
17198 $as_echo_n "checking for XEXT... " >&6; }
17199
17200 if test -n "$XEXT_CFLAGS"; then
17201 pkg_cv_XEXT_CFLAGS="$XEXT_CFLAGS"
17202 elif test -n "$PKG_CONFIG"; then
17203 if test -n "$PKG_CONFIG" && \
17204 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xextproto >= 7.0.99.1\""; } >&5
17205 ($PKG_CONFIG --exists --print-errors "xextproto >= 7.0.99.1") 2>&5
17206 ac_status=$?
17207 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17208 test $ac_status = 0; }; then
17209 pkg_cv_XEXT_CFLAGS=`$PKG_CONFIG --cflags "xextproto >= 7.0.99.1" 2>/dev/null`
17210 else
17211 pkg_failed=yes
17212 fi
17213 else
17214 pkg_failed=untried
17215 fi
17216 if test -n "$XEXT_LIBS"; then
17217 pkg_cv_XEXT_LIBS="$XEXT_LIBS"
17218 elif test -n "$PKG_CONFIG"; then
17219 if test -n "$PKG_CONFIG" && \
17220 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xextproto >= 7.0.99.1\""; } >&5
17221 ($PKG_CONFIG --exists --print-errors "xextproto >= 7.0.99.1") 2>&5
17222 ac_status=$?
17223 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17224 test $ac_status = 0; }; then
17225 pkg_cv_XEXT_LIBS=`$PKG_CONFIG --libs "xextproto >= 7.0.99.1" 2>/dev/null`
17226 else
17227 pkg_failed=yes
17228 fi
17229 else
17230 pkg_failed=untried
17231 fi
17232
17233
17234
17235 if test $pkg_failed = yes; then
17236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17237 $as_echo "no" >&6; }
17238
17239 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17240 _pkg_short_errors_supported=yes
17241 else
17242 _pkg_short_errors_supported=no
17243 fi
17244 if test $_pkg_short_errors_supported = yes; then
17245 XEXT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xextproto >= 7.0.99.1" 2>&1`
17246 else
17247 XEXT_PKG_ERRORS=`$PKG_CONFIG --print-errors "xextproto >= 7.0.99.1" 2>&1`
17248 fi
17249 # Put the nasty error message in config.log where it belongs
17250 echo "$XEXT_PKG_ERRORS" >&5
17251
17252 HAVE_XEXTPROTO_71="no"
17253 elif test $pkg_failed = untried; then
17254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17255 $as_echo "no" >&6; }
17256 HAVE_XEXTPROTO_71="no"
17257 else
17258 XEXT_CFLAGS=$pkg_cv_XEXT_CFLAGS
17259 XEXT_LIBS=$pkg_cv_XEXT_LIBS
17260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17261 $as_echo "yes" >&6; }
17262 HAVE_XEXTPROTO_71="yes";
17263 $as_echo "#define HAVE_XEXTPROTO_71 1" >>confdefs.h
17264
17265 fi
17266 if test "$HAVE_XEXTPROTO_71" = "yes" ; then
17267 HAVE_XEXTPROTO_71_TRUE=
17268 HAVE_XEXTPROTO_71_FALSE='#'
17269 else
17270 HAVE_XEXTPROTO_71_TRUE='#'
17271 HAVE_XEXTPROTO_71_FALSE=
17272 fi
17273
17274
17275 # Checks for libraries.
17276
17277
17278 if test "$DRI" != no; then
17279
17280 pkg_failed=no
17281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DRI" >&5
17282 $as_echo_n "checking for DRI... " >&6; }
17283
17284 if test -n "$DRI_CFLAGS"; then
17285 pkg_cv_DRI_CFLAGS="$DRI_CFLAGS"
17286 elif test -n "$PKG_CONFIG"; then
17287 if test -n "$PKG_CONFIG" && \
17288 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 2.2 xf86driproto\""; } >&5
17289 ($PKG_CONFIG --exists --print-errors "libdrm >= 2.2 xf86driproto") 2>&5
17290 ac_status=$?
17291 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17292 test $ac_status = 0; }; then
17293 pkg_cv_DRI_CFLAGS=`$PKG_CONFIG --cflags "libdrm >= 2.2 xf86driproto" 2>/dev/null`
17294 else
17295 pkg_failed=yes
17296 fi
17297 else
17298 pkg_failed=untried
17299 fi
17300 if test -n "$DRI_LIBS"; then
17301 pkg_cv_DRI_LIBS="$DRI_LIBS"
17302 elif test -n "$PKG_CONFIG"; then
17303 if test -n "$PKG_CONFIG" && \
17304 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 2.2 xf86driproto\""; } >&5
17305 ($PKG_CONFIG --exists --print-errors "libdrm >= 2.2 xf86driproto") 2>&5
17306 ac_status=$?
17307 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17308 test $ac_status = 0; }; then
17309 pkg_cv_DRI_LIBS=`$PKG_CONFIG --libs "libdrm >= 2.2 xf86driproto" 2>/dev/null`
17310 else
17311 pkg_failed=yes
17312 fi
17313 else
17314 pkg_failed=untried
17315 fi
17316
17317
17318
17319 if test $pkg_failed = yes; then
17320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17321 $as_echo "no" >&6; }
17322
17323 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17324 _pkg_short_errors_supported=yes
17325 else
17326 _pkg_short_errors_supported=no
17327 fi
17328 if test $_pkg_short_errors_supported = yes; then
17329 DRI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libdrm >= 2.2 xf86driproto" 2>&1`
17330 else
17331 DRI_PKG_ERRORS=`$PKG_CONFIG --print-errors "libdrm >= 2.2 xf86driproto" 2>&1`
17332 fi
17333 # Put the nasty error message in config.log where it belongs
17334 echo "$DRI_PKG_ERRORS" >&5
17335
17336 as_fn_error $? "Package requirements (libdrm >= 2.2 xf86driproto) were not met:
17337
17338 $DRI_PKG_ERRORS
17339
17340 Consider adjusting the PKG_CONFIG_PATH environment variable if you
17341 installed software in a non-standard prefix.
17342
17343 Alternatively, you may set the environment variables DRI_CFLAGS
17344 and DRI_LIBS to avoid the need to call pkg-config.
17345 See the pkg-config man page for more details." "$LINENO" 5
17346
17347 elif test $pkg_failed = untried; then
17348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17349 $as_echo "no" >&6; }
17350 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17351 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17352 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
17353 is in your PATH or set the PKG_CONFIG environment variable to the full
17354 path to pkg-config.
17355
17356 Alternatively, you may set the environment variables DRI_CFLAGS
17357 and DRI_LIBS to avoid the need to call pkg-config.
17358 See the pkg-config man page for more details.
17359
17360 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
17361 See \`config.log' for more details" "$LINENO" 5; }
17362
17363 else
17364 DRI_CFLAGS=$pkg_cv_DRI_CFLAGS
17365 DRI_LIBS=$pkg_cv_DRI_LIBS
17366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17367 $as_echo "yes" >&6; }
17368
17369 fi
17370 save_CPPFLAGS="$CPPFLAGS"
17371 CPPFLAGS="$XORG_CFLAGS $DRI_CFLAGS"
17372 ac_fn_c_check_header_preproc "$LINENO" "dri.h" "ac_cv_header_dri_h"
17373 if test "x$ac_cv_header_dri_h" = xyes; then :
17374 have_dri_h="yes"
17375 else
17376 have_dri_h="no"
17377 fi
17378
17379
17380 ac_fn_c_check_header_preproc "$LINENO" "sarea.h" "ac_cv_header_sarea_h"
17381 if test "x$ac_cv_header_sarea_h" = xyes; then :
17382 have_sarea_h="yes"
17383 else
17384 have_sarea_h="no"
17385 fi
17386
17387
17388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17389 /* end confdefs.h. */
17390
17391 #include <xorg-server.h>
17392 #include <dristruct.h>
17393
17394 int
17395 main ()
17396 {
17397
17398 ;
17399 return 0;
17400 }
17401 _ACEOF
17402 if ac_fn_c_try_cpp "$LINENO"; then :
17403 have_dristruct_h="yes"
17404 else
17405 have_dristruct_h="no"
17406 fi
17407 rm -f conftest.err conftest.i conftest.$ac_ext
17408 ac_fn_c_check_header_preproc "$LINENO" "damage.h" "ac_cv_header_damage_h"
17409 if test "x$ac_cv_header_damage_h" = xyes; then :
17410 have_damage_h="yes"
17411 else
17412 have_damage_h="no"
17413 fi
17414
17415
17416 CPPFLAGS="$save_CPPFLAGS"
17417 fi
17418
17419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include DRI support" >&5
17420 $as_echo_n "checking whether to include DRI support... " >&6; }
17421 if test x$DRI = xauto; then
17422 if test "$have_dri_h" = yes -a \
17423 "$have_sarea_h" = yes -a \
17424 "$have_dristruct_h" = yes; then
17425 DRI="yes"
17426 else
17427 DRI="no"
17428 fi
17429 fi
17430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DRI" >&5
17431 $as_echo "$DRI" >&6; }
17432
17433 if test x$DRI = xyes; then
17434 DRI_TRUE=
17435 DRI_FALSE='#'
17436 else
17437 DRI_TRUE='#'
17438 DRI_FALSE=
17439 fi
17440
17441 if test "$DRI" = yes; then
17442
17443 $as_echo "#define XF86DRI 1" >>confdefs.h
17444
17445
17446 $as_echo "#define XF86DRI_DEVEL 1" >>confdefs.h
17447
17448 if test "$have_damage_h" = yes; then
17449
17450 $as_echo "#define DAMAGE 1" >>confdefs.h
17451
17452 fi
17453
17454 save_CFLAGS="$CFLAGS"
17455 CFLAGS="$XORG_CFLAGS $DRI_CFLAGS $CFLAGS"
17456 if test "$DRM_MODE" = yes; then
17457 ac_fn_c_check_header_compile "$LINENO" "xf86drmMode.h" "ac_cv_header_xf86drmMode_h" "#include <stdint.h>
17458 #include <stdlib.h>
17459 "
17460 if test "x$ac_cv_header_xf86drmMode_h" = xyes; then :
17461 DRM_MODE=yes
17462 else
17463 DRM_MODE=no
17464 fi
17465
17466
17467 if test "x$DRM_MODE" = xyes; then
17468
17469 pkg_failed=no
17470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBDRM_RADEON" >&5
17471 $as_echo_n "checking for LIBDRM_RADEON... " >&6; }
17472
17473 if test -n "$LIBDRM_RADEON_CFLAGS"; then
17474 pkg_cv_LIBDRM_RADEON_CFLAGS="$LIBDRM_RADEON_CFLAGS"
17475 elif test -n "$PKG_CONFIG"; then
17476 if test -n "$PKG_CONFIG" && \
17477 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.6.2 libdrm >= 2.4.36 libdrm_radeon\""; } >&5
17478 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.6.2 libdrm >= 2.4.36 libdrm_radeon") 2>&5
17479 ac_status=$?
17480 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17481 test $ac_status = 0; }; then
17482 pkg_cv_LIBDRM_RADEON_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.6.2 libdrm >= 2.4.36 libdrm_radeon" 2>/dev/null`
17483 else
17484 pkg_failed=yes
17485 fi
17486 else
17487 pkg_failed=untried
17488 fi
17489 if test -n "$LIBDRM_RADEON_LIBS"; then
17490 pkg_cv_LIBDRM_RADEON_LIBS="$LIBDRM_RADEON_LIBS"
17491 elif test -n "$PKG_CONFIG"; then
17492 if test -n "$PKG_CONFIG" && \
17493 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.6.2 libdrm >= 2.4.36 libdrm_radeon\""; } >&5
17494 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.6.2 libdrm >= 2.4.36 libdrm_radeon") 2>&5
17495 ac_status=$?
17496 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17497 test $ac_status = 0; }; then
17498 pkg_cv_LIBDRM_RADEON_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.6.2 libdrm >= 2.4.36 libdrm_radeon" 2>/dev/null`
17499 else
17500 pkg_failed=yes
17501 fi
17502 else
17503 pkg_failed=untried
17504 fi
17505
17506
17507
17508 if test $pkg_failed = yes; then
17509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17510 $as_echo "no" >&6; }
17511
17512 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17513 _pkg_short_errors_supported=yes
17514 else
17515 _pkg_short_errors_supported=no
17516 fi
17517 if test $_pkg_short_errors_supported = yes; then
17518 LIBDRM_RADEON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xorg-server >= 1.6.2 libdrm >= 2.4.36 libdrm_radeon" 2>&1`
17519 else
17520 LIBDRM_RADEON_PKG_ERRORS=`$PKG_CONFIG --print-errors "xorg-server >= 1.6.2 libdrm >= 2.4.36 libdrm_radeon" 2>&1`
17521 fi
17522 # Put the nasty error message in config.log where it belongs
17523 echo "$LIBDRM_RADEON_PKG_ERRORS" >&5
17524
17525 LIBDRM_RADEON=no
17526 elif test $pkg_failed = untried; then
17527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17528 $as_echo "no" >&6; }
17529 LIBDRM_RADEON=no
17530 else
17531 LIBDRM_RADEON_CFLAGS=$pkg_cv_LIBDRM_RADEON_CFLAGS
17532 LIBDRM_RADEON_LIBS=$pkg_cv_LIBDRM_RADEON_LIBS
17533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17534 $as_echo "yes" >&6; }
17535 LIBDRM_RADEON=yes
17536 fi
17537
17538 if test "x$LIBDRM_RADEON" = xyes; then
17539
17540 $as_echo "#define XF86DRM_MODE 1" >>confdefs.h
17541
17542
17543 $as_echo "#define RADEON_DRI2 1" >>confdefs.h
17544
17545 else
17546 DRM_MODE=no
17547 fi
17548
17549 pkg_failed=no
17550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBUDEV" >&5
17551 $as_echo_n "checking for LIBUDEV... " >&6; }
17552
17553 if test -n "$LIBUDEV_CFLAGS"; then
17554 pkg_cv_LIBUDEV_CFLAGS="$LIBUDEV_CFLAGS"
17555 elif test -n "$PKG_CONFIG"; then
17556 if test -n "$PKG_CONFIG" && \
17557 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libudev\""; } >&5
17558 ($PKG_CONFIG --exists --print-errors "libudev") 2>&5
17559 ac_status=$?
17560 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17561 test $ac_status = 0; }; then
17562 pkg_cv_LIBUDEV_CFLAGS=`$PKG_CONFIG --cflags "libudev" 2>/dev/null`
17563 else
17564 pkg_failed=yes
17565 fi
17566 else
17567 pkg_failed=untried
17568 fi
17569 if test -n "$LIBUDEV_LIBS"; then
17570 pkg_cv_LIBUDEV_LIBS="$LIBUDEV_LIBS"
17571 elif test -n "$PKG_CONFIG"; then
17572 if test -n "$PKG_CONFIG" && \
17573 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libudev\""; } >&5
17574 ($PKG_CONFIG --exists --print-errors "libudev") 2>&5
17575 ac_status=$?
17576 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17577 test $ac_status = 0; }; then
17578 pkg_cv_LIBUDEV_LIBS=`$PKG_CONFIG --libs "libudev" 2>/dev/null`
17579 else
17580 pkg_failed=yes
17581 fi
17582 else
17583 pkg_failed=untried
17584 fi
17585
17586
17587
17588 if test $pkg_failed = yes; then
17589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17590 $as_echo "no" >&6; }
17591
17592 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17593 _pkg_short_errors_supported=yes
17594 else
17595 _pkg_short_errors_supported=no
17596 fi
17597 if test $_pkg_short_errors_supported = yes; then
17598 LIBUDEV_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libudev" 2>&1`
17599 else
17600 LIBUDEV_PKG_ERRORS=`$PKG_CONFIG --print-errors "libudev" 2>&1`
17601 fi
17602 # Put the nasty error message in config.log where it belongs
17603 echo "$LIBUDEV_PKG_ERRORS" >&5
17604
17605 LIBUDEV=no
17606 elif test $pkg_failed = untried; then
17607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17608 $as_echo "no" >&6; }
17609 LIBUDEV=no
17610 else
17611 LIBUDEV_CFLAGS=$pkg_cv_LIBUDEV_CFLAGS
17612 LIBUDEV_LIBS=$pkg_cv_LIBUDEV_LIBS
17613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17614 $as_echo "yes" >&6; }
17615 LIBUDEV=yes
17616 fi
17617 if test "x$LIBUDEV" = xyes; then
17618
17619 $as_echo "#define HAVE_LIBUDEV 1" >>confdefs.h
17620
17621 fi
17622 fi
17623 fi
17624 CFLAGS="$save_CFLAGS"
17625 else
17626 DRM_MODE=no
17627 fi
17628 if test x$DRM_MODE = xyes; then
17629 DRM_MODE_TRUE=
17630 DRM_MODE_FALSE='#'
17631 else
17632 DRM_MODE_TRUE='#'
17633 DRM_MODE_FALSE=
17634 fi
17635
17636 if test x$LIBUDEV = xyes; then
17637 LIBUDEV_TRUE=
17638 LIBUDEV_FALSE='#'
17639 else
17640 LIBUDEV_TRUE='#'
17641 LIBUDEV_FALSE=
17642 fi
17643
17644
17645
17646 $as_echo "#define USE_XAA 1" >>confdefs.h
17647
17648
17649 # Properly handle EXA.
17650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable EXA support" >&5
17651 $as_echo_n "checking whether to enable EXA support... " >&6; }
17652 if test "x$EXA" = xyes; then
17653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17654 $as_echo "yes" >&6; }
17655
17656 SAVE_CPPFLAGS="$CPPFLAGS"
17657 CPPFLAGS="$CPPFLAGS $XORG_CFLAGS"
17658 ac_fn_c_check_header_mongrel "$LINENO" "exa.h" "ac_cv_header_exa_h" "$ac_includes_default"
17659 if test "x$ac_cv_header_exa_h" = xyes; then :
17660 have_exa_h="yes"
17661 else
17662 have_exa_h="no"
17663 fi
17664
17665
17666 CPPFLAGS="$SAVE_CPPFLAGS"
17667 else
17668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17669 $as_echo "no" >&6; }
17670 fi
17671
17672 SAVE_CPPFLAGS="$CPPFLAGS"
17673 CPPFLAGS="$CPPFLAGS $XORG_CFLAGS"
17674 if test "x$have_exa_h" = xyes; then
17675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether EXA version is at least 2.0.0" >&5
17676 $as_echo_n "checking whether EXA version is at least 2.0.0... " >&6; }
17677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17678 /* end confdefs.h. */
17679
17680 #include "exa.h"
17681 #if EXA_VERSION_MAJOR < 2
17682 #error OLD EXA!
17683 #endif
17684
17685 int
17686 main ()
17687 {
17688
17689 ;
17690 return 0;
17691 }
17692 _ACEOF
17693 if ac_fn_c_try_cpp "$LINENO"; then :
17694 USE_EXA=yes
17695 else
17696 USE_EXA=no
17697 fi
17698 rm -f conftest.err conftest.i conftest.$ac_ext
17699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_EXA" >&5
17700 $as_echo "$USE_EXA" >&6; }
17701
17702 if test "x$USE_EXA" = xyes; then
17703
17704 $as_echo "#define USE_EXA 1" >>confdefs.h
17705
17706 fi
17707 fi
17708
17709 ac_fn_c_check_decl "$LINENO" "xf86XVFillKeyHelperDrawable" "ac_cv_have_decl_xf86XVFillKeyHelperDrawable" "#include <xf86xv.h>
17710 "
17711 if test "x$ac_cv_have_decl_xf86XVFillKeyHelperDrawable" = xyes; then :
17712
17713 $as_echo "#define HAVE_XV_DRAWABLE_HELPER 1" >>confdefs.h
17714
17715 fi
17716
17717
17718 ac_fn_c_check_decl "$LINENO" "xf86ModeBandwidth" "ac_cv_have_decl_xf86ModeBandwidth" "#include \"xorg-server.h\"
17719 #include \"xf86Modes.h\"
17720 "
17721 if test "x$ac_cv_have_decl_xf86ModeBandwidth" = xyes; then :
17722
17723 $as_echo "#define HAVE_XF86MODEBANDWIDTH 1" >>confdefs.h
17724
17725 fi
17726
17727
17728 ac_fn_c_check_decl "$LINENO" "xf86_crtc_clip_video_helper" "ac_cv_have_decl_xf86_crtc_clip_video_helper" "#include <X11/Xmd.h>
17729 #include \"xorg-server.h\"
17730 #include \"xf86i2c.h\"
17731 #include \"xf86Crtc.h\"
17732 "
17733 if test "x$ac_cv_have_decl_xf86_crtc_clip_video_helper" = xyes; then :
17734
17735 $as_echo "#define HAVE_XF86CRTCCLIPVIDEOHELPER 1" >>confdefs.h
17736
17737 fi
17738
17739
17740 ac_fn_c_check_decl "$LINENO" "xf86RotateFreeShadow" "ac_cv_have_decl_xf86RotateFreeShadow" "#include <xorg-server.h>
17741 #include <windowstr.h>
17742 #include <xf86Crtc.h>
17743 "
17744 if test "x$ac_cv_have_decl_xf86RotateFreeShadow" = xyes; then :
17745
17746 $as_echo "#define HAVE_FREE_SHADOW 1" >>confdefs.h
17747
17748 fi
17749
17750
17751 ac_fn_c_check_decl "$LINENO" "pci_device_enable" "ac_cv_have_decl_pci_device_enable" "#include <pciaccess.h>
17752 "
17753 if test "x$ac_cv_have_decl_pci_device_enable" = xyes; then :
17754
17755 $as_echo "#define HAVE_PCI_DEVICE_ENABLE 1" >>confdefs.h
17756
17757 fi
17758
17759
17760 ac_fn_c_check_decl "$LINENO" "XSERVER_LIBPCIACCESS" "ac_cv_have_decl_XSERVER_LIBPCIACCESS" "#include \"xorg-server.h\"
17761 "
17762 if test "x$ac_cv_have_decl_XSERVER_LIBPCIACCESS" = xyes; then :
17763 XSERVER_LIBPCIACCESS=yes
17764 else
17765 XSERVER_LIBPCIACCESS=no
17766 fi
17767
17768
17769 for ac_header in list.h
17770 do :
17771 ac_fn_c_check_header_compile "$LINENO" "list.h" "ac_cv_header_list_h" "#include <X11/Xdefs.h>
17772 #include \"xorg-server.h\"
17773 "
17774 if test "x$ac_cv_header_list_h" = xyes; then :
17775 cat >>confdefs.h <<_ACEOF
17776 #define HAVE_LIST_H 1
17777 _ACEOF
17778 have_list_h="yes"
17779 else
17780 have_list_h="no"
17781 fi
17782
17783 done
17784
17785
17786 if test "x$have_list_h" = xyes; then
17787 ac_fn_c_check_decl "$LINENO" "xorg_list_init" "ac_cv_have_decl_xorg_list_init" "#include <X11/Xdefs.h>
17788 #include \"xorg-server.h\"
17789 #include \"list.h\"
17790 "
17791 if test "x$ac_cv_have_decl_xorg_list_init" = xyes; then :
17792
17793 $as_echo "#define HAVE_XORG_LIST 1" >>confdefs.h
17794
17795 fi
17796
17797 fi
17798
17799 CPPFLAGS="$SAVE_CPPFLAGS"
17800
17801 if test "x$USE_EXA" = xyes; then
17802 USE_EXA_TRUE=
17803 USE_EXA_FALSE='#'
17804 else
17805 USE_EXA_TRUE='#'
17806 USE_EXA_FALSE=
17807 fi
17808
17809
17810 if test "x$LIBDRM_RADEON" = xyes; then
17811 XF86DRM_MODE_TRUE=
17812 XF86DRM_MODE_FALSE='#'
17813 else
17814 XF86DRM_MODE_TRUE='#'
17815 XF86DRM_MODE_FALSE=
17816 fi
17817
17818
17819 if test "x$XSERVER_LIBPCIACCESS" = xyes; then
17820
17821 pkg_failed=no
17822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCIACCESS" >&5
17823 $as_echo_n "checking for PCIACCESS... " >&6; }
17824
17825 if test -n "$PCIACCESS_CFLAGS"; then
17826 pkg_cv_PCIACCESS_CFLAGS="$PCIACCESS_CFLAGS"
17827 elif test -n "$PKG_CONFIG"; then
17828 if test -n "$PKG_CONFIG" && \
17829 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\""; } >&5
17830 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5
17831 ac_status=$?
17832 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17833 test $ac_status = 0; }; then
17834 pkg_cv_PCIACCESS_CFLAGS=`$PKG_CONFIG --cflags "pciaccess >= 0.8.0" 2>/dev/null`
17835 else
17836 pkg_failed=yes
17837 fi
17838 else
17839 pkg_failed=untried
17840 fi
17841 if test -n "$PCIACCESS_LIBS"; then
17842 pkg_cv_PCIACCESS_LIBS="$PCIACCESS_LIBS"
17843 elif test -n "$PKG_CONFIG"; then
17844 if test -n "$PKG_CONFIG" && \
17845 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\""; } >&5
17846 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5
17847 ac_status=$?
17848 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17849 test $ac_status = 0; }; then
17850 pkg_cv_PCIACCESS_LIBS=`$PKG_CONFIG --libs "pciaccess >= 0.8.0" 2>/dev/null`
17851 else
17852 pkg_failed=yes
17853 fi
17854 else
17855 pkg_failed=untried
17856 fi
17857
17858
17859
17860 if test $pkg_failed = yes; then
17861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17862 $as_echo "no" >&6; }
17863
17864 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17865 _pkg_short_errors_supported=yes
17866 else
17867 _pkg_short_errors_supported=no
17868 fi
17869 if test $_pkg_short_errors_supported = yes; then
17870 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pciaccess >= 0.8.0" 2>&1`
17871 else
17872 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --print-errors "pciaccess >= 0.8.0" 2>&1`
17873 fi
17874 # Put the nasty error message in config.log where it belongs
17875 echo "$PCIACCESS_PKG_ERRORS" >&5
17876
17877 as_fn_error $? "Package requirements (pciaccess >= 0.8.0) were not met:
17878
17879 $PCIACCESS_PKG_ERRORS
17880
17881 Consider adjusting the PKG_CONFIG_PATH environment variable if you
17882 installed software in a non-standard prefix.
17883
17884 Alternatively, you may set the environment variables PCIACCESS_CFLAGS
17885 and PCIACCESS_LIBS to avoid the need to call pkg-config.
17886 See the pkg-config man page for more details." "$LINENO" 5
17887
17888 elif test $pkg_failed = untried; then
17889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17890 $as_echo "no" >&6; }
17891 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17892 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17893 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
17894 is in your PATH or set the PKG_CONFIG environment variable to the full
17895 path to pkg-config.
17896
17897 Alternatively, you may set the environment variables PCIACCESS_CFLAGS
17898 and PCIACCESS_LIBS to avoid the need to call pkg-config.
17899 See the pkg-config man page for more details.
17900
17901 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
17902 See \`config.log' for more details" "$LINENO" 5; }
17903
17904 else
17905 PCIACCESS_CFLAGS=$pkg_cv_PCIACCESS_CFLAGS
17906 PCIACCESS_LIBS=$pkg_cv_PCIACCESS_LIBS
17907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17908 $as_echo "yes" >&6; }
17909
17910 fi
17911 XORG_CFLAGS="$XORG_CFLAGS $PCIACCESS_CFLAGS"
17912 fi
17913 if test "x$XSERVER_LIBPCIACCESS" = xyes; then
17914 XSERVER_LIBPCIACCESS_TRUE=
17915 XSERVER_LIBPCIACCESS_FALSE='#'
17916 else
17917 XSERVER_LIBPCIACCESS_TRUE='#'
17918 XSERVER_LIBPCIACCESS_FALSE=
17919 fi
17920
17921
17922 # Checks for headers/macros for byte swapping
17923 # Known variants:
17924 # <byteswap.h> bswap_16, bswap_32, bswap_64 (glibc)
17925 # <sys/endian.h> __swap16, __swap32, __swap64 (OpenBSD)
17926 # <sys/endian.h> bswap16, bswap32, bswap64 (other BSD's)
17927 # and a fallback to local macros if none of the above are found
17928
17929 # if <byteswap.h> is found, assume it's the correct version
17930 for ac_header in byteswap.h
17931 do :
17932 ac_fn_c_check_header_mongrel "$LINENO" "byteswap.h" "ac_cv_header_byteswap_h" "$ac_includes_default"
17933 if test "x$ac_cv_header_byteswap_h" = xyes; then :
17934 cat >>confdefs.h <<_ACEOF
17935 #define HAVE_BYTESWAP_H 1
17936 _ACEOF
17937
17938 fi
17939
17940 done
17941
17942
17943 # if <sys/endian.h> is found, have to check which version
17944 ac_fn_c_check_header_mongrel "$LINENO" "sys/endian.h" "ac_cv_header_sys_endian_h" "$ac_includes_default"
17945 if test "x$ac_cv_header_sys_endian_h" = xyes; then :
17946 HAVE_SYS_ENDIAN_H="yes"
17947 else
17948 HAVE_SYS_ENDIAN_H="no"
17949 fi
17950
17951
17952
17953 if test "x$HAVE_SYS_ENDIAN_H" = "xyes" ; then
17954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __swap16 variant of <sys/endian.h> byteswapping macros" >&5
17955 $as_echo_n "checking for __swap16 variant of <sys/endian.h> byteswapping macros... " >&6; }
17956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17957 /* end confdefs.h. */
17958
17959 #include <sys/types.h>
17960 #include <sys/endian.h>
17961
17962 int
17963 main ()
17964 {
17965
17966 int a = 1, b;
17967 b = __swap16(a);
17968
17969 ;
17970 return 0;
17971 }
17972
17973 _ACEOF
17974 if ac_fn_c_try_link "$LINENO"; then :
17975 SYS_ENDIAN__SWAP='yes'
17976 else
17977 SYS_ENDIAN__SWAP='no'
17978 fi
17979 rm -f core conftest.err conftest.$ac_objext \
17980 conftest$ac_exeext conftest.$ac_ext
17981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SYS_ENDIAN__SWAP" >&5
17982 $as_echo "$SYS_ENDIAN__SWAP" >&6; }
17983
17984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bswap16 variant of <sys/endian.h> byteswapping macros" >&5
17985 $as_echo_n "checking for bswap16 variant of <sys/endian.h> byteswapping macros... " >&6; }
17986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17987 /* end confdefs.h. */
17988
17989 #include <sys/types.h>
17990 #include <sys/endian.h>
17991
17992 int
17993 main ()
17994 {
17995
17996 int a = 1, b;
17997 b = bswap16(a);
17998
17999 ;
18000 return 0;
18001 }
18002
18003 _ACEOF
18004 if ac_fn_c_try_link "$LINENO"; then :
18005 SYS_ENDIAN_BSWAP='yes'
18006 else
18007 SYS_ENDIAN_BSWAP='no'
18008 fi
18009 rm -f core conftest.err conftest.$ac_objext \
18010 conftest$ac_exeext conftest.$ac_ext
18011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SYS_ENDIAN_BSWAP" >&5
18012 $as_echo "$SYS_ENDIAN_BSWAP" >&6; }
18013
18014 if test "$SYS_ENDIAN_BSWAP" = "yes" ; then
18015 USE_SYS_ENDIAN_H=yes
18016 BSWAP=bswap
18017 else
18018 if test "$SYS_ENDIAN__SWAP" = "yes" ; then
18019 USE_SYS_ENDIAN_H=yes
18020 BSWAP=__swap
18021 else
18022 USE_SYS_ENDIAN_H=no
18023 fi
18024 fi
18025
18026 if test "$USE_SYS_ENDIAN_H" = "yes" ; then
18027
18028 $as_echo "#define USE_SYS_ENDIAN_H 1" >>confdefs.h
18029
18030
18031 cat >>confdefs.h <<_ACEOF
18032 #define bswap_16 ${BSWAP}16
18033 _ACEOF
18034
18035
18036 cat >>confdefs.h <<_ACEOF
18037 #define bswap_32 ${BSWAP}32
18038 _ACEOF
18039
18040
18041 cat >>confdefs.h <<_ACEOF
18042 #define bswap_64 ${BSWAP}64
18043 _ACEOF
18044
18045 fi
18046 fi
18047
18048 case $host_os in
18049 *linux*)
18050
18051 $as_echo "#define FGL_LINUX 1" >>confdefs.h
18052 ;;
18053 esac
18054
18055
18056
18057 DRIVER_NAME=ati
18058
18059
18060 { $as_echo "$as_me:${as_lineno-$LINENO}: The atimisc sub-driver has been split out to xf86-video-mach64:
18061 git://anongit.freedesktop.org/git/xorg/driver/xf86-video-mach64
18062 Please install that driver as well for mach64-based cards.
18063 " >&5
18064 $as_echo "$as_me: The atimisc sub-driver has been split out to xf86-video-mach64:
18065 git://anongit.freedesktop.org/git/xorg/driver/xf86-video-mach64
18066 Please install that driver as well for mach64-based cards.
18067 " >&6;}
18068
18069 { $as_echo "$as_me:${as_lineno-$LINENO}: The r128 sub-driver has been split out to xf86-video-r128:
18070 git://anongit.freedesktop.org/git/xorg/driver/xf86-video-r128
18071 Please install that driver as well for rage128-based cards.
18072 " >&5
18073 $as_echo "$as_me: The r128 sub-driver has been split out to xf86-video-r128:
18074 git://anongit.freedesktop.org/git/xorg/driver/xf86-video-r128
18075 Please install that driver as well for rage128-based cards.
18076 " >&6;}
18077
18078 ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile"
18079
18080 cat >confcache <<\_ACEOF
18081 # This file is a shell script that caches the results of configure
18082 # tests run on this system so they can be shared between configure
18083 # scripts and configure runs, see configure's option --config-cache.
18084 # It is not useful on other systems. If it contains results you don't
18085 # want to keep, you may remove or edit it.
18086 #
18087 # config.status only pays attention to the cache file if you give it
18088 # the --recheck option to rerun configure.
18089 #
18090 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18091 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18092 # following values.
18093
18094 _ACEOF
18095
18096 # The following way of writing the cache mishandles newlines in values,
18097 # but we know of no workaround that is simple, portable, and efficient.
18098 # So, we kill variables containing newlines.
18099 # Ultrix sh set writes to stderr and can't be redirected directly,
18100 # and sets the high bit in the cache file unless we assign to the vars.
18101 (
18102 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18103 eval ac_val=\$$ac_var
18104 case $ac_val in #(
18105 *${as_nl}*)
18106 case $ac_var in #(
18107 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18108 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18109 esac
18110 case $ac_var in #(
18111 _ | IFS | as_nl) ;; #(
18112 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18113 *) { eval $ac_var=; unset $ac_var;} ;;
18114 esac ;;
18115 esac
18116 done
18117
18118 (set) 2>&1 |
18119 case $as_nl`(ac_space=' '; set) 2>&1` in #(
18120 *${as_nl}ac_space=\ *)
18121 # `set' does not quote correctly, so add quotes: double-quote
18122 # substitution turns \\\\ into \\, and sed turns \\ into \.
18123 sed -n \
18124 "s/'/'\\\\''/g;
18125 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18126 ;; #(
18127 *)
18128 # `set' quotes correctly as required by POSIX, so do not add quotes.
18129 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18130 ;;
18131 esac |
18132 sort
18133 ) |
18134 sed '
18135 /^ac_cv_env_/b end
18136 t clear
18137 :clear
18138 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18139 t end
18140 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18141 :end' >>confcache
18142 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18143 if test -w "$cache_file"; then
18144 if test "x$cache_file" != "x/dev/null"; then
18145 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18146 $as_echo "$as_me: updating cache $cache_file" >&6;}
18147 if test ! -f "$cache_file" || test -h "$cache_file"; then
18148 cat confcache >"$cache_file"
18149 else
18150 case $cache_file in #(
18151 */* | ?:*)
18152 mv -f confcache "$cache_file"$$ &&
18153 mv -f "$cache_file"$$ "$cache_file" ;; #(
18154 *)
18155 mv -f confcache "$cache_file" ;;
18156 esac
18157 fi
18158 fi
18159 else
18160 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18161 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18162 fi
18163 fi
18164 rm -f confcache
18165
18166 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18167 # Let make expand exec_prefix.
18168 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18169
18170 DEFS=-DHAVE_CONFIG_H
18171
18172 ac_libobjs=
18173 ac_ltlibobjs=
18174 U=
18175 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18176 # 1. Remove the extension, and $U if already installed.
18177 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18178 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18179 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
18180 # will be set to the directory where LIBOBJS objects are built.
18181 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18182 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18183 done
18184 LIBOBJS=$ac_libobjs
18185
18186 LTLIBOBJS=$ac_ltlibobjs
18187
18188
18189 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
18190 as_fn_error $? "conditional \"AMDEP\" was never defined.
18191 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18192 fi
18193 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18194 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
18195 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18196 fi
18197 if test -n "$EXEEXT"; then
18198 am__EXEEXT_TRUE=
18199 am__EXEEXT_FALSE='#'
18200 else
18201 am__EXEEXT_TRUE='#'
18202 am__EXEEXT_FALSE=
18203 fi
18204
18205 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
18206 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
18207 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18208 fi
18209 if test -z "${HAVE_XEXTPROTO_71_TRUE}" && test -z "${HAVE_XEXTPROTO_71_FALSE}"; then
18210 as_fn_error $? "conditional \"HAVE_XEXTPROTO_71\" was never defined.
18211 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18212 fi
18213 if test -z "${DRI_TRUE}" && test -z "${DRI_FALSE}"; then
18214 as_fn_error $? "conditional \"DRI\" was never defined.
18215 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18216 fi
18217 if test -z "${DRM_MODE_TRUE}" && test -z "${DRM_MODE_FALSE}"; then
18218 as_fn_error $? "conditional \"DRM_MODE\" was never defined.
18219 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18220 fi
18221 if test -z "${LIBUDEV_TRUE}" && test -z "${LIBUDEV_FALSE}"; then
18222 as_fn_error $? "conditional \"LIBUDEV\" was never defined.
18223 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18224 fi
18225 if test -z "${USE_EXA_TRUE}" && test -z "${USE_EXA_FALSE}"; then
18226 as_fn_error $? "conditional \"USE_EXA\" was never defined.
18227 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18228 fi
18229 if test -z "${XF86DRM_MODE_TRUE}" && test -z "${XF86DRM_MODE_FALSE}"; then
18230 as_fn_error $? "conditional \"XF86DRM_MODE\" was never defined.
18231 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18232 fi
18233 if test -z "${XSERVER_LIBPCIACCESS_TRUE}" && test -z "${XSERVER_LIBPCIACCESS_FALSE}"; then
18234 as_fn_error $? "conditional \"XSERVER_LIBPCIACCESS\" was never defined.
18235 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18236 fi
18237
18238 : "${CONFIG_STATUS=./config.status}"
18239 ac_write_fail=0
18240 ac_clean_files_save=$ac_clean_files
18241 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18242 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18243 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18244 as_write_fail=0
18245 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18246 #! $SHELL
18247 # Generated by $as_me.
18248 # Run this file to recreate the current configuration.
18249 # Compiler output produced by configure, useful for debugging
18250 # configure, is in config.log if it exists.
18251
18252 debug=false
18253 ac_cs_recheck=false
18254 ac_cs_silent=false
18255
18256 SHELL=\${CONFIG_SHELL-$SHELL}
18257 export SHELL
18258 _ASEOF
18259 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18260 ## -------------------- ##
18261 ## M4sh Initialization. ##
18262 ## -------------------- ##
18263
18264 # Be more Bourne compatible
18265 DUALCASE=1; export DUALCASE # for MKS sh
18266 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18267 emulate sh
18268 NULLCMD=:
18269 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18270 # is contrary to our usage. Disable this feature.
18271 alias -g '${1+"$@"}'='"$@"'
18272 setopt NO_GLOB_SUBST
18273 else
18274 case `(set -o) 2>/dev/null` in #(
18275 *posix*) :
18276 set -o posix ;; #(
18277 *) :
18278 ;;
18279 esac
18280 fi
18281
18282
18283 as_nl='
18284 '
18285 export as_nl
18286 # Printing a long string crashes Solaris 7 /usr/bin/printf.
18287 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18288 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18289 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18290 # Prefer a ksh shell builtin over an external printf program on Solaris,
18291 # but without wasting forks for bash or zsh.
18292 if test -z "$BASH_VERSION$ZSH_VERSION" \
18293 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18294 as_echo='print -r --'
18295 as_echo_n='print -rn --'
18296 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18297 as_echo='printf %s\n'
18298 as_echo_n='printf %s'
18299 else
18300 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18301 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18302 as_echo_n='/usr/ucb/echo -n'
18303 else
18304 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18305 as_echo_n_body='eval
18306 arg=$1;
18307 case $arg in #(
18308 *"$as_nl"*)
18309 expr "X$arg" : "X\\(.*\\)$as_nl";
18310 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18311 esac;
18312 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18313 '
18314 export as_echo_n_body
18315 as_echo_n='sh -c $as_echo_n_body as_echo'
18316 fi
18317 export as_echo_body
18318 as_echo='sh -c $as_echo_body as_echo'
18319 fi
18320
18321 # The user is always right.
18322 if test "${PATH_SEPARATOR+set}" != set; then
18323 PATH_SEPARATOR=:
18324 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18325 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18326 PATH_SEPARATOR=';'
18327 }
18328 fi
18329
18330
18331 # IFS
18332 # We need space, tab and new line, in precisely that order. Quoting is
18333 # there to prevent editors from complaining about space-tab.
18334 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
18335 # splitting by setting IFS to empty value.)
18336 IFS=" "" $as_nl"
18337
18338 # Find who we are. Look in the path if we contain no directory separator.
18339 as_myself=
18340 case $0 in #((
18341 *[\\/]* ) as_myself=$0 ;;
18342 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18343 for as_dir in $PATH
18344 do
18345 IFS=$as_save_IFS
18346 test -z "$as_dir" && as_dir=.
18347 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18348 done
18349 IFS=$as_save_IFS
18350
18351 ;;
18352 esac
18353 # We did not find ourselves, most probably we were run as `sh COMMAND'
18354 # in which case we are not to be found in the path.
18355 if test "x$as_myself" = x; then
18356 as_myself=$0
18357 fi
18358 if test ! -f "$as_myself"; then
18359 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18360 exit 1
18361 fi
18362
18363 # Unset variables that we do not need and which cause bugs (e.g. in
18364 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
18365 # suppresses any "Segmentation fault" message there. '((' could
18366 # trigger a bug in pdksh 5.2.14.
18367 for as_var in BASH_ENV ENV MAIL MAILPATH
18368 do eval test x\${$as_var+set} = xset \
18369 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18370 done
18371 PS1='$ '
18372 PS2='> '
18373 PS4='+ '
18374
18375 # NLS nuisances.
18376 LC_ALL=C
18377 export LC_ALL
18378 LANGUAGE=C
18379 export LANGUAGE
18380
18381 # CDPATH.
18382 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18383
18384
18385 # as_fn_error STATUS ERROR [LINENO LOG_FD]
18386 # ----------------------------------------
18387 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18388 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18389 # script with STATUS, using 1 if that was 0.
18390 as_fn_error ()
18391 {
18392 as_status=$1; test $as_status -eq 0 && as_status=1
18393 if test "$4"; then
18394 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18395 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
18396 fi
18397 $as_echo "$as_me: error: $2" >&2
18398 as_fn_exit $as_status
18399 } # as_fn_error
18400
18401
18402 # as_fn_set_status STATUS
18403 # -----------------------
18404 # Set $? to STATUS, without forking.
18405 as_fn_set_status ()
18406 {
18407 return $1
18408 } # as_fn_set_status
18409
18410 # as_fn_exit STATUS
18411 # -----------------
18412 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18413 as_fn_exit ()
18414 {
18415 set +e
18416 as_fn_set_status $1
18417 exit $1
18418 } # as_fn_exit
18419
18420 # as_fn_unset VAR
18421 # ---------------
18422 # Portably unset VAR.
18423 as_fn_unset ()
18424 {
18425 { eval $1=; unset $1;}
18426 }
18427 as_unset=as_fn_unset
18428 # as_fn_append VAR VALUE
18429 # ----------------------
18430 # Append the text in VALUE to the end of the definition contained in VAR. Take
18431 # advantage of any shell optimizations that allow amortized linear growth over
18432 # repeated appends, instead of the typical quadratic growth present in naive
18433 # implementations.
18434 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
18435 eval 'as_fn_append ()
18436 {
18437 eval $1+=\$2
18438 }'
18439 else
18440 as_fn_append ()
18441 {
18442 eval $1=\$$1\$2
18443 }
18444 fi # as_fn_append
18445
18446 # as_fn_arith ARG...
18447 # ------------------
18448 # Perform arithmetic evaluation on the ARGs, and store the result in the
18449 # global $as_val. Take advantage of shells that can avoid forks. The arguments
18450 # must be portable across $(()) and expr.
18451 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
18452 eval 'as_fn_arith ()
18453 {
18454 as_val=$(( $* ))
18455 }'
18456 else
18457 as_fn_arith ()
18458 {
18459 as_val=`expr "$@" || test $? -eq 1`
18460 }
18461 fi # as_fn_arith
18462
18463
18464 if expr a : '\(a\)' >/dev/null 2>&1 &&
18465 test "X`expr 00001 : '.*\(...\)'`" = X001; then
18466 as_expr=expr
18467 else
18468 as_expr=false
18469 fi
18470
18471 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18472 as_basename=basename
18473 else
18474 as_basename=false
18475 fi
18476
18477 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18478 as_dirname=dirname
18479 else
18480 as_dirname=false
18481 fi
18482
18483 as_me=`$as_basename -- "$0" ||
18484 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18485 X"$0" : 'X\(//\)$' \| \
18486 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18487 $as_echo X/"$0" |
18488 sed '/^.*\/\([^/][^/]*\)\/*$/{
18489 s//\1/
18490 q
18491 }
18492 /^X\/\(\/\/\)$/{
18493 s//\1/
18494 q
18495 }
18496 /^X\/\(\/\).*/{
18497 s//\1/
18498 q
18499 }
18500 s/.*/./; q'`
18501
18502 # Avoid depending upon Character Ranges.
18503 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18504 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18505 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18506 as_cr_digits='0123456789'
18507 as_cr_alnum=$as_cr_Letters$as_cr_digits
18508
18509 ECHO_C= ECHO_N= ECHO_T=
18510 case `echo -n x` in #(((((
18511 -n*)
18512 case `echo 'xy\c'` in
18513 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
18514 xy) ECHO_C='\c';;
18515 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
18516 ECHO_T=' ';;
18517 esac;;
18518 *)
18519 ECHO_N='-n';;
18520 esac
18521
18522 rm -f conf$$ conf$$.exe conf$$.file
18523 if test -d conf$$.dir; then
18524 rm -f conf$$.dir/conf$$.file
18525 else
18526 rm -f conf$$.dir
18527 mkdir conf$$.dir 2>/dev/null
18528 fi
18529 if (echo >conf$$.file) 2>/dev/null; then
18530 if ln -s conf$$.file conf$$ 2>/dev/null; then
18531 as_ln_s='ln -s'
18532 # ... but there are two gotchas:
18533 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18534 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18535 # In both cases, we have to default to `cp -p'.
18536 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18537 as_ln_s='cp -p'
18538 elif ln conf$$.file conf$$ 2>/dev/null; then
18539 as_ln_s=ln
18540 else
18541 as_ln_s='cp -p'
18542 fi
18543 else
18544 as_ln_s='cp -p'
18545 fi
18546 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18547 rmdir conf$$.dir 2>/dev/null
18548
18549
18550 # as_fn_mkdir_p
18551 # -------------
18552 # Create "$as_dir" as a directory, including parents if necessary.
18553 as_fn_mkdir_p ()
18554 {
18555
18556 case $as_dir in #(
18557 -*) as_dir=./$as_dir;;
18558 esac
18559 test -d "$as_dir" || eval $as_mkdir_p || {
18560 as_dirs=
18561 while :; do
18562 case $as_dir in #(
18563 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18564 *) as_qdir=$as_dir;;
18565 esac
18566 as_dirs="'$as_qdir' $as_dirs"
18567 as_dir=`$as_dirname -- "$as_dir" ||
18568 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18569 X"$as_dir" : 'X\(//\)[^/]' \| \
18570 X"$as_dir" : 'X\(//\)$' \| \
18571 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18572 $as_echo X"$as_dir" |
18573 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18574 s//\1/
18575 q
18576 }
18577 /^X\(\/\/\)[^/].*/{
18578 s//\1/
18579 q
18580 }
18581 /^X\(\/\/\)$/{
18582 s//\1/
18583 q
18584 }
18585 /^X\(\/\).*/{
18586 s//\1/
18587 q
18588 }
18589 s/.*/./; q'`
18590 test -d "$as_dir" && break
18591 done
18592 test -z "$as_dirs" || eval "mkdir $as_dirs"
18593 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
18594
18595
18596 } # as_fn_mkdir_p
18597 if mkdir -p . 2>/dev/null; then
18598 as_mkdir_p='mkdir -p "$as_dir"'
18599 else
18600 test -d ./-p && rmdir ./-p
18601 as_mkdir_p=false
18602 fi
18603
18604 if test -x / >/dev/null 2>&1; then
18605 as_test_x='test -x'
18606 else
18607 if ls -dL / >/dev/null 2>&1; then
18608 as_ls_L_option=L
18609 else
18610 as_ls_L_option=
18611 fi
18612 as_test_x='
18613 eval sh -c '\''
18614 if test -d "$1"; then
18615 test -d "$1/.";
18616 else
18617 case $1 in #(
18618 -*)set "./$1";;
18619 esac;
18620 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
18621 ???[sx]*):;;*)false;;esac;fi
18622 '\'' sh
18623 '
18624 fi
18625 as_executable_p=$as_test_x
18626
18627 # Sed expression to map a string onto a valid CPP name.
18628 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18629
18630 # Sed expression to map a string onto a valid variable name.
18631 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18632
18633
18634 exec 6>&1
18635 ## ----------------------------------- ##
18636 ## Main body of $CONFIG_STATUS script. ##
18637 ## ----------------------------------- ##
18638 _ASEOF
18639 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
18640
18641 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18642 # Save the log message, to keep $0 and so on meaningful, and to
18643 # report actual input values of CONFIG_FILES etc. instead of their
18644 # values after options handling.
18645 ac_log="
18646 This file was extended by xf86-video-ati $as_me 6.14.6, which was
18647 generated by GNU Autoconf 2.68. Invocation command line was
18648
18649 CONFIG_FILES = $CONFIG_FILES
18650 CONFIG_HEADERS = $CONFIG_HEADERS
18651 CONFIG_LINKS = $CONFIG_LINKS
18652 CONFIG_COMMANDS = $CONFIG_COMMANDS
18653 $ $0 $@
18654
18655 on `(hostname || uname -n) 2>/dev/null | sed 1q`
18656 "
18657
18658 _ACEOF
18659
18660 case $ac_config_files in *"
18661 "*) set x $ac_config_files; shift; ac_config_files=$*;;
18662 esac
18663
18664 case $ac_config_headers in *"
18665 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
18666 esac
18667
18668
18669 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18670 # Files that config.status was made for.
18671 config_files="$ac_config_files"
18672 config_headers="$ac_config_headers"
18673 config_commands="$ac_config_commands"
18674
18675 _ACEOF
18676
18677 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18678 ac_cs_usage="\
18679 \`$as_me' instantiates files and other configuration actions
18680 from templates according to the current configuration. Unless the files
18681 and actions are specified as TAGs, all are instantiated by default.
18682
18683 Usage: $0 [OPTION]... [TAG]...
18684
18685 -h, --help print this help, then exit
18686 -V, --version print version number and configuration settings, then exit
18687 --config print configuration, then exit
18688 -q, --quiet, --silent
18689 do not print progress messages
18690 -d, --debug don't remove temporary files
18691 --recheck update $as_me by reconfiguring in the same conditions
18692 --file=FILE[:TEMPLATE]
18693 instantiate the configuration file FILE
18694 --header=FILE[:TEMPLATE]
18695 instantiate the configuration header FILE
18696
18697 Configuration files:
18698 $config_files
18699
18700 Configuration headers:
18701 $config_headers
18702
18703 Configuration commands:
18704 $config_commands
18705
18706 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
18707
18708 _ACEOF
18709 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18710 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
18711 ac_cs_version="\\
18712 xf86-video-ati config.status 6.14.6
18713 configured by $0, generated by GNU Autoconf 2.68,
18714 with options \\"\$ac_cs_config\\"
18715
18716 Copyright (C) 2010 Free Software Foundation, Inc.
18717 This config.status script is free software; the Free Software Foundation
18718 gives unlimited permission to copy, distribute and modify it."
18719
18720 ac_pwd='$ac_pwd'
18721 srcdir='$srcdir'
18722 INSTALL='$INSTALL'
18723 MKDIR_P='$MKDIR_P'
18724 AWK='$AWK'
18725 test -n "\$AWK" || AWK=awk
18726 _ACEOF
18727
18728 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18729 # The default lists apply if the user does not specify any file.
18730 ac_need_defaults=:
18731 while test $# != 0
18732 do
18733 case $1 in
18734 --*=?*)
18735 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18736 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18737 ac_shift=:
18738 ;;
18739 --*=)
18740 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18741 ac_optarg=
18742 ac_shift=:
18743 ;;
18744 *)
18745 ac_option=$1
18746 ac_optarg=$2
18747 ac_shift=shift
18748 ;;
18749 esac
18750
18751 case $ac_option in
18752 # Handling of the options.
18753 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18754 ac_cs_recheck=: ;;
18755 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18756 $as_echo "$ac_cs_version"; exit ;;
18757 --config | --confi | --conf | --con | --co | --c )
18758 $as_echo "$ac_cs_config"; exit ;;
18759 --debug | --debu | --deb | --de | --d | -d )
18760 debug=: ;;
18761 --file | --fil | --fi | --f )
18762 $ac_shift
18763 case $ac_optarg in
18764 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18765 '') as_fn_error $? "missing file argument" ;;
18766 esac
18767 as_fn_append CONFIG_FILES " '$ac_optarg'"
18768 ac_need_defaults=false;;
18769 --header | --heade | --head | --hea )
18770 $ac_shift
18771 case $ac_optarg in
18772 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18773 esac
18774 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
18775 ac_need_defaults=false;;
18776 --he | --h)
18777 # Conflict between --help and --header
18778 as_fn_error $? "ambiguous option: \`$1'
18779 Try \`$0 --help' for more information.";;
18780 --help | --hel | -h )
18781 $as_echo "$ac_cs_usage"; exit ;;
18782 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18783 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18784 ac_cs_silent=: ;;
18785
18786 # This is an error.
18787 -*) as_fn_error $? "unrecognized option: \`$1'
18788 Try \`$0 --help' for more information." ;;
18789
18790 *) as_fn_append ac_config_targets " $1"
18791 ac_need_defaults=false ;;
18792
18793 esac
18794 shift
18795 done
18796
18797 ac_configure_extra_args=
18798
18799 if $ac_cs_silent; then
18800 exec 6>/dev/null
18801 ac_configure_extra_args="$ac_configure_extra_args --silent"
18802 fi
18803
18804 _ACEOF
18805 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18806 if \$ac_cs_recheck; then
18807 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18808 shift
18809 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18810 CONFIG_SHELL='$SHELL'
18811 export CONFIG_SHELL
18812 exec "\$@"
18813 fi
18814
18815 _ACEOF
18816 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18817 exec 5>>config.log
18818 {
18819 echo
18820 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18821 ## Running $as_me. ##
18822 _ASBOX
18823 $as_echo "$ac_log"
18824 } >&5
18825
18826 _ACEOF
18827 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18828 #
18829 # INIT-COMMANDS
18830 #
18831 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
18832
18833
18834 # The HP-UX ksh and POSIX shell print the target directory to stdout
18835 # if CDPATH is set.
18836 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18837
18838 sed_quote_subst='$sed_quote_subst'
18839 double_quote_subst='$double_quote_subst'
18840 delay_variable_subst='$delay_variable_subst'
18841 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
18842 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
18843 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
18844 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
18845 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
18846 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
18847 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
18848 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
18849 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
18850 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
18851 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
18852 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
18853 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
18854 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
18855 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
18856 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
18857 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
18858 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
18859 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
18860 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
18861 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
18862 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
18863 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
18864 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
18865 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
18866 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
18867 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
18868 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
18869 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
18870 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
18871 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
18872 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
18873 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
18874 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
18875 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
18876 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
18877 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
18878 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
18879 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
18880 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
18881 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
18882 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
18883 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
18884 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
18885 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
18886 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18887 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18888 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
18889 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
18890 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
18891 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
18892 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
18893 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
18894 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
18895 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
18896 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
18897 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"`'
18898 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
18899 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
18900 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
18901 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
18902 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
18903 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
18904 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
18905 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
18906 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
18907 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
18908 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
18909 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
18910 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
18911 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
18912 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
18913 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
18914 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
18915 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
18916 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18917 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
18918 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
18919 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
18920 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
18921 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
18922 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
18923 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18924 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
18925 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18926 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
18927 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18928 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
18929 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
18930 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
18931 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
18932 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
18933 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
18934 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
18935 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
18936 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
18937 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
18938 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
18939 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
18940 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
18941 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
18942 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
18943 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
18944 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
18945 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
18946 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
18947 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
18948 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
18949 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
18950 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
18951 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
18952 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
18953 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
18954 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
18955 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
18956 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
18957 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
18958 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18959 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18960 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
18961 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
18962 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
18963 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
18964 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
18965 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
18966 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
18967 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
18968 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
18969 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
18970 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
18971
18972 LTCC='$LTCC'
18973 LTCFLAGS='$LTCFLAGS'
18974 compiler='$compiler_DEFAULT'
18975
18976 # A function that is used when there is no print builtin or printf.
18977 func_fallback_echo ()
18978 {
18979 eval 'cat <<_LTECHO_EOF
18980 \$1
18981 _LTECHO_EOF'
18982 }
18983
18984 # Quote evaled strings.
18985 for var in SHELL \
18986 ECHO \
18987 PATH_SEPARATOR \
18988 SED \
18989 GREP \
18990 EGREP \
18991 FGREP \
18992 LD \
18993 NM \
18994 LN_S \
18995 lt_SP2NL \
18996 lt_NL2SP \
18997 reload_flag \
18998 OBJDUMP \
18999 deplibs_check_method \
19000 file_magic_cmd \
19001 file_magic_glob \
19002 want_nocaseglob \
19003 DLLTOOL \
19004 sharedlib_from_linklib_cmd \
19005 AR \
19006 AR_FLAGS \
19007 archiver_list_spec \
19008 STRIP \
19009 RANLIB \
19010 CC \
19011 CFLAGS \
19012 compiler \
19013 lt_cv_sys_global_symbol_pipe \
19014 lt_cv_sys_global_symbol_to_cdecl \
19015 lt_cv_sys_global_symbol_to_c_name_address \
19016 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
19017 nm_file_list_spec \
19018 lt_prog_compiler_no_builtin_flag \
19019 lt_prog_compiler_pic \
19020 lt_prog_compiler_wl \
19021 lt_prog_compiler_static \
19022 lt_cv_prog_compiler_c_o \
19023 need_locks \
19024 MANIFEST_TOOL \
19025 DSYMUTIL \
19026 NMEDIT \
19027 LIPO \
19028 OTOOL \
19029 OTOOL64 \
19030 shrext_cmds \
19031 export_dynamic_flag_spec \
19032 whole_archive_flag_spec \
19033 compiler_needs_object \
19034 with_gnu_ld \
19035 allow_undefined_flag \
19036 no_undefined_flag \
19037 hardcode_libdir_flag_spec \
19038 hardcode_libdir_separator \
19039 exclude_expsyms \
19040 include_expsyms \
19041 file_list_spec \
19042 variables_saved_for_relink \
19043 libname_spec \
19044 library_names_spec \
19045 soname_spec \
19046 install_override_mode \
19047 finish_eval \
19048 old_striplib \
19049 striplib; do
19050 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19051 *[\\\\\\\`\\"\\\$]*)
19052 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
19053 ;;
19054 *)
19055 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19056 ;;
19057 esac
19058 done
19059
19060 # Double-quote double-evaled strings.
19061 for var in reload_cmds \
19062 old_postinstall_cmds \
19063 old_postuninstall_cmds \
19064 old_archive_cmds \
19065 extract_expsyms_cmds \
19066 old_archive_from_new_cmds \
19067 old_archive_from_expsyms_cmds \
19068 archive_cmds \
19069 archive_expsym_cmds \
19070 module_cmds \
19071 module_expsym_cmds \
19072 export_symbols_cmds \
19073 prelink_cmds \
19074 postlink_cmds \
19075 postinstall_cmds \
19076 postuninstall_cmds \
19077 finish_cmds \
19078 sys_lib_search_path_spec \
19079 sys_lib_dlsearch_path_spec; do
19080 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19081 *[\\\\\\\`\\"\\\$]*)
19082 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
19083 ;;
19084 *)
19085 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19086 ;;
19087 esac
19088 done
19089
19090 ac_aux_dir='$ac_aux_dir'
19091 xsi_shell='$xsi_shell'
19092 lt_shell_append='$lt_shell_append'
19093
19094 # See if we are running on zsh, and set the options which allow our
19095 # commands through without removal of \ escapes INIT.
19096 if test -n "\${ZSH_VERSION+set}" ; then
19097 setopt NO_GLOB_SUBST
19098 fi
19099
19100
19101 PACKAGE='$PACKAGE'
19102 VERSION='$VERSION'
19103 TIMESTAMP='$TIMESTAMP'
19104 RM='$RM'
19105 ofile='$ofile'
19106
19107
19108
19109
19110 _ACEOF
19111
19112 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19113
19114 # Handling of arguments.
19115 for ac_config_target in $ac_config_targets
19116 do
19117 case $ac_config_target in
19118 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
19119 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
19120 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
19121 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19122 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
19123 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
19124
19125 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19126 esac
19127 done
19128
19129
19130 # If the user did not use the arguments to specify the items to instantiate,
19131 # then the envvar interface is used. Set only those that are not.
19132 # We use the long form for the default assignment because of an extremely
19133 # bizarre bug on SunOS 4.1.3.
19134 if $ac_need_defaults; then
19135 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19136 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19137 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19138 fi
19139
19140 # Have a temporary directory for convenience. Make it in the build tree
19141 # simply because there is no reason against having it here, and in addition,
19142 # creating and moving files from /tmp can sometimes cause problems.
19143 # Hook for its removal unless debugging.
19144 # Note that there is a small window in which the directory will not be cleaned:
19145 # after its creation but before its name has been assigned to `$tmp'.
19146 $debug ||
19147 {
19148 tmp= ac_tmp=
19149 trap 'exit_status=$?
19150 : "${ac_tmp:=$tmp}"
19151 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19152 ' 0
19153 trap 'as_fn_exit 1' 1 2 13 15
19154 }
19155 # Create a (secure) tmp directory for tmp files.
19156
19157 {
19158 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19159 test -d "$tmp"
19160 } ||
19161 {
19162 tmp=./conf$$-$RANDOM
19163 (umask 077 && mkdir "$tmp")
19164 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19165 ac_tmp=$tmp
19166
19167 # Set up the scripts for CONFIG_FILES section.
19168 # No need to generate them if there are no CONFIG_FILES.
19169 # This happens for instance with `./config.status config.h'.
19170 if test -n "$CONFIG_FILES"; then
19171
19172
19173 ac_cr=`echo X | tr X '\015'`
19174 # On cygwin, bash can eat \r inside `` if the user requested igncr.
19175 # But we know of no other shell where ac_cr would be empty at this
19176 # point, so we can use a bashism as a fallback.
19177 if test "x$ac_cr" = x; then
19178 eval ac_cr=\$\'\\r\'
19179 fi
19180 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19181 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19182 ac_cs_awk_cr='\\r'
19183 else
19184 ac_cs_awk_cr=$ac_cr
19185 fi
19186
19187 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19188 _ACEOF
19189
19190
19191 {
19192 echo "cat >conf$$subs.awk <<_ACEOF" &&
19193 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19194 echo "_ACEOF"
19195 } >conf$$subs.sh ||
19196 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19197 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19198 ac_delim='%!_!# '
19199 for ac_last_try in false false false false false :; do
19200 . ./conf$$subs.sh ||
19201 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19202
19203 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19204 if test $ac_delim_n = $ac_delim_num; then
19205 break
19206 elif $ac_last_try; then
19207 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19208 else
19209 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19210 fi
19211 done
19212 rm -f conf$$subs.sh
19213
19214 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19215 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
19216 _ACEOF
19217 sed -n '
19218 h
19219 s/^/S["/; s/!.*/"]=/
19220 p
19221 g
19222 s/^[^!]*!//
19223 :repl
19224 t repl
19225 s/'"$ac_delim"'$//
19226 t delim
19227 :nl
19228 h
19229 s/\(.\{148\}\)..*/\1/
19230 t more1
19231 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19232 p
19233 n
19234 b repl
19235 :more1
19236 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19237 p
19238 g
19239 s/.\{148\}//
19240 t nl
19241 :delim
19242 h
19243 s/\(.\{148\}\)..*/\1/
19244 t more2
19245 s/["\\]/\\&/g; s/^/"/; s/$/"/
19246 p
19247 b
19248 :more2
19249 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19250 p
19251 g
19252 s/.\{148\}//
19253 t delim
19254 ' <conf$$subs.awk | sed '
19255 /^[^""]/{
19256 N
19257 s/\n//
19258 }
19259 ' >>$CONFIG_STATUS || ac_write_fail=1
19260 rm -f conf$$subs.awk
19261 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19262 _ACAWK
19263 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
19264 for (key in S) S_is_set[key] = 1
19265 FS = ""
19266
19267 }
19268 {
19269 line = $ 0
19270 nfields = split(line, field, "@")
19271 substed = 0
19272 len = length(field[1])
19273 for (i = 2; i < nfields; i++) {
19274 key = field[i]
19275 keylen = length(key)
19276 if (S_is_set[key]) {
19277 value = S[key]
19278 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19279 len += length(value) + length(field[++i])
19280 substed = 1
19281 } else
19282 len += 1 + keylen
19283 }
19284
19285 print line
19286 }
19287
19288 _ACAWK
19289 _ACEOF
19290 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19291 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19292 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19293 else
19294 cat
19295 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
19296 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
19297 _ACEOF
19298
19299 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19300 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
19301 # trailing colons and then remove the whole line if VPATH becomes empty
19302 # (actually we leave an empty line to preserve line numbers).
19303 if test "x$srcdir" = x.; then
19304 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
19305 h
19306 s///
19307 s/^/:/
19308 s/[ ]*$/:/
19309 s/:\$(srcdir):/:/g
19310 s/:\${srcdir}:/:/g
19311 s/:@srcdir@:/:/g
19312 s/^:*//
19313 s/:*$//
19314 x
19315 s/\(=[ ]*\).*/\1/
19316 G
19317 s/\n//
19318 s/^[^=]*=[ ]*$//
19319 }'
19320 fi
19321
19322 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19323 fi # test -n "$CONFIG_FILES"
19324
19325 # Set up the scripts for CONFIG_HEADERS section.
19326 # No need to generate them if there are no CONFIG_HEADERS.
19327 # This happens for instance with `./config.status Makefile'.
19328 if test -n "$CONFIG_HEADERS"; then
19329 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
19330 BEGIN {
19331 _ACEOF
19332
19333 # Transform confdefs.h into an awk script `defines.awk', embedded as
19334 # here-document in config.status, that substitutes the proper values into
19335 # config.h.in to produce config.h.
19336
19337 # Create a delimiter string that does not exist in confdefs.h, to ease
19338 # handling of long lines.
19339 ac_delim='%!_!# '
19340 for ac_last_try in false false :; do
19341 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
19342 if test -z "$ac_tt"; then
19343 break
19344 elif $ac_last_try; then
19345 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
19346 else
19347 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19348 fi
19349 done
19350
19351 # For the awk script, D is an array of macro values keyed by name,
19352 # likewise P contains macro parameters if any. Preserve backslash
19353 # newline sequences.
19354
19355 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19356 sed -n '
19357 s/.\{148\}/&'"$ac_delim"'/g
19358 t rset
19359 :rset
19360 s/^[ ]*#[ ]*define[ ][ ]*/ /
19361 t def
19362 d
19363 :def
19364 s/\\$//
19365 t bsnl
19366 s/["\\]/\\&/g
19367 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19368 D["\1"]=" \3"/p
19369 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
19370 d
19371 :bsnl
19372 s/["\\]/\\&/g
19373 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19374 D["\1"]=" \3\\\\\\n"\\/p
19375 t cont
19376 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
19377 t cont
19378 d
19379 :cont
19380 n
19381 s/.\{148\}/&'"$ac_delim"'/g
19382 t clear
19383 :clear
19384 s/\\$//
19385 t bsnlc
19386 s/["\\]/\\&/g; s/^/"/; s/$/"/p
19387 d
19388 :bsnlc
19389 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
19390 b cont
19391 ' <confdefs.h | sed '
19392 s/'"$ac_delim"'/"\\\
19393 "/g' >>$CONFIG_STATUS || ac_write_fail=1
19394
19395 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19396 for (key in D) D_is_set[key] = 1
19397 FS = ""
19398 }
19399 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
19400 line = \$ 0
19401 split(line, arg, " ")
19402 if (arg[1] == "#") {
19403 defundef = arg[2]
19404 mac1 = arg[3]
19405 } else {
19406 defundef = substr(arg[1], 2)
19407 mac1 = arg[2]
19408 }
19409 split(mac1, mac2, "(") #)
19410 macro = mac2[1]
19411 prefix = substr(line, 1, index(line, defundef) - 1)
19412 if (D_is_set[macro]) {
19413 # Preserve the white space surrounding the "#".
19414 print prefix "define", macro P[macro] D[macro]
19415 next
19416 } else {
19417 # Replace #undef with comments. This is necessary, for example,
19418 # in the case of _POSIX_SOURCE, which is predefined and required
19419 # on some systems where configure will not decide to define it.
19420 if (defundef == "undef") {
19421 print "/*", prefix defundef, macro, "*/"
19422 next
19423 }
19424 }
19425 }
19426 { print }
19427 _ACAWK
19428 _ACEOF
19429 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19430 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
19431 fi # test -n "$CONFIG_HEADERS"
19432
19433
19434 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
19435 shift
19436 for ac_tag
19437 do
19438 case $ac_tag in
19439 :[FHLC]) ac_mode=$ac_tag; continue;;
19440 esac
19441 case $ac_mode$ac_tag in
19442 :[FHL]*:*);;
19443 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
19444 :[FH]-) ac_tag=-:-;;
19445 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19446 esac
19447 ac_save_IFS=$IFS
19448 IFS=:
19449 set x $ac_tag
19450 IFS=$ac_save_IFS
19451 shift
19452 ac_file=$1
19453 shift
19454
19455 case $ac_mode in
19456 :L) ac_source=$1;;
19457 :[FH])
19458 ac_file_inputs=
19459 for ac_f
19460 do
19461 case $ac_f in
19462 -) ac_f="$ac_tmp/stdin";;
19463 *) # Look for the file first in the build tree, then in the source tree
19464 # (if the path is not absolute). The absolute path cannot be DOS-style,
19465 # because $ac_f cannot contain `:'.
19466 test -f "$ac_f" ||
19467 case $ac_f in
19468 [\\/$]*) false;;
19469 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19470 esac ||
19471 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
19472 esac
19473 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19474 as_fn_append ac_file_inputs " '$ac_f'"
19475 done
19476
19477 # Let's still pretend it is `configure' which instantiates (i.e., don't
19478 # use $as_me), people would be surprised to read:
19479 # /* config.h. Generated by config.status. */
19480 configure_input='Generated from '`
19481 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19482 `' by configure.'
19483 if test x"$ac_file" != x-; then
19484 configure_input="$ac_file. $configure_input"
19485 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19486 $as_echo "$as_me: creating $ac_file" >&6;}
19487 fi
19488 # Neutralize special characters interpreted by sed in replacement strings.
19489 case $configure_input in #(
19490 *\&* | *\|* | *\\* )
19491 ac_sed_conf_input=`$as_echo "$configure_input" |
19492 sed 's/[\\\\&|]/\\\\&/g'`;; #(
19493 *) ac_sed_conf_input=$configure_input;;
19494 esac
19495
19496 case $ac_tag in
19497 *:-:* | *:-) cat >"$ac_tmp/stdin" \
19498 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
19499 esac
19500 ;;
19501 esac
19502
19503 ac_dir=`$as_dirname -- "$ac_file" ||
19504 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19505 X"$ac_file" : 'X\(//\)[^/]' \| \
19506 X"$ac_file" : 'X\(//\)$' \| \
19507 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19508 $as_echo X"$ac_file" |
19509 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19510 s//\1/
19511 q
19512 }
19513 /^X\(\/\/\)[^/].*/{
19514 s//\1/
19515 q
19516 }
19517 /^X\(\/\/\)$/{
19518 s//\1/
19519 q
19520 }
19521 /^X\(\/\).*/{
19522 s//\1/
19523 q
19524 }
19525 s/.*/./; q'`
19526 as_dir="$ac_dir"; as_fn_mkdir_p
19527 ac_builddir=.
19528
19529 case "$ac_dir" in
19530 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19531 *)
19532 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19533 # A ".." for each directory in $ac_dir_suffix.
19534 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19535 case $ac_top_builddir_sub in
19536 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19537 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19538 esac ;;
19539 esac
19540 ac_abs_top_builddir=$ac_pwd
19541 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19542 # for backward compatibility:
19543 ac_top_builddir=$ac_top_build_prefix
19544
19545 case $srcdir in
19546 .) # We are building in place.
19547 ac_srcdir=.
19548 ac_top_srcdir=$ac_top_builddir_sub
19549 ac_abs_top_srcdir=$ac_pwd ;;
19550 [\\/]* | ?:[\\/]* ) # Absolute name.
19551 ac_srcdir=$srcdir$ac_dir_suffix;
19552 ac_top_srcdir=$srcdir
19553 ac_abs_top_srcdir=$srcdir ;;
19554 *) # Relative name.
19555 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19556 ac_top_srcdir=$ac_top_build_prefix$srcdir
19557 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19558 esac
19559 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19560
19561
19562 case $ac_mode in
19563 :F)
19564 #
19565 # CONFIG_FILE
19566 #
19567
19568 case $INSTALL in
19569 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19570 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19571 esac
19572 ac_MKDIR_P=$MKDIR_P
19573 case $MKDIR_P in
19574 [\\/$]* | ?:[\\/]* ) ;;
19575 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
19576 esac
19577 _ACEOF
19578
19579 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19580 # If the template does not know about datarootdir, expand it.
19581 # FIXME: This hack should be removed a few years after 2.60.
19582 ac_datarootdir_hack=; ac_datarootdir_seen=
19583 ac_sed_dataroot='
19584 /datarootdir/ {
19585 p
19586 q
19587 }
19588 /@datadir@/p
19589 /@docdir@/p
19590 /@infodir@/p
19591 /@localedir@/p
19592 /@mandir@/p'
19593 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19594 *datarootdir*) ac_datarootdir_seen=yes;;
19595 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19596 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19597 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19598 _ACEOF
19599 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19600 ac_datarootdir_hack='
19601 s&@datadir@&$datadir&g
19602 s&@docdir@&$docdir&g
19603 s&@infodir@&$infodir&g
19604 s&@localedir@&$localedir&g
19605 s&@mandir@&$mandir&g
19606 s&\\\${datarootdir}&$datarootdir&g' ;;
19607 esac
19608 _ACEOF
19609
19610 # Neutralize VPATH when `$srcdir' = `.'.
19611 # Shell code in configure.ac might set extrasub.
19612 # FIXME: do we really want to maintain this feature?
19613 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19614 ac_sed_extra="$ac_vpsub
19615 $extrasub
19616 _ACEOF
19617 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19618 :t
19619 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19620 s|@configure_input@|$ac_sed_conf_input|;t t
19621 s&@top_builddir@&$ac_top_builddir_sub&;t t
19622 s&@top_build_prefix@&$ac_top_build_prefix&;t t
19623 s&@srcdir@&$ac_srcdir&;t t
19624 s&@abs_srcdir@&$ac_abs_srcdir&;t t
19625 s&@top_srcdir@&$ac_top_srcdir&;t t
19626 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19627 s&@builddir@&$ac_builddir&;t t
19628 s&@abs_builddir@&$ac_abs_builddir&;t t
19629 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19630 s&@INSTALL@&$ac_INSTALL&;t t
19631 s&@MKDIR_P@&$ac_MKDIR_P&;t t
19632 $ac_datarootdir_hack
19633 "
19634 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
19635 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19636
19637 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19638 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
19639 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
19640 "$ac_tmp/out"`; test -z "$ac_out"; } &&
19641 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19642 which seems to be undefined. Please make sure it is defined" >&5
19643 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19644 which seems to be undefined. Please make sure it is defined" >&2;}
19645
19646 rm -f "$ac_tmp/stdin"
19647 case $ac_file in
19648 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19649 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
19650 esac \
19651 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19652 ;;
19653 :H)
19654 #
19655 # CONFIG_HEADER
19656 #
19657 if test x"$ac_file" != x-; then
19658 {
19659 $as_echo "/* $configure_input */" \
19660 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
19661 } >"$ac_tmp/config.h" \
19662 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19663 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
19664 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
19665 $as_echo "$as_me: $ac_file is unchanged" >&6;}
19666 else
19667 rm -f "$ac_file"
19668 mv "$ac_tmp/config.h" "$ac_file" \
19669 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19670 fi
19671 else
19672 $as_echo "/* $configure_input */" \
19673 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
19674 || as_fn_error $? "could not create -" "$LINENO" 5
19675 fi
19676 # Compute "$ac_file"'s index in $config_headers.
19677 _am_arg="$ac_file"
19678 _am_stamp_count=1
19679 for _am_header in $config_headers :; do
19680 case $_am_header in
19681 $_am_arg | $_am_arg:* )
19682 break ;;
19683 * )
19684 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
19685 esac
19686 done
19687 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
19688 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19689 X"$_am_arg" : 'X\(//\)[^/]' \| \
19690 X"$_am_arg" : 'X\(//\)$' \| \
19691 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
19692 $as_echo X"$_am_arg" |
19693 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19694 s//\1/
19695 q
19696 }
19697 /^X\(\/\/\)[^/].*/{
19698 s//\1/
19699 q
19700 }
19701 /^X\(\/\/\)$/{
19702 s//\1/
19703 q
19704 }
19705 /^X\(\/\).*/{
19706 s//\1/
19707 q
19708 }
19709 s/.*/./; q'`/stamp-h$_am_stamp_count
19710 ;;
19711
19712 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
19713 $as_echo "$as_me: executing $ac_file commands" >&6;}
19714 ;;
19715 esac
19716
19717
19718 case $ac_file$ac_mode in
19719 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
19720 # Autoconf 2.62 quotes --file arguments for eval, but not when files
19721 # are listed without --file. Let's play safe and only enable the eval
19722 # if we detect the quoting.
19723 case $CONFIG_FILES in
19724 *\'*) eval set x "$CONFIG_FILES" ;;
19725 *) set x $CONFIG_FILES ;;
19726 esac
19727 shift
19728 for mf
19729 do
19730 # Strip MF so we end up with the name of the file.
19731 mf=`echo "$mf" | sed -e 's/:.*$//'`
19732 # Check whether this is an Automake generated Makefile or not.
19733 # We used to match only the files named `Makefile.in', but
19734 # some people rename them; so instead we look at the file content.
19735 # Grep'ing the first line is not enough: some people post-process
19736 # each Makefile.in and add a new line on top of each file to say so.
19737 # Grep'ing the whole file is not good either: AIX grep has a line
19738 # limit of 2048, but all sed's we know have understand at least 4000.
19739 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
19740 dirpart=`$as_dirname -- "$mf" ||
19741 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19742 X"$mf" : 'X\(//\)[^/]' \| \
19743 X"$mf" : 'X\(//\)$' \| \
19744 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
19745 $as_echo X"$mf" |
19746 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19747 s//\1/
19748 q
19749 }
19750 /^X\(\/\/\)[^/].*/{
19751 s//\1/
19752 q
19753 }
19754 /^X\(\/\/\)$/{
19755 s//\1/
19756 q
19757 }
19758 /^X\(\/\).*/{
19759 s//\1/
19760 q
19761 }
19762 s/.*/./; q'`
19763 else
19764 continue
19765 fi
19766 # Extract the definition of DEPDIR, am__include, and am__quote
19767 # from the Makefile without running `make'.
19768 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
19769 test -z "$DEPDIR" && continue
19770 am__include=`sed -n 's/^am__include = //p' < "$mf"`
19771 test -z "am__include" && continue
19772 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
19773 # When using ansi2knr, U may be empty or an underscore; expand it
19774 U=`sed -n 's/^U = //p' < "$mf"`
19775 # Find all dependency output files, they are included files with
19776 # $(DEPDIR) in their names. We invoke sed twice because it is the
19777 # simplest approach to changing $(DEPDIR) to its actual value in the
19778 # expansion.
19779 for file in `sed -n "
19780 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
19781 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
19782 # Make sure the directory exists.
19783 test -f "$dirpart/$file" && continue
19784 fdir=`$as_dirname -- "$file" ||
19785 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19786 X"$file" : 'X\(//\)[^/]' \| \
19787 X"$file" : 'X\(//\)$' \| \
19788 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
19789 $as_echo X"$file" |
19790 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19791 s//\1/
19792 q
19793 }
19794 /^X\(\/\/\)[^/].*/{
19795 s//\1/
19796 q
19797 }
19798 /^X\(\/\/\)$/{
19799 s//\1/
19800 q
19801 }
19802 /^X\(\/\).*/{
19803 s//\1/
19804 q
19805 }
19806 s/.*/./; q'`
19807 as_dir=$dirpart/$fdir; as_fn_mkdir_p
19808 # echo "creating $dirpart/$file"
19809 echo '# dummy' > "$dirpart/$file"
19810 done
19811 done
19812 }
19813 ;;
19814 "libtool":C)
19815
19816 # See if we are running on zsh, and set the options which allow our
19817 # commands through without removal of \ escapes.
19818 if test -n "${ZSH_VERSION+set}" ; then
19819 setopt NO_GLOB_SUBST
19820 fi
19821
19822 cfgfile="${ofile}T"
19823 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19824 $RM "$cfgfile"
19825
19826 cat <<_LT_EOF >> "$cfgfile"
19827 #! $SHELL
19828
19829 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
19830 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
19831 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19832 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
19833 #
19834 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
19835 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
19836 # Foundation, Inc.
19837 # Written by Gordon Matzigkeit, 1996
19838 #
19839 # This file is part of GNU Libtool.
19840 #
19841 # GNU Libtool is free software; you can redistribute it and/or
19842 # modify it under the terms of the GNU General Public License as
19843 # published by the Free Software Foundation; either version 2 of
19844 # the License, or (at your option) any later version.
19845 #
19846 # As a special exception to the GNU General Public License,
19847 # if you distribute this file as part of a program or library that
19848 # is built using GNU Libtool, you may include this file under the
19849 # same distribution terms that you use for the rest of that program.
19850 #
19851 # GNU Libtool is distributed in the hope that it will be useful,
19852 # but WITHOUT ANY WARRANTY; without even the implied warranty of
19853 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19854 # GNU General Public License for more details.
19855 #
19856 # You should have received a copy of the GNU General Public License
19857 # along with GNU Libtool; see the file COPYING. If not, a copy
19858 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
19859 # obtained by writing to the Free Software Foundation, Inc.,
19860 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19861
19862
19863 # The names of the tagged configurations supported by this script.
19864 available_tags=""
19865
19866 # ### BEGIN LIBTOOL CONFIG
19867
19868 # Whether or not to build static libraries.
19869 build_old_libs=$enable_static
19870
19871 # Which release of libtool.m4 was used?
19872 macro_version=$macro_version
19873 macro_revision=$macro_revision
19874
19875 # Whether or not to build shared libraries.
19876 build_libtool_libs=$enable_shared
19877
19878 # What type of objects to build.
19879 pic_mode=$pic_mode
19880
19881 # Whether or not to optimize for fast installation.
19882 fast_install=$enable_fast_install
19883
19884 # Shell to use when invoking shell scripts.
19885 SHELL=$lt_SHELL
19886
19887 # An echo program that protects backslashes.
19888 ECHO=$lt_ECHO
19889
19890 # The PATH separator for the build system.
19891 PATH_SEPARATOR=$lt_PATH_SEPARATOR
19892
19893 # The host system.
19894 host_alias=$host_alias
19895 host=$host
19896 host_os=$host_os
19897
19898 # The build system.
19899 build_alias=$build_alias
19900 build=$build
19901 build_os=$build_os
19902
19903 # A sed program that does not truncate output.
19904 SED=$lt_SED
19905
19906 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
19907 Xsed="\$SED -e 1s/^X//"
19908
19909 # A grep program that handles long lines.
19910 GREP=$lt_GREP
19911
19912 # An ERE matcher.
19913 EGREP=$lt_EGREP
19914
19915 # A literal string matcher.
19916 FGREP=$lt_FGREP
19917
19918 # A BSD- or MS-compatible name lister.
19919 NM=$lt_NM
19920
19921 # Whether we need soft or hard links.
19922 LN_S=$lt_LN_S
19923
19924 # What is the maximum length of a command?
19925 max_cmd_len=$max_cmd_len
19926
19927 # Object file suffix (normally "o").
19928 objext=$ac_objext
19929
19930 # Executable file suffix (normally "").
19931 exeext=$exeext
19932
19933 # whether the shell understands "unset".
19934 lt_unset=$lt_unset
19935
19936 # turn spaces into newlines.
19937 SP2NL=$lt_lt_SP2NL
19938
19939 # turn newlines into spaces.
19940 NL2SP=$lt_lt_NL2SP
19941
19942 # convert \$build file names to \$host format.
19943 to_host_file_cmd=$lt_cv_to_host_file_cmd
19944
19945 # convert \$build files to toolchain format.
19946 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
19947
19948 # An object symbol dumper.
19949 OBJDUMP=$lt_OBJDUMP
19950
19951 # Method to check whether dependent libraries are shared objects.
19952 deplibs_check_method=$lt_deplibs_check_method
19953
19954 # Command to use when deplibs_check_method = "file_magic".
19955 file_magic_cmd=$lt_file_magic_cmd
19956
19957 # How to find potential files when deplibs_check_method = "file_magic".
19958 file_magic_glob=$lt_file_magic_glob
19959
19960 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
19961 want_nocaseglob=$lt_want_nocaseglob
19962
19963 # DLL creation program.
19964 DLLTOOL=$lt_DLLTOOL
19965
19966 # Command to associate shared and link libraries.
19967 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
19968
19969 # The archiver.
19970 AR=$lt_AR
19971
19972 # Flags to create an archive.
19973 AR_FLAGS=$lt_AR_FLAGS
19974
19975 # How to feed a file listing to the archiver.
19976 archiver_list_spec=$lt_archiver_list_spec
19977
19978 # A symbol stripping program.
19979 STRIP=$lt_STRIP
19980
19981 # Commands used to install an old-style archive.
19982 RANLIB=$lt_RANLIB
19983 old_postinstall_cmds=$lt_old_postinstall_cmds
19984 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19985
19986 # Whether to use a lock for old archive extraction.
19987 lock_old_archive_extraction=$lock_old_archive_extraction
19988
19989 # A C compiler.
19990 LTCC=$lt_CC
19991
19992 # LTCC compiler flags.
19993 LTCFLAGS=$lt_CFLAGS
19994
19995 # Take the output of nm and produce a listing of raw symbols and C names.
19996 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19997
19998 # Transform the output of nm in a proper C declaration.
19999 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20000
20001 # Transform the output of nm in a C name address pair.
20002 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20003
20004 # Transform the output of nm in a C name address pair when lib prefix is needed.
20005 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
20006
20007 # Specify filename containing input files for \$NM.
20008 nm_file_list_spec=$lt_nm_file_list_spec
20009
20010 # The root where to search for dependent libraries,and in which our libraries should be installed.
20011 lt_sysroot=$lt_sysroot
20012
20013 # The name of the directory that contains temporary libtool files.
20014 objdir=$objdir
20015
20016 # Used to examine libraries when file_magic_cmd begins with "file".
20017 MAGIC_CMD=$MAGIC_CMD
20018
20019 # Must we lock files when doing compilation?
20020 need_locks=$lt_need_locks
20021
20022 # Manifest tool.
20023 MANIFEST_TOOL=$lt_MANIFEST_TOOL
20024
20025 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
20026 DSYMUTIL=$lt_DSYMUTIL
20027
20028 # Tool to change global to local symbols on Mac OS X.
20029 NMEDIT=$lt_NMEDIT
20030
20031 # Tool to manipulate fat objects and archives on Mac OS X.
20032 LIPO=$lt_LIPO
20033
20034 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
20035 OTOOL=$lt_OTOOL
20036
20037 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
20038 OTOOL64=$lt_OTOOL64
20039
20040 # Old archive suffix (normally "a").
20041 libext=$libext
20042
20043 # Shared library suffix (normally ".so").
20044 shrext_cmds=$lt_shrext_cmds
20045
20046 # The commands to extract the exported symbol list from a shared archive.
20047 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20048
20049 # Variables whose values should be saved in libtool wrapper scripts and
20050 # restored at link time.
20051 variables_saved_for_relink=$lt_variables_saved_for_relink
20052
20053 # Do we need the "lib" prefix for modules?
20054 need_lib_prefix=$need_lib_prefix
20055
20056 # Do we need a version for libraries?
20057 need_version=$need_version
20058
20059 # Library versioning type.
20060 version_type=$version_type
20061
20062 # Shared library runtime path variable.
20063 runpath_var=$runpath_var
20064
20065 # Shared library path variable.
20066 shlibpath_var=$shlibpath_var
20067
20068 # Is shlibpath searched before the hard-coded library search path?
20069 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20070
20071 # Format of library name prefix.
20072 libname_spec=$lt_libname_spec
20073
20074 # List of archive names. First name is the real one, the rest are links.
20075 # The last name is the one that the linker finds with -lNAME
20076 library_names_spec=$lt_library_names_spec
20077
20078 # The coded name of the library, if different from the real name.
20079 soname_spec=$lt_soname_spec
20080
20081 # Permission mode override for installation of shared libraries.
20082 install_override_mode=$lt_install_override_mode
20083
20084 # Command to use after installation of a shared archive.
20085 postinstall_cmds=$lt_postinstall_cmds
20086
20087 # Command to use after uninstallation of a shared archive.
20088 postuninstall_cmds=$lt_postuninstall_cmds
20089
20090 # Commands used to finish a libtool library installation in a directory.
20091 finish_cmds=$lt_finish_cmds
20092
20093 # As "finish_cmds", except a single script fragment to be evaled but
20094 # not shown.
20095 finish_eval=$lt_finish_eval
20096
20097 # Whether we should hardcode library paths into libraries.
20098 hardcode_into_libs=$hardcode_into_libs
20099
20100 # Compile-time system search path for libraries.
20101 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20102
20103 # Run-time system search path for libraries.
20104 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20105
20106 # Whether dlopen is supported.
20107 dlopen_support=$enable_dlopen
20108
20109 # Whether dlopen of programs is supported.
20110 dlopen_self=$enable_dlopen_self
20111
20112 # Whether dlopen of statically linked programs is supported.
20113 dlopen_self_static=$enable_dlopen_self_static
20114
20115 # Commands to strip libraries.
20116 old_striplib=$lt_old_striplib
20117 striplib=$lt_striplib
20118
20119
20120 # The linker used to build libraries.
20121 LD=$lt_LD
20122
20123 # How to create reloadable object files.
20124 reload_flag=$lt_reload_flag
20125 reload_cmds=$lt_reload_cmds
20126
20127 # Commands used to build an old-style archive.
20128 old_archive_cmds=$lt_old_archive_cmds
20129
20130 # A language specific compiler.
20131 CC=$lt_compiler
20132
20133 # Is the compiler the GNU compiler?
20134 with_gcc=$GCC
20135
20136 # Compiler flag to turn off builtin functions.
20137 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
20138
20139 # Additional compiler flags for building library objects.
20140 pic_flag=$lt_lt_prog_compiler_pic
20141
20142 # How to pass a linker flag through the compiler.
20143 wl=$lt_lt_prog_compiler_wl
20144
20145 # Compiler flag to prevent dynamic linking.
20146 link_static_flag=$lt_lt_prog_compiler_static
20147
20148 # Does compiler simultaneously support -c and -o options?
20149 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
20150
20151 # Whether or not to add -lc for building shared libraries.
20152 build_libtool_need_lc=$archive_cmds_need_lc
20153
20154 # Whether or not to disallow shared libs when runtime libs are static.
20155 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
20156
20157 # Compiler flag to allow reflexive dlopens.
20158 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
20159
20160 # Compiler flag to generate shared objects directly from archives.
20161 whole_archive_flag_spec=$lt_whole_archive_flag_spec
20162
20163 # Whether the compiler copes with passing no objects directly.
20164 compiler_needs_object=$lt_compiler_needs_object
20165
20166 # Create an old-style archive from a shared archive.
20167 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
20168
20169 # Create a temporary old-style archive to link instead of a shared archive.
20170 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
20171
20172 # Commands used to build a shared archive.
20173 archive_cmds=$lt_archive_cmds
20174 archive_expsym_cmds=$lt_archive_expsym_cmds
20175
20176 # Commands used to build a loadable module if different from building
20177 # a shared archive.
20178 module_cmds=$lt_module_cmds
20179 module_expsym_cmds=$lt_module_expsym_cmds
20180
20181 # Whether we are building with GNU ld or not.
20182 with_gnu_ld=$lt_with_gnu_ld
20183
20184 # Flag that allows shared libraries with undefined symbols to be built.
20185 allow_undefined_flag=$lt_allow_undefined_flag
20186
20187 # Flag that enforces no undefined symbols.
20188 no_undefined_flag=$lt_no_undefined_flag
20189
20190 # Flag to hardcode \$libdir into a binary during linking.
20191 # This must work even if \$libdir does not exist
20192 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
20193
20194 # Whether we need a single "-rpath" flag with a separated argument.
20195 hardcode_libdir_separator=$lt_hardcode_libdir_separator
20196
20197 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20198 # DIR into the resulting binary.
20199 hardcode_direct=$hardcode_direct
20200
20201 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20202 # DIR into the resulting binary and the resulting library dependency is
20203 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
20204 # library is relocated.
20205 hardcode_direct_absolute=$hardcode_direct_absolute
20206
20207 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20208 # into the resulting binary.
20209 hardcode_minus_L=$hardcode_minus_L
20210
20211 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20212 # into the resulting binary.
20213 hardcode_shlibpath_var=$hardcode_shlibpath_var
20214
20215 # Set to "yes" if building a shared library automatically hardcodes DIR
20216 # into the library and all subsequent libraries and executables linked
20217 # against it.
20218 hardcode_automatic=$hardcode_automatic
20219
20220 # Set to yes if linker adds runtime paths of dependent libraries
20221 # to runtime path list.
20222 inherit_rpath=$inherit_rpath
20223
20224 # Whether libtool must link a program against all its dependency libraries.
20225 link_all_deplibs=$link_all_deplibs
20226
20227 # Set to "yes" if exported symbols are required.
20228 always_export_symbols=$always_export_symbols
20229
20230 # The commands to list exported symbols.
20231 export_symbols_cmds=$lt_export_symbols_cmds
20232
20233 # Symbols that should not be listed in the preloaded symbols.
20234 exclude_expsyms=$lt_exclude_expsyms
20235
20236 # Symbols that must always be exported.
20237 include_expsyms=$lt_include_expsyms
20238
20239 # Commands necessary for linking programs (against libraries) with templates.
20240 prelink_cmds=$lt_prelink_cmds
20241
20242 # Commands necessary for finishing linking programs.
20243 postlink_cmds=$lt_postlink_cmds
20244
20245 # Specify filename containing input files.
20246 file_list_spec=$lt_file_list_spec
20247
20248 # How to hardcode a shared library path into an executable.
20249 hardcode_action=$hardcode_action
20250
20251 # ### END LIBTOOL CONFIG
20252
20253 _LT_EOF
20254
20255 case $host_os in
20256 aix3*)
20257 cat <<\_LT_EOF >> "$cfgfile"
20258 # AIX sometimes has problems with the GCC collect2 program. For some
20259 # reason, if we set the COLLECT_NAMES environment variable, the problems
20260 # vanish in a puff of smoke.
20261 if test "X${COLLECT_NAMES+set}" != Xset; then
20262 COLLECT_NAMES=
20263 export COLLECT_NAMES
20264 fi
20265 _LT_EOF
20266 ;;
20267 esac
20268
20269
20270 ltmain="$ac_aux_dir/ltmain.sh"
20271
20272
20273 # We use sed instead of cat because bash on DJGPP gets confused if
20274 # if finds mixed CR/LF and LF-only lines. Since sed operates in
20275 # text mode, it properly converts lines to CR/LF. This bash problem
20276 # is reportedly fixed, but why not run on old versions too?
20277 sed '$q' "$ltmain" >> "$cfgfile" \
20278 || (rm -f "$cfgfile"; exit 1)
20279
20280 if test x"$xsi_shell" = xyes; then
20281 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
20282 func_dirname ()\
20283 {\
20284 \ case ${1} in\
20285 \ */*) func_dirname_result="${1%/*}${2}" ;;\
20286 \ * ) func_dirname_result="${3}" ;;\
20287 \ esac\
20288 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
20289 && mv -f "$cfgfile.tmp" "$cfgfile" \
20290 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20291 test 0 -eq $? || _lt_function_replace_fail=:
20292
20293
20294 sed -e '/^func_basename ()$/,/^} # func_basename /c\
20295 func_basename ()\
20296 {\
20297 \ func_basename_result="${1##*/}"\
20298 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
20299 && mv -f "$cfgfile.tmp" "$cfgfile" \
20300 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20301 test 0 -eq $? || _lt_function_replace_fail=:
20302
20303
20304 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
20305 func_dirname_and_basename ()\
20306 {\
20307 \ case ${1} in\
20308 \ */*) func_dirname_result="${1%/*}${2}" ;;\
20309 \ * ) func_dirname_result="${3}" ;;\
20310 \ esac\
20311 \ func_basename_result="${1##*/}"\
20312 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
20313 && mv -f "$cfgfile.tmp" "$cfgfile" \
20314 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20315 test 0 -eq $? || _lt_function_replace_fail=:
20316
20317
20318 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
20319 func_stripname ()\
20320 {\
20321 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
20322 \ # positional parameters, so assign one to ordinary parameter first.\
20323 \ func_stripname_result=${3}\
20324 \ func_stripname_result=${func_stripname_result#"${1}"}\
20325 \ func_stripname_result=${func_stripname_result%"${2}"}\
20326 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
20327 && mv -f "$cfgfile.tmp" "$cfgfile" \
20328 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20329 test 0 -eq $? || _lt_function_replace_fail=:
20330
20331
20332 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
20333 func_split_long_opt ()\
20334 {\
20335 \ func_split_long_opt_name=${1%%=*}\
20336 \ func_split_long_opt_arg=${1#*=}\
20337 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
20338 && mv -f "$cfgfile.tmp" "$cfgfile" \
20339 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20340 test 0 -eq $? || _lt_function_replace_fail=:
20341
20342
20343 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
20344 func_split_short_opt ()\
20345 {\
20346 \ func_split_short_opt_arg=${1#??}\
20347 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
20348 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
20349 && mv -f "$cfgfile.tmp" "$cfgfile" \
20350 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20351 test 0 -eq $? || _lt_function_replace_fail=:
20352
20353
20354 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
20355 func_lo2o ()\
20356 {\
20357 \ case ${1} in\
20358 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
20359 \ *) func_lo2o_result=${1} ;;\
20360 \ esac\
20361 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
20362 && mv -f "$cfgfile.tmp" "$cfgfile" \
20363 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20364 test 0 -eq $? || _lt_function_replace_fail=:
20365
20366
20367 sed -e '/^func_xform ()$/,/^} # func_xform /c\
20368 func_xform ()\
20369 {\
20370 func_xform_result=${1%.*}.lo\
20371 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
20372 && mv -f "$cfgfile.tmp" "$cfgfile" \
20373 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20374 test 0 -eq $? || _lt_function_replace_fail=:
20375
20376
20377 sed -e '/^func_arith ()$/,/^} # func_arith /c\
20378 func_arith ()\
20379 {\
20380 func_arith_result=$(( $* ))\
20381 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
20382 && mv -f "$cfgfile.tmp" "$cfgfile" \
20383 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20384 test 0 -eq $? || _lt_function_replace_fail=:
20385
20386
20387 sed -e '/^func_len ()$/,/^} # func_len /c\
20388 func_len ()\
20389 {\
20390 func_len_result=${#1}\
20391 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
20392 && mv -f "$cfgfile.tmp" "$cfgfile" \
20393 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20394 test 0 -eq $? || _lt_function_replace_fail=:
20395
20396 fi
20397
20398 if test x"$lt_shell_append" = xyes; then
20399 sed -e '/^func_append ()$/,/^} # func_append /c\
20400 func_append ()\
20401 {\
20402 eval "${1}+=\\${2}"\
20403 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
20404 && mv -f "$cfgfile.tmp" "$cfgfile" \
20405 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20406 test 0 -eq $? || _lt_function_replace_fail=:
20407
20408
20409 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
20410 func_append_quoted ()\
20411 {\
20412 \ func_quote_for_eval "${2}"\
20413 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
20414 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
20415 && mv -f "$cfgfile.tmp" "$cfgfile" \
20416 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20417 test 0 -eq $? || _lt_function_replace_fail=:
20418
20419
20420 # Save a `func_append' function call where possible by direct use of '+='
20421 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
20422 && mv -f "$cfgfile.tmp" "$cfgfile" \
20423 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20424 test 0 -eq $? || _lt_function_replace_fail=:
20425 else
20426 # Save a `func_append' function call even when '+=' is not available
20427 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
20428 && mv -f "$cfgfile.tmp" "$cfgfile" \
20429 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20430 test 0 -eq $? || _lt_function_replace_fail=:
20431 fi
20432
20433 if test x"$_lt_function_replace_fail" = x":"; then
20434 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
20435 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
20436 fi
20437
20438
20439 mv -f "$cfgfile" "$ofile" ||
20440 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
20441 chmod +x "$ofile"
20442
20443 ;;
20444
20445 esac
20446 done # for ac_tag
20447
20448
20449 as_fn_exit 0
20450 _ACEOF
20451 ac_clean_files=$ac_clean_files_save
20452
20453 test $ac_write_fail = 0 ||
20454 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
20455
20456
20457 # configure is writing to config.log, and then calls config.status.
20458 # config.status does its own redirection, appending to config.log.
20459 # Unfortunately, on DOS this fails, as config.log is still kept open
20460 # by configure, so config.status won't be able to write to it; its
20461 # output is simply discarded. So we exec the FD to /dev/null,
20462 # effectively closing config.log, so it can be properly (re)opened and
20463 # appended to by config.status. When coming back to configure, we
20464 # need to make the FD available again.
20465 if test "$no_create" != yes; then
20466 ac_cs_success=:
20467 ac_config_status_args=
20468 test "$silent" = yes &&
20469 ac_config_status_args="$ac_config_status_args --quiet"
20470 exec 5>/dev/null
20471 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20472 exec 5>>config.log
20473 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20474 # would make configure fail if this is the last instruction.
20475 $ac_cs_success || as_fn_exit 1
20476 fi
20477 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20478 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20479 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
20480 fi
20481
20482
20483 echo ""
20484 echo " prefix: $prefix"
20485 echo " exec_prefix: $exec_prefix"
20486 echo " libdir: $libdir"
20487 echo " includedir: $includedir"
20488
20489
20490 echo ""
20491 echo " Kernel modesetting: $DRM_MODE"
20492
20493 echo ""
20494 echo " CFLAGS: $CFLAGS"
20495 echo " CXXFLAGS: $CXXFLAGS"
20496 echo " Macros: $DEFINES"
20497
20498 echo ""
20499 echo " Run '${MAKE-make}' to build xf86-video-ati"
20500 echo ""
20501