configure revision 1.1.1.6 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for xf86-video-mga 1.6.2.
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-mga'
573 PACKAGE_TARNAME='xf86-video-mga'
574 PACKAGE_VERSION='1.6.2'
575 PACKAGE_STRING='xf86-video-mga 1.6.2'
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 USE_EXA_FALSE
623 USE_EXA_TRUE
624 XAA_FALSE
625 XAA_TRUE
626 XSERVER_LIBPCIACCESS_FALSE
627 XSERVER_LIBPCIACCESS_TRUE
628 PCIACCESS_LIBS
629 PCIACCESS_CFLAGS
630 DRI_LIBS
631 DRI_CFLAGS
632 DRI_FALSE
633 DRI_TRUE
634 XORG_LIBS
635 XORG_CFLAGS
636 OTOOL64
637 OTOOL
638 LIPO
639 NMEDIT
640 DSYMUTIL
641 MANIFEST_TOOL
642 RANLIB
643 ac_ct_AR
644 AR
645 DLLTOOL
646 OBJDUMP
647 LN_S
648 NM
649 ac_ct_DUMPBIN
650 DUMPBIN
651 LD
652 FGREP
653 LIBTOOL
654 MAINT
655 MAINTAINER_MODE_FALSE
656 MAINTAINER_MODE_TRUE
657 am__fastdepCC_FALSE
658 am__fastdepCC_TRUE
659 CCDEPMODE
660 am__nodep
661 AMDEPBACKSLASH
662 AMDEP_FALSE
663 AMDEP_TRUE
664 am__quote
665 am__include
666 DEPDIR
667 am__untar
668 am__tar
669 AMTAR
670 am__leading_dot
671 SET_MAKE
672 AWK
673 mkdir_p
674 MKDIR_P
675 INSTALL_STRIP_PROGRAM
676 STRIP
677 install_sh
678 MAKEINFO
679 AUTOHEADER
680 AUTOMAKE
681 AUTOCONF
682 ACLOCAL
683 VERSION
684 PACKAGE
685 CYGPATH_W
686 am__isrc
687 AM_BACKSLASH
688 AM_DEFAULT_VERBOSITY
689 AM_DEFAULT_V
690 AM_V
691 MAN_SUBSTS
692 XORG_MAN_PAGE
693 ADMIN_MAN_DIR
694 DRIVER_MAN_DIR
695 MISC_MAN_DIR
696 FILE_MAN_DIR
697 LIB_MAN_DIR
698 APP_MAN_DIR
699 ADMIN_MAN_SUFFIX
700 DRIVER_MAN_SUFFIX
701 MISC_MAN_SUFFIX
702 FILE_MAN_SUFFIX
703 LIB_MAN_SUFFIX
704 APP_MAN_SUFFIX
705 SED
706 host_os
707 host_vendor
708 host_cpu
709 host
710 build_os
711 build_vendor
712 build_cpu
713 build
714 INSTALL_CMD
715 PKG_CONFIG_LIBDIR
716 PKG_CONFIG_PATH
717 PKG_CONFIG
718 CHANGELOG_CMD
719 STRICT_CFLAGS
720 CWARNFLAGS
721 BASE_CFLAGS
722 EGREP
723 GREP
724 CPP
725 OBJEXT
726 EXEEXT
727 ac_ct_CC
728 CPPFLAGS
729 LDFLAGS
730 CFLAGS
731 CC
732 INSTALL_DATA
733 INSTALL_SCRIPT
734 INSTALL_PROGRAM
735 target_alias
736 host_alias
737 build_alias
738 LIBS
739 ECHO_T
740 ECHO_N
741 ECHO_C
742 DEFS
743 mandir
744 localedir
745 libdir
746 psdir
747 pdfdir
748 dvidir
749 htmldir
750 infodir
751 docdir
752 oldincludedir
753 includedir
754 localstatedir
755 sharedstatedir
756 sysconfdir
757 datadir
758 datarootdir
759 libexecdir
760 sbindir
761 bindir
762 program_transform_name
763 prefix
764 exec_prefix
765 PACKAGE_URL
766 PACKAGE_BUGREPORT
767 PACKAGE_STRING
768 PACKAGE_VERSION
769 PACKAGE_TARNAME
770 PACKAGE_NAME
771 PATH_SEPARATOR
772 SHELL'
773 ac_subst_files=''
774 ac_user_opts='
775 enable_option_checking
776 enable_selective_werror
777 enable_strict_compilation
778 enable_silent_rules
779 enable_dependency_tracking
780 enable_maintainer_mode
781 enable_static
782 enable_shared
783 with_pic
784 enable_fast_install
785 with_gnu_ld
786 with_sysroot
787 enable_libtool_lock
788 with_xorg_module_dir
789 enable_dri
790 enable_exa
791 enable_xaa
792 '
793 ac_precious_vars='build_alias
794 host_alias
795 target_alias
796 CC
797 CFLAGS
798 LDFLAGS
799 LIBS
800 CPPFLAGS
801 CPP
802 PKG_CONFIG
803 PKG_CONFIG_PATH
804 PKG_CONFIG_LIBDIR
805 XORG_CFLAGS
806 XORG_LIBS
807 DRI_CFLAGS
808 DRI_LIBS
809 PCIACCESS_CFLAGS
810 PCIACCESS_LIBS'
811
812
813 # Initialize some variables set by options.
814 ac_init_help=
815 ac_init_version=false
816 ac_unrecognized_opts=
817 ac_unrecognized_sep=
818 # The variables have the same names as the options, with
819 # dashes changed to underlines.
820 cache_file=/dev/null
821 exec_prefix=NONE
822 no_create=
823 no_recursion=
824 prefix=NONE
825 program_prefix=NONE
826 program_suffix=NONE
827 program_transform_name=s,x,x,
828 silent=
829 site=
830 srcdir=
831 verbose=
832 x_includes=NONE
833 x_libraries=NONE
834
835 # Installation directory options.
836 # These are left unexpanded so users can "make install exec_prefix=/foo"
837 # and all the variables that are supposed to be based on exec_prefix
838 # by default will actually change.
839 # Use braces instead of parens because sh, perl, etc. also accept them.
840 # (The list follows the same order as the GNU Coding Standards.)
841 bindir='${exec_prefix}/bin'
842 sbindir='${exec_prefix}/sbin'
843 libexecdir='${exec_prefix}/libexec'
844 datarootdir='${prefix}/share'
845 datadir='${datarootdir}'
846 sysconfdir='${prefix}/etc'
847 sharedstatedir='${prefix}/com'
848 localstatedir='${prefix}/var'
849 includedir='${prefix}/include'
850 oldincludedir='/usr/include'
851 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
852 infodir='${datarootdir}/info'
853 htmldir='${docdir}'
854 dvidir='${docdir}'
855 pdfdir='${docdir}'
856 psdir='${docdir}'
857 libdir='${exec_prefix}/lib'
858 localedir='${datarootdir}/locale'
859 mandir='${datarootdir}/man'
860
861 ac_prev=
862 ac_dashdash=
863 for ac_option
864 do
865 # If the previous option needs an argument, assign it.
866 if test -n "$ac_prev"; then
867 eval $ac_prev=\$ac_option
868 ac_prev=
869 continue
870 fi
871
872 case $ac_option in
873 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
874 *=) ac_optarg= ;;
875 *) ac_optarg=yes ;;
876 esac
877
878 # Accept the important Cygnus configure options, so we can diagnose typos.
879
880 case $ac_dashdash$ac_option in
881 --)
882 ac_dashdash=yes ;;
883
884 -bindir | --bindir | --bindi | --bind | --bin | --bi)
885 ac_prev=bindir ;;
886 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
887 bindir=$ac_optarg ;;
888
889 -build | --build | --buil | --bui | --bu)
890 ac_prev=build_alias ;;
891 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
892 build_alias=$ac_optarg ;;
893
894 -cache-file | --cache-file | --cache-fil | --cache-fi \
895 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
896 ac_prev=cache_file ;;
897 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
898 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
899 cache_file=$ac_optarg ;;
900
901 --config-cache | -C)
902 cache_file=config.cache ;;
903
904 -datadir | --datadir | --datadi | --datad)
905 ac_prev=datadir ;;
906 -datadir=* | --datadir=* | --datadi=* | --datad=*)
907 datadir=$ac_optarg ;;
908
909 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
910 | --dataroo | --dataro | --datar)
911 ac_prev=datarootdir ;;
912 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
913 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
914 datarootdir=$ac_optarg ;;
915
916 -disable-* | --disable-*)
917 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
918 # Reject names that are not valid shell variable names.
919 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
920 as_fn_error $? "invalid feature name: $ac_useropt"
921 ac_useropt_orig=$ac_useropt
922 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
923 case $ac_user_opts in
924 *"
925 "enable_$ac_useropt"
926 "*) ;;
927 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
928 ac_unrecognized_sep=', ';;
929 esac
930 eval enable_$ac_useropt=no ;;
931
932 -docdir | --docdir | --docdi | --doc | --do)
933 ac_prev=docdir ;;
934 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
935 docdir=$ac_optarg ;;
936
937 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
938 ac_prev=dvidir ;;
939 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
940 dvidir=$ac_optarg ;;
941
942 -enable-* | --enable-*)
943 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
944 # Reject names that are not valid shell variable names.
945 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
946 as_fn_error $? "invalid feature name: $ac_useropt"
947 ac_useropt_orig=$ac_useropt
948 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
949 case $ac_user_opts in
950 *"
951 "enable_$ac_useropt"
952 "*) ;;
953 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
954 ac_unrecognized_sep=', ';;
955 esac
956 eval enable_$ac_useropt=\$ac_optarg ;;
957
958 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
959 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
960 | --exec | --exe | --ex)
961 ac_prev=exec_prefix ;;
962 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
963 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
964 | --exec=* | --exe=* | --ex=*)
965 exec_prefix=$ac_optarg ;;
966
967 -gas | --gas | --ga | --g)
968 # Obsolete; use --with-gas.
969 with_gas=yes ;;
970
971 -help | --help | --hel | --he | -h)
972 ac_init_help=long ;;
973 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
974 ac_init_help=recursive ;;
975 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
976 ac_init_help=short ;;
977
978 -host | --host | --hos | --ho)
979 ac_prev=host_alias ;;
980 -host=* | --host=* | --hos=* | --ho=*)
981 host_alias=$ac_optarg ;;
982
983 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
984 ac_prev=htmldir ;;
985 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
986 | --ht=*)
987 htmldir=$ac_optarg ;;
988
989 -includedir | --includedir | --includedi | --included | --include \
990 | --includ | --inclu | --incl | --inc)
991 ac_prev=includedir ;;
992 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
993 | --includ=* | --inclu=* | --incl=* | --inc=*)
994 includedir=$ac_optarg ;;
995
996 -infodir | --infodir | --infodi | --infod | --info | --inf)
997 ac_prev=infodir ;;
998 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
999 infodir=$ac_optarg ;;
1000
1001 -libdir | --libdir | --libdi | --libd)
1002 ac_prev=libdir ;;
1003 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1004 libdir=$ac_optarg ;;
1005
1006 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1007 | --libexe | --libex | --libe)
1008 ac_prev=libexecdir ;;
1009 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1010 | --libexe=* | --libex=* | --libe=*)
1011 libexecdir=$ac_optarg ;;
1012
1013 -localedir | --localedir | --localedi | --localed | --locale)
1014 ac_prev=localedir ;;
1015 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1016 localedir=$ac_optarg ;;
1017
1018 -localstatedir | --localstatedir | --localstatedi | --localstated \
1019 | --localstate | --localstat | --localsta | --localst | --locals)
1020 ac_prev=localstatedir ;;
1021 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1022 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1023 localstatedir=$ac_optarg ;;
1024
1025 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1026 ac_prev=mandir ;;
1027 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1028 mandir=$ac_optarg ;;
1029
1030 -nfp | --nfp | --nf)
1031 # Obsolete; use --without-fp.
1032 with_fp=no ;;
1033
1034 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1035 | --no-cr | --no-c | -n)
1036 no_create=yes ;;
1037
1038 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1039 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1040 no_recursion=yes ;;
1041
1042 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1043 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1044 | --oldin | --oldi | --old | --ol | --o)
1045 ac_prev=oldincludedir ;;
1046 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1047 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1048 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1049 oldincludedir=$ac_optarg ;;
1050
1051 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1052 ac_prev=prefix ;;
1053 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1054 prefix=$ac_optarg ;;
1055
1056 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1057 | --program-pre | --program-pr | --program-p)
1058 ac_prev=program_prefix ;;
1059 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1060 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1061 program_prefix=$ac_optarg ;;
1062
1063 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1064 | --program-suf | --program-su | --program-s)
1065 ac_prev=program_suffix ;;
1066 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1067 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1068 program_suffix=$ac_optarg ;;
1069
1070 -program-transform-name | --program-transform-name \
1071 | --program-transform-nam | --program-transform-na \
1072 | --program-transform-n | --program-transform- \
1073 | --program-transform | --program-transfor \
1074 | --program-transfo | --program-transf \
1075 | --program-trans | --program-tran \
1076 | --progr-tra | --program-tr | --program-t)
1077 ac_prev=program_transform_name ;;
1078 -program-transform-name=* | --program-transform-name=* \
1079 | --program-transform-nam=* | --program-transform-na=* \
1080 | --program-transform-n=* | --program-transform-=* \
1081 | --program-transform=* | --program-transfor=* \
1082 | --program-transfo=* | --program-transf=* \
1083 | --program-trans=* | --program-tran=* \
1084 | --progr-tra=* | --program-tr=* | --program-t=*)
1085 program_transform_name=$ac_optarg ;;
1086
1087 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1088 ac_prev=pdfdir ;;
1089 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1090 pdfdir=$ac_optarg ;;
1091
1092 -psdir | --psdir | --psdi | --psd | --ps)
1093 ac_prev=psdir ;;
1094 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1095 psdir=$ac_optarg ;;
1096
1097 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1098 | -silent | --silent | --silen | --sile | --sil)
1099 silent=yes ;;
1100
1101 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1102 ac_prev=sbindir ;;
1103 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1104 | --sbi=* | --sb=*)
1105 sbindir=$ac_optarg ;;
1106
1107 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1108 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1109 | --sharedst | --shareds | --shared | --share | --shar \
1110 | --sha | --sh)
1111 ac_prev=sharedstatedir ;;
1112 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1113 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1114 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1115 | --sha=* | --sh=*)
1116 sharedstatedir=$ac_optarg ;;
1117
1118 -site | --site | --sit)
1119 ac_prev=site ;;
1120 -site=* | --site=* | --sit=*)
1121 site=$ac_optarg ;;
1122
1123 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1124 ac_prev=srcdir ;;
1125 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1126 srcdir=$ac_optarg ;;
1127
1128 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1129 | --syscon | --sysco | --sysc | --sys | --sy)
1130 ac_prev=sysconfdir ;;
1131 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1132 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1133 sysconfdir=$ac_optarg ;;
1134
1135 -target | --target | --targe | --targ | --tar | --ta | --t)
1136 ac_prev=target_alias ;;
1137 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1138 target_alias=$ac_optarg ;;
1139
1140 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1141 verbose=yes ;;
1142
1143 -version | --version | --versio | --versi | --vers | -V)
1144 ac_init_version=: ;;
1145
1146 -with-* | --with-*)
1147 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1148 # Reject names that are not valid shell variable names.
1149 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1150 as_fn_error $? "invalid package name: $ac_useropt"
1151 ac_useropt_orig=$ac_useropt
1152 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1153 case $ac_user_opts in
1154 *"
1155 "with_$ac_useropt"
1156 "*) ;;
1157 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1158 ac_unrecognized_sep=', ';;
1159 esac
1160 eval with_$ac_useropt=\$ac_optarg ;;
1161
1162 -without-* | --without-*)
1163 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1164 # Reject names that are not valid shell variable names.
1165 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1166 as_fn_error $? "invalid package name: $ac_useropt"
1167 ac_useropt_orig=$ac_useropt
1168 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1169 case $ac_user_opts in
1170 *"
1171 "with_$ac_useropt"
1172 "*) ;;
1173 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1174 ac_unrecognized_sep=', ';;
1175 esac
1176 eval with_$ac_useropt=no ;;
1177
1178 --x)
1179 # Obsolete; use --with-x.
1180 with_x=yes ;;
1181
1182 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1183 | --x-incl | --x-inc | --x-in | --x-i)
1184 ac_prev=x_includes ;;
1185 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1186 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1187 x_includes=$ac_optarg ;;
1188
1189 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1190 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1191 ac_prev=x_libraries ;;
1192 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1193 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1194 x_libraries=$ac_optarg ;;
1195
1196 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1197 Try \`$0 --help' for more information"
1198 ;;
1199
1200 *=*)
1201 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1202 # Reject names that are not valid shell variable names.
1203 case $ac_envvar in #(
1204 '' | [0-9]* | *[!_$as_cr_alnum]* )
1205 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1206 esac
1207 eval $ac_envvar=\$ac_optarg
1208 export $ac_envvar ;;
1209
1210 *)
1211 # FIXME: should be removed in autoconf 3.0.
1212 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1213 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1214 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1215 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1216 ;;
1217
1218 esac
1219 done
1220
1221 if test -n "$ac_prev"; then
1222 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1223 as_fn_error $? "missing argument to $ac_option"
1224 fi
1225
1226 if test -n "$ac_unrecognized_opts"; then
1227 case $enable_option_checking in
1228 no) ;;
1229 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1230 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1231 esac
1232 fi
1233
1234 # Check all directory arguments for consistency.
1235 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1236 datadir sysconfdir sharedstatedir localstatedir includedir \
1237 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1238 libdir localedir mandir
1239 do
1240 eval ac_val=\$$ac_var
1241 # Remove trailing slashes.
1242 case $ac_val in
1243 */ )
1244 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1245 eval $ac_var=\$ac_val;;
1246 esac
1247 # Be sure to have absolute directory names.
1248 case $ac_val in
1249 [\\/$]* | ?:[\\/]* ) continue;;
1250 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1251 esac
1252 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1253 done
1254
1255 # There might be people who depend on the old broken behavior: `$host'
1256 # used to hold the argument of --host etc.
1257 # FIXME: To remove some day.
1258 build=$build_alias
1259 host=$host_alias
1260 target=$target_alias
1261
1262 # FIXME: To remove some day.
1263 if test "x$host_alias" != x; then
1264 if test "x$build_alias" = x; then
1265 cross_compiling=maybe
1266 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1267 If a cross compiler is detected then cross compile mode will be used" >&2
1268 elif test "x$build_alias" != "x$host_alias"; then
1269 cross_compiling=yes
1270 fi
1271 fi
1272
1273 ac_tool_prefix=
1274 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1275
1276 test "$silent" = yes && exec 6>/dev/null
1277
1278
1279 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1280 ac_ls_di=`ls -di .` &&
1281 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1282 as_fn_error $? "working directory cannot be determined"
1283 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1284 as_fn_error $? "pwd does not report name of working directory"
1285
1286
1287 # Find the source files, if location was not specified.
1288 if test -z "$srcdir"; then
1289 ac_srcdir_defaulted=yes
1290 # Try the directory containing this script, then the parent directory.
1291 ac_confdir=`$as_dirname -- "$as_myself" ||
1292 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1293 X"$as_myself" : 'X\(//\)[^/]' \| \
1294 X"$as_myself" : 'X\(//\)$' \| \
1295 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1296 $as_echo X"$as_myself" |
1297 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1298 s//\1/
1299 q
1300 }
1301 /^X\(\/\/\)[^/].*/{
1302 s//\1/
1303 q
1304 }
1305 /^X\(\/\/\)$/{
1306 s//\1/
1307 q
1308 }
1309 /^X\(\/\).*/{
1310 s//\1/
1311 q
1312 }
1313 s/.*/./; q'`
1314 srcdir=$ac_confdir
1315 if test ! -r "$srcdir/$ac_unique_file"; then
1316 srcdir=..
1317 fi
1318 else
1319 ac_srcdir_defaulted=no
1320 fi
1321 if test ! -r "$srcdir/$ac_unique_file"; then
1322 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1323 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1324 fi
1325 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1326 ac_abs_confdir=`(
1327 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1328 pwd)`
1329 # When building in place, set srcdir=.
1330 if test "$ac_abs_confdir" = "$ac_pwd"; then
1331 srcdir=.
1332 fi
1333 # Remove unnecessary trailing slashes from srcdir.
1334 # Double slashes in file names in object file debugging info
1335 # mess up M-x gdb in Emacs.
1336 case $srcdir in
1337 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1338 esac
1339 for ac_var in $ac_precious_vars; do
1340 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1341 eval ac_env_${ac_var}_value=\$${ac_var}
1342 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1343 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1344 done
1345
1346 #
1347 # Report the --help message.
1348 #
1349 if test "$ac_init_help" = "long"; then
1350 # Omit some internal or obsolete options to make the list less imposing.
1351 # This message is too long to be a string in the A/UX 3.1 sh.
1352 cat <<_ACEOF
1353 \`configure' configures xf86-video-mga 1.6.2 to adapt to many kinds of systems.
1354
1355 Usage: $0 [OPTION]... [VAR=VALUE]...
1356
1357 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1358 VAR=VALUE. See below for descriptions of some of the useful variables.
1359
1360 Defaults for the options are specified in brackets.
1361
1362 Configuration:
1363 -h, --help display this help and exit
1364 --help=short display options specific to this package
1365 --help=recursive display the short help of all the included packages
1366 -V, --version display version information and exit
1367 -q, --quiet, --silent do not print \`checking ...' messages
1368 --cache-file=FILE cache test results in FILE [disabled]
1369 -C, --config-cache alias for \`--cache-file=config.cache'
1370 -n, --no-create do not create output files
1371 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1372
1373 Installation directories:
1374 --prefix=PREFIX install architecture-independent files in PREFIX
1375 [$ac_default_prefix]
1376 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1377 [PREFIX]
1378
1379 By default, \`make install' will install all the files in
1380 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1381 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1382 for instance \`--prefix=\$HOME'.
1383
1384 For better control, use the options below.
1385
1386 Fine tuning of the installation directories:
1387 --bindir=DIR user executables [EPREFIX/bin]
1388 --sbindir=DIR system admin executables [EPREFIX/sbin]
1389 --libexecdir=DIR program executables [EPREFIX/libexec]
1390 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1391 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1392 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1393 --libdir=DIR object code libraries [EPREFIX/lib]
1394 --includedir=DIR C header files [PREFIX/include]
1395 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1396 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1397 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1398 --infodir=DIR info documentation [DATAROOTDIR/info]
1399 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1400 --mandir=DIR man documentation [DATAROOTDIR/man]
1401 --docdir=DIR documentation root [DATAROOTDIR/doc/xf86-video-mga]
1402 --htmldir=DIR html documentation [DOCDIR]
1403 --dvidir=DIR dvi documentation [DOCDIR]
1404 --pdfdir=DIR pdf documentation [DOCDIR]
1405 --psdir=DIR ps documentation [DOCDIR]
1406 _ACEOF
1407
1408 cat <<\_ACEOF
1409
1410 Program names:
1411 --program-prefix=C prepend C to installed program names
1412 --program-suffix=SUFFIX append SUFFIX to installed program names
1413 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1414
1415 System types:
1416 --build=BUILD configure for building on BUILD [guessed]
1417 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1418 _ACEOF
1419 fi
1420
1421 if test -n "$ac_init_help"; then
1422 case $ac_init_help in
1423 short | recursive ) echo "Configuration of xf86-video-mga 1.6.2:";;
1424 esac
1425 cat <<\_ACEOF
1426
1427 Optional Features:
1428 --disable-option-checking ignore unrecognized --enable/--with options
1429 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1430 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1431 --disable-selective-werror
1432 Turn off selective compiler errors. (default:
1433 enabled)
1434 --enable-strict-compilation
1435 Enable all warnings from compiler and make them
1436 errors (default: disabled)
1437 --enable-silent-rules less verbose build output (undo: `make V=1')
1438 --disable-silent-rules verbose build output (undo: `make V=0')
1439 --disable-dependency-tracking speeds up one-time build
1440 --enable-dependency-tracking do not reject slow dependency extractors
1441 --enable-maintainer-mode enable make rules and dependencies not useful
1442 (and sometimes confusing) to the casual installer
1443 --enable-static[=PKGS] build static libraries [default=no]
1444 --enable-shared[=PKGS] build shared libraries [default=yes]
1445 --enable-fast-install[=PKGS]
1446 optimize for fast installation [default=yes]
1447 --disable-libtool-lock avoid locking (might break parallel builds)
1448 --disable-dri Disable DRI support [[default=auto]]
1449 --disable-exa Disable EXA support [[default=enabled]]
1450 --enable-xaa Enable legacy X Acceleration Architecture (XAA)
1451 [default=auto]
1452
1453 Optional Packages:
1454 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1455 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1456 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1457 both]
1458 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1459 --with-sysroot=DIR Search for dependent libraries within DIR
1460 (or the compiler's sysroot if not specified).
1461 --with-xorg-module-dir=DIR
1462 Default xorg module directory
1463 [[default=$libdir/xorg/modules]]
1464
1465 Some influential environment variables:
1466 CC C compiler command
1467 CFLAGS C compiler flags
1468 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1469 nonstandard directory <lib dir>
1470 LIBS libraries to pass to the linker, e.g. -l<library>
1471 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1472 you have headers in a nonstandard directory <include dir>
1473 CPP C preprocessor
1474 PKG_CONFIG path to pkg-config utility
1475 PKG_CONFIG_PATH
1476 directories to add to pkg-config's search path
1477 PKG_CONFIG_LIBDIR
1478 path overriding pkg-config's built-in search path
1479 XORG_CFLAGS C compiler flags for XORG, overriding pkg-config
1480 XORG_LIBS linker flags for XORG, overriding pkg-config
1481 DRI_CFLAGS C compiler flags for DRI, overriding pkg-config
1482 DRI_LIBS linker flags for DRI, overriding pkg-config
1483 PCIACCESS_CFLAGS
1484 C compiler flags for PCIACCESS, overriding pkg-config
1485 PCIACCESS_LIBS
1486 linker flags for PCIACCESS, overriding pkg-config
1487
1488 Use these variables to override the choices made by `configure' or to help
1489 it to find libraries and programs with nonstandard names/locations.
1490
1491 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1492 _ACEOF
1493 ac_status=$?
1494 fi
1495
1496 if test "$ac_init_help" = "recursive"; then
1497 # If there are subdirs, report their specific --help.
1498 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1499 test -d "$ac_dir" ||
1500 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1501 continue
1502 ac_builddir=.
1503
1504 case "$ac_dir" in
1505 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1506 *)
1507 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1508 # A ".." for each directory in $ac_dir_suffix.
1509 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1510 case $ac_top_builddir_sub in
1511 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1512 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1513 esac ;;
1514 esac
1515 ac_abs_top_builddir=$ac_pwd
1516 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1517 # for backward compatibility:
1518 ac_top_builddir=$ac_top_build_prefix
1519
1520 case $srcdir in
1521 .) # We are building in place.
1522 ac_srcdir=.
1523 ac_top_srcdir=$ac_top_builddir_sub
1524 ac_abs_top_srcdir=$ac_pwd ;;
1525 [\\/]* | ?:[\\/]* ) # Absolute name.
1526 ac_srcdir=$srcdir$ac_dir_suffix;
1527 ac_top_srcdir=$srcdir
1528 ac_abs_top_srcdir=$srcdir ;;
1529 *) # Relative name.
1530 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1531 ac_top_srcdir=$ac_top_build_prefix$srcdir
1532 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1533 esac
1534 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1535
1536 cd "$ac_dir" || { ac_status=$?; continue; }
1537 # Check for guested configure.
1538 if test -f "$ac_srcdir/configure.gnu"; then
1539 echo &&
1540 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1541 elif test -f "$ac_srcdir/configure"; then
1542 echo &&
1543 $SHELL "$ac_srcdir/configure" --help=recursive
1544 else
1545 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1546 fi || ac_status=$?
1547 cd "$ac_pwd" || { ac_status=$?; break; }
1548 done
1549 fi
1550
1551 test -n "$ac_init_help" && exit $ac_status
1552 if $ac_init_version; then
1553 cat <<\_ACEOF
1554 xf86-video-mga configure 1.6.2
1555 generated by GNU Autoconf 2.68
1556
1557 Copyright (C) 2010 Free Software Foundation, Inc.
1558 This configure script is free software; the Free Software Foundation
1559 gives unlimited permission to copy, distribute and modify it.
1560 _ACEOF
1561 exit
1562 fi
1563
1564 ## ------------------------ ##
1565 ## Autoconf initialization. ##
1566 ## ------------------------ ##
1567
1568 # ac_fn_c_try_compile LINENO
1569 # --------------------------
1570 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1571 ac_fn_c_try_compile ()
1572 {
1573 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1574 rm -f conftest.$ac_objext
1575 if { { ac_try="$ac_compile"
1576 case "(($ac_try" in
1577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1578 *) ac_try_echo=$ac_try;;
1579 esac
1580 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1581 $as_echo "$ac_try_echo"; } >&5
1582 (eval "$ac_compile") 2>conftest.err
1583 ac_status=$?
1584 if test -s conftest.err; then
1585 grep -v '^ *+' conftest.err >conftest.er1
1586 cat conftest.er1 >&5
1587 mv -f conftest.er1 conftest.err
1588 fi
1589 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1590 test $ac_status = 0; } && {
1591 test -z "$ac_c_werror_flag" ||
1592 test ! -s conftest.err
1593 } && test -s conftest.$ac_objext; then :
1594 ac_retval=0
1595 else
1596 $as_echo "$as_me: failed program was:" >&5
1597 sed 's/^/| /' conftest.$ac_ext >&5
1598
1599 ac_retval=1
1600 fi
1601 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1602 as_fn_set_status $ac_retval
1603
1604 } # ac_fn_c_try_compile
1605
1606 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1607 # ---------------------------------------------
1608 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1609 # accordingly.
1610 ac_fn_c_check_decl ()
1611 {
1612 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1613 as_decl_name=`echo $2|sed 's/ *(.*//'`
1614 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1616 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1617 if eval \${$3+:} false; then :
1618 $as_echo_n "(cached) " >&6
1619 else
1620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1621 /* end confdefs.h. */
1622 $4
1623 int
1624 main ()
1625 {
1626 #ifndef $as_decl_name
1627 #ifdef __cplusplus
1628 (void) $as_decl_use;
1629 #else
1630 (void) $as_decl_name;
1631 #endif
1632 #endif
1633
1634 ;
1635 return 0;
1636 }
1637 _ACEOF
1638 if ac_fn_c_try_compile "$LINENO"; then :
1639 eval "$3=yes"
1640 else
1641 eval "$3=no"
1642 fi
1643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1644 fi
1645 eval ac_res=\$$3
1646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1647 $as_echo "$ac_res" >&6; }
1648 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1649
1650 } # ac_fn_c_check_decl
1651
1652 # ac_fn_c_try_cpp LINENO
1653 # ----------------------
1654 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1655 ac_fn_c_try_cpp ()
1656 {
1657 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1658 if { { ac_try="$ac_cpp conftest.$ac_ext"
1659 case "(($ac_try" in
1660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1661 *) ac_try_echo=$ac_try;;
1662 esac
1663 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1664 $as_echo "$ac_try_echo"; } >&5
1665 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1666 ac_status=$?
1667 if test -s conftest.err; then
1668 grep -v '^ *+' conftest.err >conftest.er1
1669 cat conftest.er1 >&5
1670 mv -f conftest.er1 conftest.err
1671 fi
1672 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1673 test $ac_status = 0; } > conftest.i && {
1674 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1675 test ! -s conftest.err
1676 }; then :
1677 ac_retval=0
1678 else
1679 $as_echo "$as_me: failed program was:" >&5
1680 sed 's/^/| /' conftest.$ac_ext >&5
1681
1682 ac_retval=1
1683 fi
1684 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1685 as_fn_set_status $ac_retval
1686
1687 } # ac_fn_c_try_cpp
1688
1689 # ac_fn_c_try_run LINENO
1690 # ----------------------
1691 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1692 # that executables *can* be run.
1693 ac_fn_c_try_run ()
1694 {
1695 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1696 if { { ac_try="$ac_link"
1697 case "(($ac_try" in
1698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1699 *) ac_try_echo=$ac_try;;
1700 esac
1701 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1702 $as_echo "$ac_try_echo"; } >&5
1703 (eval "$ac_link") 2>&5
1704 ac_status=$?
1705 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1706 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1707 { { case "(($ac_try" in
1708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1709 *) ac_try_echo=$ac_try;;
1710 esac
1711 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1712 $as_echo "$ac_try_echo"; } >&5
1713 (eval "$ac_try") 2>&5
1714 ac_status=$?
1715 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1716 test $ac_status = 0; }; }; then :
1717 ac_retval=0
1718 else
1719 $as_echo "$as_me: program exited with status $ac_status" >&5
1720 $as_echo "$as_me: failed program was:" >&5
1721 sed 's/^/| /' conftest.$ac_ext >&5
1722
1723 ac_retval=$ac_status
1724 fi
1725 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1726 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1727 as_fn_set_status $ac_retval
1728
1729 } # ac_fn_c_try_run
1730
1731 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1732 # -------------------------------------------------------
1733 # Tests whether HEADER exists and can be compiled using the include files in
1734 # INCLUDES, setting the cache variable VAR accordingly.
1735 ac_fn_c_check_header_compile ()
1736 {
1737 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1739 $as_echo_n "checking for $2... " >&6; }
1740 if eval \${$3+:} false; then :
1741 $as_echo_n "(cached) " >&6
1742 else
1743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1744 /* end confdefs.h. */
1745 $4
1746 #include <$2>
1747 _ACEOF
1748 if ac_fn_c_try_compile "$LINENO"; then :
1749 eval "$3=yes"
1750 else
1751 eval "$3=no"
1752 fi
1753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1754 fi
1755 eval ac_res=\$$3
1756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1757 $as_echo "$ac_res" >&6; }
1758 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1759
1760 } # ac_fn_c_check_header_compile
1761
1762 # ac_fn_c_try_link LINENO
1763 # -----------------------
1764 # Try to link conftest.$ac_ext, and return whether this succeeded.
1765 ac_fn_c_try_link ()
1766 {
1767 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1768 rm -f conftest.$ac_objext conftest$ac_exeext
1769 if { { ac_try="$ac_link"
1770 case "(($ac_try" in
1771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1772 *) ac_try_echo=$ac_try;;
1773 esac
1774 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1775 $as_echo "$ac_try_echo"; } >&5
1776 (eval "$ac_link") 2>conftest.err
1777 ac_status=$?
1778 if test -s conftest.err; then
1779 grep -v '^ *+' conftest.err >conftest.er1
1780 cat conftest.er1 >&5
1781 mv -f conftest.er1 conftest.err
1782 fi
1783 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1784 test $ac_status = 0; } && {
1785 test -z "$ac_c_werror_flag" ||
1786 test ! -s conftest.err
1787 } && test -s conftest$ac_exeext && {
1788 test "$cross_compiling" = yes ||
1789 $as_test_x conftest$ac_exeext
1790 }; then :
1791 ac_retval=0
1792 else
1793 $as_echo "$as_me: failed program was:" >&5
1794 sed 's/^/| /' conftest.$ac_ext >&5
1795
1796 ac_retval=1
1797 fi
1798 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1799 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1800 # interfere with the next link command; also delete a directory that is
1801 # left behind by Apple's compiler. We do this before executing the actions.
1802 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1803 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1804 as_fn_set_status $ac_retval
1805
1806 } # ac_fn_c_try_link
1807
1808 # ac_fn_c_check_func LINENO FUNC VAR
1809 # ----------------------------------
1810 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1811 ac_fn_c_check_func ()
1812 {
1813 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1815 $as_echo_n "checking for $2... " >&6; }
1816 if eval \${$3+:} false; then :
1817 $as_echo_n "(cached) " >&6
1818 else
1819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1820 /* end confdefs.h. */
1821 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1822 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1823 #define $2 innocuous_$2
1824
1825 /* System header to define __stub macros and hopefully few prototypes,
1826 which can conflict with char $2 (); below.
1827 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1828 <limits.h> exists even on freestanding compilers. */
1829
1830 #ifdef __STDC__
1831 # include <limits.h>
1832 #else
1833 # include <assert.h>
1834 #endif
1835
1836 #undef $2
1837
1838 /* Override any GCC internal prototype to avoid an error.
1839 Use char because int might match the return type of a GCC
1840 builtin and then its argument prototype would still apply. */
1841 #ifdef __cplusplus
1842 extern "C"
1843 #endif
1844 char $2 ();
1845 /* The GNU C library defines this for functions which it implements
1846 to always fail with ENOSYS. Some functions are actually named
1847 something starting with __ and the normal name is an alias. */
1848 #if defined __stub_$2 || defined __stub___$2
1849 choke me
1850 #endif
1851
1852 int
1853 main ()
1854 {
1855 return $2 ();
1856 ;
1857 return 0;
1858 }
1859 _ACEOF
1860 if ac_fn_c_try_link "$LINENO"; then :
1861 eval "$3=yes"
1862 else
1863 eval "$3=no"
1864 fi
1865 rm -f core conftest.err conftest.$ac_objext \
1866 conftest$ac_exeext conftest.$ac_ext
1867 fi
1868 eval ac_res=\$$3
1869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1870 $as_echo "$ac_res" >&6; }
1871 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1872
1873 } # ac_fn_c_check_func
1874
1875 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1876 # -------------------------------------------------------
1877 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1878 # the include files in INCLUDES and setting the cache variable VAR
1879 # accordingly.
1880 ac_fn_c_check_header_mongrel ()
1881 {
1882 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1883 if eval \${$3+:} false; then :
1884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1885 $as_echo_n "checking for $2... " >&6; }
1886 if eval \${$3+:} false; then :
1887 $as_echo_n "(cached) " >&6
1888 fi
1889 eval ac_res=\$$3
1890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1891 $as_echo "$ac_res" >&6; }
1892 else
1893 # Is the header compilable?
1894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1895 $as_echo_n "checking $2 usability... " >&6; }
1896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1897 /* end confdefs.h. */
1898 $4
1899 #include <$2>
1900 _ACEOF
1901 if ac_fn_c_try_compile "$LINENO"; then :
1902 ac_header_compiler=yes
1903 else
1904 ac_header_compiler=no
1905 fi
1906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1908 $as_echo "$ac_header_compiler" >&6; }
1909
1910 # Is the header present?
1911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1912 $as_echo_n "checking $2 presence... " >&6; }
1913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1914 /* end confdefs.h. */
1915 #include <$2>
1916 _ACEOF
1917 if ac_fn_c_try_cpp "$LINENO"; then :
1918 ac_header_preproc=yes
1919 else
1920 ac_header_preproc=no
1921 fi
1922 rm -f conftest.err conftest.i conftest.$ac_ext
1923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1924 $as_echo "$ac_header_preproc" >&6; }
1925
1926 # So? What about this header?
1927 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1928 yes:no: )
1929 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1930 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1931 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1932 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1933 ;;
1934 no:yes:* )
1935 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1936 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1937 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1938 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1939 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1940 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1941 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1942 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1943 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1944 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1945 ( $as_echo "## ---------------------------------------------------------------------- ##
1946 ## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
1947 ## ---------------------------------------------------------------------- ##"
1948 ) | sed "s/^/$as_me: WARNING: /" >&2
1949 ;;
1950 esac
1951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1952 $as_echo_n "checking for $2... " >&6; }
1953 if eval \${$3+:} false; then :
1954 $as_echo_n "(cached) " >&6
1955 else
1956 eval "$3=\$ac_header_compiler"
1957 fi
1958 eval ac_res=\$$3
1959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1960 $as_echo "$ac_res" >&6; }
1961 fi
1962 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1963
1964 } # ac_fn_c_check_header_mongrel
1965 cat >config.log <<_ACEOF
1966 This file contains any messages produced by compilers while
1967 running configure, to aid debugging if configure makes a mistake.
1968
1969 It was created by xf86-video-mga $as_me 1.6.2, which was
1970 generated by GNU Autoconf 2.68. Invocation command line was
1971
1972 $ $0 $@
1973
1974 _ACEOF
1975 exec 5>>config.log
1976 {
1977 cat <<_ASUNAME
1978 ## --------- ##
1979 ## Platform. ##
1980 ## --------- ##
1981
1982 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1983 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1984 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1985 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1986 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1987
1988 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1989 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1990
1991 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1992 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1993 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1994 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1995 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1996 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1997 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1998
1999 _ASUNAME
2000
2001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2002 for as_dir in $PATH
2003 do
2004 IFS=$as_save_IFS
2005 test -z "$as_dir" && as_dir=.
2006 $as_echo "PATH: $as_dir"
2007 done
2008 IFS=$as_save_IFS
2009
2010 } >&5
2011
2012 cat >&5 <<_ACEOF
2013
2014
2015 ## ----------- ##
2016 ## Core tests. ##
2017 ## ----------- ##
2018
2019 _ACEOF
2020
2021
2022 # Keep a trace of the command line.
2023 # Strip out --no-create and --no-recursion so they do not pile up.
2024 # Strip out --silent because we don't want to record it for future runs.
2025 # Also quote any args containing shell meta-characters.
2026 # Make two passes to allow for proper duplicate-argument suppression.
2027 ac_configure_args=
2028 ac_configure_args0=
2029 ac_configure_args1=
2030 ac_must_keep_next=false
2031 for ac_pass in 1 2
2032 do
2033 for ac_arg
2034 do
2035 case $ac_arg in
2036 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2037 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2038 | -silent | --silent | --silen | --sile | --sil)
2039 continue ;;
2040 *\'*)
2041 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2042 esac
2043 case $ac_pass in
2044 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2045 2)
2046 as_fn_append ac_configure_args1 " '$ac_arg'"
2047 if test $ac_must_keep_next = true; then
2048 ac_must_keep_next=false # Got value, back to normal.
2049 else
2050 case $ac_arg in
2051 *=* | --config-cache | -C | -disable-* | --disable-* \
2052 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2053 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2054 | -with-* | --with-* | -without-* | --without-* | --x)
2055 case "$ac_configure_args0 " in
2056 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2057 esac
2058 ;;
2059 -* ) ac_must_keep_next=true ;;
2060 esac
2061 fi
2062 as_fn_append ac_configure_args " '$ac_arg'"
2063 ;;
2064 esac
2065 done
2066 done
2067 { ac_configure_args0=; unset ac_configure_args0;}
2068 { ac_configure_args1=; unset ac_configure_args1;}
2069
2070 # When interrupted or exit'd, cleanup temporary files, and complete
2071 # config.log. We remove comments because anyway the quotes in there
2072 # would cause problems or look ugly.
2073 # WARNING: Use '\'' to represent an apostrophe within the trap.
2074 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2075 trap 'exit_status=$?
2076 # Save into config.log some information that might help in debugging.
2077 {
2078 echo
2079
2080 $as_echo "## ---------------- ##
2081 ## Cache variables. ##
2082 ## ---------------- ##"
2083 echo
2084 # The following way of writing the cache mishandles newlines in values,
2085 (
2086 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2087 eval ac_val=\$$ac_var
2088 case $ac_val in #(
2089 *${as_nl}*)
2090 case $ac_var in #(
2091 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2092 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2093 esac
2094 case $ac_var in #(
2095 _ | IFS | as_nl) ;; #(
2096 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2097 *) { eval $ac_var=; unset $ac_var;} ;;
2098 esac ;;
2099 esac
2100 done
2101 (set) 2>&1 |
2102 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2103 *${as_nl}ac_space=\ *)
2104 sed -n \
2105 "s/'\''/'\''\\\\'\'''\''/g;
2106 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2107 ;; #(
2108 *)
2109 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2110 ;;
2111 esac |
2112 sort
2113 )
2114 echo
2115
2116 $as_echo "## ----------------- ##
2117 ## Output variables. ##
2118 ## ----------------- ##"
2119 echo
2120 for ac_var in $ac_subst_vars
2121 do
2122 eval ac_val=\$$ac_var
2123 case $ac_val in
2124 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2125 esac
2126 $as_echo "$ac_var='\''$ac_val'\''"
2127 done | sort
2128 echo
2129
2130 if test -n "$ac_subst_files"; then
2131 $as_echo "## ------------------- ##
2132 ## File substitutions. ##
2133 ## ------------------- ##"
2134 echo
2135 for ac_var in $ac_subst_files
2136 do
2137 eval ac_val=\$$ac_var
2138 case $ac_val in
2139 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2140 esac
2141 $as_echo "$ac_var='\''$ac_val'\''"
2142 done | sort
2143 echo
2144 fi
2145
2146 if test -s confdefs.h; then
2147 $as_echo "## ----------- ##
2148 ## confdefs.h. ##
2149 ## ----------- ##"
2150 echo
2151 cat confdefs.h
2152 echo
2153 fi
2154 test "$ac_signal" != 0 &&
2155 $as_echo "$as_me: caught signal $ac_signal"
2156 $as_echo "$as_me: exit $exit_status"
2157 } >&5
2158 rm -f core *.core core.conftest.* &&
2159 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2160 exit $exit_status
2161 ' 0
2162 for ac_signal in 1 2 13 15; do
2163 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2164 done
2165 ac_signal=0
2166
2167 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2168 rm -f -r conftest* confdefs.h
2169
2170 $as_echo "/* confdefs.h */" > confdefs.h
2171
2172 # Predefined preprocessor variables.
2173
2174 cat >>confdefs.h <<_ACEOF
2175 #define PACKAGE_NAME "$PACKAGE_NAME"
2176 _ACEOF
2177
2178 cat >>confdefs.h <<_ACEOF
2179 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2180 _ACEOF
2181
2182 cat >>confdefs.h <<_ACEOF
2183 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2184 _ACEOF
2185
2186 cat >>confdefs.h <<_ACEOF
2187 #define PACKAGE_STRING "$PACKAGE_STRING"
2188 _ACEOF
2189
2190 cat >>confdefs.h <<_ACEOF
2191 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2192 _ACEOF
2193
2194 cat >>confdefs.h <<_ACEOF
2195 #define PACKAGE_URL "$PACKAGE_URL"
2196 _ACEOF
2197
2198
2199 # Let the site file select an alternate cache file if it wants to.
2200 # Prefer an explicitly selected file to automatically selected ones.
2201 ac_site_file1=NONE
2202 ac_site_file2=NONE
2203 if test -n "$CONFIG_SITE"; then
2204 # We do not want a PATH search for config.site.
2205 case $CONFIG_SITE in #((
2206 -*) ac_site_file1=./$CONFIG_SITE;;
2207 */*) ac_site_file1=$CONFIG_SITE;;
2208 *) ac_site_file1=./$CONFIG_SITE;;
2209 esac
2210 elif test "x$prefix" != xNONE; then
2211 ac_site_file1=$prefix/share/config.site
2212 ac_site_file2=$prefix/etc/config.site
2213 else
2214 ac_site_file1=$ac_default_prefix/share/config.site
2215 ac_site_file2=$ac_default_prefix/etc/config.site
2216 fi
2217 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2218 do
2219 test "x$ac_site_file" = xNONE && continue
2220 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2221 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2222 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2223 sed 's/^/| /' "$ac_site_file" >&5
2224 . "$ac_site_file" \
2225 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2226 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2227 as_fn_error $? "failed to load site script $ac_site_file
2228 See \`config.log' for more details" "$LINENO" 5; }
2229 fi
2230 done
2231
2232 if test -r "$cache_file"; then
2233 # Some versions of bash will fail to source /dev/null (special files
2234 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2235 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2236 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2237 $as_echo "$as_me: loading cache $cache_file" >&6;}
2238 case $cache_file in
2239 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2240 *) . "./$cache_file";;
2241 esac
2242 fi
2243 else
2244 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2245 $as_echo "$as_me: creating cache $cache_file" >&6;}
2246 >$cache_file
2247 fi
2248
2249 # Check that the precious variables saved in the cache have kept the same
2250 # value.
2251 ac_cache_corrupted=false
2252 for ac_var in $ac_precious_vars; do
2253 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2254 eval ac_new_set=\$ac_env_${ac_var}_set
2255 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2256 eval ac_new_val=\$ac_env_${ac_var}_value
2257 case $ac_old_set,$ac_new_set in
2258 set,)
2259 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2260 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2261 ac_cache_corrupted=: ;;
2262 ,set)
2263 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2264 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2265 ac_cache_corrupted=: ;;
2266 ,);;
2267 *)
2268 if test "x$ac_old_val" != "x$ac_new_val"; then
2269 # differences in whitespace do not lead to failure.
2270 ac_old_val_w=`echo x $ac_old_val`
2271 ac_new_val_w=`echo x $ac_new_val`
2272 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2273 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2274 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2275 ac_cache_corrupted=:
2276 else
2277 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2278 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2279 eval $ac_var=\$ac_old_val
2280 fi
2281 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2282 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2283 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2284 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2285 fi;;
2286 esac
2287 # Pass precious variables to config.status.
2288 if test "$ac_new_set" = set; then
2289 case $ac_new_val in
2290 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2291 *) ac_arg=$ac_var=$ac_new_val ;;
2292 esac
2293 case " $ac_configure_args " in
2294 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2295 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2296 esac
2297 fi
2298 done
2299 if $ac_cache_corrupted; then
2300 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2301 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2302 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2303 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2304 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2305 fi
2306 ## -------------------- ##
2307 ## Main body of script. ##
2308 ## -------------------- ##
2309
2310 ac_ext=c
2311 ac_cpp='$CPP $CPPFLAGS'
2312 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2313 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2314 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2315
2316
2317
2318 ac_config_headers="$ac_config_headers config.h"
2319
2320
2321 # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333 ac_aux_dir=
2334 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2335 if test -f "$ac_dir/install-sh"; then
2336 ac_aux_dir=$ac_dir
2337 ac_install_sh="$ac_aux_dir/install-sh -c"
2338 break
2339 elif test -f "$ac_dir/install.sh"; then
2340 ac_aux_dir=$ac_dir
2341 ac_install_sh="$ac_aux_dir/install.sh -c"
2342 break
2343 elif test -f "$ac_dir/shtool"; then
2344 ac_aux_dir=$ac_dir
2345 ac_install_sh="$ac_aux_dir/shtool install -c"
2346 break
2347 fi
2348 done
2349 if test -z "$ac_aux_dir"; then
2350 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2351 fi
2352
2353 # These three variables are undocumented and unsupported,
2354 # and are intended to be withdrawn in a future Autoconf release.
2355 # They can cause serious problems if a builder's source tree is in a directory
2356 # whose full name contains unusual characters.
2357 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2358 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2359 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2360
2361
2362 # Find a good install program. We prefer a C program (faster),
2363 # so one script is as good as another. But avoid the broken or
2364 # incompatible versions:
2365 # SysV /etc/install, /usr/sbin/install
2366 # SunOS /usr/etc/install
2367 # IRIX /sbin/install
2368 # AIX /bin/install
2369 # AmigaOS /C/install, which installs bootblocks on floppy discs
2370 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2371 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2372 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2373 # OS/2's system install, which has a completely different semantic
2374 # ./install, which can be erroneously created by make from ./install.sh.
2375 # Reject install programs that cannot install multiple files.
2376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2377 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2378 if test -z "$INSTALL"; then
2379 if ${ac_cv_path_install+:} false; then :
2380 $as_echo_n "(cached) " >&6
2381 else
2382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2383 for as_dir in $PATH
2384 do
2385 IFS=$as_save_IFS
2386 test -z "$as_dir" && as_dir=.
2387 # Account for people who put trailing slashes in PATH elements.
2388 case $as_dir/ in #((
2389 ./ | .// | /[cC]/* | \
2390 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2391 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2392 /usr/ucb/* ) ;;
2393 *)
2394 # OSF1 and SCO ODT 3.0 have their own names for install.
2395 # Don't use installbsd from OSF since it installs stuff as root
2396 # by default.
2397 for ac_prog in ginstall scoinst install; do
2398 for ac_exec_ext in '' $ac_executable_extensions; do
2399 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2400 if test $ac_prog = install &&
2401 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2402 # AIX install. It has an incompatible calling convention.
2403 :
2404 elif test $ac_prog = install &&
2405 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2406 # program-specific install script used by HP pwplus--don't use.
2407 :
2408 else
2409 rm -rf conftest.one conftest.two conftest.dir
2410 echo one > conftest.one
2411 echo two > conftest.two
2412 mkdir conftest.dir
2413 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2414 test -s conftest.one && test -s conftest.two &&
2415 test -s conftest.dir/conftest.one &&
2416 test -s conftest.dir/conftest.two
2417 then
2418 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2419 break 3
2420 fi
2421 fi
2422 fi
2423 done
2424 done
2425 ;;
2426 esac
2427
2428 done
2429 IFS=$as_save_IFS
2430
2431 rm -rf conftest.one conftest.two conftest.dir
2432
2433 fi
2434 if test "${ac_cv_path_install+set}" = set; then
2435 INSTALL=$ac_cv_path_install
2436 else
2437 # As a last resort, use the slow shell script. Don't cache a
2438 # value for INSTALL within a source directory, because that will
2439 # break other packages using the cache if that directory is
2440 # removed, or if the value is a relative name.
2441 INSTALL=$ac_install_sh
2442 fi
2443 fi
2444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2445 $as_echo "$INSTALL" >&6; }
2446
2447 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2448 # It thinks the first close brace ends the variable substitution.
2449 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2450
2451 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2452
2453 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2454
2455 ac_ext=c
2456 ac_cpp='$CPP $CPPFLAGS'
2457 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2458 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2459 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2460 if test -n "$ac_tool_prefix"; then
2461 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2462 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2464 $as_echo_n "checking for $ac_word... " >&6; }
2465 if ${ac_cv_prog_CC+:} false; then :
2466 $as_echo_n "(cached) " >&6
2467 else
2468 if test -n "$CC"; then
2469 ac_cv_prog_CC="$CC" # Let the user override the test.
2470 else
2471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2472 for as_dir in $PATH
2473 do
2474 IFS=$as_save_IFS
2475 test -z "$as_dir" && as_dir=.
2476 for ac_exec_ext in '' $ac_executable_extensions; do
2477 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2478 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2479 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2480 break 2
2481 fi
2482 done
2483 done
2484 IFS=$as_save_IFS
2485
2486 fi
2487 fi
2488 CC=$ac_cv_prog_CC
2489 if test -n "$CC"; then
2490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2491 $as_echo "$CC" >&6; }
2492 else
2493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2494 $as_echo "no" >&6; }
2495 fi
2496
2497
2498 fi
2499 if test -z "$ac_cv_prog_CC"; then
2500 ac_ct_CC=$CC
2501 # Extract the first word of "gcc", so it can be a program name with args.
2502 set dummy gcc; ac_word=$2
2503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2504 $as_echo_n "checking for $ac_word... " >&6; }
2505 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2506 $as_echo_n "(cached) " >&6
2507 else
2508 if test -n "$ac_ct_CC"; then
2509 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2510 else
2511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2512 for as_dir in $PATH
2513 do
2514 IFS=$as_save_IFS
2515 test -z "$as_dir" && as_dir=.
2516 for ac_exec_ext in '' $ac_executable_extensions; do
2517 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2518 ac_cv_prog_ac_ct_CC="gcc"
2519 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2520 break 2
2521 fi
2522 done
2523 done
2524 IFS=$as_save_IFS
2525
2526 fi
2527 fi
2528 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2529 if test -n "$ac_ct_CC"; then
2530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2531 $as_echo "$ac_ct_CC" >&6; }
2532 else
2533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2534 $as_echo "no" >&6; }
2535 fi
2536
2537 if test "x$ac_ct_CC" = x; then
2538 CC=""
2539 else
2540 case $cross_compiling:$ac_tool_warned in
2541 yes:)
2542 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2543 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2544 ac_tool_warned=yes ;;
2545 esac
2546 CC=$ac_ct_CC
2547 fi
2548 else
2549 CC="$ac_cv_prog_CC"
2550 fi
2551
2552 if test -z "$CC"; then
2553 if test -n "$ac_tool_prefix"; then
2554 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2555 set dummy ${ac_tool_prefix}cc; ac_word=$2
2556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2557 $as_echo_n "checking for $ac_word... " >&6; }
2558 if ${ac_cv_prog_CC+:} false; then :
2559 $as_echo_n "(cached) " >&6
2560 else
2561 if test -n "$CC"; then
2562 ac_cv_prog_CC="$CC" # Let the user override the test.
2563 else
2564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2565 for as_dir in $PATH
2566 do
2567 IFS=$as_save_IFS
2568 test -z "$as_dir" && as_dir=.
2569 for ac_exec_ext in '' $ac_executable_extensions; do
2570 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2571 ac_cv_prog_CC="${ac_tool_prefix}cc"
2572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2573 break 2
2574 fi
2575 done
2576 done
2577 IFS=$as_save_IFS
2578
2579 fi
2580 fi
2581 CC=$ac_cv_prog_CC
2582 if test -n "$CC"; then
2583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2584 $as_echo "$CC" >&6; }
2585 else
2586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2587 $as_echo "no" >&6; }
2588 fi
2589
2590
2591 fi
2592 fi
2593 if test -z "$CC"; then
2594 # Extract the first word of "cc", so it can be a program name with args.
2595 set dummy cc; ac_word=$2
2596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2597 $as_echo_n "checking for $ac_word... " >&6; }
2598 if ${ac_cv_prog_CC+:} false; then :
2599 $as_echo_n "(cached) " >&6
2600 else
2601 if test -n "$CC"; then
2602 ac_cv_prog_CC="$CC" # Let the user override the test.
2603 else
2604 ac_prog_rejected=no
2605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2606 for as_dir in $PATH
2607 do
2608 IFS=$as_save_IFS
2609 test -z "$as_dir" && as_dir=.
2610 for ac_exec_ext in '' $ac_executable_extensions; do
2611 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2612 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2613 ac_prog_rejected=yes
2614 continue
2615 fi
2616 ac_cv_prog_CC="cc"
2617 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2618 break 2
2619 fi
2620 done
2621 done
2622 IFS=$as_save_IFS
2623
2624 if test $ac_prog_rejected = yes; then
2625 # We found a bogon in the path, so make sure we never use it.
2626 set dummy $ac_cv_prog_CC
2627 shift
2628 if test $# != 0; then
2629 # We chose a different compiler from the bogus one.
2630 # However, it has the same basename, so the bogon will be chosen
2631 # first if we set CC to just the basename; use the full file name.
2632 shift
2633 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2634 fi
2635 fi
2636 fi
2637 fi
2638 CC=$ac_cv_prog_CC
2639 if test -n "$CC"; then
2640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2641 $as_echo "$CC" >&6; }
2642 else
2643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2644 $as_echo "no" >&6; }
2645 fi
2646
2647
2648 fi
2649 if test -z "$CC"; then
2650 if test -n "$ac_tool_prefix"; then
2651 for ac_prog in cl.exe
2652 do
2653 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2654 set dummy $ac_tool_prefix$ac_prog; 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 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2664 for as_dir in $PATH
2665 do
2666 IFS=$as_save_IFS
2667 test -z "$as_dir" && as_dir=.
2668 for ac_exec_ext in '' $ac_executable_extensions; do
2669 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2670 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2671 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2672 break 2
2673 fi
2674 done
2675 done
2676 IFS=$as_save_IFS
2677
2678 fi
2679 fi
2680 CC=$ac_cv_prog_CC
2681 if test -n "$CC"; then
2682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2683 $as_echo "$CC" >&6; }
2684 else
2685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2686 $as_echo "no" >&6; }
2687 fi
2688
2689
2690 test -n "$CC" && break
2691 done
2692 fi
2693 if test -z "$CC"; then
2694 ac_ct_CC=$CC
2695 for ac_prog in cl.exe
2696 do
2697 # Extract the first word of "$ac_prog", so it can be a program name with args.
2698 set dummy $ac_prog; ac_word=$2
2699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2700 $as_echo_n "checking for $ac_word... " >&6; }
2701 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2702 $as_echo_n "(cached) " >&6
2703 else
2704 if test -n "$ac_ct_CC"; then
2705 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2706 else
2707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2708 for as_dir in $PATH
2709 do
2710 IFS=$as_save_IFS
2711 test -z "$as_dir" && as_dir=.
2712 for ac_exec_ext in '' $ac_executable_extensions; do
2713 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2714 ac_cv_prog_ac_ct_CC="$ac_prog"
2715 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2716 break 2
2717 fi
2718 done
2719 done
2720 IFS=$as_save_IFS
2721
2722 fi
2723 fi
2724 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2725 if test -n "$ac_ct_CC"; then
2726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2727 $as_echo "$ac_ct_CC" >&6; }
2728 else
2729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2730 $as_echo "no" >&6; }
2731 fi
2732
2733
2734 test -n "$ac_ct_CC" && break
2735 done
2736
2737 if test "x$ac_ct_CC" = x; then
2738 CC=""
2739 else
2740 case $cross_compiling:$ac_tool_warned in
2741 yes:)
2742 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2743 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2744 ac_tool_warned=yes ;;
2745 esac
2746 CC=$ac_ct_CC
2747 fi
2748 fi
2749
2750 fi
2751
2752
2753 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2754 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2755 as_fn_error $? "no acceptable C compiler found in \$PATH
2756 See \`config.log' for more details" "$LINENO" 5; }
2757
2758 # Provide some information about the compiler.
2759 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2760 set X $ac_compile
2761 ac_compiler=$2
2762 for ac_option in --version -v -V -qversion; do
2763 { { ac_try="$ac_compiler $ac_option >&5"
2764 case "(($ac_try" in
2765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2766 *) ac_try_echo=$ac_try;;
2767 esac
2768 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2769 $as_echo "$ac_try_echo"; } >&5
2770 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2771 ac_status=$?
2772 if test -s conftest.err; then
2773 sed '10a\
2774 ... rest of stderr output deleted ...
2775 10q' conftest.err >conftest.er1
2776 cat conftest.er1 >&5
2777 fi
2778 rm -f conftest.er1 conftest.err
2779 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2780 test $ac_status = 0; }
2781 done
2782
2783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2784 /* end confdefs.h. */
2785
2786 int
2787 main ()
2788 {
2789
2790 ;
2791 return 0;
2792 }
2793 _ACEOF
2794 ac_clean_files_save=$ac_clean_files
2795 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2796 # Try to create an executable without -o first, disregard a.out.
2797 # It will help us diagnose broken compilers, and finding out an intuition
2798 # of exeext.
2799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2800 $as_echo_n "checking whether the C compiler works... " >&6; }
2801 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2802
2803 # The possible output files:
2804 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2805
2806 ac_rmfiles=
2807 for ac_file in $ac_files
2808 do
2809 case $ac_file in
2810 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2811 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2812 esac
2813 done
2814 rm -f $ac_rmfiles
2815
2816 if { { ac_try="$ac_link_default"
2817 case "(($ac_try" in
2818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2819 *) ac_try_echo=$ac_try;;
2820 esac
2821 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2822 $as_echo "$ac_try_echo"; } >&5
2823 (eval "$ac_link_default") 2>&5
2824 ac_status=$?
2825 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2826 test $ac_status = 0; }; then :
2827 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2828 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2829 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2830 # so that the user can short-circuit this test for compilers unknown to
2831 # Autoconf.
2832 for ac_file in $ac_files ''
2833 do
2834 test -f "$ac_file" || continue
2835 case $ac_file in
2836 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2837 ;;
2838 [ab].out )
2839 # We found the default executable, but exeext='' is most
2840 # certainly right.
2841 break;;
2842 *.* )
2843 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2844 then :; else
2845 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2846 fi
2847 # We set ac_cv_exeext here because the later test for it is not
2848 # safe: cross compilers may not add the suffix if given an `-o'
2849 # argument, so we may need to know it at that point already.
2850 # Even if this section looks crufty: it has the advantage of
2851 # actually working.
2852 break;;
2853 * )
2854 break;;
2855 esac
2856 done
2857 test "$ac_cv_exeext" = no && ac_cv_exeext=
2858
2859 else
2860 ac_file=''
2861 fi
2862 if test -z "$ac_file"; then :
2863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2864 $as_echo "no" >&6; }
2865 $as_echo "$as_me: failed program was:" >&5
2866 sed 's/^/| /' conftest.$ac_ext >&5
2867
2868 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2869 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2870 as_fn_error 77 "C compiler cannot create executables
2871 See \`config.log' for more details" "$LINENO" 5; }
2872 else
2873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2874 $as_echo "yes" >&6; }
2875 fi
2876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2877 $as_echo_n "checking for C compiler default output file name... " >&6; }
2878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2879 $as_echo "$ac_file" >&6; }
2880 ac_exeext=$ac_cv_exeext
2881
2882 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2883 ac_clean_files=$ac_clean_files_save
2884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2885 $as_echo_n "checking for suffix of executables... " >&6; }
2886 if { { ac_try="$ac_link"
2887 case "(($ac_try" in
2888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2889 *) ac_try_echo=$ac_try;;
2890 esac
2891 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2892 $as_echo "$ac_try_echo"; } >&5
2893 (eval "$ac_link") 2>&5
2894 ac_status=$?
2895 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2896 test $ac_status = 0; }; then :
2897 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2898 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2899 # work properly (i.e., refer to `conftest.exe'), while it won't with
2900 # `rm'.
2901 for ac_file in conftest.exe conftest conftest.*; do
2902 test -f "$ac_file" || continue
2903 case $ac_file in
2904 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2905 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2906 break;;
2907 * ) break;;
2908 esac
2909 done
2910 else
2911 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2912 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2913 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2914 See \`config.log' for more details" "$LINENO" 5; }
2915 fi
2916 rm -f conftest conftest$ac_cv_exeext
2917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2918 $as_echo "$ac_cv_exeext" >&6; }
2919
2920 rm -f conftest.$ac_ext
2921 EXEEXT=$ac_cv_exeext
2922 ac_exeext=$EXEEXT
2923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2924 /* end confdefs.h. */
2925 #include <stdio.h>
2926 int
2927 main ()
2928 {
2929 FILE *f = fopen ("conftest.out", "w");
2930 return ferror (f) || fclose (f) != 0;
2931
2932 ;
2933 return 0;
2934 }
2935 _ACEOF
2936 ac_clean_files="$ac_clean_files conftest.out"
2937 # Check that the compiler produces executables we can run. If not, either
2938 # the compiler is broken, or we cross compile.
2939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2940 $as_echo_n "checking whether we are cross compiling... " >&6; }
2941 if test "$cross_compiling" != yes; then
2942 { { ac_try="$ac_link"
2943 case "(($ac_try" in
2944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2945 *) ac_try_echo=$ac_try;;
2946 esac
2947 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2948 $as_echo "$ac_try_echo"; } >&5
2949 (eval "$ac_link") 2>&5
2950 ac_status=$?
2951 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2952 test $ac_status = 0; }
2953 if { ac_try='./conftest$ac_cv_exeext'
2954 { { case "(($ac_try" in
2955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2956 *) ac_try_echo=$ac_try;;
2957 esac
2958 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2959 $as_echo "$ac_try_echo"; } >&5
2960 (eval "$ac_try") 2>&5
2961 ac_status=$?
2962 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2963 test $ac_status = 0; }; }; then
2964 cross_compiling=no
2965 else
2966 if test "$cross_compiling" = maybe; then
2967 cross_compiling=yes
2968 else
2969 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2970 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2971 as_fn_error $? "cannot run C compiled programs.
2972 If you meant to cross compile, use \`--host'.
2973 See \`config.log' for more details" "$LINENO" 5; }
2974 fi
2975 fi
2976 fi
2977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2978 $as_echo "$cross_compiling" >&6; }
2979
2980 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2981 ac_clean_files=$ac_clean_files_save
2982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2983 $as_echo_n "checking for suffix of object files... " >&6; }
2984 if ${ac_cv_objext+:} false; then :
2985 $as_echo_n "(cached) " >&6
2986 else
2987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2988 /* end confdefs.h. */
2989
2990 int
2991 main ()
2992 {
2993
2994 ;
2995 return 0;
2996 }
2997 _ACEOF
2998 rm -f conftest.o conftest.obj
2999 if { { ac_try="$ac_compile"
3000 case "(($ac_try" in
3001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3002 *) ac_try_echo=$ac_try;;
3003 esac
3004 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3005 $as_echo "$ac_try_echo"; } >&5
3006 (eval "$ac_compile") 2>&5
3007 ac_status=$?
3008 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3009 test $ac_status = 0; }; then :
3010 for ac_file in conftest.o conftest.obj conftest.*; do
3011 test -f "$ac_file" || continue;
3012 case $ac_file in
3013 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3014 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3015 break;;
3016 esac
3017 done
3018 else
3019 $as_echo "$as_me: failed program was:" >&5
3020 sed 's/^/| /' conftest.$ac_ext >&5
3021
3022 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3023 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3024 as_fn_error $? "cannot compute suffix of object files: cannot compile
3025 See \`config.log' for more details" "$LINENO" 5; }
3026 fi
3027 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3028 fi
3029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3030 $as_echo "$ac_cv_objext" >&6; }
3031 OBJEXT=$ac_cv_objext
3032 ac_objext=$OBJEXT
3033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3034 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3035 if ${ac_cv_c_compiler_gnu+:} false; then :
3036 $as_echo_n "(cached) " >&6
3037 else
3038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3039 /* end confdefs.h. */
3040
3041 int
3042 main ()
3043 {
3044 #ifndef __GNUC__
3045 choke me
3046 #endif
3047
3048 ;
3049 return 0;
3050 }
3051 _ACEOF
3052 if ac_fn_c_try_compile "$LINENO"; then :
3053 ac_compiler_gnu=yes
3054 else
3055 ac_compiler_gnu=no
3056 fi
3057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3058 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3059
3060 fi
3061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3062 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3063 if test $ac_compiler_gnu = yes; then
3064 GCC=yes
3065 else
3066 GCC=
3067 fi
3068 ac_test_CFLAGS=${CFLAGS+set}
3069 ac_save_CFLAGS=$CFLAGS
3070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3071 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3072 if ${ac_cv_prog_cc_g+:} false; then :
3073 $as_echo_n "(cached) " >&6
3074 else
3075 ac_save_c_werror_flag=$ac_c_werror_flag
3076 ac_c_werror_flag=yes
3077 ac_cv_prog_cc_g=no
3078 CFLAGS="-g"
3079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3080 /* end confdefs.h. */
3081
3082 int
3083 main ()
3084 {
3085
3086 ;
3087 return 0;
3088 }
3089 _ACEOF
3090 if ac_fn_c_try_compile "$LINENO"; then :
3091 ac_cv_prog_cc_g=yes
3092 else
3093 CFLAGS=""
3094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3095 /* end confdefs.h. */
3096
3097 int
3098 main ()
3099 {
3100
3101 ;
3102 return 0;
3103 }
3104 _ACEOF
3105 if ac_fn_c_try_compile "$LINENO"; then :
3106
3107 else
3108 ac_c_werror_flag=$ac_save_c_werror_flag
3109 CFLAGS="-g"
3110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3111 /* end confdefs.h. */
3112
3113 int
3114 main ()
3115 {
3116
3117 ;
3118 return 0;
3119 }
3120 _ACEOF
3121 if ac_fn_c_try_compile "$LINENO"; then :
3122 ac_cv_prog_cc_g=yes
3123 fi
3124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3125 fi
3126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3127 fi
3128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3129 ac_c_werror_flag=$ac_save_c_werror_flag
3130 fi
3131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3132 $as_echo "$ac_cv_prog_cc_g" >&6; }
3133 if test "$ac_test_CFLAGS" = set; then
3134 CFLAGS=$ac_save_CFLAGS
3135 elif test $ac_cv_prog_cc_g = yes; then
3136 if test "$GCC" = yes; then
3137 CFLAGS="-g -O2"
3138 else
3139 CFLAGS="-g"
3140 fi
3141 else
3142 if test "$GCC" = yes; then
3143 CFLAGS="-O2"
3144 else
3145 CFLAGS=
3146 fi
3147 fi
3148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3149 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3150 if ${ac_cv_prog_cc_c89+:} false; then :
3151 $as_echo_n "(cached) " >&6
3152 else
3153 ac_cv_prog_cc_c89=no
3154 ac_save_CC=$CC
3155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3156 /* end confdefs.h. */
3157 #include <stdarg.h>
3158 #include <stdio.h>
3159 #include <sys/types.h>
3160 #include <sys/stat.h>
3161 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3162 struct buf { int x; };
3163 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3164 static char *e (p, i)
3165 char **p;
3166 int i;
3167 {
3168 return p[i];
3169 }
3170 static char *f (char * (*g) (char **, int), char **p, ...)
3171 {
3172 char *s;
3173 va_list v;
3174 va_start (v,p);
3175 s = g (p, va_arg (v,int));
3176 va_end (v);
3177 return s;
3178 }
3179
3180 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3181 function prototypes and stuff, but not '\xHH' hex character constants.
3182 These don't provoke an error unfortunately, instead are silently treated
3183 as 'x'. The following induces an error, until -std is added to get
3184 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3185 array size at least. It's necessary to write '\x00'==0 to get something
3186 that's true only with -std. */
3187 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3188
3189 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3190 inside strings and character constants. */
3191 #define FOO(x) 'x'
3192 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3193
3194 int test (int i, double x);
3195 struct s1 {int (*f) (int a);};
3196 struct s2 {int (*f) (double a);};
3197 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3198 int argc;
3199 char **argv;
3200 int
3201 main ()
3202 {
3203 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3204 ;
3205 return 0;
3206 }
3207 _ACEOF
3208 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3209 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3210 do
3211 CC="$ac_save_CC $ac_arg"
3212 if ac_fn_c_try_compile "$LINENO"; then :
3213 ac_cv_prog_cc_c89=$ac_arg
3214 fi
3215 rm -f core conftest.err conftest.$ac_objext
3216 test "x$ac_cv_prog_cc_c89" != "xno" && break
3217 done
3218 rm -f conftest.$ac_ext
3219 CC=$ac_save_CC
3220
3221 fi
3222 # AC_CACHE_VAL
3223 case "x$ac_cv_prog_cc_c89" in
3224 x)
3225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3226 $as_echo "none needed" >&6; } ;;
3227 xno)
3228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3229 $as_echo "unsupported" >&6; } ;;
3230 *)
3231 CC="$CC $ac_cv_prog_cc_c89"
3232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3233 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3234 esac
3235 if test "x$ac_cv_prog_cc_c89" != xno; then :
3236
3237 fi
3238
3239 ac_ext=c
3240 ac_cpp='$CPP $CPPFLAGS'
3241 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3242 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3243 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3244
3245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3246 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3247 if ${ac_cv_prog_cc_c99+:} false; then :
3248 $as_echo_n "(cached) " >&6
3249 else
3250 ac_cv_prog_cc_c99=no
3251 ac_save_CC=$CC
3252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3253 /* end confdefs.h. */
3254 #include <stdarg.h>
3255 #include <stdbool.h>
3256 #include <stdlib.h>
3257 #include <wchar.h>
3258 #include <stdio.h>
3259
3260 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3261 #define debug(...) fprintf (stderr, __VA_ARGS__)
3262 #define showlist(...) puts (#__VA_ARGS__)
3263 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3264 static void
3265 test_varargs_macros (void)
3266 {
3267 int x = 1234;
3268 int y = 5678;
3269 debug ("Flag");
3270 debug ("X = %d\n", x);
3271 showlist (The first, second, and third items.);
3272 report (x>y, "x is %d but y is %d", x, y);
3273 }
3274
3275 // Check long long types.
3276 #define BIG64 18446744073709551615ull
3277 #define BIG32 4294967295ul
3278 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3279 #if !BIG_OK
3280 your preprocessor is broken;
3281 #endif
3282 #if BIG_OK
3283 #else
3284 your preprocessor is broken;
3285 #endif
3286 static long long int bignum = -9223372036854775807LL;
3287 static unsigned long long int ubignum = BIG64;
3288
3289 struct incomplete_array
3290 {
3291 int datasize;
3292 double data[];
3293 };
3294
3295 struct named_init {
3296 int number;
3297 const wchar_t *name;
3298 double average;
3299 };
3300
3301 typedef const char *ccp;
3302
3303 static inline int
3304 test_restrict (ccp restrict text)
3305 {
3306 // See if C++-style comments work.
3307 // Iterate through items via the restricted pointer.
3308 // Also check for declarations in for loops.
3309 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3310 continue;
3311 return 0;
3312 }
3313
3314 // Check varargs and va_copy.
3315 static void
3316 test_varargs (const char *format, ...)
3317 {
3318 va_list args;
3319 va_start (args, format);
3320 va_list args_copy;
3321 va_copy (args_copy, args);
3322
3323 const char *str;
3324 int number;
3325 float fnumber;
3326
3327 while (*format)
3328 {
3329 switch (*format++)
3330 {
3331 case 's': // string
3332 str = va_arg (args_copy, const char *);
3333 break;
3334 case 'd': // int
3335 number = va_arg (args_copy, int);
3336 break;
3337 case 'f': // float
3338 fnumber = va_arg (args_copy, double);
3339 break;
3340 default:
3341 break;
3342 }
3343 }
3344 va_end (args_copy);
3345 va_end (args);
3346 }
3347
3348 int
3349 main ()
3350 {
3351
3352 // Check bool.
3353 _Bool success = false;
3354
3355 // Check restrict.
3356 if (test_restrict ("String literal") == 0)
3357 success = true;
3358 char *restrict newvar = "Another string";
3359
3360 // Check varargs.
3361 test_varargs ("s, d' f .", "string", 65, 34.234);
3362 test_varargs_macros ();
3363
3364 // Check flexible array members.
3365 struct incomplete_array *ia =
3366 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3367 ia->datasize = 10;
3368 for (int i = 0; i < ia->datasize; ++i)
3369 ia->data[i] = i * 1.234;
3370
3371 // Check named initializers.
3372 struct named_init ni = {
3373 .number = 34,
3374 .name = L"Test wide string",
3375 .average = 543.34343,
3376 };
3377
3378 ni.number = 58;
3379
3380 int dynamic_array[ni.number];
3381 dynamic_array[ni.number - 1] = 543;
3382
3383 // work around unused variable warnings
3384 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3385 || dynamic_array[ni.number - 1] != 543);
3386
3387 ;
3388 return 0;
3389 }
3390 _ACEOF
3391 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
3392 do
3393 CC="$ac_save_CC $ac_arg"
3394 if ac_fn_c_try_compile "$LINENO"; then :
3395 ac_cv_prog_cc_c99=$ac_arg
3396 fi
3397 rm -f core conftest.err conftest.$ac_objext
3398 test "x$ac_cv_prog_cc_c99" != "xno" && break
3399 done
3400 rm -f conftest.$ac_ext
3401 CC=$ac_save_CC
3402
3403 fi
3404 # AC_CACHE_VAL
3405 case "x$ac_cv_prog_cc_c99" in
3406 x)
3407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3408 $as_echo "none needed" >&6; } ;;
3409 xno)
3410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3411 $as_echo "unsupported" >&6; } ;;
3412 *)
3413 CC="$CC $ac_cv_prog_cc_c99"
3414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3415 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
3416 esac
3417 if test "x$ac_cv_prog_cc_c99" != xno; then :
3418
3419 fi
3420
3421
3422
3423 ac_ext=c
3424 ac_cpp='$CPP $CPPFLAGS'
3425 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3426 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3427 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3429 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3430 # On Suns, sometimes $CPP names a directory.
3431 if test -n "$CPP" && test -d "$CPP"; then
3432 CPP=
3433 fi
3434 if test -z "$CPP"; then
3435 if ${ac_cv_prog_CPP+:} false; then :
3436 $as_echo_n "(cached) " >&6
3437 else
3438 # Double quotes because CPP needs to be expanded
3439 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3440 do
3441 ac_preproc_ok=false
3442 for ac_c_preproc_warn_flag in '' yes
3443 do
3444 # Use a header file that comes with gcc, so configuring glibc
3445 # with a fresh cross-compiler works.
3446 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3447 # <limits.h> exists even on freestanding compilers.
3448 # On the NeXT, cc -E runs the code through the compiler's parser,
3449 # not just through cpp. "Syntax error" is here to catch this case.
3450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3451 /* end confdefs.h. */
3452 #ifdef __STDC__
3453 # include <limits.h>
3454 #else
3455 # include <assert.h>
3456 #endif
3457 Syntax error
3458 _ACEOF
3459 if ac_fn_c_try_cpp "$LINENO"; then :
3460
3461 else
3462 # Broken: fails on valid input.
3463 continue
3464 fi
3465 rm -f conftest.err conftest.i conftest.$ac_ext
3466
3467 # OK, works on sane cases. Now check whether nonexistent headers
3468 # can be detected and how.
3469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3470 /* end confdefs.h. */
3471 #include <ac_nonexistent.h>
3472 _ACEOF
3473 if ac_fn_c_try_cpp "$LINENO"; then :
3474 # Broken: success on invalid input.
3475 continue
3476 else
3477 # Passes both tests.
3478 ac_preproc_ok=:
3479 break
3480 fi
3481 rm -f conftest.err conftest.i conftest.$ac_ext
3482
3483 done
3484 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3485 rm -f conftest.i conftest.err conftest.$ac_ext
3486 if $ac_preproc_ok; then :
3487 break
3488 fi
3489
3490 done
3491 ac_cv_prog_CPP=$CPP
3492
3493 fi
3494 CPP=$ac_cv_prog_CPP
3495 else
3496 ac_cv_prog_CPP=$CPP
3497 fi
3498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3499 $as_echo "$CPP" >&6; }
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
3547 else
3548 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3549 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3550 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3551 See \`config.log' for more details" "$LINENO" 5; }
3552 fi
3553
3554 ac_ext=c
3555 ac_cpp='$CPP $CPPFLAGS'
3556 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3557 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3558 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3559
3560
3561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3562 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3563 if ${ac_cv_path_GREP+:} false; then :
3564 $as_echo_n "(cached) " >&6
3565 else
3566 if test -z "$GREP"; then
3567 ac_path_GREP_found=false
3568 # Loop through the user's path and test for each of PROGNAME-LIST
3569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3570 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3571 do
3572 IFS=$as_save_IFS
3573 test -z "$as_dir" && as_dir=.
3574 for ac_prog in grep ggrep; do
3575 for ac_exec_ext in '' $ac_executable_extensions; do
3576 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3577 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3578 # Check for GNU ac_path_GREP and select it if it is found.
3579 # Check for GNU $ac_path_GREP
3580 case `"$ac_path_GREP" --version 2>&1` in
3581 *GNU*)
3582 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3583 *)
3584 ac_count=0
3585 $as_echo_n 0123456789 >"conftest.in"
3586 while :
3587 do
3588 cat "conftest.in" "conftest.in" >"conftest.tmp"
3589 mv "conftest.tmp" "conftest.in"
3590 cp "conftest.in" "conftest.nl"
3591 $as_echo 'GREP' >> "conftest.nl"
3592 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3593 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3594 as_fn_arith $ac_count + 1 && ac_count=$as_val
3595 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3596 # Best one so far, save it but keep looking for a better one
3597 ac_cv_path_GREP="$ac_path_GREP"
3598 ac_path_GREP_max=$ac_count
3599 fi
3600 # 10*(2^10) chars as input seems more than enough
3601 test $ac_count -gt 10 && break
3602 done
3603 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3604 esac
3605
3606 $ac_path_GREP_found && break 3
3607 done
3608 done
3609 done
3610 IFS=$as_save_IFS
3611 if test -z "$ac_cv_path_GREP"; then
3612 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3613 fi
3614 else
3615 ac_cv_path_GREP=$GREP
3616 fi
3617
3618 fi
3619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3620 $as_echo "$ac_cv_path_GREP" >&6; }
3621 GREP="$ac_cv_path_GREP"
3622
3623
3624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3625 $as_echo_n "checking for egrep... " >&6; }
3626 if ${ac_cv_path_EGREP+:} false; then :
3627 $as_echo_n "(cached) " >&6
3628 else
3629 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3630 then ac_cv_path_EGREP="$GREP -E"
3631 else
3632 if test -z "$EGREP"; then
3633 ac_path_EGREP_found=false
3634 # Loop through the user's path and test for each of PROGNAME-LIST
3635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3636 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3637 do
3638 IFS=$as_save_IFS
3639 test -z "$as_dir" && as_dir=.
3640 for ac_prog in egrep; do
3641 for ac_exec_ext in '' $ac_executable_extensions; do
3642 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3643 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3644 # Check for GNU ac_path_EGREP and select it if it is found.
3645 # Check for GNU $ac_path_EGREP
3646 case `"$ac_path_EGREP" --version 2>&1` in
3647 *GNU*)
3648 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3649 *)
3650 ac_count=0
3651 $as_echo_n 0123456789 >"conftest.in"
3652 while :
3653 do
3654 cat "conftest.in" "conftest.in" >"conftest.tmp"
3655 mv "conftest.tmp" "conftest.in"
3656 cp "conftest.in" "conftest.nl"
3657 $as_echo 'EGREP' >> "conftest.nl"
3658 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3659 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3660 as_fn_arith $ac_count + 1 && ac_count=$as_val
3661 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3662 # Best one so far, save it but keep looking for a better one
3663 ac_cv_path_EGREP="$ac_path_EGREP"
3664 ac_path_EGREP_max=$ac_count
3665 fi
3666 # 10*(2^10) chars as input seems more than enough
3667 test $ac_count -gt 10 && break
3668 done
3669 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3670 esac
3671
3672 $ac_path_EGREP_found && break 3
3673 done
3674 done
3675 done
3676 IFS=$as_save_IFS
3677 if test -z "$ac_cv_path_EGREP"; then
3678 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3679 fi
3680 else
3681 ac_cv_path_EGREP=$EGREP
3682 fi
3683
3684 fi
3685 fi
3686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3687 $as_echo "$ac_cv_path_EGREP" >&6; }
3688 EGREP="$ac_cv_path_EGREP"
3689
3690
3691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3692 $as_echo_n "checking for ANSI C header files... " >&6; }
3693 if ${ac_cv_header_stdc+:} false; then :
3694 $as_echo_n "(cached) " >&6
3695 else
3696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3697 /* end confdefs.h. */
3698 #include <stdlib.h>
3699 #include <stdarg.h>
3700 #include <string.h>
3701 #include <float.h>
3702
3703 int
3704 main ()
3705 {
3706
3707 ;
3708 return 0;
3709 }
3710 _ACEOF
3711 if ac_fn_c_try_compile "$LINENO"; then :
3712 ac_cv_header_stdc=yes
3713 else
3714 ac_cv_header_stdc=no
3715 fi
3716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3717
3718 if test $ac_cv_header_stdc = yes; then
3719 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3721 /* end confdefs.h. */
3722 #include <string.h>
3723
3724 _ACEOF
3725 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3726 $EGREP "memchr" >/dev/null 2>&1; then :
3727
3728 else
3729 ac_cv_header_stdc=no
3730 fi
3731 rm -f conftest*
3732
3733 fi
3734
3735 if test $ac_cv_header_stdc = yes; then
3736 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3738 /* end confdefs.h. */
3739 #include <stdlib.h>
3740
3741 _ACEOF
3742 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3743 $EGREP "free" >/dev/null 2>&1; then :
3744
3745 else
3746 ac_cv_header_stdc=no
3747 fi
3748 rm -f conftest*
3749
3750 fi
3751
3752 if test $ac_cv_header_stdc = yes; then
3753 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3754 if test "$cross_compiling" = yes; then :
3755 :
3756 else
3757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3758 /* end confdefs.h. */
3759 #include <ctype.h>
3760 #include <stdlib.h>
3761 #if ((' ' & 0x0FF) == 0x020)
3762 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3763 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3764 #else
3765 # define ISLOWER(c) \
3766 (('a' <= (c) && (c) <= 'i') \
3767 || ('j' <= (c) && (c) <= 'r') \
3768 || ('s' <= (c) && (c) <= 'z'))
3769 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3770 #endif
3771
3772 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3773 int
3774 main ()
3775 {
3776 int i;
3777 for (i = 0; i < 256; i++)
3778 if (XOR (islower (i), ISLOWER (i))
3779 || toupper (i) != TOUPPER (i))
3780 return 2;
3781 return 0;
3782 }
3783 _ACEOF
3784 if ac_fn_c_try_run "$LINENO"; then :
3785
3786 else
3787 ac_cv_header_stdc=no
3788 fi
3789 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3790 conftest.$ac_objext conftest.beam conftest.$ac_ext
3791 fi
3792
3793 fi
3794 fi
3795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3796 $as_echo "$ac_cv_header_stdc" >&6; }
3797 if test $ac_cv_header_stdc = yes; then
3798
3799 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3800
3801 fi
3802
3803 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3804 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3805 inttypes.h stdint.h unistd.h
3806 do :
3807 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3808 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3809 "
3810 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3811 cat >>confdefs.h <<_ACEOF
3812 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3813 _ACEOF
3814
3815 fi
3816
3817 done
3818
3819
3820
3821
3822
3823
3824 ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
3825 if test "x$ac_cv_have_decl___clang__" = xyes; then :
3826 CLANGCC="yes"
3827 else
3828 CLANGCC="no"
3829 fi
3830
3831 ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
3832 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
3833 INTELCC="yes"
3834 else
3835 INTELCC="no"
3836 fi
3837
3838 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
3839 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
3840 SUNCC="yes"
3841 else
3842 SUNCC="no"
3843 fi
3844
3845
3846
3847
3848
3849
3850
3851
3852 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
3853 if test -n "$ac_tool_prefix"; then
3854 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
3855 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
3856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3857 $as_echo_n "checking for $ac_word... " >&6; }
3858 if ${ac_cv_path_PKG_CONFIG+:} false; then :
3859 $as_echo_n "(cached) " >&6
3860 else
3861 case $PKG_CONFIG in
3862 [\\/]* | ?:[\\/]*)
3863 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
3864 ;;
3865 *)
3866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3867 for as_dir in $PATH
3868 do
3869 IFS=$as_save_IFS
3870 test -z "$as_dir" && as_dir=.
3871 for ac_exec_ext in '' $ac_executable_extensions; do
3872 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3873 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
3874 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3875 break 2
3876 fi
3877 done
3878 done
3879 IFS=$as_save_IFS
3880
3881 ;;
3882 esac
3883 fi
3884 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
3885 if test -n "$PKG_CONFIG"; then
3886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
3887 $as_echo "$PKG_CONFIG" >&6; }
3888 else
3889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3890 $as_echo "no" >&6; }
3891 fi
3892
3893
3894 fi
3895 if test -z "$ac_cv_path_PKG_CONFIG"; then
3896 ac_pt_PKG_CONFIG=$PKG_CONFIG
3897 # Extract the first word of "pkg-config", so it can be a program name with args.
3898 set dummy pkg-config; ac_word=$2
3899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3900 $as_echo_n "checking for $ac_word... " >&6; }
3901 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
3902 $as_echo_n "(cached) " >&6
3903 else
3904 case $ac_pt_PKG_CONFIG in
3905 [\\/]* | ?:[\\/]*)
3906 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
3907 ;;
3908 *)
3909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3910 for as_dir in $PATH
3911 do
3912 IFS=$as_save_IFS
3913 test -z "$as_dir" && as_dir=.
3914 for ac_exec_ext in '' $ac_executable_extensions; do
3915 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3916 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
3917 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3918 break 2
3919 fi
3920 done
3921 done
3922 IFS=$as_save_IFS
3923
3924 ;;
3925 esac
3926 fi
3927 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
3928 if test -n "$ac_pt_PKG_CONFIG"; then
3929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
3930 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
3931 else
3932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3933 $as_echo "no" >&6; }
3934 fi
3935
3936 if test "x$ac_pt_PKG_CONFIG" = x; then
3937 PKG_CONFIG=""
3938 else
3939 case $cross_compiling:$ac_tool_warned in
3940 yes:)
3941 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3942 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3943 ac_tool_warned=yes ;;
3944 esac
3945 PKG_CONFIG=$ac_pt_PKG_CONFIG
3946 fi
3947 else
3948 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
3949 fi
3950
3951 fi
3952 if test -n "$PKG_CONFIG"; then
3953 _pkg_min_version=0.9.0
3954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
3955 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
3956 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
3957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3958 $as_echo "yes" >&6; }
3959 else
3960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3961 $as_echo "no" >&6; }
3962 PKG_CONFIG=""
3963 fi
3964 fi
3965 # Make sure we can run config.sub.
3966 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3967 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3968
3969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3970 $as_echo_n "checking build system type... " >&6; }
3971 if ${ac_cv_build+:} false; then :
3972 $as_echo_n "(cached) " >&6
3973 else
3974 ac_build_alias=$build_alias
3975 test "x$ac_build_alias" = x &&
3976 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3977 test "x$ac_build_alias" = x &&
3978 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3979 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3980 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3981
3982 fi
3983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3984 $as_echo "$ac_cv_build" >&6; }
3985 case $ac_cv_build in
3986 *-*-*) ;;
3987 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3988 esac
3989 build=$ac_cv_build
3990 ac_save_IFS=$IFS; IFS='-'
3991 set x $ac_cv_build
3992 shift
3993 build_cpu=$1
3994 build_vendor=$2
3995 shift; shift
3996 # Remember, the first character of IFS is used to create $*,
3997 # except with old shells:
3998 build_os=$*
3999 IFS=$ac_save_IFS
4000 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4001
4002
4003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4004 $as_echo_n "checking host system type... " >&6; }
4005 if ${ac_cv_host+:} false; then :
4006 $as_echo_n "(cached) " >&6
4007 else
4008 if test "x$host_alias" = x; then
4009 ac_cv_host=$ac_cv_build
4010 else
4011 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4012 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4013 fi
4014
4015 fi
4016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4017 $as_echo "$ac_cv_host" >&6; }
4018 case $ac_cv_host in
4019 *-*-*) ;;
4020 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4021 esac
4022 host=$ac_cv_host
4023 ac_save_IFS=$IFS; IFS='-'
4024 set x $ac_cv_host
4025 shift
4026 host_cpu=$1
4027 host_vendor=$2
4028 shift; shift
4029 # Remember, the first character of IFS is used to create $*,
4030 # except with old shells:
4031 host_os=$*
4032 IFS=$ac_save_IFS
4033 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4034
4035
4036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4037 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4038 if ${ac_cv_path_SED+:} false; then :
4039 $as_echo_n "(cached) " >&6
4040 else
4041 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4042 for ac_i in 1 2 3 4 5 6 7; do
4043 ac_script="$ac_script$as_nl$ac_script"
4044 done
4045 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4046 { ac_script=; unset ac_script;}
4047 if test -z "$SED"; then
4048 ac_path_SED_found=false
4049 # Loop through the user's path and test for each of PROGNAME-LIST
4050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4051 for as_dir in $PATH
4052 do
4053 IFS=$as_save_IFS
4054 test -z "$as_dir" && as_dir=.
4055 for ac_prog in sed gsed; do
4056 for ac_exec_ext in '' $ac_executable_extensions; do
4057 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4058 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4059 # Check for GNU ac_path_SED and select it if it is found.
4060 # Check for GNU $ac_path_SED
4061 case `"$ac_path_SED" --version 2>&1` in
4062 *GNU*)
4063 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4064 *)
4065 ac_count=0
4066 $as_echo_n 0123456789 >"conftest.in"
4067 while :
4068 do
4069 cat "conftest.in" "conftest.in" >"conftest.tmp"
4070 mv "conftest.tmp" "conftest.in"
4071 cp "conftest.in" "conftest.nl"
4072 $as_echo '' >> "conftest.nl"
4073 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4074 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4075 as_fn_arith $ac_count + 1 && ac_count=$as_val
4076 if test $ac_count -gt ${ac_path_SED_max-0}; then
4077 # Best one so far, save it but keep looking for a better one
4078 ac_cv_path_SED="$ac_path_SED"
4079 ac_path_SED_max=$ac_count
4080 fi
4081 # 10*(2^10) chars as input seems more than enough
4082 test $ac_count -gt 10 && break
4083 done
4084 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4085 esac
4086
4087 $ac_path_SED_found && break 3
4088 done
4089 done
4090 done
4091 IFS=$as_save_IFS
4092 if test -z "$ac_cv_path_SED"; then
4093 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4094 fi
4095 else
4096 ac_cv_path_SED=$SED
4097 fi
4098
4099 fi
4100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4101 $as_echo "$ac_cv_path_SED" >&6; }
4102 SED="$ac_cv_path_SED"
4103 rm -f conftest.sed
4104
4105
4106
4107
4108
4109
4110 # Check whether --enable-selective-werror was given.
4111 if test "${enable_selective_werror+set}" = set; then :
4112 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4113 else
4114 SELECTIVE_WERROR=yes
4115 fi
4116
4117
4118
4119
4120
4121 # -v is too short to test reliably with XORG_TESTSET_CFLAG
4122 if test "x$SUNCC" = "xyes"; then
4123 BASE_CFLAGS="-v"
4124 else
4125 BASE_CFLAGS=""
4126 fi
4127
4128 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
4129
4130
4131
4132
4133
4134
4135
4136
4137
4138
4139
4140
4141
4142 xorg_testset_save_CFLAGS="$CFLAGS"
4143
4144 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4145 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4147 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4148 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4149 $as_echo_n "(cached) " >&6
4150 else
4151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4152 /* end confdefs.h. */
4153 int i;
4154 _ACEOF
4155 if ac_fn_c_try_compile "$LINENO"; then :
4156 xorg_cv_cc_flag_unknown_warning_option=yes
4157 else
4158 xorg_cv_cc_flag_unknown_warning_option=no
4159 fi
4160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4161 fi
4162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4163 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4164 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4165 CFLAGS="$xorg_testset_save_CFLAGS"
4166 fi
4167
4168 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4169 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4170 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4171 fi
4172 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4174 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4175 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4176 $as_echo_n "(cached) " >&6
4177 else
4178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4179 /* end confdefs.h. */
4180 int i;
4181 _ACEOF
4182 if ac_fn_c_try_compile "$LINENO"; then :
4183 xorg_cv_cc_flag_unused_command_line_argument=yes
4184 else
4185 xorg_cv_cc_flag_unused_command_line_argument=no
4186 fi
4187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4188 fi
4189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4190 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4191 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4192 CFLAGS="$xorg_testset_save_CFLAGS"
4193 fi
4194
4195 found="no"
4196
4197 if test $found = "no" ; then
4198 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4199 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4200 fi
4201
4202 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4203 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4204 fi
4205
4206 CFLAGS="$CFLAGS -Wall"
4207
4208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
4209 $as_echo_n "checking if $CC supports -Wall... " >&6; }
4210 cacheid=xorg_cv_cc_flag__Wall
4211 if eval \${$cacheid+:} false; then :
4212 $as_echo_n "(cached) " >&6
4213 else
4214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4215 /* end confdefs.h. */
4216 int i;
4217 int
4218 main ()
4219 {
4220
4221 ;
4222 return 0;
4223 }
4224 _ACEOF
4225 if ac_fn_c_try_link "$LINENO"; then :
4226 eval $cacheid=yes
4227 else
4228 eval $cacheid=no
4229 fi
4230 rm -f core conftest.err conftest.$ac_objext \
4231 conftest$ac_exeext conftest.$ac_ext
4232 fi
4233
4234
4235 CFLAGS="$xorg_testset_save_CFLAGS"
4236
4237 eval supported=\$$cacheid
4238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4239 $as_echo "$supported" >&6; }
4240 if test "$supported" = "yes" ; then
4241 BASE_CFLAGS="$BASE_CFLAGS -Wall"
4242 found="yes"
4243 fi
4244 fi
4245
4246
4247
4248
4249
4250
4251
4252
4253
4254
4255
4256
4257
4258
4259
4260 xorg_testset_save_CFLAGS="$CFLAGS"
4261
4262 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4263 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4265 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4266 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4267 $as_echo_n "(cached) " >&6
4268 else
4269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4270 /* end confdefs.h. */
4271 int i;
4272 _ACEOF
4273 if ac_fn_c_try_compile "$LINENO"; then :
4274 xorg_cv_cc_flag_unknown_warning_option=yes
4275 else
4276 xorg_cv_cc_flag_unknown_warning_option=no
4277 fi
4278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4279 fi
4280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4281 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4282 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4283 CFLAGS="$xorg_testset_save_CFLAGS"
4284 fi
4285
4286 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4287 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4288 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4289 fi
4290 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4292 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4293 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4294 $as_echo_n "(cached) " >&6
4295 else
4296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4297 /* end confdefs.h. */
4298 int i;
4299 _ACEOF
4300 if ac_fn_c_try_compile "$LINENO"; then :
4301 xorg_cv_cc_flag_unused_command_line_argument=yes
4302 else
4303 xorg_cv_cc_flag_unused_command_line_argument=no
4304 fi
4305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4306 fi
4307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4308 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4309 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4310 CFLAGS="$xorg_testset_save_CFLAGS"
4311 fi
4312
4313 found="no"
4314
4315 if test $found = "no" ; then
4316 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4317 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4318 fi
4319
4320 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4321 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4322 fi
4323
4324 CFLAGS="$CFLAGS -Wpointer-arith"
4325
4326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
4327 $as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
4328 cacheid=xorg_cv_cc_flag__Wpointer_arith
4329 if eval \${$cacheid+:} false; then :
4330 $as_echo_n "(cached) " >&6
4331 else
4332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4333 /* end confdefs.h. */
4334 int i;
4335 int
4336 main ()
4337 {
4338
4339 ;
4340 return 0;
4341 }
4342 _ACEOF
4343 if ac_fn_c_try_link "$LINENO"; then :
4344 eval $cacheid=yes
4345 else
4346 eval $cacheid=no
4347 fi
4348 rm -f core conftest.err conftest.$ac_objext \
4349 conftest$ac_exeext conftest.$ac_ext
4350 fi
4351
4352
4353 CFLAGS="$xorg_testset_save_CFLAGS"
4354
4355 eval supported=\$$cacheid
4356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4357 $as_echo "$supported" >&6; }
4358 if test "$supported" = "yes" ; then
4359 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
4360 found="yes"
4361 fi
4362 fi
4363
4364
4365
4366
4367
4368
4369
4370
4371
4372
4373
4374
4375
4376
4377
4378 xorg_testset_save_CFLAGS="$CFLAGS"
4379
4380 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4381 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4383 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4384 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4385 $as_echo_n "(cached) " >&6
4386 else
4387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4388 /* end confdefs.h. */
4389 int i;
4390 _ACEOF
4391 if ac_fn_c_try_compile "$LINENO"; then :
4392 xorg_cv_cc_flag_unknown_warning_option=yes
4393 else
4394 xorg_cv_cc_flag_unknown_warning_option=no
4395 fi
4396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4397 fi
4398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4399 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4400 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4401 CFLAGS="$xorg_testset_save_CFLAGS"
4402 fi
4403
4404 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4405 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4406 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4407 fi
4408 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4410 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4411 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4412 $as_echo_n "(cached) " >&6
4413 else
4414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4415 /* end confdefs.h. */
4416 int i;
4417 _ACEOF
4418 if ac_fn_c_try_compile "$LINENO"; then :
4419 xorg_cv_cc_flag_unused_command_line_argument=yes
4420 else
4421 xorg_cv_cc_flag_unused_command_line_argument=no
4422 fi
4423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4424 fi
4425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4426 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4427 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4428 CFLAGS="$xorg_testset_save_CFLAGS"
4429 fi
4430
4431 found="no"
4432
4433 if test $found = "no" ; then
4434 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4435 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4436 fi
4437
4438 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4439 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4440 fi
4441
4442 CFLAGS="$CFLAGS -Wmissing-declarations"
4443
4444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
4445 $as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
4446 cacheid=xorg_cv_cc_flag__Wmissing_declarations
4447 if eval \${$cacheid+:} false; then :
4448 $as_echo_n "(cached) " >&6
4449 else
4450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4451 /* end confdefs.h. */
4452 int i;
4453 int
4454 main ()
4455 {
4456
4457 ;
4458 return 0;
4459 }
4460 _ACEOF
4461 if ac_fn_c_try_link "$LINENO"; then :
4462 eval $cacheid=yes
4463 else
4464 eval $cacheid=no
4465 fi
4466 rm -f core conftest.err conftest.$ac_objext \
4467 conftest$ac_exeext conftest.$ac_ext
4468 fi
4469
4470
4471 CFLAGS="$xorg_testset_save_CFLAGS"
4472
4473 eval supported=\$$cacheid
4474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4475 $as_echo "$supported" >&6; }
4476 if test "$supported" = "yes" ; then
4477 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
4478 found="yes"
4479 fi
4480 fi
4481
4482
4483
4484
4485
4486
4487
4488
4489
4490
4491
4492
4493
4494
4495
4496 xorg_testset_save_CFLAGS="$CFLAGS"
4497
4498 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4499 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4501 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4502 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4503 $as_echo_n "(cached) " >&6
4504 else
4505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4506 /* end confdefs.h. */
4507 int i;
4508 _ACEOF
4509 if ac_fn_c_try_compile "$LINENO"; then :
4510 xorg_cv_cc_flag_unknown_warning_option=yes
4511 else
4512 xorg_cv_cc_flag_unknown_warning_option=no
4513 fi
4514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4515 fi
4516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4517 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4518 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4519 CFLAGS="$xorg_testset_save_CFLAGS"
4520 fi
4521
4522 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4523 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4524 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4525 fi
4526 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4528 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4529 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4530 $as_echo_n "(cached) " >&6
4531 else
4532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4533 /* end confdefs.h. */
4534 int i;
4535 _ACEOF
4536 if ac_fn_c_try_compile "$LINENO"; then :
4537 xorg_cv_cc_flag_unused_command_line_argument=yes
4538 else
4539 xorg_cv_cc_flag_unused_command_line_argument=no
4540 fi
4541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4542 fi
4543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4544 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4545 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4546 CFLAGS="$xorg_testset_save_CFLAGS"
4547 fi
4548
4549 found="no"
4550
4551 if test $found = "no" ; then
4552 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4553 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4554 fi
4555
4556 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4557 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4558 fi
4559
4560 CFLAGS="$CFLAGS -Wformat=2"
4561
4562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
4563 $as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
4564 cacheid=`$as_echo "xorg_cv_cc_flag_-Wformat=2" | $as_tr_sh`
4565 if eval \${$cacheid+:} false; then :
4566 $as_echo_n "(cached) " >&6
4567 else
4568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4569 /* end confdefs.h. */
4570 int i;
4571 int
4572 main ()
4573 {
4574
4575 ;
4576 return 0;
4577 }
4578 _ACEOF
4579 if ac_fn_c_try_link "$LINENO"; then :
4580 eval $cacheid=yes
4581 else
4582 eval $cacheid=no
4583 fi
4584 rm -f core conftest.err conftest.$ac_objext \
4585 conftest$ac_exeext conftest.$ac_ext
4586 fi
4587
4588
4589 CFLAGS="$xorg_testset_save_CFLAGS"
4590
4591 eval supported=\$$cacheid
4592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4593 $as_echo "$supported" >&6; }
4594 if test "$supported" = "yes" ; then
4595 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
4596 found="yes"
4597 fi
4598 fi
4599
4600 if test $found = "no" ; then
4601 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4602 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4603 fi
4604
4605 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4606 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4607 fi
4608
4609 CFLAGS="$CFLAGS -Wformat"
4610
4611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
4612 $as_echo_n "checking if $CC supports -Wformat... " >&6; }
4613 cacheid=xorg_cv_cc_flag__Wformat
4614 if eval \${$cacheid+:} false; then :
4615 $as_echo_n "(cached) " >&6
4616 else
4617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4618 /* end confdefs.h. */
4619 int i;
4620 int
4621 main ()
4622 {
4623
4624 ;
4625 return 0;
4626 }
4627 _ACEOF
4628 if ac_fn_c_try_link "$LINENO"; then :
4629 eval $cacheid=yes
4630 else
4631 eval $cacheid=no
4632 fi
4633 rm -f core conftest.err conftest.$ac_objext \
4634 conftest$ac_exeext conftest.$ac_ext
4635 fi
4636
4637
4638 CFLAGS="$xorg_testset_save_CFLAGS"
4639
4640 eval supported=\$$cacheid
4641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4642 $as_echo "$supported" >&6; }
4643 if test "$supported" = "yes" ; then
4644 BASE_CFLAGS="$BASE_CFLAGS -Wformat"
4645 found="yes"
4646 fi
4647 fi
4648
4649
4650
4651
4652
4653
4654
4655
4656
4657
4658
4659
4660
4661
4662
4663
4664
4665 xorg_testset_save_CFLAGS="$CFLAGS"
4666
4667 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4668 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4670 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4671 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4672 $as_echo_n "(cached) " >&6
4673 else
4674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4675 /* end confdefs.h. */
4676 int i;
4677 _ACEOF
4678 if ac_fn_c_try_compile "$LINENO"; then :
4679 xorg_cv_cc_flag_unknown_warning_option=yes
4680 else
4681 xorg_cv_cc_flag_unknown_warning_option=no
4682 fi
4683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4684 fi
4685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4686 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4687 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4688 CFLAGS="$xorg_testset_save_CFLAGS"
4689 fi
4690
4691 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4692 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4693 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4694 fi
4695 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4697 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4698 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4699 $as_echo_n "(cached) " >&6
4700 else
4701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4702 /* end confdefs.h. */
4703 int i;
4704 _ACEOF
4705 if ac_fn_c_try_compile "$LINENO"; then :
4706 xorg_cv_cc_flag_unused_command_line_argument=yes
4707 else
4708 xorg_cv_cc_flag_unused_command_line_argument=no
4709 fi
4710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4711 fi
4712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4713 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4714 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4715 CFLAGS="$xorg_testset_save_CFLAGS"
4716 fi
4717
4718 found="no"
4719
4720 if test $found = "no" ; then
4721 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4722 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4723 fi
4724
4725 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4726 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4727 fi
4728
4729 CFLAGS="$CFLAGS -Wstrict-prototypes"
4730
4731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
4732 $as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
4733 cacheid=xorg_cv_cc_flag__Wstrict_prototypes
4734 if eval \${$cacheid+:} false; then :
4735 $as_echo_n "(cached) " >&6
4736 else
4737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4738 /* end confdefs.h. */
4739 int i;
4740 int
4741 main ()
4742 {
4743
4744 ;
4745 return 0;
4746 }
4747 _ACEOF
4748 if ac_fn_c_try_link "$LINENO"; then :
4749 eval $cacheid=yes
4750 else
4751 eval $cacheid=no
4752 fi
4753 rm -f core conftest.err conftest.$ac_objext \
4754 conftest$ac_exeext conftest.$ac_ext
4755 fi
4756
4757
4758 CFLAGS="$xorg_testset_save_CFLAGS"
4759
4760 eval supported=\$$cacheid
4761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4762 $as_echo "$supported" >&6; }
4763 if test "$supported" = "yes" ; then
4764 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
4765 found="yes"
4766 fi
4767 fi
4768
4769
4770
4771
4772
4773
4774
4775
4776
4777
4778
4779
4780
4781
4782
4783 xorg_testset_save_CFLAGS="$CFLAGS"
4784
4785 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4786 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4788 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4789 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4790 $as_echo_n "(cached) " >&6
4791 else
4792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4793 /* end confdefs.h. */
4794 int i;
4795 _ACEOF
4796 if ac_fn_c_try_compile "$LINENO"; then :
4797 xorg_cv_cc_flag_unknown_warning_option=yes
4798 else
4799 xorg_cv_cc_flag_unknown_warning_option=no
4800 fi
4801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4802 fi
4803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4804 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4805 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4806 CFLAGS="$xorg_testset_save_CFLAGS"
4807 fi
4808
4809 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4810 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4811 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4812 fi
4813 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4815 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4816 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4817 $as_echo_n "(cached) " >&6
4818 else
4819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4820 /* end confdefs.h. */
4821 int i;
4822 _ACEOF
4823 if ac_fn_c_try_compile "$LINENO"; then :
4824 xorg_cv_cc_flag_unused_command_line_argument=yes
4825 else
4826 xorg_cv_cc_flag_unused_command_line_argument=no
4827 fi
4828 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4829 fi
4830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4831 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4832 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4833 CFLAGS="$xorg_testset_save_CFLAGS"
4834 fi
4835
4836 found="no"
4837
4838 if test $found = "no" ; then
4839 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4840 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4841 fi
4842
4843 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4844 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4845 fi
4846
4847 CFLAGS="$CFLAGS -Wmissing-prototypes"
4848
4849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
4850 $as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
4851 cacheid=xorg_cv_cc_flag__Wmissing_prototypes
4852 if eval \${$cacheid+:} false; then :
4853 $as_echo_n "(cached) " >&6
4854 else
4855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4856 /* end confdefs.h. */
4857 int i;
4858 int
4859 main ()
4860 {
4861
4862 ;
4863 return 0;
4864 }
4865 _ACEOF
4866 if ac_fn_c_try_link "$LINENO"; then :
4867 eval $cacheid=yes
4868 else
4869 eval $cacheid=no
4870 fi
4871 rm -f core conftest.err conftest.$ac_objext \
4872 conftest$ac_exeext conftest.$ac_ext
4873 fi
4874
4875
4876 CFLAGS="$xorg_testset_save_CFLAGS"
4877
4878 eval supported=\$$cacheid
4879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4880 $as_echo "$supported" >&6; }
4881 if test "$supported" = "yes" ; then
4882 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
4883 found="yes"
4884 fi
4885 fi
4886
4887
4888
4889
4890
4891
4892
4893
4894
4895
4896
4897
4898
4899
4900
4901 xorg_testset_save_CFLAGS="$CFLAGS"
4902
4903 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4904 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4906 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4907 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4908 $as_echo_n "(cached) " >&6
4909 else
4910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4911 /* end confdefs.h. */
4912 int i;
4913 _ACEOF
4914 if ac_fn_c_try_compile "$LINENO"; then :
4915 xorg_cv_cc_flag_unknown_warning_option=yes
4916 else
4917 xorg_cv_cc_flag_unknown_warning_option=no
4918 fi
4919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4920 fi
4921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4922 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4923 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4924 CFLAGS="$xorg_testset_save_CFLAGS"
4925 fi
4926
4927 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4928 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4929 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4930 fi
4931 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4933 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4934 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4935 $as_echo_n "(cached) " >&6
4936 else
4937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4938 /* end confdefs.h. */
4939 int i;
4940 _ACEOF
4941 if ac_fn_c_try_compile "$LINENO"; then :
4942 xorg_cv_cc_flag_unused_command_line_argument=yes
4943 else
4944 xorg_cv_cc_flag_unused_command_line_argument=no
4945 fi
4946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4947 fi
4948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4949 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4950 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4951 CFLAGS="$xorg_testset_save_CFLAGS"
4952 fi
4953
4954 found="no"
4955
4956 if test $found = "no" ; then
4957 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4958 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4959 fi
4960
4961 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4962 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4963 fi
4964
4965 CFLAGS="$CFLAGS -Wnested-externs"
4966
4967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
4968 $as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
4969 cacheid=xorg_cv_cc_flag__Wnested_externs
4970 if eval \${$cacheid+:} false; then :
4971 $as_echo_n "(cached) " >&6
4972 else
4973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4974 /* end confdefs.h. */
4975 int i;
4976 int
4977 main ()
4978 {
4979
4980 ;
4981 return 0;
4982 }
4983 _ACEOF
4984 if ac_fn_c_try_link "$LINENO"; then :
4985 eval $cacheid=yes
4986 else
4987 eval $cacheid=no
4988 fi
4989 rm -f core conftest.err conftest.$ac_objext \
4990 conftest$ac_exeext conftest.$ac_ext
4991 fi
4992
4993
4994 CFLAGS="$xorg_testset_save_CFLAGS"
4995
4996 eval supported=\$$cacheid
4997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4998 $as_echo "$supported" >&6; }
4999 if test "$supported" = "yes" ; then
5000 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5001 found="yes"
5002 fi
5003 fi
5004
5005
5006
5007
5008
5009
5010
5011
5012
5013
5014
5015
5016
5017
5018
5019 xorg_testset_save_CFLAGS="$CFLAGS"
5020
5021 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5022 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5024 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5025 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5026 $as_echo_n "(cached) " >&6
5027 else
5028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5029 /* end confdefs.h. */
5030 int i;
5031 _ACEOF
5032 if ac_fn_c_try_compile "$LINENO"; then :
5033 xorg_cv_cc_flag_unknown_warning_option=yes
5034 else
5035 xorg_cv_cc_flag_unknown_warning_option=no
5036 fi
5037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5038 fi
5039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5040 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5041 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5042 CFLAGS="$xorg_testset_save_CFLAGS"
5043 fi
5044
5045 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5046 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5047 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5048 fi
5049 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5051 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5052 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5053 $as_echo_n "(cached) " >&6
5054 else
5055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5056 /* end confdefs.h. */
5057 int i;
5058 _ACEOF
5059 if ac_fn_c_try_compile "$LINENO"; then :
5060 xorg_cv_cc_flag_unused_command_line_argument=yes
5061 else
5062 xorg_cv_cc_flag_unused_command_line_argument=no
5063 fi
5064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5065 fi
5066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5067 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5068 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5069 CFLAGS="$xorg_testset_save_CFLAGS"
5070 fi
5071
5072 found="no"
5073
5074 if test $found = "no" ; then
5075 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5076 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5077 fi
5078
5079 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5080 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5081 fi
5082
5083 CFLAGS="$CFLAGS -Wbad-function-cast"
5084
5085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
5086 $as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
5087 cacheid=xorg_cv_cc_flag__Wbad_function_cast
5088 if eval \${$cacheid+:} false; then :
5089 $as_echo_n "(cached) " >&6
5090 else
5091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5092 /* end confdefs.h. */
5093 int i;
5094 int
5095 main ()
5096 {
5097
5098 ;
5099 return 0;
5100 }
5101 _ACEOF
5102 if ac_fn_c_try_link "$LINENO"; then :
5103 eval $cacheid=yes
5104 else
5105 eval $cacheid=no
5106 fi
5107 rm -f core conftest.err conftest.$ac_objext \
5108 conftest$ac_exeext conftest.$ac_ext
5109 fi
5110
5111
5112 CFLAGS="$xorg_testset_save_CFLAGS"
5113
5114 eval supported=\$$cacheid
5115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5116 $as_echo "$supported" >&6; }
5117 if test "$supported" = "yes" ; then
5118 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
5119 found="yes"
5120 fi
5121 fi
5122
5123
5124
5125
5126
5127
5128
5129
5130
5131
5132
5133
5134
5135
5136
5137 xorg_testset_save_CFLAGS="$CFLAGS"
5138
5139 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5140 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5142 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5143 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5144 $as_echo_n "(cached) " >&6
5145 else
5146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5147 /* end confdefs.h. */
5148 int i;
5149 _ACEOF
5150 if ac_fn_c_try_compile "$LINENO"; then :
5151 xorg_cv_cc_flag_unknown_warning_option=yes
5152 else
5153 xorg_cv_cc_flag_unknown_warning_option=no
5154 fi
5155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5156 fi
5157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5158 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5159 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5160 CFLAGS="$xorg_testset_save_CFLAGS"
5161 fi
5162
5163 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5164 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5165 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5166 fi
5167 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5169 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5170 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5171 $as_echo_n "(cached) " >&6
5172 else
5173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5174 /* end confdefs.h. */
5175 int i;
5176 _ACEOF
5177 if ac_fn_c_try_compile "$LINENO"; then :
5178 xorg_cv_cc_flag_unused_command_line_argument=yes
5179 else
5180 xorg_cv_cc_flag_unused_command_line_argument=no
5181 fi
5182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5183 fi
5184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5185 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5186 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5187 CFLAGS="$xorg_testset_save_CFLAGS"
5188 fi
5189
5190 found="no"
5191
5192 if test $found = "no" ; then
5193 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5194 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5195 fi
5196
5197 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5198 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5199 fi
5200
5201 CFLAGS="$CFLAGS -Wold-style-definition"
5202
5203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
5204 $as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
5205 cacheid=xorg_cv_cc_flag__Wold_style_definition
5206 if eval \${$cacheid+:} false; then :
5207 $as_echo_n "(cached) " >&6
5208 else
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 eval $cacheid=yes
5222 else
5223 eval $cacheid=no
5224 fi
5225 rm -f core conftest.err conftest.$ac_objext \
5226 conftest$ac_exeext conftest.$ac_ext
5227 fi
5228
5229
5230 CFLAGS="$xorg_testset_save_CFLAGS"
5231
5232 eval supported=\$$cacheid
5233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5234 $as_echo "$supported" >&6; }
5235 if test "$supported" = "yes" ; then
5236 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
5237 found="yes"
5238 fi
5239 fi
5240
5241
5242
5243
5244
5245
5246
5247
5248
5249
5250
5251
5252
5253
5254
5255 xorg_testset_save_CFLAGS="$CFLAGS"
5256
5257 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5258 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5260 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5261 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5262 $as_echo_n "(cached) " >&6
5263 else
5264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5265 /* end confdefs.h. */
5266 int i;
5267 _ACEOF
5268 if ac_fn_c_try_compile "$LINENO"; then :
5269 xorg_cv_cc_flag_unknown_warning_option=yes
5270 else
5271 xorg_cv_cc_flag_unknown_warning_option=no
5272 fi
5273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5274 fi
5275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5276 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5277 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5278 CFLAGS="$xorg_testset_save_CFLAGS"
5279 fi
5280
5281 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5282 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5283 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5284 fi
5285 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5287 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5288 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5289 $as_echo_n "(cached) " >&6
5290 else
5291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5292 /* end confdefs.h. */
5293 int i;
5294 _ACEOF
5295 if ac_fn_c_try_compile "$LINENO"; then :
5296 xorg_cv_cc_flag_unused_command_line_argument=yes
5297 else
5298 xorg_cv_cc_flag_unused_command_line_argument=no
5299 fi
5300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5301 fi
5302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5303 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5304 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5305 CFLAGS="$xorg_testset_save_CFLAGS"
5306 fi
5307
5308 found="no"
5309
5310 if test $found = "no" ; then
5311 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5312 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5313 fi
5314
5315 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5316 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5317 fi
5318
5319 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
5320
5321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
5322 $as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
5323 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
5324 if eval \${$cacheid+:} false; then :
5325 $as_echo_n "(cached) " >&6
5326 else
5327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5328 /* end confdefs.h. */
5329 int i;
5330 int
5331 main ()
5332 {
5333
5334 ;
5335 return 0;
5336 }
5337 _ACEOF
5338 if ac_fn_c_try_link "$LINENO"; then :
5339 eval $cacheid=yes
5340 else
5341 eval $cacheid=no
5342 fi
5343 rm -f core conftest.err conftest.$ac_objext \
5344 conftest$ac_exeext conftest.$ac_ext
5345 fi
5346
5347
5348 CFLAGS="$xorg_testset_save_CFLAGS"
5349
5350 eval supported=\$$cacheid
5351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5352 $as_echo "$supported" >&6; }
5353 if test "$supported" = "yes" ; then
5354 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
5355 found="yes"
5356 fi
5357 fi
5358
5359
5360
5361
5362
5363 # This chunk adds additional warnings that could catch undesired effects.
5364
5365
5366
5367
5368
5369
5370
5371
5372
5373
5374
5375
5376
5377 xorg_testset_save_CFLAGS="$CFLAGS"
5378
5379 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5380 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5382 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5383 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5384 $as_echo_n "(cached) " >&6
5385 else
5386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5387 /* end confdefs.h. */
5388 int i;
5389 _ACEOF
5390 if ac_fn_c_try_compile "$LINENO"; then :
5391 xorg_cv_cc_flag_unknown_warning_option=yes
5392 else
5393 xorg_cv_cc_flag_unknown_warning_option=no
5394 fi
5395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5396 fi
5397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5398 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5399 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5400 CFLAGS="$xorg_testset_save_CFLAGS"
5401 fi
5402
5403 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5404 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5405 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5406 fi
5407 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5409 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5410 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5411 $as_echo_n "(cached) " >&6
5412 else
5413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5414 /* end confdefs.h. */
5415 int i;
5416 _ACEOF
5417 if ac_fn_c_try_compile "$LINENO"; then :
5418 xorg_cv_cc_flag_unused_command_line_argument=yes
5419 else
5420 xorg_cv_cc_flag_unused_command_line_argument=no
5421 fi
5422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5423 fi
5424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5425 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5426 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5427 CFLAGS="$xorg_testset_save_CFLAGS"
5428 fi
5429
5430 found="no"
5431
5432 if test $found = "no" ; then
5433 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5434 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5435 fi
5436
5437 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5438 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5439 fi
5440
5441 CFLAGS="$CFLAGS -Wunused"
5442
5443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
5444 $as_echo_n "checking if $CC supports -Wunused... " >&6; }
5445 cacheid=xorg_cv_cc_flag__Wunused
5446 if eval \${$cacheid+:} false; then :
5447 $as_echo_n "(cached) " >&6
5448 else
5449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5450 /* end confdefs.h. */
5451 int i;
5452 int
5453 main ()
5454 {
5455
5456 ;
5457 return 0;
5458 }
5459 _ACEOF
5460 if ac_fn_c_try_link "$LINENO"; then :
5461 eval $cacheid=yes
5462 else
5463 eval $cacheid=no
5464 fi
5465 rm -f core conftest.err conftest.$ac_objext \
5466 conftest$ac_exeext conftest.$ac_ext
5467 fi
5468
5469
5470 CFLAGS="$xorg_testset_save_CFLAGS"
5471
5472 eval supported=\$$cacheid
5473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5474 $as_echo "$supported" >&6; }
5475 if test "$supported" = "yes" ; then
5476 BASE_CFLAGS="$BASE_CFLAGS -Wunused"
5477 found="yes"
5478 fi
5479 fi
5480
5481
5482
5483
5484
5485
5486
5487
5488
5489
5490
5491
5492
5493
5494
5495 xorg_testset_save_CFLAGS="$CFLAGS"
5496
5497 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5498 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5500 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5501 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5502 $as_echo_n "(cached) " >&6
5503 else
5504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5505 /* end confdefs.h. */
5506 int i;
5507 _ACEOF
5508 if ac_fn_c_try_compile "$LINENO"; then :
5509 xorg_cv_cc_flag_unknown_warning_option=yes
5510 else
5511 xorg_cv_cc_flag_unknown_warning_option=no
5512 fi
5513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5514 fi
5515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5516 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5517 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5518 CFLAGS="$xorg_testset_save_CFLAGS"
5519 fi
5520
5521 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5522 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5523 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5524 fi
5525 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5527 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5528 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5529 $as_echo_n "(cached) " >&6
5530 else
5531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5532 /* end confdefs.h. */
5533 int i;
5534 _ACEOF
5535 if ac_fn_c_try_compile "$LINENO"; then :
5536 xorg_cv_cc_flag_unused_command_line_argument=yes
5537 else
5538 xorg_cv_cc_flag_unused_command_line_argument=no
5539 fi
5540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5541 fi
5542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5543 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5544 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5545 CFLAGS="$xorg_testset_save_CFLAGS"
5546 fi
5547
5548 found="no"
5549
5550 if test $found = "no" ; then
5551 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5552 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5553 fi
5554
5555 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5556 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5557 fi
5558
5559 CFLAGS="$CFLAGS -Wuninitialized"
5560
5561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
5562 $as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
5563 cacheid=xorg_cv_cc_flag__Wuninitialized
5564 if eval \${$cacheid+:} false; then :
5565 $as_echo_n "(cached) " >&6
5566 else
5567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5568 /* end confdefs.h. */
5569 int i;
5570 int
5571 main ()
5572 {
5573
5574 ;
5575 return 0;
5576 }
5577 _ACEOF
5578 if ac_fn_c_try_link "$LINENO"; then :
5579 eval $cacheid=yes
5580 else
5581 eval $cacheid=no
5582 fi
5583 rm -f core conftest.err conftest.$ac_objext \
5584 conftest$ac_exeext conftest.$ac_ext
5585 fi
5586
5587
5588 CFLAGS="$xorg_testset_save_CFLAGS"
5589
5590 eval supported=\$$cacheid
5591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5592 $as_echo "$supported" >&6; }
5593 if test "$supported" = "yes" ; then
5594 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
5595 found="yes"
5596 fi
5597 fi
5598
5599
5600
5601
5602
5603
5604
5605
5606
5607
5608
5609
5610
5611
5612
5613 xorg_testset_save_CFLAGS="$CFLAGS"
5614
5615 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5616 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5618 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5619 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5620 $as_echo_n "(cached) " >&6
5621 else
5622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5623 /* end confdefs.h. */
5624 int i;
5625 _ACEOF
5626 if ac_fn_c_try_compile "$LINENO"; then :
5627 xorg_cv_cc_flag_unknown_warning_option=yes
5628 else
5629 xorg_cv_cc_flag_unknown_warning_option=no
5630 fi
5631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5632 fi
5633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5634 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5635 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5636 CFLAGS="$xorg_testset_save_CFLAGS"
5637 fi
5638
5639 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5640 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5641 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5642 fi
5643 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5645 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5646 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5647 $as_echo_n "(cached) " >&6
5648 else
5649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5650 /* end confdefs.h. */
5651 int i;
5652 _ACEOF
5653 if ac_fn_c_try_compile "$LINENO"; then :
5654 xorg_cv_cc_flag_unused_command_line_argument=yes
5655 else
5656 xorg_cv_cc_flag_unused_command_line_argument=no
5657 fi
5658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5659 fi
5660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5661 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5662 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5663 CFLAGS="$xorg_testset_save_CFLAGS"
5664 fi
5665
5666 found="no"
5667
5668 if test $found = "no" ; then
5669 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5670 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5671 fi
5672
5673 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5674 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5675 fi
5676
5677 CFLAGS="$CFLAGS -Wshadow"
5678
5679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
5680 $as_echo_n "checking if $CC supports -Wshadow... " >&6; }
5681 cacheid=xorg_cv_cc_flag__Wshadow
5682 if eval \${$cacheid+:} false; then :
5683 $as_echo_n "(cached) " >&6
5684 else
5685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5686 /* end confdefs.h. */
5687 int i;
5688 int
5689 main ()
5690 {
5691
5692 ;
5693 return 0;
5694 }
5695 _ACEOF
5696 if ac_fn_c_try_link "$LINENO"; then :
5697 eval $cacheid=yes
5698 else
5699 eval $cacheid=no
5700 fi
5701 rm -f core conftest.err conftest.$ac_objext \
5702 conftest$ac_exeext conftest.$ac_ext
5703 fi
5704
5705
5706 CFLAGS="$xorg_testset_save_CFLAGS"
5707
5708 eval supported=\$$cacheid
5709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5710 $as_echo "$supported" >&6; }
5711 if test "$supported" = "yes" ; then
5712 BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
5713 found="yes"
5714 fi
5715 fi
5716
5717
5718
5719
5720
5721
5722
5723
5724
5725
5726
5727
5728
5729
5730
5731 xorg_testset_save_CFLAGS="$CFLAGS"
5732
5733 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5734 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5736 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5737 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5738 $as_echo_n "(cached) " >&6
5739 else
5740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5741 /* end confdefs.h. */
5742 int i;
5743 _ACEOF
5744 if ac_fn_c_try_compile "$LINENO"; then :
5745 xorg_cv_cc_flag_unknown_warning_option=yes
5746 else
5747 xorg_cv_cc_flag_unknown_warning_option=no
5748 fi
5749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5750 fi
5751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5752 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5753 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5754 CFLAGS="$xorg_testset_save_CFLAGS"
5755 fi
5756
5757 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5758 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5759 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5760 fi
5761 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5763 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5764 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5765 $as_echo_n "(cached) " >&6
5766 else
5767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5768 /* end confdefs.h. */
5769 int i;
5770 _ACEOF
5771 if ac_fn_c_try_compile "$LINENO"; then :
5772 xorg_cv_cc_flag_unused_command_line_argument=yes
5773 else
5774 xorg_cv_cc_flag_unused_command_line_argument=no
5775 fi
5776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5777 fi
5778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5779 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5780 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5781 CFLAGS="$xorg_testset_save_CFLAGS"
5782 fi
5783
5784 found="no"
5785
5786 if test $found = "no" ; then
5787 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5788 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5789 fi
5790
5791 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5792 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5793 fi
5794
5795 CFLAGS="$CFLAGS -Wcast-qual"
5796
5797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wcast-qual" >&5
5798 $as_echo_n "checking if $CC supports -Wcast-qual... " >&6; }
5799 cacheid=xorg_cv_cc_flag__Wcast_qual
5800 if eval \${$cacheid+:} false; then :
5801 $as_echo_n "(cached) " >&6
5802 else
5803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5804 /* end confdefs.h. */
5805 int i;
5806 int
5807 main ()
5808 {
5809
5810 ;
5811 return 0;
5812 }
5813 _ACEOF
5814 if ac_fn_c_try_link "$LINENO"; then :
5815 eval $cacheid=yes
5816 else
5817 eval $cacheid=no
5818 fi
5819 rm -f core conftest.err conftest.$ac_objext \
5820 conftest$ac_exeext conftest.$ac_ext
5821 fi
5822
5823
5824 CFLAGS="$xorg_testset_save_CFLAGS"
5825
5826 eval supported=\$$cacheid
5827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5828 $as_echo "$supported" >&6; }
5829 if test "$supported" = "yes" ; then
5830 BASE_CFLAGS="$BASE_CFLAGS -Wcast-qual"
5831 found="yes"
5832 fi
5833 fi
5834
5835
5836
5837
5838
5839
5840
5841
5842
5843
5844
5845
5846
5847
5848
5849 xorg_testset_save_CFLAGS="$CFLAGS"
5850
5851 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5852 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5854 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5855 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5856 $as_echo_n "(cached) " >&6
5857 else
5858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5859 /* end confdefs.h. */
5860 int i;
5861 _ACEOF
5862 if ac_fn_c_try_compile "$LINENO"; then :
5863 xorg_cv_cc_flag_unknown_warning_option=yes
5864 else
5865 xorg_cv_cc_flag_unknown_warning_option=no
5866 fi
5867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5868 fi
5869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5870 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5871 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5872 CFLAGS="$xorg_testset_save_CFLAGS"
5873 fi
5874
5875 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5876 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5877 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5878 fi
5879 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5881 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5882 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5883 $as_echo_n "(cached) " >&6
5884 else
5885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5886 /* end confdefs.h. */
5887 int i;
5888 _ACEOF
5889 if ac_fn_c_try_compile "$LINENO"; then :
5890 xorg_cv_cc_flag_unused_command_line_argument=yes
5891 else
5892 xorg_cv_cc_flag_unused_command_line_argument=no
5893 fi
5894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5895 fi
5896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5897 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5898 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5899 CFLAGS="$xorg_testset_save_CFLAGS"
5900 fi
5901
5902 found="no"
5903
5904 if test $found = "no" ; then
5905 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5906 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5907 fi
5908
5909 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5910 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5911 fi
5912
5913 CFLAGS="$CFLAGS -Wmissing-noreturn"
5914
5915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
5916 $as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
5917 cacheid=xorg_cv_cc_flag__Wmissing_noreturn
5918 if eval \${$cacheid+:} false; then :
5919 $as_echo_n "(cached) " >&6
5920 else
5921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5922 /* end confdefs.h. */
5923 int i;
5924 int
5925 main ()
5926 {
5927
5928 ;
5929 return 0;
5930 }
5931 _ACEOF
5932 if ac_fn_c_try_link "$LINENO"; then :
5933 eval $cacheid=yes
5934 else
5935 eval $cacheid=no
5936 fi
5937 rm -f core conftest.err conftest.$ac_objext \
5938 conftest$ac_exeext conftest.$ac_ext
5939 fi
5940
5941
5942 CFLAGS="$xorg_testset_save_CFLAGS"
5943
5944 eval supported=\$$cacheid
5945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5946 $as_echo "$supported" >&6; }
5947 if test "$supported" = "yes" ; then
5948 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
5949 found="yes"
5950 fi
5951 fi
5952
5953
5954
5955
5956
5957
5958
5959
5960
5961
5962
5963
5964
5965
5966
5967 xorg_testset_save_CFLAGS="$CFLAGS"
5968
5969 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5970 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5972 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5973 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5974 $as_echo_n "(cached) " >&6
5975 else
5976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5977 /* end confdefs.h. */
5978 int i;
5979 _ACEOF
5980 if ac_fn_c_try_compile "$LINENO"; then :
5981 xorg_cv_cc_flag_unknown_warning_option=yes
5982 else
5983 xorg_cv_cc_flag_unknown_warning_option=no
5984 fi
5985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5986 fi
5987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5988 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5989 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5990 CFLAGS="$xorg_testset_save_CFLAGS"
5991 fi
5992
5993 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5994 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5995 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5996 fi
5997 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5999 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6000 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6001 $as_echo_n "(cached) " >&6
6002 else
6003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6004 /* end confdefs.h. */
6005 int i;
6006 _ACEOF
6007 if ac_fn_c_try_compile "$LINENO"; then :
6008 xorg_cv_cc_flag_unused_command_line_argument=yes
6009 else
6010 xorg_cv_cc_flag_unused_command_line_argument=no
6011 fi
6012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6013 fi
6014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6015 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6016 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6017 CFLAGS="$xorg_testset_save_CFLAGS"
6018 fi
6019
6020 found="no"
6021
6022 if test $found = "no" ; then
6023 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6024 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6025 fi
6026
6027 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6028 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6029 fi
6030
6031 CFLAGS="$CFLAGS -Wmissing-format-attribute"
6032
6033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6034 $as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6035 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6036 if eval \${$cacheid+:} false; then :
6037 $as_echo_n "(cached) " >&6
6038 else
6039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6040 /* end confdefs.h. */
6041 int i;
6042 int
6043 main ()
6044 {
6045
6046 ;
6047 return 0;
6048 }
6049 _ACEOF
6050 if ac_fn_c_try_link "$LINENO"; then :
6051 eval $cacheid=yes
6052 else
6053 eval $cacheid=no
6054 fi
6055 rm -f core conftest.err conftest.$ac_objext \
6056 conftest$ac_exeext conftest.$ac_ext
6057 fi
6058
6059
6060 CFLAGS="$xorg_testset_save_CFLAGS"
6061
6062 eval supported=\$$cacheid
6063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6064 $as_echo "$supported" >&6; }
6065 if test "$supported" = "yes" ; then
6066 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6067 found="yes"
6068 fi
6069 fi
6070
6071
6072
6073
6074
6075
6076
6077
6078
6079
6080
6081
6082
6083
6084
6085 xorg_testset_save_CFLAGS="$CFLAGS"
6086
6087 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6088 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6090 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6091 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6092 $as_echo_n "(cached) " >&6
6093 else
6094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6095 /* end confdefs.h. */
6096 int i;
6097 _ACEOF
6098 if ac_fn_c_try_compile "$LINENO"; then :
6099 xorg_cv_cc_flag_unknown_warning_option=yes
6100 else
6101 xorg_cv_cc_flag_unknown_warning_option=no
6102 fi
6103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6104 fi
6105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6106 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6107 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6108 CFLAGS="$xorg_testset_save_CFLAGS"
6109 fi
6110
6111 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6112 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6113 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6114 fi
6115 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6117 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6118 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6119 $as_echo_n "(cached) " >&6
6120 else
6121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6122 /* end confdefs.h. */
6123 int i;
6124 _ACEOF
6125 if ac_fn_c_try_compile "$LINENO"; then :
6126 xorg_cv_cc_flag_unused_command_line_argument=yes
6127 else
6128 xorg_cv_cc_flag_unused_command_line_argument=no
6129 fi
6130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6131 fi
6132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6133 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6134 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6135 CFLAGS="$xorg_testset_save_CFLAGS"
6136 fi
6137
6138 found="no"
6139
6140 if test $found = "no" ; then
6141 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6142 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6143 fi
6144
6145 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6146 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6147 fi
6148
6149 CFLAGS="$CFLAGS -Wredundant-decls"
6150
6151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
6152 $as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
6153 cacheid=xorg_cv_cc_flag__Wredundant_decls
6154 if eval \${$cacheid+:} false; then :
6155 $as_echo_n "(cached) " >&6
6156 else
6157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6158 /* end confdefs.h. */
6159 int i;
6160 int
6161 main ()
6162 {
6163
6164 ;
6165 return 0;
6166 }
6167 _ACEOF
6168 if ac_fn_c_try_link "$LINENO"; then :
6169 eval $cacheid=yes
6170 else
6171 eval $cacheid=no
6172 fi
6173 rm -f core conftest.err conftest.$ac_objext \
6174 conftest$ac_exeext conftest.$ac_ext
6175 fi
6176
6177
6178 CFLAGS="$xorg_testset_save_CFLAGS"
6179
6180 eval supported=\$$cacheid
6181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6182 $as_echo "$supported" >&6; }
6183 if test "$supported" = "yes" ; then
6184 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
6185 found="yes"
6186 fi
6187 fi
6188
6189
6190
6191 # These are currently disabled because they are noisy. They will be enabled
6192 # in the future once the codebase is sufficiently modernized to silence
6193 # them. For now, I don't want them to drown out the other warnings.
6194 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wlogical-op])
6195 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
6196 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
6197
6198 # Turn some warnings into errors, so we don't accidently get successful builds
6199 # when there are problems that should be fixed.
6200
6201 if test "x$SELECTIVE_WERROR" = "xyes" ; then
6202
6203
6204
6205
6206
6207
6208
6209
6210
6211
6212
6213
6214
6215 xorg_testset_save_CFLAGS="$CFLAGS"
6216
6217 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6218 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6220 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6221 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6222 $as_echo_n "(cached) " >&6
6223 else
6224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6225 /* end confdefs.h. */
6226 int i;
6227 _ACEOF
6228 if ac_fn_c_try_compile "$LINENO"; then :
6229 xorg_cv_cc_flag_unknown_warning_option=yes
6230 else
6231 xorg_cv_cc_flag_unknown_warning_option=no
6232 fi
6233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6234 fi
6235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6236 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6237 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6238 CFLAGS="$xorg_testset_save_CFLAGS"
6239 fi
6240
6241 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6242 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6243 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6244 fi
6245 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6247 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6248 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6249 $as_echo_n "(cached) " >&6
6250 else
6251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6252 /* end confdefs.h. */
6253 int i;
6254 _ACEOF
6255 if ac_fn_c_try_compile "$LINENO"; then :
6256 xorg_cv_cc_flag_unused_command_line_argument=yes
6257 else
6258 xorg_cv_cc_flag_unused_command_line_argument=no
6259 fi
6260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6261 fi
6262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6263 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6264 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6265 CFLAGS="$xorg_testset_save_CFLAGS"
6266 fi
6267
6268 found="no"
6269
6270 if test $found = "no" ; then
6271 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6272 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6273 fi
6274
6275 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6276 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6277 fi
6278
6279 CFLAGS="$CFLAGS -Werror=implicit"
6280
6281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
6282 $as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
6283 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=implicit" | $as_tr_sh`
6284 if eval \${$cacheid+:} false; then :
6285 $as_echo_n "(cached) " >&6
6286 else
6287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6288 /* end confdefs.h. */
6289 int i;
6290 int
6291 main ()
6292 {
6293
6294 ;
6295 return 0;
6296 }
6297 _ACEOF
6298 if ac_fn_c_try_link "$LINENO"; then :
6299 eval $cacheid=yes
6300 else
6301 eval $cacheid=no
6302 fi
6303 rm -f core conftest.err conftest.$ac_objext \
6304 conftest$ac_exeext conftest.$ac_ext
6305 fi
6306
6307
6308 CFLAGS="$xorg_testset_save_CFLAGS"
6309
6310 eval supported=\$$cacheid
6311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6312 $as_echo "$supported" >&6; }
6313 if test "$supported" = "yes" ; then
6314 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
6315 found="yes"
6316 fi
6317 fi
6318
6319 if test $found = "no" ; then
6320 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6321 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6322 fi
6323
6324 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6325 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6326 fi
6327
6328 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
6329
6330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
6331 $as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
6332 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" | $as_tr_sh`
6333 if eval \${$cacheid+:} false; then :
6334 $as_echo_n "(cached) " >&6
6335 else
6336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6337 /* end confdefs.h. */
6338 int i;
6339 int
6340 main ()
6341 {
6342
6343 ;
6344 return 0;
6345 }
6346 _ACEOF
6347 if ac_fn_c_try_link "$LINENO"; then :
6348 eval $cacheid=yes
6349 else
6350 eval $cacheid=no
6351 fi
6352 rm -f core conftest.err conftest.$ac_objext \
6353 conftest$ac_exeext conftest.$ac_ext
6354 fi
6355
6356
6357 CFLAGS="$xorg_testset_save_CFLAGS"
6358
6359 eval supported=\$$cacheid
6360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6361 $as_echo "$supported" >&6; }
6362 if test "$supported" = "yes" ; then
6363 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
6364 found="yes"
6365 fi
6366 fi
6367
6368
6369
6370
6371
6372
6373
6374
6375
6376
6377
6378
6379
6380
6381
6382 xorg_testset_save_CFLAGS="$CFLAGS"
6383
6384 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6385 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6387 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6388 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6389 $as_echo_n "(cached) " >&6
6390 else
6391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6392 /* end confdefs.h. */
6393 int i;
6394 _ACEOF
6395 if ac_fn_c_try_compile "$LINENO"; then :
6396 xorg_cv_cc_flag_unknown_warning_option=yes
6397 else
6398 xorg_cv_cc_flag_unknown_warning_option=no
6399 fi
6400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6401 fi
6402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6403 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6404 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6405 CFLAGS="$xorg_testset_save_CFLAGS"
6406 fi
6407
6408 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6409 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6410 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6411 fi
6412 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6414 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6415 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6416 $as_echo_n "(cached) " >&6
6417 else
6418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6419 /* end confdefs.h. */
6420 int i;
6421 _ACEOF
6422 if ac_fn_c_try_compile "$LINENO"; then :
6423 xorg_cv_cc_flag_unused_command_line_argument=yes
6424 else
6425 xorg_cv_cc_flag_unused_command_line_argument=no
6426 fi
6427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6428 fi
6429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6430 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6431 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6432 CFLAGS="$xorg_testset_save_CFLAGS"
6433 fi
6434
6435 found="no"
6436
6437 if test $found = "no" ; then
6438 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6439 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6440 fi
6441
6442 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6443 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6444 fi
6445
6446 CFLAGS="$CFLAGS -Werror=nonnull"
6447
6448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
6449 $as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
6450 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=nonnull" | $as_tr_sh`
6451 if eval \${$cacheid+:} false; then :
6452 $as_echo_n "(cached) " >&6
6453 else
6454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6455 /* end confdefs.h. */
6456 int i;
6457 int
6458 main ()
6459 {
6460
6461 ;
6462 return 0;
6463 }
6464 _ACEOF
6465 if ac_fn_c_try_link "$LINENO"; then :
6466 eval $cacheid=yes
6467 else
6468 eval $cacheid=no
6469 fi
6470 rm -f core conftest.err conftest.$ac_objext \
6471 conftest$ac_exeext conftest.$ac_ext
6472 fi
6473
6474
6475 CFLAGS="$xorg_testset_save_CFLAGS"
6476
6477 eval supported=\$$cacheid
6478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6479 $as_echo "$supported" >&6; }
6480 if test "$supported" = "yes" ; then
6481 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
6482 found="yes"
6483 fi
6484 fi
6485
6486
6487
6488
6489
6490
6491
6492
6493
6494
6495
6496
6497
6498
6499
6500 xorg_testset_save_CFLAGS="$CFLAGS"
6501
6502 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6503 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6505 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6506 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6507 $as_echo_n "(cached) " >&6
6508 else
6509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6510 /* end confdefs.h. */
6511 int i;
6512 _ACEOF
6513 if ac_fn_c_try_compile "$LINENO"; then :
6514 xorg_cv_cc_flag_unknown_warning_option=yes
6515 else
6516 xorg_cv_cc_flag_unknown_warning_option=no
6517 fi
6518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6519 fi
6520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6521 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6522 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6523 CFLAGS="$xorg_testset_save_CFLAGS"
6524 fi
6525
6526 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6527 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6528 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6529 fi
6530 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6532 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6533 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6534 $as_echo_n "(cached) " >&6
6535 else
6536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6537 /* end confdefs.h. */
6538 int i;
6539 _ACEOF
6540 if ac_fn_c_try_compile "$LINENO"; then :
6541 xorg_cv_cc_flag_unused_command_line_argument=yes
6542 else
6543 xorg_cv_cc_flag_unused_command_line_argument=no
6544 fi
6545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6546 fi
6547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6548 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6549 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6550 CFLAGS="$xorg_testset_save_CFLAGS"
6551 fi
6552
6553 found="no"
6554
6555 if test $found = "no" ; then
6556 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6557 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6558 fi
6559
6560 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6561 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6562 fi
6563
6564 CFLAGS="$CFLAGS -Werror=init-self"
6565
6566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
6567 $as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
6568 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=init-self" | $as_tr_sh`
6569 if eval \${$cacheid+:} false; then :
6570 $as_echo_n "(cached) " >&6
6571 else
6572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6573 /* end confdefs.h. */
6574 int i;
6575 int
6576 main ()
6577 {
6578
6579 ;
6580 return 0;
6581 }
6582 _ACEOF
6583 if ac_fn_c_try_link "$LINENO"; then :
6584 eval $cacheid=yes
6585 else
6586 eval $cacheid=no
6587 fi
6588 rm -f core conftest.err conftest.$ac_objext \
6589 conftest$ac_exeext conftest.$ac_ext
6590 fi
6591
6592
6593 CFLAGS="$xorg_testset_save_CFLAGS"
6594
6595 eval supported=\$$cacheid
6596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6597 $as_echo "$supported" >&6; }
6598 if test "$supported" = "yes" ; then
6599 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
6600 found="yes"
6601 fi
6602 fi
6603
6604
6605
6606
6607
6608
6609
6610
6611
6612
6613
6614
6615
6616
6617
6618 xorg_testset_save_CFLAGS="$CFLAGS"
6619
6620 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6621 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6623 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6624 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6625 $as_echo_n "(cached) " >&6
6626 else
6627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6628 /* end confdefs.h. */
6629 int i;
6630 _ACEOF
6631 if ac_fn_c_try_compile "$LINENO"; then :
6632 xorg_cv_cc_flag_unknown_warning_option=yes
6633 else
6634 xorg_cv_cc_flag_unknown_warning_option=no
6635 fi
6636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6637 fi
6638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6639 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6640 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6641 CFLAGS="$xorg_testset_save_CFLAGS"
6642 fi
6643
6644 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6645 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6646 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6647 fi
6648 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6650 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6651 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6652 $as_echo_n "(cached) " >&6
6653 else
6654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6655 /* end confdefs.h. */
6656 int i;
6657 _ACEOF
6658 if ac_fn_c_try_compile "$LINENO"; then :
6659 xorg_cv_cc_flag_unused_command_line_argument=yes
6660 else
6661 xorg_cv_cc_flag_unused_command_line_argument=no
6662 fi
6663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6664 fi
6665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6666 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6667 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6668 CFLAGS="$xorg_testset_save_CFLAGS"
6669 fi
6670
6671 found="no"
6672
6673 if test $found = "no" ; then
6674 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6675 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6676 fi
6677
6678 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6679 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6680 fi
6681
6682 CFLAGS="$CFLAGS -Werror=main"
6683
6684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
6685 $as_echo_n "checking if $CC supports -Werror=main... " >&6; }
6686 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=main" | $as_tr_sh`
6687 if eval \${$cacheid+:} false; then :
6688 $as_echo_n "(cached) " >&6
6689 else
6690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6691 /* end confdefs.h. */
6692 int i;
6693 int
6694 main ()
6695 {
6696
6697 ;
6698 return 0;
6699 }
6700 _ACEOF
6701 if ac_fn_c_try_link "$LINENO"; then :
6702 eval $cacheid=yes
6703 else
6704 eval $cacheid=no
6705 fi
6706 rm -f core conftest.err conftest.$ac_objext \
6707 conftest$ac_exeext conftest.$ac_ext
6708 fi
6709
6710
6711 CFLAGS="$xorg_testset_save_CFLAGS"
6712
6713 eval supported=\$$cacheid
6714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6715 $as_echo "$supported" >&6; }
6716 if test "$supported" = "yes" ; then
6717 BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
6718 found="yes"
6719 fi
6720 fi
6721
6722
6723
6724
6725
6726
6727
6728
6729
6730
6731
6732
6733
6734
6735
6736 xorg_testset_save_CFLAGS="$CFLAGS"
6737
6738 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6739 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6741 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6742 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6743 $as_echo_n "(cached) " >&6
6744 else
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_cv_cc_flag_unknown_warning_option=yes
6751 else
6752 xorg_cv_cc_flag_unknown_warning_option=no
6753 fi
6754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6755 fi
6756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6757 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6758 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6759 CFLAGS="$xorg_testset_save_CFLAGS"
6760 fi
6761
6762 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6763 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6764 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6765 fi
6766 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6768 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6769 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6770 $as_echo_n "(cached) " >&6
6771 else
6772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6773 /* end confdefs.h. */
6774 int i;
6775 _ACEOF
6776 if ac_fn_c_try_compile "$LINENO"; then :
6777 xorg_cv_cc_flag_unused_command_line_argument=yes
6778 else
6779 xorg_cv_cc_flag_unused_command_line_argument=no
6780 fi
6781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6782 fi
6783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6784 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6785 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6786 CFLAGS="$xorg_testset_save_CFLAGS"
6787 fi
6788
6789 found="no"
6790
6791 if test $found = "no" ; then
6792 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6793 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6794 fi
6795
6796 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6797 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6798 fi
6799
6800 CFLAGS="$CFLAGS -Werror=missing-braces"
6801
6802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
6803 $as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
6804 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=missing-braces" | $as_tr_sh`
6805 if eval \${$cacheid+:} false; then :
6806 $as_echo_n "(cached) " >&6
6807 else
6808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6809 /* end confdefs.h. */
6810 int i;
6811 int
6812 main ()
6813 {
6814
6815 ;
6816 return 0;
6817 }
6818 _ACEOF
6819 if ac_fn_c_try_link "$LINENO"; then :
6820 eval $cacheid=yes
6821 else
6822 eval $cacheid=no
6823 fi
6824 rm -f core conftest.err conftest.$ac_objext \
6825 conftest$ac_exeext conftest.$ac_ext
6826 fi
6827
6828
6829 CFLAGS="$xorg_testset_save_CFLAGS"
6830
6831 eval supported=\$$cacheid
6832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6833 $as_echo "$supported" >&6; }
6834 if test "$supported" = "yes" ; then
6835 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
6836 found="yes"
6837 fi
6838 fi
6839
6840
6841
6842
6843
6844
6845
6846
6847
6848
6849
6850
6851
6852
6853
6854 xorg_testset_save_CFLAGS="$CFLAGS"
6855
6856 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6857 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6859 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6860 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6861 $as_echo_n "(cached) " >&6
6862 else
6863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6864 /* end confdefs.h. */
6865 int i;
6866 _ACEOF
6867 if ac_fn_c_try_compile "$LINENO"; then :
6868 xorg_cv_cc_flag_unknown_warning_option=yes
6869 else
6870 xorg_cv_cc_flag_unknown_warning_option=no
6871 fi
6872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6873 fi
6874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6875 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6876 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6877 CFLAGS="$xorg_testset_save_CFLAGS"
6878 fi
6879
6880 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6881 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6882 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6883 fi
6884 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6886 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6887 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6888 $as_echo_n "(cached) " >&6
6889 else
6890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6891 /* end confdefs.h. */
6892 int i;
6893 _ACEOF
6894 if ac_fn_c_try_compile "$LINENO"; then :
6895 xorg_cv_cc_flag_unused_command_line_argument=yes
6896 else
6897 xorg_cv_cc_flag_unused_command_line_argument=no
6898 fi
6899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6900 fi
6901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6902 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6903 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6904 CFLAGS="$xorg_testset_save_CFLAGS"
6905 fi
6906
6907 found="no"
6908
6909 if test $found = "no" ; then
6910 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6911 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6912 fi
6913
6914 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6915 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6916 fi
6917
6918 CFLAGS="$CFLAGS -Werror=sequence-point"
6919
6920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
6921 $as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
6922 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=sequence-point" | $as_tr_sh`
6923 if eval \${$cacheid+:} false; then :
6924 $as_echo_n "(cached) " >&6
6925 else
6926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6927 /* end confdefs.h. */
6928 int i;
6929 int
6930 main ()
6931 {
6932
6933 ;
6934 return 0;
6935 }
6936 _ACEOF
6937 if ac_fn_c_try_link "$LINENO"; then :
6938 eval $cacheid=yes
6939 else
6940 eval $cacheid=no
6941 fi
6942 rm -f core conftest.err conftest.$ac_objext \
6943 conftest$ac_exeext conftest.$ac_ext
6944 fi
6945
6946
6947 CFLAGS="$xorg_testset_save_CFLAGS"
6948
6949 eval supported=\$$cacheid
6950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6951 $as_echo "$supported" >&6; }
6952 if test "$supported" = "yes" ; then
6953 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
6954 found="yes"
6955 fi
6956 fi
6957
6958
6959
6960
6961
6962
6963
6964
6965
6966
6967
6968
6969
6970
6971
6972 xorg_testset_save_CFLAGS="$CFLAGS"
6973
6974 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6975 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6977 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6978 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6979 $as_echo_n "(cached) " >&6
6980 else
6981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6982 /* end confdefs.h. */
6983 int i;
6984 _ACEOF
6985 if ac_fn_c_try_compile "$LINENO"; then :
6986 xorg_cv_cc_flag_unknown_warning_option=yes
6987 else
6988 xorg_cv_cc_flag_unknown_warning_option=no
6989 fi
6990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6991 fi
6992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6993 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6994 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6995 CFLAGS="$xorg_testset_save_CFLAGS"
6996 fi
6997
6998 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6999 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7000 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7001 fi
7002 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7004 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7005 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7006 $as_echo_n "(cached) " >&6
7007 else
7008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7009 /* end confdefs.h. */
7010 int i;
7011 _ACEOF
7012 if ac_fn_c_try_compile "$LINENO"; then :
7013 xorg_cv_cc_flag_unused_command_line_argument=yes
7014 else
7015 xorg_cv_cc_flag_unused_command_line_argument=no
7016 fi
7017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7018 fi
7019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7020 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7021 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7022 CFLAGS="$xorg_testset_save_CFLAGS"
7023 fi
7024
7025 found="no"
7026
7027 if test $found = "no" ; then
7028 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7029 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7030 fi
7031
7032 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7033 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7034 fi
7035
7036 CFLAGS="$CFLAGS -Werror=return-type"
7037
7038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
7039 $as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
7040 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=return-type" | $as_tr_sh`
7041 if eval \${$cacheid+:} false; then :
7042 $as_echo_n "(cached) " >&6
7043 else
7044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7045 /* end confdefs.h. */
7046 int i;
7047 int
7048 main ()
7049 {
7050
7051 ;
7052 return 0;
7053 }
7054 _ACEOF
7055 if ac_fn_c_try_link "$LINENO"; then :
7056 eval $cacheid=yes
7057 else
7058 eval $cacheid=no
7059 fi
7060 rm -f core conftest.err conftest.$ac_objext \
7061 conftest$ac_exeext conftest.$ac_ext
7062 fi
7063
7064
7065 CFLAGS="$xorg_testset_save_CFLAGS"
7066
7067 eval supported=\$$cacheid
7068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7069 $as_echo "$supported" >&6; }
7070 if test "$supported" = "yes" ; then
7071 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
7072 found="yes"
7073 fi
7074 fi
7075
7076 if test $found = "no" ; then
7077 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7078 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7079 fi
7080
7081 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7082 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7083 fi
7084
7085 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7086
7087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
7088 $as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
7089 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_FUNC_HAS_NO_RETURN_STMT" | $as_tr_sh`
7090 if eval \${$cacheid+:} false; then :
7091 $as_echo_n "(cached) " >&6
7092 else
7093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7094 /* end confdefs.h. */
7095 int i;
7096 int
7097 main ()
7098 {
7099
7100 ;
7101 return 0;
7102 }
7103 _ACEOF
7104 if ac_fn_c_try_link "$LINENO"; then :
7105 eval $cacheid=yes
7106 else
7107 eval $cacheid=no
7108 fi
7109 rm -f core conftest.err conftest.$ac_objext \
7110 conftest$ac_exeext conftest.$ac_ext
7111 fi
7112
7113
7114 CFLAGS="$xorg_testset_save_CFLAGS"
7115
7116 eval supported=\$$cacheid
7117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7118 $as_echo "$supported" >&6; }
7119 if test "$supported" = "yes" ; then
7120 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7121 found="yes"
7122 fi
7123 fi
7124
7125
7126
7127
7128
7129
7130
7131
7132
7133
7134
7135
7136
7137
7138
7139 xorg_testset_save_CFLAGS="$CFLAGS"
7140
7141 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7142 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7144 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7145 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7146 $as_echo_n "(cached) " >&6
7147 else
7148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7149 /* end confdefs.h. */
7150 int i;
7151 _ACEOF
7152 if ac_fn_c_try_compile "$LINENO"; then :
7153 xorg_cv_cc_flag_unknown_warning_option=yes
7154 else
7155 xorg_cv_cc_flag_unknown_warning_option=no
7156 fi
7157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7158 fi
7159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7160 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7161 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7162 CFLAGS="$xorg_testset_save_CFLAGS"
7163 fi
7164
7165 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7166 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7167 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7168 fi
7169 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7171 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7172 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7173 $as_echo_n "(cached) " >&6
7174 else
7175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7176 /* end confdefs.h. */
7177 int i;
7178 _ACEOF
7179 if ac_fn_c_try_compile "$LINENO"; then :
7180 xorg_cv_cc_flag_unused_command_line_argument=yes
7181 else
7182 xorg_cv_cc_flag_unused_command_line_argument=no
7183 fi
7184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7185 fi
7186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7187 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7188 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7189 CFLAGS="$xorg_testset_save_CFLAGS"
7190 fi
7191
7192 found="no"
7193
7194 if test $found = "no" ; then
7195 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7196 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7197 fi
7198
7199 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7200 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7201 fi
7202
7203 CFLAGS="$CFLAGS -Werror=trigraphs"
7204
7205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
7206 $as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
7207 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=trigraphs" | $as_tr_sh`
7208 if eval \${$cacheid+:} false; then :
7209 $as_echo_n "(cached) " >&6
7210 else
7211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7212 /* end confdefs.h. */
7213 int i;
7214 int
7215 main ()
7216 {
7217
7218 ;
7219 return 0;
7220 }
7221 _ACEOF
7222 if ac_fn_c_try_link "$LINENO"; then :
7223 eval $cacheid=yes
7224 else
7225 eval $cacheid=no
7226 fi
7227 rm -f core conftest.err conftest.$ac_objext \
7228 conftest$ac_exeext conftest.$ac_ext
7229 fi
7230
7231
7232 CFLAGS="$xorg_testset_save_CFLAGS"
7233
7234 eval supported=\$$cacheid
7235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7236 $as_echo "$supported" >&6; }
7237 if test "$supported" = "yes" ; then
7238 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
7239 found="yes"
7240 fi
7241 fi
7242
7243
7244
7245
7246
7247
7248
7249
7250
7251
7252
7253
7254
7255
7256
7257 xorg_testset_save_CFLAGS="$CFLAGS"
7258
7259 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7260 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7262 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7263 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7264 $as_echo_n "(cached) " >&6
7265 else
7266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7267 /* end confdefs.h. */
7268 int i;
7269 _ACEOF
7270 if ac_fn_c_try_compile "$LINENO"; then :
7271 xorg_cv_cc_flag_unknown_warning_option=yes
7272 else
7273 xorg_cv_cc_flag_unknown_warning_option=no
7274 fi
7275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7276 fi
7277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7278 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7279 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7280 CFLAGS="$xorg_testset_save_CFLAGS"
7281 fi
7282
7283 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7284 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7285 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7286 fi
7287 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7289 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7290 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7291 $as_echo_n "(cached) " >&6
7292 else
7293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7294 /* end confdefs.h. */
7295 int i;
7296 _ACEOF
7297 if ac_fn_c_try_compile "$LINENO"; then :
7298 xorg_cv_cc_flag_unused_command_line_argument=yes
7299 else
7300 xorg_cv_cc_flag_unused_command_line_argument=no
7301 fi
7302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7303 fi
7304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7305 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7306 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7307 CFLAGS="$xorg_testset_save_CFLAGS"
7308 fi
7309
7310 found="no"
7311
7312 if test $found = "no" ; then
7313 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7314 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7315 fi
7316
7317 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7318 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7319 fi
7320
7321 CFLAGS="$CFLAGS -Werror=array-bounds"
7322
7323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
7324 $as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
7325 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=array-bounds" | $as_tr_sh`
7326 if eval \${$cacheid+:} false; then :
7327 $as_echo_n "(cached) " >&6
7328 else
7329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7330 /* end confdefs.h. */
7331 int i;
7332 int
7333 main ()
7334 {
7335
7336 ;
7337 return 0;
7338 }
7339 _ACEOF
7340 if ac_fn_c_try_link "$LINENO"; then :
7341 eval $cacheid=yes
7342 else
7343 eval $cacheid=no
7344 fi
7345 rm -f core conftest.err conftest.$ac_objext \
7346 conftest$ac_exeext conftest.$ac_ext
7347 fi
7348
7349
7350 CFLAGS="$xorg_testset_save_CFLAGS"
7351
7352 eval supported=\$$cacheid
7353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7354 $as_echo "$supported" >&6; }
7355 if test "$supported" = "yes" ; then
7356 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
7357 found="yes"
7358 fi
7359 fi
7360
7361
7362
7363
7364
7365
7366
7367
7368
7369
7370
7371
7372
7373
7374
7375 xorg_testset_save_CFLAGS="$CFLAGS"
7376
7377 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7378 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7380 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7381 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7382 $as_echo_n "(cached) " >&6
7383 else
7384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7385 /* end confdefs.h. */
7386 int i;
7387 _ACEOF
7388 if ac_fn_c_try_compile "$LINENO"; then :
7389 xorg_cv_cc_flag_unknown_warning_option=yes
7390 else
7391 xorg_cv_cc_flag_unknown_warning_option=no
7392 fi
7393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7394 fi
7395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7396 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7397 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7398 CFLAGS="$xorg_testset_save_CFLAGS"
7399 fi
7400
7401 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7402 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7403 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7404 fi
7405 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7407 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7408 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7409 $as_echo_n "(cached) " >&6
7410 else
7411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7412 /* end confdefs.h. */
7413 int i;
7414 _ACEOF
7415 if ac_fn_c_try_compile "$LINENO"; then :
7416 xorg_cv_cc_flag_unused_command_line_argument=yes
7417 else
7418 xorg_cv_cc_flag_unused_command_line_argument=no
7419 fi
7420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7421 fi
7422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7423 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7424 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7425 CFLAGS="$xorg_testset_save_CFLAGS"
7426 fi
7427
7428 found="no"
7429
7430 if test $found = "no" ; then
7431 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7432 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7433 fi
7434
7435 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7436 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7437 fi
7438
7439 CFLAGS="$CFLAGS -Werror=write-strings"
7440
7441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
7442 $as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
7443 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=write-strings" | $as_tr_sh`
7444 if eval \${$cacheid+:} false; then :
7445 $as_echo_n "(cached) " >&6
7446 else
7447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7448 /* end confdefs.h. */
7449 int i;
7450 int
7451 main ()
7452 {
7453
7454 ;
7455 return 0;
7456 }
7457 _ACEOF
7458 if ac_fn_c_try_link "$LINENO"; then :
7459 eval $cacheid=yes
7460 else
7461 eval $cacheid=no
7462 fi
7463 rm -f core conftest.err conftest.$ac_objext \
7464 conftest$ac_exeext conftest.$ac_ext
7465 fi
7466
7467
7468 CFLAGS="$xorg_testset_save_CFLAGS"
7469
7470 eval supported=\$$cacheid
7471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7472 $as_echo "$supported" >&6; }
7473 if test "$supported" = "yes" ; then
7474 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
7475 found="yes"
7476 fi
7477 fi
7478
7479
7480
7481
7482
7483
7484
7485
7486
7487
7488
7489
7490
7491
7492
7493 xorg_testset_save_CFLAGS="$CFLAGS"
7494
7495 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7496 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7498 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7499 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7500 $as_echo_n "(cached) " >&6
7501 else
7502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7503 /* end confdefs.h. */
7504 int i;
7505 _ACEOF
7506 if ac_fn_c_try_compile "$LINENO"; then :
7507 xorg_cv_cc_flag_unknown_warning_option=yes
7508 else
7509 xorg_cv_cc_flag_unknown_warning_option=no
7510 fi
7511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7512 fi
7513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7514 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7515 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7516 CFLAGS="$xorg_testset_save_CFLAGS"
7517 fi
7518
7519 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7520 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7521 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7522 fi
7523 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7525 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7526 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7527 $as_echo_n "(cached) " >&6
7528 else
7529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7530 /* end confdefs.h. */
7531 int i;
7532 _ACEOF
7533 if ac_fn_c_try_compile "$LINENO"; then :
7534 xorg_cv_cc_flag_unused_command_line_argument=yes
7535 else
7536 xorg_cv_cc_flag_unused_command_line_argument=no
7537 fi
7538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7539 fi
7540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7541 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7542 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7543 CFLAGS="$xorg_testset_save_CFLAGS"
7544 fi
7545
7546 found="no"
7547
7548 if test $found = "no" ; then
7549 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7550 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7551 fi
7552
7553 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7554 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7555 fi
7556
7557 CFLAGS="$CFLAGS -Werror=address"
7558
7559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
7560 $as_echo_n "checking if $CC supports -Werror=address... " >&6; }
7561 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=address" | $as_tr_sh`
7562 if eval \${$cacheid+:} false; then :
7563 $as_echo_n "(cached) " >&6
7564 else
7565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7566 /* end confdefs.h. */
7567 int i;
7568 int
7569 main ()
7570 {
7571
7572 ;
7573 return 0;
7574 }
7575 _ACEOF
7576 if ac_fn_c_try_link "$LINENO"; then :
7577 eval $cacheid=yes
7578 else
7579 eval $cacheid=no
7580 fi
7581 rm -f core conftest.err conftest.$ac_objext \
7582 conftest$ac_exeext conftest.$ac_ext
7583 fi
7584
7585
7586 CFLAGS="$xorg_testset_save_CFLAGS"
7587
7588 eval supported=\$$cacheid
7589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7590 $as_echo "$supported" >&6; }
7591 if test "$supported" = "yes" ; then
7592 BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
7593 found="yes"
7594 fi
7595 fi
7596
7597
7598
7599
7600
7601
7602
7603
7604
7605
7606
7607
7608
7609
7610
7611 xorg_testset_save_CFLAGS="$CFLAGS"
7612
7613 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7614 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7616 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7617 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7618 $as_echo_n "(cached) " >&6
7619 else
7620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7621 /* end confdefs.h. */
7622 int i;
7623 _ACEOF
7624 if ac_fn_c_try_compile "$LINENO"; then :
7625 xorg_cv_cc_flag_unknown_warning_option=yes
7626 else
7627 xorg_cv_cc_flag_unknown_warning_option=no
7628 fi
7629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7630 fi
7631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7632 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7633 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7634 CFLAGS="$xorg_testset_save_CFLAGS"
7635 fi
7636
7637 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7638 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7639 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7640 fi
7641 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7643 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7644 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7645 $as_echo_n "(cached) " >&6
7646 else
7647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7648 /* end confdefs.h. */
7649 int i;
7650 _ACEOF
7651 if ac_fn_c_try_compile "$LINENO"; then :
7652 xorg_cv_cc_flag_unused_command_line_argument=yes
7653 else
7654 xorg_cv_cc_flag_unused_command_line_argument=no
7655 fi
7656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7657 fi
7658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7659 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7660 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7661 CFLAGS="$xorg_testset_save_CFLAGS"
7662 fi
7663
7664 found="no"
7665
7666 if test $found = "no" ; then
7667 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7668 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7669 fi
7670
7671 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7672 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7673 fi
7674
7675 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
7676
7677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
7678 $as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
7679 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=int-to-pointer-cast" | $as_tr_sh`
7680 if eval \${$cacheid+:} false; then :
7681 $as_echo_n "(cached) " >&6
7682 else
7683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7684 /* end confdefs.h. */
7685 int i;
7686 int
7687 main ()
7688 {
7689
7690 ;
7691 return 0;
7692 }
7693 _ACEOF
7694 if ac_fn_c_try_link "$LINENO"; then :
7695 eval $cacheid=yes
7696 else
7697 eval $cacheid=no
7698 fi
7699 rm -f core conftest.err conftest.$ac_objext \
7700 conftest$ac_exeext conftest.$ac_ext
7701 fi
7702
7703
7704 CFLAGS="$xorg_testset_save_CFLAGS"
7705
7706 eval supported=\$$cacheid
7707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7708 $as_echo "$supported" >&6; }
7709 if test "$supported" = "yes" ; then
7710 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
7711 found="yes"
7712 fi
7713 fi
7714
7715 if test $found = "no" ; then
7716 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7717 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7718 fi
7719
7720 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7721 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7722 fi
7723
7724 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
7725
7726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
7727 $as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
7728 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_BAD_PTR_INT_COMBINATION" | $as_tr_sh`
7729 if eval \${$cacheid+:} false; then :
7730 $as_echo_n "(cached) " >&6
7731 else
7732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7733 /* end confdefs.h. */
7734 int i;
7735 int
7736 main ()
7737 {
7738
7739 ;
7740 return 0;
7741 }
7742 _ACEOF
7743 if ac_fn_c_try_link "$LINENO"; then :
7744 eval $cacheid=yes
7745 else
7746 eval $cacheid=no
7747 fi
7748 rm -f core conftest.err conftest.$ac_objext \
7749 conftest$ac_exeext conftest.$ac_ext
7750 fi
7751
7752
7753 CFLAGS="$xorg_testset_save_CFLAGS"
7754
7755 eval supported=\$$cacheid
7756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7757 $as_echo "$supported" >&6; }
7758 if test "$supported" = "yes" ; then
7759 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
7760 found="yes"
7761 fi
7762 fi
7763
7764
7765
7766
7767
7768
7769
7770
7771
7772
7773
7774
7775
7776
7777
7778 xorg_testset_save_CFLAGS="$CFLAGS"
7779
7780 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7781 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7783 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7784 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7785 $as_echo_n "(cached) " >&6
7786 else
7787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7788 /* end confdefs.h. */
7789 int i;
7790 _ACEOF
7791 if ac_fn_c_try_compile "$LINENO"; then :
7792 xorg_cv_cc_flag_unknown_warning_option=yes
7793 else
7794 xorg_cv_cc_flag_unknown_warning_option=no
7795 fi
7796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7797 fi
7798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7799 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7800 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7801 CFLAGS="$xorg_testset_save_CFLAGS"
7802 fi
7803
7804 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7805 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7806 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7807 fi
7808 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7810 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7811 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7812 $as_echo_n "(cached) " >&6
7813 else
7814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7815 /* end confdefs.h. */
7816 int i;
7817 _ACEOF
7818 if ac_fn_c_try_compile "$LINENO"; then :
7819 xorg_cv_cc_flag_unused_command_line_argument=yes
7820 else
7821 xorg_cv_cc_flag_unused_command_line_argument=no
7822 fi
7823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7824 fi
7825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7826 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7827 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7828 CFLAGS="$xorg_testset_save_CFLAGS"
7829 fi
7830
7831 found="no"
7832
7833 if test $found = "no" ; then
7834 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7835 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7836 fi
7837
7838 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7839 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7840 fi
7841
7842 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
7843
7844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
7845 $as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
7846 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=pointer-to-int-cast" | $as_tr_sh`
7847 if eval \${$cacheid+:} false; then :
7848 $as_echo_n "(cached) " >&6
7849 else
7850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7851 /* end confdefs.h. */
7852 int i;
7853 int
7854 main ()
7855 {
7856
7857 ;
7858 return 0;
7859 }
7860 _ACEOF
7861 if ac_fn_c_try_link "$LINENO"; then :
7862 eval $cacheid=yes
7863 else
7864 eval $cacheid=no
7865 fi
7866 rm -f core conftest.err conftest.$ac_objext \
7867 conftest$ac_exeext conftest.$ac_ext
7868 fi
7869
7870
7871 CFLAGS="$xorg_testset_save_CFLAGS"
7872
7873 eval supported=\$$cacheid
7874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7875 $as_echo "$supported" >&6; }
7876 if test "$supported" = "yes" ; then
7877 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
7878 found="yes"
7879 fi
7880 fi
7881
7882 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
7883 else
7884 { $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
7885 $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;}
7886
7887
7888
7889
7890
7891
7892
7893
7894
7895
7896
7897
7898
7899 xorg_testset_save_CFLAGS="$CFLAGS"
7900
7901 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7902 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7904 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7905 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7906 $as_echo_n "(cached) " >&6
7907 else
7908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7909 /* end confdefs.h. */
7910 int i;
7911 _ACEOF
7912 if ac_fn_c_try_compile "$LINENO"; then :
7913 xorg_cv_cc_flag_unknown_warning_option=yes
7914 else
7915 xorg_cv_cc_flag_unknown_warning_option=no
7916 fi
7917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7918 fi
7919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7920 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7921 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7922 CFLAGS="$xorg_testset_save_CFLAGS"
7923 fi
7924
7925 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7926 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7927 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7928 fi
7929 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7931 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7932 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7933 $as_echo_n "(cached) " >&6
7934 else
7935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7936 /* end confdefs.h. */
7937 int i;
7938 _ACEOF
7939 if ac_fn_c_try_compile "$LINENO"; then :
7940 xorg_cv_cc_flag_unused_command_line_argument=yes
7941 else
7942 xorg_cv_cc_flag_unused_command_line_argument=no
7943 fi
7944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7945 fi
7946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7947 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7948 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7949 CFLAGS="$xorg_testset_save_CFLAGS"
7950 fi
7951
7952 found="no"
7953
7954 if test $found = "no" ; then
7955 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7956 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7957 fi
7958
7959 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7960 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7961 fi
7962
7963 CFLAGS="$CFLAGS -Wimplicit"
7964
7965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
7966 $as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
7967 cacheid=xorg_cv_cc_flag__Wimplicit
7968 if eval \${$cacheid+:} false; then :
7969 $as_echo_n "(cached) " >&6
7970 else
7971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7972 /* end confdefs.h. */
7973 int i;
7974 int
7975 main ()
7976 {
7977
7978 ;
7979 return 0;
7980 }
7981 _ACEOF
7982 if ac_fn_c_try_link "$LINENO"; then :
7983 eval $cacheid=yes
7984 else
7985 eval $cacheid=no
7986 fi
7987 rm -f core conftest.err conftest.$ac_objext \
7988 conftest$ac_exeext conftest.$ac_ext
7989 fi
7990
7991
7992 CFLAGS="$xorg_testset_save_CFLAGS"
7993
7994 eval supported=\$$cacheid
7995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7996 $as_echo "$supported" >&6; }
7997 if test "$supported" = "yes" ; then
7998 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
7999 found="yes"
8000 fi
8001 fi
8002
8003
8004
8005
8006
8007
8008
8009
8010
8011
8012
8013
8014
8015
8016
8017 xorg_testset_save_CFLAGS="$CFLAGS"
8018
8019 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8020 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8022 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8023 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8024 $as_echo_n "(cached) " >&6
8025 else
8026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8027 /* end confdefs.h. */
8028 int i;
8029 _ACEOF
8030 if ac_fn_c_try_compile "$LINENO"; then :
8031 xorg_cv_cc_flag_unknown_warning_option=yes
8032 else
8033 xorg_cv_cc_flag_unknown_warning_option=no
8034 fi
8035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8036 fi
8037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8038 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8039 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8040 CFLAGS="$xorg_testset_save_CFLAGS"
8041 fi
8042
8043 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8044 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8045 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8046 fi
8047 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8049 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8050 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8051 $as_echo_n "(cached) " >&6
8052 else
8053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8054 /* end confdefs.h. */
8055 int i;
8056 _ACEOF
8057 if ac_fn_c_try_compile "$LINENO"; then :
8058 xorg_cv_cc_flag_unused_command_line_argument=yes
8059 else
8060 xorg_cv_cc_flag_unused_command_line_argument=no
8061 fi
8062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8063 fi
8064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8065 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8066 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8067 CFLAGS="$xorg_testset_save_CFLAGS"
8068 fi
8069
8070 found="no"
8071
8072 if test $found = "no" ; then
8073 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8074 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8075 fi
8076
8077 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8078 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8079 fi
8080
8081 CFLAGS="$CFLAGS -Wnonnull"
8082
8083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
8084 $as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
8085 cacheid=xorg_cv_cc_flag__Wnonnull
8086 if eval \${$cacheid+:} false; then :
8087 $as_echo_n "(cached) " >&6
8088 else
8089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8090 /* end confdefs.h. */
8091 int i;
8092 int
8093 main ()
8094 {
8095
8096 ;
8097 return 0;
8098 }
8099 _ACEOF
8100 if ac_fn_c_try_link "$LINENO"; then :
8101 eval $cacheid=yes
8102 else
8103 eval $cacheid=no
8104 fi
8105 rm -f core conftest.err conftest.$ac_objext \
8106 conftest$ac_exeext conftest.$ac_ext
8107 fi
8108
8109
8110 CFLAGS="$xorg_testset_save_CFLAGS"
8111
8112 eval supported=\$$cacheid
8113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8114 $as_echo "$supported" >&6; }
8115 if test "$supported" = "yes" ; then
8116 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
8117 found="yes"
8118 fi
8119 fi
8120
8121
8122
8123
8124
8125
8126
8127
8128
8129
8130
8131
8132
8133
8134
8135 xorg_testset_save_CFLAGS="$CFLAGS"
8136
8137 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8138 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8140 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8141 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8142 $as_echo_n "(cached) " >&6
8143 else
8144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8145 /* end confdefs.h. */
8146 int i;
8147 _ACEOF
8148 if ac_fn_c_try_compile "$LINENO"; then :
8149 xorg_cv_cc_flag_unknown_warning_option=yes
8150 else
8151 xorg_cv_cc_flag_unknown_warning_option=no
8152 fi
8153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8154 fi
8155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8156 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8157 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8158 CFLAGS="$xorg_testset_save_CFLAGS"
8159 fi
8160
8161 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8162 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8163 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8164 fi
8165 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8167 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8168 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8169 $as_echo_n "(cached) " >&6
8170 else
8171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8172 /* end confdefs.h. */
8173 int i;
8174 _ACEOF
8175 if ac_fn_c_try_compile "$LINENO"; then :
8176 xorg_cv_cc_flag_unused_command_line_argument=yes
8177 else
8178 xorg_cv_cc_flag_unused_command_line_argument=no
8179 fi
8180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8181 fi
8182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8183 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8184 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8185 CFLAGS="$xorg_testset_save_CFLAGS"
8186 fi
8187
8188 found="no"
8189
8190 if test $found = "no" ; then
8191 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8192 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8193 fi
8194
8195 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8196 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8197 fi
8198
8199 CFLAGS="$CFLAGS -Winit-self"
8200
8201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
8202 $as_echo_n "checking if $CC supports -Winit-self... " >&6; }
8203 cacheid=xorg_cv_cc_flag__Winit_self
8204 if eval \${$cacheid+:} false; then :
8205 $as_echo_n "(cached) " >&6
8206 else
8207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8208 /* end confdefs.h. */
8209 int i;
8210 int
8211 main ()
8212 {
8213
8214 ;
8215 return 0;
8216 }
8217 _ACEOF
8218 if ac_fn_c_try_link "$LINENO"; then :
8219 eval $cacheid=yes
8220 else
8221 eval $cacheid=no
8222 fi
8223 rm -f core conftest.err conftest.$ac_objext \
8224 conftest$ac_exeext conftest.$ac_ext
8225 fi
8226
8227
8228 CFLAGS="$xorg_testset_save_CFLAGS"
8229
8230 eval supported=\$$cacheid
8231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8232 $as_echo "$supported" >&6; }
8233 if test "$supported" = "yes" ; then
8234 BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
8235 found="yes"
8236 fi
8237 fi
8238
8239
8240
8241
8242
8243
8244
8245
8246
8247
8248
8249
8250
8251
8252
8253 xorg_testset_save_CFLAGS="$CFLAGS"
8254
8255 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8256 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8258 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8259 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8260 $as_echo_n "(cached) " >&6
8261 else
8262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8263 /* end confdefs.h. */
8264 int i;
8265 _ACEOF
8266 if ac_fn_c_try_compile "$LINENO"; then :
8267 xorg_cv_cc_flag_unknown_warning_option=yes
8268 else
8269 xorg_cv_cc_flag_unknown_warning_option=no
8270 fi
8271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8272 fi
8273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8274 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8275 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8276 CFLAGS="$xorg_testset_save_CFLAGS"
8277 fi
8278
8279 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8280 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8281 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8282 fi
8283 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8285 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8286 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8287 $as_echo_n "(cached) " >&6
8288 else
8289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8290 /* end confdefs.h. */
8291 int i;
8292 _ACEOF
8293 if ac_fn_c_try_compile "$LINENO"; then :
8294 xorg_cv_cc_flag_unused_command_line_argument=yes
8295 else
8296 xorg_cv_cc_flag_unused_command_line_argument=no
8297 fi
8298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8299 fi
8300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8301 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8302 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8303 CFLAGS="$xorg_testset_save_CFLAGS"
8304 fi
8305
8306 found="no"
8307
8308 if test $found = "no" ; then
8309 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8310 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8311 fi
8312
8313 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8314 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8315 fi
8316
8317 CFLAGS="$CFLAGS -Wmain"
8318
8319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
8320 $as_echo_n "checking if $CC supports -Wmain... " >&6; }
8321 cacheid=xorg_cv_cc_flag__Wmain
8322 if eval \${$cacheid+:} false; then :
8323 $as_echo_n "(cached) " >&6
8324 else
8325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8326 /* end confdefs.h. */
8327 int i;
8328 int
8329 main ()
8330 {
8331
8332 ;
8333 return 0;
8334 }
8335 _ACEOF
8336 if ac_fn_c_try_link "$LINENO"; then :
8337 eval $cacheid=yes
8338 else
8339 eval $cacheid=no
8340 fi
8341 rm -f core conftest.err conftest.$ac_objext \
8342 conftest$ac_exeext conftest.$ac_ext
8343 fi
8344
8345
8346 CFLAGS="$xorg_testset_save_CFLAGS"
8347
8348 eval supported=\$$cacheid
8349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8350 $as_echo "$supported" >&6; }
8351 if test "$supported" = "yes" ; then
8352 BASE_CFLAGS="$BASE_CFLAGS -Wmain"
8353 found="yes"
8354 fi
8355 fi
8356
8357
8358
8359
8360
8361
8362
8363
8364
8365
8366
8367
8368
8369
8370
8371 xorg_testset_save_CFLAGS="$CFLAGS"
8372
8373 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8374 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8376 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8377 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8378 $as_echo_n "(cached) " >&6
8379 else
8380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8381 /* end confdefs.h. */
8382 int i;
8383 _ACEOF
8384 if ac_fn_c_try_compile "$LINENO"; then :
8385 xorg_cv_cc_flag_unknown_warning_option=yes
8386 else
8387 xorg_cv_cc_flag_unknown_warning_option=no
8388 fi
8389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8390 fi
8391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8392 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8393 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8394 CFLAGS="$xorg_testset_save_CFLAGS"
8395 fi
8396
8397 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8398 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8399 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8400 fi
8401 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8403 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8404 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8405 $as_echo_n "(cached) " >&6
8406 else
8407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8408 /* end confdefs.h. */
8409 int i;
8410 _ACEOF
8411 if ac_fn_c_try_compile "$LINENO"; then :
8412 xorg_cv_cc_flag_unused_command_line_argument=yes
8413 else
8414 xorg_cv_cc_flag_unused_command_line_argument=no
8415 fi
8416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8417 fi
8418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8419 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8420 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8421 CFLAGS="$xorg_testset_save_CFLAGS"
8422 fi
8423
8424 found="no"
8425
8426 if test $found = "no" ; then
8427 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8428 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8429 fi
8430
8431 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8432 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8433 fi
8434
8435 CFLAGS="$CFLAGS -Wmissing-braces"
8436
8437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
8438 $as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
8439 cacheid=xorg_cv_cc_flag__Wmissing_braces
8440 if eval \${$cacheid+:} false; then :
8441 $as_echo_n "(cached) " >&6
8442 else
8443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8444 /* end confdefs.h. */
8445 int i;
8446 int
8447 main ()
8448 {
8449
8450 ;
8451 return 0;
8452 }
8453 _ACEOF
8454 if ac_fn_c_try_link "$LINENO"; then :
8455 eval $cacheid=yes
8456 else
8457 eval $cacheid=no
8458 fi
8459 rm -f core conftest.err conftest.$ac_objext \
8460 conftest$ac_exeext conftest.$ac_ext
8461 fi
8462
8463
8464 CFLAGS="$xorg_testset_save_CFLAGS"
8465
8466 eval supported=\$$cacheid
8467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8468 $as_echo "$supported" >&6; }
8469 if test "$supported" = "yes" ; then
8470 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
8471 found="yes"
8472 fi
8473 fi
8474
8475
8476
8477
8478
8479
8480
8481
8482
8483
8484
8485
8486
8487
8488
8489 xorg_testset_save_CFLAGS="$CFLAGS"
8490
8491 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8492 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8494 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8495 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8496 $as_echo_n "(cached) " >&6
8497 else
8498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8499 /* end confdefs.h. */
8500 int i;
8501 _ACEOF
8502 if ac_fn_c_try_compile "$LINENO"; then :
8503 xorg_cv_cc_flag_unknown_warning_option=yes
8504 else
8505 xorg_cv_cc_flag_unknown_warning_option=no
8506 fi
8507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8508 fi
8509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8510 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8511 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8512 CFLAGS="$xorg_testset_save_CFLAGS"
8513 fi
8514
8515 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8516 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8517 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8518 fi
8519 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8521 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8522 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8523 $as_echo_n "(cached) " >&6
8524 else
8525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8526 /* end confdefs.h. */
8527 int i;
8528 _ACEOF
8529 if ac_fn_c_try_compile "$LINENO"; then :
8530 xorg_cv_cc_flag_unused_command_line_argument=yes
8531 else
8532 xorg_cv_cc_flag_unused_command_line_argument=no
8533 fi
8534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8535 fi
8536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8537 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8538 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8539 CFLAGS="$xorg_testset_save_CFLAGS"
8540 fi
8541
8542 found="no"
8543
8544 if test $found = "no" ; then
8545 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8546 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8547 fi
8548
8549 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8550 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8551 fi
8552
8553 CFLAGS="$CFLAGS -Wsequence-point"
8554
8555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
8556 $as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
8557 cacheid=xorg_cv_cc_flag__Wsequence_point
8558 if eval \${$cacheid+:} false; then :
8559 $as_echo_n "(cached) " >&6
8560 else
8561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8562 /* end confdefs.h. */
8563 int i;
8564 int
8565 main ()
8566 {
8567
8568 ;
8569 return 0;
8570 }
8571 _ACEOF
8572 if ac_fn_c_try_link "$LINENO"; then :
8573 eval $cacheid=yes
8574 else
8575 eval $cacheid=no
8576 fi
8577 rm -f core conftest.err conftest.$ac_objext \
8578 conftest$ac_exeext conftest.$ac_ext
8579 fi
8580
8581
8582 CFLAGS="$xorg_testset_save_CFLAGS"
8583
8584 eval supported=\$$cacheid
8585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8586 $as_echo "$supported" >&6; }
8587 if test "$supported" = "yes" ; then
8588 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
8589 found="yes"
8590 fi
8591 fi
8592
8593
8594
8595
8596
8597
8598
8599
8600
8601
8602
8603
8604
8605
8606
8607 xorg_testset_save_CFLAGS="$CFLAGS"
8608
8609 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8610 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8612 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8613 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8614 $as_echo_n "(cached) " >&6
8615 else
8616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8617 /* end confdefs.h. */
8618 int i;
8619 _ACEOF
8620 if ac_fn_c_try_compile "$LINENO"; then :
8621 xorg_cv_cc_flag_unknown_warning_option=yes
8622 else
8623 xorg_cv_cc_flag_unknown_warning_option=no
8624 fi
8625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8626 fi
8627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8628 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8629 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8630 CFLAGS="$xorg_testset_save_CFLAGS"
8631 fi
8632
8633 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8634 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8635 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8636 fi
8637 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8639 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8640 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8641 $as_echo_n "(cached) " >&6
8642 else
8643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8644 /* end confdefs.h. */
8645 int i;
8646 _ACEOF
8647 if ac_fn_c_try_compile "$LINENO"; then :
8648 xorg_cv_cc_flag_unused_command_line_argument=yes
8649 else
8650 xorg_cv_cc_flag_unused_command_line_argument=no
8651 fi
8652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8653 fi
8654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8655 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8656 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8657 CFLAGS="$xorg_testset_save_CFLAGS"
8658 fi
8659
8660 found="no"
8661
8662 if test $found = "no" ; then
8663 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8664 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8665 fi
8666
8667 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8668 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8669 fi
8670
8671 CFLAGS="$CFLAGS -Wreturn-type"
8672
8673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
8674 $as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
8675 cacheid=xorg_cv_cc_flag__Wreturn_type
8676 if eval \${$cacheid+:} false; then :
8677 $as_echo_n "(cached) " >&6
8678 else
8679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8680 /* end confdefs.h. */
8681 int i;
8682 int
8683 main ()
8684 {
8685
8686 ;
8687 return 0;
8688 }
8689 _ACEOF
8690 if ac_fn_c_try_link "$LINENO"; then :
8691 eval $cacheid=yes
8692 else
8693 eval $cacheid=no
8694 fi
8695 rm -f core conftest.err conftest.$ac_objext \
8696 conftest$ac_exeext conftest.$ac_ext
8697 fi
8698
8699
8700 CFLAGS="$xorg_testset_save_CFLAGS"
8701
8702 eval supported=\$$cacheid
8703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8704 $as_echo "$supported" >&6; }
8705 if test "$supported" = "yes" ; then
8706 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
8707 found="yes"
8708 fi
8709 fi
8710
8711
8712
8713
8714
8715
8716
8717
8718
8719
8720
8721
8722
8723
8724
8725 xorg_testset_save_CFLAGS="$CFLAGS"
8726
8727 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8728 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8730 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8731 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8732 $as_echo_n "(cached) " >&6
8733 else
8734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8735 /* end confdefs.h. */
8736 int i;
8737 _ACEOF
8738 if ac_fn_c_try_compile "$LINENO"; then :
8739 xorg_cv_cc_flag_unknown_warning_option=yes
8740 else
8741 xorg_cv_cc_flag_unknown_warning_option=no
8742 fi
8743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8744 fi
8745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8746 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8747 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8748 CFLAGS="$xorg_testset_save_CFLAGS"
8749 fi
8750
8751 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8752 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8753 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8754 fi
8755 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8757 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8758 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8759 $as_echo_n "(cached) " >&6
8760 else
8761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8762 /* end confdefs.h. */
8763 int i;
8764 _ACEOF
8765 if ac_fn_c_try_compile "$LINENO"; then :
8766 xorg_cv_cc_flag_unused_command_line_argument=yes
8767 else
8768 xorg_cv_cc_flag_unused_command_line_argument=no
8769 fi
8770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8771 fi
8772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8773 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8774 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8775 CFLAGS="$xorg_testset_save_CFLAGS"
8776 fi
8777
8778 found="no"
8779
8780 if test $found = "no" ; then
8781 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8782 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8783 fi
8784
8785 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8786 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8787 fi
8788
8789 CFLAGS="$CFLAGS -Wtrigraphs"
8790
8791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
8792 $as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
8793 cacheid=xorg_cv_cc_flag__Wtrigraphs
8794 if eval \${$cacheid+:} false; then :
8795 $as_echo_n "(cached) " >&6
8796 else
8797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8798 /* end confdefs.h. */
8799 int i;
8800 int
8801 main ()
8802 {
8803
8804 ;
8805 return 0;
8806 }
8807 _ACEOF
8808 if ac_fn_c_try_link "$LINENO"; then :
8809 eval $cacheid=yes
8810 else
8811 eval $cacheid=no
8812 fi
8813 rm -f core conftest.err conftest.$ac_objext \
8814 conftest$ac_exeext conftest.$ac_ext
8815 fi
8816
8817
8818 CFLAGS="$xorg_testset_save_CFLAGS"
8819
8820 eval supported=\$$cacheid
8821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8822 $as_echo "$supported" >&6; }
8823 if test "$supported" = "yes" ; then
8824 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
8825 found="yes"
8826 fi
8827 fi
8828
8829
8830
8831
8832
8833
8834
8835
8836
8837
8838
8839
8840
8841
8842
8843 xorg_testset_save_CFLAGS="$CFLAGS"
8844
8845 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8846 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8848 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8849 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8850 $as_echo_n "(cached) " >&6
8851 else
8852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8853 /* end confdefs.h. */
8854 int i;
8855 _ACEOF
8856 if ac_fn_c_try_compile "$LINENO"; then :
8857 xorg_cv_cc_flag_unknown_warning_option=yes
8858 else
8859 xorg_cv_cc_flag_unknown_warning_option=no
8860 fi
8861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8862 fi
8863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8864 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8865 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8866 CFLAGS="$xorg_testset_save_CFLAGS"
8867 fi
8868
8869 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8870 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8871 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8872 fi
8873 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8875 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8876 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8877 $as_echo_n "(cached) " >&6
8878 else
8879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8880 /* end confdefs.h. */
8881 int i;
8882 _ACEOF
8883 if ac_fn_c_try_compile "$LINENO"; then :
8884 xorg_cv_cc_flag_unused_command_line_argument=yes
8885 else
8886 xorg_cv_cc_flag_unused_command_line_argument=no
8887 fi
8888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8889 fi
8890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8891 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8892 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8893 CFLAGS="$xorg_testset_save_CFLAGS"
8894 fi
8895
8896 found="no"
8897
8898 if test $found = "no" ; then
8899 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8900 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8901 fi
8902
8903 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8904 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8905 fi
8906
8907 CFLAGS="$CFLAGS -Warray-bounds"
8908
8909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
8910 $as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
8911 cacheid=xorg_cv_cc_flag__Warray_bounds
8912 if eval \${$cacheid+:} false; then :
8913 $as_echo_n "(cached) " >&6
8914 else
8915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8916 /* end confdefs.h. */
8917 int i;
8918 int
8919 main ()
8920 {
8921
8922 ;
8923 return 0;
8924 }
8925 _ACEOF
8926 if ac_fn_c_try_link "$LINENO"; then :
8927 eval $cacheid=yes
8928 else
8929 eval $cacheid=no
8930 fi
8931 rm -f core conftest.err conftest.$ac_objext \
8932 conftest$ac_exeext conftest.$ac_ext
8933 fi
8934
8935
8936 CFLAGS="$xorg_testset_save_CFLAGS"
8937
8938 eval supported=\$$cacheid
8939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8940 $as_echo "$supported" >&6; }
8941 if test "$supported" = "yes" ; then
8942 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
8943 found="yes"
8944 fi
8945 fi
8946
8947
8948
8949
8950
8951
8952
8953
8954
8955
8956
8957
8958
8959
8960
8961 xorg_testset_save_CFLAGS="$CFLAGS"
8962
8963 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8964 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8966 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8967 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8968 $as_echo_n "(cached) " >&6
8969 else
8970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8971 /* end confdefs.h. */
8972 int i;
8973 _ACEOF
8974 if ac_fn_c_try_compile "$LINENO"; then :
8975 xorg_cv_cc_flag_unknown_warning_option=yes
8976 else
8977 xorg_cv_cc_flag_unknown_warning_option=no
8978 fi
8979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8980 fi
8981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8982 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8983 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8984 CFLAGS="$xorg_testset_save_CFLAGS"
8985 fi
8986
8987 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8988 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8989 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8990 fi
8991 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8993 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8994 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8995 $as_echo_n "(cached) " >&6
8996 else
8997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8998 /* end confdefs.h. */
8999 int i;
9000 _ACEOF
9001 if ac_fn_c_try_compile "$LINENO"; then :
9002 xorg_cv_cc_flag_unused_command_line_argument=yes
9003 else
9004 xorg_cv_cc_flag_unused_command_line_argument=no
9005 fi
9006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9007 fi
9008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9009 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9010 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9011 CFLAGS="$xorg_testset_save_CFLAGS"
9012 fi
9013
9014 found="no"
9015
9016 if test $found = "no" ; then
9017 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9018 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9019 fi
9020
9021 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9022 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9023 fi
9024
9025 CFLAGS="$CFLAGS -Wwrite-strings"
9026
9027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
9028 $as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
9029 cacheid=xorg_cv_cc_flag__Wwrite_strings
9030 if eval \${$cacheid+:} false; then :
9031 $as_echo_n "(cached) " >&6
9032 else
9033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9034 /* end confdefs.h. */
9035 int i;
9036 int
9037 main ()
9038 {
9039
9040 ;
9041 return 0;
9042 }
9043 _ACEOF
9044 if ac_fn_c_try_link "$LINENO"; then :
9045 eval $cacheid=yes
9046 else
9047 eval $cacheid=no
9048 fi
9049 rm -f core conftest.err conftest.$ac_objext \
9050 conftest$ac_exeext conftest.$ac_ext
9051 fi
9052
9053
9054 CFLAGS="$xorg_testset_save_CFLAGS"
9055
9056 eval supported=\$$cacheid
9057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9058 $as_echo "$supported" >&6; }
9059 if test "$supported" = "yes" ; then
9060 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
9061 found="yes"
9062 fi
9063 fi
9064
9065
9066
9067
9068
9069
9070
9071
9072
9073
9074
9075
9076
9077
9078
9079 xorg_testset_save_CFLAGS="$CFLAGS"
9080
9081 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9082 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9084 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9085 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9086 $as_echo_n "(cached) " >&6
9087 else
9088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9089 /* end confdefs.h. */
9090 int i;
9091 _ACEOF
9092 if ac_fn_c_try_compile "$LINENO"; then :
9093 xorg_cv_cc_flag_unknown_warning_option=yes
9094 else
9095 xorg_cv_cc_flag_unknown_warning_option=no
9096 fi
9097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9098 fi
9099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9100 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9101 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9102 CFLAGS="$xorg_testset_save_CFLAGS"
9103 fi
9104
9105 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9106 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9107 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9108 fi
9109 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9111 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9112 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9113 $as_echo_n "(cached) " >&6
9114 else
9115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9116 /* end confdefs.h. */
9117 int i;
9118 _ACEOF
9119 if ac_fn_c_try_compile "$LINENO"; then :
9120 xorg_cv_cc_flag_unused_command_line_argument=yes
9121 else
9122 xorg_cv_cc_flag_unused_command_line_argument=no
9123 fi
9124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9125 fi
9126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9127 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9128 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9129 CFLAGS="$xorg_testset_save_CFLAGS"
9130 fi
9131
9132 found="no"
9133
9134 if test $found = "no" ; then
9135 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9136 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9137 fi
9138
9139 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9140 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9141 fi
9142
9143 CFLAGS="$CFLAGS -Waddress"
9144
9145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
9146 $as_echo_n "checking if $CC supports -Waddress... " >&6; }
9147 cacheid=xorg_cv_cc_flag__Waddress
9148 if eval \${$cacheid+:} false; then :
9149 $as_echo_n "(cached) " >&6
9150 else
9151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9152 /* end confdefs.h. */
9153 int i;
9154 int
9155 main ()
9156 {
9157
9158 ;
9159 return 0;
9160 }
9161 _ACEOF
9162 if ac_fn_c_try_link "$LINENO"; then :
9163 eval $cacheid=yes
9164 else
9165 eval $cacheid=no
9166 fi
9167 rm -f core conftest.err conftest.$ac_objext \
9168 conftest$ac_exeext conftest.$ac_ext
9169 fi
9170
9171
9172 CFLAGS="$xorg_testset_save_CFLAGS"
9173
9174 eval supported=\$$cacheid
9175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9176 $as_echo "$supported" >&6; }
9177 if test "$supported" = "yes" ; then
9178 BASE_CFLAGS="$BASE_CFLAGS -Waddress"
9179 found="yes"
9180 fi
9181 fi
9182
9183
9184
9185
9186
9187
9188
9189
9190
9191
9192
9193
9194
9195
9196
9197 xorg_testset_save_CFLAGS="$CFLAGS"
9198
9199 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9200 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9202 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9203 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9204 $as_echo_n "(cached) " >&6
9205 else
9206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9207 /* end confdefs.h. */
9208 int i;
9209 _ACEOF
9210 if ac_fn_c_try_compile "$LINENO"; then :
9211 xorg_cv_cc_flag_unknown_warning_option=yes
9212 else
9213 xorg_cv_cc_flag_unknown_warning_option=no
9214 fi
9215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9216 fi
9217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9218 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9219 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9220 CFLAGS="$xorg_testset_save_CFLAGS"
9221 fi
9222
9223 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9224 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9225 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9226 fi
9227 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9229 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9230 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9231 $as_echo_n "(cached) " >&6
9232 else
9233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9234 /* end confdefs.h. */
9235 int i;
9236 _ACEOF
9237 if ac_fn_c_try_compile "$LINENO"; then :
9238 xorg_cv_cc_flag_unused_command_line_argument=yes
9239 else
9240 xorg_cv_cc_flag_unused_command_line_argument=no
9241 fi
9242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9243 fi
9244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9245 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9246 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9247 CFLAGS="$xorg_testset_save_CFLAGS"
9248 fi
9249
9250 found="no"
9251
9252 if test $found = "no" ; then
9253 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9254 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9255 fi
9256
9257 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9258 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9259 fi
9260
9261 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
9262
9263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
9264 $as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
9265 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
9266 if eval \${$cacheid+:} false; then :
9267 $as_echo_n "(cached) " >&6
9268 else
9269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9270 /* end confdefs.h. */
9271 int i;
9272 int
9273 main ()
9274 {
9275
9276 ;
9277 return 0;
9278 }
9279 _ACEOF
9280 if ac_fn_c_try_link "$LINENO"; then :
9281 eval $cacheid=yes
9282 else
9283 eval $cacheid=no
9284 fi
9285 rm -f core conftest.err conftest.$ac_objext \
9286 conftest$ac_exeext conftest.$ac_ext
9287 fi
9288
9289
9290 CFLAGS="$xorg_testset_save_CFLAGS"
9291
9292 eval supported=\$$cacheid
9293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9294 $as_echo "$supported" >&6; }
9295 if test "$supported" = "yes" ; then
9296 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
9297 found="yes"
9298 fi
9299 fi
9300
9301
9302
9303
9304
9305
9306
9307
9308
9309
9310
9311
9312
9313
9314
9315 xorg_testset_save_CFLAGS="$CFLAGS"
9316
9317 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9318 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9320 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9321 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9322 $as_echo_n "(cached) " >&6
9323 else
9324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9325 /* end confdefs.h. */
9326 int i;
9327 _ACEOF
9328 if ac_fn_c_try_compile "$LINENO"; then :
9329 xorg_cv_cc_flag_unknown_warning_option=yes
9330 else
9331 xorg_cv_cc_flag_unknown_warning_option=no
9332 fi
9333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9334 fi
9335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9336 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9337 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9338 CFLAGS="$xorg_testset_save_CFLAGS"
9339 fi
9340
9341 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9342 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9343 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9344 fi
9345 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9347 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9348 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9349 $as_echo_n "(cached) " >&6
9350 else
9351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9352 /* end confdefs.h. */
9353 int i;
9354 _ACEOF
9355 if ac_fn_c_try_compile "$LINENO"; then :
9356 xorg_cv_cc_flag_unused_command_line_argument=yes
9357 else
9358 xorg_cv_cc_flag_unused_command_line_argument=no
9359 fi
9360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9361 fi
9362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9363 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9364 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9365 CFLAGS="$xorg_testset_save_CFLAGS"
9366 fi
9367
9368 found="no"
9369
9370 if test $found = "no" ; then
9371 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9372 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9373 fi
9374
9375 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9376 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9377 fi
9378
9379 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
9380
9381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
9382 $as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
9383 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
9384 if eval \${$cacheid+:} false; then :
9385 $as_echo_n "(cached) " >&6
9386 else
9387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9388 /* end confdefs.h. */
9389 int i;
9390 int
9391 main ()
9392 {
9393
9394 ;
9395 return 0;
9396 }
9397 _ACEOF
9398 if ac_fn_c_try_link "$LINENO"; then :
9399 eval $cacheid=yes
9400 else
9401 eval $cacheid=no
9402 fi
9403 rm -f core conftest.err conftest.$ac_objext \
9404 conftest$ac_exeext conftest.$ac_ext
9405 fi
9406
9407
9408 CFLAGS="$xorg_testset_save_CFLAGS"
9409
9410 eval supported=\$$cacheid
9411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9412 $as_echo "$supported" >&6; }
9413 if test "$supported" = "yes" ; then
9414 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
9415 found="yes"
9416 fi
9417 fi
9418
9419
9420 fi
9421
9422
9423
9424
9425
9426
9427
9428 CWARNFLAGS="$BASE_CFLAGS"
9429 if test "x$GCC" = xyes ; then
9430 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
9431 fi
9432
9433
9434
9435
9436
9437
9438
9439
9440 # Check whether --enable-strict-compilation was given.
9441 if test "${enable_strict_compilation+set}" = set; then :
9442 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
9443 else
9444 STRICT_COMPILE=no
9445 fi
9446
9447
9448
9449
9450
9451
9452 STRICT_CFLAGS=""
9453
9454
9455
9456
9457
9458
9459
9460
9461
9462
9463
9464
9465
9466 xorg_testset_save_CFLAGS="$CFLAGS"
9467
9468 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9469 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9471 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9472 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9473 $as_echo_n "(cached) " >&6
9474 else
9475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9476 /* end confdefs.h. */
9477 int i;
9478 _ACEOF
9479 if ac_fn_c_try_compile "$LINENO"; then :
9480 xorg_cv_cc_flag_unknown_warning_option=yes
9481 else
9482 xorg_cv_cc_flag_unknown_warning_option=no
9483 fi
9484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9485 fi
9486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9487 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9488 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9489 CFLAGS="$xorg_testset_save_CFLAGS"
9490 fi
9491
9492 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9493 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9494 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9495 fi
9496 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9498 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9499 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9500 $as_echo_n "(cached) " >&6
9501 else
9502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9503 /* end confdefs.h. */
9504 int i;
9505 _ACEOF
9506 if ac_fn_c_try_compile "$LINENO"; then :
9507 xorg_cv_cc_flag_unused_command_line_argument=yes
9508 else
9509 xorg_cv_cc_flag_unused_command_line_argument=no
9510 fi
9511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9512 fi
9513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9514 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9515 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9516 CFLAGS="$xorg_testset_save_CFLAGS"
9517 fi
9518
9519 found="no"
9520
9521 if test $found = "no" ; then
9522 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9523 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9524 fi
9525
9526 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9527 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9528 fi
9529
9530 CFLAGS="$CFLAGS -pedantic"
9531
9532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
9533 $as_echo_n "checking if $CC supports -pedantic... " >&6; }
9534 cacheid=xorg_cv_cc_flag__pedantic
9535 if eval \${$cacheid+:} false; then :
9536 $as_echo_n "(cached) " >&6
9537 else
9538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9539 /* end confdefs.h. */
9540 int i;
9541 int
9542 main ()
9543 {
9544
9545 ;
9546 return 0;
9547 }
9548 _ACEOF
9549 if ac_fn_c_try_link "$LINENO"; then :
9550 eval $cacheid=yes
9551 else
9552 eval $cacheid=no
9553 fi
9554 rm -f core conftest.err conftest.$ac_objext \
9555 conftest$ac_exeext conftest.$ac_ext
9556 fi
9557
9558
9559 CFLAGS="$xorg_testset_save_CFLAGS"
9560
9561 eval supported=\$$cacheid
9562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9563 $as_echo "$supported" >&6; }
9564 if test "$supported" = "yes" ; then
9565 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
9566 found="yes"
9567 fi
9568 fi
9569
9570
9571
9572
9573
9574
9575
9576
9577
9578
9579
9580
9581
9582
9583
9584 xorg_testset_save_CFLAGS="$CFLAGS"
9585
9586 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9587 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9589 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9590 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9591 $as_echo_n "(cached) " >&6
9592 else
9593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9594 /* end confdefs.h. */
9595 int i;
9596 _ACEOF
9597 if ac_fn_c_try_compile "$LINENO"; then :
9598 xorg_cv_cc_flag_unknown_warning_option=yes
9599 else
9600 xorg_cv_cc_flag_unknown_warning_option=no
9601 fi
9602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9603 fi
9604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9605 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9606 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9607 CFLAGS="$xorg_testset_save_CFLAGS"
9608 fi
9609
9610 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9611 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9612 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9613 fi
9614 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9616 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9617 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9618 $as_echo_n "(cached) " >&6
9619 else
9620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9621 /* end confdefs.h. */
9622 int i;
9623 _ACEOF
9624 if ac_fn_c_try_compile "$LINENO"; then :
9625 xorg_cv_cc_flag_unused_command_line_argument=yes
9626 else
9627 xorg_cv_cc_flag_unused_command_line_argument=no
9628 fi
9629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9630 fi
9631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9632 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9633 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9634 CFLAGS="$xorg_testset_save_CFLAGS"
9635 fi
9636
9637 found="no"
9638
9639 if test $found = "no" ; then
9640 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9641 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9642 fi
9643
9644 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9645 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9646 fi
9647
9648 CFLAGS="$CFLAGS -Werror"
9649
9650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
9651 $as_echo_n "checking if $CC supports -Werror... " >&6; }
9652 cacheid=xorg_cv_cc_flag__Werror
9653 if eval \${$cacheid+:} false; then :
9654 $as_echo_n "(cached) " >&6
9655 else
9656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9657 /* end confdefs.h. */
9658 int i;
9659 int
9660 main ()
9661 {
9662
9663 ;
9664 return 0;
9665 }
9666 _ACEOF
9667 if ac_fn_c_try_link "$LINENO"; then :
9668 eval $cacheid=yes
9669 else
9670 eval $cacheid=no
9671 fi
9672 rm -f core conftest.err conftest.$ac_objext \
9673 conftest$ac_exeext conftest.$ac_ext
9674 fi
9675
9676
9677 CFLAGS="$xorg_testset_save_CFLAGS"
9678
9679 eval supported=\$$cacheid
9680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9681 $as_echo "$supported" >&6; }
9682 if test "$supported" = "yes" ; then
9683 STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
9684 found="yes"
9685 fi
9686 fi
9687
9688 if test $found = "no" ; then
9689 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9690 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9691 fi
9692
9693 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9694 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9695 fi
9696
9697 CFLAGS="$CFLAGS -errwarn"
9698
9699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
9700 $as_echo_n "checking if $CC supports -errwarn... " >&6; }
9701 cacheid=xorg_cv_cc_flag__errwarn
9702 if eval \${$cacheid+:} false; then :
9703 $as_echo_n "(cached) " >&6
9704 else
9705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9706 /* end confdefs.h. */
9707 int i;
9708 int
9709 main ()
9710 {
9711
9712 ;
9713 return 0;
9714 }
9715 _ACEOF
9716 if ac_fn_c_try_link "$LINENO"; then :
9717 eval $cacheid=yes
9718 else
9719 eval $cacheid=no
9720 fi
9721 rm -f core conftest.err conftest.$ac_objext \
9722 conftest$ac_exeext conftest.$ac_ext
9723 fi
9724
9725
9726 CFLAGS="$xorg_testset_save_CFLAGS"
9727
9728 eval supported=\$$cacheid
9729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9730 $as_echo "$supported" >&6; }
9731 if test "$supported" = "yes" ; then
9732 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
9733 found="yes"
9734 fi
9735 fi
9736
9737
9738
9739 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
9740 # activate it with -Werror, so we add it here explicitly.
9741
9742
9743
9744
9745
9746
9747
9748
9749
9750
9751
9752
9753
9754 xorg_testset_save_CFLAGS="$CFLAGS"
9755
9756 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9757 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9759 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9760 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9761 $as_echo_n "(cached) " >&6
9762 else
9763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9764 /* end confdefs.h. */
9765 int i;
9766 _ACEOF
9767 if ac_fn_c_try_compile "$LINENO"; then :
9768 xorg_cv_cc_flag_unknown_warning_option=yes
9769 else
9770 xorg_cv_cc_flag_unknown_warning_option=no
9771 fi
9772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9773 fi
9774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9775 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9776 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9777 CFLAGS="$xorg_testset_save_CFLAGS"
9778 fi
9779
9780 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9781 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9782 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9783 fi
9784 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9786 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9787 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9788 $as_echo_n "(cached) " >&6
9789 else
9790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9791 /* end confdefs.h. */
9792 int i;
9793 _ACEOF
9794 if ac_fn_c_try_compile "$LINENO"; then :
9795 xorg_cv_cc_flag_unused_command_line_argument=yes
9796 else
9797 xorg_cv_cc_flag_unused_command_line_argument=no
9798 fi
9799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9800 fi
9801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9802 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9803 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9804 CFLAGS="$xorg_testset_save_CFLAGS"
9805 fi
9806
9807 found="no"
9808
9809 if test $found = "no" ; then
9810 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9811 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9812 fi
9813
9814 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9815 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9816 fi
9817
9818 CFLAGS="$CFLAGS -Werror=attributes"
9819
9820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
9821 $as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
9822 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=attributes" | $as_tr_sh`
9823 if eval \${$cacheid+:} false; then :
9824 $as_echo_n "(cached) " >&6
9825 else
9826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9827 /* end confdefs.h. */
9828 int i;
9829 int
9830 main ()
9831 {
9832
9833 ;
9834 return 0;
9835 }
9836 _ACEOF
9837 if ac_fn_c_try_link "$LINENO"; then :
9838 eval $cacheid=yes
9839 else
9840 eval $cacheid=no
9841 fi
9842 rm -f core conftest.err conftest.$ac_objext \
9843 conftest$ac_exeext conftest.$ac_ext
9844 fi
9845
9846
9847 CFLAGS="$xorg_testset_save_CFLAGS"
9848
9849 eval supported=\$$cacheid
9850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9851 $as_echo "$supported" >&6; }
9852 if test "$supported" = "yes" ; then
9853 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
9854 found="yes"
9855 fi
9856 fi
9857
9858
9859
9860 if test "x$STRICT_COMPILE" = "xyes"; then
9861 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
9862 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
9863 fi
9864
9865
9866
9867
9868
9869
9870 cat >>confdefs.h <<_ACEOF
9871 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
9872 _ACEOF
9873
9874 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
9875 if test "x$PVM" = "x"; then
9876 PVM="0"
9877 fi
9878
9879 cat >>confdefs.h <<_ACEOF
9880 #define PACKAGE_VERSION_MINOR $PVM
9881 _ACEOF
9882
9883 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
9884 if test "x$PVP" = "x"; then
9885 PVP="0"
9886 fi
9887
9888 cat >>confdefs.h <<_ACEOF
9889 #define PACKAGE_VERSION_PATCHLEVEL $PVP
9890 _ACEOF
9891
9892
9893
9894 CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
9895 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
9896 || (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
9897 echo 'git directory not found: installing possibly empty changelog.' >&2)"
9898
9899
9900
9901
9902 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
9903 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
9904 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
9905 || (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
9906 echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
9907
9908
9909
9910
9911
9912
9913 if test x$APP_MAN_SUFFIX = x ; then
9914 APP_MAN_SUFFIX=1
9915 fi
9916 if test x$APP_MAN_DIR = x ; then
9917 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
9918 fi
9919
9920 if test x$LIB_MAN_SUFFIX = x ; then
9921 LIB_MAN_SUFFIX=3
9922 fi
9923 if test x$LIB_MAN_DIR = x ; then
9924 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
9925 fi
9926
9927 if test x$FILE_MAN_SUFFIX = x ; then
9928 case $host_os in
9929 solaris*) FILE_MAN_SUFFIX=4 ;;
9930 *) FILE_MAN_SUFFIX=5 ;;
9931 esac
9932 fi
9933 if test x$FILE_MAN_DIR = x ; then
9934 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
9935 fi
9936
9937 if test x$MISC_MAN_SUFFIX = x ; then
9938 case $host_os in
9939 solaris*) MISC_MAN_SUFFIX=5 ;;
9940 *) MISC_MAN_SUFFIX=7 ;;
9941 esac
9942 fi
9943 if test x$MISC_MAN_DIR = x ; then
9944 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
9945 fi
9946
9947 if test x$DRIVER_MAN_SUFFIX = x ; then
9948 case $host_os in
9949 solaris*) DRIVER_MAN_SUFFIX=7 ;;
9950 *) DRIVER_MAN_SUFFIX=4 ;;
9951 esac
9952 fi
9953 if test x$DRIVER_MAN_DIR = x ; then
9954 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
9955 fi
9956
9957 if test x$ADMIN_MAN_SUFFIX = x ; then
9958 case $host_os in
9959 solaris*) ADMIN_MAN_SUFFIX=1m ;;
9960 *) ADMIN_MAN_SUFFIX=8 ;;
9961 esac
9962 fi
9963 if test x$ADMIN_MAN_DIR = x ; then
9964 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
9965 fi
9966
9967
9968
9969
9970
9971
9972
9973
9974
9975
9976
9977
9978
9979
9980
9981 XORG_MAN_PAGE="X Version 11"
9982
9983 MAN_SUBSTS="\
9984 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
9985 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
9986 -e 's|__xservername__|Xorg|g' \
9987 -e 's|__xconfigfile__|xorg.conf|g' \
9988 -e 's|__projectroot__|\$(prefix)|g' \
9989 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
9990 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
9991 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
9992 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
9993 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
9994 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
9995 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
9996
9997
9998
9999 # Check whether --enable-silent-rules was given.
10000 if test "${enable_silent_rules+set}" = set; then :
10001 enableval=$enable_silent_rules;
10002 fi
10003
10004 case $enable_silent_rules in
10005 yes) AM_DEFAULT_VERBOSITY=0;;
10006 no) AM_DEFAULT_VERBOSITY=1;;
10007 *) AM_DEFAULT_VERBOSITY=0;;
10008 esac
10009 am_make=${MAKE-make}
10010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
10011 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
10012 if ${am_cv_make_support_nested_variables+:} false; then :
10013 $as_echo_n "(cached) " >&6
10014 else
10015 if $as_echo 'TRUE=$(BAR$(V))
10016 BAR0=false
10017 BAR1=true
10018 V=1
10019 am__doit:
10020 @$(TRUE)
10021 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
10022 am_cv_make_support_nested_variables=yes
10023 else
10024 am_cv_make_support_nested_variables=no
10025 fi
10026 fi
10027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
10028 $as_echo "$am_cv_make_support_nested_variables" >&6; }
10029 if test $am_cv_make_support_nested_variables = yes; then
10030 AM_V='$(V)'
10031 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
10032 else
10033 AM_V=$AM_DEFAULT_VERBOSITY
10034 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
10035 fi
10036 AM_BACKSLASH='\'
10037
10038
10039
10040 ac_aux_dir=
10041 for ac_dir in . "$srcdir"/.; do
10042 if test -f "$ac_dir/install-sh"; then
10043 ac_aux_dir=$ac_dir
10044 ac_install_sh="$ac_aux_dir/install-sh -c"
10045 break
10046 elif test -f "$ac_dir/install.sh"; then
10047 ac_aux_dir=$ac_dir
10048 ac_install_sh="$ac_aux_dir/install.sh -c"
10049 break
10050 elif test -f "$ac_dir/shtool"; then
10051 ac_aux_dir=$ac_dir
10052 ac_install_sh="$ac_aux_dir/shtool install -c"
10053 break
10054 fi
10055 done
10056 if test -z "$ac_aux_dir"; then
10057 as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5
10058 fi
10059
10060 # These three variables are undocumented and unsupported,
10061 # and are intended to be withdrawn in a future Autoconf release.
10062 # They can cause serious problems if a builder's source tree is in a directory
10063 # whose full name contains unusual characters.
10064 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
10065 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
10066 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
10067
10068
10069
10070 # Initialize Automake
10071 am__api_version='1.11'
10072
10073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
10074 $as_echo_n "checking whether build environment is sane... " >&6; }
10075 # Just in case
10076 sleep 1
10077 echo timestamp > conftest.file
10078 # Reject unsafe characters in $srcdir or the absolute working directory
10079 # name. Accept space and tab only in the latter.
10080 am_lf='
10081 '
10082 case `pwd` in
10083 *[\\\"\#\$\&\'\`$am_lf]*)
10084 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
10085 esac
10086 case $srcdir in
10087 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
10088 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
10089 esac
10090
10091 # Do `set' in a subshell so we don't clobber the current shell's
10092 # arguments. Must try -L first in case configure is actually a
10093 # symlink; some systems play weird games with the mod time of symlinks
10094 # (eg FreeBSD returns the mod time of the symlink's containing
10095 # directory).
10096 if (
10097 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
10098 if test "$*" = "X"; then
10099 # -L didn't work.
10100 set X `ls -t "$srcdir/configure" conftest.file`
10101 fi
10102 rm -f conftest.file
10103 if test "$*" != "X $srcdir/configure conftest.file" \
10104 && test "$*" != "X conftest.file $srcdir/configure"; then
10105
10106 # If neither matched, then we have a broken ls. This can happen
10107 # if, for instance, CONFIG_SHELL is bash and it inherits a
10108 # broken ls alias from the environment. This has actually
10109 # happened. Such a system could not be considered "sane".
10110 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
10111 alias in your environment" "$LINENO" 5
10112 fi
10113
10114 test "$2" = conftest.file
10115 )
10116 then
10117 # Ok.
10118 :
10119 else
10120 as_fn_error $? "newly created file is older than distributed files!
10121 Check your system clock" "$LINENO" 5
10122 fi
10123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10124 $as_echo "yes" >&6; }
10125 test "$program_prefix" != NONE &&
10126 program_transform_name="s&^&$program_prefix&;$program_transform_name"
10127 # Use a double $ so make ignores it.
10128 test "$program_suffix" != NONE &&
10129 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
10130 # Double any \ or $.
10131 # By default was `s,x,x', remove it if useless.
10132 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
10133 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
10134
10135 # expand $ac_aux_dir to an absolute path
10136 am_aux_dir=`cd $ac_aux_dir && pwd`
10137
10138 if test x"${MISSING+set}" != xset; then
10139 case $am_aux_dir in
10140 *\ * | *\ *)
10141 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
10142 *)
10143 MISSING="\${SHELL} $am_aux_dir/missing" ;;
10144 esac
10145 fi
10146 # Use eval to expand $SHELL
10147 if eval "$MISSING --run true"; then
10148 am_missing_run="$MISSING --run "
10149 else
10150 am_missing_run=
10151 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
10152 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
10153 fi
10154
10155 if test x"${install_sh}" != xset; then
10156 case $am_aux_dir in
10157 *\ * | *\ *)
10158 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
10159 *)
10160 install_sh="\${SHELL} $am_aux_dir/install-sh"
10161 esac
10162 fi
10163
10164 # Installed binaries are usually stripped using `strip' when the user
10165 # run `make install-strip'. However `strip' might not be the right
10166 # tool to use in cross-compilation environments, therefore Automake
10167 # will honor the `STRIP' environment variable to overrule this program.
10168 if test "$cross_compiling" != no; then
10169 if test -n "$ac_tool_prefix"; then
10170 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
10171 set dummy ${ac_tool_prefix}strip; ac_word=$2
10172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10173 $as_echo_n "checking for $ac_word... " >&6; }
10174 if ${ac_cv_prog_STRIP+:} false; then :
10175 $as_echo_n "(cached) " >&6
10176 else
10177 if test -n "$STRIP"; then
10178 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
10179 else
10180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10181 for as_dir in $PATH
10182 do
10183 IFS=$as_save_IFS
10184 test -z "$as_dir" && as_dir=.
10185 for ac_exec_ext in '' $ac_executable_extensions; do
10186 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10187 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
10188 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10189 break 2
10190 fi
10191 done
10192 done
10193 IFS=$as_save_IFS
10194
10195 fi
10196 fi
10197 STRIP=$ac_cv_prog_STRIP
10198 if test -n "$STRIP"; then
10199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
10200 $as_echo "$STRIP" >&6; }
10201 else
10202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10203 $as_echo "no" >&6; }
10204 fi
10205
10206
10207 fi
10208 if test -z "$ac_cv_prog_STRIP"; then
10209 ac_ct_STRIP=$STRIP
10210 # Extract the first word of "strip", so it can be a program name with args.
10211 set dummy strip; ac_word=$2
10212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10213 $as_echo_n "checking for $ac_word... " >&6; }
10214 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
10215 $as_echo_n "(cached) " >&6
10216 else
10217 if test -n "$ac_ct_STRIP"; then
10218 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
10219 else
10220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10221 for as_dir in $PATH
10222 do
10223 IFS=$as_save_IFS
10224 test -z "$as_dir" && as_dir=.
10225 for ac_exec_ext in '' $ac_executable_extensions; do
10226 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10227 ac_cv_prog_ac_ct_STRIP="strip"
10228 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10229 break 2
10230 fi
10231 done
10232 done
10233 IFS=$as_save_IFS
10234
10235 fi
10236 fi
10237 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
10238 if test -n "$ac_ct_STRIP"; then
10239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
10240 $as_echo "$ac_ct_STRIP" >&6; }
10241 else
10242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10243 $as_echo "no" >&6; }
10244 fi
10245
10246 if test "x$ac_ct_STRIP" = x; then
10247 STRIP=":"
10248 else
10249 case $cross_compiling:$ac_tool_warned in
10250 yes:)
10251 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10252 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10253 ac_tool_warned=yes ;;
10254 esac
10255 STRIP=$ac_ct_STRIP
10256 fi
10257 else
10258 STRIP="$ac_cv_prog_STRIP"
10259 fi
10260
10261 fi
10262 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
10263
10264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
10265 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
10266 if test -z "$MKDIR_P"; then
10267 if ${ac_cv_path_mkdir+:} false; then :
10268 $as_echo_n "(cached) " >&6
10269 else
10270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10271 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
10272 do
10273 IFS=$as_save_IFS
10274 test -z "$as_dir" && as_dir=.
10275 for ac_prog in mkdir gmkdir; do
10276 for ac_exec_ext in '' $ac_executable_extensions; do
10277 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
10278 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
10279 'mkdir (GNU coreutils) '* | \
10280 'mkdir (coreutils) '* | \
10281 'mkdir (fileutils) '4.1*)
10282 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
10283 break 3;;
10284 esac
10285 done
10286 done
10287 done
10288 IFS=$as_save_IFS
10289
10290 fi
10291
10292 test -d ./--version && rmdir ./--version
10293 if test "${ac_cv_path_mkdir+set}" = set; then
10294 MKDIR_P="$ac_cv_path_mkdir -p"
10295 else
10296 # As a last resort, use the slow shell script. Don't cache a
10297 # value for MKDIR_P within a source directory, because that will
10298 # break other packages using the cache if that directory is
10299 # removed, or if the value is a relative name.
10300 MKDIR_P="$ac_install_sh -d"
10301 fi
10302 fi
10303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
10304 $as_echo "$MKDIR_P" >&6; }
10305
10306 mkdir_p="$MKDIR_P"
10307 case $mkdir_p in
10308 [\\/$]* | ?:[\\/]*) ;;
10309 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
10310 esac
10311
10312 for ac_prog in gawk mawk nawk awk
10313 do
10314 # Extract the first word of "$ac_prog", so it can be a program name with args.
10315 set dummy $ac_prog; ac_word=$2
10316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10317 $as_echo_n "checking for $ac_word... " >&6; }
10318 if ${ac_cv_prog_AWK+:} false; then :
10319 $as_echo_n "(cached) " >&6
10320 else
10321 if test -n "$AWK"; then
10322 ac_cv_prog_AWK="$AWK" # Let the user override the test.
10323 else
10324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10325 for as_dir in $PATH
10326 do
10327 IFS=$as_save_IFS
10328 test -z "$as_dir" && as_dir=.
10329 for ac_exec_ext in '' $ac_executable_extensions; do
10330 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10331 ac_cv_prog_AWK="$ac_prog"
10332 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10333 break 2
10334 fi
10335 done
10336 done
10337 IFS=$as_save_IFS
10338
10339 fi
10340 fi
10341 AWK=$ac_cv_prog_AWK
10342 if test -n "$AWK"; then
10343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
10344 $as_echo "$AWK" >&6; }
10345 else
10346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10347 $as_echo "no" >&6; }
10348 fi
10349
10350
10351 test -n "$AWK" && break
10352 done
10353
10354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
10355 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
10356 set x ${MAKE-make}
10357 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
10358 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
10359 $as_echo_n "(cached) " >&6
10360 else
10361 cat >conftest.make <<\_ACEOF
10362 SHELL = /bin/sh
10363 all:
10364 @echo '@@@%%%=$(MAKE)=@@@%%%'
10365 _ACEOF
10366 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
10367 case `${MAKE-make} -f conftest.make 2>/dev/null` in
10368 *@@@%%%=?*=@@@%%%*)
10369 eval ac_cv_prog_make_${ac_make}_set=yes;;
10370 *)
10371 eval ac_cv_prog_make_${ac_make}_set=no;;
10372 esac
10373 rm -f conftest.make
10374 fi
10375 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
10376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10377 $as_echo "yes" >&6; }
10378 SET_MAKE=
10379 else
10380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10381 $as_echo "no" >&6; }
10382 SET_MAKE="MAKE=${MAKE-make}"
10383 fi
10384
10385 rm -rf .tst 2>/dev/null
10386 mkdir .tst 2>/dev/null
10387 if test -d .tst; then
10388 am__leading_dot=.
10389 else
10390 am__leading_dot=_
10391 fi
10392 rmdir .tst 2>/dev/null
10393
10394 DEPDIR="${am__leading_dot}deps"
10395
10396 ac_config_commands="$ac_config_commands depfiles"
10397
10398
10399 am_make=${MAKE-make}
10400 cat > confinc << 'END'
10401 am__doit:
10402 @echo this is the am__doit target
10403 .PHONY: am__doit
10404 END
10405 # If we don't find an include directive, just comment out the code.
10406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
10407 $as_echo_n "checking for style of include used by $am_make... " >&6; }
10408 am__include="#"
10409 am__quote=
10410 _am_result=none
10411 # First try GNU make style include.
10412 echo "include confinc" > confmf
10413 # Ignore all kinds of additional output from `make'.
10414 case `$am_make -s -f confmf 2> /dev/null` in #(
10415 *the\ am__doit\ target*)
10416 am__include=include
10417 am__quote=
10418 _am_result=GNU
10419 ;;
10420 esac
10421 # Now try BSD make style include.
10422 if test "$am__include" = "#"; then
10423 echo '.include "confinc"' > confmf
10424 case `$am_make -s -f confmf 2> /dev/null` in #(
10425 *the\ am__doit\ target*)
10426 am__include=.include
10427 am__quote="\""
10428 _am_result=BSD
10429 ;;
10430 esac
10431 fi
10432
10433
10434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
10435 $as_echo "$_am_result" >&6; }
10436 rm -f confinc confmf
10437
10438 # Check whether --enable-dependency-tracking was given.
10439 if test "${enable_dependency_tracking+set}" = set; then :
10440 enableval=$enable_dependency_tracking;
10441 fi
10442
10443 if test "x$enable_dependency_tracking" != xno; then
10444 am_depcomp="$ac_aux_dir/depcomp"
10445 AMDEPBACKSLASH='\'
10446 am__nodep='_no'
10447 fi
10448 if test "x$enable_dependency_tracking" != xno; then
10449 AMDEP_TRUE=
10450 AMDEP_FALSE='#'
10451 else
10452 AMDEP_TRUE='#'
10453 AMDEP_FALSE=
10454 fi
10455
10456
10457 if test "`cd $srcdir && pwd`" != "`pwd`"; then
10458 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
10459 # is not polluted with repeated "-I."
10460 am__isrc=' -I$(srcdir)'
10461 # test to see if srcdir already configured
10462 if test -f $srcdir/config.status; then
10463 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
10464 fi
10465 fi
10466
10467 # test whether we have cygpath
10468 if test -z "$CYGPATH_W"; then
10469 if (cygpath --version) >/dev/null 2>/dev/null; then
10470 CYGPATH_W='cygpath -w'
10471 else
10472 CYGPATH_W=echo
10473 fi
10474 fi
10475
10476
10477 # Define the identity of the package.
10478 PACKAGE='xf86-video-mga'
10479 VERSION='1.6.2'
10480
10481
10482 cat >>confdefs.h <<_ACEOF
10483 #define PACKAGE "$PACKAGE"
10484 _ACEOF
10485
10486
10487 cat >>confdefs.h <<_ACEOF
10488 #define VERSION "$VERSION"
10489 _ACEOF
10490
10491 # Some tools Automake needs.
10492
10493 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
10494
10495
10496 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
10497
10498
10499 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
10500
10501
10502 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
10503
10504
10505 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
10506
10507 # We need awk for the "check" target. The system "awk" is bad on
10508 # some platforms.
10509 # Always define AMTAR for backward compatibility. Yes, it's still used
10510 # in the wild :-( We should find a proper way to deprecate it ...
10511 AMTAR='$${TAR-tar}'
10512
10513 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
10514
10515
10516
10517
10518 depcc="$CC" am_compiler_list=
10519
10520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
10521 $as_echo_n "checking dependency style of $depcc... " >&6; }
10522 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
10523 $as_echo_n "(cached) " >&6
10524 else
10525 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
10526 # We make a subdir and do the tests there. Otherwise we can end up
10527 # making bogus files that we don't know about and never remove. For
10528 # instance it was reported that on HP-UX the gcc test will end up
10529 # making a dummy file named `D' -- because `-MD' means `put the output
10530 # in D'.
10531 rm -rf conftest.dir
10532 mkdir conftest.dir
10533 # Copy depcomp to subdir because otherwise we won't find it if we're
10534 # using a relative directory.
10535 cp "$am_depcomp" conftest.dir
10536 cd conftest.dir
10537 # We will build objects and dependencies in a subdirectory because
10538 # it helps to detect inapplicable dependency modes. For instance
10539 # both Tru64's cc and ICC support -MD to output dependencies as a
10540 # side effect of compilation, but ICC will put the dependencies in
10541 # the current directory while Tru64 will put them in the object
10542 # directory.
10543 mkdir sub
10544
10545 am_cv_CC_dependencies_compiler_type=none
10546 if test "$am_compiler_list" = ""; then
10547 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
10548 fi
10549 am__universal=false
10550 case " $depcc " in #(
10551 *\ -arch\ *\ -arch\ *) am__universal=true ;;
10552 esac
10553
10554 for depmode in $am_compiler_list; do
10555 # Setup a source with many dependencies, because some compilers
10556 # like to wrap large dependency lists on column 80 (with \), and
10557 # we should not choose a depcomp mode which is confused by this.
10558 #
10559 # We need to recreate these files for each test, as the compiler may
10560 # overwrite some of them when testing with obscure command lines.
10561 # This happens at least with the AIX C compiler.
10562 : > sub/conftest.c
10563 for i in 1 2 3 4 5 6; do
10564 echo '#include "conftst'$i'.h"' >> sub/conftest.c
10565 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
10566 # Solaris 8's {/usr,}/bin/sh.
10567 touch sub/conftst$i.h
10568 done
10569 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
10570
10571 # We check with `-c' and `-o' for the sake of the "dashmstdout"
10572 # mode. It turns out that the SunPro C++ compiler does not properly
10573 # handle `-M -o', and we need to detect this. Also, some Intel
10574 # versions had trouble with output in subdirs
10575 am__obj=sub/conftest.${OBJEXT-o}
10576 am__minus_obj="-o $am__obj"
10577 case $depmode in
10578 gcc)
10579 # This depmode causes a compiler race in universal mode.
10580 test "$am__universal" = false || continue
10581 ;;
10582 nosideeffect)
10583 # after this tag, mechanisms are not by side-effect, so they'll
10584 # only be used when explicitly requested
10585 if test "x$enable_dependency_tracking" = xyes; then
10586 continue
10587 else
10588 break
10589 fi
10590 ;;
10591 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
10592 # This compiler won't grok `-c -o', but also, the minuso test has
10593 # not run yet. These depmodes are late enough in the game, and
10594 # so weak that their functioning should not be impacted.
10595 am__obj=conftest.${OBJEXT-o}
10596 am__minus_obj=
10597 ;;
10598 none) break ;;
10599 esac
10600 if depmode=$depmode \
10601 source=sub/conftest.c object=$am__obj \
10602 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
10603 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
10604 >/dev/null 2>conftest.err &&
10605 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
10606 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
10607 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
10608 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
10609 # icc doesn't choke on unknown options, it will just issue warnings
10610 # or remarks (even with -Werror). So we grep stderr for any message
10611 # that says an option was ignored or not supported.
10612 # When given -MP, icc 7.0 and 7.1 complain thusly:
10613 # icc: Command line warning: ignoring option '-M'; no argument required
10614 # The diagnosis changed in icc 8.0:
10615 # icc: Command line remark: option '-MP' not supported
10616 if (grep 'ignoring option' conftest.err ||
10617 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
10618 am_cv_CC_dependencies_compiler_type=$depmode
10619 break
10620 fi
10621 fi
10622 done
10623
10624 cd ..
10625 rm -rf conftest.dir
10626 else
10627 am_cv_CC_dependencies_compiler_type=none
10628 fi
10629
10630 fi
10631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
10632 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
10633 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
10634
10635 if
10636 test "x$enable_dependency_tracking" != xno \
10637 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
10638 am__fastdepCC_TRUE=
10639 am__fastdepCC_FALSE='#'
10640 else
10641 am__fastdepCC_TRUE='#'
10642 am__fastdepCC_FALSE=
10643 fi
10644
10645
10646
10647
10648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
10649 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
10650 # Check whether --enable-maintainer-mode was given.
10651 if test "${enable_maintainer_mode+set}" = set; then :
10652 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
10653 else
10654 USE_MAINTAINER_MODE=no
10655 fi
10656
10657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
10658 $as_echo "$USE_MAINTAINER_MODE" >&6; }
10659 if test $USE_MAINTAINER_MODE = yes; then
10660 MAINTAINER_MODE_TRUE=
10661 MAINTAINER_MODE_FALSE='#'
10662 else
10663 MAINTAINER_MODE_TRUE='#'
10664 MAINTAINER_MODE_FALSE=
10665 fi
10666
10667 MAINT=$MAINTAINER_MODE_TRUE
10668
10669
10670
10671 # Initialize libtool
10672 # Check whether --enable-static was given.
10673 if test "${enable_static+set}" = set; then :
10674 enableval=$enable_static; p=${PACKAGE-default}
10675 case $enableval in
10676 yes) enable_static=yes ;;
10677 no) enable_static=no ;;
10678 *)
10679 enable_static=no
10680 # Look at the argument we got. We use all the common list separators.
10681 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10682 for pkg in $enableval; do
10683 IFS="$lt_save_ifs"
10684 if test "X$pkg" = "X$p"; then
10685 enable_static=yes
10686 fi
10687 done
10688 IFS="$lt_save_ifs"
10689 ;;
10690 esac
10691 else
10692 enable_static=no
10693 fi
10694
10695
10696
10697
10698
10699
10700
10701
10702
10703 case `pwd` in
10704 *\ * | *\ *)
10705 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
10706 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
10707 esac
10708
10709
10710
10711 macro_version='2.4.2'
10712 macro_revision='1.3337'
10713
10714
10715
10716
10717
10718
10719
10720
10721
10722
10723
10724
10725
10726 ltmain="$ac_aux_dir/ltmain.sh"
10727
10728 # Backslashify metacharacters that are still active within
10729 # double-quoted strings.
10730 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
10731
10732 # Same as above, but do not quote variable references.
10733 double_quote_subst='s/\(["`\\]\)/\\\1/g'
10734
10735 # Sed substitution to delay expansion of an escaped shell variable in a
10736 # double_quote_subst'ed string.
10737 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
10738
10739 # Sed substitution to delay expansion of an escaped single quote.
10740 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
10741
10742 # Sed substitution to avoid accidental globbing in evaled expressions
10743 no_glob_subst='s/\*/\\\*/g'
10744
10745 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
10746 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
10747 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
10748
10749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
10750 $as_echo_n "checking how to print strings... " >&6; }
10751 # Test print first, because it will be a builtin if present.
10752 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
10753 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
10754 ECHO='print -r --'
10755 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
10756 ECHO='printf %s\n'
10757 else
10758 # Use this function as a fallback that always works.
10759 func_fallback_echo ()
10760 {
10761 eval 'cat <<_LTECHO_EOF
10762 $1
10763 _LTECHO_EOF'
10764 }
10765 ECHO='func_fallback_echo'
10766 fi
10767
10768 # func_echo_all arg...
10769 # Invoke $ECHO with all args, space-separated.
10770 func_echo_all ()
10771 {
10772 $ECHO ""
10773 }
10774
10775 case "$ECHO" in
10776 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
10777 $as_echo "printf" >&6; } ;;
10778 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
10779 $as_echo "print -r" >&6; } ;;
10780 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
10781 $as_echo "cat" >&6; } ;;
10782 esac
10783
10784
10785
10786
10787
10788
10789
10790
10791
10792
10793
10794
10795
10796
10797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
10798 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
10799 if ${ac_cv_path_SED+:} false; then :
10800 $as_echo_n "(cached) " >&6
10801 else
10802 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
10803 for ac_i in 1 2 3 4 5 6 7; do
10804 ac_script="$ac_script$as_nl$ac_script"
10805 done
10806 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
10807 { ac_script=; unset ac_script;}
10808 if test -z "$SED"; then
10809 ac_path_SED_found=false
10810 # Loop through the user's path and test for each of PROGNAME-LIST
10811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10812 for as_dir in $PATH
10813 do
10814 IFS=$as_save_IFS
10815 test -z "$as_dir" && as_dir=.
10816 for ac_prog in sed gsed; do
10817 for ac_exec_ext in '' $ac_executable_extensions; do
10818 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
10819 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
10820 # Check for GNU ac_path_SED and select it if it is found.
10821 # Check for GNU $ac_path_SED
10822 case `"$ac_path_SED" --version 2>&1` in
10823 *GNU*)
10824 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
10825 *)
10826 ac_count=0
10827 $as_echo_n 0123456789 >"conftest.in"
10828 while :
10829 do
10830 cat "conftest.in" "conftest.in" >"conftest.tmp"
10831 mv "conftest.tmp" "conftest.in"
10832 cp "conftest.in" "conftest.nl"
10833 $as_echo '' >> "conftest.nl"
10834 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
10835 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
10836 as_fn_arith $ac_count + 1 && ac_count=$as_val
10837 if test $ac_count -gt ${ac_path_SED_max-0}; then
10838 # Best one so far, save it but keep looking for a better one
10839 ac_cv_path_SED="$ac_path_SED"
10840 ac_path_SED_max=$ac_count
10841 fi
10842 # 10*(2^10) chars as input seems more than enough
10843 test $ac_count -gt 10 && break
10844 done
10845 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
10846 esac
10847
10848 $ac_path_SED_found && break 3
10849 done
10850 done
10851 done
10852 IFS=$as_save_IFS
10853 if test -z "$ac_cv_path_SED"; then
10854 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
10855 fi
10856 else
10857 ac_cv_path_SED=$SED
10858 fi
10859
10860 fi
10861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
10862 $as_echo "$ac_cv_path_SED" >&6; }
10863 SED="$ac_cv_path_SED"
10864 rm -f conftest.sed
10865
10866 test -z "$SED" && SED=sed
10867 Xsed="$SED -e 1s/^X//"
10868
10869
10870
10871
10872
10873
10874
10875
10876
10877
10878
10879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
10880 $as_echo_n "checking for fgrep... " >&6; }
10881 if ${ac_cv_path_FGREP+:} false; then :
10882 $as_echo_n "(cached) " >&6
10883 else
10884 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
10885 then ac_cv_path_FGREP="$GREP -F"
10886 else
10887 if test -z "$FGREP"; then
10888 ac_path_FGREP_found=false
10889 # Loop through the user's path and test for each of PROGNAME-LIST
10890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10891 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
10892 do
10893 IFS=$as_save_IFS
10894 test -z "$as_dir" && as_dir=.
10895 for ac_prog in fgrep; do
10896 for ac_exec_ext in '' $ac_executable_extensions; do
10897 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
10898 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
10899 # Check for GNU ac_path_FGREP and select it if it is found.
10900 # Check for GNU $ac_path_FGREP
10901 case `"$ac_path_FGREP" --version 2>&1` in
10902 *GNU*)
10903 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
10904 *)
10905 ac_count=0
10906 $as_echo_n 0123456789 >"conftest.in"
10907 while :
10908 do
10909 cat "conftest.in" "conftest.in" >"conftest.tmp"
10910 mv "conftest.tmp" "conftest.in"
10911 cp "conftest.in" "conftest.nl"
10912 $as_echo 'FGREP' >> "conftest.nl"
10913 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
10914 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
10915 as_fn_arith $ac_count + 1 && ac_count=$as_val
10916 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
10917 # Best one so far, save it but keep looking for a better one
10918 ac_cv_path_FGREP="$ac_path_FGREP"
10919 ac_path_FGREP_max=$ac_count
10920 fi
10921 # 10*(2^10) chars as input seems more than enough
10922 test $ac_count -gt 10 && break
10923 done
10924 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
10925 esac
10926
10927 $ac_path_FGREP_found && break 3
10928 done
10929 done
10930 done
10931 IFS=$as_save_IFS
10932 if test -z "$ac_cv_path_FGREP"; then
10933 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
10934 fi
10935 else
10936 ac_cv_path_FGREP=$FGREP
10937 fi
10938
10939 fi
10940 fi
10941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
10942 $as_echo "$ac_cv_path_FGREP" >&6; }
10943 FGREP="$ac_cv_path_FGREP"
10944
10945
10946 test -z "$GREP" && GREP=grep
10947
10948
10949
10950
10951
10952
10953
10954
10955
10956
10957
10958
10959
10960
10961
10962
10963
10964
10965
10966 # Check whether --with-gnu-ld was given.
10967 if test "${with_gnu_ld+set}" = set; then :
10968 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10969 else
10970 with_gnu_ld=no
10971 fi
10972
10973 ac_prog=ld
10974 if test "$GCC" = yes; then
10975 # Check if gcc -print-prog-name=ld gives a path.
10976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
10977 $as_echo_n "checking for ld used by $CC... " >&6; }
10978 case $host in
10979 *-*-mingw*)
10980 # gcc leaves a trailing carriage return which upsets mingw
10981 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10982 *)
10983 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10984 esac
10985 case $ac_prog in
10986 # Accept absolute paths.
10987 [\\/]* | ?:[\\/]*)
10988 re_direlt='/[^/][^/]*/\.\./'
10989 # Canonicalize the pathname of ld
10990 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
10991 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
10992 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
10993 done
10994 test -z "$LD" && LD="$ac_prog"
10995 ;;
10996 "")
10997 # If it fails, then pretend we aren't using GCC.
10998 ac_prog=ld
10999 ;;
11000 *)
11001 # If it is relative, then search for the first ld in PATH.
11002 with_gnu_ld=unknown
11003 ;;
11004 esac
11005 elif test "$with_gnu_ld" = yes; then
11006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11007 $as_echo_n "checking for GNU ld... " >&6; }
11008 else
11009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11010 $as_echo_n "checking for non-GNU ld... " >&6; }
11011 fi
11012 if ${lt_cv_path_LD+:} false; then :
11013 $as_echo_n "(cached) " >&6
11014 else
11015 if test -z "$LD"; then
11016 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11017 for ac_dir in $PATH; do
11018 IFS="$lt_save_ifs"
11019 test -z "$ac_dir" && ac_dir=.
11020 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11021 lt_cv_path_LD="$ac_dir/$ac_prog"
11022 # Check to see if the program is GNU ld. I'd rather use --version,
11023 # but apparently some variants of GNU ld only accept -v.
11024 # Break only if it was the GNU/non-GNU ld that we prefer.
11025 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11026 *GNU* | *'with BFD'*)
11027 test "$with_gnu_ld" != no && break
11028 ;;
11029 *)
11030 test "$with_gnu_ld" != yes && break
11031 ;;
11032 esac
11033 fi
11034 done
11035 IFS="$lt_save_ifs"
11036 else
11037 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11038 fi
11039 fi
11040
11041 LD="$lt_cv_path_LD"
11042 if test -n "$LD"; then
11043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11044 $as_echo "$LD" >&6; }
11045 else
11046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11047 $as_echo "no" >&6; }
11048 fi
11049 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
11050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11051 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11052 if ${lt_cv_prog_gnu_ld+:} false; then :
11053 $as_echo_n "(cached) " >&6
11054 else
11055 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11056 case `$LD -v 2>&1 </dev/null` in
11057 *GNU* | *'with BFD'*)
11058 lt_cv_prog_gnu_ld=yes
11059 ;;
11060 *)
11061 lt_cv_prog_gnu_ld=no
11062 ;;
11063 esac
11064 fi
11065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
11066 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
11067 with_gnu_ld=$lt_cv_prog_gnu_ld
11068
11069
11070
11071
11072
11073
11074
11075
11076
11077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
11078 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
11079 if ${lt_cv_path_NM+:} false; then :
11080 $as_echo_n "(cached) " >&6
11081 else
11082 if test -n "$NM"; then
11083 # Let the user override the test.
11084 lt_cv_path_NM="$NM"
11085 else
11086 lt_nm_to_check="${ac_tool_prefix}nm"
11087 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
11088 lt_nm_to_check="$lt_nm_to_check nm"
11089 fi
11090 for lt_tmp_nm in $lt_nm_to_check; do
11091 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11092 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
11093 IFS="$lt_save_ifs"
11094 test -z "$ac_dir" && ac_dir=.
11095 tmp_nm="$ac_dir/$lt_tmp_nm"
11096 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
11097 # Check to see if the nm accepts a BSD-compat flag.
11098 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
11099 # nm: unknown option "B" ignored
11100 # Tru64's nm complains that /dev/null is an invalid object file
11101 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
11102 */dev/null* | *'Invalid file or object type'*)
11103 lt_cv_path_NM="$tmp_nm -B"
11104 break
11105 ;;
11106 *)
11107 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
11108 */dev/null*)
11109 lt_cv_path_NM="$tmp_nm -p"
11110 break
11111 ;;
11112 *)
11113 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
11114 continue # so that we can try to find one that supports BSD flags
11115 ;;
11116 esac
11117 ;;
11118 esac
11119 fi
11120 done
11121 IFS="$lt_save_ifs"
11122 done
11123 : ${lt_cv_path_NM=no}
11124 fi
11125 fi
11126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
11127 $as_echo "$lt_cv_path_NM" >&6; }
11128 if test "$lt_cv_path_NM" != "no"; then
11129 NM="$lt_cv_path_NM"
11130 else
11131 # Didn't find any BSD compatible name lister, look for dumpbin.
11132 if test -n "$DUMPBIN"; then :
11133 # Let the user override the test.
11134 else
11135 if test -n "$ac_tool_prefix"; then
11136 for ac_prog in dumpbin "link -dump"
11137 do
11138 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11139 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11141 $as_echo_n "checking for $ac_word... " >&6; }
11142 if ${ac_cv_prog_DUMPBIN+:} false; then :
11143 $as_echo_n "(cached) " >&6
11144 else
11145 if test -n "$DUMPBIN"; then
11146 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
11147 else
11148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11149 for as_dir in $PATH
11150 do
11151 IFS=$as_save_IFS
11152 test -z "$as_dir" && as_dir=.
11153 for ac_exec_ext in '' $ac_executable_extensions; do
11154 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11155 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
11156 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11157 break 2
11158 fi
11159 done
11160 done
11161 IFS=$as_save_IFS
11162
11163 fi
11164 fi
11165 DUMPBIN=$ac_cv_prog_DUMPBIN
11166 if test -n "$DUMPBIN"; then
11167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
11168 $as_echo "$DUMPBIN" >&6; }
11169 else
11170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11171 $as_echo "no" >&6; }
11172 fi
11173
11174
11175 test -n "$DUMPBIN" && break
11176 done
11177 fi
11178 if test -z "$DUMPBIN"; then
11179 ac_ct_DUMPBIN=$DUMPBIN
11180 for ac_prog in dumpbin "link -dump"
11181 do
11182 # Extract the first word of "$ac_prog", so it can be a program name with args.
11183 set dummy $ac_prog; ac_word=$2
11184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11185 $as_echo_n "checking for $ac_word... " >&6; }
11186 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
11187 $as_echo_n "(cached) " >&6
11188 else
11189 if test -n "$ac_ct_DUMPBIN"; then
11190 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
11191 else
11192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11193 for as_dir in $PATH
11194 do
11195 IFS=$as_save_IFS
11196 test -z "$as_dir" && as_dir=.
11197 for ac_exec_ext in '' $ac_executable_extensions; do
11198 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11199 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
11200 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11201 break 2
11202 fi
11203 done
11204 done
11205 IFS=$as_save_IFS
11206
11207 fi
11208 fi
11209 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
11210 if test -n "$ac_ct_DUMPBIN"; then
11211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
11212 $as_echo "$ac_ct_DUMPBIN" >&6; }
11213 else
11214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11215 $as_echo "no" >&6; }
11216 fi
11217
11218
11219 test -n "$ac_ct_DUMPBIN" && break
11220 done
11221
11222 if test "x$ac_ct_DUMPBIN" = x; then
11223 DUMPBIN=":"
11224 else
11225 case $cross_compiling:$ac_tool_warned in
11226 yes:)
11227 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11228 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11229 ac_tool_warned=yes ;;
11230 esac
11231 DUMPBIN=$ac_ct_DUMPBIN
11232 fi
11233 fi
11234
11235 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
11236 *COFF*)
11237 DUMPBIN="$DUMPBIN -symbols"
11238 ;;
11239 *)
11240 DUMPBIN=:
11241 ;;
11242 esac
11243 fi
11244
11245 if test "$DUMPBIN" != ":"; then
11246 NM="$DUMPBIN"
11247 fi
11248 fi
11249 test -z "$NM" && NM=nm
11250
11251
11252
11253
11254
11255
11256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
11257 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
11258 if ${lt_cv_nm_interface+:} false; then :
11259 $as_echo_n "(cached) " >&6
11260 else
11261 lt_cv_nm_interface="BSD nm"
11262 echo "int some_variable = 0;" > conftest.$ac_ext
11263 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
11264 (eval "$ac_compile" 2>conftest.err)
11265 cat conftest.err >&5
11266 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
11267 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
11268 cat conftest.err >&5
11269 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
11270 cat conftest.out >&5
11271 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
11272 lt_cv_nm_interface="MS dumpbin"
11273 fi
11274 rm -f conftest*
11275 fi
11276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
11277 $as_echo "$lt_cv_nm_interface" >&6; }
11278
11279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
11280 $as_echo_n "checking whether ln -s works... " >&6; }
11281 LN_S=$as_ln_s
11282 if test "$LN_S" = "ln -s"; then
11283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11284 $as_echo "yes" >&6; }
11285 else
11286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
11287 $as_echo "no, using $LN_S" >&6; }
11288 fi
11289
11290 # find the maximum length of command line arguments
11291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
11292 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
11293 if ${lt_cv_sys_max_cmd_len+:} false; then :
11294 $as_echo_n "(cached) " >&6
11295 else
11296 i=0
11297 teststring="ABCD"
11298
11299 case $build_os in
11300 msdosdjgpp*)
11301 # On DJGPP, this test can blow up pretty badly due to problems in libc
11302 # (any single argument exceeding 2000 bytes causes a buffer overrun
11303 # during glob expansion). Even if it were fixed, the result of this
11304 # check would be larger than it should be.
11305 lt_cv_sys_max_cmd_len=12288; # 12K is about right
11306 ;;
11307
11308 gnu*)
11309 # Under GNU Hurd, this test is not required because there is
11310 # no limit to the length of command line arguments.
11311 # Libtool will interpret -1 as no limit whatsoever
11312 lt_cv_sys_max_cmd_len=-1;
11313 ;;
11314
11315 cygwin* | mingw* | cegcc*)
11316 # On Win9x/ME, this test blows up -- it succeeds, but takes
11317 # about 5 minutes as the teststring grows exponentially.
11318 # Worse, since 9x/ME are not pre-emptively multitasking,
11319 # you end up with a "frozen" computer, even though with patience
11320 # the test eventually succeeds (with a max line length of 256k).
11321 # Instead, let's just punt: use the minimum linelength reported by
11322 # all of the supported platforms: 8192 (on NT/2K/XP).
11323 lt_cv_sys_max_cmd_len=8192;
11324 ;;
11325
11326 mint*)
11327 # On MiNT this can take a long time and run out of memory.
11328 lt_cv_sys_max_cmd_len=8192;
11329 ;;
11330
11331 amigaos*)
11332 # On AmigaOS with pdksh, this test takes hours, literally.
11333 # So we just punt and use a minimum line length of 8192.
11334 lt_cv_sys_max_cmd_len=8192;
11335 ;;
11336
11337 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
11338 # This has been around since 386BSD, at least. Likely further.
11339 if test -x /sbin/sysctl; then
11340 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
11341 elif test -x /usr/sbin/sysctl; then
11342 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
11343 else
11344 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
11345 fi
11346 # And add a safety zone
11347 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11348 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11349 ;;
11350
11351 interix*)
11352 # We know the value 262144 and hardcode it with a safety zone (like BSD)
11353 lt_cv_sys_max_cmd_len=196608
11354 ;;
11355
11356 os2*)
11357 # The test takes a long time on OS/2.
11358 lt_cv_sys_max_cmd_len=8192
11359 ;;
11360
11361 osf*)
11362 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
11363 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
11364 # nice to cause kernel panics so lets avoid the loop below.
11365 # First set a reasonable default.
11366 lt_cv_sys_max_cmd_len=16384
11367 #
11368 if test -x /sbin/sysconfig; then
11369 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
11370 *1*) lt_cv_sys_max_cmd_len=-1 ;;
11371 esac
11372 fi
11373 ;;
11374 sco3.2v5*)
11375 lt_cv_sys_max_cmd_len=102400
11376 ;;
11377 sysv5* | sco5v6* | sysv4.2uw2*)
11378 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
11379 if test -n "$kargmax"; then
11380 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
11381 else
11382 lt_cv_sys_max_cmd_len=32768
11383 fi
11384 ;;
11385 *)
11386 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
11387 if test -n "$lt_cv_sys_max_cmd_len"; then
11388 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11389 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11390 else
11391 # Make teststring a little bigger before we do anything with it.
11392 # a 1K string should be a reasonable start.
11393 for i in 1 2 3 4 5 6 7 8 ; do
11394 teststring=$teststring$teststring
11395 done
11396 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
11397 # If test is not a shell built-in, we'll probably end up computing a
11398 # maximum length that is only half of the actual maximum length, but
11399 # we can't tell.
11400 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
11401 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
11402 test $i != 17 # 1/2 MB should be enough
11403 do
11404 i=`expr $i + 1`
11405 teststring=$teststring$teststring
11406 done
11407 # Only check the string length outside the loop.
11408 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
11409 teststring=
11410 # Add a significant safety factor because C++ compilers can tack on
11411 # massive amounts of additional arguments before passing them to the
11412 # linker. It appears as though 1/2 is a usable value.
11413 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
11414 fi
11415 ;;
11416 esac
11417
11418 fi
11419
11420 if test -n $lt_cv_sys_max_cmd_len ; then
11421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
11422 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
11423 else
11424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
11425 $as_echo "none" >&6; }
11426 fi
11427 max_cmd_len=$lt_cv_sys_max_cmd_len
11428
11429
11430
11431
11432
11433
11434 : ${CP="cp -f"}
11435 : ${MV="mv -f"}
11436 : ${RM="rm -f"}
11437
11438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
11439 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
11440 # Try some XSI features
11441 xsi_shell=no
11442 ( _lt_dummy="a/b/c"
11443 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
11444 = c,a/b,b/c, \
11445 && eval 'test $(( 1 + 1 )) -eq 2 \
11446 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
11447 && xsi_shell=yes
11448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
11449 $as_echo "$xsi_shell" >&6; }
11450
11451
11452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
11453 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
11454 lt_shell_append=no
11455 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
11456 >/dev/null 2>&1 \
11457 && lt_shell_append=yes
11458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
11459 $as_echo "$lt_shell_append" >&6; }
11460
11461
11462 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11463 lt_unset=unset
11464 else
11465 lt_unset=false
11466 fi
11467
11468
11469
11470
11471
11472 # test EBCDIC or ASCII
11473 case `echo X|tr X '\101'` in
11474 A) # ASCII based system
11475 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
11476 lt_SP2NL='tr \040 \012'
11477 lt_NL2SP='tr \015\012 \040\040'
11478 ;;
11479 *) # EBCDIC based system
11480 lt_SP2NL='tr \100 \n'
11481 lt_NL2SP='tr \r\n \100\100'
11482 ;;
11483 esac
11484
11485
11486
11487
11488
11489
11490
11491
11492
11493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
11494 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
11495 if ${lt_cv_to_host_file_cmd+:} false; then :
11496 $as_echo_n "(cached) " >&6
11497 else
11498 case $host in
11499 *-*-mingw* )
11500 case $build in
11501 *-*-mingw* ) # actually msys
11502 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
11503 ;;
11504 *-*-cygwin* )
11505 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
11506 ;;
11507 * ) # otherwise, assume *nix
11508 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
11509 ;;
11510 esac
11511 ;;
11512 *-*-cygwin* )
11513 case $build in
11514 *-*-mingw* ) # actually msys
11515 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
11516 ;;
11517 *-*-cygwin* )
11518 lt_cv_to_host_file_cmd=func_convert_file_noop
11519 ;;
11520 * ) # otherwise, assume *nix
11521 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
11522 ;;
11523 esac
11524 ;;
11525 * ) # unhandled hosts (and "normal" native builds)
11526 lt_cv_to_host_file_cmd=func_convert_file_noop
11527 ;;
11528 esac
11529
11530 fi
11531
11532 to_host_file_cmd=$lt_cv_to_host_file_cmd
11533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
11534 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
11535
11536
11537
11538
11539
11540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
11541 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
11542 if ${lt_cv_to_tool_file_cmd+:} false; then :
11543 $as_echo_n "(cached) " >&6
11544 else
11545 #assume ordinary cross tools, or native build.
11546 lt_cv_to_tool_file_cmd=func_convert_file_noop
11547 case $host in
11548 *-*-mingw* )
11549 case $build in
11550 *-*-mingw* ) # actually msys
11551 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
11552 ;;
11553 esac
11554 ;;
11555 esac
11556
11557 fi
11558
11559 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
11560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
11561 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
11562
11563
11564
11565
11566
11567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
11568 $as_echo_n "checking for $LD option to reload object files... " >&6; }
11569 if ${lt_cv_ld_reload_flag+:} false; then :
11570 $as_echo_n "(cached) " >&6
11571 else
11572 lt_cv_ld_reload_flag='-r'
11573 fi
11574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
11575 $as_echo "$lt_cv_ld_reload_flag" >&6; }
11576 reload_flag=$lt_cv_ld_reload_flag
11577 case $reload_flag in
11578 "" | " "*) ;;
11579 *) reload_flag=" $reload_flag" ;;
11580 esac
11581 reload_cmds='$LD$reload_flag -o $output$reload_objs'
11582 case $host_os in
11583 cygwin* | mingw* | pw32* | cegcc*)
11584 if test "$GCC" != yes; then
11585 reload_cmds=false
11586 fi
11587 ;;
11588 darwin*)
11589 if test "$GCC" = yes; then
11590 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
11591 else
11592 reload_cmds='$LD$reload_flag -o $output$reload_objs'
11593 fi
11594 ;;
11595 esac
11596
11597
11598
11599
11600
11601
11602
11603
11604
11605 if test -n "$ac_tool_prefix"; then
11606 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
11607 set dummy ${ac_tool_prefix}objdump; ac_word=$2
11608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11609 $as_echo_n "checking for $ac_word... " >&6; }
11610 if ${ac_cv_prog_OBJDUMP+:} false; then :
11611 $as_echo_n "(cached) " >&6
11612 else
11613 if test -n "$OBJDUMP"; then
11614 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
11615 else
11616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11617 for as_dir in $PATH
11618 do
11619 IFS=$as_save_IFS
11620 test -z "$as_dir" && as_dir=.
11621 for ac_exec_ext in '' $ac_executable_extensions; do
11622 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11623 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
11624 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11625 break 2
11626 fi
11627 done
11628 done
11629 IFS=$as_save_IFS
11630
11631 fi
11632 fi
11633 OBJDUMP=$ac_cv_prog_OBJDUMP
11634 if test -n "$OBJDUMP"; then
11635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
11636 $as_echo "$OBJDUMP" >&6; }
11637 else
11638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11639 $as_echo "no" >&6; }
11640 fi
11641
11642
11643 fi
11644 if test -z "$ac_cv_prog_OBJDUMP"; then
11645 ac_ct_OBJDUMP=$OBJDUMP
11646 # Extract the first word of "objdump", so it can be a program name with args.
11647 set dummy objdump; ac_word=$2
11648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11649 $as_echo_n "checking for $ac_word... " >&6; }
11650 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
11651 $as_echo_n "(cached) " >&6
11652 else
11653 if test -n "$ac_ct_OBJDUMP"; then
11654 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
11655 else
11656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11657 for as_dir in $PATH
11658 do
11659 IFS=$as_save_IFS
11660 test -z "$as_dir" && as_dir=.
11661 for ac_exec_ext in '' $ac_executable_extensions; do
11662 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11663 ac_cv_prog_ac_ct_OBJDUMP="objdump"
11664 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11665 break 2
11666 fi
11667 done
11668 done
11669 IFS=$as_save_IFS
11670
11671 fi
11672 fi
11673 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11674 if test -n "$ac_ct_OBJDUMP"; then
11675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
11676 $as_echo "$ac_ct_OBJDUMP" >&6; }
11677 else
11678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11679 $as_echo "no" >&6; }
11680 fi
11681
11682 if test "x$ac_ct_OBJDUMP" = x; then
11683 OBJDUMP="false"
11684 else
11685 case $cross_compiling:$ac_tool_warned in
11686 yes:)
11687 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11688 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11689 ac_tool_warned=yes ;;
11690 esac
11691 OBJDUMP=$ac_ct_OBJDUMP
11692 fi
11693 else
11694 OBJDUMP="$ac_cv_prog_OBJDUMP"
11695 fi
11696
11697 test -z "$OBJDUMP" && OBJDUMP=objdump
11698
11699
11700
11701
11702
11703
11704
11705
11706
11707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
11708 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
11709 if ${lt_cv_deplibs_check_method+:} false; then :
11710 $as_echo_n "(cached) " >&6
11711 else
11712 lt_cv_file_magic_cmd='$MAGIC_CMD'
11713 lt_cv_file_magic_test_file=
11714 lt_cv_deplibs_check_method='unknown'
11715 # Need to set the preceding variable on all platforms that support
11716 # interlibrary dependencies.
11717 # 'none' -- dependencies not supported.
11718 # `unknown' -- same as none, but documents that we really don't know.
11719 # 'pass_all' -- all dependencies passed with no checks.
11720 # 'test_compile' -- check by making test program.
11721 # 'file_magic [[regex]]' -- check by looking for files in library path
11722 # which responds to the $file_magic_cmd with a given extended regex.
11723 # If you have `file' or equivalent on your system and you're not sure
11724 # whether `pass_all' will *always* work, you probably want this one.
11725
11726 case $host_os in
11727 aix[4-9]*)
11728 lt_cv_deplibs_check_method=pass_all
11729 ;;
11730
11731 beos*)
11732 lt_cv_deplibs_check_method=pass_all
11733 ;;
11734
11735 bsdi[45]*)
11736 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
11737 lt_cv_file_magic_cmd='/usr/bin/file -L'
11738 lt_cv_file_magic_test_file=/shlib/libc.so
11739 ;;
11740
11741 cygwin*)
11742 # func_win32_libid is a shell function defined in ltmain.sh
11743 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11744 lt_cv_file_magic_cmd='func_win32_libid'
11745 ;;
11746
11747 mingw* | pw32*)
11748 # Base MSYS/MinGW do not provide the 'file' command needed by
11749 # func_win32_libid shell function, so use a weaker test based on 'objdump',
11750 # unless we find 'file', for example because we are cross-compiling.
11751 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
11752 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
11753 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11754 lt_cv_file_magic_cmd='func_win32_libid'
11755 else
11756 # Keep this pattern in sync with the one in func_win32_libid.
11757 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
11758 lt_cv_file_magic_cmd='$OBJDUMP -f'
11759 fi
11760 ;;
11761
11762 cegcc*)
11763 # use the weaker test based on 'objdump'. See mingw*.
11764 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
11765 lt_cv_file_magic_cmd='$OBJDUMP -f'
11766 ;;
11767
11768 darwin* | rhapsody*)
11769 lt_cv_deplibs_check_method=pass_all
11770 ;;
11771
11772 freebsd* | dragonfly*)
11773 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11774 case $host_cpu in
11775 i*86 )
11776 # Not sure whether the presence of OpenBSD here was a mistake.
11777 # Let's accept both of them until this is cleared up.
11778 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
11779 lt_cv_file_magic_cmd=/usr/bin/file
11780 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
11781 ;;
11782 esac
11783 else
11784 lt_cv_deplibs_check_method=pass_all
11785 fi
11786 ;;
11787
11788 gnu*)
11789 lt_cv_deplibs_check_method=pass_all
11790 ;;
11791
11792 haiku*)
11793 lt_cv_deplibs_check_method=pass_all
11794 ;;
11795
11796 hpux10.20* | hpux11*)
11797 lt_cv_file_magic_cmd=/usr/bin/file
11798 case $host_cpu in
11799 ia64*)
11800 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
11801 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
11802 ;;
11803 hppa*64*)
11804 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]'
11805 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
11806 ;;
11807 *)
11808 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
11809 lt_cv_file_magic_test_file=/usr/lib/libc.sl
11810 ;;
11811 esac
11812 ;;
11813
11814 interix[3-9]*)
11815 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
11816 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
11817 ;;
11818
11819 irix5* | irix6* | nonstopux*)
11820 case $LD in
11821 *-32|*"-32 ") libmagic=32-bit;;
11822 *-n32|*"-n32 ") libmagic=N32;;
11823 *-64|*"-64 ") libmagic=64-bit;;
11824 *) libmagic=never-match;;
11825 esac
11826 lt_cv_deplibs_check_method=pass_all
11827 ;;
11828
11829 # This must be glibc/ELF.
11830 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11831 lt_cv_deplibs_check_method=pass_all
11832 ;;
11833
11834 netbsd*)
11835 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11836 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11837 else
11838 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
11839 fi
11840 ;;
11841
11842 newos6*)
11843 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
11844 lt_cv_file_magic_cmd=/usr/bin/file
11845 lt_cv_file_magic_test_file=/usr/lib/libnls.so
11846 ;;
11847
11848 *nto* | *qnx*)
11849 lt_cv_deplibs_check_method=pass_all
11850 ;;
11851
11852 openbsd*)
11853 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11854 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
11855 else
11856 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11857 fi
11858 ;;
11859
11860 osf3* | osf4* | osf5*)
11861 lt_cv_deplibs_check_method=pass_all
11862 ;;
11863
11864 rdos*)
11865 lt_cv_deplibs_check_method=pass_all
11866 ;;
11867
11868 solaris*)
11869 lt_cv_deplibs_check_method=pass_all
11870 ;;
11871
11872 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11873 lt_cv_deplibs_check_method=pass_all
11874 ;;
11875
11876 sysv4 | sysv4.3*)
11877 case $host_vendor in
11878 motorola)
11879 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]'
11880 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
11881 ;;
11882 ncr)
11883 lt_cv_deplibs_check_method=pass_all
11884 ;;
11885 sequent)
11886 lt_cv_file_magic_cmd='/bin/file'
11887 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
11888 ;;
11889 sni)
11890 lt_cv_file_magic_cmd='/bin/file'
11891 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
11892 lt_cv_file_magic_test_file=/lib/libc.so
11893 ;;
11894 siemens)
11895 lt_cv_deplibs_check_method=pass_all
11896 ;;
11897 pc)
11898 lt_cv_deplibs_check_method=pass_all
11899 ;;
11900 esac
11901 ;;
11902
11903 tpf*)
11904 lt_cv_deplibs_check_method=pass_all
11905 ;;
11906 esac
11907
11908 fi
11909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
11910 $as_echo "$lt_cv_deplibs_check_method" >&6; }
11911
11912 file_magic_glob=
11913 want_nocaseglob=no
11914 if test "$build" = "$host"; then
11915 case $host_os in
11916 mingw* | pw32*)
11917 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
11918 want_nocaseglob=yes
11919 else
11920 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
11921 fi
11922 ;;
11923 esac
11924 fi
11925
11926 file_magic_cmd=$lt_cv_file_magic_cmd
11927 deplibs_check_method=$lt_cv_deplibs_check_method
11928 test -z "$deplibs_check_method" && deplibs_check_method=unknown
11929
11930
11931
11932
11933
11934
11935
11936
11937
11938
11939
11940
11941
11942
11943
11944
11945
11946
11947
11948
11949
11950
11951 if test -n "$ac_tool_prefix"; then
11952 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
11953 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
11954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11955 $as_echo_n "checking for $ac_word... " >&6; }
11956 if ${ac_cv_prog_DLLTOOL+:} false; then :
11957 $as_echo_n "(cached) " >&6
11958 else
11959 if test -n "$DLLTOOL"; then
11960 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11961 else
11962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11963 for as_dir in $PATH
11964 do
11965 IFS=$as_save_IFS
11966 test -z "$as_dir" && as_dir=.
11967 for ac_exec_ext in '' $ac_executable_extensions; do
11968 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11969 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
11970 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11971 break 2
11972 fi
11973 done
11974 done
11975 IFS=$as_save_IFS
11976
11977 fi
11978 fi
11979 DLLTOOL=$ac_cv_prog_DLLTOOL
11980 if test -n "$DLLTOOL"; then
11981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11982 $as_echo "$DLLTOOL" >&6; }
11983 else
11984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11985 $as_echo "no" >&6; }
11986 fi
11987
11988
11989 fi
11990 if test -z "$ac_cv_prog_DLLTOOL"; then
11991 ac_ct_DLLTOOL=$DLLTOOL
11992 # Extract the first word of "dlltool", so it can be a program name with args.
11993 set dummy dlltool; ac_word=$2
11994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11995 $as_echo_n "checking for $ac_word... " >&6; }
11996 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
11997 $as_echo_n "(cached) " >&6
11998 else
11999 if test -n "$ac_ct_DLLTOOL"; then
12000 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
12001 else
12002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12003 for as_dir in $PATH
12004 do
12005 IFS=$as_save_IFS
12006 test -z "$as_dir" && as_dir=.
12007 for ac_exec_ext in '' $ac_executable_extensions; do
12008 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12009 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
12010 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12011 break 2
12012 fi
12013 done
12014 done
12015 IFS=$as_save_IFS
12016
12017 fi
12018 fi
12019 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
12020 if test -n "$ac_ct_DLLTOOL"; then
12021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
12022 $as_echo "$ac_ct_DLLTOOL" >&6; }
12023 else
12024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12025 $as_echo "no" >&6; }
12026 fi
12027
12028 if test "x$ac_ct_DLLTOOL" = x; then
12029 DLLTOOL="false"
12030 else
12031 case $cross_compiling:$ac_tool_warned in
12032 yes:)
12033 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12034 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12035 ac_tool_warned=yes ;;
12036 esac
12037 DLLTOOL=$ac_ct_DLLTOOL
12038 fi
12039 else
12040 DLLTOOL="$ac_cv_prog_DLLTOOL"
12041 fi
12042
12043 test -z "$DLLTOOL" && DLLTOOL=dlltool
12044
12045
12046
12047
12048
12049
12050
12051
12052
12053
12054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
12055 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
12056 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
12057 $as_echo_n "(cached) " >&6
12058 else
12059 lt_cv_sharedlib_from_linklib_cmd='unknown'
12060
12061 case $host_os in
12062 cygwin* | mingw* | pw32* | cegcc*)
12063 # two different shell functions defined in ltmain.sh
12064 # decide which to use based on capabilities of $DLLTOOL
12065 case `$DLLTOOL --help 2>&1` in
12066 *--identify-strict*)
12067 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
12068 ;;
12069 *)
12070 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
12071 ;;
12072 esac
12073 ;;
12074 *)
12075 # fallback: assume linklib IS sharedlib
12076 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
12077 ;;
12078 esac
12079
12080 fi
12081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
12082 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
12083 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
12084 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
12085
12086
12087
12088
12089
12090
12091
12092 if test -n "$ac_tool_prefix"; then
12093 for ac_prog in ar
12094 do
12095 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12096 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12098 $as_echo_n "checking for $ac_word... " >&6; }
12099 if ${ac_cv_prog_AR+:} false; then :
12100 $as_echo_n "(cached) " >&6
12101 else
12102 if test -n "$AR"; then
12103 ac_cv_prog_AR="$AR" # Let the user override the test.
12104 else
12105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12106 for as_dir in $PATH
12107 do
12108 IFS=$as_save_IFS
12109 test -z "$as_dir" && as_dir=.
12110 for ac_exec_ext in '' $ac_executable_extensions; do
12111 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12112 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
12113 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12114 break 2
12115 fi
12116 done
12117 done
12118 IFS=$as_save_IFS
12119
12120 fi
12121 fi
12122 AR=$ac_cv_prog_AR
12123 if test -n "$AR"; then
12124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
12125 $as_echo "$AR" >&6; }
12126 else
12127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12128 $as_echo "no" >&6; }
12129 fi
12130
12131
12132 test -n "$AR" && break
12133 done
12134 fi
12135 if test -z "$AR"; then
12136 ac_ct_AR=$AR
12137 for ac_prog in ar
12138 do
12139 # Extract the first word of "$ac_prog", so it can be a program name with args.
12140 set dummy $ac_prog; ac_word=$2
12141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12142 $as_echo_n "checking for $ac_word... " >&6; }
12143 if ${ac_cv_prog_ac_ct_AR+:} false; then :
12144 $as_echo_n "(cached) " >&6
12145 else
12146 if test -n "$ac_ct_AR"; then
12147 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
12148 else
12149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12150 for as_dir in $PATH
12151 do
12152 IFS=$as_save_IFS
12153 test -z "$as_dir" && as_dir=.
12154 for ac_exec_ext in '' $ac_executable_extensions; do
12155 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12156 ac_cv_prog_ac_ct_AR="$ac_prog"
12157 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12158 break 2
12159 fi
12160 done
12161 done
12162 IFS=$as_save_IFS
12163
12164 fi
12165 fi
12166 ac_ct_AR=$ac_cv_prog_ac_ct_AR
12167 if test -n "$ac_ct_AR"; then
12168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
12169 $as_echo "$ac_ct_AR" >&6; }
12170 else
12171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12172 $as_echo "no" >&6; }
12173 fi
12174
12175
12176 test -n "$ac_ct_AR" && break
12177 done
12178
12179 if test "x$ac_ct_AR" = x; then
12180 AR="false"
12181 else
12182 case $cross_compiling:$ac_tool_warned in
12183 yes:)
12184 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12185 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12186 ac_tool_warned=yes ;;
12187 esac
12188 AR=$ac_ct_AR
12189 fi
12190 fi
12191
12192 : ${AR=ar}
12193 : ${AR_FLAGS=cru}
12194
12195
12196
12197
12198
12199
12200
12201
12202
12203
12204
12205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
12206 $as_echo_n "checking for archiver @FILE support... " >&6; }
12207 if ${lt_cv_ar_at_file+:} false; then :
12208 $as_echo_n "(cached) " >&6
12209 else
12210 lt_cv_ar_at_file=no
12211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12212 /* end confdefs.h. */
12213
12214 int
12215 main ()
12216 {
12217
12218 ;
12219 return 0;
12220 }
12221 _ACEOF
12222 if ac_fn_c_try_compile "$LINENO"; then :
12223 echo conftest.$ac_objext > conftest.lst
12224 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
12225 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
12226 (eval $lt_ar_try) 2>&5
12227 ac_status=$?
12228 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12229 test $ac_status = 0; }
12230 if test "$ac_status" -eq 0; then
12231 # Ensure the archiver fails upon bogus file names.
12232 rm -f conftest.$ac_objext libconftest.a
12233 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
12234 (eval $lt_ar_try) 2>&5
12235 ac_status=$?
12236 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12237 test $ac_status = 0; }
12238 if test "$ac_status" -ne 0; then
12239 lt_cv_ar_at_file=@
12240 fi
12241 fi
12242 rm -f conftest.* libconftest.a
12243
12244 fi
12245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12246
12247 fi
12248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
12249 $as_echo "$lt_cv_ar_at_file" >&6; }
12250
12251 if test "x$lt_cv_ar_at_file" = xno; then
12252 archiver_list_spec=
12253 else
12254 archiver_list_spec=$lt_cv_ar_at_file
12255 fi
12256
12257
12258
12259
12260
12261
12262
12263 if test -n "$ac_tool_prefix"; then
12264 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
12265 set dummy ${ac_tool_prefix}strip; ac_word=$2
12266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12267 $as_echo_n "checking for $ac_word... " >&6; }
12268 if ${ac_cv_prog_STRIP+:} false; then :
12269 $as_echo_n "(cached) " >&6
12270 else
12271 if test -n "$STRIP"; then
12272 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12273 else
12274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12275 for as_dir in $PATH
12276 do
12277 IFS=$as_save_IFS
12278 test -z "$as_dir" && as_dir=.
12279 for ac_exec_ext in '' $ac_executable_extensions; do
12280 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12281 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
12282 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12283 break 2
12284 fi
12285 done
12286 done
12287 IFS=$as_save_IFS
12288
12289 fi
12290 fi
12291 STRIP=$ac_cv_prog_STRIP
12292 if test -n "$STRIP"; then
12293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12294 $as_echo "$STRIP" >&6; }
12295 else
12296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12297 $as_echo "no" >&6; }
12298 fi
12299
12300
12301 fi
12302 if test -z "$ac_cv_prog_STRIP"; then
12303 ac_ct_STRIP=$STRIP
12304 # Extract the first word of "strip", so it can be a program name with args.
12305 set dummy strip; ac_word=$2
12306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12307 $as_echo_n "checking for $ac_word... " >&6; }
12308 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
12309 $as_echo_n "(cached) " >&6
12310 else
12311 if test -n "$ac_ct_STRIP"; then
12312 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
12313 else
12314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12315 for as_dir in $PATH
12316 do
12317 IFS=$as_save_IFS
12318 test -z "$as_dir" && as_dir=.
12319 for ac_exec_ext in '' $ac_executable_extensions; do
12320 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12321 ac_cv_prog_ac_ct_STRIP="strip"
12322 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12323 break 2
12324 fi
12325 done
12326 done
12327 IFS=$as_save_IFS
12328
12329 fi
12330 fi
12331 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
12332 if test -n "$ac_ct_STRIP"; then
12333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
12334 $as_echo "$ac_ct_STRIP" >&6; }
12335 else
12336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12337 $as_echo "no" >&6; }
12338 fi
12339
12340 if test "x$ac_ct_STRIP" = x; then
12341 STRIP=":"
12342 else
12343 case $cross_compiling:$ac_tool_warned in
12344 yes:)
12345 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12346 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12347 ac_tool_warned=yes ;;
12348 esac
12349 STRIP=$ac_ct_STRIP
12350 fi
12351 else
12352 STRIP="$ac_cv_prog_STRIP"
12353 fi
12354
12355 test -z "$STRIP" && STRIP=:
12356
12357
12358
12359
12360
12361
12362 if test -n "$ac_tool_prefix"; then
12363 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12364 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12366 $as_echo_n "checking for $ac_word... " >&6; }
12367 if ${ac_cv_prog_RANLIB+:} false; then :
12368 $as_echo_n "(cached) " >&6
12369 else
12370 if test -n "$RANLIB"; then
12371 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12372 else
12373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12374 for as_dir in $PATH
12375 do
12376 IFS=$as_save_IFS
12377 test -z "$as_dir" && as_dir=.
12378 for ac_exec_ext in '' $ac_executable_extensions; do
12379 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12380 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12381 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12382 break 2
12383 fi
12384 done
12385 done
12386 IFS=$as_save_IFS
12387
12388 fi
12389 fi
12390 RANLIB=$ac_cv_prog_RANLIB
12391 if test -n "$RANLIB"; then
12392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
12393 $as_echo "$RANLIB" >&6; }
12394 else
12395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12396 $as_echo "no" >&6; }
12397 fi
12398
12399
12400 fi
12401 if test -z "$ac_cv_prog_RANLIB"; then
12402 ac_ct_RANLIB=$RANLIB
12403 # Extract the first word of "ranlib", so it can be a program name with args.
12404 set dummy ranlib; ac_word=$2
12405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12406 $as_echo_n "checking for $ac_word... " >&6; }
12407 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
12408 $as_echo_n "(cached) " >&6
12409 else
12410 if test -n "$ac_ct_RANLIB"; then
12411 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12412 else
12413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12414 for as_dir in $PATH
12415 do
12416 IFS=$as_save_IFS
12417 test -z "$as_dir" && as_dir=.
12418 for ac_exec_ext in '' $ac_executable_extensions; do
12419 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12420 ac_cv_prog_ac_ct_RANLIB="ranlib"
12421 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12422 break 2
12423 fi
12424 done
12425 done
12426 IFS=$as_save_IFS
12427
12428 fi
12429 fi
12430 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12431 if test -n "$ac_ct_RANLIB"; then
12432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
12433 $as_echo "$ac_ct_RANLIB" >&6; }
12434 else
12435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12436 $as_echo "no" >&6; }
12437 fi
12438
12439 if test "x$ac_ct_RANLIB" = x; then
12440 RANLIB=":"
12441 else
12442 case $cross_compiling:$ac_tool_warned in
12443 yes:)
12444 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12445 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12446 ac_tool_warned=yes ;;
12447 esac
12448 RANLIB=$ac_ct_RANLIB
12449 fi
12450 else
12451 RANLIB="$ac_cv_prog_RANLIB"
12452 fi
12453
12454 test -z "$RANLIB" && RANLIB=:
12455
12456
12457
12458
12459
12460
12461 # Determine commands to create old-style static archives.
12462 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
12463 old_postinstall_cmds='chmod 644 $oldlib'
12464 old_postuninstall_cmds=
12465
12466 if test -n "$RANLIB"; then
12467 case $host_os in
12468 openbsd*)
12469 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
12470 ;;
12471 *)
12472 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
12473 ;;
12474 esac
12475 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
12476 fi
12477
12478 case $host_os in
12479 darwin*)
12480 lock_old_archive_extraction=yes ;;
12481 *)
12482 lock_old_archive_extraction=no ;;
12483 esac
12484
12485
12486
12487
12488
12489
12490
12491
12492
12493
12494
12495
12496
12497
12498
12499
12500
12501
12502
12503
12504
12505
12506
12507
12508
12509
12510
12511
12512
12513
12514
12515
12516
12517
12518
12519
12520
12521
12522
12523 # If no C compiler was specified, use CC.
12524 LTCC=${LTCC-"$CC"}
12525
12526 # If no C compiler flags were specified, use CFLAGS.
12527 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12528
12529 # Allow CC to be a program name with arguments.
12530 compiler=$CC
12531
12532
12533 # Check for command to grab the raw symbol name followed by C symbol from nm.
12534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
12535 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
12536 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
12537 $as_echo_n "(cached) " >&6
12538 else
12539
12540 # These are sane defaults that work on at least a few old systems.
12541 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
12542
12543 # Character class describing NM global symbol codes.
12544 symcode='[BCDEGRST]'
12545
12546 # Regexp to match symbols that can be accessed directly from C.
12547 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
12548
12549 # Define system-specific variables.
12550 case $host_os in
12551 aix*)
12552 symcode='[BCDT]'
12553 ;;
12554 cygwin* | mingw* | pw32* | cegcc*)
12555 symcode='[ABCDGISTW]'
12556 ;;
12557 hpux*)
12558 if test "$host_cpu" = ia64; then
12559 symcode='[ABCDEGRST]'
12560 fi
12561 ;;
12562 irix* | nonstopux*)
12563 symcode='[BCDEGRST]'
12564 ;;
12565 osf*)
12566 symcode='[BCDEGQRST]'
12567 ;;
12568 solaris*)
12569 symcode='[BDRT]'
12570 ;;
12571 sco3.2v5*)
12572 symcode='[DT]'
12573 ;;
12574 sysv4.2uw2*)
12575 symcode='[DT]'
12576 ;;
12577 sysv5* | sco5v6* | unixware* | OpenUNIX*)
12578 symcode='[ABDT]'
12579 ;;
12580 sysv4)
12581 symcode='[DFNSTU]'
12582 ;;
12583 esac
12584
12585 # If we're using GNU nm, then use its standard symbol codes.
12586 case `$NM -V 2>&1` in
12587 *GNU* | *'with BFD'*)
12588 symcode='[ABCDGIRSTW]' ;;
12589 esac
12590
12591 # Transform an extracted symbol line into a proper C declaration.
12592 # Some systems (esp. on ia64) link data and code symbols differently,
12593 # so use this general approach.
12594 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
12595
12596 # Transform an extracted symbol line into symbol name and symbol address
12597 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
12598 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'"
12599
12600 # Handle CRLF in mingw tool chain
12601 opt_cr=
12602 case $build_os in
12603 mingw*)
12604 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
12605 ;;
12606 esac
12607
12608 # Try without a prefix underscore, then with it.
12609 for ac_symprfx in "" "_"; do
12610
12611 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
12612 symxfrm="\\1 $ac_symprfx\\2 \\2"
12613
12614 # Write the raw and C identifiers.
12615 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12616 # Fake it for dumpbin and say T for any non-static function
12617 # and D for any global variable.
12618 # Also find C++ and __fastcall symbols from MSVC++,
12619 # which start with @ or ?.
12620 lt_cv_sys_global_symbol_pipe="$AWK '"\
12621 " {last_section=section; section=\$ 3};"\
12622 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
12623 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
12624 " \$ 0!~/External *\|/{next};"\
12625 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
12626 " {if(hide[section]) next};"\
12627 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
12628 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
12629 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
12630 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
12631 " ' prfx=^$ac_symprfx"
12632 else
12633 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
12634 fi
12635 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
12636
12637 # Check to see that the pipe works correctly.
12638 pipe_works=no
12639
12640 rm -f conftest*
12641 cat > conftest.$ac_ext <<_LT_EOF
12642 #ifdef __cplusplus
12643 extern "C" {
12644 #endif
12645 char nm_test_var;
12646 void nm_test_func(void);
12647 void nm_test_func(void){}
12648 #ifdef __cplusplus
12649 }
12650 #endif
12651 int main(){nm_test_var='a';nm_test_func();return(0);}
12652 _LT_EOF
12653
12654 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12655 (eval $ac_compile) 2>&5
12656 ac_status=$?
12657 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12658 test $ac_status = 0; }; then
12659 # Now try to grab the symbols.
12660 nlist=conftest.nm
12661 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
12662 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
12663 ac_status=$?
12664 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12665 test $ac_status = 0; } && test -s "$nlist"; then
12666 # Try sorting and uniquifying the output.
12667 if sort "$nlist" | uniq > "$nlist"T; then
12668 mv -f "$nlist"T "$nlist"
12669 else
12670 rm -f "$nlist"T
12671 fi
12672
12673 # Make sure that we snagged all the symbols we need.
12674 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
12675 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
12676 cat <<_LT_EOF > conftest.$ac_ext
12677 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
12678 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
12679 /* DATA imports from DLLs on WIN32 con't be const, because runtime
12680 relocations are performed -- see ld's documentation on pseudo-relocs. */
12681 # define LT_DLSYM_CONST
12682 #elif defined(__osf__)
12683 /* This system does not cope well with relocations in const data. */
12684 # define LT_DLSYM_CONST
12685 #else
12686 # define LT_DLSYM_CONST const
12687 #endif
12688
12689 #ifdef __cplusplus
12690 extern "C" {
12691 #endif
12692
12693 _LT_EOF
12694 # Now generate the symbol file.
12695 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
12696
12697 cat <<_LT_EOF >> conftest.$ac_ext
12698
12699 /* The mapping between symbol names and symbols. */
12700 LT_DLSYM_CONST struct {
12701 const char *name;
12702 void *address;
12703 }
12704 lt__PROGRAM__LTX_preloaded_symbols[] =
12705 {
12706 { "@PROGRAM@", (void *) 0 },
12707 _LT_EOF
12708 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
12709 cat <<\_LT_EOF >> conftest.$ac_ext
12710 {0, (void *) 0}
12711 };
12712
12713 /* This works around a problem in FreeBSD linker */
12714 #ifdef FREEBSD_WORKAROUND
12715 static const void *lt_preloaded_setup() {
12716 return lt__PROGRAM__LTX_preloaded_symbols;
12717 }
12718 #endif
12719
12720 #ifdef __cplusplus
12721 }
12722 #endif
12723 _LT_EOF
12724 # Now try linking the two files.
12725 mv conftest.$ac_objext conftstm.$ac_objext
12726 lt_globsym_save_LIBS=$LIBS
12727 lt_globsym_save_CFLAGS=$CFLAGS
12728 LIBS="conftstm.$ac_objext"
12729 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
12730 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12731 (eval $ac_link) 2>&5
12732 ac_status=$?
12733 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12734 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
12735 pipe_works=yes
12736 fi
12737 LIBS=$lt_globsym_save_LIBS
12738 CFLAGS=$lt_globsym_save_CFLAGS
12739 else
12740 echo "cannot find nm_test_func in $nlist" >&5
12741 fi
12742 else
12743 echo "cannot find nm_test_var in $nlist" >&5
12744 fi
12745 else
12746 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
12747 fi
12748 else
12749 echo "$progname: failed program was:" >&5
12750 cat conftest.$ac_ext >&5
12751 fi
12752 rm -rf conftest* conftst*
12753
12754 # Do not use the global_symbol_pipe unless it works.
12755 if test "$pipe_works" = yes; then
12756 break
12757 else
12758 lt_cv_sys_global_symbol_pipe=
12759 fi
12760 done
12761
12762 fi
12763
12764 if test -z "$lt_cv_sys_global_symbol_pipe"; then
12765 lt_cv_sys_global_symbol_to_cdecl=
12766 fi
12767 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
12768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
12769 $as_echo "failed" >&6; }
12770 else
12771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
12772 $as_echo "ok" >&6; }
12773 fi
12774
12775 # Response file support.
12776 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12777 nm_file_list_spec='@'
12778 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
12779 nm_file_list_spec='@'
12780 fi
12781
12782
12783
12784
12785
12786
12787
12788
12789
12790
12791
12792
12793
12794
12795
12796
12797
12798
12799
12800
12801
12802
12803
12804
12805
12806
12807
12808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
12809 $as_echo_n "checking for sysroot... " >&6; }
12810
12811 # Check whether --with-sysroot was given.
12812 if test "${with_sysroot+set}" = set; then :
12813 withval=$with_sysroot;
12814 else
12815 with_sysroot=no
12816 fi
12817
12818
12819 lt_sysroot=
12820 case ${with_sysroot} in #(
12821 yes)
12822 if test "$GCC" = yes; then
12823 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
12824 fi
12825 ;; #(
12826 /*)
12827 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
12828 ;; #(
12829 no|'')
12830 ;; #(
12831 *)
12832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
12833 $as_echo "${with_sysroot}" >&6; }
12834 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
12835 ;;
12836 esac
12837
12838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
12839 $as_echo "${lt_sysroot:-no}" >&6; }
12840
12841
12842
12843
12844
12845 # Check whether --enable-libtool-lock was given.
12846 if test "${enable_libtool_lock+set}" = set; then :
12847 enableval=$enable_libtool_lock;
12848 fi
12849
12850 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12851
12852 # Some flags need to be propagated to the compiler or linker for good
12853 # libtool support.
12854 case $host in
12855 ia64-*-hpux*)
12856 # Find out which ABI we are using.
12857 echo 'int i;' > conftest.$ac_ext
12858 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12859 (eval $ac_compile) 2>&5
12860 ac_status=$?
12861 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12862 test $ac_status = 0; }; then
12863 case `/usr/bin/file conftest.$ac_objext` in
12864 *ELF-32*)
12865 HPUX_IA64_MODE="32"
12866 ;;
12867 *ELF-64*)
12868 HPUX_IA64_MODE="64"
12869 ;;
12870 esac
12871 fi
12872 rm -rf conftest*
12873 ;;
12874 *-*-irix6*)
12875 # Find out which ABI we are using.
12876 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
12877 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12878 (eval $ac_compile) 2>&5
12879 ac_status=$?
12880 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12881 test $ac_status = 0; }; then
12882 if test "$lt_cv_prog_gnu_ld" = yes; then
12883 case `/usr/bin/file conftest.$ac_objext` in
12884 *32-bit*)
12885 LD="${LD-ld} -melf32bsmip"
12886 ;;
12887 *N32*)
12888 LD="${LD-ld} -melf32bmipn32"
12889 ;;
12890 *64-bit*)
12891 LD="${LD-ld} -melf64bmip"
12892 ;;
12893 esac
12894 else
12895 case `/usr/bin/file conftest.$ac_objext` in
12896 *32-bit*)
12897 LD="${LD-ld} -32"
12898 ;;
12899 *N32*)
12900 LD="${LD-ld} -n32"
12901 ;;
12902 *64-bit*)
12903 LD="${LD-ld} -64"
12904 ;;
12905 esac
12906 fi
12907 fi
12908 rm -rf conftest*
12909 ;;
12910
12911 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
12912 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
12913 # Find out which ABI we are using.
12914 echo 'int i;' > conftest.$ac_ext
12915 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12916 (eval $ac_compile) 2>&5
12917 ac_status=$?
12918 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12919 test $ac_status = 0; }; then
12920 case `/usr/bin/file conftest.o` in
12921 *32-bit*)
12922 case $host in
12923 x86_64-*kfreebsd*-gnu)
12924 LD="${LD-ld} -m elf_i386_fbsd"
12925 ;;
12926 x86_64-*linux*)
12927 LD="${LD-ld} -m elf_i386"
12928 ;;
12929 ppc64-*linux*|powerpc64-*linux*)
12930 LD="${LD-ld} -m elf32ppclinux"
12931 ;;
12932 s390x-*linux*)
12933 LD="${LD-ld} -m elf_s390"
12934 ;;
12935 sparc64-*linux*)
12936 LD="${LD-ld} -m elf32_sparc"
12937 ;;
12938 esac
12939 ;;
12940 *64-bit*)
12941 case $host in
12942 x86_64-*kfreebsd*-gnu)
12943 LD="${LD-ld} -m elf_x86_64_fbsd"
12944 ;;
12945 x86_64-*linux*)
12946 LD="${LD-ld} -m elf_x86_64"
12947 ;;
12948 ppc*-*linux*|powerpc*-*linux*)
12949 LD="${LD-ld} -m elf64ppc"
12950 ;;
12951 s390*-*linux*|s390*-*tpf*)
12952 LD="${LD-ld} -m elf64_s390"
12953 ;;
12954 sparc*-*linux*)
12955 LD="${LD-ld} -m elf64_sparc"
12956 ;;
12957 esac
12958 ;;
12959 esac
12960 fi
12961 rm -rf conftest*
12962 ;;
12963
12964 *-*-sco3.2v5*)
12965 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
12966 SAVE_CFLAGS="$CFLAGS"
12967 CFLAGS="$CFLAGS -belf"
12968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
12969 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
12970 if ${lt_cv_cc_needs_belf+:} false; then :
12971 $as_echo_n "(cached) " >&6
12972 else
12973 ac_ext=c
12974 ac_cpp='$CPP $CPPFLAGS'
12975 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12976 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12977 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12978
12979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12980 /* end confdefs.h. */
12981
12982 int
12983 main ()
12984 {
12985
12986 ;
12987 return 0;
12988 }
12989 _ACEOF
12990 if ac_fn_c_try_link "$LINENO"; then :
12991 lt_cv_cc_needs_belf=yes
12992 else
12993 lt_cv_cc_needs_belf=no
12994 fi
12995 rm -f core conftest.err conftest.$ac_objext \
12996 conftest$ac_exeext conftest.$ac_ext
12997 ac_ext=c
12998 ac_cpp='$CPP $CPPFLAGS'
12999 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13000 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13001 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13002
13003 fi
13004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
13005 $as_echo "$lt_cv_cc_needs_belf" >&6; }
13006 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
13007 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13008 CFLAGS="$SAVE_CFLAGS"
13009 fi
13010 ;;
13011 *-*solaris*)
13012 # Find out which ABI we are using.
13013 echo 'int i;' > conftest.$ac_ext
13014 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13015 (eval $ac_compile) 2>&5
13016 ac_status=$?
13017 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13018 test $ac_status = 0; }; then
13019 case `/usr/bin/file conftest.o` in
13020 *64-bit*)
13021 case $lt_cv_prog_gnu_ld in
13022 yes*)
13023 case $host in
13024 i?86-*-solaris*)
13025 LD="${LD-ld} -m elf_x86_64"
13026 ;;
13027 sparc*-*-solaris*)
13028 LD="${LD-ld} -m elf64_sparc"
13029 ;;
13030 esac
13031 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
13032 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
13033 LD="${LD-ld}_sol2"
13034 fi
13035 ;;
13036 *)
13037 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
13038 LD="${LD-ld} -64"
13039 fi
13040 ;;
13041 esac
13042 ;;
13043 esac
13044 fi
13045 rm -rf conftest*
13046 ;;
13047 esac
13048
13049 need_locks="$enable_libtool_lock"
13050
13051 if test -n "$ac_tool_prefix"; then
13052 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
13053 set dummy ${ac_tool_prefix}mt; ac_word=$2
13054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13055 $as_echo_n "checking for $ac_word... " >&6; }
13056 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
13057 $as_echo_n "(cached) " >&6
13058 else
13059 if test -n "$MANIFEST_TOOL"; then
13060 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
13061 else
13062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13063 for as_dir in $PATH
13064 do
13065 IFS=$as_save_IFS
13066 test -z "$as_dir" && as_dir=.
13067 for ac_exec_ext in '' $ac_executable_extensions; do
13068 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13069 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
13070 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13071 break 2
13072 fi
13073 done
13074 done
13075 IFS=$as_save_IFS
13076
13077 fi
13078 fi
13079 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
13080 if test -n "$MANIFEST_TOOL"; then
13081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
13082 $as_echo "$MANIFEST_TOOL" >&6; }
13083 else
13084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13085 $as_echo "no" >&6; }
13086 fi
13087
13088
13089 fi
13090 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
13091 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
13092 # Extract the first word of "mt", so it can be a program name with args.
13093 set dummy mt; ac_word=$2
13094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13095 $as_echo_n "checking for $ac_word... " >&6; }
13096 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
13097 $as_echo_n "(cached) " >&6
13098 else
13099 if test -n "$ac_ct_MANIFEST_TOOL"; then
13100 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
13101 else
13102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13103 for as_dir in $PATH
13104 do
13105 IFS=$as_save_IFS
13106 test -z "$as_dir" && as_dir=.
13107 for ac_exec_ext in '' $ac_executable_extensions; do
13108 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13109 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
13110 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13111 break 2
13112 fi
13113 done
13114 done
13115 IFS=$as_save_IFS
13116
13117 fi
13118 fi
13119 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
13120 if test -n "$ac_ct_MANIFEST_TOOL"; then
13121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
13122 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
13123 else
13124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13125 $as_echo "no" >&6; }
13126 fi
13127
13128 if test "x$ac_ct_MANIFEST_TOOL" = x; then
13129 MANIFEST_TOOL=":"
13130 else
13131 case $cross_compiling:$ac_tool_warned in
13132 yes:)
13133 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13134 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13135 ac_tool_warned=yes ;;
13136 esac
13137 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
13138 fi
13139 else
13140 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
13141 fi
13142
13143 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
13144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
13145 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
13146 if ${lt_cv_path_mainfest_tool+:} false; then :
13147 $as_echo_n "(cached) " >&6
13148 else
13149 lt_cv_path_mainfest_tool=no
13150 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
13151 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
13152 cat conftest.err >&5
13153 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
13154 lt_cv_path_mainfest_tool=yes
13155 fi
13156 rm -f conftest*
13157 fi
13158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
13159 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
13160 if test "x$lt_cv_path_mainfest_tool" != xyes; then
13161 MANIFEST_TOOL=:
13162 fi
13163
13164
13165
13166
13167
13168
13169 case $host_os in
13170 rhapsody* | darwin*)
13171 if test -n "$ac_tool_prefix"; then
13172 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
13173 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
13174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13175 $as_echo_n "checking for $ac_word... " >&6; }
13176 if ${ac_cv_prog_DSYMUTIL+:} false; then :
13177 $as_echo_n "(cached) " >&6
13178 else
13179 if test -n "$DSYMUTIL"; then
13180 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
13181 else
13182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13183 for as_dir in $PATH
13184 do
13185 IFS=$as_save_IFS
13186 test -z "$as_dir" && as_dir=.
13187 for ac_exec_ext in '' $ac_executable_extensions; do
13188 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13189 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
13190 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13191 break 2
13192 fi
13193 done
13194 done
13195 IFS=$as_save_IFS
13196
13197 fi
13198 fi
13199 DSYMUTIL=$ac_cv_prog_DSYMUTIL
13200 if test -n "$DSYMUTIL"; then
13201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
13202 $as_echo "$DSYMUTIL" >&6; }
13203 else
13204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13205 $as_echo "no" >&6; }
13206 fi
13207
13208
13209 fi
13210 if test -z "$ac_cv_prog_DSYMUTIL"; then
13211 ac_ct_DSYMUTIL=$DSYMUTIL
13212 # Extract the first word of "dsymutil", so it can be a program name with args.
13213 set dummy dsymutil; ac_word=$2
13214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13215 $as_echo_n "checking for $ac_word... " >&6; }
13216 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
13217 $as_echo_n "(cached) " >&6
13218 else
13219 if test -n "$ac_ct_DSYMUTIL"; then
13220 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
13221 else
13222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13223 for as_dir in $PATH
13224 do
13225 IFS=$as_save_IFS
13226 test -z "$as_dir" && as_dir=.
13227 for ac_exec_ext in '' $ac_executable_extensions; do
13228 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13229 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
13230 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13231 break 2
13232 fi
13233 done
13234 done
13235 IFS=$as_save_IFS
13236
13237 fi
13238 fi
13239 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
13240 if test -n "$ac_ct_DSYMUTIL"; then
13241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
13242 $as_echo "$ac_ct_DSYMUTIL" >&6; }
13243 else
13244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13245 $as_echo "no" >&6; }
13246 fi
13247
13248 if test "x$ac_ct_DSYMUTIL" = x; then
13249 DSYMUTIL=":"
13250 else
13251 case $cross_compiling:$ac_tool_warned in
13252 yes:)
13253 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13254 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13255 ac_tool_warned=yes ;;
13256 esac
13257 DSYMUTIL=$ac_ct_DSYMUTIL
13258 fi
13259 else
13260 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
13261 fi
13262
13263 if test -n "$ac_tool_prefix"; then
13264 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
13265 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
13266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13267 $as_echo_n "checking for $ac_word... " >&6; }
13268 if ${ac_cv_prog_NMEDIT+:} false; then :
13269 $as_echo_n "(cached) " >&6
13270 else
13271 if test -n "$NMEDIT"; then
13272 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
13273 else
13274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13275 for as_dir in $PATH
13276 do
13277 IFS=$as_save_IFS
13278 test -z "$as_dir" && as_dir=.
13279 for ac_exec_ext in '' $ac_executable_extensions; do
13280 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13281 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
13282 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13283 break 2
13284 fi
13285 done
13286 done
13287 IFS=$as_save_IFS
13288
13289 fi
13290 fi
13291 NMEDIT=$ac_cv_prog_NMEDIT
13292 if test -n "$NMEDIT"; then
13293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
13294 $as_echo "$NMEDIT" >&6; }
13295 else
13296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13297 $as_echo "no" >&6; }
13298 fi
13299
13300
13301 fi
13302 if test -z "$ac_cv_prog_NMEDIT"; then
13303 ac_ct_NMEDIT=$NMEDIT
13304 # Extract the first word of "nmedit", so it can be a program name with args.
13305 set dummy nmedit; ac_word=$2
13306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13307 $as_echo_n "checking for $ac_word... " >&6; }
13308 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
13309 $as_echo_n "(cached) " >&6
13310 else
13311 if test -n "$ac_ct_NMEDIT"; then
13312 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
13313 else
13314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13315 for as_dir in $PATH
13316 do
13317 IFS=$as_save_IFS
13318 test -z "$as_dir" && as_dir=.
13319 for ac_exec_ext in '' $ac_executable_extensions; do
13320 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13321 ac_cv_prog_ac_ct_NMEDIT="nmedit"
13322 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13323 break 2
13324 fi
13325 done
13326 done
13327 IFS=$as_save_IFS
13328
13329 fi
13330 fi
13331 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
13332 if test -n "$ac_ct_NMEDIT"; then
13333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
13334 $as_echo "$ac_ct_NMEDIT" >&6; }
13335 else
13336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13337 $as_echo "no" >&6; }
13338 fi
13339
13340 if test "x$ac_ct_NMEDIT" = x; then
13341 NMEDIT=":"
13342 else
13343 case $cross_compiling:$ac_tool_warned in
13344 yes:)
13345 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13346 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13347 ac_tool_warned=yes ;;
13348 esac
13349 NMEDIT=$ac_ct_NMEDIT
13350 fi
13351 else
13352 NMEDIT="$ac_cv_prog_NMEDIT"
13353 fi
13354
13355 if test -n "$ac_tool_prefix"; then
13356 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
13357 set dummy ${ac_tool_prefix}lipo; ac_word=$2
13358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13359 $as_echo_n "checking for $ac_word... " >&6; }
13360 if ${ac_cv_prog_LIPO+:} false; then :
13361 $as_echo_n "(cached) " >&6
13362 else
13363 if test -n "$LIPO"; then
13364 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
13365 else
13366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13367 for as_dir in $PATH
13368 do
13369 IFS=$as_save_IFS
13370 test -z "$as_dir" && as_dir=.
13371 for ac_exec_ext in '' $ac_executable_extensions; do
13372 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13373 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
13374 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13375 break 2
13376 fi
13377 done
13378 done
13379 IFS=$as_save_IFS
13380
13381 fi
13382 fi
13383 LIPO=$ac_cv_prog_LIPO
13384 if test -n "$LIPO"; then
13385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
13386 $as_echo "$LIPO" >&6; }
13387 else
13388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13389 $as_echo "no" >&6; }
13390 fi
13391
13392
13393 fi
13394 if test -z "$ac_cv_prog_LIPO"; then
13395 ac_ct_LIPO=$LIPO
13396 # Extract the first word of "lipo", so it can be a program name with args.
13397 set dummy lipo; ac_word=$2
13398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13399 $as_echo_n "checking for $ac_word... " >&6; }
13400 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
13401 $as_echo_n "(cached) " >&6
13402 else
13403 if test -n "$ac_ct_LIPO"; then
13404 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
13405 else
13406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13407 for as_dir in $PATH
13408 do
13409 IFS=$as_save_IFS
13410 test -z "$as_dir" && as_dir=.
13411 for ac_exec_ext in '' $ac_executable_extensions; do
13412 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13413 ac_cv_prog_ac_ct_LIPO="lipo"
13414 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13415 break 2
13416 fi
13417 done
13418 done
13419 IFS=$as_save_IFS
13420
13421 fi
13422 fi
13423 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
13424 if test -n "$ac_ct_LIPO"; then
13425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
13426 $as_echo "$ac_ct_LIPO" >&6; }
13427 else
13428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13429 $as_echo "no" >&6; }
13430 fi
13431
13432 if test "x$ac_ct_LIPO" = x; then
13433 LIPO=":"
13434 else
13435 case $cross_compiling:$ac_tool_warned in
13436 yes:)
13437 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13438 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13439 ac_tool_warned=yes ;;
13440 esac
13441 LIPO=$ac_ct_LIPO
13442 fi
13443 else
13444 LIPO="$ac_cv_prog_LIPO"
13445 fi
13446
13447 if test -n "$ac_tool_prefix"; then
13448 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
13449 set dummy ${ac_tool_prefix}otool; ac_word=$2
13450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13451 $as_echo_n "checking for $ac_word... " >&6; }
13452 if ${ac_cv_prog_OTOOL+:} false; then :
13453 $as_echo_n "(cached) " >&6
13454 else
13455 if test -n "$OTOOL"; then
13456 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
13457 else
13458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13459 for as_dir in $PATH
13460 do
13461 IFS=$as_save_IFS
13462 test -z "$as_dir" && as_dir=.
13463 for ac_exec_ext in '' $ac_executable_extensions; do
13464 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13465 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
13466 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13467 break 2
13468 fi
13469 done
13470 done
13471 IFS=$as_save_IFS
13472
13473 fi
13474 fi
13475 OTOOL=$ac_cv_prog_OTOOL
13476 if test -n "$OTOOL"; then
13477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
13478 $as_echo "$OTOOL" >&6; }
13479 else
13480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13481 $as_echo "no" >&6; }
13482 fi
13483
13484
13485 fi
13486 if test -z "$ac_cv_prog_OTOOL"; then
13487 ac_ct_OTOOL=$OTOOL
13488 # Extract the first word of "otool", so it can be a program name with args.
13489 set dummy otool; ac_word=$2
13490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13491 $as_echo_n "checking for $ac_word... " >&6; }
13492 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
13493 $as_echo_n "(cached) " >&6
13494 else
13495 if test -n "$ac_ct_OTOOL"; then
13496 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
13497 else
13498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13499 for as_dir in $PATH
13500 do
13501 IFS=$as_save_IFS
13502 test -z "$as_dir" && as_dir=.
13503 for ac_exec_ext in '' $ac_executable_extensions; do
13504 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13505 ac_cv_prog_ac_ct_OTOOL="otool"
13506 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13507 break 2
13508 fi
13509 done
13510 done
13511 IFS=$as_save_IFS
13512
13513 fi
13514 fi
13515 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
13516 if test -n "$ac_ct_OTOOL"; then
13517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
13518 $as_echo "$ac_ct_OTOOL" >&6; }
13519 else
13520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13521 $as_echo "no" >&6; }
13522 fi
13523
13524 if test "x$ac_ct_OTOOL" = x; then
13525 OTOOL=":"
13526 else
13527 case $cross_compiling:$ac_tool_warned in
13528 yes:)
13529 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13530 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13531 ac_tool_warned=yes ;;
13532 esac
13533 OTOOL=$ac_ct_OTOOL
13534 fi
13535 else
13536 OTOOL="$ac_cv_prog_OTOOL"
13537 fi
13538
13539 if test -n "$ac_tool_prefix"; then
13540 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
13541 set dummy ${ac_tool_prefix}otool64; ac_word=$2
13542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13543 $as_echo_n "checking for $ac_word... " >&6; }
13544 if ${ac_cv_prog_OTOOL64+:} false; then :
13545 $as_echo_n "(cached) " >&6
13546 else
13547 if test -n "$OTOOL64"; then
13548 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
13549 else
13550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13551 for as_dir in $PATH
13552 do
13553 IFS=$as_save_IFS
13554 test -z "$as_dir" && as_dir=.
13555 for ac_exec_ext in '' $ac_executable_extensions; do
13556 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13557 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
13558 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13559 break 2
13560 fi
13561 done
13562 done
13563 IFS=$as_save_IFS
13564
13565 fi
13566 fi
13567 OTOOL64=$ac_cv_prog_OTOOL64
13568 if test -n "$OTOOL64"; then
13569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
13570 $as_echo "$OTOOL64" >&6; }
13571 else
13572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13573 $as_echo "no" >&6; }
13574 fi
13575
13576
13577 fi
13578 if test -z "$ac_cv_prog_OTOOL64"; then
13579 ac_ct_OTOOL64=$OTOOL64
13580 # Extract the first word of "otool64", so it can be a program name with args.
13581 set dummy otool64; ac_word=$2
13582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13583 $as_echo_n "checking for $ac_word... " >&6; }
13584 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
13585 $as_echo_n "(cached) " >&6
13586 else
13587 if test -n "$ac_ct_OTOOL64"; then
13588 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
13589 else
13590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13591 for as_dir in $PATH
13592 do
13593 IFS=$as_save_IFS
13594 test -z "$as_dir" && as_dir=.
13595 for ac_exec_ext in '' $ac_executable_extensions; do
13596 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13597 ac_cv_prog_ac_ct_OTOOL64="otool64"
13598 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13599 break 2
13600 fi
13601 done
13602 done
13603 IFS=$as_save_IFS
13604
13605 fi
13606 fi
13607 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
13608 if test -n "$ac_ct_OTOOL64"; then
13609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
13610 $as_echo "$ac_ct_OTOOL64" >&6; }
13611 else
13612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13613 $as_echo "no" >&6; }
13614 fi
13615
13616 if test "x$ac_ct_OTOOL64" = x; then
13617 OTOOL64=":"
13618 else
13619 case $cross_compiling:$ac_tool_warned in
13620 yes:)
13621 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13622 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13623 ac_tool_warned=yes ;;
13624 esac
13625 OTOOL64=$ac_ct_OTOOL64
13626 fi
13627 else
13628 OTOOL64="$ac_cv_prog_OTOOL64"
13629 fi
13630
13631
13632
13633
13634
13635
13636
13637
13638
13639
13640
13641
13642
13643
13644
13645
13646
13647
13648
13649
13650
13651
13652
13653
13654
13655
13656
13657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
13658 $as_echo_n "checking for -single_module linker flag... " >&6; }
13659 if ${lt_cv_apple_cc_single_mod+:} false; then :
13660 $as_echo_n "(cached) " >&6
13661 else
13662 lt_cv_apple_cc_single_mod=no
13663 if test -z "${LT_MULTI_MODULE}"; then
13664 # By default we will add the -single_module flag. You can override
13665 # by either setting the environment variable LT_MULTI_MODULE
13666 # non-empty at configure time, or by adding -multi_module to the
13667 # link flags.
13668 rm -rf libconftest.dylib*
13669 echo "int foo(void){return 1;}" > conftest.c
13670 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13671 -dynamiclib -Wl,-single_module conftest.c" >&5
13672 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13673 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
13674 _lt_result=$?
13675 # If there is a non-empty error log, and "single_module"
13676 # appears in it, assume the flag caused a linker warning
13677 if test -s conftest.err && $GREP single_module conftest.err; then
13678 cat conftest.err >&5
13679 # Otherwise, if the output was created with a 0 exit code from
13680 # the compiler, it worked.
13681 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
13682 lt_cv_apple_cc_single_mod=yes
13683 else
13684 cat conftest.err >&5
13685 fi
13686 rm -rf libconftest.dylib*
13687 rm -f conftest.*
13688 fi
13689 fi
13690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
13691 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
13692
13693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
13694 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
13695 if ${lt_cv_ld_exported_symbols_list+:} false; then :
13696 $as_echo_n "(cached) " >&6
13697 else
13698 lt_cv_ld_exported_symbols_list=no
13699 save_LDFLAGS=$LDFLAGS
13700 echo "_main" > conftest.sym
13701 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
13702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13703 /* end confdefs.h. */
13704
13705 int
13706 main ()
13707 {
13708
13709 ;
13710 return 0;
13711 }
13712 _ACEOF
13713 if ac_fn_c_try_link "$LINENO"; then :
13714 lt_cv_ld_exported_symbols_list=yes
13715 else
13716 lt_cv_ld_exported_symbols_list=no
13717 fi
13718 rm -f core conftest.err conftest.$ac_objext \
13719 conftest$ac_exeext conftest.$ac_ext
13720 LDFLAGS="$save_LDFLAGS"
13721
13722 fi
13723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
13724 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
13725
13726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
13727 $as_echo_n "checking for -force_load linker flag... " >&6; }
13728 if ${lt_cv_ld_force_load+:} false; then :
13729 $as_echo_n "(cached) " >&6
13730 else
13731 lt_cv_ld_force_load=no
13732 cat > conftest.c << _LT_EOF
13733 int forced_loaded() { return 2;}
13734 _LT_EOF
13735 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
13736 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
13737 echo "$AR cru libconftest.a conftest.o" >&5
13738 $AR cru libconftest.a conftest.o 2>&5
13739 echo "$RANLIB libconftest.a" >&5
13740 $RANLIB libconftest.a 2>&5
13741 cat > conftest.c << _LT_EOF
13742 int main() { return 0;}
13743 _LT_EOF
13744 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
13745 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
13746 _lt_result=$?
13747 if test -s conftest.err && $GREP force_load conftest.err; then
13748 cat conftest.err >&5
13749 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
13750 lt_cv_ld_force_load=yes
13751 else
13752 cat conftest.err >&5
13753 fi
13754 rm -f conftest.err libconftest.a conftest conftest.c
13755 rm -rf conftest.dSYM
13756
13757 fi
13758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
13759 $as_echo "$lt_cv_ld_force_load" >&6; }
13760 case $host_os in
13761 rhapsody* | darwin1.[012])
13762 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
13763 darwin1.*)
13764 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13765 darwin*) # darwin 5.x on
13766 # if running on 10.5 or later, the deployment target defaults
13767 # to the OS version, if on x86, and 10.4, the deployment
13768 # target defaults to 10.4. Don't you love it?
13769 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
13770 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
13771 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13772 10.[012]*)
13773 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13774 10.*)
13775 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13776 esac
13777 ;;
13778 esac
13779 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
13780 _lt_dar_single_mod='$single_module'
13781 fi
13782 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
13783 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
13784 else
13785 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
13786 fi
13787 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
13788 _lt_dsymutil='~$DSYMUTIL $lib || :'
13789 else
13790 _lt_dsymutil=
13791 fi
13792 ;;
13793 esac
13794
13795 for ac_header in dlfcn.h
13796 do :
13797 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
13798 "
13799 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
13800 cat >>confdefs.h <<_ACEOF
13801 #define HAVE_DLFCN_H 1
13802 _ACEOF
13803
13804 fi
13805
13806 done
13807
13808
13809
13810
13811
13812 # Set options
13813
13814
13815
13816 enable_dlopen=no
13817
13818
13819 enable_win32_dll=no
13820
13821
13822 # Check whether --enable-shared was given.
13823 if test "${enable_shared+set}" = set; then :
13824 enableval=$enable_shared; p=${PACKAGE-default}
13825 case $enableval in
13826 yes) enable_shared=yes ;;
13827 no) enable_shared=no ;;
13828 *)
13829 enable_shared=no
13830 # Look at the argument we got. We use all the common list separators.
13831 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13832 for pkg in $enableval; do
13833 IFS="$lt_save_ifs"
13834 if test "X$pkg" = "X$p"; then
13835 enable_shared=yes
13836 fi
13837 done
13838 IFS="$lt_save_ifs"
13839 ;;
13840 esac
13841 else
13842 enable_shared=yes
13843 fi
13844
13845
13846
13847
13848
13849
13850
13851
13852
13853
13854
13855 # Check whether --with-pic was given.
13856 if test "${with_pic+set}" = set; then :
13857 withval=$with_pic; lt_p=${PACKAGE-default}
13858 case $withval in
13859 yes|no) pic_mode=$withval ;;
13860 *)
13861 pic_mode=default
13862 # Look at the argument we got. We use all the common list separators.
13863 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13864 for lt_pkg in $withval; do
13865 IFS="$lt_save_ifs"
13866 if test "X$lt_pkg" = "X$lt_p"; then
13867 pic_mode=yes
13868 fi
13869 done
13870 IFS="$lt_save_ifs"
13871 ;;
13872 esac
13873 else
13874 pic_mode=default
13875 fi
13876
13877
13878 test -z "$pic_mode" && pic_mode=default
13879
13880
13881
13882
13883
13884
13885
13886 # Check whether --enable-fast-install was given.
13887 if test "${enable_fast_install+set}" = set; then :
13888 enableval=$enable_fast_install; p=${PACKAGE-default}
13889 case $enableval in
13890 yes) enable_fast_install=yes ;;
13891 no) enable_fast_install=no ;;
13892 *)
13893 enable_fast_install=no
13894 # Look at the argument we got. We use all the common list separators.
13895 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13896 for pkg in $enableval; do
13897 IFS="$lt_save_ifs"
13898 if test "X$pkg" = "X$p"; then
13899 enable_fast_install=yes
13900 fi
13901 done
13902 IFS="$lt_save_ifs"
13903 ;;
13904 esac
13905 else
13906 enable_fast_install=yes
13907 fi
13908
13909
13910
13911
13912
13913
13914
13915
13916
13917
13918
13919 # This can be used to rebuild libtool when needed
13920 LIBTOOL_DEPS="$ltmain"
13921
13922 # Always use our own libtool.
13923 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
13924
13925
13926
13927
13928
13929
13930
13931
13932
13933
13934
13935
13936
13937
13938
13939
13940
13941
13942
13943
13944
13945
13946
13947
13948
13949
13950
13951
13952
13953
13954 test -z "$LN_S" && LN_S="ln -s"
13955
13956
13957
13958
13959
13960
13961
13962
13963
13964
13965
13966
13967
13968
13969 if test -n "${ZSH_VERSION+set}" ; then
13970 setopt NO_GLOB_SUBST
13971 fi
13972
13973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
13974 $as_echo_n "checking for objdir... " >&6; }
13975 if ${lt_cv_objdir+:} false; then :
13976 $as_echo_n "(cached) " >&6
13977 else
13978 rm -f .libs 2>/dev/null
13979 mkdir .libs 2>/dev/null
13980 if test -d .libs; then
13981 lt_cv_objdir=.libs
13982 else
13983 # MS-DOS does not allow filenames that begin with a dot.
13984 lt_cv_objdir=_libs
13985 fi
13986 rmdir .libs 2>/dev/null
13987 fi
13988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
13989 $as_echo "$lt_cv_objdir" >&6; }
13990 objdir=$lt_cv_objdir
13991
13992
13993
13994
13995
13996 cat >>confdefs.h <<_ACEOF
13997 #define LT_OBJDIR "$lt_cv_objdir/"
13998 _ACEOF
13999
14000
14001
14002
14003 case $host_os in
14004 aix3*)
14005 # AIX sometimes has problems with the GCC collect2 program. For some
14006 # reason, if we set the COLLECT_NAMES environment variable, the problems
14007 # vanish in a puff of smoke.
14008 if test "X${COLLECT_NAMES+set}" != Xset; then
14009 COLLECT_NAMES=
14010 export COLLECT_NAMES
14011 fi
14012 ;;
14013 esac
14014
14015 # Global variables:
14016 ofile=libtool
14017 can_build_shared=yes
14018
14019 # All known linkers require a `.a' archive for static linking (except MSVC,
14020 # which needs '.lib').
14021 libext=a
14022
14023 with_gnu_ld="$lt_cv_prog_gnu_ld"
14024
14025 old_CC="$CC"
14026 old_CFLAGS="$CFLAGS"
14027
14028 # Set sane defaults for various variables
14029 test -z "$CC" && CC=cc
14030 test -z "$LTCC" && LTCC=$CC
14031 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14032 test -z "$LD" && LD=ld
14033 test -z "$ac_objext" && ac_objext=o
14034
14035 for cc_temp in $compiler""; do
14036 case $cc_temp in
14037 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14038 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14039 \-*) ;;
14040 *) break;;
14041 esac
14042 done
14043 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
14044
14045
14046 # Only perform the check for file, if the check method requires it
14047 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14048 case $deplibs_check_method in
14049 file_magic*)
14050 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
14052 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
14053 if ${lt_cv_path_MAGIC_CMD+:} false; then :
14054 $as_echo_n "(cached) " >&6
14055 else
14056 case $MAGIC_CMD in
14057 [\\/*] | ?:[\\/]*)
14058 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14059 ;;
14060 *)
14061 lt_save_MAGIC_CMD="$MAGIC_CMD"
14062 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14063 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14064 for ac_dir in $ac_dummy; do
14065 IFS="$lt_save_ifs"
14066 test -z "$ac_dir" && ac_dir=.
14067 if test -f $ac_dir/${ac_tool_prefix}file; then
14068 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14069 if test -n "$file_magic_test_file"; then
14070 case $deplibs_check_method in
14071 "file_magic "*)
14072 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14073 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14074 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14075 $EGREP "$file_magic_regex" > /dev/null; then
14076 :
14077 else
14078 cat <<_LT_EOF 1>&2
14079
14080 *** Warning: the command libtool uses to detect shared libraries,
14081 *** $file_magic_cmd, produces output that libtool cannot recognize.
14082 *** The result is that libtool may fail to recognize shared libraries
14083 *** as such. This will affect the creation of libtool libraries that
14084 *** depend on shared libraries, but programs linked with such libtool
14085 *** libraries will work regardless of this problem. Nevertheless, you
14086 *** may want to report the problem to your system manager and/or to
14087 *** bug-libtool@gnu.org
14088
14089 _LT_EOF
14090 fi ;;
14091 esac
14092 fi
14093 break
14094 fi
14095 done
14096 IFS="$lt_save_ifs"
14097 MAGIC_CMD="$lt_save_MAGIC_CMD"
14098 ;;
14099 esac
14100 fi
14101
14102 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14103 if test -n "$MAGIC_CMD"; then
14104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14105 $as_echo "$MAGIC_CMD" >&6; }
14106 else
14107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14108 $as_echo "no" >&6; }
14109 fi
14110
14111
14112
14113
14114
14115 if test -z "$lt_cv_path_MAGIC_CMD"; then
14116 if test -n "$ac_tool_prefix"; then
14117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
14118 $as_echo_n "checking for file... " >&6; }
14119 if ${lt_cv_path_MAGIC_CMD+:} false; then :
14120 $as_echo_n "(cached) " >&6
14121 else
14122 case $MAGIC_CMD in
14123 [\\/*] | ?:[\\/]*)
14124 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14125 ;;
14126 *)
14127 lt_save_MAGIC_CMD="$MAGIC_CMD"
14128 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14129 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14130 for ac_dir in $ac_dummy; do
14131 IFS="$lt_save_ifs"
14132 test -z "$ac_dir" && ac_dir=.
14133 if test -f $ac_dir/file; then
14134 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14135 if test -n "$file_magic_test_file"; then
14136 case $deplibs_check_method in
14137 "file_magic "*)
14138 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14139 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14140 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14141 $EGREP "$file_magic_regex" > /dev/null; then
14142 :
14143 else
14144 cat <<_LT_EOF 1>&2
14145
14146 *** Warning: the command libtool uses to detect shared libraries,
14147 *** $file_magic_cmd, produces output that libtool cannot recognize.
14148 *** The result is that libtool may fail to recognize shared libraries
14149 *** as such. This will affect the creation of libtool libraries that
14150 *** depend on shared libraries, but programs linked with such libtool
14151 *** libraries will work regardless of this problem. Nevertheless, you
14152 *** may want to report the problem to your system manager and/or to
14153 *** bug-libtool@gnu.org
14154
14155 _LT_EOF
14156 fi ;;
14157 esac
14158 fi
14159 break
14160 fi
14161 done
14162 IFS="$lt_save_ifs"
14163 MAGIC_CMD="$lt_save_MAGIC_CMD"
14164 ;;
14165 esac
14166 fi
14167
14168 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14169 if test -n "$MAGIC_CMD"; then
14170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14171 $as_echo "$MAGIC_CMD" >&6; }
14172 else
14173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14174 $as_echo "no" >&6; }
14175 fi
14176
14177
14178 else
14179 MAGIC_CMD=:
14180 fi
14181 fi
14182
14183 fi
14184 ;;
14185 esac
14186
14187 # Use C for the default configuration in the libtool script
14188
14189 lt_save_CC="$CC"
14190 ac_ext=c
14191 ac_cpp='$CPP $CPPFLAGS'
14192 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14193 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14194 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14195
14196
14197 # Source file extension for C test sources.
14198 ac_ext=c
14199
14200 # Object file extension for compiled C test sources.
14201 objext=o
14202 objext=$objext
14203
14204 # Code to be used in simple compile tests
14205 lt_simple_compile_test_code="int some_variable = 0;"
14206
14207 # Code to be used in simple link tests
14208 lt_simple_link_test_code='int main(){return(0);}'
14209
14210
14211
14212
14213
14214
14215
14216 # If no C compiler was specified, use CC.
14217 LTCC=${LTCC-"$CC"}
14218
14219 # If no C compiler flags were specified, use CFLAGS.
14220 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14221
14222 # Allow CC to be a program name with arguments.
14223 compiler=$CC
14224
14225 # Save the default compiler, since it gets overwritten when the other
14226 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
14227 compiler_DEFAULT=$CC
14228
14229 # save warnings/boilerplate of simple test code
14230 ac_outfile=conftest.$ac_objext
14231 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14232 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14233 _lt_compiler_boilerplate=`cat conftest.err`
14234 $RM conftest*
14235
14236 ac_outfile=conftest.$ac_objext
14237 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14238 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14239 _lt_linker_boilerplate=`cat conftest.err`
14240 $RM -r conftest*
14241
14242
14243 if test -n "$compiler"; then
14244
14245 lt_prog_compiler_no_builtin_flag=
14246
14247 if test "$GCC" = yes; then
14248 case $cc_basename in
14249 nvcc*)
14250 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
14251 *)
14252 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
14253 esac
14254
14255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14256 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
14257 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
14258 $as_echo_n "(cached) " >&6
14259 else
14260 lt_cv_prog_compiler_rtti_exceptions=no
14261 ac_outfile=conftest.$ac_objext
14262 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14263 lt_compiler_flag="-fno-rtti -fno-exceptions"
14264 # Insert the option either (1) after the last *FLAGS variable, or
14265 # (2) before a word containing "conftest.", or (3) at the end.
14266 # Note that $ac_compile itself does not contain backslashes and begins
14267 # with a dollar sign (not a hyphen), so the echo should work correctly.
14268 # The option is referenced via a variable to avoid confusing sed.
14269 lt_compile=`echo "$ac_compile" | $SED \
14270 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14271 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14272 -e 's:$: $lt_compiler_flag:'`
14273 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14274 (eval "$lt_compile" 2>conftest.err)
14275 ac_status=$?
14276 cat conftest.err >&5
14277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14278 if (exit $ac_status) && test -s "$ac_outfile"; then
14279 # The compiler can only warn and ignore the option if not recognized
14280 # So say no if there are warnings other than the usual output.
14281 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14282 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14283 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14284 lt_cv_prog_compiler_rtti_exceptions=yes
14285 fi
14286 fi
14287 $RM conftest*
14288
14289 fi
14290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14291 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14292
14293 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14294 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14295 else
14296 :
14297 fi
14298
14299 fi
14300
14301
14302
14303
14304
14305
14306 lt_prog_compiler_wl=
14307 lt_prog_compiler_pic=
14308 lt_prog_compiler_static=
14309
14310
14311 if test "$GCC" = yes; then
14312 lt_prog_compiler_wl='-Wl,'
14313 lt_prog_compiler_static='-static'
14314
14315 case $host_os in
14316 aix*)
14317 # All AIX code is PIC.
14318 if test "$host_cpu" = ia64; then
14319 # AIX 5 now supports IA64 processor
14320 lt_prog_compiler_static='-Bstatic'
14321 fi
14322 ;;
14323
14324 amigaos*)
14325 case $host_cpu in
14326 powerpc)
14327 # see comment about AmigaOS4 .so support
14328 lt_prog_compiler_pic='-fPIC'
14329 ;;
14330 m68k)
14331 # FIXME: we need at least 68020 code to build shared libraries, but
14332 # adding the `-m68020' flag to GCC prevents building anything better,
14333 # like `-m68040'.
14334 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14335 ;;
14336 esac
14337 ;;
14338
14339 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14340 # PIC is the default for these OSes.
14341 ;;
14342
14343 mingw* | cygwin* | pw32* | os2* | cegcc*)
14344 # This hack is so that the source file can tell whether it is being
14345 # built for inclusion in a dll (and should export symbols for example).
14346 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14347 # (--disable-auto-import) libraries
14348 lt_prog_compiler_pic='-DDLL_EXPORT'
14349 ;;
14350
14351 darwin* | rhapsody*)
14352 # PIC is the default on this platform
14353 # Common symbols not allowed in MH_DYLIB files
14354 lt_prog_compiler_pic='-fno-common'
14355 ;;
14356
14357 haiku*)
14358 # PIC is the default for Haiku.
14359 # The "-static" flag exists, but is broken.
14360 lt_prog_compiler_static=
14361 ;;
14362
14363 hpux*)
14364 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14365 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14366 # sets the default TLS model and affects inlining.
14367 case $host_cpu in
14368 hppa*64*)
14369 # +Z the default
14370 ;;
14371 *)
14372 lt_prog_compiler_pic='-fPIC'
14373 ;;
14374 esac
14375 ;;
14376
14377 interix[3-9]*)
14378 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14379 # Instead, we relocate shared libraries at runtime.
14380 ;;
14381
14382 msdosdjgpp*)
14383 # Just because we use GCC doesn't mean we suddenly get shared libraries
14384 # on systems that don't support them.
14385 lt_prog_compiler_can_build_shared=no
14386 enable_shared=no
14387 ;;
14388
14389 *nto* | *qnx*)
14390 # QNX uses GNU C++, but need to define -shared option too, otherwise
14391 # it will coredump.
14392 lt_prog_compiler_pic='-fPIC -shared'
14393 ;;
14394
14395 sysv4*MP*)
14396 if test -d /usr/nec; then
14397 lt_prog_compiler_pic=-Kconform_pic
14398 fi
14399 ;;
14400
14401 *)
14402 lt_prog_compiler_pic='-fPIC'
14403 ;;
14404 esac
14405
14406 case $cc_basename in
14407 nvcc*) # Cuda Compiler Driver 2.2
14408 lt_prog_compiler_wl='-Xlinker '
14409 if test -n "$lt_prog_compiler_pic"; then
14410 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
14411 fi
14412 ;;
14413 esac
14414 else
14415 # PORTME Check for flag to pass linker flags through the system compiler.
14416 case $host_os in
14417 aix*)
14418 lt_prog_compiler_wl='-Wl,'
14419 if test "$host_cpu" = ia64; then
14420 # AIX 5 now supports IA64 processor
14421 lt_prog_compiler_static='-Bstatic'
14422 else
14423 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14424 fi
14425 ;;
14426
14427 mingw* | cygwin* | pw32* | os2* | cegcc*)
14428 # This hack is so that the source file can tell whether it is being
14429 # built for inclusion in a dll (and should export symbols for example).
14430 lt_prog_compiler_pic='-DDLL_EXPORT'
14431 ;;
14432
14433 hpux9* | hpux10* | hpux11*)
14434 lt_prog_compiler_wl='-Wl,'
14435 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14436 # not for PA HP-UX.
14437 case $host_cpu in
14438 hppa*64*|ia64*)
14439 # +Z the default
14440 ;;
14441 *)
14442 lt_prog_compiler_pic='+Z'
14443 ;;
14444 esac
14445 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14446 lt_prog_compiler_static='${wl}-a ${wl}archive'
14447 ;;
14448
14449 irix5* | irix6* | nonstopux*)
14450 lt_prog_compiler_wl='-Wl,'
14451 # PIC (with -KPIC) is the default.
14452 lt_prog_compiler_static='-non_shared'
14453 ;;
14454
14455 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14456 case $cc_basename in
14457 # old Intel for x86_64 which still supported -KPIC.
14458 ecc*)
14459 lt_prog_compiler_wl='-Wl,'
14460 lt_prog_compiler_pic='-KPIC'
14461 lt_prog_compiler_static='-static'
14462 ;;
14463 # icc used to be incompatible with GCC.
14464 # ICC 10 doesn't accept -KPIC any more.
14465 icc* | ifort*)
14466 lt_prog_compiler_wl='-Wl,'
14467 lt_prog_compiler_pic='-fPIC'
14468 lt_prog_compiler_static='-static'
14469 ;;
14470 # Lahey Fortran 8.1.
14471 lf95*)
14472 lt_prog_compiler_wl='-Wl,'
14473 lt_prog_compiler_pic='--shared'
14474 lt_prog_compiler_static='--static'
14475 ;;
14476 nagfor*)
14477 # NAG Fortran compiler
14478 lt_prog_compiler_wl='-Wl,-Wl,,'
14479 lt_prog_compiler_pic='-PIC'
14480 lt_prog_compiler_static='-Bstatic'
14481 ;;
14482 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
14483 # Portland Group compilers (*not* the Pentium gcc compiler,
14484 # which looks to be a dead project)
14485 lt_prog_compiler_wl='-Wl,'
14486 lt_prog_compiler_pic='-fpic'
14487 lt_prog_compiler_static='-Bstatic'
14488 ;;
14489 ccc*)
14490 lt_prog_compiler_wl='-Wl,'
14491 # All Alpha code is PIC.
14492 lt_prog_compiler_static='-non_shared'
14493 ;;
14494 xl* | bgxl* | bgf* | mpixl*)
14495 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
14496 lt_prog_compiler_wl='-Wl,'
14497 lt_prog_compiler_pic='-qpic'
14498 lt_prog_compiler_static='-qstaticlink'
14499 ;;
14500 *)
14501 case `$CC -V 2>&1 | sed 5q` in
14502 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
14503 # Sun Fortran 8.3 passes all unrecognized flags to the linker
14504 lt_prog_compiler_pic='-KPIC'
14505 lt_prog_compiler_static='-Bstatic'
14506 lt_prog_compiler_wl=''
14507 ;;
14508 *Sun\ F* | *Sun*Fortran*)
14509 lt_prog_compiler_pic='-KPIC'
14510 lt_prog_compiler_static='-Bstatic'
14511 lt_prog_compiler_wl='-Qoption ld '
14512 ;;
14513 *Sun\ C*)
14514 # Sun C 5.9
14515 lt_prog_compiler_pic='-KPIC'
14516 lt_prog_compiler_static='-Bstatic'
14517 lt_prog_compiler_wl='-Wl,'
14518 ;;
14519 *Intel*\ [CF]*Compiler*)
14520 lt_prog_compiler_wl='-Wl,'
14521 lt_prog_compiler_pic='-fPIC'
14522 lt_prog_compiler_static='-static'
14523 ;;
14524 *Portland\ Group*)
14525 lt_prog_compiler_wl='-Wl,'
14526 lt_prog_compiler_pic='-fpic'
14527 lt_prog_compiler_static='-Bstatic'
14528 ;;
14529 esac
14530 ;;
14531 esac
14532 ;;
14533
14534 newsos6)
14535 lt_prog_compiler_pic='-KPIC'
14536 lt_prog_compiler_static='-Bstatic'
14537 ;;
14538
14539 *nto* | *qnx*)
14540 # QNX uses GNU C++, but need to define -shared option too, otherwise
14541 # it will coredump.
14542 lt_prog_compiler_pic='-fPIC -shared'
14543 ;;
14544
14545 osf3* | osf4* | osf5*)
14546 lt_prog_compiler_wl='-Wl,'
14547 # All OSF/1 code is PIC.
14548 lt_prog_compiler_static='-non_shared'
14549 ;;
14550
14551 rdos*)
14552 lt_prog_compiler_static='-non_shared'
14553 ;;
14554
14555 solaris*)
14556 lt_prog_compiler_pic='-KPIC'
14557 lt_prog_compiler_static='-Bstatic'
14558 case $cc_basename in
14559 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
14560 lt_prog_compiler_wl='-Qoption ld ';;
14561 *)
14562 lt_prog_compiler_wl='-Wl,';;
14563 esac
14564 ;;
14565
14566 sunos4*)
14567 lt_prog_compiler_wl='-Qoption ld '
14568 lt_prog_compiler_pic='-PIC'
14569 lt_prog_compiler_static='-Bstatic'
14570 ;;
14571
14572 sysv4 | sysv4.2uw2* | sysv4.3*)
14573 lt_prog_compiler_wl='-Wl,'
14574 lt_prog_compiler_pic='-KPIC'
14575 lt_prog_compiler_static='-Bstatic'
14576 ;;
14577
14578 sysv4*MP*)
14579 if test -d /usr/nec ;then
14580 lt_prog_compiler_pic='-Kconform_pic'
14581 lt_prog_compiler_static='-Bstatic'
14582 fi
14583 ;;
14584
14585 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14586 lt_prog_compiler_wl='-Wl,'
14587 lt_prog_compiler_pic='-KPIC'
14588 lt_prog_compiler_static='-Bstatic'
14589 ;;
14590
14591 unicos*)
14592 lt_prog_compiler_wl='-Wl,'
14593 lt_prog_compiler_can_build_shared=no
14594 ;;
14595
14596 uts4*)
14597 lt_prog_compiler_pic='-pic'
14598 lt_prog_compiler_static='-Bstatic'
14599 ;;
14600
14601 *)
14602 lt_prog_compiler_can_build_shared=no
14603 ;;
14604 esac
14605 fi
14606
14607 case $host_os in
14608 # For platforms which do not support PIC, -DPIC is meaningless:
14609 *djgpp*)
14610 lt_prog_compiler_pic=
14611 ;;
14612 *)
14613 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14614 ;;
14615 esac
14616
14617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14618 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14619 if ${lt_cv_prog_compiler_pic+:} false; then :
14620 $as_echo_n "(cached) " >&6
14621 else
14622 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
14623 fi
14624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
14625 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
14626 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
14627
14628 #
14629 # Check to make sure the PIC flag actually works.
14630 #
14631 if test -n "$lt_prog_compiler_pic"; then
14632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14633 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
14634 if ${lt_cv_prog_compiler_pic_works+:} false; then :
14635 $as_echo_n "(cached) " >&6
14636 else
14637 lt_cv_prog_compiler_pic_works=no
14638 ac_outfile=conftest.$ac_objext
14639 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14640 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14641 # Insert the option either (1) after the last *FLAGS variable, or
14642 # (2) before a word containing "conftest.", or (3) at the end.
14643 # Note that $ac_compile itself does not contain backslashes and begins
14644 # with a dollar sign (not a hyphen), so the echo should work correctly.
14645 # The option is referenced via a variable to avoid confusing sed.
14646 lt_compile=`echo "$ac_compile" | $SED \
14647 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14648 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14649 -e 's:$: $lt_compiler_flag:'`
14650 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14651 (eval "$lt_compile" 2>conftest.err)
14652 ac_status=$?
14653 cat conftest.err >&5
14654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14655 if (exit $ac_status) && test -s "$ac_outfile"; then
14656 # The compiler can only warn and ignore the option if not recognized
14657 # So say no if there are warnings other than the usual output.
14658 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14659 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14660 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14661 lt_cv_prog_compiler_pic_works=yes
14662 fi
14663 fi
14664 $RM conftest*
14665
14666 fi
14667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
14668 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
14669
14670 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
14671 case $lt_prog_compiler_pic in
14672 "" | " "*) ;;
14673 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14674 esac
14675 else
14676 lt_prog_compiler_pic=
14677 lt_prog_compiler_can_build_shared=no
14678 fi
14679
14680 fi
14681
14682
14683
14684
14685
14686
14687
14688
14689
14690
14691
14692 #
14693 # Check to make sure the static flag actually works.
14694 #
14695 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14697 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14698 if ${lt_cv_prog_compiler_static_works+:} false; then :
14699 $as_echo_n "(cached) " >&6
14700 else
14701 lt_cv_prog_compiler_static_works=no
14702 save_LDFLAGS="$LDFLAGS"
14703 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14704 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14705 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14706 # The linker can only warn and ignore the option if not recognized
14707 # So say no if there are warnings
14708 if test -s conftest.err; then
14709 # Append any errors to the config.log.
14710 cat conftest.err 1>&5
14711 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14712 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14713 if diff conftest.exp conftest.er2 >/dev/null; then
14714 lt_cv_prog_compiler_static_works=yes
14715 fi
14716 else
14717 lt_cv_prog_compiler_static_works=yes
14718 fi
14719 fi
14720 $RM -r conftest*
14721 LDFLAGS="$save_LDFLAGS"
14722
14723 fi
14724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
14725 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
14726
14727 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
14728 :
14729 else
14730 lt_prog_compiler_static=
14731 fi
14732
14733
14734
14735
14736
14737
14738
14739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14740 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14741 if ${lt_cv_prog_compiler_c_o+:} false; then :
14742 $as_echo_n "(cached) " >&6
14743 else
14744 lt_cv_prog_compiler_c_o=no
14745 $RM -r conftest 2>/dev/null
14746 mkdir conftest
14747 cd conftest
14748 mkdir out
14749 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14750
14751 lt_compiler_flag="-o out/conftest2.$ac_objext"
14752 # Insert the option either (1) after the last *FLAGS variable, or
14753 # (2) before a word containing "conftest.", or (3) at the end.
14754 # Note that $ac_compile itself does not contain backslashes and begins
14755 # with a dollar sign (not a hyphen), so the echo should work correctly.
14756 lt_compile=`echo "$ac_compile" | $SED \
14757 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14758 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14759 -e 's:$: $lt_compiler_flag:'`
14760 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14761 (eval "$lt_compile" 2>out/conftest.err)
14762 ac_status=$?
14763 cat out/conftest.err >&5
14764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14765 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14766 then
14767 # The compiler can only warn and ignore the option if not recognized
14768 # So say no if there are warnings
14769 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14770 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14771 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14772 lt_cv_prog_compiler_c_o=yes
14773 fi
14774 fi
14775 chmod u+w . 2>&5
14776 $RM conftest*
14777 # SGI C++ compiler will create directory out/ii_files/ for
14778 # template instantiation
14779 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14780 $RM out/* && rmdir out
14781 cd ..
14782 $RM -r conftest
14783 $RM conftest*
14784
14785 fi
14786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
14787 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14788
14789
14790
14791
14792
14793
14794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14795 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14796 if ${lt_cv_prog_compiler_c_o+:} false; then :
14797 $as_echo_n "(cached) " >&6
14798 else
14799 lt_cv_prog_compiler_c_o=no
14800 $RM -r conftest 2>/dev/null
14801 mkdir conftest
14802 cd conftest
14803 mkdir out
14804 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14805
14806 lt_compiler_flag="-o out/conftest2.$ac_objext"
14807 # Insert the option either (1) after the last *FLAGS variable, or
14808 # (2) before a word containing "conftest.", or (3) at the end.
14809 # Note that $ac_compile itself does not contain backslashes and begins
14810 # with a dollar sign (not a hyphen), so the echo should work correctly.
14811 lt_compile=`echo "$ac_compile" | $SED \
14812 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14813 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14814 -e 's:$: $lt_compiler_flag:'`
14815 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14816 (eval "$lt_compile" 2>out/conftest.err)
14817 ac_status=$?
14818 cat out/conftest.err >&5
14819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14820 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14821 then
14822 # The compiler can only warn and ignore the option if not recognized
14823 # So say no if there are warnings
14824 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14825 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14826 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14827 lt_cv_prog_compiler_c_o=yes
14828 fi
14829 fi
14830 chmod u+w . 2>&5
14831 $RM conftest*
14832 # SGI C++ compiler will create directory out/ii_files/ for
14833 # template instantiation
14834 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14835 $RM out/* && rmdir out
14836 cd ..
14837 $RM -r conftest
14838 $RM conftest*
14839
14840 fi
14841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
14842 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14843
14844
14845
14846
14847 hard_links="nottested"
14848 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
14849 # do not overwrite the value of need_locks provided by the user
14850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14851 $as_echo_n "checking if we can lock with hard links... " >&6; }
14852 hard_links=yes
14853 $RM conftest*
14854 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14855 touch conftest.a
14856 ln conftest.a conftest.b 2>&5 || hard_links=no
14857 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14859 $as_echo "$hard_links" >&6; }
14860 if test "$hard_links" = no; then
14861 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14862 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14863 need_locks=warn
14864 fi
14865 else
14866 need_locks=no
14867 fi
14868
14869
14870
14871
14872
14873
14874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14875 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14876
14877 runpath_var=
14878 allow_undefined_flag=
14879 always_export_symbols=no
14880 archive_cmds=
14881 archive_expsym_cmds=
14882 compiler_needs_object=no
14883 enable_shared_with_static_runtimes=no
14884 export_dynamic_flag_spec=
14885 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14886 hardcode_automatic=no
14887 hardcode_direct=no
14888 hardcode_direct_absolute=no
14889 hardcode_libdir_flag_spec=
14890 hardcode_libdir_separator=
14891 hardcode_minus_L=no
14892 hardcode_shlibpath_var=unsupported
14893 inherit_rpath=no
14894 link_all_deplibs=unknown
14895 module_cmds=
14896 module_expsym_cmds=
14897 old_archive_from_new_cmds=
14898 old_archive_from_expsyms_cmds=
14899 thread_safe_flag_spec=
14900 whole_archive_flag_spec=
14901 # include_expsyms should be a list of space-separated symbols to be *always*
14902 # included in the symbol list
14903 include_expsyms=
14904 # exclude_expsyms can be an extended regexp of symbols to exclude
14905 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14906 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14907 # as well as any symbol that contains `d'.
14908 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14909 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14910 # platforms (ab)use it in PIC code, but their linkers get confused if
14911 # the symbol is explicitly referenced. Since portable code cannot
14912 # rely on this symbol name, it's probably fine to never include it in
14913 # preloaded symbol tables.
14914 # Exclude shared library initialization/finalization symbols.
14915 extract_expsyms_cmds=
14916
14917 case $host_os in
14918 cygwin* | mingw* | pw32* | cegcc*)
14919 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14920 # When not using gcc, we currently assume that we are using
14921 # Microsoft Visual C++.
14922 if test "$GCC" != yes; then
14923 with_gnu_ld=no
14924 fi
14925 ;;
14926 interix*)
14927 # we just hope/assume this is gcc and not c89 (= MSVC++)
14928 with_gnu_ld=yes
14929 ;;
14930 openbsd*)
14931 with_gnu_ld=no
14932 ;;
14933 esac
14934
14935 ld_shlibs=yes
14936
14937 # On some targets, GNU ld is compatible enough with the native linker
14938 # that we're better off using the native interface for both.
14939 lt_use_gnu_ld_interface=no
14940 if test "$with_gnu_ld" = yes; then
14941 case $host_os in
14942 aix*)
14943 # The AIX port of GNU ld has always aspired to compatibility
14944 # with the native linker. However, as the warning in the GNU ld
14945 # block says, versions before 2.19.5* couldn't really create working
14946 # shared libraries, regardless of the interface used.
14947 case `$LD -v 2>&1` in
14948 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
14949 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
14950 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
14951 *)
14952 lt_use_gnu_ld_interface=yes
14953 ;;
14954 esac
14955 ;;
14956 *)
14957 lt_use_gnu_ld_interface=yes
14958 ;;
14959 esac
14960 fi
14961
14962 if test "$lt_use_gnu_ld_interface" = yes; then
14963 # If archive_cmds runs LD, not CC, wlarc should be empty
14964 wlarc='${wl}'
14965
14966 # Set some defaults for GNU ld with shared library support. These
14967 # are reset later if shared libraries are not supported. Putting them
14968 # here allows them to be overridden if necessary.
14969 runpath_var=LD_RUN_PATH
14970 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14971 export_dynamic_flag_spec='${wl}--export-dynamic'
14972 # ancient GNU ld didn't support --whole-archive et. al.
14973 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
14974 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14975 else
14976 whole_archive_flag_spec=
14977 fi
14978 supports_anon_versioning=no
14979 case `$LD -v 2>&1` in
14980 *GNU\ gold*) supports_anon_versioning=yes ;;
14981 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14982 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14983 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14984 *\ 2.11.*) ;; # other 2.11 versions
14985 *) supports_anon_versioning=yes ;;
14986 esac
14987
14988 # See if GNU ld supports shared libraries.
14989 case $host_os in
14990 aix[3-9]*)
14991 # On AIX/PPC, the GNU linker is very broken
14992 if test "$host_cpu" != ia64; then
14993 ld_shlibs=no
14994 cat <<_LT_EOF 1>&2
14995
14996 *** Warning: the GNU linker, at least up to release 2.19, is reported
14997 *** to be unable to reliably create shared libraries on AIX.
14998 *** Therefore, libtool is disabling shared libraries support. If you
14999 *** really care for shared libraries, you may want to install binutils
15000 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
15001 *** You will then need to restart the configuration process.
15002
15003 _LT_EOF
15004 fi
15005 ;;
15006
15007 amigaos*)
15008 case $host_cpu in
15009 powerpc)
15010 # see comment about AmigaOS4 .so support
15011 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15012 archive_expsym_cmds=''
15013 ;;
15014 m68k)
15015 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)'
15016 hardcode_libdir_flag_spec='-L$libdir'
15017 hardcode_minus_L=yes
15018 ;;
15019 esac
15020 ;;
15021
15022 beos*)
15023 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15024 allow_undefined_flag=unsupported
15025 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
15026 # support --undefined. This deserves some investigation. FIXME
15027 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15028 else
15029 ld_shlibs=no
15030 fi
15031 ;;
15032
15033 cygwin* | mingw* | pw32* | cegcc*)
15034 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15035 # as there is no search path for DLLs.
15036 hardcode_libdir_flag_spec='-L$libdir'
15037 export_dynamic_flag_spec='${wl}--export-all-symbols'
15038 allow_undefined_flag=unsupported
15039 always_export_symbols=no
15040 enable_shared_with_static_runtimes=yes
15041 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'
15042 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
15043
15044 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15045 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15046 # If the export-symbols file already is a .def file (1st line
15047 # is EXPORTS), use it as is; otherwise, prepend...
15048 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15049 cp $export_symbols $output_objdir/$soname.def;
15050 else
15051 echo EXPORTS > $output_objdir/$soname.def;
15052 cat $export_symbols >> $output_objdir/$soname.def;
15053 fi~
15054 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15055 else
15056 ld_shlibs=no
15057 fi
15058 ;;
15059
15060 haiku*)
15061 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15062 link_all_deplibs=yes
15063 ;;
15064
15065 interix[3-9]*)
15066 hardcode_direct=no
15067 hardcode_shlibpath_var=no
15068 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15069 export_dynamic_flag_spec='${wl}-E'
15070 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15071 # Instead, shared libraries are loaded at an image base (0x10000000 by
15072 # default) and relocated if they conflict, which is a slow very memory
15073 # consuming and fragmenting process. To avoid this, we pick a random,
15074 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15075 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15076 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15077 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'
15078 ;;
15079
15080 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
15081 tmp_diet=no
15082 if test "$host_os" = linux-dietlibc; then
15083 case $cc_basename in
15084 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
15085 esac
15086 fi
15087 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
15088 && test "$tmp_diet" = no
15089 then
15090 tmp_addflag=' $pic_flag'
15091 tmp_sharedflag='-shared'
15092 case $cc_basename,$host_cpu in
15093 pgcc*) # Portland Group C compiler
15094 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'
15095 tmp_addflag=' $pic_flag'
15096 ;;
15097 pgf77* | pgf90* | pgf95* | pgfortran*)
15098 # Portland Group f77 and f90 compilers
15099 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'
15100 tmp_addflag=' $pic_flag -Mnomain' ;;
15101 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15102 tmp_addflag=' -i_dynamic' ;;
15103 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15104 tmp_addflag=' -i_dynamic -nofor_main' ;;
15105 ifc* | ifort*) # Intel Fortran compiler
15106 tmp_addflag=' -nofor_main' ;;
15107 lf95*) # Lahey Fortran 8.1
15108 whole_archive_flag_spec=
15109 tmp_sharedflag='--shared' ;;
15110 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
15111 tmp_sharedflag='-qmkshrobj'
15112 tmp_addflag= ;;
15113 nvcc*) # Cuda Compiler Driver 2.2
15114 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'
15115 compiler_needs_object=yes
15116 ;;
15117 esac
15118 case `$CC -V 2>&1 | sed 5q` in
15119 *Sun\ C*) # Sun C 5.9
15120 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'
15121 compiler_needs_object=yes
15122 tmp_sharedflag='-G' ;;
15123 *Sun\ F*) # Sun Fortran 8.3
15124 tmp_sharedflag='-G' ;;
15125 esac
15126 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15127
15128 if test "x$supports_anon_versioning" = xyes; then
15129 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15130 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15131 echo "local: *; };" >> $output_objdir/$libname.ver~
15132 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15133 fi
15134
15135 case $cc_basename in
15136 xlf* | bgf* | bgxlf* | mpixlf*)
15137 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
15138 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
15139 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15140 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
15141 if test "x$supports_anon_versioning" = xyes; then
15142 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15143 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15144 echo "local: *; };" >> $output_objdir/$libname.ver~
15145 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
15146 fi
15147 ;;
15148 esac
15149 else
15150 ld_shlibs=no
15151 fi
15152 ;;
15153
15154 netbsd*)
15155 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15156 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15157 wlarc=
15158 else
15159 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15160 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15161 fi
15162 ;;
15163
15164 solaris*)
15165 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
15166 ld_shlibs=no
15167 cat <<_LT_EOF 1>&2
15168
15169 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15170 *** create shared libraries on Solaris systems. Therefore, libtool
15171 *** is disabling shared libraries support. We urge you to upgrade GNU
15172 *** binutils to release 2.9.1 or newer. Another option is to modify
15173 *** your PATH or compiler configuration so that the native linker is
15174 *** used, and then restart.
15175
15176 _LT_EOF
15177 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15178 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15179 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15180 else
15181 ld_shlibs=no
15182 fi
15183 ;;
15184
15185 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15186 case `$LD -v 2>&1` in
15187 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15188 ld_shlibs=no
15189 cat <<_LT_EOF 1>&2
15190
15191 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15192 *** reliably create shared libraries on SCO systems. Therefore, libtool
15193 *** is disabling shared libraries support. We urge you to upgrade GNU
15194 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15195 *** your PATH or compiler configuration so that the native linker is
15196 *** used, and then restart.
15197
15198 _LT_EOF
15199 ;;
15200 *)
15201 # For security reasons, it is highly recommended that you always
15202 # use absolute paths for naming shared libraries, and exclude the
15203 # DT_RUNPATH tag from executables and libraries. But doing so
15204 # requires that you compile everything twice, which is a pain.
15205 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15206 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15207 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15208 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15209 else
15210 ld_shlibs=no
15211 fi
15212 ;;
15213 esac
15214 ;;
15215
15216 sunos4*)
15217 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15218 wlarc=
15219 hardcode_direct=yes
15220 hardcode_shlibpath_var=no
15221 ;;
15222
15223 *)
15224 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15225 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15226 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15227 else
15228 ld_shlibs=no
15229 fi
15230 ;;
15231 esac
15232
15233 if test "$ld_shlibs" = no; then
15234 runpath_var=
15235 hardcode_libdir_flag_spec=
15236 export_dynamic_flag_spec=
15237 whole_archive_flag_spec=
15238 fi
15239 else
15240 # PORTME fill in a description of your system's linker (not GNU ld)
15241 case $host_os in
15242 aix3*)
15243 allow_undefined_flag=unsupported
15244 always_export_symbols=yes
15245 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'
15246 # Note: this linker hardcodes the directories in LIBPATH if there
15247 # are no directories specified by -L.
15248 hardcode_minus_L=yes
15249 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15250 # Neither direct hardcoding nor static linking is supported with a
15251 # broken collect2.
15252 hardcode_direct=unsupported
15253 fi
15254 ;;
15255
15256 aix[4-9]*)
15257 if test "$host_cpu" = ia64; then
15258 # On IA64, the linker does run time linking by default, so we don't
15259 # have to do anything special.
15260 aix_use_runtimelinking=no
15261 exp_sym_flag='-Bexport'
15262 no_entry_flag=""
15263 else
15264 # If we're using GNU nm, then we don't want the "-C" option.
15265 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15266 # Also, AIX nm treats weak defined symbols like other global
15267 # defined symbols, whereas GNU nm marks them as "W".
15268 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15269 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'
15270 else
15271 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'
15272 fi
15273 aix_use_runtimelinking=no
15274
15275 # Test if we are trying to use run time linking or normal
15276 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15277 # need to do runtime linking.
15278 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15279 for ld_flag in $LDFLAGS; do
15280 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15281 aix_use_runtimelinking=yes
15282 break
15283 fi
15284 done
15285 ;;
15286 esac
15287
15288 exp_sym_flag='-bexport'
15289 no_entry_flag='-bnoentry'
15290 fi
15291
15292 # When large executables or shared objects are built, AIX ld can
15293 # have problems creating the table of contents. If linking a library
15294 # or program results in "error TOC overflow" add -mminimal-toc to
15295 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15296 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15297
15298 archive_cmds=''
15299 hardcode_direct=yes
15300 hardcode_direct_absolute=yes
15301 hardcode_libdir_separator=':'
15302 link_all_deplibs=yes
15303 file_list_spec='${wl}-f,'
15304
15305 if test "$GCC" = yes; then
15306 case $host_os in aix4.[012]|aix4.[012].*)
15307 # We only want to do this on AIX 4.2 and lower, the check
15308 # below for broken collect2 doesn't work under 4.3+
15309 collect2name=`${CC} -print-prog-name=collect2`
15310 if test -f "$collect2name" &&
15311 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15312 then
15313 # We have reworked collect2
15314 :
15315 else
15316 # We have old collect2
15317 hardcode_direct=unsupported
15318 # It fails to find uninstalled libraries when the uninstalled
15319 # path is not listed in the libpath. Setting hardcode_minus_L
15320 # to unsupported forces relinking
15321 hardcode_minus_L=yes
15322 hardcode_libdir_flag_spec='-L$libdir'
15323 hardcode_libdir_separator=
15324 fi
15325 ;;
15326 esac
15327 shared_flag='-shared'
15328 if test "$aix_use_runtimelinking" = yes; then
15329 shared_flag="$shared_flag "'${wl}-G'
15330 fi
15331 else
15332 # not using gcc
15333 if test "$host_cpu" = ia64; then
15334 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15335 # chokes on -Wl,-G. The following line is correct:
15336 shared_flag='-G'
15337 else
15338 if test "$aix_use_runtimelinking" = yes; then
15339 shared_flag='${wl}-G'
15340 else
15341 shared_flag='${wl}-bM:SRE'
15342 fi
15343 fi
15344 fi
15345
15346 export_dynamic_flag_spec='${wl}-bexpall'
15347 # It seems that -bexpall does not export symbols beginning with
15348 # underscore (_), so it is better to generate a list of symbols to export.
15349 always_export_symbols=yes
15350 if test "$aix_use_runtimelinking" = yes; then
15351 # Warning - without using the other runtime loading flags (-brtl),
15352 # -berok will link without error, but may produce a broken library.
15353 allow_undefined_flag='-berok'
15354 # Determine the default libpath from the value encoded in an
15355 # empty executable.
15356 if test "${lt_cv_aix_libpath+set}" = set; then
15357 aix_libpath=$lt_cv_aix_libpath
15358 else
15359 if ${lt_cv_aix_libpath_+:} false; then :
15360 $as_echo_n "(cached) " >&6
15361 else
15362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15363 /* end confdefs.h. */
15364
15365 int
15366 main ()
15367 {
15368
15369 ;
15370 return 0;
15371 }
15372 _ACEOF
15373 if ac_fn_c_try_link "$LINENO"; then :
15374
15375 lt_aix_libpath_sed='
15376 /Import File Strings/,/^$/ {
15377 /^0/ {
15378 s/^0 *\([^ ]*\) *$/\1/
15379 p
15380 }
15381 }'
15382 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15383 # Check for a 64-bit object if we didn't find anything.
15384 if test -z "$lt_cv_aix_libpath_"; then
15385 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15386 fi
15387 fi
15388 rm -f core conftest.err conftest.$ac_objext \
15389 conftest$ac_exeext conftest.$ac_ext
15390 if test -z "$lt_cv_aix_libpath_"; then
15391 lt_cv_aix_libpath_="/usr/lib:/lib"
15392 fi
15393
15394 fi
15395
15396 aix_libpath=$lt_cv_aix_libpath_
15397 fi
15398
15399 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15400 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"
15401 else
15402 if test "$host_cpu" = ia64; then
15403 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15404 allow_undefined_flag="-z nodefs"
15405 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"
15406 else
15407 # Determine the default libpath from the value encoded in an
15408 # empty executable.
15409 if test "${lt_cv_aix_libpath+set}" = set; then
15410 aix_libpath=$lt_cv_aix_libpath
15411 else
15412 if ${lt_cv_aix_libpath_+:} false; then :
15413 $as_echo_n "(cached) " >&6
15414 else
15415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15416 /* end confdefs.h. */
15417
15418 int
15419 main ()
15420 {
15421
15422 ;
15423 return 0;
15424 }
15425 _ACEOF
15426 if ac_fn_c_try_link "$LINENO"; then :
15427
15428 lt_aix_libpath_sed='
15429 /Import File Strings/,/^$/ {
15430 /^0/ {
15431 s/^0 *\([^ ]*\) *$/\1/
15432 p
15433 }
15434 }'
15435 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15436 # Check for a 64-bit object if we didn't find anything.
15437 if test -z "$lt_cv_aix_libpath_"; then
15438 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15439 fi
15440 fi
15441 rm -f core conftest.err conftest.$ac_objext \
15442 conftest$ac_exeext conftest.$ac_ext
15443 if test -z "$lt_cv_aix_libpath_"; then
15444 lt_cv_aix_libpath_="/usr/lib:/lib"
15445 fi
15446
15447 fi
15448
15449 aix_libpath=$lt_cv_aix_libpath_
15450 fi
15451
15452 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15453 # Warning - without using the other run time loading flags,
15454 # -berok will link without error, but may produce a broken library.
15455 no_undefined_flag=' ${wl}-bernotok'
15456 allow_undefined_flag=' ${wl}-berok'
15457 if test "$with_gnu_ld" = yes; then
15458 # We only use this code for GNU lds that support --whole-archive.
15459 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15460 else
15461 # Exported symbols can be pulled into shared objects from archives
15462 whole_archive_flag_spec='$convenience'
15463 fi
15464 archive_cmds_need_lc=yes
15465 # This is similar to how AIX traditionally builds its shared libraries.
15466 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'
15467 fi
15468 fi
15469 ;;
15470
15471 amigaos*)
15472 case $host_cpu in
15473 powerpc)
15474 # see comment about AmigaOS4 .so support
15475 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15476 archive_expsym_cmds=''
15477 ;;
15478 m68k)
15479 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)'
15480 hardcode_libdir_flag_spec='-L$libdir'
15481 hardcode_minus_L=yes
15482 ;;
15483 esac
15484 ;;
15485
15486 bsdi[45]*)
15487 export_dynamic_flag_spec=-rdynamic
15488 ;;
15489
15490 cygwin* | mingw* | pw32* | cegcc*)
15491 # When not using gcc, we currently assume that we are using
15492 # Microsoft Visual C++.
15493 # hardcode_libdir_flag_spec is actually meaningless, as there is
15494 # no search path for DLLs.
15495 case $cc_basename in
15496 cl*)
15497 # Native MSVC
15498 hardcode_libdir_flag_spec=' '
15499 allow_undefined_flag=unsupported
15500 always_export_symbols=yes
15501 file_list_spec='@'
15502 # Tell ltmain to make .lib files, not .a files.
15503 libext=lib
15504 # Tell ltmain to make .dll files, not .so files.
15505 shrext_cmds=".dll"
15506 # FIXME: Setting linknames here is a bad hack.
15507 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
15508 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15509 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
15510 else
15511 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
15512 fi~
15513 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
15514 linknames='
15515 # The linker will not automatically build a static lib if we build a DLL.
15516 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
15517 enable_shared_with_static_runtimes=yes
15518 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
15519 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15520 # Don't use ranlib
15521 old_postinstall_cmds='chmod 644 $oldlib'
15522 postlink_cmds='lt_outputfile="@OUTPUT@"~
15523 lt_tool_outputfile="@TOOL_OUTPUT@"~
15524 case $lt_outputfile in
15525 *.exe|*.EXE) ;;
15526 *)
15527 lt_outputfile="$lt_outputfile.exe"
15528 lt_tool_outputfile="$lt_tool_outputfile.exe"
15529 ;;
15530 esac~
15531 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
15532 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
15533 $RM "$lt_outputfile.manifest";
15534 fi'
15535 ;;
15536 *)
15537 # Assume MSVC wrapper
15538 hardcode_libdir_flag_spec=' '
15539 allow_undefined_flag=unsupported
15540 # Tell ltmain to make .lib files, not .a files.
15541 libext=lib
15542 # Tell ltmain to make .dll files, not .so files.
15543 shrext_cmds=".dll"
15544 # FIXME: Setting linknames here is a bad hack.
15545 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
15546 # The linker will automatically build a .lib file if we build a DLL.
15547 old_archive_from_new_cmds='true'
15548 # FIXME: Should let the user specify the lib program.
15549 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
15550 enable_shared_with_static_runtimes=yes
15551 ;;
15552 esac
15553 ;;
15554
15555 darwin* | rhapsody*)
15556
15557
15558 archive_cmds_need_lc=no
15559 hardcode_direct=no
15560 hardcode_automatic=yes
15561 hardcode_shlibpath_var=unsupported
15562 if test "$lt_cv_ld_force_load" = "yes"; then
15563 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\"`'
15564
15565 else
15566 whole_archive_flag_spec=''
15567 fi
15568 link_all_deplibs=yes
15569 allow_undefined_flag="$_lt_dar_allow_undefined"
15570 case $cc_basename in
15571 ifort*) _lt_dar_can_shared=yes ;;
15572 *) _lt_dar_can_shared=$GCC ;;
15573 esac
15574 if test "$_lt_dar_can_shared" = "yes"; then
15575 output_verbose_link_cmd=func_echo_all
15576 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15577 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15578 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}"
15579 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}"
15580
15581 else
15582 ld_shlibs=no
15583 fi
15584
15585 ;;
15586
15587 dgux*)
15588 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15589 hardcode_libdir_flag_spec='-L$libdir'
15590 hardcode_shlibpath_var=no
15591 ;;
15592
15593 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15594 # support. Future versions do this automatically, but an explicit c++rt0.o
15595 # does not break anything, and helps significantly (at the cost of a little
15596 # extra space).
15597 freebsd2.2*)
15598 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15599 hardcode_libdir_flag_spec='-R$libdir'
15600 hardcode_direct=yes
15601 hardcode_shlibpath_var=no
15602 ;;
15603
15604 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15605 freebsd2.*)
15606 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15607 hardcode_direct=yes
15608 hardcode_minus_L=yes
15609 hardcode_shlibpath_var=no
15610 ;;
15611
15612 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15613 freebsd* | dragonfly*)
15614 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15615 hardcode_libdir_flag_spec='-R$libdir'
15616 hardcode_direct=yes
15617 hardcode_shlibpath_var=no
15618 ;;
15619
15620 hpux9*)
15621 if test "$GCC" = yes; then
15622 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'
15623 else
15624 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'
15625 fi
15626 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15627 hardcode_libdir_separator=:
15628 hardcode_direct=yes
15629
15630 # hardcode_minus_L: Not really in the search PATH,
15631 # but as the default location of the library.
15632 hardcode_minus_L=yes
15633 export_dynamic_flag_spec='${wl}-E'
15634 ;;
15635
15636 hpux10*)
15637 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
15638 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15639 else
15640 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15641 fi
15642 if test "$with_gnu_ld" = no; then
15643 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15644 hardcode_libdir_separator=:
15645 hardcode_direct=yes
15646 hardcode_direct_absolute=yes
15647 export_dynamic_flag_spec='${wl}-E'
15648 # hardcode_minus_L: Not really in the search PATH,
15649 # but as the default location of the library.
15650 hardcode_minus_L=yes
15651 fi
15652 ;;
15653
15654 hpux11*)
15655 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
15656 case $host_cpu in
15657 hppa*64*)
15658 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15659 ;;
15660 ia64*)
15661 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15662 ;;
15663 *)
15664 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15665 ;;
15666 esac
15667 else
15668 case $host_cpu in
15669 hppa*64*)
15670 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15671 ;;
15672 ia64*)
15673 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15674 ;;
15675 *)
15676
15677 # Older versions of the 11.00 compiler do not understand -b yet
15678 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
15679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
15680 $as_echo_n "checking if $CC understands -b... " >&6; }
15681 if ${lt_cv_prog_compiler__b+:} false; then :
15682 $as_echo_n "(cached) " >&6
15683 else
15684 lt_cv_prog_compiler__b=no
15685 save_LDFLAGS="$LDFLAGS"
15686 LDFLAGS="$LDFLAGS -b"
15687 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15688 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15689 # The linker can only warn and ignore the option if not recognized
15690 # So say no if there are warnings
15691 if test -s conftest.err; then
15692 # Append any errors to the config.log.
15693 cat conftest.err 1>&5
15694 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15695 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15696 if diff conftest.exp conftest.er2 >/dev/null; then
15697 lt_cv_prog_compiler__b=yes
15698 fi
15699 else
15700 lt_cv_prog_compiler__b=yes
15701 fi
15702 fi
15703 $RM -r conftest*
15704 LDFLAGS="$save_LDFLAGS"
15705
15706 fi
15707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
15708 $as_echo "$lt_cv_prog_compiler__b" >&6; }
15709
15710 if test x"$lt_cv_prog_compiler__b" = xyes; then
15711 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15712 else
15713 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15714 fi
15715
15716 ;;
15717 esac
15718 fi
15719 if test "$with_gnu_ld" = no; then
15720 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15721 hardcode_libdir_separator=:
15722
15723 case $host_cpu in
15724 hppa*64*|ia64*)
15725 hardcode_direct=no
15726 hardcode_shlibpath_var=no
15727 ;;
15728 *)
15729 hardcode_direct=yes
15730 hardcode_direct_absolute=yes
15731 export_dynamic_flag_spec='${wl}-E'
15732
15733 # hardcode_minus_L: Not really in the search PATH,
15734 # but as the default location of the library.
15735 hardcode_minus_L=yes
15736 ;;
15737 esac
15738 fi
15739 ;;
15740
15741 irix5* | irix6* | nonstopux*)
15742 if test "$GCC" = yes; then
15743 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'
15744 # Try to use the -exported_symbol ld option, if it does not
15745 # work, assume that -exports_file does not work either and
15746 # implicitly export all symbols.
15747 # This should be the same for all languages, so no per-tag cache variable.
15748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
15749 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
15750 if ${lt_cv_irix_exported_symbol+:} false; then :
15751 $as_echo_n "(cached) " >&6
15752 else
15753 save_LDFLAGS="$LDFLAGS"
15754 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
15755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15756 /* end confdefs.h. */
15757 int foo (void) { return 0; }
15758 _ACEOF
15759 if ac_fn_c_try_link "$LINENO"; then :
15760 lt_cv_irix_exported_symbol=yes
15761 else
15762 lt_cv_irix_exported_symbol=no
15763 fi
15764 rm -f core conftest.err conftest.$ac_objext \
15765 conftest$ac_exeext conftest.$ac_ext
15766 LDFLAGS="$save_LDFLAGS"
15767 fi
15768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
15769 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
15770 if test "$lt_cv_irix_exported_symbol" = yes; then
15771 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'
15772 fi
15773 else
15774 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'
15775 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'
15776 fi
15777 archive_cmds_need_lc='no'
15778 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15779 hardcode_libdir_separator=:
15780 inherit_rpath=yes
15781 link_all_deplibs=yes
15782 ;;
15783
15784 netbsd*)
15785 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15786 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15787 else
15788 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15789 fi
15790 hardcode_libdir_flag_spec='-R$libdir'
15791 hardcode_direct=yes
15792 hardcode_shlibpath_var=no
15793 ;;
15794
15795 newsos6)
15796 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15797 hardcode_direct=yes
15798 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15799 hardcode_libdir_separator=:
15800 hardcode_shlibpath_var=no
15801 ;;
15802
15803 *nto* | *qnx*)
15804 ;;
15805
15806 openbsd*)
15807 if test -f /usr/libexec/ld.so; then
15808 hardcode_direct=yes
15809 hardcode_shlibpath_var=no
15810 hardcode_direct_absolute=yes
15811 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15812 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15813 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15814 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15815 export_dynamic_flag_spec='${wl}-E'
15816 else
15817 case $host_os in
15818 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15819 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15820 hardcode_libdir_flag_spec='-R$libdir'
15821 ;;
15822 *)
15823 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15824 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15825 ;;
15826 esac
15827 fi
15828 else
15829 ld_shlibs=no
15830 fi
15831 ;;
15832
15833 os2*)
15834 hardcode_libdir_flag_spec='-L$libdir'
15835 hardcode_minus_L=yes
15836 allow_undefined_flag=unsupported
15837 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'
15838 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15839 ;;
15840
15841 osf3*)
15842 if test "$GCC" = yes; then
15843 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15844 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'
15845 else
15846 allow_undefined_flag=' -expect_unresolved \*'
15847 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'
15848 fi
15849 archive_cmds_need_lc='no'
15850 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15851 hardcode_libdir_separator=:
15852 ;;
15853
15854 osf4* | osf5*) # as osf3* with the addition of -msym flag
15855 if test "$GCC" = yes; then
15856 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15857 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'
15858 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15859 else
15860 allow_undefined_flag=' -expect_unresolved \*'
15861 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'
15862 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~
15863 $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'
15864
15865 # Both c and cxx compiler support -rpath directly
15866 hardcode_libdir_flag_spec='-rpath $libdir'
15867 fi
15868 archive_cmds_need_lc='no'
15869 hardcode_libdir_separator=:
15870 ;;
15871
15872 solaris*)
15873 no_undefined_flag=' -z defs'
15874 if test "$GCC" = yes; then
15875 wlarc='${wl}'
15876 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15877 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15878 $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'
15879 else
15880 case `$CC -V 2>&1` in
15881 *"Compilers 5.0"*)
15882 wlarc=''
15883 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15884 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15885 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
15886 ;;
15887 *)
15888 wlarc='${wl}'
15889 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
15890 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15891 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
15892 ;;
15893 esac
15894 fi
15895 hardcode_libdir_flag_spec='-R$libdir'
15896 hardcode_shlibpath_var=no
15897 case $host_os in
15898 solaris2.[0-5] | solaris2.[0-5].*) ;;
15899 *)
15900 # The compiler driver will combine and reorder linker options,
15901 # but understands `-z linker_flag'. GCC discards it without `$wl',
15902 # but is careful enough not to reorder.
15903 # Supported since Solaris 2.6 (maybe 2.5.1?)
15904 if test "$GCC" = yes; then
15905 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15906 else
15907 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
15908 fi
15909 ;;
15910 esac
15911 link_all_deplibs=yes
15912 ;;
15913
15914 sunos4*)
15915 if test "x$host_vendor" = xsequent; then
15916 # Use $CC to link under sequent, because it throws in some extra .o
15917 # files that make .init and .fini sections work.
15918 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15919 else
15920 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15921 fi
15922 hardcode_libdir_flag_spec='-L$libdir'
15923 hardcode_direct=yes
15924 hardcode_minus_L=yes
15925 hardcode_shlibpath_var=no
15926 ;;
15927
15928 sysv4)
15929 case $host_vendor in
15930 sni)
15931 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15932 hardcode_direct=yes # is this really true???
15933 ;;
15934 siemens)
15935 ## LD is ld it makes a PLAMLIB
15936 ## CC just makes a GrossModule.
15937 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15938 reload_cmds='$CC -r -o $output$reload_objs'
15939 hardcode_direct=no
15940 ;;
15941 motorola)
15942 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15943 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
15944 ;;
15945 esac
15946 runpath_var='LD_RUN_PATH'
15947 hardcode_shlibpath_var=no
15948 ;;
15949
15950 sysv4.3*)
15951 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15952 hardcode_shlibpath_var=no
15953 export_dynamic_flag_spec='-Bexport'
15954 ;;
15955
15956 sysv4*MP*)
15957 if test -d /usr/nec; then
15958 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15959 hardcode_shlibpath_var=no
15960 runpath_var=LD_RUN_PATH
15961 hardcode_runpath_var=yes
15962 ld_shlibs=yes
15963 fi
15964 ;;
15965
15966 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15967 no_undefined_flag='${wl}-z,text'
15968 archive_cmds_need_lc=no
15969 hardcode_shlibpath_var=no
15970 runpath_var='LD_RUN_PATH'
15971
15972 if test "$GCC" = yes; then
15973 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15974 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15975 else
15976 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15977 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15978 fi
15979 ;;
15980
15981 sysv5* | sco3.2v5* | sco5v6*)
15982 # Note: We can NOT use -z defs as we might desire, because we do not
15983 # link with -lc, and that would cause any symbols used from libc to
15984 # always be unresolved, which means just about no library would
15985 # ever link correctly. If we're not using GNU ld we use -z text
15986 # though, which does catch some bad symbols but isn't as heavy-handed
15987 # as -z defs.
15988 no_undefined_flag='${wl}-z,text'
15989 allow_undefined_flag='${wl}-z,nodefs'
15990 archive_cmds_need_lc=no
15991 hardcode_shlibpath_var=no
15992 hardcode_libdir_flag_spec='${wl}-R,$libdir'
15993 hardcode_libdir_separator=':'
15994 link_all_deplibs=yes
15995 export_dynamic_flag_spec='${wl}-Bexport'
15996 runpath_var='LD_RUN_PATH'
15997
15998 if test "$GCC" = yes; then
15999 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16000 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16001 else
16002 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16003 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16004 fi
16005 ;;
16006
16007 uts4*)
16008 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16009 hardcode_libdir_flag_spec='-L$libdir'
16010 hardcode_shlibpath_var=no
16011 ;;
16012
16013 *)
16014 ld_shlibs=no
16015 ;;
16016 esac
16017
16018 if test x$host_vendor = xsni; then
16019 case $host in
16020 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16021 export_dynamic_flag_spec='${wl}-Blargedynsym'
16022 ;;
16023 esac
16024 fi
16025 fi
16026
16027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
16028 $as_echo "$ld_shlibs" >&6; }
16029 test "$ld_shlibs" = no && can_build_shared=no
16030
16031 with_gnu_ld=$with_gnu_ld
16032
16033
16034
16035
16036
16037
16038
16039
16040
16041
16042
16043
16044
16045
16046
16047 #
16048 # Do we need to explicitly link libc?
16049 #
16050 case "x$archive_cmds_need_lc" in
16051 x|xyes)
16052 # Assume -lc should be added
16053 archive_cmds_need_lc=yes
16054
16055 if test "$enable_shared" = yes && test "$GCC" = yes; then
16056 case $archive_cmds in
16057 *'~'*)
16058 # FIXME: we may have to deal with multi-command sequences.
16059 ;;
16060 '$CC '*)
16061 # Test whether the compiler implicitly links with -lc since on some
16062 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16063 # to ld, don't add -lc before -lgcc.
16064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16065 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16066 if ${lt_cv_archive_cmds_need_lc+:} false; then :
16067 $as_echo_n "(cached) " >&6
16068 else
16069 $RM conftest*
16070 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16071
16072 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16073 (eval $ac_compile) 2>&5
16074 ac_status=$?
16075 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16076 test $ac_status = 0; } 2>conftest.err; then
16077 soname=conftest
16078 lib=conftest
16079 libobjs=conftest.$ac_objext
16080 deplibs=
16081 wl=$lt_prog_compiler_wl
16082 pic_flag=$lt_prog_compiler_pic
16083 compiler_flags=-v
16084 linker_flags=-v
16085 verstring=
16086 output_objdir=.
16087 libname=conftest
16088 lt_save_allow_undefined_flag=$allow_undefined_flag
16089 allow_undefined_flag=
16090 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16091 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16092 ac_status=$?
16093 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16094 test $ac_status = 0; }
16095 then
16096 lt_cv_archive_cmds_need_lc=no
16097 else
16098 lt_cv_archive_cmds_need_lc=yes
16099 fi
16100 allow_undefined_flag=$lt_save_allow_undefined_flag
16101 else
16102 cat conftest.err 1>&5
16103 fi
16104 $RM conftest*
16105
16106 fi
16107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
16108 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
16109 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
16110 ;;
16111 esac
16112 fi
16113 ;;
16114 esac
16115
16116
16117
16118
16119
16120
16121
16122
16123
16124
16125
16126
16127
16128
16129
16130
16131
16132
16133
16134
16135
16136
16137
16138
16139
16140
16141
16142
16143
16144
16145
16146
16147
16148
16149
16150
16151
16152
16153
16154
16155
16156
16157
16158
16159
16160
16161
16162
16163
16164
16165
16166
16167
16168
16169
16170
16171
16172
16173
16174
16175
16176
16177
16178
16179
16180
16181
16182
16183
16184
16185
16186
16187
16188
16189
16190
16191
16192
16193
16194
16195
16196
16197
16198
16199
16200
16201
16202
16203
16204
16205
16206
16207
16208
16209
16210
16211
16212
16213
16214
16215
16216
16217
16218
16219
16220
16221
16222
16223
16224
16225
16226
16227
16228
16229
16230
16231
16232
16233
16234
16235
16236
16237
16238
16239
16240
16241
16242
16243
16244
16245
16246
16247
16248
16249
16250
16251
16252
16253
16254
16255
16256
16257
16258
16259
16260
16261
16262
16263
16264
16265
16266
16267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16268 $as_echo_n "checking dynamic linker characteristics... " >&6; }
16269
16270 if test "$GCC" = yes; then
16271 case $host_os in
16272 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
16273 *) lt_awk_arg="/^libraries:/" ;;
16274 esac
16275 case $host_os in
16276 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
16277 *) lt_sed_strip_eq="s,=/,/,g" ;;
16278 esac
16279 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
16280 case $lt_search_path_spec in
16281 *\;*)
16282 # if the path contains ";" then we assume it to be the separator
16283 # otherwise default to the standard path separator (i.e. ":") - it is
16284 # assumed that no part of a normal pathname contains ";" but that should
16285 # okay in the real world where ";" in dirpaths is itself problematic.
16286 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
16287 ;;
16288 *)
16289 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
16290 ;;
16291 esac
16292 # Ok, now we have the path, separated by spaces, we can step through it
16293 # and add multilib dir if necessary.
16294 lt_tmp_lt_search_path_spec=
16295 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16296 for lt_sys_path in $lt_search_path_spec; do
16297 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
16298 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
16299 else
16300 test -d "$lt_sys_path" && \
16301 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
16302 fi
16303 done
16304 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
16305 BEGIN {RS=" "; FS="/|\n";} {
16306 lt_foo="";
16307 lt_count=0;
16308 for (lt_i = NF; lt_i > 0; lt_i--) {
16309 if ($lt_i != "" && $lt_i != ".") {
16310 if ($lt_i == "..") {
16311 lt_count++;
16312 } else {
16313 if (lt_count == 0) {
16314 lt_foo="/" $lt_i lt_foo;
16315 } else {
16316 lt_count--;
16317 }
16318 }
16319 }
16320 }
16321 if (lt_foo != "") { lt_freq[lt_foo]++; }
16322 if (lt_freq[lt_foo] == 1) { print lt_foo; }
16323 }'`
16324 # AWK program above erroneously prepends '/' to C:/dos/paths
16325 # for these hosts.
16326 case $host_os in
16327 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
16328 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
16329 esac
16330 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
16331 else
16332 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16333 fi
16334 library_names_spec=
16335 libname_spec='lib$name'
16336 soname_spec=
16337 shrext_cmds=".so"
16338 postinstall_cmds=
16339 postuninstall_cmds=
16340 finish_cmds=
16341 finish_eval=
16342 shlibpath_var=
16343 shlibpath_overrides_runpath=unknown
16344 version_type=none
16345 dynamic_linker="$host_os ld.so"
16346 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16347 need_lib_prefix=unknown
16348 hardcode_into_libs=no
16349
16350 # when you set need_version to no, make sure it does not cause -set_version
16351 # flags to be left without arguments
16352 need_version=unknown
16353
16354 case $host_os in
16355 aix3*)
16356 version_type=linux # correct to gnu/linux during the next big refactor
16357 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16358 shlibpath_var=LIBPATH
16359
16360 # AIX 3 has no versioning support, so we append a major version to the name.
16361 soname_spec='${libname}${release}${shared_ext}$major'
16362 ;;
16363
16364 aix[4-9]*)
16365 version_type=linux # correct to gnu/linux during the next big refactor
16366 need_lib_prefix=no
16367 need_version=no
16368 hardcode_into_libs=yes
16369 if test "$host_cpu" = ia64; then
16370 # AIX 5 supports IA64
16371 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16372 shlibpath_var=LD_LIBRARY_PATH
16373 else
16374 # With GCC up to 2.95.x, collect2 would create an import file
16375 # for dependence libraries. The import file would start with
16376 # the line `#! .'. This would cause the generated library to
16377 # depend on `.', always an invalid library. This was fixed in
16378 # development snapshots of GCC prior to 3.0.
16379 case $host_os in
16380 aix4 | aix4.[01] | aix4.[01].*)
16381 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16382 echo ' yes '
16383 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16384 :
16385 else
16386 can_build_shared=no
16387 fi
16388 ;;
16389 esac
16390 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16391 # soname into executable. Probably we can add versioning support to
16392 # collect2, so additional links can be useful in future.
16393 if test "$aix_use_runtimelinking" = yes; then
16394 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16395 # instead of lib<name>.a to let people know that these are not
16396 # typical AIX shared libraries.
16397 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16398 else
16399 # We preserve .a as extension for shared libraries through AIX4.2
16400 # and later when we are not doing run time linking.
16401 library_names_spec='${libname}${release}.a $libname.a'
16402 soname_spec='${libname}${release}${shared_ext}$major'
16403 fi
16404 shlibpath_var=LIBPATH
16405 fi
16406 ;;
16407
16408 amigaos*)
16409 case $host_cpu in
16410 powerpc)
16411 # Since July 2007 AmigaOS4 officially supports .so libraries.
16412 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16413 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16414 ;;
16415 m68k)
16416 library_names_spec='$libname.ixlibrary $libname.a'
16417 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16418 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'
16419 ;;
16420 esac
16421 ;;
16422
16423 beos*)
16424 library_names_spec='${libname}${shared_ext}'
16425 dynamic_linker="$host_os ld.so"
16426 shlibpath_var=LIBRARY_PATH
16427 ;;
16428
16429 bsdi[45]*)
16430 version_type=linux # correct to gnu/linux during the next big refactor
16431 need_version=no
16432 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16433 soname_spec='${libname}${release}${shared_ext}$major'
16434 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16435 shlibpath_var=LD_LIBRARY_PATH
16436 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16437 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16438 # the default ld.so.conf also contains /usr/contrib/lib and
16439 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16440 # libtool to hard-code these into programs
16441 ;;
16442
16443 cygwin* | mingw* | pw32* | cegcc*)
16444 version_type=windows
16445 shrext_cmds=".dll"
16446 need_version=no
16447 need_lib_prefix=no
16448
16449 case $GCC,$cc_basename in
16450 yes,*)
16451 # gcc
16452 library_names_spec='$libname.dll.a'
16453 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16454 postinstall_cmds='base_file=`basename \${file}`~
16455 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16456 dldir=$destdir/`dirname \$dlpath`~
16457 test -d \$dldir || mkdir -p \$dldir~
16458 $install_prog $dir/$dlname \$dldir/$dlname~
16459 chmod a+x \$dldir/$dlname~
16460 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16461 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16462 fi'
16463 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16464 dlpath=$dir/\$dldll~
16465 $RM \$dlpath'
16466 shlibpath_overrides_runpath=yes
16467
16468 case $host_os in
16469 cygwin*)
16470 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16471 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16472
16473 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
16474 ;;
16475 mingw* | cegcc*)
16476 # MinGW DLLs use traditional 'lib' prefix
16477 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16478 ;;
16479 pw32*)
16480 # pw32 DLLs use 'pw' prefix rather than 'lib'
16481 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16482 ;;
16483 esac
16484 dynamic_linker='Win32 ld.exe'
16485 ;;
16486
16487 *,cl*)
16488 # Native MSVC
16489 libname_spec='$name'
16490 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16491 library_names_spec='${libname}.dll.lib'
16492
16493 case $build_os in
16494 mingw*)
16495 sys_lib_search_path_spec=
16496 lt_save_ifs=$IFS
16497 IFS=';'
16498 for lt_path in $LIB
16499 do
16500 IFS=$lt_save_ifs
16501 # Let DOS variable expansion print the short 8.3 style file name.
16502 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
16503 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
16504 done
16505 IFS=$lt_save_ifs
16506 # Convert to MSYS style.
16507 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
16508 ;;
16509 cygwin*)
16510 # Convert to unix form, then to dos form, then back to unix form
16511 # but this time dos style (no spaces!) so that the unix form looks
16512 # like /cygdrive/c/PROGRA~1:/cygdr...
16513 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
16514 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
16515 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16516 ;;
16517 *)
16518 sys_lib_search_path_spec="$LIB"
16519 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
16520 # It is most probably a Windows format PATH.
16521 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16522 else
16523 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16524 fi
16525 # FIXME: find the short name or the path components, as spaces are
16526 # common. (e.g. "Program Files" -> "PROGRA~1")
16527 ;;
16528 esac
16529
16530 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16531 postinstall_cmds='base_file=`basename \${file}`~
16532 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16533 dldir=$destdir/`dirname \$dlpath`~
16534 test -d \$dldir || mkdir -p \$dldir~
16535 $install_prog $dir/$dlname \$dldir/$dlname'
16536 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16537 dlpath=$dir/\$dldll~
16538 $RM \$dlpath'
16539 shlibpath_overrides_runpath=yes
16540 dynamic_linker='Win32 link.exe'
16541 ;;
16542
16543 *)
16544 # Assume MSVC wrapper
16545 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16546 dynamic_linker='Win32 ld.exe'
16547 ;;
16548 esac
16549 # FIXME: first we should search . and the directory the executable is in
16550 shlibpath_var=PATH
16551 ;;
16552
16553 darwin* | rhapsody*)
16554 dynamic_linker="$host_os dyld"
16555 version_type=darwin
16556 need_lib_prefix=no
16557 need_version=no
16558 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16559 soname_spec='${libname}${release}${major}$shared_ext'
16560 shlibpath_overrides_runpath=yes
16561 shlibpath_var=DYLD_LIBRARY_PATH
16562 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16563
16564 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
16565 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16566 ;;
16567
16568 dgux*)
16569 version_type=linux # correct to gnu/linux during the next big refactor
16570 need_lib_prefix=no
16571 need_version=no
16572 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16573 soname_spec='${libname}${release}${shared_ext}$major'
16574 shlibpath_var=LD_LIBRARY_PATH
16575 ;;
16576
16577 freebsd* | dragonfly*)
16578 # DragonFly does not have aout. When/if they implement a new
16579 # versioning mechanism, adjust this.
16580 if test -x /usr/bin/objformat; then
16581 objformat=`/usr/bin/objformat`
16582 else
16583 case $host_os in
16584 freebsd[23].*) objformat=aout ;;
16585 *) objformat=elf ;;
16586 esac
16587 fi
16588 version_type=freebsd-$objformat
16589 case $version_type in
16590 freebsd-elf*)
16591 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16592 need_version=no
16593 need_lib_prefix=no
16594 ;;
16595 freebsd-*)
16596 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16597 need_version=yes
16598 ;;
16599 esac
16600 shlibpath_var=LD_LIBRARY_PATH
16601 case $host_os in
16602 freebsd2.*)
16603 shlibpath_overrides_runpath=yes
16604 ;;
16605 freebsd3.[01]* | freebsdelf3.[01]*)
16606 shlibpath_overrides_runpath=yes
16607 hardcode_into_libs=yes
16608 ;;
16609 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16610 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16611 shlibpath_overrides_runpath=no
16612 hardcode_into_libs=yes
16613 ;;
16614 *) # from 4.6 on, and DragonFly
16615 shlibpath_overrides_runpath=yes
16616 hardcode_into_libs=yes
16617 ;;
16618 esac
16619 ;;
16620
16621 gnu*)
16622 version_type=linux # correct to gnu/linux during the next big refactor
16623 need_lib_prefix=no
16624 need_version=no
16625 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16626 soname_spec='${libname}${release}${shared_ext}$major'
16627 shlibpath_var=LD_LIBRARY_PATH
16628 shlibpath_overrides_runpath=no
16629 hardcode_into_libs=yes
16630 ;;
16631
16632 haiku*)
16633 version_type=linux # correct to gnu/linux during the next big refactor
16634 need_lib_prefix=no
16635 need_version=no
16636 dynamic_linker="$host_os runtime_loader"
16637 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16638 soname_spec='${libname}${release}${shared_ext}$major'
16639 shlibpath_var=LIBRARY_PATH
16640 shlibpath_overrides_runpath=yes
16641 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
16642 hardcode_into_libs=yes
16643 ;;
16644
16645 hpux9* | hpux10* | hpux11*)
16646 # Give a soname corresponding to the major version so that dld.sl refuses to
16647 # link against other versions.
16648 version_type=sunos
16649 need_lib_prefix=no
16650 need_version=no
16651 case $host_cpu in
16652 ia64*)
16653 shrext_cmds='.so'
16654 hardcode_into_libs=yes
16655 dynamic_linker="$host_os dld.so"
16656 shlibpath_var=LD_LIBRARY_PATH
16657 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16658 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16659 soname_spec='${libname}${release}${shared_ext}$major'
16660 if test "X$HPUX_IA64_MODE" = X32; then
16661 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16662 else
16663 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16664 fi
16665 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16666 ;;
16667 hppa*64*)
16668 shrext_cmds='.sl'
16669 hardcode_into_libs=yes
16670 dynamic_linker="$host_os dld.sl"
16671 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16672 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16673 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16674 soname_spec='${libname}${release}${shared_ext}$major'
16675 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16676 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16677 ;;
16678 *)
16679 shrext_cmds='.sl'
16680 dynamic_linker="$host_os dld.sl"
16681 shlibpath_var=SHLIB_PATH
16682 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16683 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16684 soname_spec='${libname}${release}${shared_ext}$major'
16685 ;;
16686 esac
16687 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
16688 postinstall_cmds='chmod 555 $lib'
16689 # or fails outright, so override atomically:
16690 install_override_mode=555
16691 ;;
16692
16693 interix[3-9]*)
16694 version_type=linux # correct to gnu/linux during the next big refactor
16695 need_lib_prefix=no
16696 need_version=no
16697 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16698 soname_spec='${libname}${release}${shared_ext}$major'
16699 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16700 shlibpath_var=LD_LIBRARY_PATH
16701 shlibpath_overrides_runpath=no
16702 hardcode_into_libs=yes
16703 ;;
16704
16705 irix5* | irix6* | nonstopux*)
16706 case $host_os in
16707 nonstopux*) version_type=nonstopux ;;
16708 *)
16709 if test "$lt_cv_prog_gnu_ld" = yes; then
16710 version_type=linux # correct to gnu/linux during the next big refactor
16711 else
16712 version_type=irix
16713 fi ;;
16714 esac
16715 need_lib_prefix=no
16716 need_version=no
16717 soname_spec='${libname}${release}${shared_ext}$major'
16718 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16719 case $host_os in
16720 irix5* | nonstopux*)
16721 libsuff= shlibsuff=
16722 ;;
16723 *)
16724 case $LD in # libtool.m4 will add one of these switches to LD
16725 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16726 libsuff= shlibsuff= libmagic=32-bit;;
16727 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16728 libsuff=32 shlibsuff=N32 libmagic=N32;;
16729 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16730 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16731 *) libsuff= shlibsuff= libmagic=never-match;;
16732 esac
16733 ;;
16734 esac
16735 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16736 shlibpath_overrides_runpath=no
16737 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16738 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16739 hardcode_into_libs=yes
16740 ;;
16741
16742 # No shared lib support for Linux oldld, aout, or coff.
16743 linux*oldld* | linux*aout* | linux*coff*)
16744 dynamic_linker=no
16745 ;;
16746
16747 # This must be glibc/ELF.
16748 linux* | k*bsd*-gnu | kopensolaris*-gnu)
16749 version_type=linux # correct to gnu/linux during the next big refactor
16750 need_lib_prefix=no
16751 need_version=no
16752 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16753 soname_spec='${libname}${release}${shared_ext}$major'
16754 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16755 shlibpath_var=LD_LIBRARY_PATH
16756 shlibpath_overrides_runpath=no
16757
16758 # Some binutils ld are patched to set DT_RUNPATH
16759 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
16760 $as_echo_n "(cached) " >&6
16761 else
16762 lt_cv_shlibpath_overrides_runpath=no
16763 save_LDFLAGS=$LDFLAGS
16764 save_libdir=$libdir
16765 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
16766 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
16767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16768 /* end confdefs.h. */
16769
16770 int
16771 main ()
16772 {
16773
16774 ;
16775 return 0;
16776 }
16777 _ACEOF
16778 if ac_fn_c_try_link "$LINENO"; then :
16779 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
16780 lt_cv_shlibpath_overrides_runpath=yes
16781 fi
16782 fi
16783 rm -f core conftest.err conftest.$ac_objext \
16784 conftest$ac_exeext conftest.$ac_ext
16785 LDFLAGS=$save_LDFLAGS
16786 libdir=$save_libdir
16787
16788 fi
16789
16790 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16791
16792 # This implies no fast_install, which is unacceptable.
16793 # Some rework will be needed to allow for fast_install
16794 # before this can be enabled.
16795 hardcode_into_libs=yes
16796
16797 # Add ABI-specific directories to the system library path.
16798 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
16799
16800 # Append ld.so.conf contents to the search path
16801 if test -f /etc/ld.so.conf; then
16802 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' ' '`
16803 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
16804
16805 fi
16806
16807 # We used to test for /lib/ld.so.1 and disable shared libraries on
16808 # powerpc, because MkLinux only supported shared libraries with the
16809 # GNU dynamic linker. Since this was broken with cross compilers,
16810 # most powerpc-linux boxes support dynamic linking these days and
16811 # people can always --disable-shared, the test was removed, and we
16812 # assume the GNU/Linux dynamic linker is in use.
16813 dynamic_linker='GNU/Linux ld.so'
16814 ;;
16815
16816 netbsd*)
16817 version_type=sunos
16818 need_lib_prefix=no
16819 need_version=no
16820 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16821 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16822 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16823 dynamic_linker='NetBSD (a.out) ld.so'
16824 else
16825 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16826 soname_spec='${libname}${release}${shared_ext}$major'
16827 dynamic_linker='NetBSD ld.elf_so'
16828 fi
16829 shlibpath_var=LD_LIBRARY_PATH
16830 shlibpath_overrides_runpath=yes
16831 hardcode_into_libs=yes
16832 ;;
16833
16834 newsos6)
16835 version_type=linux # correct to gnu/linux during the next big refactor
16836 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16837 shlibpath_var=LD_LIBRARY_PATH
16838 shlibpath_overrides_runpath=yes
16839 ;;
16840
16841 *nto* | *qnx*)
16842 version_type=qnx
16843 need_lib_prefix=no
16844 need_version=no
16845 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16846 soname_spec='${libname}${release}${shared_ext}$major'
16847 shlibpath_var=LD_LIBRARY_PATH
16848 shlibpath_overrides_runpath=no
16849 hardcode_into_libs=yes
16850 dynamic_linker='ldqnx.so'
16851 ;;
16852
16853 openbsd*)
16854 version_type=sunos
16855 sys_lib_dlsearch_path_spec="/usr/lib"
16856 need_lib_prefix=no
16857 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16858 case $host_os in
16859 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16860 *) need_version=no ;;
16861 esac
16862 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16863 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16864 shlibpath_var=LD_LIBRARY_PATH
16865 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16866 case $host_os in
16867 openbsd2.[89] | openbsd2.[89].*)
16868 shlibpath_overrides_runpath=no
16869 ;;
16870 *)
16871 shlibpath_overrides_runpath=yes
16872 ;;
16873 esac
16874 else
16875 shlibpath_overrides_runpath=yes
16876 fi
16877 ;;
16878
16879 os2*)
16880 libname_spec='$name'
16881 shrext_cmds=".dll"
16882 need_lib_prefix=no
16883 library_names_spec='$libname${shared_ext} $libname.a'
16884 dynamic_linker='OS/2 ld.exe'
16885 shlibpath_var=LIBPATH
16886 ;;
16887
16888 osf3* | osf4* | osf5*)
16889 version_type=osf
16890 need_lib_prefix=no
16891 need_version=no
16892 soname_spec='${libname}${release}${shared_ext}$major'
16893 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16894 shlibpath_var=LD_LIBRARY_PATH
16895 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16896 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16897 ;;
16898
16899 rdos*)
16900 dynamic_linker=no
16901 ;;
16902
16903 solaris*)
16904 version_type=linux # correct to gnu/linux during the next big refactor
16905 need_lib_prefix=no
16906 need_version=no
16907 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16908 soname_spec='${libname}${release}${shared_ext}$major'
16909 shlibpath_var=LD_LIBRARY_PATH
16910 shlibpath_overrides_runpath=yes
16911 hardcode_into_libs=yes
16912 # ldd complains unless libraries are executable
16913 postinstall_cmds='chmod +x $lib'
16914 ;;
16915
16916 sunos4*)
16917 version_type=sunos
16918 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16919 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16920 shlibpath_var=LD_LIBRARY_PATH
16921 shlibpath_overrides_runpath=yes
16922 if test "$with_gnu_ld" = yes; then
16923 need_lib_prefix=no
16924 fi
16925 need_version=yes
16926 ;;
16927
16928 sysv4 | sysv4.3*)
16929 version_type=linux # correct to gnu/linux during the next big refactor
16930 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16931 soname_spec='${libname}${release}${shared_ext}$major'
16932 shlibpath_var=LD_LIBRARY_PATH
16933 case $host_vendor in
16934 sni)
16935 shlibpath_overrides_runpath=no
16936 need_lib_prefix=no
16937 runpath_var=LD_RUN_PATH
16938 ;;
16939 siemens)
16940 need_lib_prefix=no
16941 ;;
16942 motorola)
16943 need_lib_prefix=no
16944 need_version=no
16945 shlibpath_overrides_runpath=no
16946 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16947 ;;
16948 esac
16949 ;;
16950
16951 sysv4*MP*)
16952 if test -d /usr/nec ;then
16953 version_type=linux # correct to gnu/linux during the next big refactor
16954 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16955 soname_spec='$libname${shared_ext}.$major'
16956 shlibpath_var=LD_LIBRARY_PATH
16957 fi
16958 ;;
16959
16960 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16961 version_type=freebsd-elf
16962 need_lib_prefix=no
16963 need_version=no
16964 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16965 soname_spec='${libname}${release}${shared_ext}$major'
16966 shlibpath_var=LD_LIBRARY_PATH
16967 shlibpath_overrides_runpath=yes
16968 hardcode_into_libs=yes
16969 if test "$with_gnu_ld" = yes; then
16970 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16971 else
16972 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16973 case $host_os in
16974 sco3.2v5*)
16975 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16976 ;;
16977 esac
16978 fi
16979 sys_lib_dlsearch_path_spec='/usr/lib'
16980 ;;
16981
16982 tpf*)
16983 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
16984 version_type=linux # correct to gnu/linux during the next big refactor
16985 need_lib_prefix=no
16986 need_version=no
16987 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16988 shlibpath_var=LD_LIBRARY_PATH
16989 shlibpath_overrides_runpath=no
16990 hardcode_into_libs=yes
16991 ;;
16992
16993 uts4*)
16994 version_type=linux # correct to gnu/linux during the next big refactor
16995 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16996 soname_spec='${libname}${release}${shared_ext}$major'
16997 shlibpath_var=LD_LIBRARY_PATH
16998 ;;
16999
17000 *)
17001 dynamic_linker=no
17002 ;;
17003 esac
17004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17005 $as_echo "$dynamic_linker" >&6; }
17006 test "$dynamic_linker" = no && can_build_shared=no
17007
17008 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17009 if test "$GCC" = yes; then
17010 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17011 fi
17012
17013 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17014 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
17015 fi
17016 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17017 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
17018 fi
17019
17020
17021
17022
17023
17024
17025
17026
17027
17028
17029
17030
17031
17032
17033
17034
17035
17036
17037
17038
17039
17040
17041
17042
17043
17044
17045
17046
17047
17048
17049
17050
17051
17052
17053
17054
17055
17056
17057
17058
17059
17060
17061
17062
17063
17064
17065
17066
17067
17068
17069
17070
17071
17072
17073
17074
17075
17076
17077
17078
17079
17080
17081
17082
17083
17084
17085
17086
17087
17088
17089
17090
17091
17092
17093
17094
17095
17096
17097
17098
17099
17100
17101
17102
17103
17104
17105
17106
17107
17108
17109
17110
17111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17112 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17113 hardcode_action=
17114 if test -n "$hardcode_libdir_flag_spec" ||
17115 test -n "$runpath_var" ||
17116 test "X$hardcode_automatic" = "Xyes" ; then
17117
17118 # We can hardcode non-existent directories.
17119 if test "$hardcode_direct" != no &&
17120 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17121 # have to relink, otherwise we might link with an installed library
17122 # when we should be linking with a yet-to-be-installed one
17123 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
17124 test "$hardcode_minus_L" != no; then
17125 # Linking always hardcodes the temporary library directory.
17126 hardcode_action=relink
17127 else
17128 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17129 hardcode_action=immediate
17130 fi
17131 else
17132 # We cannot hardcode anything, or else we can only hardcode existing
17133 # directories.
17134 hardcode_action=unsupported
17135 fi
17136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
17137 $as_echo "$hardcode_action" >&6; }
17138
17139 if test "$hardcode_action" = relink ||
17140 test "$inherit_rpath" = yes; then
17141 # Fast installation is not supported
17142 enable_fast_install=no
17143 elif test "$shlibpath_overrides_runpath" = yes ||
17144 test "$enable_shared" = no; then
17145 # Fast installation is not necessary
17146 enable_fast_install=needless
17147 fi
17148
17149
17150
17151
17152
17153
17154 if test "x$enable_dlopen" != xyes; then
17155 enable_dlopen=unknown
17156 enable_dlopen_self=unknown
17157 enable_dlopen_self_static=unknown
17158 else
17159 lt_cv_dlopen=no
17160 lt_cv_dlopen_libs=
17161
17162 case $host_os in
17163 beos*)
17164 lt_cv_dlopen="load_add_on"
17165 lt_cv_dlopen_libs=
17166 lt_cv_dlopen_self=yes
17167 ;;
17168
17169 mingw* | pw32* | cegcc*)
17170 lt_cv_dlopen="LoadLibrary"
17171 lt_cv_dlopen_libs=
17172 ;;
17173
17174 cygwin*)
17175 lt_cv_dlopen="dlopen"
17176 lt_cv_dlopen_libs=
17177 ;;
17178
17179 darwin*)
17180 # if libdl is installed we need to link against it
17181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17182 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17183 if ${ac_cv_lib_dl_dlopen+:} false; then :
17184 $as_echo_n "(cached) " >&6
17185 else
17186 ac_check_lib_save_LIBS=$LIBS
17187 LIBS="-ldl $LIBS"
17188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17189 /* end confdefs.h. */
17190
17191 /* Override any GCC internal prototype to avoid an error.
17192 Use char because int might match the return type of a GCC
17193 builtin and then its argument prototype would still apply. */
17194 #ifdef __cplusplus
17195 extern "C"
17196 #endif
17197 char dlopen ();
17198 int
17199 main ()
17200 {
17201 return dlopen ();
17202 ;
17203 return 0;
17204 }
17205 _ACEOF
17206 if ac_fn_c_try_link "$LINENO"; then :
17207 ac_cv_lib_dl_dlopen=yes
17208 else
17209 ac_cv_lib_dl_dlopen=no
17210 fi
17211 rm -f core conftest.err conftest.$ac_objext \
17212 conftest$ac_exeext conftest.$ac_ext
17213 LIBS=$ac_check_lib_save_LIBS
17214 fi
17215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17216 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17217 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
17218 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17219 else
17220
17221 lt_cv_dlopen="dyld"
17222 lt_cv_dlopen_libs=
17223 lt_cv_dlopen_self=yes
17224
17225 fi
17226
17227 ;;
17228
17229 *)
17230 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
17231 if test "x$ac_cv_func_shl_load" = xyes; then :
17232 lt_cv_dlopen="shl_load"
17233 else
17234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17235 $as_echo_n "checking for shl_load in -ldld... " >&6; }
17236 if ${ac_cv_lib_dld_shl_load+:} false; then :
17237 $as_echo_n "(cached) " >&6
17238 else
17239 ac_check_lib_save_LIBS=$LIBS
17240 LIBS="-ldld $LIBS"
17241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17242 /* end confdefs.h. */
17243
17244 /* Override any GCC internal prototype to avoid an error.
17245 Use char because int might match the return type of a GCC
17246 builtin and then its argument prototype would still apply. */
17247 #ifdef __cplusplus
17248 extern "C"
17249 #endif
17250 char shl_load ();
17251 int
17252 main ()
17253 {
17254 return shl_load ();
17255 ;
17256 return 0;
17257 }
17258 _ACEOF
17259 if ac_fn_c_try_link "$LINENO"; then :
17260 ac_cv_lib_dld_shl_load=yes
17261 else
17262 ac_cv_lib_dld_shl_load=no
17263 fi
17264 rm -f core conftest.err conftest.$ac_objext \
17265 conftest$ac_exeext conftest.$ac_ext
17266 LIBS=$ac_check_lib_save_LIBS
17267 fi
17268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17269 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
17270 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
17271 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
17272 else
17273 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
17274 if test "x$ac_cv_func_dlopen" = xyes; then :
17275 lt_cv_dlopen="dlopen"
17276 else
17277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17278 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17279 if ${ac_cv_lib_dl_dlopen+:} false; then :
17280 $as_echo_n "(cached) " >&6
17281 else
17282 ac_check_lib_save_LIBS=$LIBS
17283 LIBS="-ldl $LIBS"
17284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17285 /* end confdefs.h. */
17286
17287 /* Override any GCC internal prototype to avoid an error.
17288 Use char because int might match the return type of a GCC
17289 builtin and then its argument prototype would still apply. */
17290 #ifdef __cplusplus
17291 extern "C"
17292 #endif
17293 char dlopen ();
17294 int
17295 main ()
17296 {
17297 return dlopen ();
17298 ;
17299 return 0;
17300 }
17301 _ACEOF
17302 if ac_fn_c_try_link "$LINENO"; then :
17303 ac_cv_lib_dl_dlopen=yes
17304 else
17305 ac_cv_lib_dl_dlopen=no
17306 fi
17307 rm -f core conftest.err conftest.$ac_objext \
17308 conftest$ac_exeext conftest.$ac_ext
17309 LIBS=$ac_check_lib_save_LIBS
17310 fi
17311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17312 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17313 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
17314 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17315 else
17316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17317 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
17318 if ${ac_cv_lib_svld_dlopen+:} false; then :
17319 $as_echo_n "(cached) " >&6
17320 else
17321 ac_check_lib_save_LIBS=$LIBS
17322 LIBS="-lsvld $LIBS"
17323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17324 /* end confdefs.h. */
17325
17326 /* Override any GCC internal prototype to avoid an error.
17327 Use char because int might match the return type of a GCC
17328 builtin and then its argument prototype would still apply. */
17329 #ifdef __cplusplus
17330 extern "C"
17331 #endif
17332 char dlopen ();
17333 int
17334 main ()
17335 {
17336 return dlopen ();
17337 ;
17338 return 0;
17339 }
17340 _ACEOF
17341 if ac_fn_c_try_link "$LINENO"; then :
17342 ac_cv_lib_svld_dlopen=yes
17343 else
17344 ac_cv_lib_svld_dlopen=no
17345 fi
17346 rm -f core conftest.err conftest.$ac_objext \
17347 conftest$ac_exeext conftest.$ac_ext
17348 LIBS=$ac_check_lib_save_LIBS
17349 fi
17350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17351 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
17352 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
17353 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17354 else
17355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17356 $as_echo_n "checking for dld_link in -ldld... " >&6; }
17357 if ${ac_cv_lib_dld_dld_link+:} false; then :
17358 $as_echo_n "(cached) " >&6
17359 else
17360 ac_check_lib_save_LIBS=$LIBS
17361 LIBS="-ldld $LIBS"
17362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17363 /* end confdefs.h. */
17364
17365 /* Override any GCC internal prototype to avoid an error.
17366 Use char because int might match the return type of a GCC
17367 builtin and then its argument prototype would still apply. */
17368 #ifdef __cplusplus
17369 extern "C"
17370 #endif
17371 char dld_link ();
17372 int
17373 main ()
17374 {
17375 return dld_link ();
17376 ;
17377 return 0;
17378 }
17379 _ACEOF
17380 if ac_fn_c_try_link "$LINENO"; then :
17381 ac_cv_lib_dld_dld_link=yes
17382 else
17383 ac_cv_lib_dld_dld_link=no
17384 fi
17385 rm -f core conftest.err conftest.$ac_objext \
17386 conftest$ac_exeext conftest.$ac_ext
17387 LIBS=$ac_check_lib_save_LIBS
17388 fi
17389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
17390 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
17391 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
17392 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
17393 fi
17394
17395
17396 fi
17397
17398
17399 fi
17400
17401
17402 fi
17403
17404
17405 fi
17406
17407
17408 fi
17409
17410 ;;
17411 esac
17412
17413 if test "x$lt_cv_dlopen" != xno; then
17414 enable_dlopen=yes
17415 else
17416 enable_dlopen=no
17417 fi
17418
17419 case $lt_cv_dlopen in
17420 dlopen)
17421 save_CPPFLAGS="$CPPFLAGS"
17422 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17423
17424 save_LDFLAGS="$LDFLAGS"
17425 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17426
17427 save_LIBS="$LIBS"
17428 LIBS="$lt_cv_dlopen_libs $LIBS"
17429
17430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
17431 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
17432 if ${lt_cv_dlopen_self+:} false; then :
17433 $as_echo_n "(cached) " >&6
17434 else
17435 if test "$cross_compiling" = yes; then :
17436 lt_cv_dlopen_self=cross
17437 else
17438 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17439 lt_status=$lt_dlunknown
17440 cat > conftest.$ac_ext <<_LT_EOF
17441 #line $LINENO "configure"
17442 #include "confdefs.h"
17443
17444 #if HAVE_DLFCN_H
17445 #include <dlfcn.h>
17446 #endif
17447
17448 #include <stdio.h>
17449
17450 #ifdef RTLD_GLOBAL
17451 # define LT_DLGLOBAL RTLD_GLOBAL
17452 #else
17453 # ifdef DL_GLOBAL
17454 # define LT_DLGLOBAL DL_GLOBAL
17455 # else
17456 # define LT_DLGLOBAL 0
17457 # endif
17458 #endif
17459
17460 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17461 find out it does not work in some platform. */
17462 #ifndef LT_DLLAZY_OR_NOW
17463 # ifdef RTLD_LAZY
17464 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17465 # else
17466 # ifdef DL_LAZY
17467 # define LT_DLLAZY_OR_NOW DL_LAZY
17468 # else
17469 # ifdef RTLD_NOW
17470 # define LT_DLLAZY_OR_NOW RTLD_NOW
17471 # else
17472 # ifdef DL_NOW
17473 # define LT_DLLAZY_OR_NOW DL_NOW
17474 # else
17475 # define LT_DLLAZY_OR_NOW 0
17476 # endif
17477 # endif
17478 # endif
17479 # endif
17480 #endif
17481
17482 /* When -fvisbility=hidden is used, assume the code has been annotated
17483 correspondingly for the symbols needed. */
17484 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17485 int fnord () __attribute__((visibility("default")));
17486 #endif
17487
17488 int fnord () { return 42; }
17489 int main ()
17490 {
17491 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17492 int status = $lt_dlunknown;
17493
17494 if (self)
17495 {
17496 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17497 else
17498 {
17499 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17500 else puts (dlerror ());
17501 }
17502 /* dlclose (self); */
17503 }
17504 else
17505 puts (dlerror ());
17506
17507 return status;
17508 }
17509 _LT_EOF
17510 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17511 (eval $ac_link) 2>&5
17512 ac_status=$?
17513 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17514 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17515 (./conftest; exit; ) >&5 2>/dev/null
17516 lt_status=$?
17517 case x$lt_status in
17518 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17519 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17520 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17521 esac
17522 else :
17523 # compilation failed
17524 lt_cv_dlopen_self=no
17525 fi
17526 fi
17527 rm -fr conftest*
17528
17529
17530 fi
17531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
17532 $as_echo "$lt_cv_dlopen_self" >&6; }
17533
17534 if test "x$lt_cv_dlopen_self" = xyes; then
17535 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
17537 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
17538 if ${lt_cv_dlopen_self_static+:} false; then :
17539 $as_echo_n "(cached) " >&6
17540 else
17541 if test "$cross_compiling" = yes; then :
17542 lt_cv_dlopen_self_static=cross
17543 else
17544 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17545 lt_status=$lt_dlunknown
17546 cat > conftest.$ac_ext <<_LT_EOF
17547 #line $LINENO "configure"
17548 #include "confdefs.h"
17549
17550 #if HAVE_DLFCN_H
17551 #include <dlfcn.h>
17552 #endif
17553
17554 #include <stdio.h>
17555
17556 #ifdef RTLD_GLOBAL
17557 # define LT_DLGLOBAL RTLD_GLOBAL
17558 #else
17559 # ifdef DL_GLOBAL
17560 # define LT_DLGLOBAL DL_GLOBAL
17561 # else
17562 # define LT_DLGLOBAL 0
17563 # endif
17564 #endif
17565
17566 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17567 find out it does not work in some platform. */
17568 #ifndef LT_DLLAZY_OR_NOW
17569 # ifdef RTLD_LAZY
17570 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17571 # else
17572 # ifdef DL_LAZY
17573 # define LT_DLLAZY_OR_NOW DL_LAZY
17574 # else
17575 # ifdef RTLD_NOW
17576 # define LT_DLLAZY_OR_NOW RTLD_NOW
17577 # else
17578 # ifdef DL_NOW
17579 # define LT_DLLAZY_OR_NOW DL_NOW
17580 # else
17581 # define LT_DLLAZY_OR_NOW 0
17582 # endif
17583 # endif
17584 # endif
17585 # endif
17586 #endif
17587
17588 /* When -fvisbility=hidden is used, assume the code has been annotated
17589 correspondingly for the symbols needed. */
17590 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17591 int fnord () __attribute__((visibility("default")));
17592 #endif
17593
17594 int fnord () { return 42; }
17595 int main ()
17596 {
17597 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17598 int status = $lt_dlunknown;
17599
17600 if (self)
17601 {
17602 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17603 else
17604 {
17605 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17606 else puts (dlerror ());
17607 }
17608 /* dlclose (self); */
17609 }
17610 else
17611 puts (dlerror ());
17612
17613 return status;
17614 }
17615 _LT_EOF
17616 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17617 (eval $ac_link) 2>&5
17618 ac_status=$?
17619 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17620 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17621 (./conftest; exit; ) >&5 2>/dev/null
17622 lt_status=$?
17623 case x$lt_status in
17624 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17625 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17626 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17627 esac
17628 else :
17629 # compilation failed
17630 lt_cv_dlopen_self_static=no
17631 fi
17632 fi
17633 rm -fr conftest*
17634
17635
17636 fi
17637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
17638 $as_echo "$lt_cv_dlopen_self_static" >&6; }
17639 fi
17640
17641 CPPFLAGS="$save_CPPFLAGS"
17642 LDFLAGS="$save_LDFLAGS"
17643 LIBS="$save_LIBS"
17644 ;;
17645 esac
17646
17647 case $lt_cv_dlopen_self in
17648 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17649 *) enable_dlopen_self=unknown ;;
17650 esac
17651
17652 case $lt_cv_dlopen_self_static in
17653 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17654 *) enable_dlopen_self_static=unknown ;;
17655 esac
17656 fi
17657
17658
17659
17660
17661
17662
17663
17664
17665
17666
17667
17668
17669
17670
17671
17672
17673
17674 striplib=
17675 old_striplib=
17676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
17677 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
17678 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
17679 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17680 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17682 $as_echo "yes" >&6; }
17683 else
17684 # FIXME - insert some real tests, host_os isn't really good enough
17685 case $host_os in
17686 darwin*)
17687 if test -n "$STRIP" ; then
17688 striplib="$STRIP -x"
17689 old_striplib="$STRIP -S"
17690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17691 $as_echo "yes" >&6; }
17692 else
17693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17694 $as_echo "no" >&6; }
17695 fi
17696 ;;
17697 *)
17698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17699 $as_echo "no" >&6; }
17700 ;;
17701 esac
17702 fi
17703
17704
17705
17706
17707
17708
17709
17710
17711
17712
17713
17714
17715 # Report which library types will actually be built
17716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
17717 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
17718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
17719 $as_echo "$can_build_shared" >&6; }
17720
17721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
17722 $as_echo_n "checking whether to build shared libraries... " >&6; }
17723 test "$can_build_shared" = "no" && enable_shared=no
17724
17725 # On AIX, shared libraries and static libraries use the same namespace, and
17726 # are all built from PIC.
17727 case $host_os in
17728 aix3*)
17729 test "$enable_shared" = yes && enable_static=no
17730 if test -n "$RANLIB"; then
17731 archive_cmds="$archive_cmds~\$RANLIB \$lib"
17732 postinstall_cmds='$RANLIB $lib'
17733 fi
17734 ;;
17735
17736 aix[4-9]*)
17737 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17738 test "$enable_shared" = yes && enable_static=no
17739 fi
17740 ;;
17741 esac
17742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
17743 $as_echo "$enable_shared" >&6; }
17744
17745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
17746 $as_echo_n "checking whether to build static libraries... " >&6; }
17747 # Make sure either enable_shared or enable_static is yes.
17748 test "$enable_shared" = yes || enable_static=yes
17749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
17750 $as_echo "$enable_static" >&6; }
17751
17752
17753
17754
17755 fi
17756 ac_ext=c
17757 ac_cpp='$CPP $CPPFLAGS'
17758 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17759 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17760 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17761
17762 CC="$lt_save_CC"
17763
17764
17765
17766
17767
17768
17769
17770
17771
17772
17773
17774
17775
17776
17777
17778 ac_config_commands="$ac_config_commands libtool"
17779
17780
17781
17782
17783 # Only expand once:
17784
17785
17786
17787
17788
17789 # Define a configure option for an alternate module directory
17790
17791 # Check whether --with-xorg-module-dir was given.
17792 if test "${with_xorg_module_dir+set}" = set; then :
17793 withval=$with_xorg_module_dir; moduledir="$withval"
17794 else
17795 moduledir="$libdir/xorg/modules"
17796 fi
17797
17798
17799 # Check whether --enable-dri was given.
17800 if test "${enable_dri+set}" = set; then :
17801 enableval=$enable_dri; DRI="$enableval"
17802 else
17803 DRI=auto
17804 fi
17805
17806 # Check whether --enable-exa was given.
17807 if test "${enable_exa+set}" = set; then :
17808 enableval=$enable_exa; EXA="$enableval"
17809 else
17810 EXA=yes
17811 fi
17812
17813
17814 # Store the list of server defined optional extensions in REQUIRED_MODULES
17815
17816
17817 SAVE_CFLAGS="$CFLAGS"
17818 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
17819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17820 /* end confdefs.h. */
17821
17822 #include "xorg-server.h"
17823 #if !defined RANDR
17824 #error RANDR not defined
17825 #endif
17826
17827 int
17828 main ()
17829 {
17830
17831 ;
17832 return 0;
17833 }
17834 _ACEOF
17835 if ac_fn_c_try_compile "$LINENO"; then :
17836 _EXT_CHECK=yes
17837 else
17838 _EXT_CHECK=no
17839 fi
17840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17841 CFLAGS="$SAVE_CFLAGS"
17842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if RANDR is defined" >&5
17843 $as_echo_n "checking if RANDR is defined... " >&6; }
17844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
17845 $as_echo "$_EXT_CHECK" >&6; }
17846 if test "$_EXT_CHECK" != no; then
17847 REQUIRED_MODULES="$REQUIRED_MODULES randrproto"
17848 fi
17849
17850
17851
17852 SAVE_CFLAGS="$CFLAGS"
17853 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
17854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17855 /* end confdefs.h. */
17856
17857 #include "xorg-server.h"
17858 #if !defined RENDER
17859 #error RENDER not defined
17860 #endif
17861
17862 int
17863 main ()
17864 {
17865
17866 ;
17867 return 0;
17868 }
17869 _ACEOF
17870 if ac_fn_c_try_compile "$LINENO"; then :
17871 _EXT_CHECK=yes
17872 else
17873 _EXT_CHECK=no
17874 fi
17875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17876 CFLAGS="$SAVE_CFLAGS"
17877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if RENDER is defined" >&5
17878 $as_echo_n "checking if RENDER is defined... " >&6; }
17879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
17880 $as_echo "$_EXT_CHECK" >&6; }
17881 if test "$_EXT_CHECK" != no; then
17882 REQUIRED_MODULES="$REQUIRED_MODULES renderproto"
17883 fi
17884
17885
17886
17887 SAVE_CFLAGS="$CFLAGS"
17888 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
17889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17890 /* end confdefs.h. */
17891
17892 #include "xorg-server.h"
17893 #if !defined XV
17894 #error XV not defined
17895 #endif
17896
17897 int
17898 main ()
17899 {
17900
17901 ;
17902 return 0;
17903 }
17904 _ACEOF
17905 if ac_fn_c_try_compile "$LINENO"; then :
17906 _EXT_CHECK=yes
17907 else
17908 _EXT_CHECK=no
17909 fi
17910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17911 CFLAGS="$SAVE_CFLAGS"
17912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XV is defined" >&5
17913 $as_echo_n "checking if XV is defined... " >&6; }
17914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
17915 $as_echo "$_EXT_CHECK" >&6; }
17916 if test "$_EXT_CHECK" != no; then
17917 REQUIRED_MODULES="$REQUIRED_MODULES videoproto"
17918 fi
17919
17920
17921
17922 SAVE_CFLAGS="$CFLAGS"
17923 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
17924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17925 /* end confdefs.h. */
17926
17927 #include "xorg-server.h"
17928 #if !defined DPMSExtension
17929 #error DPMSExtension not defined
17930 #endif
17931
17932 int
17933 main ()
17934 {
17935
17936 ;
17937 return 0;
17938 }
17939 _ACEOF
17940 if ac_fn_c_try_compile "$LINENO"; then :
17941 _EXT_CHECK=yes
17942 else
17943 _EXT_CHECK=no
17944 fi
17945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17946 CFLAGS="$SAVE_CFLAGS"
17947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPMSExtension is defined" >&5
17948 $as_echo_n "checking if DPMSExtension is defined... " >&6; }
17949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
17950 $as_echo "$_EXT_CHECK" >&6; }
17951 if test "$_EXT_CHECK" != no; then
17952 REQUIRED_MODULES="$REQUIRED_MODULES xextproto"
17953 fi
17954
17955
17956 # Obtain compiler/linker options for the driver dependencies
17957
17958 pkg_failed=no
17959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XORG" >&5
17960 $as_echo_n "checking for XORG... " >&6; }
17961
17962 if test -n "$XORG_CFLAGS"; then
17963 pkg_cv_XORG_CFLAGS="$XORG_CFLAGS"
17964 elif test -n "$PKG_CONFIG"; then
17965 if test -n "$PKG_CONFIG" && \
17966 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.1.0 xproto fontsproto \$REQUIRED_MODULES\""; } >&5
17967 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.1.0 xproto fontsproto $REQUIRED_MODULES") 2>&5
17968 ac_status=$?
17969 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17970 test $ac_status = 0; }; then
17971 pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.1.0 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
17972 else
17973 pkg_failed=yes
17974 fi
17975 else
17976 pkg_failed=untried
17977 fi
17978 if test -n "$XORG_LIBS"; then
17979 pkg_cv_XORG_LIBS="$XORG_LIBS"
17980 elif test -n "$PKG_CONFIG"; then
17981 if test -n "$PKG_CONFIG" && \
17982 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.1.0 xproto fontsproto \$REQUIRED_MODULES\""; } >&5
17983 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.1.0 xproto fontsproto $REQUIRED_MODULES") 2>&5
17984 ac_status=$?
17985 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17986 test $ac_status = 0; }; then
17987 pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.1.0 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
17988 else
17989 pkg_failed=yes
17990 fi
17991 else
17992 pkg_failed=untried
17993 fi
17994
17995
17996
17997 if test $pkg_failed = yes; then
17998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17999 $as_echo "no" >&6; }
18000
18001 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18002 _pkg_short_errors_supported=yes
18003 else
18004 _pkg_short_errors_supported=no
18005 fi
18006 if test $_pkg_short_errors_supported = yes; then
18007 XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xorg-server >= 1.1.0 xproto fontsproto $REQUIRED_MODULES" 2>&1`
18008 else
18009 XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors "xorg-server >= 1.1.0 xproto fontsproto $REQUIRED_MODULES" 2>&1`
18010 fi
18011 # Put the nasty error message in config.log where it belongs
18012 echo "$XORG_PKG_ERRORS" >&5
18013
18014 as_fn_error $? "Package requirements (xorg-server >= 1.1.0 xproto fontsproto $REQUIRED_MODULES) were not met:
18015
18016 $XORG_PKG_ERRORS
18017
18018 Consider adjusting the PKG_CONFIG_PATH environment variable if you
18019 installed software in a non-standard prefix.
18020
18021 Alternatively, you may set the environment variables XORG_CFLAGS
18022 and XORG_LIBS to avoid the need to call pkg-config.
18023 See the pkg-config man page for more details." "$LINENO" 5
18024
18025 elif test $pkg_failed = untried; then
18026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18027 $as_echo "no" >&6; }
18028 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18029 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18030 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
18031 is in your PATH or set the PKG_CONFIG environment variable to the full
18032 path to pkg-config.
18033
18034 Alternatively, you may set the environment variables XORG_CFLAGS
18035 and XORG_LIBS to avoid the need to call pkg-config.
18036 See the pkg-config man page for more details.
18037
18038 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18039 See \`config.log' for more details" "$LINENO" 5; }
18040
18041 else
18042 XORG_CFLAGS=$pkg_cv_XORG_CFLAGS
18043 XORG_LIBS=$pkg_cv_XORG_LIBS
18044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18045 $as_echo "yes" >&6; }
18046
18047 fi
18048 sdkdir=`$PKG_CONFIG --variable=sdkdir xorg-server`
18049
18050 # Checks for libraries.
18051
18052 if test "x$DRI" != xno; then
18053 as_ac_File=`$as_echo "ac_cv_file_${sdkdir}/dri.h" | $as_tr_sh`
18054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${sdkdir}/dri.h" >&5
18055 $as_echo_n "checking for ${sdkdir}/dri.h... " >&6; }
18056 if eval \${$as_ac_File+:} false; then :
18057 $as_echo_n "(cached) " >&6
18058 else
18059 test "$cross_compiling" = yes &&
18060 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
18061 if test -r "${sdkdir}/dri.h"; then
18062 eval "$as_ac_File=yes"
18063 else
18064 eval "$as_ac_File=no"
18065 fi
18066 fi
18067 eval ac_res=\$$as_ac_File
18068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18069 $as_echo "$ac_res" >&6; }
18070 if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
18071 have_dri_h="yes"
18072 else
18073 have_dri_h="no"
18074 fi
18075
18076 as_ac_File=`$as_echo "ac_cv_file_${sdkdir}/sarea.h" | $as_tr_sh`
18077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${sdkdir}/sarea.h" >&5
18078 $as_echo_n "checking for ${sdkdir}/sarea.h... " >&6; }
18079 if eval \${$as_ac_File+:} false; then :
18080 $as_echo_n "(cached) " >&6
18081 else
18082 test "$cross_compiling" = yes &&
18083 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
18084 if test -r "${sdkdir}/sarea.h"; then
18085 eval "$as_ac_File=yes"
18086 else
18087 eval "$as_ac_File=no"
18088 fi
18089 fi
18090 eval ac_res=\$$as_ac_File
18091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18092 $as_echo "$ac_res" >&6; }
18093 if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
18094 have_sarea_h="yes"
18095 else
18096 have_sarea_h="no"
18097 fi
18098
18099 as_ac_File=`$as_echo "ac_cv_file_${sdkdir}/dristruct.h" | $as_tr_sh`
18100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${sdkdir}/dristruct.h" >&5
18101 $as_echo_n "checking for ${sdkdir}/dristruct.h... " >&6; }
18102 if eval \${$as_ac_File+:} false; then :
18103 $as_echo_n "(cached) " >&6
18104 else
18105 test "$cross_compiling" = yes &&
18106 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
18107 if test -r "${sdkdir}/dristruct.h"; then
18108 eval "$as_ac_File=yes"
18109 else
18110 eval "$as_ac_File=no"
18111 fi
18112 fi
18113 eval ac_res=\$$as_ac_File
18114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18115 $as_echo "$ac_res" >&6; }
18116 if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
18117 have_dristruct_h="yes"
18118 else
18119 have_dristruct_h="no"
18120 fi
18121
18122 fi
18123
18124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include DRI support" >&5
18125 $as_echo_n "checking whether to include DRI support... " >&6; }
18126 if test "x$DRI" = xauto; then
18127 if test "x$have_dri_h" = xyes && \
18128 test "x$have_sarea_h" = xyes && \
18129 test "x$have_dristruct_h" = xyes; then
18130 DRI="yes"
18131 else
18132 DRI="no"
18133 fi
18134 fi
18135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DRI" >&5
18136 $as_echo "$DRI" >&6; }
18137
18138 if test "x$DRI" = xyes; then
18139 DRI_TRUE=
18140 DRI_FALSE='#'
18141 else
18142 DRI_TRUE='#'
18143 DRI_FALSE=
18144 fi
18145
18146 if test "x$DRI" = xyes; then
18147
18148 pkg_failed=no
18149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DRI" >&5
18150 $as_echo_n "checking for DRI... " >&6; }
18151
18152 if test -n "$DRI_CFLAGS"; then
18153 pkg_cv_DRI_CFLAGS="$DRI_CFLAGS"
18154 elif test -n "$PKG_CONFIG"; then
18155 if test -n "$PKG_CONFIG" && \
18156 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 2.0 xf86driproto\""; } >&5
18157 ($PKG_CONFIG --exists --print-errors "libdrm >= 2.0 xf86driproto") 2>&5
18158 ac_status=$?
18159 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18160 test $ac_status = 0; }; then
18161 pkg_cv_DRI_CFLAGS=`$PKG_CONFIG --cflags "libdrm >= 2.0 xf86driproto" 2>/dev/null`
18162 else
18163 pkg_failed=yes
18164 fi
18165 else
18166 pkg_failed=untried
18167 fi
18168 if test -n "$DRI_LIBS"; then
18169 pkg_cv_DRI_LIBS="$DRI_LIBS"
18170 elif test -n "$PKG_CONFIG"; then
18171 if test -n "$PKG_CONFIG" && \
18172 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 2.0 xf86driproto\""; } >&5
18173 ($PKG_CONFIG --exists --print-errors "libdrm >= 2.0 xf86driproto") 2>&5
18174 ac_status=$?
18175 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18176 test $ac_status = 0; }; then
18177 pkg_cv_DRI_LIBS=`$PKG_CONFIG --libs "libdrm >= 2.0 xf86driproto" 2>/dev/null`
18178 else
18179 pkg_failed=yes
18180 fi
18181 else
18182 pkg_failed=untried
18183 fi
18184
18185
18186
18187 if test $pkg_failed = yes; then
18188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18189 $as_echo "no" >&6; }
18190
18191 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18192 _pkg_short_errors_supported=yes
18193 else
18194 _pkg_short_errors_supported=no
18195 fi
18196 if test $_pkg_short_errors_supported = yes; then
18197 DRI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libdrm >= 2.0 xf86driproto" 2>&1`
18198 else
18199 DRI_PKG_ERRORS=`$PKG_CONFIG --print-errors "libdrm >= 2.0 xf86driproto" 2>&1`
18200 fi
18201 # Put the nasty error message in config.log where it belongs
18202 echo "$DRI_PKG_ERRORS" >&5
18203
18204 as_fn_error $? "Package requirements (libdrm >= 2.0 xf86driproto) were not met:
18205
18206 $DRI_PKG_ERRORS
18207
18208 Consider adjusting the PKG_CONFIG_PATH environment variable if you
18209 installed software in a non-standard prefix.
18210
18211 Alternatively, you may set the environment variables DRI_CFLAGS
18212 and DRI_LIBS to avoid the need to call pkg-config.
18213 See the pkg-config man page for more details." "$LINENO" 5
18214
18215 elif test $pkg_failed = untried; then
18216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18217 $as_echo "no" >&6; }
18218 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18219 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18220 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
18221 is in your PATH or set the PKG_CONFIG environment variable to the full
18222 path to pkg-config.
18223
18224 Alternatively, you may set the environment variables DRI_CFLAGS
18225 and DRI_LIBS to avoid the need to call pkg-config.
18226 See the pkg-config man page for more details.
18227
18228 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18229 See \`config.log' for more details" "$LINENO" 5; }
18230
18231 else
18232 DRI_CFLAGS=$pkg_cv_DRI_CFLAGS
18233 DRI_LIBS=$pkg_cv_DRI_LIBS
18234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18235 $as_echo "yes" >&6; }
18236
18237 fi
18238
18239 $as_echo "#define MGADRI 1" >>confdefs.h
18240
18241
18242 $as_echo "#define MGADRI_DEVEL 1" >>confdefs.h
18243
18244 fi
18245
18246 save_CFLAGS="$CFLAGS"
18247 CFLAGS="$XORG_CFLAGS"
18248 ac_fn_c_check_decl "$LINENO" "XSERVER_LIBPCIACCESS" "ac_cv_have_decl_XSERVER_LIBPCIACCESS" "#include \"xorg-server.h\"
18249 "
18250 if test "x$ac_cv_have_decl_XSERVER_LIBPCIACCESS" = xyes; then :
18251 XSERVER_LIBPCIACCESS=yes
18252 else
18253 XSERVER_LIBPCIACCESS=no
18254 fi
18255
18256 CFLAGS="$save_CFLAGS"
18257
18258 save_CFLAGS="$CFLAGS"
18259 CFLAGS="$XORG_CFLAGS"
18260 ac_fn_c_check_decl "$LINENO" "xf86ModeBandwidth" "ac_cv_have_decl_xf86ModeBandwidth" "#include <X11/extensions/randr.h>
18261 #include \"xorg-server.h\"
18262 #include \"xf86Modes.h\"
18263 "
18264 if test "x$ac_cv_have_decl_xf86ModeBandwidth" = xyes; then :
18265
18266 $as_echo "#define HAVE_XF86MODEBANDWIDTH 1" >>confdefs.h
18267
18268 fi
18269
18270 CFLAGS="$save_CFLAGS"
18271
18272 if test "x$XSERVER_LIBPCIACCESS" = xyes; then
18273
18274 pkg_failed=no
18275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCIACCESS" >&5
18276 $as_echo_n "checking for PCIACCESS... " >&6; }
18277
18278 if test -n "$PCIACCESS_CFLAGS"; then
18279 pkg_cv_PCIACCESS_CFLAGS="$PCIACCESS_CFLAGS"
18280 elif test -n "$PKG_CONFIG"; then
18281 if test -n "$PKG_CONFIG" && \
18282 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\""; } >&5
18283 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5
18284 ac_status=$?
18285 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18286 test $ac_status = 0; }; then
18287 pkg_cv_PCIACCESS_CFLAGS=`$PKG_CONFIG --cflags "pciaccess >= 0.8.0" 2>/dev/null`
18288 else
18289 pkg_failed=yes
18290 fi
18291 else
18292 pkg_failed=untried
18293 fi
18294 if test -n "$PCIACCESS_LIBS"; then
18295 pkg_cv_PCIACCESS_LIBS="$PCIACCESS_LIBS"
18296 elif test -n "$PKG_CONFIG"; then
18297 if test -n "$PKG_CONFIG" && \
18298 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\""; } >&5
18299 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5
18300 ac_status=$?
18301 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18302 test $ac_status = 0; }; then
18303 pkg_cv_PCIACCESS_LIBS=`$PKG_CONFIG --libs "pciaccess >= 0.8.0" 2>/dev/null`
18304 else
18305 pkg_failed=yes
18306 fi
18307 else
18308 pkg_failed=untried
18309 fi
18310
18311
18312
18313 if test $pkg_failed = yes; then
18314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18315 $as_echo "no" >&6; }
18316
18317 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18318 _pkg_short_errors_supported=yes
18319 else
18320 _pkg_short_errors_supported=no
18321 fi
18322 if test $_pkg_short_errors_supported = yes; then
18323 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pciaccess >= 0.8.0" 2>&1`
18324 else
18325 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --print-errors "pciaccess >= 0.8.0" 2>&1`
18326 fi
18327 # Put the nasty error message in config.log where it belongs
18328 echo "$PCIACCESS_PKG_ERRORS" >&5
18329
18330 as_fn_error $? "Package requirements (pciaccess >= 0.8.0) were not met:
18331
18332 $PCIACCESS_PKG_ERRORS
18333
18334 Consider adjusting the PKG_CONFIG_PATH environment variable if you
18335 installed software in a non-standard prefix.
18336
18337 Alternatively, you may set the environment variables PCIACCESS_CFLAGS
18338 and PCIACCESS_LIBS to avoid the need to call pkg-config.
18339 See the pkg-config man page for more details." "$LINENO" 5
18340
18341 elif test $pkg_failed = untried; then
18342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18343 $as_echo "no" >&6; }
18344 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18345 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18346 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
18347 is in your PATH or set the PKG_CONFIG environment variable to the full
18348 path to pkg-config.
18349
18350 Alternatively, you may set the environment variables PCIACCESS_CFLAGS
18351 and PCIACCESS_LIBS to avoid the need to call pkg-config.
18352 See the pkg-config man page for more details.
18353
18354 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18355 See \`config.log' for more details" "$LINENO" 5; }
18356
18357 else
18358 PCIACCESS_CFLAGS=$pkg_cv_PCIACCESS_CFLAGS
18359 PCIACCESS_LIBS=$pkg_cv_PCIACCESS_LIBS
18360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18361 $as_echo "yes" >&6; }
18362
18363 fi
18364 fi
18365 if test "x$XSERVER_LIBPCIACCESS" = xyes; then
18366 XSERVER_LIBPCIACCESS_TRUE=
18367 XSERVER_LIBPCIACCESS_FALSE='#'
18368 else
18369 XSERVER_LIBPCIACCESS_TRUE='#'
18370 XSERVER_LIBPCIACCESS_FALSE=
18371 fi
18372
18373
18374
18375 # Check whether --enable-xaa was given.
18376 if test "${enable_xaa+set}" = set; then :
18377 enableval=$enable_xaa; XAA="$enableval"
18378 else
18379 XAA=auto
18380 fi
18381
18382 if test "x$XAA" != xno; then
18383 save_CFLAGS=$CFLAGS
18384 save_CPPFLAGS=$CPPFLAGS
18385 CFLAGS=$XORG_CFLAGS
18386 CPPFLAGS="$XORG_CFLAGS"
18387 for ac_header in xaa.h
18388 do :
18389 ac_fn_c_check_header_mongrel "$LINENO" "xaa.h" "ac_cv_header_xaa_h" "$ac_includes_default"
18390 if test "x$ac_cv_header_xaa_h" = xyes; then :
18391 cat >>confdefs.h <<_ACEOF
18392 #define HAVE_XAA_H 1
18393 _ACEOF
18394 XAA=yes
18395 else
18396 XAA=no
18397 fi
18398
18399 done
18400
18401 CFLAGS=$save_CFLAGS
18402 CPPFLAGS=$save_CPPFLAGS
18403 fi
18404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include XAA support" >&5
18405 $as_echo_n "checking whether to include XAA support... " >&6; }
18406 if test "x$XAA" = xyes; then
18407 XAA_TRUE=
18408 XAA_FALSE='#'
18409 else
18410 XAA_TRUE='#'
18411 XAA_FALSE=
18412 fi
18413
18414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XAA" >&5
18415 $as_echo "$XAA" >&6; }
18416
18417 # Properly handle EXA.
18418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable EXA support" >&5
18419 $as_echo_n "checking whether to enable EXA support... " >&6; }
18420 if test "x$EXA" = xyes; then
18421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18422 $as_echo "yes" >&6; }
18423
18424 SAVE_CPPFLAGS="$CPPFLAGS"
18425 CPPFLAGS="$CPPFLAGS $XORG_CFLAGS"
18426 ac_fn_c_check_header_mongrel "$LINENO" "exa.h" "ac_cv_header_exa_h" "$ac_includes_default"
18427 if test "x$ac_cv_header_exa_h" = xyes; then :
18428 have_exa_h="yes"
18429 else
18430 have_exa_h="no"
18431 fi
18432
18433
18434 CPPFLAGS="$SAVE_CPPFLAGS"
18435 else
18436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18437 $as_echo "no" >&6; }
18438 fi
18439
18440 SAVE_CPPFLAGS="$CPPFLAGS"
18441 CPPFLAGS="$CPPFLAGS $XORG_CFLAGS"
18442 if test "x$have_exa_h" = xyes; then
18443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether EXA version is at least 2.0.0" >&5
18444 $as_echo_n "checking whether EXA version is at least 2.0.0... " >&6; }
18445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18446 /* end confdefs.h. */
18447
18448 #include "exa.h"
18449 #if EXA_VERSION_MAJOR < 2
18450 #error OLD EXA!
18451 #endif
18452
18453 int
18454 main ()
18455 {
18456
18457 ;
18458 return 0;
18459 }
18460 _ACEOF
18461 if ac_fn_c_try_cpp "$LINENO"; then :
18462 USE_EXA=yes
18463 else
18464 USE_EXA=no
18465 fi
18466 rm -f conftest.err conftest.i conftest.$ac_ext
18467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_EXA" >&5
18468 $as_echo "$USE_EXA" >&6; }
18469
18470 if test "x$USE_EXA" = xyes; then
18471
18472 $as_echo "#define USE_EXA 1" >>confdefs.h
18473
18474 fi
18475 fi
18476 CPPFLAGS="$SAVE_CPPFLAGS"
18477
18478 if test "x$USE_EXA" = xyes; then
18479 USE_EXA_TRUE=
18480 USE_EXA_FALSE='#'
18481 else
18482 USE_EXA_TRUE='#'
18483 USE_EXA_FALSE=
18484 fi
18485
18486
18487
18488
18489 DRIVER_NAME=mga
18490
18491
18492 ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile util/Makefile"
18493
18494 cat >confcache <<\_ACEOF
18495 # This file is a shell script that caches the results of configure
18496 # tests run on this system so they can be shared between configure
18497 # scripts and configure runs, see configure's option --config-cache.
18498 # It is not useful on other systems. If it contains results you don't
18499 # want to keep, you may remove or edit it.
18500 #
18501 # config.status only pays attention to the cache file if you give it
18502 # the --recheck option to rerun configure.
18503 #
18504 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18505 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18506 # following values.
18507
18508 _ACEOF
18509
18510 # The following way of writing the cache mishandles newlines in values,
18511 # but we know of no workaround that is simple, portable, and efficient.
18512 # So, we kill variables containing newlines.
18513 # Ultrix sh set writes to stderr and can't be redirected directly,
18514 # and sets the high bit in the cache file unless we assign to the vars.
18515 (
18516 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18517 eval ac_val=\$$ac_var
18518 case $ac_val in #(
18519 *${as_nl}*)
18520 case $ac_var in #(
18521 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18522 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18523 esac
18524 case $ac_var in #(
18525 _ | IFS | as_nl) ;; #(
18526 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18527 *) { eval $ac_var=; unset $ac_var;} ;;
18528 esac ;;
18529 esac
18530 done
18531
18532 (set) 2>&1 |
18533 case $as_nl`(ac_space=' '; set) 2>&1` in #(
18534 *${as_nl}ac_space=\ *)
18535 # `set' does not quote correctly, so add quotes: double-quote
18536 # substitution turns \\\\ into \\, and sed turns \\ into \.
18537 sed -n \
18538 "s/'/'\\\\''/g;
18539 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18540 ;; #(
18541 *)
18542 # `set' quotes correctly as required by POSIX, so do not add quotes.
18543 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18544 ;;
18545 esac |
18546 sort
18547 ) |
18548 sed '
18549 /^ac_cv_env_/b end
18550 t clear
18551 :clear
18552 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18553 t end
18554 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18555 :end' >>confcache
18556 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18557 if test -w "$cache_file"; then
18558 if test "x$cache_file" != "x/dev/null"; then
18559 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18560 $as_echo "$as_me: updating cache $cache_file" >&6;}
18561 if test ! -f "$cache_file" || test -h "$cache_file"; then
18562 cat confcache >"$cache_file"
18563 else
18564 case $cache_file in #(
18565 */* | ?:*)
18566 mv -f confcache "$cache_file"$$ &&
18567 mv -f "$cache_file"$$ "$cache_file" ;; #(
18568 *)
18569 mv -f confcache "$cache_file" ;;
18570 esac
18571 fi
18572 fi
18573 else
18574 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18575 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18576 fi
18577 fi
18578 rm -f confcache
18579
18580 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18581 # Let make expand exec_prefix.
18582 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18583
18584 DEFS=-DHAVE_CONFIG_H
18585
18586 ac_libobjs=
18587 ac_ltlibobjs=
18588 U=
18589 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18590 # 1. Remove the extension, and $U if already installed.
18591 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18592 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18593 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
18594 # will be set to the directory where LIBOBJS objects are built.
18595 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18596 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18597 done
18598 LIBOBJS=$ac_libobjs
18599
18600 LTLIBOBJS=$ac_ltlibobjs
18601
18602
18603 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
18604 as_fn_error $? "conditional \"AMDEP\" was never defined.
18605 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18606 fi
18607 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18608 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
18609 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18610 fi
18611 if test -n "$EXEEXT"; then
18612 am__EXEEXT_TRUE=
18613 am__EXEEXT_FALSE='#'
18614 else
18615 am__EXEEXT_TRUE='#'
18616 am__EXEEXT_FALSE=
18617 fi
18618
18619 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
18620 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
18621 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18622 fi
18623 if test -z "${DRI_TRUE}" && test -z "${DRI_FALSE}"; then
18624 as_fn_error $? "conditional \"DRI\" was never defined.
18625 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18626 fi
18627 if test -z "${XSERVER_LIBPCIACCESS_TRUE}" && test -z "${XSERVER_LIBPCIACCESS_FALSE}"; then
18628 as_fn_error $? "conditional \"XSERVER_LIBPCIACCESS\" was never defined.
18629 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18630 fi
18631 if test -z "${XAA_TRUE}" && test -z "${XAA_FALSE}"; then
18632 as_fn_error $? "conditional \"XAA\" was never defined.
18633 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18634 fi
18635 if test -z "${USE_EXA_TRUE}" && test -z "${USE_EXA_FALSE}"; then
18636 as_fn_error $? "conditional \"USE_EXA\" was never defined.
18637 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18638 fi
18639
18640 : "${CONFIG_STATUS=./config.status}"
18641 ac_write_fail=0
18642 ac_clean_files_save=$ac_clean_files
18643 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18644 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18645 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18646 as_write_fail=0
18647 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18648 #! $SHELL
18649 # Generated by $as_me.
18650 # Run this file to recreate the current configuration.
18651 # Compiler output produced by configure, useful for debugging
18652 # configure, is in config.log if it exists.
18653
18654 debug=false
18655 ac_cs_recheck=false
18656 ac_cs_silent=false
18657
18658 SHELL=\${CONFIG_SHELL-$SHELL}
18659 export SHELL
18660 _ASEOF
18661 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18662 ## -------------------- ##
18663 ## M4sh Initialization. ##
18664 ## -------------------- ##
18665
18666 # Be more Bourne compatible
18667 DUALCASE=1; export DUALCASE # for MKS sh
18668 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18669 emulate sh
18670 NULLCMD=:
18671 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18672 # is contrary to our usage. Disable this feature.
18673 alias -g '${1+"$@"}'='"$@"'
18674 setopt NO_GLOB_SUBST
18675 else
18676 case `(set -o) 2>/dev/null` in #(
18677 *posix*) :
18678 set -o posix ;; #(
18679 *) :
18680 ;;
18681 esac
18682 fi
18683
18684
18685 as_nl='
18686 '
18687 export as_nl
18688 # Printing a long string crashes Solaris 7 /usr/bin/printf.
18689 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18690 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18691 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18692 # Prefer a ksh shell builtin over an external printf program on Solaris,
18693 # but without wasting forks for bash or zsh.
18694 if test -z "$BASH_VERSION$ZSH_VERSION" \
18695 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18696 as_echo='print -r --'
18697 as_echo_n='print -rn --'
18698 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18699 as_echo='printf %s\n'
18700 as_echo_n='printf %s'
18701 else
18702 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18703 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18704 as_echo_n='/usr/ucb/echo -n'
18705 else
18706 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18707 as_echo_n_body='eval
18708 arg=$1;
18709 case $arg in #(
18710 *"$as_nl"*)
18711 expr "X$arg" : "X\\(.*\\)$as_nl";
18712 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18713 esac;
18714 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18715 '
18716 export as_echo_n_body
18717 as_echo_n='sh -c $as_echo_n_body as_echo'
18718 fi
18719 export as_echo_body
18720 as_echo='sh -c $as_echo_body as_echo'
18721 fi
18722
18723 # The user is always right.
18724 if test "${PATH_SEPARATOR+set}" != set; then
18725 PATH_SEPARATOR=:
18726 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18727 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18728 PATH_SEPARATOR=';'
18729 }
18730 fi
18731
18732
18733 # IFS
18734 # We need space, tab and new line, in precisely that order. Quoting is
18735 # there to prevent editors from complaining about space-tab.
18736 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
18737 # splitting by setting IFS to empty value.)
18738 IFS=" "" $as_nl"
18739
18740 # Find who we are. Look in the path if we contain no directory separator.
18741 as_myself=
18742 case $0 in #((
18743 *[\\/]* ) as_myself=$0 ;;
18744 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18745 for as_dir in $PATH
18746 do
18747 IFS=$as_save_IFS
18748 test -z "$as_dir" && as_dir=.
18749 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18750 done
18751 IFS=$as_save_IFS
18752
18753 ;;
18754 esac
18755 # We did not find ourselves, most probably we were run as `sh COMMAND'
18756 # in which case we are not to be found in the path.
18757 if test "x$as_myself" = x; then
18758 as_myself=$0
18759 fi
18760 if test ! -f "$as_myself"; then
18761 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18762 exit 1
18763 fi
18764
18765 # Unset variables that we do not need and which cause bugs (e.g. in
18766 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
18767 # suppresses any "Segmentation fault" message there. '((' could
18768 # trigger a bug in pdksh 5.2.14.
18769 for as_var in BASH_ENV ENV MAIL MAILPATH
18770 do eval test x\${$as_var+set} = xset \
18771 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18772 done
18773 PS1='$ '
18774 PS2='> '
18775 PS4='+ '
18776
18777 # NLS nuisances.
18778 LC_ALL=C
18779 export LC_ALL
18780 LANGUAGE=C
18781 export LANGUAGE
18782
18783 # CDPATH.
18784 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18785
18786
18787 # as_fn_error STATUS ERROR [LINENO LOG_FD]
18788 # ----------------------------------------
18789 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18790 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18791 # script with STATUS, using 1 if that was 0.
18792 as_fn_error ()
18793 {
18794 as_status=$1; test $as_status -eq 0 && as_status=1
18795 if test "$4"; then
18796 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18797 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
18798 fi
18799 $as_echo "$as_me: error: $2" >&2
18800 as_fn_exit $as_status
18801 } # as_fn_error
18802
18803
18804 # as_fn_set_status STATUS
18805 # -----------------------
18806 # Set $? to STATUS, without forking.
18807 as_fn_set_status ()
18808 {
18809 return $1
18810 } # as_fn_set_status
18811
18812 # as_fn_exit STATUS
18813 # -----------------
18814 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18815 as_fn_exit ()
18816 {
18817 set +e
18818 as_fn_set_status $1
18819 exit $1
18820 } # as_fn_exit
18821
18822 # as_fn_unset VAR
18823 # ---------------
18824 # Portably unset VAR.
18825 as_fn_unset ()
18826 {
18827 { eval $1=; unset $1;}
18828 }
18829 as_unset=as_fn_unset
18830 # as_fn_append VAR VALUE
18831 # ----------------------
18832 # Append the text in VALUE to the end of the definition contained in VAR. Take
18833 # advantage of any shell optimizations that allow amortized linear growth over
18834 # repeated appends, instead of the typical quadratic growth present in naive
18835 # implementations.
18836 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
18837 eval 'as_fn_append ()
18838 {
18839 eval $1+=\$2
18840 }'
18841 else
18842 as_fn_append ()
18843 {
18844 eval $1=\$$1\$2
18845 }
18846 fi # as_fn_append
18847
18848 # as_fn_arith ARG...
18849 # ------------------
18850 # Perform arithmetic evaluation on the ARGs, and store the result in the
18851 # global $as_val. Take advantage of shells that can avoid forks. The arguments
18852 # must be portable across $(()) and expr.
18853 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
18854 eval 'as_fn_arith ()
18855 {
18856 as_val=$(( $* ))
18857 }'
18858 else
18859 as_fn_arith ()
18860 {
18861 as_val=`expr "$@" || test $? -eq 1`
18862 }
18863 fi # as_fn_arith
18864
18865
18866 if expr a : '\(a\)' >/dev/null 2>&1 &&
18867 test "X`expr 00001 : '.*\(...\)'`" = X001; then
18868 as_expr=expr
18869 else
18870 as_expr=false
18871 fi
18872
18873 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18874 as_basename=basename
18875 else
18876 as_basename=false
18877 fi
18878
18879 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18880 as_dirname=dirname
18881 else
18882 as_dirname=false
18883 fi
18884
18885 as_me=`$as_basename -- "$0" ||
18886 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18887 X"$0" : 'X\(//\)$' \| \
18888 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18889 $as_echo X/"$0" |
18890 sed '/^.*\/\([^/][^/]*\)\/*$/{
18891 s//\1/
18892 q
18893 }
18894 /^X\/\(\/\/\)$/{
18895 s//\1/
18896 q
18897 }
18898 /^X\/\(\/\).*/{
18899 s//\1/
18900 q
18901 }
18902 s/.*/./; q'`
18903
18904 # Avoid depending upon Character Ranges.
18905 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18906 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18907 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18908 as_cr_digits='0123456789'
18909 as_cr_alnum=$as_cr_Letters$as_cr_digits
18910
18911 ECHO_C= ECHO_N= ECHO_T=
18912 case `echo -n x` in #(((((
18913 -n*)
18914 case `echo 'xy\c'` in
18915 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
18916 xy) ECHO_C='\c';;
18917 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
18918 ECHO_T=' ';;
18919 esac;;
18920 *)
18921 ECHO_N='-n';;
18922 esac
18923
18924 rm -f conf$$ conf$$.exe conf$$.file
18925 if test -d conf$$.dir; then
18926 rm -f conf$$.dir/conf$$.file
18927 else
18928 rm -f conf$$.dir
18929 mkdir conf$$.dir 2>/dev/null
18930 fi
18931 if (echo >conf$$.file) 2>/dev/null; then
18932 if ln -s conf$$.file conf$$ 2>/dev/null; then
18933 as_ln_s='ln -s'
18934 # ... but there are two gotchas:
18935 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18936 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18937 # In both cases, we have to default to `cp -p'.
18938 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18939 as_ln_s='cp -p'
18940 elif ln conf$$.file conf$$ 2>/dev/null; then
18941 as_ln_s=ln
18942 else
18943 as_ln_s='cp -p'
18944 fi
18945 else
18946 as_ln_s='cp -p'
18947 fi
18948 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18949 rmdir conf$$.dir 2>/dev/null
18950
18951
18952 # as_fn_mkdir_p
18953 # -------------
18954 # Create "$as_dir" as a directory, including parents if necessary.
18955 as_fn_mkdir_p ()
18956 {
18957
18958 case $as_dir in #(
18959 -*) as_dir=./$as_dir;;
18960 esac
18961 test -d "$as_dir" || eval $as_mkdir_p || {
18962 as_dirs=
18963 while :; do
18964 case $as_dir in #(
18965 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18966 *) as_qdir=$as_dir;;
18967 esac
18968 as_dirs="'$as_qdir' $as_dirs"
18969 as_dir=`$as_dirname -- "$as_dir" ||
18970 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18971 X"$as_dir" : 'X\(//\)[^/]' \| \
18972 X"$as_dir" : 'X\(//\)$' \| \
18973 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18974 $as_echo X"$as_dir" |
18975 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18976 s//\1/
18977 q
18978 }
18979 /^X\(\/\/\)[^/].*/{
18980 s//\1/
18981 q
18982 }
18983 /^X\(\/\/\)$/{
18984 s//\1/
18985 q
18986 }
18987 /^X\(\/\).*/{
18988 s//\1/
18989 q
18990 }
18991 s/.*/./; q'`
18992 test -d "$as_dir" && break
18993 done
18994 test -z "$as_dirs" || eval "mkdir $as_dirs"
18995 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
18996
18997
18998 } # as_fn_mkdir_p
18999 if mkdir -p . 2>/dev/null; then
19000 as_mkdir_p='mkdir -p "$as_dir"'
19001 else
19002 test -d ./-p && rmdir ./-p
19003 as_mkdir_p=false
19004 fi
19005
19006 if test -x / >/dev/null 2>&1; then
19007 as_test_x='test -x'
19008 else
19009 if ls -dL / >/dev/null 2>&1; then
19010 as_ls_L_option=L
19011 else
19012 as_ls_L_option=
19013 fi
19014 as_test_x='
19015 eval sh -c '\''
19016 if test -d "$1"; then
19017 test -d "$1/.";
19018 else
19019 case $1 in #(
19020 -*)set "./$1";;
19021 esac;
19022 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
19023 ???[sx]*):;;*)false;;esac;fi
19024 '\'' sh
19025 '
19026 fi
19027 as_executable_p=$as_test_x
19028
19029 # Sed expression to map a string onto a valid CPP name.
19030 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19031
19032 # Sed expression to map a string onto a valid variable name.
19033 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19034
19035
19036 exec 6>&1
19037 ## ----------------------------------- ##
19038 ## Main body of $CONFIG_STATUS script. ##
19039 ## ----------------------------------- ##
19040 _ASEOF
19041 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
19042
19043 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19044 # Save the log message, to keep $0 and so on meaningful, and to
19045 # report actual input values of CONFIG_FILES etc. instead of their
19046 # values after options handling.
19047 ac_log="
19048 This file was extended by xf86-video-mga $as_me 1.6.2, which was
19049 generated by GNU Autoconf 2.68. Invocation command line was
19050
19051 CONFIG_FILES = $CONFIG_FILES
19052 CONFIG_HEADERS = $CONFIG_HEADERS
19053 CONFIG_LINKS = $CONFIG_LINKS
19054 CONFIG_COMMANDS = $CONFIG_COMMANDS
19055 $ $0 $@
19056
19057 on `(hostname || uname -n) 2>/dev/null | sed 1q`
19058 "
19059
19060 _ACEOF
19061
19062 case $ac_config_files in *"
19063 "*) set x $ac_config_files; shift; ac_config_files=$*;;
19064 esac
19065
19066 case $ac_config_headers in *"
19067 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
19068 esac
19069
19070
19071 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19072 # Files that config.status was made for.
19073 config_files="$ac_config_files"
19074 config_headers="$ac_config_headers"
19075 config_commands="$ac_config_commands"
19076
19077 _ACEOF
19078
19079 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19080 ac_cs_usage="\
19081 \`$as_me' instantiates files and other configuration actions
19082 from templates according to the current configuration. Unless the files
19083 and actions are specified as TAGs, all are instantiated by default.
19084
19085 Usage: $0 [OPTION]... [TAG]...
19086
19087 -h, --help print this help, then exit
19088 -V, --version print version number and configuration settings, then exit
19089 --config print configuration, then exit
19090 -q, --quiet, --silent
19091 do not print progress messages
19092 -d, --debug don't remove temporary files
19093 --recheck update $as_me by reconfiguring in the same conditions
19094 --file=FILE[:TEMPLATE]
19095 instantiate the configuration file FILE
19096 --header=FILE[:TEMPLATE]
19097 instantiate the configuration header FILE
19098
19099 Configuration files:
19100 $config_files
19101
19102 Configuration headers:
19103 $config_headers
19104
19105 Configuration commands:
19106 $config_commands
19107
19108 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
19109
19110 _ACEOF
19111 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19112 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
19113 ac_cs_version="\\
19114 xf86-video-mga config.status 1.6.2
19115 configured by $0, generated by GNU Autoconf 2.68,
19116 with options \\"\$ac_cs_config\\"
19117
19118 Copyright (C) 2010 Free Software Foundation, Inc.
19119 This config.status script is free software; the Free Software Foundation
19120 gives unlimited permission to copy, distribute and modify it."
19121
19122 ac_pwd='$ac_pwd'
19123 srcdir='$srcdir'
19124 INSTALL='$INSTALL'
19125 MKDIR_P='$MKDIR_P'
19126 AWK='$AWK'
19127 test -n "\$AWK" || AWK=awk
19128 _ACEOF
19129
19130 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19131 # The default lists apply if the user does not specify any file.
19132 ac_need_defaults=:
19133 while test $# != 0
19134 do
19135 case $1 in
19136 --*=?*)
19137 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19138 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19139 ac_shift=:
19140 ;;
19141 --*=)
19142 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19143 ac_optarg=
19144 ac_shift=:
19145 ;;
19146 *)
19147 ac_option=$1
19148 ac_optarg=$2
19149 ac_shift=shift
19150 ;;
19151 esac
19152
19153 case $ac_option in
19154 # Handling of the options.
19155 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19156 ac_cs_recheck=: ;;
19157 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19158 $as_echo "$ac_cs_version"; exit ;;
19159 --config | --confi | --conf | --con | --co | --c )
19160 $as_echo "$ac_cs_config"; exit ;;
19161 --debug | --debu | --deb | --de | --d | -d )
19162 debug=: ;;
19163 --file | --fil | --fi | --f )
19164 $ac_shift
19165 case $ac_optarg in
19166 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19167 '') as_fn_error $? "missing file argument" ;;
19168 esac
19169 as_fn_append CONFIG_FILES " '$ac_optarg'"
19170 ac_need_defaults=false;;
19171 --header | --heade | --head | --hea )
19172 $ac_shift
19173 case $ac_optarg in
19174 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19175 esac
19176 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
19177 ac_need_defaults=false;;
19178 --he | --h)
19179 # Conflict between --help and --header
19180 as_fn_error $? "ambiguous option: \`$1'
19181 Try \`$0 --help' for more information.";;
19182 --help | --hel | -h )
19183 $as_echo "$ac_cs_usage"; exit ;;
19184 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19185 | -silent | --silent | --silen | --sile | --sil | --si | --s)
19186 ac_cs_silent=: ;;
19187
19188 # This is an error.
19189 -*) as_fn_error $? "unrecognized option: \`$1'
19190 Try \`$0 --help' for more information." ;;
19191
19192 *) as_fn_append ac_config_targets " $1"
19193 ac_need_defaults=false ;;
19194
19195 esac
19196 shift
19197 done
19198
19199 ac_configure_extra_args=
19200
19201 if $ac_cs_silent; then
19202 exec 6>/dev/null
19203 ac_configure_extra_args="$ac_configure_extra_args --silent"
19204 fi
19205
19206 _ACEOF
19207 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19208 if \$ac_cs_recheck; then
19209 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19210 shift
19211 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19212 CONFIG_SHELL='$SHELL'
19213 export CONFIG_SHELL
19214 exec "\$@"
19215 fi
19216
19217 _ACEOF
19218 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19219 exec 5>>config.log
19220 {
19221 echo
19222 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19223 ## Running $as_me. ##
19224 _ASBOX
19225 $as_echo "$ac_log"
19226 } >&5
19227
19228 _ACEOF
19229 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19230 #
19231 # INIT-COMMANDS
19232 #
19233 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
19234
19235
19236 # The HP-UX ksh and POSIX shell print the target directory to stdout
19237 # if CDPATH is set.
19238 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19239
19240 sed_quote_subst='$sed_quote_subst'
19241 double_quote_subst='$double_quote_subst'
19242 delay_variable_subst='$delay_variable_subst'
19243 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
19244 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
19245 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
19246 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
19247 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
19248 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
19249 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
19250 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
19251 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
19252 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
19253 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
19254 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
19255 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
19256 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
19257 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
19258 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
19259 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
19260 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
19261 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
19262 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
19263 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
19264 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
19265 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
19266 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
19267 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
19268 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
19269 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
19270 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
19271 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
19272 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
19273 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
19274 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
19275 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
19276 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
19277 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
19278 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
19279 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
19280 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
19281 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
19282 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
19283 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
19284 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
19285 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
19286 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
19287 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
19288 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19289 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19290 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
19291 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
19292 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
19293 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
19294 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
19295 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
19296 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
19297 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
19298 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
19299 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"`'
19300 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
19301 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
19302 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
19303 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
19304 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
19305 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
19306 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
19307 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
19308 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
19309 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
19310 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
19311 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
19312 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
19313 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
19314 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
19315 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
19316 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
19317 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
19318 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19319 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
19320 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
19321 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
19322 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
19323 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
19324 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
19325 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19326 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
19327 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19328 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
19329 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19330 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
19331 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
19332 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
19333 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
19334 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
19335 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
19336 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
19337 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
19338 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
19339 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
19340 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
19341 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
19342 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
19343 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
19344 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
19345 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
19346 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
19347 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
19348 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
19349 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
19350 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
19351 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
19352 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
19353 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
19354 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
19355 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
19356 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
19357 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
19358 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
19359 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
19360 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19361 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19362 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
19363 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
19364 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
19365 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
19366 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
19367 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
19368 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
19369 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
19370 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
19371 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
19372 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
19373
19374 LTCC='$LTCC'
19375 LTCFLAGS='$LTCFLAGS'
19376 compiler='$compiler_DEFAULT'
19377
19378 # A function that is used when there is no print builtin or printf.
19379 func_fallback_echo ()
19380 {
19381 eval 'cat <<_LTECHO_EOF
19382 \$1
19383 _LTECHO_EOF'
19384 }
19385
19386 # Quote evaled strings.
19387 for var in SHELL \
19388 ECHO \
19389 PATH_SEPARATOR \
19390 SED \
19391 GREP \
19392 EGREP \
19393 FGREP \
19394 LD \
19395 NM \
19396 LN_S \
19397 lt_SP2NL \
19398 lt_NL2SP \
19399 reload_flag \
19400 OBJDUMP \
19401 deplibs_check_method \
19402 file_magic_cmd \
19403 file_magic_glob \
19404 want_nocaseglob \
19405 DLLTOOL \
19406 sharedlib_from_linklib_cmd \
19407 AR \
19408 AR_FLAGS \
19409 archiver_list_spec \
19410 STRIP \
19411 RANLIB \
19412 CC \
19413 CFLAGS \
19414 compiler \
19415 lt_cv_sys_global_symbol_pipe \
19416 lt_cv_sys_global_symbol_to_cdecl \
19417 lt_cv_sys_global_symbol_to_c_name_address \
19418 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
19419 nm_file_list_spec \
19420 lt_prog_compiler_no_builtin_flag \
19421 lt_prog_compiler_pic \
19422 lt_prog_compiler_wl \
19423 lt_prog_compiler_static \
19424 lt_cv_prog_compiler_c_o \
19425 need_locks \
19426 MANIFEST_TOOL \
19427 DSYMUTIL \
19428 NMEDIT \
19429 LIPO \
19430 OTOOL \
19431 OTOOL64 \
19432 shrext_cmds \
19433 export_dynamic_flag_spec \
19434 whole_archive_flag_spec \
19435 compiler_needs_object \
19436 with_gnu_ld \
19437 allow_undefined_flag \
19438 no_undefined_flag \
19439 hardcode_libdir_flag_spec \
19440 hardcode_libdir_separator \
19441 exclude_expsyms \
19442 include_expsyms \
19443 file_list_spec \
19444 variables_saved_for_relink \
19445 libname_spec \
19446 library_names_spec \
19447 soname_spec \
19448 install_override_mode \
19449 finish_eval \
19450 old_striplib \
19451 striplib; do
19452 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19453 *[\\\\\\\`\\"\\\$]*)
19454 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
19455 ;;
19456 *)
19457 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19458 ;;
19459 esac
19460 done
19461
19462 # Double-quote double-evaled strings.
19463 for var in reload_cmds \
19464 old_postinstall_cmds \
19465 old_postuninstall_cmds \
19466 old_archive_cmds \
19467 extract_expsyms_cmds \
19468 old_archive_from_new_cmds \
19469 old_archive_from_expsyms_cmds \
19470 archive_cmds \
19471 archive_expsym_cmds \
19472 module_cmds \
19473 module_expsym_cmds \
19474 export_symbols_cmds \
19475 prelink_cmds \
19476 postlink_cmds \
19477 postinstall_cmds \
19478 postuninstall_cmds \
19479 finish_cmds \
19480 sys_lib_search_path_spec \
19481 sys_lib_dlsearch_path_spec; do
19482 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19483 *[\\\\\\\`\\"\\\$]*)
19484 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
19485 ;;
19486 *)
19487 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19488 ;;
19489 esac
19490 done
19491
19492 ac_aux_dir='$ac_aux_dir'
19493 xsi_shell='$xsi_shell'
19494 lt_shell_append='$lt_shell_append'
19495
19496 # See if we are running on zsh, and set the options which allow our
19497 # commands through without removal of \ escapes INIT.
19498 if test -n "\${ZSH_VERSION+set}" ; then
19499 setopt NO_GLOB_SUBST
19500 fi
19501
19502
19503 PACKAGE='$PACKAGE'
19504 VERSION='$VERSION'
19505 TIMESTAMP='$TIMESTAMP'
19506 RM='$RM'
19507 ofile='$ofile'
19508
19509
19510
19511
19512 _ACEOF
19513
19514 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19515
19516 # Handling of arguments.
19517 for ac_config_target in $ac_config_targets
19518 do
19519 case $ac_config_target in
19520 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
19521 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
19522 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
19523 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19524 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
19525 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
19526 "util/Makefile") CONFIG_FILES="$CONFIG_FILES util/Makefile" ;;
19527
19528 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19529 esac
19530 done
19531
19532
19533 # If the user did not use the arguments to specify the items to instantiate,
19534 # then the envvar interface is used. Set only those that are not.
19535 # We use the long form for the default assignment because of an extremely
19536 # bizarre bug on SunOS 4.1.3.
19537 if $ac_need_defaults; then
19538 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19539 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19540 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19541 fi
19542
19543 # Have a temporary directory for convenience. Make it in the build tree
19544 # simply because there is no reason against having it here, and in addition,
19545 # creating and moving files from /tmp can sometimes cause problems.
19546 # Hook for its removal unless debugging.
19547 # Note that there is a small window in which the directory will not be cleaned:
19548 # after its creation but before its name has been assigned to `$tmp'.
19549 $debug ||
19550 {
19551 tmp= ac_tmp=
19552 trap 'exit_status=$?
19553 : "${ac_tmp:=$tmp}"
19554 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19555 ' 0
19556 trap 'as_fn_exit 1' 1 2 13 15
19557 }
19558 # Create a (secure) tmp directory for tmp files.
19559
19560 {
19561 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19562 test -d "$tmp"
19563 } ||
19564 {
19565 tmp=./conf$$-$RANDOM
19566 (umask 077 && mkdir "$tmp")
19567 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19568 ac_tmp=$tmp
19569
19570 # Set up the scripts for CONFIG_FILES section.
19571 # No need to generate them if there are no CONFIG_FILES.
19572 # This happens for instance with `./config.status config.h'.
19573 if test -n "$CONFIG_FILES"; then
19574
19575
19576 ac_cr=`echo X | tr X '\015'`
19577 # On cygwin, bash can eat \r inside `` if the user requested igncr.
19578 # But we know of no other shell where ac_cr would be empty at this
19579 # point, so we can use a bashism as a fallback.
19580 if test "x$ac_cr" = x; then
19581 eval ac_cr=\$\'\\r\'
19582 fi
19583 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19584 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19585 ac_cs_awk_cr='\\r'
19586 else
19587 ac_cs_awk_cr=$ac_cr
19588 fi
19589
19590 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19591 _ACEOF
19592
19593
19594 {
19595 echo "cat >conf$$subs.awk <<_ACEOF" &&
19596 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19597 echo "_ACEOF"
19598 } >conf$$subs.sh ||
19599 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19600 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19601 ac_delim='%!_!# '
19602 for ac_last_try in false false false false false :; do
19603 . ./conf$$subs.sh ||
19604 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19605
19606 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19607 if test $ac_delim_n = $ac_delim_num; then
19608 break
19609 elif $ac_last_try; then
19610 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19611 else
19612 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19613 fi
19614 done
19615 rm -f conf$$subs.sh
19616
19617 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19618 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
19619 _ACEOF
19620 sed -n '
19621 h
19622 s/^/S["/; s/!.*/"]=/
19623 p
19624 g
19625 s/^[^!]*!//
19626 :repl
19627 t repl
19628 s/'"$ac_delim"'$//
19629 t delim
19630 :nl
19631 h
19632 s/\(.\{148\}\)..*/\1/
19633 t more1
19634 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19635 p
19636 n
19637 b repl
19638 :more1
19639 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19640 p
19641 g
19642 s/.\{148\}//
19643 t nl
19644 :delim
19645 h
19646 s/\(.\{148\}\)..*/\1/
19647 t more2
19648 s/["\\]/\\&/g; s/^/"/; s/$/"/
19649 p
19650 b
19651 :more2
19652 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19653 p
19654 g
19655 s/.\{148\}//
19656 t delim
19657 ' <conf$$subs.awk | sed '
19658 /^[^""]/{
19659 N
19660 s/\n//
19661 }
19662 ' >>$CONFIG_STATUS || ac_write_fail=1
19663 rm -f conf$$subs.awk
19664 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19665 _ACAWK
19666 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
19667 for (key in S) S_is_set[key] = 1
19668 FS = ""
19669
19670 }
19671 {
19672 line = $ 0
19673 nfields = split(line, field, "@")
19674 substed = 0
19675 len = length(field[1])
19676 for (i = 2; i < nfields; i++) {
19677 key = field[i]
19678 keylen = length(key)
19679 if (S_is_set[key]) {
19680 value = S[key]
19681 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19682 len += length(value) + length(field[++i])
19683 substed = 1
19684 } else
19685 len += 1 + keylen
19686 }
19687
19688 print line
19689 }
19690
19691 _ACAWK
19692 _ACEOF
19693 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19694 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19695 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19696 else
19697 cat
19698 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
19699 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
19700 _ACEOF
19701
19702 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19703 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
19704 # trailing colons and then remove the whole line if VPATH becomes empty
19705 # (actually we leave an empty line to preserve line numbers).
19706 if test "x$srcdir" = x.; then
19707 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
19708 h
19709 s///
19710 s/^/:/
19711 s/[ ]*$/:/
19712 s/:\$(srcdir):/:/g
19713 s/:\${srcdir}:/:/g
19714 s/:@srcdir@:/:/g
19715 s/^:*//
19716 s/:*$//
19717 x
19718 s/\(=[ ]*\).*/\1/
19719 G
19720 s/\n//
19721 s/^[^=]*=[ ]*$//
19722 }'
19723 fi
19724
19725 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19726 fi # test -n "$CONFIG_FILES"
19727
19728 # Set up the scripts for CONFIG_HEADERS section.
19729 # No need to generate them if there are no CONFIG_HEADERS.
19730 # This happens for instance with `./config.status Makefile'.
19731 if test -n "$CONFIG_HEADERS"; then
19732 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
19733 BEGIN {
19734 _ACEOF
19735
19736 # Transform confdefs.h into an awk script `defines.awk', embedded as
19737 # here-document in config.status, that substitutes the proper values into
19738 # config.h.in to produce config.h.
19739
19740 # Create a delimiter string that does not exist in confdefs.h, to ease
19741 # handling of long lines.
19742 ac_delim='%!_!# '
19743 for ac_last_try in false false :; do
19744 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
19745 if test -z "$ac_tt"; then
19746 break
19747 elif $ac_last_try; then
19748 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
19749 else
19750 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19751 fi
19752 done
19753
19754 # For the awk script, D is an array of macro values keyed by name,
19755 # likewise P contains macro parameters if any. Preserve backslash
19756 # newline sequences.
19757
19758 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19759 sed -n '
19760 s/.\{148\}/&'"$ac_delim"'/g
19761 t rset
19762 :rset
19763 s/^[ ]*#[ ]*define[ ][ ]*/ /
19764 t def
19765 d
19766 :def
19767 s/\\$//
19768 t bsnl
19769 s/["\\]/\\&/g
19770 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19771 D["\1"]=" \3"/p
19772 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
19773 d
19774 :bsnl
19775 s/["\\]/\\&/g
19776 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19777 D["\1"]=" \3\\\\\\n"\\/p
19778 t cont
19779 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
19780 t cont
19781 d
19782 :cont
19783 n
19784 s/.\{148\}/&'"$ac_delim"'/g
19785 t clear
19786 :clear
19787 s/\\$//
19788 t bsnlc
19789 s/["\\]/\\&/g; s/^/"/; s/$/"/p
19790 d
19791 :bsnlc
19792 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
19793 b cont
19794 ' <confdefs.h | sed '
19795 s/'"$ac_delim"'/"\\\
19796 "/g' >>$CONFIG_STATUS || ac_write_fail=1
19797
19798 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19799 for (key in D) D_is_set[key] = 1
19800 FS = ""
19801 }
19802 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
19803 line = \$ 0
19804 split(line, arg, " ")
19805 if (arg[1] == "#") {
19806 defundef = arg[2]
19807 mac1 = arg[3]
19808 } else {
19809 defundef = substr(arg[1], 2)
19810 mac1 = arg[2]
19811 }
19812 split(mac1, mac2, "(") #)
19813 macro = mac2[1]
19814 prefix = substr(line, 1, index(line, defundef) - 1)
19815 if (D_is_set[macro]) {
19816 # Preserve the white space surrounding the "#".
19817 print prefix "define", macro P[macro] D[macro]
19818 next
19819 } else {
19820 # Replace #undef with comments. This is necessary, for example,
19821 # in the case of _POSIX_SOURCE, which is predefined and required
19822 # on some systems where configure will not decide to define it.
19823 if (defundef == "undef") {
19824 print "/*", prefix defundef, macro, "*/"
19825 next
19826 }
19827 }
19828 }
19829 { print }
19830 _ACAWK
19831 _ACEOF
19832 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19833 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
19834 fi # test -n "$CONFIG_HEADERS"
19835
19836
19837 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
19838 shift
19839 for ac_tag
19840 do
19841 case $ac_tag in
19842 :[FHLC]) ac_mode=$ac_tag; continue;;
19843 esac
19844 case $ac_mode$ac_tag in
19845 :[FHL]*:*);;
19846 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
19847 :[FH]-) ac_tag=-:-;;
19848 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19849 esac
19850 ac_save_IFS=$IFS
19851 IFS=:
19852 set x $ac_tag
19853 IFS=$ac_save_IFS
19854 shift
19855 ac_file=$1
19856 shift
19857
19858 case $ac_mode in
19859 :L) ac_source=$1;;
19860 :[FH])
19861 ac_file_inputs=
19862 for ac_f
19863 do
19864 case $ac_f in
19865 -) ac_f="$ac_tmp/stdin";;
19866 *) # Look for the file first in the build tree, then in the source tree
19867 # (if the path is not absolute). The absolute path cannot be DOS-style,
19868 # because $ac_f cannot contain `:'.
19869 test -f "$ac_f" ||
19870 case $ac_f in
19871 [\\/$]*) false;;
19872 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19873 esac ||
19874 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
19875 esac
19876 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19877 as_fn_append ac_file_inputs " '$ac_f'"
19878 done
19879
19880 # Let's still pretend it is `configure' which instantiates (i.e., don't
19881 # use $as_me), people would be surprised to read:
19882 # /* config.h. Generated by config.status. */
19883 configure_input='Generated from '`
19884 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19885 `' by configure.'
19886 if test x"$ac_file" != x-; then
19887 configure_input="$ac_file. $configure_input"
19888 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19889 $as_echo "$as_me: creating $ac_file" >&6;}
19890 fi
19891 # Neutralize special characters interpreted by sed in replacement strings.
19892 case $configure_input in #(
19893 *\&* | *\|* | *\\* )
19894 ac_sed_conf_input=`$as_echo "$configure_input" |
19895 sed 's/[\\\\&|]/\\\\&/g'`;; #(
19896 *) ac_sed_conf_input=$configure_input;;
19897 esac
19898
19899 case $ac_tag in
19900 *:-:* | *:-) cat >"$ac_tmp/stdin" \
19901 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
19902 esac
19903 ;;
19904 esac
19905
19906 ac_dir=`$as_dirname -- "$ac_file" ||
19907 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19908 X"$ac_file" : 'X\(//\)[^/]' \| \
19909 X"$ac_file" : 'X\(//\)$' \| \
19910 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19911 $as_echo X"$ac_file" |
19912 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19913 s//\1/
19914 q
19915 }
19916 /^X\(\/\/\)[^/].*/{
19917 s//\1/
19918 q
19919 }
19920 /^X\(\/\/\)$/{
19921 s//\1/
19922 q
19923 }
19924 /^X\(\/\).*/{
19925 s//\1/
19926 q
19927 }
19928 s/.*/./; q'`
19929 as_dir="$ac_dir"; as_fn_mkdir_p
19930 ac_builddir=.
19931
19932 case "$ac_dir" in
19933 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19934 *)
19935 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19936 # A ".." for each directory in $ac_dir_suffix.
19937 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19938 case $ac_top_builddir_sub in
19939 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19940 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19941 esac ;;
19942 esac
19943 ac_abs_top_builddir=$ac_pwd
19944 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19945 # for backward compatibility:
19946 ac_top_builddir=$ac_top_build_prefix
19947
19948 case $srcdir in
19949 .) # We are building in place.
19950 ac_srcdir=.
19951 ac_top_srcdir=$ac_top_builddir_sub
19952 ac_abs_top_srcdir=$ac_pwd ;;
19953 [\\/]* | ?:[\\/]* ) # Absolute name.
19954 ac_srcdir=$srcdir$ac_dir_suffix;
19955 ac_top_srcdir=$srcdir
19956 ac_abs_top_srcdir=$srcdir ;;
19957 *) # Relative name.
19958 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19959 ac_top_srcdir=$ac_top_build_prefix$srcdir
19960 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19961 esac
19962 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19963
19964
19965 case $ac_mode in
19966 :F)
19967 #
19968 # CONFIG_FILE
19969 #
19970
19971 case $INSTALL in
19972 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19973 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19974 esac
19975 ac_MKDIR_P=$MKDIR_P
19976 case $MKDIR_P in
19977 [\\/$]* | ?:[\\/]* ) ;;
19978 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
19979 esac
19980 _ACEOF
19981
19982 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19983 # If the template does not know about datarootdir, expand it.
19984 # FIXME: This hack should be removed a few years after 2.60.
19985 ac_datarootdir_hack=; ac_datarootdir_seen=
19986 ac_sed_dataroot='
19987 /datarootdir/ {
19988 p
19989 q
19990 }
19991 /@datadir@/p
19992 /@docdir@/p
19993 /@infodir@/p
19994 /@localedir@/p
19995 /@mandir@/p'
19996 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19997 *datarootdir*) ac_datarootdir_seen=yes;;
19998 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19999 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20000 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20001 _ACEOF
20002 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20003 ac_datarootdir_hack='
20004 s&@datadir@&$datadir&g
20005 s&@docdir@&$docdir&g
20006 s&@infodir@&$infodir&g
20007 s&@localedir@&$localedir&g
20008 s&@mandir@&$mandir&g
20009 s&\\\${datarootdir}&$datarootdir&g' ;;
20010 esac
20011 _ACEOF
20012
20013 # Neutralize VPATH when `$srcdir' = `.'.
20014 # Shell code in configure.ac might set extrasub.
20015 # FIXME: do we really want to maintain this feature?
20016 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20017 ac_sed_extra="$ac_vpsub
20018 $extrasub
20019 _ACEOF
20020 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20021 :t
20022 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20023 s|@configure_input@|$ac_sed_conf_input|;t t
20024 s&@top_builddir@&$ac_top_builddir_sub&;t t
20025 s&@top_build_prefix@&$ac_top_build_prefix&;t t
20026 s&@srcdir@&$ac_srcdir&;t t
20027 s&@abs_srcdir@&$ac_abs_srcdir&;t t
20028 s&@top_srcdir@&$ac_top_srcdir&;t t
20029 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20030 s&@builddir@&$ac_builddir&;t t
20031 s&@abs_builddir@&$ac_abs_builddir&;t t
20032 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20033 s&@INSTALL@&$ac_INSTALL&;t t
20034 s&@MKDIR_P@&$ac_MKDIR_P&;t t
20035 $ac_datarootdir_hack
20036 "
20037 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
20038 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20039
20040 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20041 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
20042 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
20043 "$ac_tmp/out"`; test -z "$ac_out"; } &&
20044 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20045 which seems to be undefined. Please make sure it is defined" >&5
20046 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20047 which seems to be undefined. Please make sure it is defined" >&2;}
20048
20049 rm -f "$ac_tmp/stdin"
20050 case $ac_file in
20051 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
20052 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
20053 esac \
20054 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20055 ;;
20056 :H)
20057 #
20058 # CONFIG_HEADER
20059 #
20060 if test x"$ac_file" != x-; then
20061 {
20062 $as_echo "/* $configure_input */" \
20063 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
20064 } >"$ac_tmp/config.h" \
20065 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20066 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
20067 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
20068 $as_echo "$as_me: $ac_file is unchanged" >&6;}
20069 else
20070 rm -f "$ac_file"
20071 mv "$ac_tmp/config.h" "$ac_file" \
20072 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20073 fi
20074 else
20075 $as_echo "/* $configure_input */" \
20076 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
20077 || as_fn_error $? "could not create -" "$LINENO" 5
20078 fi
20079 # Compute "$ac_file"'s index in $config_headers.
20080 _am_arg="$ac_file"
20081 _am_stamp_count=1
20082 for _am_header in $config_headers :; do
20083 case $_am_header in
20084 $_am_arg | $_am_arg:* )
20085 break ;;
20086 * )
20087 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20088 esac
20089 done
20090 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
20091 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20092 X"$_am_arg" : 'X\(//\)[^/]' \| \
20093 X"$_am_arg" : 'X\(//\)$' \| \
20094 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
20095 $as_echo X"$_am_arg" |
20096 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20097 s//\1/
20098 q
20099 }
20100 /^X\(\/\/\)[^/].*/{
20101 s//\1/
20102 q
20103 }
20104 /^X\(\/\/\)$/{
20105 s//\1/
20106 q
20107 }
20108 /^X\(\/\).*/{
20109 s//\1/
20110 q
20111 }
20112 s/.*/./; q'`/stamp-h$_am_stamp_count
20113 ;;
20114
20115 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
20116 $as_echo "$as_me: executing $ac_file commands" >&6;}
20117 ;;
20118 esac
20119
20120
20121 case $ac_file$ac_mode in
20122 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
20123 # Autoconf 2.62 quotes --file arguments for eval, but not when files
20124 # are listed without --file. Let's play safe and only enable the eval
20125 # if we detect the quoting.
20126 case $CONFIG_FILES in
20127 *\'*) eval set x "$CONFIG_FILES" ;;
20128 *) set x $CONFIG_FILES ;;
20129 esac
20130 shift
20131 for mf
20132 do
20133 # Strip MF so we end up with the name of the file.
20134 mf=`echo "$mf" | sed -e 's/:.*$//'`
20135 # Check whether this is an Automake generated Makefile or not.
20136 # We used to match only the files named `Makefile.in', but
20137 # some people rename them; so instead we look at the file content.
20138 # Grep'ing the first line is not enough: some people post-process
20139 # each Makefile.in and add a new line on top of each file to say so.
20140 # Grep'ing the whole file is not good either: AIX grep has a line
20141 # limit of 2048, but all sed's we know have understand at least 4000.
20142 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
20143 dirpart=`$as_dirname -- "$mf" ||
20144 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20145 X"$mf" : 'X\(//\)[^/]' \| \
20146 X"$mf" : 'X\(//\)$' \| \
20147 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
20148 $as_echo X"$mf" |
20149 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20150 s//\1/
20151 q
20152 }
20153 /^X\(\/\/\)[^/].*/{
20154 s//\1/
20155 q
20156 }
20157 /^X\(\/\/\)$/{
20158 s//\1/
20159 q
20160 }
20161 /^X\(\/\).*/{
20162 s//\1/
20163 q
20164 }
20165 s/.*/./; q'`
20166 else
20167 continue
20168 fi
20169 # Extract the definition of DEPDIR, am__include, and am__quote
20170 # from the Makefile without running `make'.
20171 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
20172 test -z "$DEPDIR" && continue
20173 am__include=`sed -n 's/^am__include = //p' < "$mf"`
20174 test -z "am__include" && continue
20175 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
20176 # When using ansi2knr, U may be empty or an underscore; expand it
20177 U=`sed -n 's/^U = //p' < "$mf"`
20178 # Find all dependency output files, they are included files with
20179 # $(DEPDIR) in their names. We invoke sed twice because it is the
20180 # simplest approach to changing $(DEPDIR) to its actual value in the
20181 # expansion.
20182 for file in `sed -n "
20183 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
20184 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
20185 # Make sure the directory exists.
20186 test -f "$dirpart/$file" && continue
20187 fdir=`$as_dirname -- "$file" ||
20188 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20189 X"$file" : 'X\(//\)[^/]' \| \
20190 X"$file" : 'X\(//\)$' \| \
20191 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
20192 $as_echo X"$file" |
20193 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20194 s//\1/
20195 q
20196 }
20197 /^X\(\/\/\)[^/].*/{
20198 s//\1/
20199 q
20200 }
20201 /^X\(\/\/\)$/{
20202 s//\1/
20203 q
20204 }
20205 /^X\(\/\).*/{
20206 s//\1/
20207 q
20208 }
20209 s/.*/./; q'`
20210 as_dir=$dirpart/$fdir; as_fn_mkdir_p
20211 # echo "creating $dirpart/$file"
20212 echo '# dummy' > "$dirpart/$file"
20213 done
20214 done
20215 }
20216 ;;
20217 "libtool":C)
20218
20219 # See if we are running on zsh, and set the options which allow our
20220 # commands through without removal of \ escapes.
20221 if test -n "${ZSH_VERSION+set}" ; then
20222 setopt NO_GLOB_SUBST
20223 fi
20224
20225 cfgfile="${ofile}T"
20226 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
20227 $RM "$cfgfile"
20228
20229 cat <<_LT_EOF >> "$cfgfile"
20230 #! $SHELL
20231
20232 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
20233 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
20234 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20235 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
20236 #
20237 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
20238 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
20239 # Foundation, Inc.
20240 # Written by Gordon Matzigkeit, 1996
20241 #
20242 # This file is part of GNU Libtool.
20243 #
20244 # GNU Libtool is free software; you can redistribute it and/or
20245 # modify it under the terms of the GNU General Public License as
20246 # published by the Free Software Foundation; either version 2 of
20247 # the License, or (at your option) any later version.
20248 #
20249 # As a special exception to the GNU General Public License,
20250 # if you distribute this file as part of a program or library that
20251 # is built using GNU Libtool, you may include this file under the
20252 # same distribution terms that you use for the rest of that program.
20253 #
20254 # GNU Libtool is distributed in the hope that it will be useful,
20255 # but WITHOUT ANY WARRANTY; without even the implied warranty of
20256 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20257 # GNU General Public License for more details.
20258 #
20259 # You should have received a copy of the GNU General Public License
20260 # along with GNU Libtool; see the file COPYING. If not, a copy
20261 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
20262 # obtained by writing to the Free Software Foundation, Inc.,
20263 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20264
20265
20266 # The names of the tagged configurations supported by this script.
20267 available_tags=""
20268
20269 # ### BEGIN LIBTOOL CONFIG
20270
20271 # Whether or not to build static libraries.
20272 build_old_libs=$enable_static
20273
20274 # Which release of libtool.m4 was used?
20275 macro_version=$macro_version
20276 macro_revision=$macro_revision
20277
20278 # Whether or not to build shared libraries.
20279 build_libtool_libs=$enable_shared
20280
20281 # What type of objects to build.
20282 pic_mode=$pic_mode
20283
20284 # Whether or not to optimize for fast installation.
20285 fast_install=$enable_fast_install
20286
20287 # Shell to use when invoking shell scripts.
20288 SHELL=$lt_SHELL
20289
20290 # An echo program that protects backslashes.
20291 ECHO=$lt_ECHO
20292
20293 # The PATH separator for the build system.
20294 PATH_SEPARATOR=$lt_PATH_SEPARATOR
20295
20296 # The host system.
20297 host_alias=$host_alias
20298 host=$host
20299 host_os=$host_os
20300
20301 # The build system.
20302 build_alias=$build_alias
20303 build=$build
20304 build_os=$build_os
20305
20306 # A sed program that does not truncate output.
20307 SED=$lt_SED
20308
20309 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
20310 Xsed="\$SED -e 1s/^X//"
20311
20312 # A grep program that handles long lines.
20313 GREP=$lt_GREP
20314
20315 # An ERE matcher.
20316 EGREP=$lt_EGREP
20317
20318 # A literal string matcher.
20319 FGREP=$lt_FGREP
20320
20321 # A BSD- or MS-compatible name lister.
20322 NM=$lt_NM
20323
20324 # Whether we need soft or hard links.
20325 LN_S=$lt_LN_S
20326
20327 # What is the maximum length of a command?
20328 max_cmd_len=$max_cmd_len
20329
20330 # Object file suffix (normally "o").
20331 objext=$ac_objext
20332
20333 # Executable file suffix (normally "").
20334 exeext=$exeext
20335
20336 # whether the shell understands "unset".
20337 lt_unset=$lt_unset
20338
20339 # turn spaces into newlines.
20340 SP2NL=$lt_lt_SP2NL
20341
20342 # turn newlines into spaces.
20343 NL2SP=$lt_lt_NL2SP
20344
20345 # convert \$build file names to \$host format.
20346 to_host_file_cmd=$lt_cv_to_host_file_cmd
20347
20348 # convert \$build files to toolchain format.
20349 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
20350
20351 # An object symbol dumper.
20352 OBJDUMP=$lt_OBJDUMP
20353
20354 # Method to check whether dependent libraries are shared objects.
20355 deplibs_check_method=$lt_deplibs_check_method
20356
20357 # Command to use when deplibs_check_method = "file_magic".
20358 file_magic_cmd=$lt_file_magic_cmd
20359
20360 # How to find potential files when deplibs_check_method = "file_magic".
20361 file_magic_glob=$lt_file_magic_glob
20362
20363 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
20364 want_nocaseglob=$lt_want_nocaseglob
20365
20366 # DLL creation program.
20367 DLLTOOL=$lt_DLLTOOL
20368
20369 # Command to associate shared and link libraries.
20370 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
20371
20372 # The archiver.
20373 AR=$lt_AR
20374
20375 # Flags to create an archive.
20376 AR_FLAGS=$lt_AR_FLAGS
20377
20378 # How to feed a file listing to the archiver.
20379 archiver_list_spec=$lt_archiver_list_spec
20380
20381 # A symbol stripping program.
20382 STRIP=$lt_STRIP
20383
20384 # Commands used to install an old-style archive.
20385 RANLIB=$lt_RANLIB
20386 old_postinstall_cmds=$lt_old_postinstall_cmds
20387 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20388
20389 # Whether to use a lock for old archive extraction.
20390 lock_old_archive_extraction=$lock_old_archive_extraction
20391
20392 # A C compiler.
20393 LTCC=$lt_CC
20394
20395 # LTCC compiler flags.
20396 LTCFLAGS=$lt_CFLAGS
20397
20398 # Take the output of nm and produce a listing of raw symbols and C names.
20399 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20400
20401 # Transform the output of nm in a proper C declaration.
20402 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20403
20404 # Transform the output of nm in a C name address pair.
20405 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20406
20407 # Transform the output of nm in a C name address pair when lib prefix is needed.
20408 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
20409
20410 # Specify filename containing input files for \$NM.
20411 nm_file_list_spec=$lt_nm_file_list_spec
20412
20413 # The root where to search for dependent libraries,and in which our libraries should be installed.
20414 lt_sysroot=$lt_sysroot
20415
20416 # The name of the directory that contains temporary libtool files.
20417 objdir=$objdir
20418
20419 # Used to examine libraries when file_magic_cmd begins with "file".
20420 MAGIC_CMD=$MAGIC_CMD
20421
20422 # Must we lock files when doing compilation?
20423 need_locks=$lt_need_locks
20424
20425 # Manifest tool.
20426 MANIFEST_TOOL=$lt_MANIFEST_TOOL
20427
20428 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
20429 DSYMUTIL=$lt_DSYMUTIL
20430
20431 # Tool to change global to local symbols on Mac OS X.
20432 NMEDIT=$lt_NMEDIT
20433
20434 # Tool to manipulate fat objects and archives on Mac OS X.
20435 LIPO=$lt_LIPO
20436
20437 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
20438 OTOOL=$lt_OTOOL
20439
20440 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
20441 OTOOL64=$lt_OTOOL64
20442
20443 # Old archive suffix (normally "a").
20444 libext=$libext
20445
20446 # Shared library suffix (normally ".so").
20447 shrext_cmds=$lt_shrext_cmds
20448
20449 # The commands to extract the exported symbol list from a shared archive.
20450 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20451
20452 # Variables whose values should be saved in libtool wrapper scripts and
20453 # restored at link time.
20454 variables_saved_for_relink=$lt_variables_saved_for_relink
20455
20456 # Do we need the "lib" prefix for modules?
20457 need_lib_prefix=$need_lib_prefix
20458
20459 # Do we need a version for libraries?
20460 need_version=$need_version
20461
20462 # Library versioning type.
20463 version_type=$version_type
20464
20465 # Shared library runtime path variable.
20466 runpath_var=$runpath_var
20467
20468 # Shared library path variable.
20469 shlibpath_var=$shlibpath_var
20470
20471 # Is shlibpath searched before the hard-coded library search path?
20472 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20473
20474 # Format of library name prefix.
20475 libname_spec=$lt_libname_spec
20476
20477 # List of archive names. First name is the real one, the rest are links.
20478 # The last name is the one that the linker finds with -lNAME
20479 library_names_spec=$lt_library_names_spec
20480
20481 # The coded name of the library, if different from the real name.
20482 soname_spec=$lt_soname_spec
20483
20484 # Permission mode override for installation of shared libraries.
20485 install_override_mode=$lt_install_override_mode
20486
20487 # Command to use after installation of a shared archive.
20488 postinstall_cmds=$lt_postinstall_cmds
20489
20490 # Command to use after uninstallation of a shared archive.
20491 postuninstall_cmds=$lt_postuninstall_cmds
20492
20493 # Commands used to finish a libtool library installation in a directory.
20494 finish_cmds=$lt_finish_cmds
20495
20496 # As "finish_cmds", except a single script fragment to be evaled but
20497 # not shown.
20498 finish_eval=$lt_finish_eval
20499
20500 # Whether we should hardcode library paths into libraries.
20501 hardcode_into_libs=$hardcode_into_libs
20502
20503 # Compile-time system search path for libraries.
20504 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20505
20506 # Run-time system search path for libraries.
20507 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20508
20509 # Whether dlopen is supported.
20510 dlopen_support=$enable_dlopen
20511
20512 # Whether dlopen of programs is supported.
20513 dlopen_self=$enable_dlopen_self
20514
20515 # Whether dlopen of statically linked programs is supported.
20516 dlopen_self_static=$enable_dlopen_self_static
20517
20518 # Commands to strip libraries.
20519 old_striplib=$lt_old_striplib
20520 striplib=$lt_striplib
20521
20522
20523 # The linker used to build libraries.
20524 LD=$lt_LD
20525
20526 # How to create reloadable object files.
20527 reload_flag=$lt_reload_flag
20528 reload_cmds=$lt_reload_cmds
20529
20530 # Commands used to build an old-style archive.
20531 old_archive_cmds=$lt_old_archive_cmds
20532
20533 # A language specific compiler.
20534 CC=$lt_compiler
20535
20536 # Is the compiler the GNU compiler?
20537 with_gcc=$GCC
20538
20539 # Compiler flag to turn off builtin functions.
20540 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
20541
20542 # Additional compiler flags for building library objects.
20543 pic_flag=$lt_lt_prog_compiler_pic
20544
20545 # How to pass a linker flag through the compiler.
20546 wl=$lt_lt_prog_compiler_wl
20547
20548 # Compiler flag to prevent dynamic linking.
20549 link_static_flag=$lt_lt_prog_compiler_static
20550
20551 # Does compiler simultaneously support -c and -o options?
20552 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
20553
20554 # Whether or not to add -lc for building shared libraries.
20555 build_libtool_need_lc=$archive_cmds_need_lc
20556
20557 # Whether or not to disallow shared libs when runtime libs are static.
20558 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
20559
20560 # Compiler flag to allow reflexive dlopens.
20561 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
20562
20563 # Compiler flag to generate shared objects directly from archives.
20564 whole_archive_flag_spec=$lt_whole_archive_flag_spec
20565
20566 # Whether the compiler copes with passing no objects directly.
20567 compiler_needs_object=$lt_compiler_needs_object
20568
20569 # Create an old-style archive from a shared archive.
20570 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
20571
20572 # Create a temporary old-style archive to link instead of a shared archive.
20573 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
20574
20575 # Commands used to build a shared archive.
20576 archive_cmds=$lt_archive_cmds
20577 archive_expsym_cmds=$lt_archive_expsym_cmds
20578
20579 # Commands used to build a loadable module if different from building
20580 # a shared archive.
20581 module_cmds=$lt_module_cmds
20582 module_expsym_cmds=$lt_module_expsym_cmds
20583
20584 # Whether we are building with GNU ld or not.
20585 with_gnu_ld=$lt_with_gnu_ld
20586
20587 # Flag that allows shared libraries with undefined symbols to be built.
20588 allow_undefined_flag=$lt_allow_undefined_flag
20589
20590 # Flag that enforces no undefined symbols.
20591 no_undefined_flag=$lt_no_undefined_flag
20592
20593 # Flag to hardcode \$libdir into a binary during linking.
20594 # This must work even if \$libdir does not exist
20595 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
20596
20597 # Whether we need a single "-rpath" flag with a separated argument.
20598 hardcode_libdir_separator=$lt_hardcode_libdir_separator
20599
20600 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20601 # DIR into the resulting binary.
20602 hardcode_direct=$hardcode_direct
20603
20604 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20605 # DIR into the resulting binary and the resulting library dependency is
20606 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
20607 # library is relocated.
20608 hardcode_direct_absolute=$hardcode_direct_absolute
20609
20610 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20611 # into the resulting binary.
20612 hardcode_minus_L=$hardcode_minus_L
20613
20614 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20615 # into the resulting binary.
20616 hardcode_shlibpath_var=$hardcode_shlibpath_var
20617
20618 # Set to "yes" if building a shared library automatically hardcodes DIR
20619 # into the library and all subsequent libraries and executables linked
20620 # against it.
20621 hardcode_automatic=$hardcode_automatic
20622
20623 # Set to yes if linker adds runtime paths of dependent libraries
20624 # to runtime path list.
20625 inherit_rpath=$inherit_rpath
20626
20627 # Whether libtool must link a program against all its dependency libraries.
20628 link_all_deplibs=$link_all_deplibs
20629
20630 # Set to "yes" if exported symbols are required.
20631 always_export_symbols=$always_export_symbols
20632
20633 # The commands to list exported symbols.
20634 export_symbols_cmds=$lt_export_symbols_cmds
20635
20636 # Symbols that should not be listed in the preloaded symbols.
20637 exclude_expsyms=$lt_exclude_expsyms
20638
20639 # Symbols that must always be exported.
20640 include_expsyms=$lt_include_expsyms
20641
20642 # Commands necessary for linking programs (against libraries) with templates.
20643 prelink_cmds=$lt_prelink_cmds
20644
20645 # Commands necessary for finishing linking programs.
20646 postlink_cmds=$lt_postlink_cmds
20647
20648 # Specify filename containing input files.
20649 file_list_spec=$lt_file_list_spec
20650
20651 # How to hardcode a shared library path into an executable.
20652 hardcode_action=$hardcode_action
20653
20654 # ### END LIBTOOL CONFIG
20655
20656 _LT_EOF
20657
20658 case $host_os in
20659 aix3*)
20660 cat <<\_LT_EOF >> "$cfgfile"
20661 # AIX sometimes has problems with the GCC collect2 program. For some
20662 # reason, if we set the COLLECT_NAMES environment variable, the problems
20663 # vanish in a puff of smoke.
20664 if test "X${COLLECT_NAMES+set}" != Xset; then
20665 COLLECT_NAMES=
20666 export COLLECT_NAMES
20667 fi
20668 _LT_EOF
20669 ;;
20670 esac
20671
20672
20673 ltmain="$ac_aux_dir/ltmain.sh"
20674
20675
20676 # We use sed instead of cat because bash on DJGPP gets confused if
20677 # if finds mixed CR/LF and LF-only lines. Since sed operates in
20678 # text mode, it properly converts lines to CR/LF. This bash problem
20679 # is reportedly fixed, but why not run on old versions too?
20680 sed '$q' "$ltmain" >> "$cfgfile" \
20681 || (rm -f "$cfgfile"; exit 1)
20682
20683 if test x"$xsi_shell" = xyes; then
20684 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
20685 func_dirname ()\
20686 {\
20687 \ case ${1} in\
20688 \ */*) func_dirname_result="${1%/*}${2}" ;;\
20689 \ * ) func_dirname_result="${3}" ;;\
20690 \ esac\
20691 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
20692 && mv -f "$cfgfile.tmp" "$cfgfile" \
20693 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20694 test 0 -eq $? || _lt_function_replace_fail=:
20695
20696
20697 sed -e '/^func_basename ()$/,/^} # func_basename /c\
20698 func_basename ()\
20699 {\
20700 \ func_basename_result="${1##*/}"\
20701 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
20702 && mv -f "$cfgfile.tmp" "$cfgfile" \
20703 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20704 test 0 -eq $? || _lt_function_replace_fail=:
20705
20706
20707 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
20708 func_dirname_and_basename ()\
20709 {\
20710 \ case ${1} in\
20711 \ */*) func_dirname_result="${1%/*}${2}" ;;\
20712 \ * ) func_dirname_result="${3}" ;;\
20713 \ esac\
20714 \ func_basename_result="${1##*/}"\
20715 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
20716 && mv -f "$cfgfile.tmp" "$cfgfile" \
20717 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20718 test 0 -eq $? || _lt_function_replace_fail=:
20719
20720
20721 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
20722 func_stripname ()\
20723 {\
20724 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
20725 \ # positional parameters, so assign one to ordinary parameter first.\
20726 \ func_stripname_result=${3}\
20727 \ func_stripname_result=${func_stripname_result#"${1}"}\
20728 \ func_stripname_result=${func_stripname_result%"${2}"}\
20729 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
20730 && mv -f "$cfgfile.tmp" "$cfgfile" \
20731 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20732 test 0 -eq $? || _lt_function_replace_fail=:
20733
20734
20735 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
20736 func_split_long_opt ()\
20737 {\
20738 \ func_split_long_opt_name=${1%%=*}\
20739 \ func_split_long_opt_arg=${1#*=}\
20740 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
20741 && mv -f "$cfgfile.tmp" "$cfgfile" \
20742 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20743 test 0 -eq $? || _lt_function_replace_fail=:
20744
20745
20746 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
20747 func_split_short_opt ()\
20748 {\
20749 \ func_split_short_opt_arg=${1#??}\
20750 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
20751 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
20752 && mv -f "$cfgfile.tmp" "$cfgfile" \
20753 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20754 test 0 -eq $? || _lt_function_replace_fail=:
20755
20756
20757 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
20758 func_lo2o ()\
20759 {\
20760 \ case ${1} in\
20761 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
20762 \ *) func_lo2o_result=${1} ;;\
20763 \ esac\
20764 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
20765 && mv -f "$cfgfile.tmp" "$cfgfile" \
20766 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20767 test 0 -eq $? || _lt_function_replace_fail=:
20768
20769
20770 sed -e '/^func_xform ()$/,/^} # func_xform /c\
20771 func_xform ()\
20772 {\
20773 func_xform_result=${1%.*}.lo\
20774 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
20775 && mv -f "$cfgfile.tmp" "$cfgfile" \
20776 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20777 test 0 -eq $? || _lt_function_replace_fail=:
20778
20779
20780 sed -e '/^func_arith ()$/,/^} # func_arith /c\
20781 func_arith ()\
20782 {\
20783 func_arith_result=$(( $* ))\
20784 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
20785 && mv -f "$cfgfile.tmp" "$cfgfile" \
20786 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20787 test 0 -eq $? || _lt_function_replace_fail=:
20788
20789
20790 sed -e '/^func_len ()$/,/^} # func_len /c\
20791 func_len ()\
20792 {\
20793 func_len_result=${#1}\
20794 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
20795 && mv -f "$cfgfile.tmp" "$cfgfile" \
20796 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20797 test 0 -eq $? || _lt_function_replace_fail=:
20798
20799 fi
20800
20801 if test x"$lt_shell_append" = xyes; then
20802 sed -e '/^func_append ()$/,/^} # func_append /c\
20803 func_append ()\
20804 {\
20805 eval "${1}+=\\${2}"\
20806 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
20807 && mv -f "$cfgfile.tmp" "$cfgfile" \
20808 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20809 test 0 -eq $? || _lt_function_replace_fail=:
20810
20811
20812 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
20813 func_append_quoted ()\
20814 {\
20815 \ func_quote_for_eval "${2}"\
20816 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
20817 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
20818 && mv -f "$cfgfile.tmp" "$cfgfile" \
20819 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20820 test 0 -eq $? || _lt_function_replace_fail=:
20821
20822
20823 # Save a `func_append' function call where possible by direct use of '+='
20824 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
20825 && mv -f "$cfgfile.tmp" "$cfgfile" \
20826 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20827 test 0 -eq $? || _lt_function_replace_fail=:
20828 else
20829 # Save a `func_append' function call even when '+=' is not available
20830 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
20831 && mv -f "$cfgfile.tmp" "$cfgfile" \
20832 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20833 test 0 -eq $? || _lt_function_replace_fail=:
20834 fi
20835
20836 if test x"$_lt_function_replace_fail" = x":"; then
20837 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
20838 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
20839 fi
20840
20841
20842 mv -f "$cfgfile" "$ofile" ||
20843 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
20844 chmod +x "$ofile"
20845
20846 ;;
20847
20848 esac
20849 done # for ac_tag
20850
20851
20852 as_fn_exit 0
20853 _ACEOF
20854 ac_clean_files=$ac_clean_files_save
20855
20856 test $ac_write_fail = 0 ||
20857 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
20858
20859
20860 # configure is writing to config.log, and then calls config.status.
20861 # config.status does its own redirection, appending to config.log.
20862 # Unfortunately, on DOS this fails, as config.log is still kept open
20863 # by configure, so config.status won't be able to write to it; its
20864 # output is simply discarded. So we exec the FD to /dev/null,
20865 # effectively closing config.log, so it can be properly (re)opened and
20866 # appended to by config.status. When coming back to configure, we
20867 # need to make the FD available again.
20868 if test "$no_create" != yes; then
20869 ac_cs_success=:
20870 ac_config_status_args=
20871 test "$silent" = yes &&
20872 ac_config_status_args="$ac_config_status_args --quiet"
20873 exec 5>/dev/null
20874 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20875 exec 5>>config.log
20876 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20877 # would make configure fail if this is the last instruction.
20878 $ac_cs_success || as_fn_exit 1
20879 fi
20880 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20881 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20882 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
20883 fi
20884
20885