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.69 for xf86-video-mach64 6.9.5.
4 #
5 # Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
90
91 # Find who we are. Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102 IFS=$as_save_IFS
103
104 ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
159 fi
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
170 else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
175 ;;
176 esac
177 fi
178 "
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
184
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192 else
193 exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1
202
203 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207 PATH=/empty FPATH=/empty; export PATH FPATH
208 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
210 if (eval "$as_required") 2>/dev/null; then :
211 as_have_required=yes
212 else
213 as_have_required=no
214 fi
215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217 else
218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219 as_found=false
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221 do
222 IFS=$as_save_IFS
223 test -z "$as_dir" && as_dir=.
224 as_found=:
225 case $as_dir in #(
226 /*)
227 for as_base in sh bash ksh sh5; do
228 # Try only shells that exist, to save several forks.
229 as_shell=$as_dir/$as_base
230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 CONFIG_SHELL=$as_shell as_have_required=yes
233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234 break 2
235 fi
236 fi
237 done;;
238 esac
239 as_found=false
240 done
241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243 CONFIG_SHELL=$SHELL as_have_required=yes
244 fi; }
245 IFS=$as_save_IFS
246
247
248 if test "x$CONFIG_SHELL" != x; then :
249 export CONFIG_SHELL
250 # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
254 BASH_ENV=/dev/null
255 ENV=/dev/null
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257 case $- in # ((((
258 *v*x* | *x*v* ) as_opts=-vx ;;
259 *v* ) as_opts=-v ;;
260 *x* ) as_opts=-x ;;
261 * ) as_opts= ;;
262 esac
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267 exit 255
268 fi
269
270 if test x$as_have_required = xno; then :
271 $as_echo "$0: This script requires a shell more modern than all"
272 $as_echo "$0: the shells that I found on your system."
273 if test x${ZSH_VERSION+set} = xset ; then
274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276 else
277 $as_echo "$0: Please tell bug-autoconf (at] gnu.org and
278 $0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
279 $0: about your system, including any error possibly output
280 $0: before this message. Then install a modern shell, or
281 $0: manually run the script under such a shell if you do
282 $0: have one."
283 fi
284 exit 1
285 fi
286 fi
287 fi
288 SHELL=${CONFIG_SHELL-/bin/sh}
289 export SHELL
290 # Unset more variables known to interfere with behavior of common tools.
291 CLICOLOR_FORCE= GREP_OPTIONS=
292 unset CLICOLOR_FORCE GREP_OPTIONS
293
294 ## --------------------- ##
295 ## M4sh Shell Functions. ##
296 ## --------------------- ##
297 # as_fn_unset VAR
298 # ---------------
299 # Portably unset VAR.
300 as_fn_unset ()
301 {
302 { eval $1=; unset $1;}
303 }
304 as_unset=as_fn_unset
305
306 # as_fn_set_status STATUS
307 # -----------------------
308 # Set $? to STATUS, without forking.
309 as_fn_set_status ()
310 {
311 return $1
312 } # as_fn_set_status
313
314 # as_fn_exit STATUS
315 # -----------------
316 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
317 as_fn_exit ()
318 {
319 set +e
320 as_fn_set_status $1
321 exit $1
322 } # as_fn_exit
323
324 # as_fn_mkdir_p
325 # -------------
326 # Create "$as_dir" as a directory, including parents if necessary.
327 as_fn_mkdir_p ()
328 {
329
330 case $as_dir in #(
331 -*) as_dir=./$as_dir;;
332 esac
333 test -d "$as_dir" || eval $as_mkdir_p || {
334 as_dirs=
335 while :; do
336 case $as_dir in #(
337 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
338 *) as_qdir=$as_dir;;
339 esac
340 as_dirs="'$as_qdir' $as_dirs"
341 as_dir=`$as_dirname -- "$as_dir" ||
342 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
343 X"$as_dir" : 'X\(//\)[^/]' \| \
344 X"$as_dir" : 'X\(//\)$' \| \
345 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
346 $as_echo X"$as_dir" |
347 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
348 s//\1/
349 q
350 }
351 /^X\(\/\/\)[^/].*/{
352 s//\1/
353 q
354 }
355 /^X\(\/\/\)$/{
356 s//\1/
357 q
358 }
359 /^X\(\/\).*/{
360 s//\1/
361 q
362 }
363 s/.*/./; q'`
364 test -d "$as_dir" && break
365 done
366 test -z "$as_dirs" || eval "mkdir $as_dirs"
367 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
368
369
370 } # as_fn_mkdir_p
371
372 # as_fn_executable_p FILE
373 # -----------------------
374 # Test if FILE is an executable regular file.
375 as_fn_executable_p ()
376 {
377 test -f "$1" && test -x "$1"
378 } # as_fn_executable_p
379 # as_fn_append VAR VALUE
380 # ----------------------
381 # Append the text in VALUE to the end of the definition contained in VAR. Take
382 # advantage of any shell optimizations that allow amortized linear growth over
383 # repeated appends, instead of the typical quadratic growth present in naive
384 # implementations.
385 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
386 eval 'as_fn_append ()
387 {
388 eval $1+=\$2
389 }'
390 else
391 as_fn_append ()
392 {
393 eval $1=\$$1\$2
394 }
395 fi # as_fn_append
396
397 # as_fn_arith ARG...
398 # ------------------
399 # Perform arithmetic evaluation on the ARGs, and store the result in the
400 # global $as_val. Take advantage of shells that can avoid forks. The arguments
401 # must be portable across $(()) and expr.
402 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
403 eval 'as_fn_arith ()
404 {
405 as_val=$(( $* ))
406 }'
407 else
408 as_fn_arith ()
409 {
410 as_val=`expr "$@" || test $? -eq 1`
411 }
412 fi # as_fn_arith
413
414
415 # as_fn_error STATUS ERROR [LINENO LOG_FD]
416 # ----------------------------------------
417 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
418 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
419 # script with STATUS, using 1 if that was 0.
420 as_fn_error ()
421 {
422 as_status=$1; test $as_status -eq 0 && as_status=1
423 if test "$4"; then
424 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
425 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
426 fi
427 $as_echo "$as_me: error: $2" >&2
428 as_fn_exit $as_status
429 } # as_fn_error
430
431 if expr a : '\(a\)' >/dev/null 2>&1 &&
432 test "X`expr 00001 : '.*\(...\)'`" = X001; then
433 as_expr=expr
434 else
435 as_expr=false
436 fi
437
438 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
439 as_basename=basename
440 else
441 as_basename=false
442 fi
443
444 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
445 as_dirname=dirname
446 else
447 as_dirname=false
448 fi
449
450 as_me=`$as_basename -- "$0" ||
451 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
452 X"$0" : 'X\(//\)$' \| \
453 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
454 $as_echo X/"$0" |
455 sed '/^.*\/\([^/][^/]*\)\/*$/{
456 s//\1/
457 q
458 }
459 /^X\/\(\/\/\)$/{
460 s//\1/
461 q
462 }
463 /^X\/\(\/\).*/{
464 s//\1/
465 q
466 }
467 s/.*/./; q'`
468
469 # Avoid depending upon Character Ranges.
470 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
471 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
472 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
473 as_cr_digits='0123456789'
474 as_cr_alnum=$as_cr_Letters$as_cr_digits
475
476
477 as_lineno_1=$LINENO as_lineno_1a=$LINENO
478 as_lineno_2=$LINENO as_lineno_2a=$LINENO
479 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
480 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
481 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
482 sed -n '
483 p
484 /[$]LINENO/=
485 ' <$as_myself |
486 sed '
487 s/[$]LINENO.*/&-/
488 t lineno
489 b
490 :lineno
491 N
492 :loop
493 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
494 t loop
495 s/-\n.*//
496 ' >$as_me.lineno &&
497 chmod +x "$as_me.lineno" ||
498 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
499
500 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
501 # already done that, so ensure we don't try to do so again and fall
502 # in an infinite loop. This has already happened in practice.
503 _as_can_reexec=no; export _as_can_reexec
504 # Don't try to exec as it changes $[0], causing all sort of problems
505 # (the dirname of $[0] is not the place where we might find the
506 # original and so on. Autoconf is especially sensitive to this).
507 . "./$as_me.lineno"
508 # Exit status is that of the last command.
509 exit
510 }
511
512 ECHO_C= ECHO_N= ECHO_T=
513 case `echo -n x` in #(((((
514 -n*)
515 case `echo 'xy\c'` in
516 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
517 xy) ECHO_C='\c';;
518 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
519 ECHO_T=' ';;
520 esac;;
521 *)
522 ECHO_N='-n';;
523 esac
524
525 rm -f conf$$ conf$$.exe conf$$.file
526 if test -d conf$$.dir; then
527 rm -f conf$$.dir/conf$$.file
528 else
529 rm -f conf$$.dir
530 mkdir conf$$.dir 2>/dev/null
531 fi
532 if (echo >conf$$.file) 2>/dev/null; then
533 if ln -s conf$$.file conf$$ 2>/dev/null; then
534 as_ln_s='ln -s'
535 # ... but there are two gotchas:
536 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
537 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
538 # In both cases, we have to default to `cp -pR'.
539 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
540 as_ln_s='cp -pR'
541 elif ln conf$$.file conf$$ 2>/dev/null; then
542 as_ln_s=ln
543 else
544 as_ln_s='cp -pR'
545 fi
546 else
547 as_ln_s='cp -pR'
548 fi
549 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
550 rmdir conf$$.dir 2>/dev/null
551
552 if mkdir -p . 2>/dev/null; then
553 as_mkdir_p='mkdir -p "$as_dir"'
554 else
555 test -d ./-p && rmdir ./-p
556 as_mkdir_p=false
557 fi
558
559 as_test_x='test -x'
560 as_executable_p=as_fn_executable_p
561
562 # Sed expression to map a string onto a valid CPP name.
563 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
564
565 # Sed expression to map a string onto a valid variable name.
566 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
567
568 SHELL=${CONFIG_SHELL-/bin/sh}
569
570
571 test -n "$DJDIR" || exec 7<&0 </dev/null
572 exec 6>&1
573
574 # Name of the host.
575 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
576 # so uname gets run too.
577 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
578
579 #
580 # Initializations.
581 #
582 ac_default_prefix=/usr/local
583 ac_clean_files=
584 ac_config_libobj_dir=.
585 LIBOBJS=
586 cross_compiling=no
587 subdirs=
588 MFLAGS=
589 MAKEFLAGS=
590
591 # Identity of this package.
592 PACKAGE_NAME='xf86-video-mach64'
593 PACKAGE_TARNAME='xf86-video-mach64'
594 PACKAGE_VERSION='6.9.5'
595 PACKAGE_STRING='xf86-video-mach64 6.9.5'
596 PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
597 PACKAGE_URL=''
598
599 ac_unique_file="Makefile.am"
600 # Factoring default headers for most tests.
601 ac_includes_default="\
602 #include <stdio.h>
603 #ifdef HAVE_SYS_TYPES_H
604 # include <sys/types.h>
605 #endif
606 #ifdef HAVE_SYS_STAT_H
607 # include <sys/stat.h>
608 #endif
609 #ifdef STDC_HEADERS
610 # include <stdlib.h>
611 # include <stddef.h>
612 #else
613 # ifdef HAVE_STDLIB_H
614 # include <stdlib.h>
615 # endif
616 #endif
617 #ifdef HAVE_STRING_H
618 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
619 # include <memory.h>
620 # endif
621 # include <string.h>
622 #endif
623 #ifdef HAVE_STRINGS_H
624 # include <strings.h>
625 #endif
626 #ifdef HAVE_INTTYPES_H
627 # include <inttypes.h>
628 #endif
629 #ifdef HAVE_STDINT_H
630 # include <stdint.h>
631 #endif
632 #ifdef HAVE_UNISTD_H
633 # include <unistd.h>
634 #endif"
635
636 ac_subst_vars='am__EXEEXT_FALSE
637 am__EXEEXT_TRUE
638 LTLIBOBJS
639 LIBOBJS
640 DRIVER_NAME
641 moduledir
642 XSERVER_LIBPCIACCESS_FALSE
643 XSERVER_LIBPCIACCESS_TRUE
644 PCIACCESS_LIBS
645 PCIACCESS_CFLAGS
646 USE_EXA_FALSE
647 USE_EXA_TRUE
648 XAA_FALSE
649 XAA_TRUE
650 ATIMISC_TV_OUT_FALSE
651 ATIMISC_TV_OUT_TRUE
652 ATIMISC_DGA_FALSE
653 ATIMISC_DGA_TRUE
654 ATIMISC_CPIO_FALSE
655 ATIMISC_CPIO_TRUE
656 DRI_LIBS
657 DRI_CFLAGS
658 DRI_FALSE
659 DRI_TRUE
660 HAVE_XEXTPROTO_71_FALSE
661 HAVE_XEXTPROTO_71_TRUE
662 XEXT_LIBS
663 XEXT_CFLAGS
664 XORG_LIBS
665 XORG_CFLAGS
666 OTOOL64
667 OTOOL
668 LIPO
669 NMEDIT
670 DSYMUTIL
671 MANIFEST_TOOL
672 RANLIB
673 ac_ct_AR
674 AR
675 DLLTOOL
676 OBJDUMP
677 LN_S
678 NM
679 ac_ct_DUMPBIN
680 DUMPBIN
681 LD
682 FGREP
683 LIBTOOL
684 MAN_SUBSTS
685 XORG_MAN_PAGE
686 ADMIN_MAN_DIR
687 DRIVER_MAN_DIR
688 MISC_MAN_DIR
689 FILE_MAN_DIR
690 LIB_MAN_DIR
691 APP_MAN_DIR
692 ADMIN_MAN_SUFFIX
693 DRIVER_MAN_SUFFIX
694 MISC_MAN_SUFFIX
695 FILE_MAN_SUFFIX
696 LIB_MAN_SUFFIX
697 APP_MAN_SUFFIX
698 SED
699 host_os
700 host_vendor
701 host_cpu
702 host
703 build_os
704 build_vendor
705 build_cpu
706 build
707 INSTALL_CMD
708 PKG_CONFIG_LIBDIR
709 PKG_CONFIG_PATH
710 PKG_CONFIG
711 CHANGELOG_CMD
712 STRICT_CFLAGS
713 CWARNFLAGS
714 BASE_CFLAGS
715 EGREP
716 GREP
717 CPP
718 am__fastdepCC_FALSE
719 am__fastdepCC_TRUE
720 CCDEPMODE
721 am__nodep
722 AMDEPBACKSLASH
723 AMDEP_FALSE
724 AMDEP_TRUE
725 am__quote
726 am__include
727 DEPDIR
728 OBJEXT
729 EXEEXT
730 ac_ct_CC
731 CPPFLAGS
732 LDFLAGS
733 CFLAGS
734 CC
735 MAINT
736 MAINTAINER_MODE_FALSE
737 MAINTAINER_MODE_TRUE
738 AM_BACKSLASH
739 AM_DEFAULT_VERBOSITY
740 AM_DEFAULT_V
741 AM_V
742 am__untar
743 am__tar
744 AMTAR
745 am__leading_dot
746 SET_MAKE
747 AWK
748 mkdir_p
749 MKDIR_P
750 INSTALL_STRIP_PROGRAM
751 STRIP
752 install_sh
753 MAKEINFO
754 AUTOHEADER
755 AUTOMAKE
756 AUTOCONF
757 ACLOCAL
758 VERSION
759 PACKAGE
760 CYGPATH_W
761 am__isrc
762 INSTALL_DATA
763 INSTALL_SCRIPT
764 INSTALL_PROGRAM
765 target_alias
766 host_alias
767 build_alias
768 LIBS
769 ECHO_T
770 ECHO_N
771 ECHO_C
772 DEFS
773 mandir
774 localedir
775 libdir
776 psdir
777 pdfdir
778 dvidir
779 htmldir
780 infodir
781 docdir
782 oldincludedir
783 includedir
784 localstatedir
785 sharedstatedir
786 sysconfdir
787 datadir
788 datarootdir
789 libexecdir
790 sbindir
791 bindir
792 program_transform_name
793 prefix
794 exec_prefix
795 PACKAGE_URL
796 PACKAGE_BUGREPORT
797 PACKAGE_STRING
798 PACKAGE_VERSION
799 PACKAGE_TARNAME
800 PACKAGE_NAME
801 PATH_SEPARATOR
802 SHELL'
803 ac_subst_files=''
804 ac_user_opts='
805 enable_option_checking
806 enable_silent_rules
807 enable_maintainer_mode
808 enable_dependency_tracking
809 enable_selective_werror
810 enable_strict_compilation
811 enable_static
812 enable_shared
813 with_pic
814 enable_fast_install
815 with_gnu_ld
816 with_sysroot
817 enable_libtool_lock
818 with_xorg_module_dir
819 enable_dri
820 enable_exa
821 enable_xaa
822 '
823 ac_precious_vars='build_alias
824 host_alias
825 target_alias
826 CC
827 CFLAGS
828 LDFLAGS
829 LIBS
830 CPPFLAGS
831 CPP
832 PKG_CONFIG
833 PKG_CONFIG_PATH
834 PKG_CONFIG_LIBDIR
835 XORG_CFLAGS
836 XORG_LIBS
837 XEXT_CFLAGS
838 XEXT_LIBS
839 DRI_CFLAGS
840 DRI_LIBS
841 PCIACCESS_CFLAGS
842 PCIACCESS_LIBS'
843
844
845 # Initialize some variables set by options.
846 ac_init_help=
847 ac_init_version=false
848 ac_unrecognized_opts=
849 ac_unrecognized_sep=
850 # The variables have the same names as the options, with
851 # dashes changed to underlines.
852 cache_file=/dev/null
853 exec_prefix=NONE
854 no_create=
855 no_recursion=
856 prefix=NONE
857 program_prefix=NONE
858 program_suffix=NONE
859 program_transform_name=s,x,x,
860 silent=
861 site=
862 srcdir=
863 verbose=
864 x_includes=NONE
865 x_libraries=NONE
866
867 # Installation directory options.
868 # These are left unexpanded so users can "make install exec_prefix=/foo"
869 # and all the variables that are supposed to be based on exec_prefix
870 # by default will actually change.
871 # Use braces instead of parens because sh, perl, etc. also accept them.
872 # (The list follows the same order as the GNU Coding Standards.)
873 bindir='${exec_prefix}/bin'
874 sbindir='${exec_prefix}/sbin'
875 libexecdir='${exec_prefix}/libexec'
876 datarootdir='${prefix}/share'
877 datadir='${datarootdir}'
878 sysconfdir='${prefix}/etc'
879 sharedstatedir='${prefix}/com'
880 localstatedir='${prefix}/var'
881 includedir='${prefix}/include'
882 oldincludedir='/usr/include'
883 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
884 infodir='${datarootdir}/info'
885 htmldir='${docdir}'
886 dvidir='${docdir}'
887 pdfdir='${docdir}'
888 psdir='${docdir}'
889 libdir='${exec_prefix}/lib'
890 localedir='${datarootdir}/locale'
891 mandir='${datarootdir}/man'
892
893 ac_prev=
894 ac_dashdash=
895 for ac_option
896 do
897 # If the previous option needs an argument, assign it.
898 if test -n "$ac_prev"; then
899 eval $ac_prev=\$ac_option
900 ac_prev=
901 continue
902 fi
903
904 case $ac_option in
905 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
906 *=) ac_optarg= ;;
907 *) ac_optarg=yes ;;
908 esac
909
910 # Accept the important Cygnus configure options, so we can diagnose typos.
911
912 case $ac_dashdash$ac_option in
913 --)
914 ac_dashdash=yes ;;
915
916 -bindir | --bindir | --bindi | --bind | --bin | --bi)
917 ac_prev=bindir ;;
918 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
919 bindir=$ac_optarg ;;
920
921 -build | --build | --buil | --bui | --bu)
922 ac_prev=build_alias ;;
923 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
924 build_alias=$ac_optarg ;;
925
926 -cache-file | --cache-file | --cache-fil | --cache-fi \
927 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
928 ac_prev=cache_file ;;
929 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
930 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
931 cache_file=$ac_optarg ;;
932
933 --config-cache | -C)
934 cache_file=config.cache ;;
935
936 -datadir | --datadir | --datadi | --datad)
937 ac_prev=datadir ;;
938 -datadir=* | --datadir=* | --datadi=* | --datad=*)
939 datadir=$ac_optarg ;;
940
941 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
942 | --dataroo | --dataro | --datar)
943 ac_prev=datarootdir ;;
944 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
945 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
946 datarootdir=$ac_optarg ;;
947
948 -disable-* | --disable-*)
949 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
950 # Reject names that are not valid shell variable names.
951 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
952 as_fn_error $? "invalid feature name: $ac_useropt"
953 ac_useropt_orig=$ac_useropt
954 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
955 case $ac_user_opts in
956 *"
957 "enable_$ac_useropt"
958 "*) ;;
959 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
960 ac_unrecognized_sep=', ';;
961 esac
962 eval enable_$ac_useropt=no ;;
963
964 -docdir | --docdir | --docdi | --doc | --do)
965 ac_prev=docdir ;;
966 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
967 docdir=$ac_optarg ;;
968
969 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
970 ac_prev=dvidir ;;
971 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
972 dvidir=$ac_optarg ;;
973
974 -enable-* | --enable-*)
975 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
976 # Reject names that are not valid shell variable names.
977 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
978 as_fn_error $? "invalid feature name: $ac_useropt"
979 ac_useropt_orig=$ac_useropt
980 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
981 case $ac_user_opts in
982 *"
983 "enable_$ac_useropt"
984 "*) ;;
985 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
986 ac_unrecognized_sep=', ';;
987 esac
988 eval enable_$ac_useropt=\$ac_optarg ;;
989
990 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
991 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
992 | --exec | --exe | --ex)
993 ac_prev=exec_prefix ;;
994 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
995 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
996 | --exec=* | --exe=* | --ex=*)
997 exec_prefix=$ac_optarg ;;
998
999 -gas | --gas | --ga | --g)
1000 # Obsolete; use --with-gas.
1001 with_gas=yes ;;
1002
1003 -help | --help | --hel | --he | -h)
1004 ac_init_help=long ;;
1005 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1006 ac_init_help=recursive ;;
1007 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1008 ac_init_help=short ;;
1009
1010 -host | --host | --hos | --ho)
1011 ac_prev=host_alias ;;
1012 -host=* | --host=* | --hos=* | --ho=*)
1013 host_alias=$ac_optarg ;;
1014
1015 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1016 ac_prev=htmldir ;;
1017 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1018 | --ht=*)
1019 htmldir=$ac_optarg ;;
1020
1021 -includedir | --includedir | --includedi | --included | --include \
1022 | --includ | --inclu | --incl | --inc)
1023 ac_prev=includedir ;;
1024 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1025 | --includ=* | --inclu=* | --incl=* | --inc=*)
1026 includedir=$ac_optarg ;;
1027
1028 -infodir | --infodir | --infodi | --infod | --info | --inf)
1029 ac_prev=infodir ;;
1030 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1031 infodir=$ac_optarg ;;
1032
1033 -libdir | --libdir | --libdi | --libd)
1034 ac_prev=libdir ;;
1035 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1036 libdir=$ac_optarg ;;
1037
1038 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1039 | --libexe | --libex | --libe)
1040 ac_prev=libexecdir ;;
1041 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1042 | --libexe=* | --libex=* | --libe=*)
1043 libexecdir=$ac_optarg ;;
1044
1045 -localedir | --localedir | --localedi | --localed | --locale)
1046 ac_prev=localedir ;;
1047 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1048 localedir=$ac_optarg ;;
1049
1050 -localstatedir | --localstatedir | --localstatedi | --localstated \
1051 | --localstate | --localstat | --localsta | --localst | --locals)
1052 ac_prev=localstatedir ;;
1053 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1054 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1055 localstatedir=$ac_optarg ;;
1056
1057 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1058 ac_prev=mandir ;;
1059 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1060 mandir=$ac_optarg ;;
1061
1062 -nfp | --nfp | --nf)
1063 # Obsolete; use --without-fp.
1064 with_fp=no ;;
1065
1066 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1067 | --no-cr | --no-c | -n)
1068 no_create=yes ;;
1069
1070 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1071 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1072 no_recursion=yes ;;
1073
1074 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1075 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1076 | --oldin | --oldi | --old | --ol | --o)
1077 ac_prev=oldincludedir ;;
1078 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1079 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1080 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1081 oldincludedir=$ac_optarg ;;
1082
1083 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1084 ac_prev=prefix ;;
1085 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1086 prefix=$ac_optarg ;;
1087
1088 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1089 | --program-pre | --program-pr | --program-p)
1090 ac_prev=program_prefix ;;
1091 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1092 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1093 program_prefix=$ac_optarg ;;
1094
1095 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1096 | --program-suf | --program-su | --program-s)
1097 ac_prev=program_suffix ;;
1098 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1099 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1100 program_suffix=$ac_optarg ;;
1101
1102 -program-transform-name | --program-transform-name \
1103 | --program-transform-nam | --program-transform-na \
1104 | --program-transform-n | --program-transform- \
1105 | --program-transform | --program-transfor \
1106 | --program-transfo | --program-transf \
1107 | --program-trans | --program-tran \
1108 | --progr-tra | --program-tr | --program-t)
1109 ac_prev=program_transform_name ;;
1110 -program-transform-name=* | --program-transform-name=* \
1111 | --program-transform-nam=* | --program-transform-na=* \
1112 | --program-transform-n=* | --program-transform-=* \
1113 | --program-transform=* | --program-transfor=* \
1114 | --program-transfo=* | --program-transf=* \
1115 | --program-trans=* | --program-tran=* \
1116 | --progr-tra=* | --program-tr=* | --program-t=*)
1117 program_transform_name=$ac_optarg ;;
1118
1119 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1120 ac_prev=pdfdir ;;
1121 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1122 pdfdir=$ac_optarg ;;
1123
1124 -psdir | --psdir | --psdi | --psd | --ps)
1125 ac_prev=psdir ;;
1126 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1127 psdir=$ac_optarg ;;
1128
1129 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1130 | -silent | --silent | --silen | --sile | --sil)
1131 silent=yes ;;
1132
1133 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1134 ac_prev=sbindir ;;
1135 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1136 | --sbi=* | --sb=*)
1137 sbindir=$ac_optarg ;;
1138
1139 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1140 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1141 | --sharedst | --shareds | --shared | --share | --shar \
1142 | --sha | --sh)
1143 ac_prev=sharedstatedir ;;
1144 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1145 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1146 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1147 | --sha=* | --sh=*)
1148 sharedstatedir=$ac_optarg ;;
1149
1150 -site | --site | --sit)
1151 ac_prev=site ;;
1152 -site=* | --site=* | --sit=*)
1153 site=$ac_optarg ;;
1154
1155 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1156 ac_prev=srcdir ;;
1157 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1158 srcdir=$ac_optarg ;;
1159
1160 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1161 | --syscon | --sysco | --sysc | --sys | --sy)
1162 ac_prev=sysconfdir ;;
1163 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1164 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1165 sysconfdir=$ac_optarg ;;
1166
1167 -target | --target | --targe | --targ | --tar | --ta | --t)
1168 ac_prev=target_alias ;;
1169 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1170 target_alias=$ac_optarg ;;
1171
1172 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1173 verbose=yes ;;
1174
1175 -version | --version | --versio | --versi | --vers | -V)
1176 ac_init_version=: ;;
1177
1178 -with-* | --with-*)
1179 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1180 # Reject names that are not valid shell variable names.
1181 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1182 as_fn_error $? "invalid package name: $ac_useropt"
1183 ac_useropt_orig=$ac_useropt
1184 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1185 case $ac_user_opts in
1186 *"
1187 "with_$ac_useropt"
1188 "*) ;;
1189 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1190 ac_unrecognized_sep=', ';;
1191 esac
1192 eval with_$ac_useropt=\$ac_optarg ;;
1193
1194 -without-* | --without-*)
1195 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1196 # Reject names that are not valid shell variable names.
1197 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1198 as_fn_error $? "invalid package name: $ac_useropt"
1199 ac_useropt_orig=$ac_useropt
1200 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1201 case $ac_user_opts in
1202 *"
1203 "with_$ac_useropt"
1204 "*) ;;
1205 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1206 ac_unrecognized_sep=', ';;
1207 esac
1208 eval with_$ac_useropt=no ;;
1209
1210 --x)
1211 # Obsolete; use --with-x.
1212 with_x=yes ;;
1213
1214 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1215 | --x-incl | --x-inc | --x-in | --x-i)
1216 ac_prev=x_includes ;;
1217 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1218 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1219 x_includes=$ac_optarg ;;
1220
1221 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1222 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1223 ac_prev=x_libraries ;;
1224 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1225 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1226 x_libraries=$ac_optarg ;;
1227
1228 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1229 Try \`$0 --help' for more information"
1230 ;;
1231
1232 *=*)
1233 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1234 # Reject names that are not valid shell variable names.
1235 case $ac_envvar in #(
1236 '' | [0-9]* | *[!_$as_cr_alnum]* )
1237 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1238 esac
1239 eval $ac_envvar=\$ac_optarg
1240 export $ac_envvar ;;
1241
1242 *)
1243 # FIXME: should be removed in autoconf 3.0.
1244 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1245 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1246 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1247 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1248 ;;
1249
1250 esac
1251 done
1252
1253 if test -n "$ac_prev"; then
1254 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1255 as_fn_error $? "missing argument to $ac_option"
1256 fi
1257
1258 if test -n "$ac_unrecognized_opts"; then
1259 case $enable_option_checking in
1260 no) ;;
1261 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1262 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1263 esac
1264 fi
1265
1266 # Check all directory arguments for consistency.
1267 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1268 datadir sysconfdir sharedstatedir localstatedir includedir \
1269 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1270 libdir localedir mandir
1271 do
1272 eval ac_val=\$$ac_var
1273 # Remove trailing slashes.
1274 case $ac_val in
1275 */ )
1276 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1277 eval $ac_var=\$ac_val;;
1278 esac
1279 # Be sure to have absolute directory names.
1280 case $ac_val in
1281 [\\/$]* | ?:[\\/]* ) continue;;
1282 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1283 esac
1284 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1285 done
1286
1287 # There might be people who depend on the old broken behavior: `$host'
1288 # used to hold the argument of --host etc.
1289 # FIXME: To remove some day.
1290 build=$build_alias
1291 host=$host_alias
1292 target=$target_alias
1293
1294 # FIXME: To remove some day.
1295 if test "x$host_alias" != x; then
1296 if test "x$build_alias" = x; then
1297 cross_compiling=maybe
1298 elif test "x$build_alias" != "x$host_alias"; then
1299 cross_compiling=yes
1300 fi
1301 fi
1302
1303 ac_tool_prefix=
1304 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1305
1306 test "$silent" = yes && exec 6>/dev/null
1307
1308
1309 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1310 ac_ls_di=`ls -di .` &&
1311 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1312 as_fn_error $? "working directory cannot be determined"
1313 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1314 as_fn_error $? "pwd does not report name of working directory"
1315
1316
1317 # Find the source files, if location was not specified.
1318 if test -z "$srcdir"; then
1319 ac_srcdir_defaulted=yes
1320 # Try the directory containing this script, then the parent directory.
1321 ac_confdir=`$as_dirname -- "$as_myself" ||
1322 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1323 X"$as_myself" : 'X\(//\)[^/]' \| \
1324 X"$as_myself" : 'X\(//\)$' \| \
1325 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1326 $as_echo X"$as_myself" |
1327 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1328 s//\1/
1329 q
1330 }
1331 /^X\(\/\/\)[^/].*/{
1332 s//\1/
1333 q
1334 }
1335 /^X\(\/\/\)$/{
1336 s//\1/
1337 q
1338 }
1339 /^X\(\/\).*/{
1340 s//\1/
1341 q
1342 }
1343 s/.*/./; q'`
1344 srcdir=$ac_confdir
1345 if test ! -r "$srcdir/$ac_unique_file"; then
1346 srcdir=..
1347 fi
1348 else
1349 ac_srcdir_defaulted=no
1350 fi
1351 if test ! -r "$srcdir/$ac_unique_file"; then
1352 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1353 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1354 fi
1355 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1356 ac_abs_confdir=`(
1357 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1358 pwd)`
1359 # When building in place, set srcdir=.
1360 if test "$ac_abs_confdir" = "$ac_pwd"; then
1361 srcdir=.
1362 fi
1363 # Remove unnecessary trailing slashes from srcdir.
1364 # Double slashes in file names in object file debugging info
1365 # mess up M-x gdb in Emacs.
1366 case $srcdir in
1367 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1368 esac
1369 for ac_var in $ac_precious_vars; do
1370 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1371 eval ac_env_${ac_var}_value=\$${ac_var}
1372 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1373 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1374 done
1375
1376 #
1377 # Report the --help message.
1378 #
1379 if test "$ac_init_help" = "long"; then
1380 # Omit some internal or obsolete options to make the list less imposing.
1381 # This message is too long to be a string in the A/UX 3.1 sh.
1382 cat <<_ACEOF
1383 \`configure' configures xf86-video-mach64 6.9.5 to adapt to many kinds of systems.
1384
1385 Usage: $0 [OPTION]... [VAR=VALUE]...
1386
1387 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1388 VAR=VALUE. See below for descriptions of some of the useful variables.
1389
1390 Defaults for the options are specified in brackets.
1391
1392 Configuration:
1393 -h, --help display this help and exit
1394 --help=short display options specific to this package
1395 --help=recursive display the short help of all the included packages
1396 -V, --version display version information and exit
1397 -q, --quiet, --silent do not print \`checking ...' messages
1398 --cache-file=FILE cache test results in FILE [disabled]
1399 -C, --config-cache alias for \`--cache-file=config.cache'
1400 -n, --no-create do not create output files
1401 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1402
1403 Installation directories:
1404 --prefix=PREFIX install architecture-independent files in PREFIX
1405 [$ac_default_prefix]
1406 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1407 [PREFIX]
1408
1409 By default, \`make install' will install all the files in
1410 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1411 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1412 for instance \`--prefix=\$HOME'.
1413
1414 For better control, use the options below.
1415
1416 Fine tuning of the installation directories:
1417 --bindir=DIR user executables [EPREFIX/bin]
1418 --sbindir=DIR system admin executables [EPREFIX/sbin]
1419 --libexecdir=DIR program executables [EPREFIX/libexec]
1420 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1421 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1422 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1423 --libdir=DIR object code libraries [EPREFIX/lib]
1424 --includedir=DIR C header files [PREFIX/include]
1425 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1426 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1427 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1428 --infodir=DIR info documentation [DATAROOTDIR/info]
1429 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1430 --mandir=DIR man documentation [DATAROOTDIR/man]
1431 --docdir=DIR documentation root
1432 [DATAROOTDIR/doc/xf86-video-mach64]
1433 --htmldir=DIR html documentation [DOCDIR]
1434 --dvidir=DIR dvi documentation [DOCDIR]
1435 --pdfdir=DIR pdf documentation [DOCDIR]
1436 --psdir=DIR ps documentation [DOCDIR]
1437 _ACEOF
1438
1439 cat <<\_ACEOF
1440
1441 Program names:
1442 --program-prefix=PREFIX prepend PREFIX to installed program names
1443 --program-suffix=SUFFIX append SUFFIX to installed program names
1444 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1445
1446 System types:
1447 --build=BUILD configure for building on BUILD [guessed]
1448 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1449 _ACEOF
1450 fi
1451
1452 if test -n "$ac_init_help"; then
1453 case $ac_init_help in
1454 short | recursive ) echo "Configuration of xf86-video-mach64 6.9.5:";;
1455 esac
1456 cat <<\_ACEOF
1457
1458 Optional Features:
1459 --disable-option-checking ignore unrecognized --enable/--with options
1460 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1461 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1462 --enable-silent-rules less verbose build output (undo: "make V=1")
1463 --disable-silent-rules verbose build output (undo: "make V=0")
1464 --enable-maintainer-mode
1465 enable make rules and dependencies not useful (and
1466 sometimes confusing) to the casual installer
1467 --enable-dependency-tracking
1468 do not reject slow dependency extractors
1469 --disable-dependency-tracking
1470 speeds up one-time build
1471 --disable-selective-werror
1472 Turn off selective compiler errors. (default:
1473 enabled)
1474 --enable-strict-compilation
1475 Enable all warnings from compiler and make them
1476 errors (default: disabled)
1477 --enable-static[=PKGS] build static libraries [default=no]
1478 --enable-shared[=PKGS] build shared libraries [default=yes]
1479 --enable-fast-install[=PKGS]
1480 optimize for fast installation [default=yes]
1481 --disable-libtool-lock avoid locking (might break parallel builds)
1482 --disable-dri Disable DRI support [[default=auto]]
1483 --disable-exa Disable EXA support [[default=enabled]]
1484 --enable-xaa Enable legacy X Acceleration Architecture (XAA)
1485 [default=auto]
1486
1487 Optional Packages:
1488 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1489 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1490 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1491 both]
1492 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1493 --with-sysroot=DIR Search for dependent libraries within DIR
1494 (or the compiler's sysroot if not specified).
1495 --with-xorg-module-dir=DIR
1496 Default xorg module directory
1497 [[default=$libdir/xorg/modules]]
1498
1499 Some influential environment variables:
1500 CC C compiler command
1501 CFLAGS C compiler flags
1502 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1503 nonstandard directory <lib dir>
1504 LIBS libraries to pass to the linker, e.g. -l<library>
1505 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1506 you have headers in a nonstandard directory <include dir>
1507 CPP C preprocessor
1508 PKG_CONFIG path to pkg-config utility
1509 PKG_CONFIG_PATH
1510 directories to add to pkg-config's search path
1511 PKG_CONFIG_LIBDIR
1512 path overriding pkg-config's built-in search path
1513 XORG_CFLAGS C compiler flags for XORG, overriding pkg-config
1514 XORG_LIBS linker flags for XORG, overriding pkg-config
1515 XEXT_CFLAGS C compiler flags for XEXT, overriding pkg-config
1516 XEXT_LIBS linker flags for XEXT, overriding pkg-config
1517 DRI_CFLAGS C compiler flags for DRI, overriding pkg-config
1518 DRI_LIBS linker flags for DRI, overriding pkg-config
1519 PCIACCESS_CFLAGS
1520 C compiler flags for PCIACCESS, overriding pkg-config
1521 PCIACCESS_LIBS
1522 linker flags for PCIACCESS, overriding pkg-config
1523
1524 Use these variables to override the choices made by `configure' or to help
1525 it to find libraries and programs with nonstandard names/locations.
1526
1527 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1528 _ACEOF
1529 ac_status=$?
1530 fi
1531
1532 if test "$ac_init_help" = "recursive"; then
1533 # If there are subdirs, report their specific --help.
1534 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1535 test -d "$ac_dir" ||
1536 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1537 continue
1538 ac_builddir=.
1539
1540 case "$ac_dir" in
1541 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1542 *)
1543 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1544 # A ".." for each directory in $ac_dir_suffix.
1545 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1546 case $ac_top_builddir_sub in
1547 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1548 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1549 esac ;;
1550 esac
1551 ac_abs_top_builddir=$ac_pwd
1552 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1553 # for backward compatibility:
1554 ac_top_builddir=$ac_top_build_prefix
1555
1556 case $srcdir in
1557 .) # We are building in place.
1558 ac_srcdir=.
1559 ac_top_srcdir=$ac_top_builddir_sub
1560 ac_abs_top_srcdir=$ac_pwd ;;
1561 [\\/]* | ?:[\\/]* ) # Absolute name.
1562 ac_srcdir=$srcdir$ac_dir_suffix;
1563 ac_top_srcdir=$srcdir
1564 ac_abs_top_srcdir=$srcdir ;;
1565 *) # Relative name.
1566 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1567 ac_top_srcdir=$ac_top_build_prefix$srcdir
1568 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1569 esac
1570 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1571
1572 cd "$ac_dir" || { ac_status=$?; continue; }
1573 # Check for guested configure.
1574 if test -f "$ac_srcdir/configure.gnu"; then
1575 echo &&
1576 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1577 elif test -f "$ac_srcdir/configure"; then
1578 echo &&
1579 $SHELL "$ac_srcdir/configure" --help=recursive
1580 else
1581 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1582 fi || ac_status=$?
1583 cd "$ac_pwd" || { ac_status=$?; break; }
1584 done
1585 fi
1586
1587 test -n "$ac_init_help" && exit $ac_status
1588 if $ac_init_version; then
1589 cat <<\_ACEOF
1590 xf86-video-mach64 configure 6.9.5
1591 generated by GNU Autoconf 2.69
1592
1593 Copyright (C) 2012 Free Software Foundation, Inc.
1594 This configure script is free software; the Free Software Foundation
1595 gives unlimited permission to copy, distribute and modify it.
1596 _ACEOF
1597 exit
1598 fi
1599
1600 ## ------------------------ ##
1601 ## Autoconf initialization. ##
1602 ## ------------------------ ##
1603
1604 # ac_fn_c_try_compile LINENO
1605 # --------------------------
1606 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1607 ac_fn_c_try_compile ()
1608 {
1609 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1610 rm -f conftest.$ac_objext
1611 if { { ac_try="$ac_compile"
1612 case "(($ac_try" in
1613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1614 *) ac_try_echo=$ac_try;;
1615 esac
1616 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1617 $as_echo "$ac_try_echo"; } >&5
1618 (eval "$ac_compile") 2>conftest.err
1619 ac_status=$?
1620 if test -s conftest.err; then
1621 grep -v '^ *+' conftest.err >conftest.er1
1622 cat conftest.er1 >&5
1623 mv -f conftest.er1 conftest.err
1624 fi
1625 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1626 test $ac_status = 0; } && {
1627 test -z "$ac_c_werror_flag" ||
1628 test ! -s conftest.err
1629 } && test -s conftest.$ac_objext; then :
1630 ac_retval=0
1631 else
1632 $as_echo "$as_me: failed program was:" >&5
1633 sed 's/^/| /' conftest.$ac_ext >&5
1634
1635 ac_retval=1
1636 fi
1637 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1638 as_fn_set_status $ac_retval
1639
1640 } # ac_fn_c_try_compile
1641
1642 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1643 # ---------------------------------------------
1644 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1645 # accordingly.
1646 ac_fn_c_check_decl ()
1647 {
1648 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1649 as_decl_name=`echo $2|sed 's/ *(.*//'`
1650 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1652 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1653 if eval \${$3+:} false; then :
1654 $as_echo_n "(cached) " >&6
1655 else
1656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1657 /* end confdefs.h. */
1658 $4
1659 int
1660 main ()
1661 {
1662 #ifndef $as_decl_name
1663 #ifdef __cplusplus
1664 (void) $as_decl_use;
1665 #else
1666 (void) $as_decl_name;
1667 #endif
1668 #endif
1669
1670 ;
1671 return 0;
1672 }
1673 _ACEOF
1674 if ac_fn_c_try_compile "$LINENO"; then :
1675 eval "$3=yes"
1676 else
1677 eval "$3=no"
1678 fi
1679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1680 fi
1681 eval ac_res=\$$3
1682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1683 $as_echo "$ac_res" >&6; }
1684 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1685
1686 } # ac_fn_c_check_decl
1687
1688 # ac_fn_c_try_cpp LINENO
1689 # ----------------------
1690 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1691 ac_fn_c_try_cpp ()
1692 {
1693 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1694 if { { ac_try="$ac_cpp conftest.$ac_ext"
1695 case "(($ac_try" in
1696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1697 *) ac_try_echo=$ac_try;;
1698 esac
1699 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1700 $as_echo "$ac_try_echo"; } >&5
1701 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1702 ac_status=$?
1703 if test -s conftest.err; then
1704 grep -v '^ *+' conftest.err >conftest.er1
1705 cat conftest.er1 >&5
1706 mv -f conftest.er1 conftest.err
1707 fi
1708 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1709 test $ac_status = 0; } > conftest.i && {
1710 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1711 test ! -s conftest.err
1712 }; then :
1713 ac_retval=0
1714 else
1715 $as_echo "$as_me: failed program was:" >&5
1716 sed 's/^/| /' conftest.$ac_ext >&5
1717
1718 ac_retval=1
1719 fi
1720 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1721 as_fn_set_status $ac_retval
1722
1723 } # ac_fn_c_try_cpp
1724
1725 # ac_fn_c_try_run LINENO
1726 # ----------------------
1727 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1728 # that executables *can* be run.
1729 ac_fn_c_try_run ()
1730 {
1731 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1732 if { { ac_try="$ac_link"
1733 case "(($ac_try" in
1734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1735 *) ac_try_echo=$ac_try;;
1736 esac
1737 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1738 $as_echo "$ac_try_echo"; } >&5
1739 (eval "$ac_link") 2>&5
1740 ac_status=$?
1741 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1742 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1743 { { case "(($ac_try" in
1744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1745 *) ac_try_echo=$ac_try;;
1746 esac
1747 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1748 $as_echo "$ac_try_echo"; } >&5
1749 (eval "$ac_try") 2>&5
1750 ac_status=$?
1751 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1752 test $ac_status = 0; }; }; then :
1753 ac_retval=0
1754 else
1755 $as_echo "$as_me: program exited with status $ac_status" >&5
1756 $as_echo "$as_me: failed program was:" >&5
1757 sed 's/^/| /' conftest.$ac_ext >&5
1758
1759 ac_retval=$ac_status
1760 fi
1761 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1762 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1763 as_fn_set_status $ac_retval
1764
1765 } # ac_fn_c_try_run
1766
1767 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1768 # -------------------------------------------------------
1769 # Tests whether HEADER exists and can be compiled using the include files in
1770 # INCLUDES, setting the cache variable VAR accordingly.
1771 ac_fn_c_check_header_compile ()
1772 {
1773 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1775 $as_echo_n "checking for $2... " >&6; }
1776 if eval \${$3+:} false; then :
1777 $as_echo_n "(cached) " >&6
1778 else
1779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1780 /* end confdefs.h. */
1781 $4
1782 #include <$2>
1783 _ACEOF
1784 if ac_fn_c_try_compile "$LINENO"; then :
1785 eval "$3=yes"
1786 else
1787 eval "$3=no"
1788 fi
1789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1790 fi
1791 eval ac_res=\$$3
1792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1793 $as_echo "$ac_res" >&6; }
1794 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1795
1796 } # ac_fn_c_check_header_compile
1797
1798 # ac_fn_c_try_link LINENO
1799 # -----------------------
1800 # Try to link conftest.$ac_ext, and return whether this succeeded.
1801 ac_fn_c_try_link ()
1802 {
1803 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1804 rm -f conftest.$ac_objext conftest$ac_exeext
1805 if { { ac_try="$ac_link"
1806 case "(($ac_try" in
1807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1808 *) ac_try_echo=$ac_try;;
1809 esac
1810 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1811 $as_echo "$ac_try_echo"; } >&5
1812 (eval "$ac_link") 2>conftest.err
1813 ac_status=$?
1814 if test -s conftest.err; then
1815 grep -v '^ *+' conftest.err >conftest.er1
1816 cat conftest.er1 >&5
1817 mv -f conftest.er1 conftest.err
1818 fi
1819 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1820 test $ac_status = 0; } && {
1821 test -z "$ac_c_werror_flag" ||
1822 test ! -s conftest.err
1823 } && test -s conftest$ac_exeext && {
1824 test "$cross_compiling" = yes ||
1825 test -x conftest$ac_exeext
1826 }; then :
1827 ac_retval=0
1828 else
1829 $as_echo "$as_me: failed program was:" >&5
1830 sed 's/^/| /' conftest.$ac_ext >&5
1831
1832 ac_retval=1
1833 fi
1834 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1835 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1836 # interfere with the next link command; also delete a directory that is
1837 # left behind by Apple's compiler. We do this before executing the actions.
1838 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1839 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1840 as_fn_set_status $ac_retval
1841
1842 } # ac_fn_c_try_link
1843
1844 # ac_fn_c_check_func LINENO FUNC VAR
1845 # ----------------------------------
1846 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1847 ac_fn_c_check_func ()
1848 {
1849 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1851 $as_echo_n "checking for $2... " >&6; }
1852 if eval \${$3+:} false; then :
1853 $as_echo_n "(cached) " >&6
1854 else
1855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1856 /* end confdefs.h. */
1857 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1858 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1859 #define $2 innocuous_$2
1860
1861 /* System header to define __stub macros and hopefully few prototypes,
1862 which can conflict with char $2 (); below.
1863 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1864 <limits.h> exists even on freestanding compilers. */
1865
1866 #ifdef __STDC__
1867 # include <limits.h>
1868 #else
1869 # include <assert.h>
1870 #endif
1871
1872 #undef $2
1873
1874 /* Override any GCC internal prototype to avoid an error.
1875 Use char because int might match the return type of a GCC
1876 builtin and then its argument prototype would still apply. */
1877 #ifdef __cplusplus
1878 extern "C"
1879 #endif
1880 char $2 ();
1881 /* The GNU C library defines this for functions which it implements
1882 to always fail with ENOSYS. Some functions are actually named
1883 something starting with __ and the normal name is an alias. */
1884 #if defined __stub_$2 || defined __stub___$2
1885 choke me
1886 #endif
1887
1888 int
1889 main ()
1890 {
1891 return $2 ();
1892 ;
1893 return 0;
1894 }
1895 _ACEOF
1896 if ac_fn_c_try_link "$LINENO"; then :
1897 eval "$3=yes"
1898 else
1899 eval "$3=no"
1900 fi
1901 rm -f core conftest.err conftest.$ac_objext \
1902 conftest$ac_exeext conftest.$ac_ext
1903 fi
1904 eval ac_res=\$$3
1905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1906 $as_echo "$ac_res" >&6; }
1907 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1908
1909 } # ac_fn_c_check_func
1910
1911 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1912 # -------------------------------------------------------
1913 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1914 # the include files in INCLUDES and setting the cache variable VAR
1915 # accordingly.
1916 ac_fn_c_check_header_mongrel ()
1917 {
1918 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1919 if eval \${$3+:} false; then :
1920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1921 $as_echo_n "checking for $2... " >&6; }
1922 if eval \${$3+:} false; then :
1923 $as_echo_n "(cached) " >&6
1924 fi
1925 eval ac_res=\$$3
1926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1927 $as_echo "$ac_res" >&6; }
1928 else
1929 # Is the header compilable?
1930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1931 $as_echo_n "checking $2 usability... " >&6; }
1932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1933 /* end confdefs.h. */
1934 $4
1935 #include <$2>
1936 _ACEOF
1937 if ac_fn_c_try_compile "$LINENO"; then :
1938 ac_header_compiler=yes
1939 else
1940 ac_header_compiler=no
1941 fi
1942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1944 $as_echo "$ac_header_compiler" >&6; }
1945
1946 # Is the header present?
1947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1948 $as_echo_n "checking $2 presence... " >&6; }
1949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1950 /* end confdefs.h. */
1951 #include <$2>
1952 _ACEOF
1953 if ac_fn_c_try_cpp "$LINENO"; then :
1954 ac_header_preproc=yes
1955 else
1956 ac_header_preproc=no
1957 fi
1958 rm -f conftest.err conftest.i conftest.$ac_ext
1959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1960 $as_echo "$ac_header_preproc" >&6; }
1961
1962 # So? What about this header?
1963 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1964 yes:no: )
1965 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1966 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1968 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1969 ;;
1970 no:yes:* )
1971 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1972 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1973 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1974 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1975 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1976 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1977 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1978 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1979 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1980 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1981 ( $as_echo "## ---------------------------------------------------------------------- ##
1982 ## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
1983 ## ---------------------------------------------------------------------- ##"
1984 ) | sed "s/^/$as_me: WARNING: /" >&2
1985 ;;
1986 esac
1987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1988 $as_echo_n "checking for $2... " >&6; }
1989 if eval \${$3+:} false; then :
1990 $as_echo_n "(cached) " >&6
1991 else
1992 eval "$3=\$ac_header_compiler"
1993 fi
1994 eval ac_res=\$$3
1995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1996 $as_echo "$ac_res" >&6; }
1997 fi
1998 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1999
2000 } # ac_fn_c_check_header_mongrel
2001 cat >config.log <<_ACEOF
2002 This file contains any messages produced by compilers while
2003 running configure, to aid debugging if configure makes a mistake.
2004
2005 It was created by xf86-video-mach64 $as_me 6.9.5, which was
2006 generated by GNU Autoconf 2.69. Invocation command line was
2007
2008 $ $0 $@
2009
2010 _ACEOF
2011 exec 5>>config.log
2012 {
2013 cat <<_ASUNAME
2014 ## --------- ##
2015 ## Platform. ##
2016 ## --------- ##
2017
2018 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2019 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2020 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2021 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2022 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2023
2024 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2025 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2026
2027 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2028 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2029 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2030 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2031 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2032 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2033 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2034
2035 _ASUNAME
2036
2037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2038 for as_dir in $PATH
2039 do
2040 IFS=$as_save_IFS
2041 test -z "$as_dir" && as_dir=.
2042 $as_echo "PATH: $as_dir"
2043 done
2044 IFS=$as_save_IFS
2045
2046 } >&5
2047
2048 cat >&5 <<_ACEOF
2049
2050
2051 ## ----------- ##
2052 ## Core tests. ##
2053 ## ----------- ##
2054
2055 _ACEOF
2056
2057
2058 # Keep a trace of the command line.
2059 # Strip out --no-create and --no-recursion so they do not pile up.
2060 # Strip out --silent because we don't want to record it for future runs.
2061 # Also quote any args containing shell meta-characters.
2062 # Make two passes to allow for proper duplicate-argument suppression.
2063 ac_configure_args=
2064 ac_configure_args0=
2065 ac_configure_args1=
2066 ac_must_keep_next=false
2067 for ac_pass in 1 2
2068 do
2069 for ac_arg
2070 do
2071 case $ac_arg in
2072 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2073 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2074 | -silent | --silent | --silen | --sile | --sil)
2075 continue ;;
2076 *\'*)
2077 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2078 esac
2079 case $ac_pass in
2080 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2081 2)
2082 as_fn_append ac_configure_args1 " '$ac_arg'"
2083 if test $ac_must_keep_next = true; then
2084 ac_must_keep_next=false # Got value, back to normal.
2085 else
2086 case $ac_arg in
2087 *=* | --config-cache | -C | -disable-* | --disable-* \
2088 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2089 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2090 | -with-* | --with-* | -without-* | --without-* | --x)
2091 case "$ac_configure_args0 " in
2092 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2093 esac
2094 ;;
2095 -* ) ac_must_keep_next=true ;;
2096 esac
2097 fi
2098 as_fn_append ac_configure_args " '$ac_arg'"
2099 ;;
2100 esac
2101 done
2102 done
2103 { ac_configure_args0=; unset ac_configure_args0;}
2104 { ac_configure_args1=; unset ac_configure_args1;}
2105
2106 # When interrupted or exit'd, cleanup temporary files, and complete
2107 # config.log. We remove comments because anyway the quotes in there
2108 # would cause problems or look ugly.
2109 # WARNING: Use '\'' to represent an apostrophe within the trap.
2110 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2111 trap 'exit_status=$?
2112 # Save into config.log some information that might help in debugging.
2113 {
2114 echo
2115
2116 $as_echo "## ---------------- ##
2117 ## Cache variables. ##
2118 ## ---------------- ##"
2119 echo
2120 # The following way of writing the cache mishandles newlines in values,
2121 (
2122 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2123 eval ac_val=\$$ac_var
2124 case $ac_val in #(
2125 *${as_nl}*)
2126 case $ac_var in #(
2127 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2128 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2129 esac
2130 case $ac_var in #(
2131 _ | IFS | as_nl) ;; #(
2132 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2133 *) { eval $ac_var=; unset $ac_var;} ;;
2134 esac ;;
2135 esac
2136 done
2137 (set) 2>&1 |
2138 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2139 *${as_nl}ac_space=\ *)
2140 sed -n \
2141 "s/'\''/'\''\\\\'\'''\''/g;
2142 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2143 ;; #(
2144 *)
2145 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2146 ;;
2147 esac |
2148 sort
2149 )
2150 echo
2151
2152 $as_echo "## ----------------- ##
2153 ## Output variables. ##
2154 ## ----------------- ##"
2155 echo
2156 for ac_var in $ac_subst_vars
2157 do
2158 eval ac_val=\$$ac_var
2159 case $ac_val in
2160 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2161 esac
2162 $as_echo "$ac_var='\''$ac_val'\''"
2163 done | sort
2164 echo
2165
2166 if test -n "$ac_subst_files"; then
2167 $as_echo "## ------------------- ##
2168 ## File substitutions. ##
2169 ## ------------------- ##"
2170 echo
2171 for ac_var in $ac_subst_files
2172 do
2173 eval ac_val=\$$ac_var
2174 case $ac_val in
2175 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2176 esac
2177 $as_echo "$ac_var='\''$ac_val'\''"
2178 done | sort
2179 echo
2180 fi
2181
2182 if test -s confdefs.h; then
2183 $as_echo "## ----------- ##
2184 ## confdefs.h. ##
2185 ## ----------- ##"
2186 echo
2187 cat confdefs.h
2188 echo
2189 fi
2190 test "$ac_signal" != 0 &&
2191 $as_echo "$as_me: caught signal $ac_signal"
2192 $as_echo "$as_me: exit $exit_status"
2193 } >&5
2194 rm -f core *.core core.conftest.* &&
2195 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2196 exit $exit_status
2197 ' 0
2198 for ac_signal in 1 2 13 15; do
2199 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2200 done
2201 ac_signal=0
2202
2203 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2204 rm -f -r conftest* confdefs.h
2205
2206 $as_echo "/* confdefs.h */" > confdefs.h
2207
2208 # Predefined preprocessor variables.
2209
2210 cat >>confdefs.h <<_ACEOF
2211 #define PACKAGE_NAME "$PACKAGE_NAME"
2212 _ACEOF
2213
2214 cat >>confdefs.h <<_ACEOF
2215 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2216 _ACEOF
2217
2218 cat >>confdefs.h <<_ACEOF
2219 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2220 _ACEOF
2221
2222 cat >>confdefs.h <<_ACEOF
2223 #define PACKAGE_STRING "$PACKAGE_STRING"
2224 _ACEOF
2225
2226 cat >>confdefs.h <<_ACEOF
2227 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2228 _ACEOF
2229
2230 cat >>confdefs.h <<_ACEOF
2231 #define PACKAGE_URL "$PACKAGE_URL"
2232 _ACEOF
2233
2234
2235 # Let the site file select an alternate cache file if it wants to.
2236 # Prefer an explicitly selected file to automatically selected ones.
2237 ac_site_file1=NONE
2238 ac_site_file2=NONE
2239 if test -n "$CONFIG_SITE"; then
2240 # We do not want a PATH search for config.site.
2241 case $CONFIG_SITE in #((
2242 -*) ac_site_file1=./$CONFIG_SITE;;
2243 */*) ac_site_file1=$CONFIG_SITE;;
2244 *) ac_site_file1=./$CONFIG_SITE;;
2245 esac
2246 elif test "x$prefix" != xNONE; then
2247 ac_site_file1=$prefix/share/config.site
2248 ac_site_file2=$prefix/etc/config.site
2249 else
2250 ac_site_file1=$ac_default_prefix/share/config.site
2251 ac_site_file2=$ac_default_prefix/etc/config.site
2252 fi
2253 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2254 do
2255 test "x$ac_site_file" = xNONE && continue
2256 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2257 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2258 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2259 sed 's/^/| /' "$ac_site_file" >&5
2260 . "$ac_site_file" \
2261 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2262 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2263 as_fn_error $? "failed to load site script $ac_site_file
2264 See \`config.log' for more details" "$LINENO" 5; }
2265 fi
2266 done
2267
2268 if test -r "$cache_file"; then
2269 # Some versions of bash will fail to source /dev/null (special files
2270 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2271 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2272 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2273 $as_echo "$as_me: loading cache $cache_file" >&6;}
2274 case $cache_file in
2275 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2276 *) . "./$cache_file";;
2277 esac
2278 fi
2279 else
2280 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2281 $as_echo "$as_me: creating cache $cache_file" >&6;}
2282 >$cache_file
2283 fi
2284
2285 # Check that the precious variables saved in the cache have kept the same
2286 # value.
2287 ac_cache_corrupted=false
2288 for ac_var in $ac_precious_vars; do
2289 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2290 eval ac_new_set=\$ac_env_${ac_var}_set
2291 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2292 eval ac_new_val=\$ac_env_${ac_var}_value
2293 case $ac_old_set,$ac_new_set in
2294 set,)
2295 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2296 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2297 ac_cache_corrupted=: ;;
2298 ,set)
2299 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2300 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2301 ac_cache_corrupted=: ;;
2302 ,);;
2303 *)
2304 if test "x$ac_old_val" != "x$ac_new_val"; then
2305 # differences in whitespace do not lead to failure.
2306 ac_old_val_w=`echo x $ac_old_val`
2307 ac_new_val_w=`echo x $ac_new_val`
2308 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2309 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2310 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2311 ac_cache_corrupted=:
2312 else
2313 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2314 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2315 eval $ac_var=\$ac_old_val
2316 fi
2317 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2318 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2319 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2320 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2321 fi;;
2322 esac
2323 # Pass precious variables to config.status.
2324 if test "$ac_new_set" = set; then
2325 case $ac_new_val in
2326 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2327 *) ac_arg=$ac_var=$ac_new_val ;;
2328 esac
2329 case " $ac_configure_args " in
2330 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2331 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2332 esac
2333 fi
2334 done
2335 if $ac_cache_corrupted; then
2336 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2337 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2338 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2339 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2340 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2341 fi
2342 ## -------------------- ##
2343 ## Main body of script. ##
2344 ## -------------------- ##
2345
2346 ac_ext=c
2347 ac_cpp='$CPP $CPPFLAGS'
2348 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2349 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2350 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2351
2352
2353
2354 ac_config_headers="$ac_config_headers config.h"
2355
2356 ac_aux_dir=
2357 for ac_dir in . "$srcdir"/.; do
2358 if test -f "$ac_dir/install-sh"; then
2359 ac_aux_dir=$ac_dir
2360 ac_install_sh="$ac_aux_dir/install-sh -c"
2361 break
2362 elif test -f "$ac_dir/install.sh"; then
2363 ac_aux_dir=$ac_dir
2364 ac_install_sh="$ac_aux_dir/install.sh -c"
2365 break
2366 elif test -f "$ac_dir/shtool"; then
2367 ac_aux_dir=$ac_dir
2368 ac_install_sh="$ac_aux_dir/shtool install -c"
2369 break
2370 fi
2371 done
2372 if test -z "$ac_aux_dir"; then
2373 as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5
2374 fi
2375
2376 # These three variables are undocumented and unsupported,
2377 # and are intended to be withdrawn in a future Autoconf release.
2378 # They can cause serious problems if a builder's source tree is in a directory
2379 # whose full name contains unusual characters.
2380 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2381 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2382 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2383
2384
2385
2386 # Initialize Automake
2387 am__api_version='1.15'
2388
2389 # Find a good install program. We prefer a C program (faster),
2390 # so one script is as good as another. But avoid the broken or
2391 # incompatible versions:
2392 # SysV /etc/install, /usr/sbin/install
2393 # SunOS /usr/etc/install
2394 # IRIX /sbin/install
2395 # AIX /bin/install
2396 # AmigaOS /C/install, which installs bootblocks on floppy discs
2397 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2398 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2399 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2400 # OS/2's system install, which has a completely different semantic
2401 # ./install, which can be erroneously created by make from ./install.sh.
2402 # Reject install programs that cannot install multiple files.
2403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2404 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2405 if test -z "$INSTALL"; then
2406 if ${ac_cv_path_install+:} false; then :
2407 $as_echo_n "(cached) " >&6
2408 else
2409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2410 for as_dir in $PATH
2411 do
2412 IFS=$as_save_IFS
2413 test -z "$as_dir" && as_dir=.
2414 # Account for people who put trailing slashes in PATH elements.
2415 case $as_dir/ in #((
2416 ./ | .// | /[cC]/* | \
2417 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2418 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2419 /usr/ucb/* ) ;;
2420 *)
2421 # OSF1 and SCO ODT 3.0 have their own names for install.
2422 # Don't use installbsd from OSF since it installs stuff as root
2423 # by default.
2424 for ac_prog in ginstall scoinst install; do
2425 for ac_exec_ext in '' $ac_executable_extensions; do
2426 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2427 if test $ac_prog = install &&
2428 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2429 # AIX install. It has an incompatible calling convention.
2430 :
2431 elif test $ac_prog = install &&
2432 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2433 # program-specific install script used by HP pwplus--don't use.
2434 :
2435 else
2436 rm -rf conftest.one conftest.two conftest.dir
2437 echo one > conftest.one
2438 echo two > conftest.two
2439 mkdir conftest.dir
2440 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2441 test -s conftest.one && test -s conftest.two &&
2442 test -s conftest.dir/conftest.one &&
2443 test -s conftest.dir/conftest.two
2444 then
2445 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2446 break 3
2447 fi
2448 fi
2449 fi
2450 done
2451 done
2452 ;;
2453 esac
2454
2455 done
2456 IFS=$as_save_IFS
2457
2458 rm -rf conftest.one conftest.two conftest.dir
2459
2460 fi
2461 if test "${ac_cv_path_install+set}" = set; then
2462 INSTALL=$ac_cv_path_install
2463 else
2464 # As a last resort, use the slow shell script. Don't cache a
2465 # value for INSTALL within a source directory, because that will
2466 # break other packages using the cache if that directory is
2467 # removed, or if the value is a relative name.
2468 INSTALL=$ac_install_sh
2469 fi
2470 fi
2471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2472 $as_echo "$INSTALL" >&6; }
2473
2474 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2475 # It thinks the first close brace ends the variable substitution.
2476 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2477
2478 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2479
2480 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2481
2482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2483 $as_echo_n "checking whether build environment is sane... " >&6; }
2484 # Reject unsafe characters in $srcdir or the absolute working directory
2485 # name. Accept space and tab only in the latter.
2486 am_lf='
2487 '
2488 case `pwd` in
2489 *[\\\"\#\$\&\'\`$am_lf]*)
2490 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2491 esac
2492 case $srcdir in
2493 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2494 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2495 esac
2496
2497 # Do 'set' in a subshell so we don't clobber the current shell's
2498 # arguments. Must try -L first in case configure is actually a
2499 # symlink; some systems play weird games with the mod time of symlinks
2500 # (eg FreeBSD returns the mod time of the symlink's containing
2501 # directory).
2502 if (
2503 am_has_slept=no
2504 for am_try in 1 2; do
2505 echo "timestamp, slept: $am_has_slept" > conftest.file
2506 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2507 if test "$*" = "X"; then
2508 # -L didn't work.
2509 set X `ls -t "$srcdir/configure" conftest.file`
2510 fi
2511 if test "$*" != "X $srcdir/configure conftest.file" \
2512 && test "$*" != "X conftest.file $srcdir/configure"; then
2513
2514 # If neither matched, then we have a broken ls. This can happen
2515 # if, for instance, CONFIG_SHELL is bash and it inherits a
2516 # broken ls alias from the environment. This has actually
2517 # happened. Such a system could not be considered "sane".
2518 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2519 alias in your environment" "$LINENO" 5
2520 fi
2521 if test "$2" = conftest.file || test $am_try -eq 2; then
2522 break
2523 fi
2524 # Just in case.
2525 sleep 1
2526 am_has_slept=yes
2527 done
2528 test "$2" = conftest.file
2529 )
2530 then
2531 # Ok.
2532 :
2533 else
2534 as_fn_error $? "newly created file is older than distributed files!
2535 Check your system clock" "$LINENO" 5
2536 fi
2537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2538 $as_echo "yes" >&6; }
2539 # If we didn't sleep, we still need to ensure time stamps of config.status and
2540 # generated files are strictly newer.
2541 am_sleep_pid=
2542 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2543 ( sleep 1 ) &
2544 am_sleep_pid=$!
2545 fi
2546
2547 rm -f conftest.file
2548
2549 test "$program_prefix" != NONE &&
2550 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2551 # Use a double $ so make ignores it.
2552 test "$program_suffix" != NONE &&
2553 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2554 # Double any \ or $.
2555 # By default was `s,x,x', remove it if useless.
2556 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2557 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2558
2559 # Expand $ac_aux_dir to an absolute path.
2560 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2561
2562 if test x"${MISSING+set}" != xset; then
2563 case $am_aux_dir in
2564 *\ * | *\ *)
2565 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2566 *)
2567 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2568 esac
2569 fi
2570 # Use eval to expand $SHELL
2571 if eval "$MISSING --is-lightweight"; then
2572 am_missing_run="$MISSING "
2573 else
2574 am_missing_run=
2575 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2576 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2577 fi
2578
2579 if test x"${install_sh+set}" != xset; then
2580 case $am_aux_dir in
2581 *\ * | *\ *)
2582 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2583 *)
2584 install_sh="\${SHELL} $am_aux_dir/install-sh"
2585 esac
2586 fi
2587
2588 # Installed binaries are usually stripped using 'strip' when the user
2589 # run "make install-strip". However 'strip' might not be the right
2590 # tool to use in cross-compilation environments, therefore Automake
2591 # will honor the 'STRIP' environment variable to overrule this program.
2592 if test "$cross_compiling" != no; then
2593 if test -n "$ac_tool_prefix"; then
2594 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2595 set dummy ${ac_tool_prefix}strip; 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_STRIP+:} false; then :
2599 $as_echo_n "(cached) " >&6
2600 else
2601 if test -n "$STRIP"; then
2602 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2603 else
2604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2605 for as_dir in $PATH
2606 do
2607 IFS=$as_save_IFS
2608 test -z "$as_dir" && as_dir=.
2609 for ac_exec_ext in '' $ac_executable_extensions; do
2610 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2611 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2612 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2613 break 2
2614 fi
2615 done
2616 done
2617 IFS=$as_save_IFS
2618
2619 fi
2620 fi
2621 STRIP=$ac_cv_prog_STRIP
2622 if test -n "$STRIP"; then
2623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2624 $as_echo "$STRIP" >&6; }
2625 else
2626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2627 $as_echo "no" >&6; }
2628 fi
2629
2630
2631 fi
2632 if test -z "$ac_cv_prog_STRIP"; then
2633 ac_ct_STRIP=$STRIP
2634 # Extract the first word of "strip", so it can be a program name with args.
2635 set dummy strip; ac_word=$2
2636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2637 $as_echo_n "checking for $ac_word... " >&6; }
2638 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2639 $as_echo_n "(cached) " >&6
2640 else
2641 if test -n "$ac_ct_STRIP"; then
2642 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2643 else
2644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2645 for as_dir in $PATH
2646 do
2647 IFS=$as_save_IFS
2648 test -z "$as_dir" && as_dir=.
2649 for ac_exec_ext in '' $ac_executable_extensions; do
2650 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2651 ac_cv_prog_ac_ct_STRIP="strip"
2652 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2653 break 2
2654 fi
2655 done
2656 done
2657 IFS=$as_save_IFS
2658
2659 fi
2660 fi
2661 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2662 if test -n "$ac_ct_STRIP"; then
2663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2664 $as_echo "$ac_ct_STRIP" >&6; }
2665 else
2666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2667 $as_echo "no" >&6; }
2668 fi
2669
2670 if test "x$ac_ct_STRIP" = x; then
2671 STRIP=":"
2672 else
2673 case $cross_compiling:$ac_tool_warned in
2674 yes:)
2675 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2676 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2677 ac_tool_warned=yes ;;
2678 esac
2679 STRIP=$ac_ct_STRIP
2680 fi
2681 else
2682 STRIP="$ac_cv_prog_STRIP"
2683 fi
2684
2685 fi
2686 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2687
2688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2689 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2690 if test -z "$MKDIR_P"; then
2691 if ${ac_cv_path_mkdir+:} false; then :
2692 $as_echo_n "(cached) " >&6
2693 else
2694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2695 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2696 do
2697 IFS=$as_save_IFS
2698 test -z "$as_dir" && as_dir=.
2699 for ac_prog in mkdir gmkdir; do
2700 for ac_exec_ext in '' $ac_executable_extensions; do
2701 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2702 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2703 'mkdir (GNU coreutils) '* | \
2704 'mkdir (coreutils) '* | \
2705 'mkdir (fileutils) '4.1*)
2706 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2707 break 3;;
2708 esac
2709 done
2710 done
2711 done
2712 IFS=$as_save_IFS
2713
2714 fi
2715
2716 test -d ./--version && rmdir ./--version
2717 if test "${ac_cv_path_mkdir+set}" = set; then
2718 MKDIR_P="$ac_cv_path_mkdir -p"
2719 else
2720 # As a last resort, use the slow shell script. Don't cache a
2721 # value for MKDIR_P within a source directory, because that will
2722 # break other packages using the cache if that directory is
2723 # removed, or if the value is a relative name.
2724 MKDIR_P="$ac_install_sh -d"
2725 fi
2726 fi
2727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2728 $as_echo "$MKDIR_P" >&6; }
2729
2730 for ac_prog in gawk mawk nawk awk
2731 do
2732 # Extract the first word of "$ac_prog", so it can be a program name with args.
2733 set dummy $ac_prog; ac_word=$2
2734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2735 $as_echo_n "checking for $ac_word... " >&6; }
2736 if ${ac_cv_prog_AWK+:} false; then :
2737 $as_echo_n "(cached) " >&6
2738 else
2739 if test -n "$AWK"; then
2740 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2741 else
2742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2743 for as_dir in $PATH
2744 do
2745 IFS=$as_save_IFS
2746 test -z "$as_dir" && as_dir=.
2747 for ac_exec_ext in '' $ac_executable_extensions; do
2748 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2749 ac_cv_prog_AWK="$ac_prog"
2750 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2751 break 2
2752 fi
2753 done
2754 done
2755 IFS=$as_save_IFS
2756
2757 fi
2758 fi
2759 AWK=$ac_cv_prog_AWK
2760 if test -n "$AWK"; then
2761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2762 $as_echo "$AWK" >&6; }
2763 else
2764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2765 $as_echo "no" >&6; }
2766 fi
2767
2768
2769 test -n "$AWK" && break
2770 done
2771
2772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2773 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2774 set x ${MAKE-make}
2775 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2776 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2777 $as_echo_n "(cached) " >&6
2778 else
2779 cat >conftest.make <<\_ACEOF
2780 SHELL = /bin/sh
2781 all:
2782 @echo '@@@%%%=$(MAKE)=@@@%%%'
2783 _ACEOF
2784 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2785 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2786 *@@@%%%=?*=@@@%%%*)
2787 eval ac_cv_prog_make_${ac_make}_set=yes;;
2788 *)
2789 eval ac_cv_prog_make_${ac_make}_set=no;;
2790 esac
2791 rm -f conftest.make
2792 fi
2793 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2795 $as_echo "yes" >&6; }
2796 SET_MAKE=
2797 else
2798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2799 $as_echo "no" >&6; }
2800 SET_MAKE="MAKE=${MAKE-make}"
2801 fi
2802
2803 rm -rf .tst 2>/dev/null
2804 mkdir .tst 2>/dev/null
2805 if test -d .tst; then
2806 am__leading_dot=.
2807 else
2808 am__leading_dot=_
2809 fi
2810 rmdir .tst 2>/dev/null
2811
2812 # Check whether --enable-silent-rules was given.
2813 if test "${enable_silent_rules+set}" = set; then :
2814 enableval=$enable_silent_rules;
2815 fi
2816
2817 case $enable_silent_rules in # (((
2818 yes) AM_DEFAULT_VERBOSITY=0;;
2819 no) AM_DEFAULT_VERBOSITY=1;;
2820 *) AM_DEFAULT_VERBOSITY=1;;
2821 esac
2822 am_make=${MAKE-make}
2823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2824 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2825 if ${am_cv_make_support_nested_variables+:} false; then :
2826 $as_echo_n "(cached) " >&6
2827 else
2828 if $as_echo 'TRUE=$(BAR$(V))
2829 BAR0=false
2830 BAR1=true
2831 V=1
2832 am__doit:
2833 @$(TRUE)
2834 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2835 am_cv_make_support_nested_variables=yes
2836 else
2837 am_cv_make_support_nested_variables=no
2838 fi
2839 fi
2840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2841 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2842 if test $am_cv_make_support_nested_variables = yes; then
2843 AM_V='$(V)'
2844 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2845 else
2846 AM_V=$AM_DEFAULT_VERBOSITY
2847 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2848 fi
2849 AM_BACKSLASH='\'
2850
2851 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2852 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2853 # is not polluted with repeated "-I."
2854 am__isrc=' -I$(srcdir)'
2855 # test to see if srcdir already configured
2856 if test -f $srcdir/config.status; then
2857 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2858 fi
2859 fi
2860
2861 # test whether we have cygpath
2862 if test -z "$CYGPATH_W"; then
2863 if (cygpath --version) >/dev/null 2>/dev/null; then
2864 CYGPATH_W='cygpath -w'
2865 else
2866 CYGPATH_W=echo
2867 fi
2868 fi
2869
2870
2871 # Define the identity of the package.
2872 PACKAGE='xf86-video-mach64'
2873 VERSION='6.9.5'
2874
2875
2876 cat >>confdefs.h <<_ACEOF
2877 #define PACKAGE "$PACKAGE"
2878 _ACEOF
2879
2880
2881 cat >>confdefs.h <<_ACEOF
2882 #define VERSION "$VERSION"
2883 _ACEOF
2884
2885 # Some tools Automake needs.
2886
2887 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2888
2889
2890 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2891
2892
2893 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2894
2895
2896 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2897
2898
2899 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2900
2901 # For better backward compatibility. To be removed once Automake 1.9.x
2902 # dies out for good. For more background, see:
2903 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2904 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2905 mkdir_p='$(MKDIR_P)'
2906
2907 # We need awk for the "check" target (and possibly the TAP driver). The
2908 # system "awk" is bad on some platforms.
2909 # Always define AMTAR for backward compatibility. Yes, it's still used
2910 # in the wild :-( We should find a proper way to deprecate it ...
2911 AMTAR='$${TAR-tar}'
2912
2913
2914 # We'll loop over all known methods to create a tar archive until one works.
2915 _am_tools='gnutar pax cpio none'
2916
2917 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2918
2919
2920
2921
2922
2923
2924 # POSIX will say in a future version that running "rm -f" with no argument
2925 # is OK; and we want to be able to make that assumption in our Makefile
2926 # recipes. So use an aggressive probe to check that the usage we want is
2927 # actually supported "in the wild" to an acceptable degree.
2928 # See automake bug#10828.
2929 # To make any issue more visible, cause the running configure to be aborted
2930 # by default if the 'rm' program in use doesn't match our expectations; the
2931 # user can still override this though.
2932 if rm -f && rm -fr && rm -rf; then : OK; else
2933 cat >&2 <<'END'
2934 Oops!
2935
2936 Your 'rm' program seems unable to run without file operands specified
2937 on the command line, even when the '-f' option is present. This is contrary
2938 to the behaviour of most rm programs out there, and not conforming with
2939 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2940
2941 Please tell bug-automake@gnu.org about your system, including the value
2942 of your $PATH and any error possibly output before this message. This
2943 can help us improve future automake versions.
2944
2945 END
2946 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2947 echo 'Configuration will proceed anyway, since you have set the' >&2
2948 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2949 echo >&2
2950 else
2951 cat >&2 <<'END'
2952 Aborting the configuration process, to ensure you take notice of the issue.
2953
2954 You can download and install GNU coreutils to get an 'rm' implementation
2955 that behaves properly: <http://www.gnu.org/software/coreutils/>.
2956
2957 If you want to complete the configuration process using your problematic
2958 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2959 to "yes", and re-run configure.
2960
2961 END
2962 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2963 fi
2964 fi
2965
2966
2967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2968 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2969 # Check whether --enable-maintainer-mode was given.
2970 if test "${enable_maintainer_mode+set}" = set; then :
2971 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2972 else
2973 USE_MAINTAINER_MODE=no
2974 fi
2975
2976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2977 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2978 if test $USE_MAINTAINER_MODE = yes; then
2979 MAINTAINER_MODE_TRUE=
2980 MAINTAINER_MODE_FALSE='#'
2981 else
2982 MAINTAINER_MODE_TRUE='#'
2983 MAINTAINER_MODE_FALSE=
2984 fi
2985
2986 MAINT=$MAINTAINER_MODE_TRUE
2987
2988
2989
2990 # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
2991
2992
2993
2994
2995
2996
2997
2998
2999
3000
3001
3002 DEPDIR="${am__leading_dot}deps"
3003
3004 ac_config_commands="$ac_config_commands depfiles"
3005
3006
3007 am_make=${MAKE-make}
3008 cat > confinc << 'END'
3009 am__doit:
3010 @echo this is the am__doit target
3011 .PHONY: am__doit
3012 END
3013 # If we don't find an include directive, just comment out the code.
3014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3015 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3016 am__include="#"
3017 am__quote=
3018 _am_result=none
3019 # First try GNU make style include.
3020 echo "include confinc" > confmf
3021 # Ignore all kinds of additional output from 'make'.
3022 case `$am_make -s -f confmf 2> /dev/null` in #(
3023 *the\ am__doit\ target*)
3024 am__include=include
3025 am__quote=
3026 _am_result=GNU
3027 ;;
3028 esac
3029 # Now try BSD make style include.
3030 if test "$am__include" = "#"; then
3031 echo '.include "confinc"' > confmf
3032 case `$am_make -s -f confmf 2> /dev/null` in #(
3033 *the\ am__doit\ target*)
3034 am__include=.include
3035 am__quote="\""
3036 _am_result=BSD
3037 ;;
3038 esac
3039 fi
3040
3041
3042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3043 $as_echo "$_am_result" >&6; }
3044 rm -f confinc confmf
3045
3046 # Check whether --enable-dependency-tracking was given.
3047 if test "${enable_dependency_tracking+set}" = set; then :
3048 enableval=$enable_dependency_tracking;
3049 fi
3050
3051 if test "x$enable_dependency_tracking" != xno; then
3052 am_depcomp="$ac_aux_dir/depcomp"
3053 AMDEPBACKSLASH='\'
3054 am__nodep='_no'
3055 fi
3056 if test "x$enable_dependency_tracking" != xno; then
3057 AMDEP_TRUE=
3058 AMDEP_FALSE='#'
3059 else
3060 AMDEP_TRUE='#'
3061 AMDEP_FALSE=
3062 fi
3063
3064
3065 ac_ext=c
3066 ac_cpp='$CPP $CPPFLAGS'
3067 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3068 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3069 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3070 if test -n "$ac_tool_prefix"; then
3071 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3072 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3074 $as_echo_n "checking for $ac_word... " >&6; }
3075 if ${ac_cv_prog_CC+:} false; then :
3076 $as_echo_n "(cached) " >&6
3077 else
3078 if test -n "$CC"; then
3079 ac_cv_prog_CC="$CC" # Let the user override the test.
3080 else
3081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3082 for as_dir in $PATH
3083 do
3084 IFS=$as_save_IFS
3085 test -z "$as_dir" && as_dir=.
3086 for ac_exec_ext in '' $ac_executable_extensions; do
3087 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3088 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3089 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3090 break 2
3091 fi
3092 done
3093 done
3094 IFS=$as_save_IFS
3095
3096 fi
3097 fi
3098 CC=$ac_cv_prog_CC
3099 if test -n "$CC"; then
3100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3101 $as_echo "$CC" >&6; }
3102 else
3103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3104 $as_echo "no" >&6; }
3105 fi
3106
3107
3108 fi
3109 if test -z "$ac_cv_prog_CC"; then
3110 ac_ct_CC=$CC
3111 # Extract the first word of "gcc", so it can be a program name with args.
3112 set dummy gcc; ac_word=$2
3113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3114 $as_echo_n "checking for $ac_word... " >&6; }
3115 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3116 $as_echo_n "(cached) " >&6
3117 else
3118 if test -n "$ac_ct_CC"; then
3119 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3120 else
3121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3122 for as_dir in $PATH
3123 do
3124 IFS=$as_save_IFS
3125 test -z "$as_dir" && as_dir=.
3126 for ac_exec_ext in '' $ac_executable_extensions; do
3127 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3128 ac_cv_prog_ac_ct_CC="gcc"
3129 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3130 break 2
3131 fi
3132 done
3133 done
3134 IFS=$as_save_IFS
3135
3136 fi
3137 fi
3138 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3139 if test -n "$ac_ct_CC"; then
3140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3141 $as_echo "$ac_ct_CC" >&6; }
3142 else
3143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3144 $as_echo "no" >&6; }
3145 fi
3146
3147 if test "x$ac_ct_CC" = x; then
3148 CC=""
3149 else
3150 case $cross_compiling:$ac_tool_warned in
3151 yes:)
3152 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3153 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3154 ac_tool_warned=yes ;;
3155 esac
3156 CC=$ac_ct_CC
3157 fi
3158 else
3159 CC="$ac_cv_prog_CC"
3160 fi
3161
3162 if test -z "$CC"; then
3163 if test -n "$ac_tool_prefix"; then
3164 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3165 set dummy ${ac_tool_prefix}cc; ac_word=$2
3166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3167 $as_echo_n "checking for $ac_word... " >&6; }
3168 if ${ac_cv_prog_CC+:} false; then :
3169 $as_echo_n "(cached) " >&6
3170 else
3171 if test -n "$CC"; then
3172 ac_cv_prog_CC="$CC" # Let the user override the test.
3173 else
3174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3175 for as_dir in $PATH
3176 do
3177 IFS=$as_save_IFS
3178 test -z "$as_dir" && as_dir=.
3179 for ac_exec_ext in '' $ac_executable_extensions; do
3180 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3181 ac_cv_prog_CC="${ac_tool_prefix}cc"
3182 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3183 break 2
3184 fi
3185 done
3186 done
3187 IFS=$as_save_IFS
3188
3189 fi
3190 fi
3191 CC=$ac_cv_prog_CC
3192 if test -n "$CC"; then
3193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3194 $as_echo "$CC" >&6; }
3195 else
3196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3197 $as_echo "no" >&6; }
3198 fi
3199
3200
3201 fi
3202 fi
3203 if test -z "$CC"; then
3204 # Extract the first word of "cc", so it can be a program name with args.
3205 set dummy cc; ac_word=$2
3206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3207 $as_echo_n "checking for $ac_word... " >&6; }
3208 if ${ac_cv_prog_CC+:} false; then :
3209 $as_echo_n "(cached) " >&6
3210 else
3211 if test -n "$CC"; then
3212 ac_cv_prog_CC="$CC" # Let the user override the test.
3213 else
3214 ac_prog_rejected=no
3215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3216 for as_dir in $PATH
3217 do
3218 IFS=$as_save_IFS
3219 test -z "$as_dir" && as_dir=.
3220 for ac_exec_ext in '' $ac_executable_extensions; do
3221 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3222 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3223 ac_prog_rejected=yes
3224 continue
3225 fi
3226 ac_cv_prog_CC="cc"
3227 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3228 break 2
3229 fi
3230 done
3231 done
3232 IFS=$as_save_IFS
3233
3234 if test $ac_prog_rejected = yes; then
3235 # We found a bogon in the path, so make sure we never use it.
3236 set dummy $ac_cv_prog_CC
3237 shift
3238 if test $# != 0; then
3239 # We chose a different compiler from the bogus one.
3240 # However, it has the same basename, so the bogon will be chosen
3241 # first if we set CC to just the basename; use the full file name.
3242 shift
3243 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3244 fi
3245 fi
3246 fi
3247 fi
3248 CC=$ac_cv_prog_CC
3249 if test -n "$CC"; then
3250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3251 $as_echo "$CC" >&6; }
3252 else
3253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3254 $as_echo "no" >&6; }
3255 fi
3256
3257
3258 fi
3259 if test -z "$CC"; then
3260 if test -n "$ac_tool_prefix"; then
3261 for ac_prog in cl.exe
3262 do
3263 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3264 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3266 $as_echo_n "checking for $ac_word... " >&6; }
3267 if ${ac_cv_prog_CC+:} false; then :
3268 $as_echo_n "(cached) " >&6
3269 else
3270 if test -n "$CC"; then
3271 ac_cv_prog_CC="$CC" # Let the user override the test.
3272 else
3273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3274 for as_dir in $PATH
3275 do
3276 IFS=$as_save_IFS
3277 test -z "$as_dir" && as_dir=.
3278 for ac_exec_ext in '' $ac_executable_extensions; do
3279 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3280 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3281 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3282 break 2
3283 fi
3284 done
3285 done
3286 IFS=$as_save_IFS
3287
3288 fi
3289 fi
3290 CC=$ac_cv_prog_CC
3291 if test -n "$CC"; then
3292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3293 $as_echo "$CC" >&6; }
3294 else
3295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3296 $as_echo "no" >&6; }
3297 fi
3298
3299
3300 test -n "$CC" && break
3301 done
3302 fi
3303 if test -z "$CC"; then
3304 ac_ct_CC=$CC
3305 for ac_prog in cl.exe
3306 do
3307 # Extract the first word of "$ac_prog", so it can be a program name with args.
3308 set dummy $ac_prog; ac_word=$2
3309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3310 $as_echo_n "checking for $ac_word... " >&6; }
3311 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3312 $as_echo_n "(cached) " >&6
3313 else
3314 if test -n "$ac_ct_CC"; then
3315 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3316 else
3317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3318 for as_dir in $PATH
3319 do
3320 IFS=$as_save_IFS
3321 test -z "$as_dir" && as_dir=.
3322 for ac_exec_ext in '' $ac_executable_extensions; do
3323 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3324 ac_cv_prog_ac_ct_CC="$ac_prog"
3325 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3326 break 2
3327 fi
3328 done
3329 done
3330 IFS=$as_save_IFS
3331
3332 fi
3333 fi
3334 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3335 if test -n "$ac_ct_CC"; then
3336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3337 $as_echo "$ac_ct_CC" >&6; }
3338 else
3339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3340 $as_echo "no" >&6; }
3341 fi
3342
3343
3344 test -n "$ac_ct_CC" && break
3345 done
3346
3347 if test "x$ac_ct_CC" = x; then
3348 CC=""
3349 else
3350 case $cross_compiling:$ac_tool_warned in
3351 yes:)
3352 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3353 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3354 ac_tool_warned=yes ;;
3355 esac
3356 CC=$ac_ct_CC
3357 fi
3358 fi
3359
3360 fi
3361
3362
3363 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3364 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3365 as_fn_error $? "no acceptable C compiler found in \$PATH
3366 See \`config.log' for more details" "$LINENO" 5; }
3367
3368 # Provide some information about the compiler.
3369 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3370 set X $ac_compile
3371 ac_compiler=$2
3372 for ac_option in --version -v -V -qversion; do
3373 { { ac_try="$ac_compiler $ac_option >&5"
3374 case "(($ac_try" in
3375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3376 *) ac_try_echo=$ac_try;;
3377 esac
3378 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3379 $as_echo "$ac_try_echo"; } >&5
3380 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3381 ac_status=$?
3382 if test -s conftest.err; then
3383 sed '10a\
3384 ... rest of stderr output deleted ...
3385 10q' conftest.err >conftest.er1
3386 cat conftest.er1 >&5
3387 fi
3388 rm -f conftest.er1 conftest.err
3389 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3390 test $ac_status = 0; }
3391 done
3392
3393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3394 /* end confdefs.h. */
3395
3396 int
3397 main ()
3398 {
3399
3400 ;
3401 return 0;
3402 }
3403 _ACEOF
3404 ac_clean_files_save=$ac_clean_files
3405 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3406 # Try to create an executable without -o first, disregard a.out.
3407 # It will help us diagnose broken compilers, and finding out an intuition
3408 # of exeext.
3409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3410 $as_echo_n "checking whether the C compiler works... " >&6; }
3411 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3412
3413 # The possible output files:
3414 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3415
3416 ac_rmfiles=
3417 for ac_file in $ac_files
3418 do
3419 case $ac_file in
3420 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3421 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3422 esac
3423 done
3424 rm -f $ac_rmfiles
3425
3426 if { { ac_try="$ac_link_default"
3427 case "(($ac_try" in
3428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3429 *) ac_try_echo=$ac_try;;
3430 esac
3431 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3432 $as_echo "$ac_try_echo"; } >&5
3433 (eval "$ac_link_default") 2>&5
3434 ac_status=$?
3435 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3436 test $ac_status = 0; }; then :
3437 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3438 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3439 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3440 # so that the user can short-circuit this test for compilers unknown to
3441 # Autoconf.
3442 for ac_file in $ac_files ''
3443 do
3444 test -f "$ac_file" || continue
3445 case $ac_file in
3446 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3447 ;;
3448 [ab].out )
3449 # We found the default executable, but exeext='' is most
3450 # certainly right.
3451 break;;
3452 *.* )
3453 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3454 then :; else
3455 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3456 fi
3457 # We set ac_cv_exeext here because the later test for it is not
3458 # safe: cross compilers may not add the suffix if given an `-o'
3459 # argument, so we may need to know it at that point already.
3460 # Even if this section looks crufty: it has the advantage of
3461 # actually working.
3462 break;;
3463 * )
3464 break;;
3465 esac
3466 done
3467 test "$ac_cv_exeext" = no && ac_cv_exeext=
3468
3469 else
3470 ac_file=''
3471 fi
3472 if test -z "$ac_file"; then :
3473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3474 $as_echo "no" >&6; }
3475 $as_echo "$as_me: failed program was:" >&5
3476 sed 's/^/| /' conftest.$ac_ext >&5
3477
3478 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3479 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3480 as_fn_error 77 "C compiler cannot create executables
3481 See \`config.log' for more details" "$LINENO" 5; }
3482 else
3483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3484 $as_echo "yes" >&6; }
3485 fi
3486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3487 $as_echo_n "checking for C compiler default output file name... " >&6; }
3488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3489 $as_echo "$ac_file" >&6; }
3490 ac_exeext=$ac_cv_exeext
3491
3492 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3493 ac_clean_files=$ac_clean_files_save
3494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3495 $as_echo_n "checking for suffix of executables... " >&6; }
3496 if { { ac_try="$ac_link"
3497 case "(($ac_try" in
3498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3499 *) ac_try_echo=$ac_try;;
3500 esac
3501 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3502 $as_echo "$ac_try_echo"; } >&5
3503 (eval "$ac_link") 2>&5
3504 ac_status=$?
3505 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3506 test $ac_status = 0; }; then :
3507 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3508 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3509 # work properly (i.e., refer to `conftest.exe'), while it won't with
3510 # `rm'.
3511 for ac_file in conftest.exe conftest conftest.*; do
3512 test -f "$ac_file" || continue
3513 case $ac_file in
3514 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3515 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3516 break;;
3517 * ) break;;
3518 esac
3519 done
3520 else
3521 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3522 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3523 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3524 See \`config.log' for more details" "$LINENO" 5; }
3525 fi
3526 rm -f conftest conftest$ac_cv_exeext
3527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3528 $as_echo "$ac_cv_exeext" >&6; }
3529
3530 rm -f conftest.$ac_ext
3531 EXEEXT=$ac_cv_exeext
3532 ac_exeext=$EXEEXT
3533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3534 /* end confdefs.h. */
3535 #include <stdio.h>
3536 int
3537 main ()
3538 {
3539 FILE *f = fopen ("conftest.out", "w");
3540 return ferror (f) || fclose (f) != 0;
3541
3542 ;
3543 return 0;
3544 }
3545 _ACEOF
3546 ac_clean_files="$ac_clean_files conftest.out"
3547 # Check that the compiler produces executables we can run. If not, either
3548 # the compiler is broken, or we cross compile.
3549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3550 $as_echo_n "checking whether we are cross compiling... " >&6; }
3551 if test "$cross_compiling" != yes; then
3552 { { ac_try="$ac_link"
3553 case "(($ac_try" in
3554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3555 *) ac_try_echo=$ac_try;;
3556 esac
3557 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3558 $as_echo "$ac_try_echo"; } >&5
3559 (eval "$ac_link") 2>&5
3560 ac_status=$?
3561 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3562 test $ac_status = 0; }
3563 if { ac_try='./conftest$ac_cv_exeext'
3564 { { case "(($ac_try" in
3565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3566 *) ac_try_echo=$ac_try;;
3567 esac
3568 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3569 $as_echo "$ac_try_echo"; } >&5
3570 (eval "$ac_try") 2>&5
3571 ac_status=$?
3572 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3573 test $ac_status = 0; }; }; then
3574 cross_compiling=no
3575 else
3576 if test "$cross_compiling" = maybe; then
3577 cross_compiling=yes
3578 else
3579 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3580 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3581 as_fn_error $? "cannot run C compiled programs.
3582 If you meant to cross compile, use \`--host'.
3583 See \`config.log' for more details" "$LINENO" 5; }
3584 fi
3585 fi
3586 fi
3587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3588 $as_echo "$cross_compiling" >&6; }
3589
3590 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3591 ac_clean_files=$ac_clean_files_save
3592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3593 $as_echo_n "checking for suffix of object files... " >&6; }
3594 if ${ac_cv_objext+:} false; then :
3595 $as_echo_n "(cached) " >&6
3596 else
3597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3598 /* end confdefs.h. */
3599
3600 int
3601 main ()
3602 {
3603
3604 ;
3605 return 0;
3606 }
3607 _ACEOF
3608 rm -f conftest.o conftest.obj
3609 if { { ac_try="$ac_compile"
3610 case "(($ac_try" in
3611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3612 *) ac_try_echo=$ac_try;;
3613 esac
3614 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3615 $as_echo "$ac_try_echo"; } >&5
3616 (eval "$ac_compile") 2>&5
3617 ac_status=$?
3618 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3619 test $ac_status = 0; }; then :
3620 for ac_file in conftest.o conftest.obj conftest.*; do
3621 test -f "$ac_file" || continue;
3622 case $ac_file in
3623 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3624 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3625 break;;
3626 esac
3627 done
3628 else
3629 $as_echo "$as_me: failed program was:" >&5
3630 sed 's/^/| /' conftest.$ac_ext >&5
3631
3632 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3633 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3634 as_fn_error $? "cannot compute suffix of object files: cannot compile
3635 See \`config.log' for more details" "$LINENO" 5; }
3636 fi
3637 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3638 fi
3639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3640 $as_echo "$ac_cv_objext" >&6; }
3641 OBJEXT=$ac_cv_objext
3642 ac_objext=$OBJEXT
3643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3644 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3645 if ${ac_cv_c_compiler_gnu+:} false; then :
3646 $as_echo_n "(cached) " >&6
3647 else
3648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3649 /* end confdefs.h. */
3650
3651 int
3652 main ()
3653 {
3654 #ifndef __GNUC__
3655 choke me
3656 #endif
3657
3658 ;
3659 return 0;
3660 }
3661 _ACEOF
3662 if ac_fn_c_try_compile "$LINENO"; then :
3663 ac_compiler_gnu=yes
3664 else
3665 ac_compiler_gnu=no
3666 fi
3667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3668 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3669
3670 fi
3671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3672 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3673 if test $ac_compiler_gnu = yes; then
3674 GCC=yes
3675 else
3676 GCC=
3677 fi
3678 ac_test_CFLAGS=${CFLAGS+set}
3679 ac_save_CFLAGS=$CFLAGS
3680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3681 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3682 if ${ac_cv_prog_cc_g+:} false; then :
3683 $as_echo_n "(cached) " >&6
3684 else
3685 ac_save_c_werror_flag=$ac_c_werror_flag
3686 ac_c_werror_flag=yes
3687 ac_cv_prog_cc_g=no
3688 CFLAGS="-g"
3689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3690 /* end confdefs.h. */
3691
3692 int
3693 main ()
3694 {
3695
3696 ;
3697 return 0;
3698 }
3699 _ACEOF
3700 if ac_fn_c_try_compile "$LINENO"; then :
3701 ac_cv_prog_cc_g=yes
3702 else
3703 CFLAGS=""
3704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3705 /* end confdefs.h. */
3706
3707 int
3708 main ()
3709 {
3710
3711 ;
3712 return 0;
3713 }
3714 _ACEOF
3715 if ac_fn_c_try_compile "$LINENO"; then :
3716
3717 else
3718 ac_c_werror_flag=$ac_save_c_werror_flag
3719 CFLAGS="-g"
3720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3721 /* end confdefs.h. */
3722
3723 int
3724 main ()
3725 {
3726
3727 ;
3728 return 0;
3729 }
3730 _ACEOF
3731 if ac_fn_c_try_compile "$LINENO"; then :
3732 ac_cv_prog_cc_g=yes
3733 fi
3734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3735 fi
3736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3737 fi
3738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3739 ac_c_werror_flag=$ac_save_c_werror_flag
3740 fi
3741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3742 $as_echo "$ac_cv_prog_cc_g" >&6; }
3743 if test "$ac_test_CFLAGS" = set; then
3744 CFLAGS=$ac_save_CFLAGS
3745 elif test $ac_cv_prog_cc_g = yes; then
3746 if test "$GCC" = yes; then
3747 CFLAGS="-g -O2"
3748 else
3749 CFLAGS="-g"
3750 fi
3751 else
3752 if test "$GCC" = yes; then
3753 CFLAGS="-O2"
3754 else
3755 CFLAGS=
3756 fi
3757 fi
3758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3759 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3760 if ${ac_cv_prog_cc_c89+:} false; then :
3761 $as_echo_n "(cached) " >&6
3762 else
3763 ac_cv_prog_cc_c89=no
3764 ac_save_CC=$CC
3765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3766 /* end confdefs.h. */
3767 #include <stdarg.h>
3768 #include <stdio.h>
3769 struct stat;
3770 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3771 struct buf { int x; };
3772 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3773 static char *e (p, i)
3774 char **p;
3775 int i;
3776 {
3777 return p[i];
3778 }
3779 static char *f (char * (*g) (char **, int), char **p, ...)
3780 {
3781 char *s;
3782 va_list v;
3783 va_start (v,p);
3784 s = g (p, va_arg (v,int));
3785 va_end (v);
3786 return s;
3787 }
3788
3789 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3790 function prototypes and stuff, but not '\xHH' hex character constants.
3791 These don't provoke an error unfortunately, instead are silently treated
3792 as 'x'. The following induces an error, until -std is added to get
3793 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3794 array size at least. It's necessary to write '\x00'==0 to get something
3795 that's true only with -std. */
3796 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3797
3798 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3799 inside strings and character constants. */
3800 #define FOO(x) 'x'
3801 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3802
3803 int test (int i, double x);
3804 struct s1 {int (*f) (int a);};
3805 struct s2 {int (*f) (double a);};
3806 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3807 int argc;
3808 char **argv;
3809 int
3810 main ()
3811 {
3812 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3813 ;
3814 return 0;
3815 }
3816 _ACEOF
3817 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3818 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3819 do
3820 CC="$ac_save_CC $ac_arg"
3821 if ac_fn_c_try_compile "$LINENO"; then :
3822 ac_cv_prog_cc_c89=$ac_arg
3823 fi
3824 rm -f core conftest.err conftest.$ac_objext
3825 test "x$ac_cv_prog_cc_c89" != "xno" && break
3826 done
3827 rm -f conftest.$ac_ext
3828 CC=$ac_save_CC
3829
3830 fi
3831 # AC_CACHE_VAL
3832 case "x$ac_cv_prog_cc_c89" in
3833 x)
3834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3835 $as_echo "none needed" >&6; } ;;
3836 xno)
3837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3838 $as_echo "unsupported" >&6; } ;;
3839 *)
3840 CC="$CC $ac_cv_prog_cc_c89"
3841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3842 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3843 esac
3844 if test "x$ac_cv_prog_cc_c89" != xno; then :
3845
3846 fi
3847
3848 ac_ext=c
3849 ac_cpp='$CPP $CPPFLAGS'
3850 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3851 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3852 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3853
3854 ac_ext=c
3855 ac_cpp='$CPP $CPPFLAGS'
3856 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3857 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3858 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3860 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3861 if ${am_cv_prog_cc_c_o+:} false; then :
3862 $as_echo_n "(cached) " >&6
3863 else
3864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3865 /* end confdefs.h. */
3866
3867 int
3868 main ()
3869 {
3870
3871 ;
3872 return 0;
3873 }
3874 _ACEOF
3875 # Make sure it works both with $CC and with simple cc.
3876 # Following AC_PROG_CC_C_O, we do the test twice because some
3877 # compilers refuse to overwrite an existing .o file with -o,
3878 # though they will create one.
3879 am_cv_prog_cc_c_o=yes
3880 for am_i in 1 2; do
3881 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3882 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3883 ac_status=$?
3884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3885 (exit $ac_status); } \
3886 && test -f conftest2.$ac_objext; then
3887 : OK
3888 else
3889 am_cv_prog_cc_c_o=no
3890 break
3891 fi
3892 done
3893 rm -f core conftest*
3894 unset am_i
3895 fi
3896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3897 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3898 if test "$am_cv_prog_cc_c_o" != yes; then
3899 # Losing compiler, so override with the script.
3900 # FIXME: It is wrong to rewrite CC.
3901 # But if we don't then we get into trouble of one sort or another.
3902 # A longer-term fix would be to have automake use am__CC in this case,
3903 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3904 CC="$am_aux_dir/compile $CC"
3905 fi
3906 ac_ext=c
3907 ac_cpp='$CPP $CPPFLAGS'
3908 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3909 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3910 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3911
3912
3913 depcc="$CC" am_compiler_list=
3914
3915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3916 $as_echo_n "checking dependency style of $depcc... " >&6; }
3917 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3918 $as_echo_n "(cached) " >&6
3919 else
3920 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3921 # We make a subdir and do the tests there. Otherwise we can end up
3922 # making bogus files that we don't know about and never remove. For
3923 # instance it was reported that on HP-UX the gcc test will end up
3924 # making a dummy file named 'D' -- because '-MD' means "put the output
3925 # in D".
3926 rm -rf conftest.dir
3927 mkdir conftest.dir
3928 # Copy depcomp to subdir because otherwise we won't find it if we're
3929 # using a relative directory.
3930 cp "$am_depcomp" conftest.dir
3931 cd conftest.dir
3932 # We will build objects and dependencies in a subdirectory because
3933 # it helps to detect inapplicable dependency modes. For instance
3934 # both Tru64's cc and ICC support -MD to output dependencies as a
3935 # side effect of compilation, but ICC will put the dependencies in
3936 # the current directory while Tru64 will put them in the object
3937 # directory.
3938 mkdir sub
3939
3940 am_cv_CC_dependencies_compiler_type=none
3941 if test "$am_compiler_list" = ""; then
3942 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3943 fi
3944 am__universal=false
3945 case " $depcc " in #(
3946 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3947 esac
3948
3949 for depmode in $am_compiler_list; do
3950 # Setup a source with many dependencies, because some compilers
3951 # like to wrap large dependency lists on column 80 (with \), and
3952 # we should not choose a depcomp mode which is confused by this.
3953 #
3954 # We need to recreate these files for each test, as the compiler may
3955 # overwrite some of them when testing with obscure command lines.
3956 # This happens at least with the AIX C compiler.
3957 : > sub/conftest.c
3958 for i in 1 2 3 4 5 6; do
3959 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3960 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3961 # Solaris 10 /bin/sh.
3962 echo '/* dummy */' > sub/conftst$i.h
3963 done
3964 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3965
3966 # We check with '-c' and '-o' for the sake of the "dashmstdout"
3967 # mode. It turns out that the SunPro C++ compiler does not properly
3968 # handle '-M -o', and we need to detect this. Also, some Intel
3969 # versions had trouble with output in subdirs.
3970 am__obj=sub/conftest.${OBJEXT-o}
3971 am__minus_obj="-o $am__obj"
3972 case $depmode in
3973 gcc)
3974 # This depmode causes a compiler race in universal mode.
3975 test "$am__universal" = false || continue
3976 ;;
3977 nosideeffect)
3978 # After this tag, mechanisms are not by side-effect, so they'll
3979 # only be used when explicitly requested.
3980 if test "x$enable_dependency_tracking" = xyes; then
3981 continue
3982 else
3983 break
3984 fi
3985 ;;
3986 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3987 # This compiler won't grok '-c -o', but also, the minuso test has
3988 # not run yet. These depmodes are late enough in the game, and
3989 # so weak that their functioning should not be impacted.
3990 am__obj=conftest.${OBJEXT-o}
3991 am__minus_obj=
3992 ;;
3993 none) break ;;
3994 esac
3995 if depmode=$depmode \
3996 source=sub/conftest.c object=$am__obj \
3997 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3998 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3999 >/dev/null 2>conftest.err &&
4000 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4001 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4002 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4003 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4004 # icc doesn't choke on unknown options, it will just issue warnings
4005 # or remarks (even with -Werror). So we grep stderr for any message
4006 # that says an option was ignored or not supported.
4007 # When given -MP, icc 7.0 and 7.1 complain thusly:
4008 # icc: Command line warning: ignoring option '-M'; no argument required
4009 # The diagnosis changed in icc 8.0:
4010 # icc: Command line remark: option '-MP' not supported
4011 if (grep 'ignoring option' conftest.err ||
4012 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4013 am_cv_CC_dependencies_compiler_type=$depmode
4014 break
4015 fi
4016 fi
4017 done
4018
4019 cd ..
4020 rm -rf conftest.dir
4021 else
4022 am_cv_CC_dependencies_compiler_type=none
4023 fi
4024
4025 fi
4026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4027 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4028 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4029
4030 if
4031 test "x$enable_dependency_tracking" != xno \
4032 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4033 am__fastdepCC_TRUE=
4034 am__fastdepCC_FALSE='#'
4035 else
4036 am__fastdepCC_TRUE='#'
4037 am__fastdepCC_FALSE=
4038 fi
4039
4040
4041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4042 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4043 if ${ac_cv_prog_cc_c99+:} false; then :
4044 $as_echo_n "(cached) " >&6
4045 else
4046 ac_cv_prog_cc_c99=no
4047 ac_save_CC=$CC
4048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4049 /* end confdefs.h. */
4050 #include <stdarg.h>
4051 #include <stdbool.h>
4052 #include <stdlib.h>
4053 #include <wchar.h>
4054 #include <stdio.h>
4055
4056 // Check varargs macros. These examples are taken from C99 6.10.3.5.
4057 #define debug(...) fprintf (stderr, __VA_ARGS__)
4058 #define showlist(...) puts (#__VA_ARGS__)
4059 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4060 static void
4061 test_varargs_macros (void)
4062 {
4063 int x = 1234;
4064 int y = 5678;
4065 debug ("Flag");
4066 debug ("X = %d\n", x);
4067 showlist (The first, second, and third items.);
4068 report (x>y, "x is %d but y is %d", x, y);
4069 }
4070
4071 // Check long long types.
4072 #define BIG64 18446744073709551615ull
4073 #define BIG32 4294967295ul
4074 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4075 #if !BIG_OK
4076 your preprocessor is broken;
4077 #endif
4078 #if BIG_OK
4079 #else
4080 your preprocessor is broken;
4081 #endif
4082 static long long int bignum = -9223372036854775807LL;
4083 static unsigned long long int ubignum = BIG64;
4084
4085 struct incomplete_array
4086 {
4087 int datasize;
4088 double data[];
4089 };
4090
4091 struct named_init {
4092 int number;
4093 const wchar_t *name;
4094 double average;
4095 };
4096
4097 typedef const char *ccp;
4098
4099 static inline int
4100 test_restrict (ccp restrict text)
4101 {
4102 // See if C++-style comments work.
4103 // Iterate through items via the restricted pointer.
4104 // Also check for declarations in for loops.
4105 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4106 continue;
4107 return 0;
4108 }
4109
4110 // Check varargs and va_copy.
4111 static void
4112 test_varargs (const char *format, ...)
4113 {
4114 va_list args;
4115 va_start (args, format);
4116 va_list args_copy;
4117 va_copy (args_copy, args);
4118
4119 const char *str;
4120 int number;
4121 float fnumber;
4122
4123 while (*format)
4124 {
4125 switch (*format++)
4126 {
4127 case 's': // string
4128 str = va_arg (args_copy, const char *);
4129 break;
4130 case 'd': // int
4131 number = va_arg (args_copy, int);
4132 break;
4133 case 'f': // float
4134 fnumber = va_arg (args_copy, double);
4135 break;
4136 default:
4137 break;
4138 }
4139 }
4140 va_end (args_copy);
4141 va_end (args);
4142 }
4143
4144 int
4145 main ()
4146 {
4147
4148 // Check bool.
4149 _Bool success = false;
4150
4151 // Check restrict.
4152 if (test_restrict ("String literal") == 0)
4153 success = true;
4154 char *restrict newvar = "Another string";
4155
4156 // Check varargs.
4157 test_varargs ("s, d' f .", "string", 65, 34.234);
4158 test_varargs_macros ();
4159
4160 // Check flexible array members.
4161 struct incomplete_array *ia =
4162 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4163 ia->datasize = 10;
4164 for (int i = 0; i < ia->datasize; ++i)
4165 ia->data[i] = i * 1.234;
4166
4167 // Check named initializers.
4168 struct named_init ni = {
4169 .number = 34,
4170 .name = L"Test wide string",
4171 .average = 543.34343,
4172 };
4173
4174 ni.number = 58;
4175
4176 int dynamic_array[ni.number];
4177 dynamic_array[ni.number - 1] = 543;
4178
4179 // work around unused variable warnings
4180 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4181 || dynamic_array[ni.number - 1] != 543);
4182
4183 ;
4184 return 0;
4185 }
4186 _ACEOF
4187 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
4188 do
4189 CC="$ac_save_CC $ac_arg"
4190 if ac_fn_c_try_compile "$LINENO"; then :
4191 ac_cv_prog_cc_c99=$ac_arg
4192 fi
4193 rm -f core conftest.err conftest.$ac_objext
4194 test "x$ac_cv_prog_cc_c99" != "xno" && break
4195 done
4196 rm -f conftest.$ac_ext
4197 CC=$ac_save_CC
4198
4199 fi
4200 # AC_CACHE_VAL
4201 case "x$ac_cv_prog_cc_c99" in
4202 x)
4203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4204 $as_echo "none needed" >&6; } ;;
4205 xno)
4206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4207 $as_echo "unsupported" >&6; } ;;
4208 *)
4209 CC="$CC $ac_cv_prog_cc_c99"
4210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4211 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4212 esac
4213 if test "x$ac_cv_prog_cc_c99" != xno; then :
4214
4215 fi
4216
4217
4218
4219 ac_ext=c
4220 ac_cpp='$CPP $CPPFLAGS'
4221 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4222 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4223 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4225 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4226 # On Suns, sometimes $CPP names a directory.
4227 if test -n "$CPP" && test -d "$CPP"; then
4228 CPP=
4229 fi
4230 if test -z "$CPP"; then
4231 if ${ac_cv_prog_CPP+:} false; then :
4232 $as_echo_n "(cached) " >&6
4233 else
4234 # Double quotes because CPP needs to be expanded
4235 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4236 do
4237 ac_preproc_ok=false
4238 for ac_c_preproc_warn_flag in '' yes
4239 do
4240 # Use a header file that comes with gcc, so configuring glibc
4241 # with a fresh cross-compiler works.
4242 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4243 # <limits.h> exists even on freestanding compilers.
4244 # On the NeXT, cc -E runs the code through the compiler's parser,
4245 # not just through cpp. "Syntax error" is here to catch this case.
4246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4247 /* end confdefs.h. */
4248 #ifdef __STDC__
4249 # include <limits.h>
4250 #else
4251 # include <assert.h>
4252 #endif
4253 Syntax error
4254 _ACEOF
4255 if ac_fn_c_try_cpp "$LINENO"; then :
4256
4257 else
4258 # Broken: fails on valid input.
4259 continue
4260 fi
4261 rm -f conftest.err conftest.i conftest.$ac_ext
4262
4263 # OK, works on sane cases. Now check whether nonexistent headers
4264 # can be detected and how.
4265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4266 /* end confdefs.h. */
4267 #include <ac_nonexistent.h>
4268 _ACEOF
4269 if ac_fn_c_try_cpp "$LINENO"; then :
4270 # Broken: success on invalid input.
4271 continue
4272 else
4273 # Passes both tests.
4274 ac_preproc_ok=:
4275 break
4276 fi
4277 rm -f conftest.err conftest.i conftest.$ac_ext
4278
4279 done
4280 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4281 rm -f conftest.i conftest.err conftest.$ac_ext
4282 if $ac_preproc_ok; then :
4283 break
4284 fi
4285
4286 done
4287 ac_cv_prog_CPP=$CPP
4288
4289 fi
4290 CPP=$ac_cv_prog_CPP
4291 else
4292 ac_cv_prog_CPP=$CPP
4293 fi
4294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4295 $as_echo "$CPP" >&6; }
4296 ac_preproc_ok=false
4297 for ac_c_preproc_warn_flag in '' yes
4298 do
4299 # Use a header file that comes with gcc, so configuring glibc
4300 # with a fresh cross-compiler works.
4301 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4302 # <limits.h> exists even on freestanding compilers.
4303 # On the NeXT, cc -E runs the code through the compiler's parser,
4304 # not just through cpp. "Syntax error" is here to catch this case.
4305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4306 /* end confdefs.h. */
4307 #ifdef __STDC__
4308 # include <limits.h>
4309 #else
4310 # include <assert.h>
4311 #endif
4312 Syntax error
4313 _ACEOF
4314 if ac_fn_c_try_cpp "$LINENO"; then :
4315
4316 else
4317 # Broken: fails on valid input.
4318 continue
4319 fi
4320 rm -f conftest.err conftest.i conftest.$ac_ext
4321
4322 # OK, works on sane cases. Now check whether nonexistent headers
4323 # can be detected and how.
4324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4325 /* end confdefs.h. */
4326 #include <ac_nonexistent.h>
4327 _ACEOF
4328 if ac_fn_c_try_cpp "$LINENO"; then :
4329 # Broken: success on invalid input.
4330 continue
4331 else
4332 # Passes both tests.
4333 ac_preproc_ok=:
4334 break
4335 fi
4336 rm -f conftest.err conftest.i conftest.$ac_ext
4337
4338 done
4339 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4340 rm -f conftest.i conftest.err conftest.$ac_ext
4341 if $ac_preproc_ok; then :
4342
4343 else
4344 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4345 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4346 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4347 See \`config.log' for more details" "$LINENO" 5; }
4348 fi
4349
4350 ac_ext=c
4351 ac_cpp='$CPP $CPPFLAGS'
4352 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4353 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4354 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4355
4356
4357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4358 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4359 if ${ac_cv_path_GREP+:} false; then :
4360 $as_echo_n "(cached) " >&6
4361 else
4362 if test -z "$GREP"; then
4363 ac_path_GREP_found=false
4364 # Loop through the user's path and test for each of PROGNAME-LIST
4365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4366 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4367 do
4368 IFS=$as_save_IFS
4369 test -z "$as_dir" && as_dir=.
4370 for ac_prog in grep ggrep; do
4371 for ac_exec_ext in '' $ac_executable_extensions; do
4372 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4373 as_fn_executable_p "$ac_path_GREP" || continue
4374 # Check for GNU ac_path_GREP and select it if it is found.
4375 # Check for GNU $ac_path_GREP
4376 case `"$ac_path_GREP" --version 2>&1` in
4377 *GNU*)
4378 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4379 *)
4380 ac_count=0
4381 $as_echo_n 0123456789 >"conftest.in"
4382 while :
4383 do
4384 cat "conftest.in" "conftest.in" >"conftest.tmp"
4385 mv "conftest.tmp" "conftest.in"
4386 cp "conftest.in" "conftest.nl"
4387 $as_echo 'GREP' >> "conftest.nl"
4388 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4389 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4390 as_fn_arith $ac_count + 1 && ac_count=$as_val
4391 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4392 # Best one so far, save it but keep looking for a better one
4393 ac_cv_path_GREP="$ac_path_GREP"
4394 ac_path_GREP_max=$ac_count
4395 fi
4396 # 10*(2^10) chars as input seems more than enough
4397 test $ac_count -gt 10 && break
4398 done
4399 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4400 esac
4401
4402 $ac_path_GREP_found && break 3
4403 done
4404 done
4405 done
4406 IFS=$as_save_IFS
4407 if test -z "$ac_cv_path_GREP"; then
4408 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4409 fi
4410 else
4411 ac_cv_path_GREP=$GREP
4412 fi
4413
4414 fi
4415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4416 $as_echo "$ac_cv_path_GREP" >&6; }
4417 GREP="$ac_cv_path_GREP"
4418
4419
4420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4421 $as_echo_n "checking for egrep... " >&6; }
4422 if ${ac_cv_path_EGREP+:} false; then :
4423 $as_echo_n "(cached) " >&6
4424 else
4425 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4426 then ac_cv_path_EGREP="$GREP -E"
4427 else
4428 if test -z "$EGREP"; then
4429 ac_path_EGREP_found=false
4430 # Loop through the user's path and test for each of PROGNAME-LIST
4431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4432 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4433 do
4434 IFS=$as_save_IFS
4435 test -z "$as_dir" && as_dir=.
4436 for ac_prog in egrep; do
4437 for ac_exec_ext in '' $ac_executable_extensions; do
4438 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4439 as_fn_executable_p "$ac_path_EGREP" || continue
4440 # Check for GNU ac_path_EGREP and select it if it is found.
4441 # Check for GNU $ac_path_EGREP
4442 case `"$ac_path_EGREP" --version 2>&1` in
4443 *GNU*)
4444 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4445 *)
4446 ac_count=0
4447 $as_echo_n 0123456789 >"conftest.in"
4448 while :
4449 do
4450 cat "conftest.in" "conftest.in" >"conftest.tmp"
4451 mv "conftest.tmp" "conftest.in"
4452 cp "conftest.in" "conftest.nl"
4453 $as_echo 'EGREP' >> "conftest.nl"
4454 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4455 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4456 as_fn_arith $ac_count + 1 && ac_count=$as_val
4457 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4458 # Best one so far, save it but keep looking for a better one
4459 ac_cv_path_EGREP="$ac_path_EGREP"
4460 ac_path_EGREP_max=$ac_count
4461 fi
4462 # 10*(2^10) chars as input seems more than enough
4463 test $ac_count -gt 10 && break
4464 done
4465 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4466 esac
4467
4468 $ac_path_EGREP_found && break 3
4469 done
4470 done
4471 done
4472 IFS=$as_save_IFS
4473 if test -z "$ac_cv_path_EGREP"; then
4474 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4475 fi
4476 else
4477 ac_cv_path_EGREP=$EGREP
4478 fi
4479
4480 fi
4481 fi
4482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4483 $as_echo "$ac_cv_path_EGREP" >&6; }
4484 EGREP="$ac_cv_path_EGREP"
4485
4486
4487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4488 $as_echo_n "checking for ANSI C header files... " >&6; }
4489 if ${ac_cv_header_stdc+:} false; then :
4490 $as_echo_n "(cached) " >&6
4491 else
4492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4493 /* end confdefs.h. */
4494 #include <stdlib.h>
4495 #include <stdarg.h>
4496 #include <string.h>
4497 #include <float.h>
4498
4499 int
4500 main ()
4501 {
4502
4503 ;
4504 return 0;
4505 }
4506 _ACEOF
4507 if ac_fn_c_try_compile "$LINENO"; then :
4508 ac_cv_header_stdc=yes
4509 else
4510 ac_cv_header_stdc=no
4511 fi
4512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4513
4514 if test $ac_cv_header_stdc = yes; then
4515 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4517 /* end confdefs.h. */
4518 #include <string.h>
4519
4520 _ACEOF
4521 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4522 $EGREP "memchr" >/dev/null 2>&1; then :
4523
4524 else
4525 ac_cv_header_stdc=no
4526 fi
4527 rm -f conftest*
4528
4529 fi
4530
4531 if test $ac_cv_header_stdc = yes; then
4532 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4534 /* end confdefs.h. */
4535 #include <stdlib.h>
4536
4537 _ACEOF
4538 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4539 $EGREP "free" >/dev/null 2>&1; then :
4540
4541 else
4542 ac_cv_header_stdc=no
4543 fi
4544 rm -f conftest*
4545
4546 fi
4547
4548 if test $ac_cv_header_stdc = yes; then
4549 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4550 if test "$cross_compiling" = yes; then :
4551 :
4552 else
4553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4554 /* end confdefs.h. */
4555 #include <ctype.h>
4556 #include <stdlib.h>
4557 #if ((' ' & 0x0FF) == 0x020)
4558 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4559 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4560 #else
4561 # define ISLOWER(c) \
4562 (('a' <= (c) && (c) <= 'i') \
4563 || ('j' <= (c) && (c) <= 'r') \
4564 || ('s' <= (c) && (c) <= 'z'))
4565 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4566 #endif
4567
4568 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4569 int
4570 main ()
4571 {
4572 int i;
4573 for (i = 0; i < 256; i++)
4574 if (XOR (islower (i), ISLOWER (i))
4575 || toupper (i) != TOUPPER (i))
4576 return 2;
4577 return 0;
4578 }
4579 _ACEOF
4580 if ac_fn_c_try_run "$LINENO"; then :
4581
4582 else
4583 ac_cv_header_stdc=no
4584 fi
4585 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4586 conftest.$ac_objext conftest.beam conftest.$ac_ext
4587 fi
4588
4589 fi
4590 fi
4591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4592 $as_echo "$ac_cv_header_stdc" >&6; }
4593 if test $ac_cv_header_stdc = yes; then
4594
4595 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4596
4597 fi
4598
4599 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4600 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4601 inttypes.h stdint.h unistd.h
4602 do :
4603 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4604 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4605 "
4606 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4607 cat >>confdefs.h <<_ACEOF
4608 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4609 _ACEOF
4610
4611 fi
4612
4613 done
4614
4615
4616
4617
4618
4619
4620 ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
4621 if test "x$ac_cv_have_decl___clang__" = xyes; then :
4622 CLANGCC="yes"
4623 else
4624 CLANGCC="no"
4625 fi
4626
4627 ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
4628 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
4629 INTELCC="yes"
4630 else
4631 INTELCC="no"
4632 fi
4633
4634 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4635 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
4636 SUNCC="yes"
4637 else
4638 SUNCC="no"
4639 fi
4640
4641
4642
4643
4644
4645
4646
4647
4648
4649 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4650 if test -n "$ac_tool_prefix"; then
4651 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4652 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4654 $as_echo_n "checking for $ac_word... " >&6; }
4655 if ${ac_cv_path_PKG_CONFIG+:} false; then :
4656 $as_echo_n "(cached) " >&6
4657 else
4658 case $PKG_CONFIG in
4659 [\\/]* | ?:[\\/]*)
4660 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4661 ;;
4662 *)
4663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4664 for as_dir in $PATH
4665 do
4666 IFS=$as_save_IFS
4667 test -z "$as_dir" && as_dir=.
4668 for ac_exec_ext in '' $ac_executable_extensions; do
4669 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4670 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4671 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4672 break 2
4673 fi
4674 done
4675 done
4676 IFS=$as_save_IFS
4677
4678 ;;
4679 esac
4680 fi
4681 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4682 if test -n "$PKG_CONFIG"; then
4683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4684 $as_echo "$PKG_CONFIG" >&6; }
4685 else
4686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4687 $as_echo "no" >&6; }
4688 fi
4689
4690
4691 fi
4692 if test -z "$ac_cv_path_PKG_CONFIG"; then
4693 ac_pt_PKG_CONFIG=$PKG_CONFIG
4694 # Extract the first word of "pkg-config", so it can be a program name with args.
4695 set dummy pkg-config; ac_word=$2
4696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4697 $as_echo_n "checking for $ac_word... " >&6; }
4698 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4699 $as_echo_n "(cached) " >&6
4700 else
4701 case $ac_pt_PKG_CONFIG in
4702 [\\/]* | ?:[\\/]*)
4703 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4704 ;;
4705 *)
4706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4707 for as_dir in $PATH
4708 do
4709 IFS=$as_save_IFS
4710 test -z "$as_dir" && as_dir=.
4711 for ac_exec_ext in '' $ac_executable_extensions; do
4712 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4713 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4714 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4715 break 2
4716 fi
4717 done
4718 done
4719 IFS=$as_save_IFS
4720
4721 ;;
4722 esac
4723 fi
4724 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4725 if test -n "$ac_pt_PKG_CONFIG"; then
4726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4727 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
4728 else
4729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4730 $as_echo "no" >&6; }
4731 fi
4732
4733 if test "x$ac_pt_PKG_CONFIG" = x; then
4734 PKG_CONFIG=""
4735 else
4736 case $cross_compiling:$ac_tool_warned in
4737 yes:)
4738 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4739 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4740 ac_tool_warned=yes ;;
4741 esac
4742 PKG_CONFIG=$ac_pt_PKG_CONFIG
4743 fi
4744 else
4745 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4746 fi
4747
4748 fi
4749 if test -n "$PKG_CONFIG"; then
4750 _pkg_min_version=0.9.0
4751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4752 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4753 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4755 $as_echo "yes" >&6; }
4756 else
4757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4758 $as_echo "no" >&6; }
4759 PKG_CONFIG=""
4760 fi
4761 fi
4762 # Make sure we can run config.sub.
4763 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4764 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4765
4766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4767 $as_echo_n "checking build system type... " >&6; }
4768 if ${ac_cv_build+:} false; then :
4769 $as_echo_n "(cached) " >&6
4770 else
4771 ac_build_alias=$build_alias
4772 test "x$ac_build_alias" = x &&
4773 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4774 test "x$ac_build_alias" = x &&
4775 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4776 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4777 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4778
4779 fi
4780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4781 $as_echo "$ac_cv_build" >&6; }
4782 case $ac_cv_build in
4783 *-*-*) ;;
4784 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4785 esac
4786 build=$ac_cv_build
4787 ac_save_IFS=$IFS; IFS='-'
4788 set x $ac_cv_build
4789 shift
4790 build_cpu=$1
4791 build_vendor=$2
4792 shift; shift
4793 # Remember, the first character of IFS is used to create $*,
4794 # except with old shells:
4795 build_os=$*
4796 IFS=$ac_save_IFS
4797 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4798
4799
4800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4801 $as_echo_n "checking host system type... " >&6; }
4802 if ${ac_cv_host+:} false; then :
4803 $as_echo_n "(cached) " >&6
4804 else
4805 if test "x$host_alias" = x; then
4806 ac_cv_host=$ac_cv_build
4807 else
4808 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4809 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4810 fi
4811
4812 fi
4813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4814 $as_echo "$ac_cv_host" >&6; }
4815 case $ac_cv_host in
4816 *-*-*) ;;
4817 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4818 esac
4819 host=$ac_cv_host
4820 ac_save_IFS=$IFS; IFS='-'
4821 set x $ac_cv_host
4822 shift
4823 host_cpu=$1
4824 host_vendor=$2
4825 shift; shift
4826 # Remember, the first character of IFS is used to create $*,
4827 # except with old shells:
4828 host_os=$*
4829 IFS=$ac_save_IFS
4830 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4831
4832
4833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4834 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4835 if ${ac_cv_path_SED+:} false; then :
4836 $as_echo_n "(cached) " >&6
4837 else
4838 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4839 for ac_i in 1 2 3 4 5 6 7; do
4840 ac_script="$ac_script$as_nl$ac_script"
4841 done
4842 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4843 { ac_script=; unset ac_script;}
4844 if test -z "$SED"; then
4845 ac_path_SED_found=false
4846 # Loop through the user's path and test for each of PROGNAME-LIST
4847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4848 for as_dir in $PATH
4849 do
4850 IFS=$as_save_IFS
4851 test -z "$as_dir" && as_dir=.
4852 for ac_prog in sed gsed; do
4853 for ac_exec_ext in '' $ac_executable_extensions; do
4854 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4855 as_fn_executable_p "$ac_path_SED" || continue
4856 # Check for GNU ac_path_SED and select it if it is found.
4857 # Check for GNU $ac_path_SED
4858 case `"$ac_path_SED" --version 2>&1` in
4859 *GNU*)
4860 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4861 *)
4862 ac_count=0
4863 $as_echo_n 0123456789 >"conftest.in"
4864 while :
4865 do
4866 cat "conftest.in" "conftest.in" >"conftest.tmp"
4867 mv "conftest.tmp" "conftest.in"
4868 cp "conftest.in" "conftest.nl"
4869 $as_echo '' >> "conftest.nl"
4870 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4871 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4872 as_fn_arith $ac_count + 1 && ac_count=$as_val
4873 if test $ac_count -gt ${ac_path_SED_max-0}; then
4874 # Best one so far, save it but keep looking for a better one
4875 ac_cv_path_SED="$ac_path_SED"
4876 ac_path_SED_max=$ac_count
4877 fi
4878 # 10*(2^10) chars as input seems more than enough
4879 test $ac_count -gt 10 && break
4880 done
4881 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4882 esac
4883
4884 $ac_path_SED_found && break 3
4885 done
4886 done
4887 done
4888 IFS=$as_save_IFS
4889 if test -z "$ac_cv_path_SED"; then
4890 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4891 fi
4892 else
4893 ac_cv_path_SED=$SED
4894 fi
4895
4896 fi
4897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4898 $as_echo "$ac_cv_path_SED" >&6; }
4899 SED="$ac_cv_path_SED"
4900 rm -f conftest.sed
4901
4902
4903
4904
4905
4906
4907 # Check whether --enable-selective-werror was given.
4908 if test "${enable_selective_werror+set}" = set; then :
4909 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4910 else
4911 SELECTIVE_WERROR=yes
4912 fi
4913
4914
4915
4916
4917
4918 # -v is too short to test reliably with XORG_TESTSET_CFLAG
4919 if test "x$SUNCC" = "xyes"; then
4920 BASE_CFLAGS="-v"
4921 else
4922 BASE_CFLAGS=""
4923 fi
4924
4925 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
4926
4927
4928
4929
4930
4931
4932
4933
4934
4935
4936
4937
4938
4939 xorg_testset_save_CFLAGS="$CFLAGS"
4940
4941 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4942 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4944 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4945 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4946 $as_echo_n "(cached) " >&6
4947 else
4948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4949 /* end confdefs.h. */
4950 int i;
4951 _ACEOF
4952 if ac_fn_c_try_compile "$LINENO"; then :
4953 xorg_cv_cc_flag_unknown_warning_option=yes
4954 else
4955 xorg_cv_cc_flag_unknown_warning_option=no
4956 fi
4957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4958 fi
4959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4960 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4961 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4962 CFLAGS="$xorg_testset_save_CFLAGS"
4963 fi
4964
4965 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4966 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4967 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4968 fi
4969 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4971 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4972 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4973 $as_echo_n "(cached) " >&6
4974 else
4975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4976 /* end confdefs.h. */
4977 int i;
4978 _ACEOF
4979 if ac_fn_c_try_compile "$LINENO"; then :
4980 xorg_cv_cc_flag_unused_command_line_argument=yes
4981 else
4982 xorg_cv_cc_flag_unused_command_line_argument=no
4983 fi
4984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4985 fi
4986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4987 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4988 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4989 CFLAGS="$xorg_testset_save_CFLAGS"
4990 fi
4991
4992 found="no"
4993
4994 if test $found = "no" ; then
4995 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4996 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4997 fi
4998
4999 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5000 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5001 fi
5002
5003 CFLAGS="$CFLAGS -Wall"
5004
5005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
5006 $as_echo_n "checking if $CC supports -Wall... " >&6; }
5007 cacheid=xorg_cv_cc_flag__Wall
5008 if eval \${$cacheid+:} false; then :
5009 $as_echo_n "(cached) " >&6
5010 else
5011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5012 /* end confdefs.h. */
5013 int i;
5014 int
5015 main ()
5016 {
5017
5018 ;
5019 return 0;
5020 }
5021 _ACEOF
5022 if ac_fn_c_try_link "$LINENO"; then :
5023 eval $cacheid=yes
5024 else
5025 eval $cacheid=no
5026 fi
5027 rm -f core conftest.err conftest.$ac_objext \
5028 conftest$ac_exeext conftest.$ac_ext
5029 fi
5030
5031
5032 CFLAGS="$xorg_testset_save_CFLAGS"
5033
5034 eval supported=\$$cacheid
5035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5036 $as_echo "$supported" >&6; }
5037 if test "$supported" = "yes" ; then
5038 BASE_CFLAGS="$BASE_CFLAGS -Wall"
5039 found="yes"
5040 fi
5041 fi
5042
5043
5044
5045
5046
5047
5048
5049
5050
5051
5052
5053
5054
5055
5056
5057 xorg_testset_save_CFLAGS="$CFLAGS"
5058
5059 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5060 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5062 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5063 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5064 $as_echo_n "(cached) " >&6
5065 else
5066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5067 /* end confdefs.h. */
5068 int i;
5069 _ACEOF
5070 if ac_fn_c_try_compile "$LINENO"; then :
5071 xorg_cv_cc_flag_unknown_warning_option=yes
5072 else
5073 xorg_cv_cc_flag_unknown_warning_option=no
5074 fi
5075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5076 fi
5077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5078 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5079 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5080 CFLAGS="$xorg_testset_save_CFLAGS"
5081 fi
5082
5083 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5084 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5085 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5086 fi
5087 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5089 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5090 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5091 $as_echo_n "(cached) " >&6
5092 else
5093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5094 /* end confdefs.h. */
5095 int i;
5096 _ACEOF
5097 if ac_fn_c_try_compile "$LINENO"; then :
5098 xorg_cv_cc_flag_unused_command_line_argument=yes
5099 else
5100 xorg_cv_cc_flag_unused_command_line_argument=no
5101 fi
5102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5103 fi
5104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5105 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5106 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5107 CFLAGS="$xorg_testset_save_CFLAGS"
5108 fi
5109
5110 found="no"
5111
5112 if test $found = "no" ; then
5113 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5114 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5115 fi
5116
5117 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5118 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5119 fi
5120
5121 CFLAGS="$CFLAGS -Wpointer-arith"
5122
5123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
5124 $as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
5125 cacheid=xorg_cv_cc_flag__Wpointer_arith
5126 if eval \${$cacheid+:} false; then :
5127 $as_echo_n "(cached) " >&6
5128 else
5129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5130 /* end confdefs.h. */
5131 int i;
5132 int
5133 main ()
5134 {
5135
5136 ;
5137 return 0;
5138 }
5139 _ACEOF
5140 if ac_fn_c_try_link "$LINENO"; then :
5141 eval $cacheid=yes
5142 else
5143 eval $cacheid=no
5144 fi
5145 rm -f core conftest.err conftest.$ac_objext \
5146 conftest$ac_exeext conftest.$ac_ext
5147 fi
5148
5149
5150 CFLAGS="$xorg_testset_save_CFLAGS"
5151
5152 eval supported=\$$cacheid
5153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5154 $as_echo "$supported" >&6; }
5155 if test "$supported" = "yes" ; then
5156 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
5157 found="yes"
5158 fi
5159 fi
5160
5161
5162
5163
5164
5165
5166
5167
5168
5169
5170
5171
5172
5173
5174
5175 xorg_testset_save_CFLAGS="$CFLAGS"
5176
5177 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5178 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5180 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5181 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5182 $as_echo_n "(cached) " >&6
5183 else
5184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5185 /* end confdefs.h. */
5186 int i;
5187 _ACEOF
5188 if ac_fn_c_try_compile "$LINENO"; then :
5189 xorg_cv_cc_flag_unknown_warning_option=yes
5190 else
5191 xorg_cv_cc_flag_unknown_warning_option=no
5192 fi
5193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5194 fi
5195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5196 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5197 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5198 CFLAGS="$xorg_testset_save_CFLAGS"
5199 fi
5200
5201 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5202 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5203 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5204 fi
5205 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5207 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5208 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5209 $as_echo_n "(cached) " >&6
5210 else
5211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5212 /* end confdefs.h. */
5213 int i;
5214 _ACEOF
5215 if ac_fn_c_try_compile "$LINENO"; then :
5216 xorg_cv_cc_flag_unused_command_line_argument=yes
5217 else
5218 xorg_cv_cc_flag_unused_command_line_argument=no
5219 fi
5220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5221 fi
5222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5223 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5224 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5225 CFLAGS="$xorg_testset_save_CFLAGS"
5226 fi
5227
5228 found="no"
5229
5230 if test $found = "no" ; then
5231 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5232 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5233 fi
5234
5235 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5236 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5237 fi
5238
5239 CFLAGS="$CFLAGS -Wmissing-declarations"
5240
5241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
5242 $as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
5243 cacheid=xorg_cv_cc_flag__Wmissing_declarations
5244 if eval \${$cacheid+:} false; then :
5245 $as_echo_n "(cached) " >&6
5246 else
5247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5248 /* end confdefs.h. */
5249 int i;
5250 int
5251 main ()
5252 {
5253
5254 ;
5255 return 0;
5256 }
5257 _ACEOF
5258 if ac_fn_c_try_link "$LINENO"; then :
5259 eval $cacheid=yes
5260 else
5261 eval $cacheid=no
5262 fi
5263 rm -f core conftest.err conftest.$ac_objext \
5264 conftest$ac_exeext conftest.$ac_ext
5265 fi
5266
5267
5268 CFLAGS="$xorg_testset_save_CFLAGS"
5269
5270 eval supported=\$$cacheid
5271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5272 $as_echo "$supported" >&6; }
5273 if test "$supported" = "yes" ; then
5274 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5275 found="yes"
5276 fi
5277 fi
5278
5279
5280
5281
5282
5283
5284
5285
5286
5287
5288
5289
5290
5291
5292
5293 xorg_testset_save_CFLAGS="$CFLAGS"
5294
5295 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5296 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5298 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5299 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5300 $as_echo_n "(cached) " >&6
5301 else
5302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5303 /* end confdefs.h. */
5304 int i;
5305 _ACEOF
5306 if ac_fn_c_try_compile "$LINENO"; then :
5307 xorg_cv_cc_flag_unknown_warning_option=yes
5308 else
5309 xorg_cv_cc_flag_unknown_warning_option=no
5310 fi
5311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5312 fi
5313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5314 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5315 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5316 CFLAGS="$xorg_testset_save_CFLAGS"
5317 fi
5318
5319 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5320 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5321 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5322 fi
5323 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5325 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5326 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5327 $as_echo_n "(cached) " >&6
5328 else
5329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5330 /* end confdefs.h. */
5331 int i;
5332 _ACEOF
5333 if ac_fn_c_try_compile "$LINENO"; then :
5334 xorg_cv_cc_flag_unused_command_line_argument=yes
5335 else
5336 xorg_cv_cc_flag_unused_command_line_argument=no
5337 fi
5338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5339 fi
5340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5341 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5342 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5343 CFLAGS="$xorg_testset_save_CFLAGS"
5344 fi
5345
5346 found="no"
5347
5348 if test $found = "no" ; then
5349 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5350 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5351 fi
5352
5353 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5354 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5355 fi
5356
5357 CFLAGS="$CFLAGS -Wformat=2"
5358
5359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5360 $as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
5361 cacheid=xorg_cv_cc_flag__Wformat_2
5362 if eval \${$cacheid+:} false; then :
5363 $as_echo_n "(cached) " >&6
5364 else
5365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5366 /* end confdefs.h. */
5367 int i;
5368 int
5369 main ()
5370 {
5371
5372 ;
5373 return 0;
5374 }
5375 _ACEOF
5376 if ac_fn_c_try_link "$LINENO"; then :
5377 eval $cacheid=yes
5378 else
5379 eval $cacheid=no
5380 fi
5381 rm -f core conftest.err conftest.$ac_objext \
5382 conftest$ac_exeext conftest.$ac_ext
5383 fi
5384
5385
5386 CFLAGS="$xorg_testset_save_CFLAGS"
5387
5388 eval supported=\$$cacheid
5389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5390 $as_echo "$supported" >&6; }
5391 if test "$supported" = "yes" ; then
5392 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5393 found="yes"
5394 fi
5395 fi
5396
5397 if test $found = "no" ; then
5398 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5399 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5400 fi
5401
5402 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5403 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5404 fi
5405
5406 CFLAGS="$CFLAGS -Wformat"
5407
5408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5409 $as_echo_n "checking if $CC supports -Wformat... " >&6; }
5410 cacheid=xorg_cv_cc_flag__Wformat
5411 if eval \${$cacheid+:} false; then :
5412 $as_echo_n "(cached) " >&6
5413 else
5414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5415 /* end confdefs.h. */
5416 int i;
5417 int
5418 main ()
5419 {
5420
5421 ;
5422 return 0;
5423 }
5424 _ACEOF
5425 if ac_fn_c_try_link "$LINENO"; then :
5426 eval $cacheid=yes
5427 else
5428 eval $cacheid=no
5429 fi
5430 rm -f core conftest.err conftest.$ac_objext \
5431 conftest$ac_exeext conftest.$ac_ext
5432 fi
5433
5434
5435 CFLAGS="$xorg_testset_save_CFLAGS"
5436
5437 eval supported=\$$cacheid
5438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5439 $as_echo "$supported" >&6; }
5440 if test "$supported" = "yes" ; then
5441 BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5442 found="yes"
5443 fi
5444 fi
5445
5446
5447
5448
5449
5450
5451
5452
5453
5454
5455
5456
5457
5458
5459
5460
5461
5462 xorg_testset_save_CFLAGS="$CFLAGS"
5463
5464 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5465 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5467 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5468 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5469 $as_echo_n "(cached) " >&6
5470 else
5471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5472 /* end confdefs.h. */
5473 int i;
5474 _ACEOF
5475 if ac_fn_c_try_compile "$LINENO"; then :
5476 xorg_cv_cc_flag_unknown_warning_option=yes
5477 else
5478 xorg_cv_cc_flag_unknown_warning_option=no
5479 fi
5480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5481 fi
5482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5483 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5484 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5485 CFLAGS="$xorg_testset_save_CFLAGS"
5486 fi
5487
5488 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5489 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5490 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5491 fi
5492 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5494 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5495 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5496 $as_echo_n "(cached) " >&6
5497 else
5498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5499 /* end confdefs.h. */
5500 int i;
5501 _ACEOF
5502 if ac_fn_c_try_compile "$LINENO"; then :
5503 xorg_cv_cc_flag_unused_command_line_argument=yes
5504 else
5505 xorg_cv_cc_flag_unused_command_line_argument=no
5506 fi
5507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5508 fi
5509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5510 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5511 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5512 CFLAGS="$xorg_testset_save_CFLAGS"
5513 fi
5514
5515 found="no"
5516
5517 if test $found = "no" ; then
5518 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5519 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5520 fi
5521
5522 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5523 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5524 fi
5525
5526 CFLAGS="$CFLAGS -Wstrict-prototypes"
5527
5528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5529 $as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
5530 cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5531 if eval \${$cacheid+:} false; then :
5532 $as_echo_n "(cached) " >&6
5533 else
5534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5535 /* end confdefs.h. */
5536 int i;
5537 int
5538 main ()
5539 {
5540
5541 ;
5542 return 0;
5543 }
5544 _ACEOF
5545 if ac_fn_c_try_link "$LINENO"; then :
5546 eval $cacheid=yes
5547 else
5548 eval $cacheid=no
5549 fi
5550 rm -f core conftest.err conftest.$ac_objext \
5551 conftest$ac_exeext conftest.$ac_ext
5552 fi
5553
5554
5555 CFLAGS="$xorg_testset_save_CFLAGS"
5556
5557 eval supported=\$$cacheid
5558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5559 $as_echo "$supported" >&6; }
5560 if test "$supported" = "yes" ; then
5561 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5562 found="yes"
5563 fi
5564 fi
5565
5566
5567
5568
5569
5570
5571
5572
5573
5574
5575
5576
5577
5578
5579
5580 xorg_testset_save_CFLAGS="$CFLAGS"
5581
5582 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5583 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5585 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5586 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5587 $as_echo_n "(cached) " >&6
5588 else
5589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5590 /* end confdefs.h. */
5591 int i;
5592 _ACEOF
5593 if ac_fn_c_try_compile "$LINENO"; then :
5594 xorg_cv_cc_flag_unknown_warning_option=yes
5595 else
5596 xorg_cv_cc_flag_unknown_warning_option=no
5597 fi
5598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5599 fi
5600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5601 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5602 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5603 CFLAGS="$xorg_testset_save_CFLAGS"
5604 fi
5605
5606 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5607 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5608 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5609 fi
5610 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5612 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5613 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5614 $as_echo_n "(cached) " >&6
5615 else
5616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5617 /* end confdefs.h. */
5618 int i;
5619 _ACEOF
5620 if ac_fn_c_try_compile "$LINENO"; then :
5621 xorg_cv_cc_flag_unused_command_line_argument=yes
5622 else
5623 xorg_cv_cc_flag_unused_command_line_argument=no
5624 fi
5625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5626 fi
5627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5628 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5629 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5630 CFLAGS="$xorg_testset_save_CFLAGS"
5631 fi
5632
5633 found="no"
5634
5635 if test $found = "no" ; then
5636 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5637 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5638 fi
5639
5640 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5641 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5642 fi
5643
5644 CFLAGS="$CFLAGS -Wmissing-prototypes"
5645
5646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5647 $as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
5648 cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5649 if eval \${$cacheid+:} false; then :
5650 $as_echo_n "(cached) " >&6
5651 else
5652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5653 /* end confdefs.h. */
5654 int i;
5655 int
5656 main ()
5657 {
5658
5659 ;
5660 return 0;
5661 }
5662 _ACEOF
5663 if ac_fn_c_try_link "$LINENO"; then :
5664 eval $cacheid=yes
5665 else
5666 eval $cacheid=no
5667 fi
5668 rm -f core conftest.err conftest.$ac_objext \
5669 conftest$ac_exeext conftest.$ac_ext
5670 fi
5671
5672
5673 CFLAGS="$xorg_testset_save_CFLAGS"
5674
5675 eval supported=\$$cacheid
5676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5677 $as_echo "$supported" >&6; }
5678 if test "$supported" = "yes" ; then
5679 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5680 found="yes"
5681 fi
5682 fi
5683
5684
5685
5686
5687
5688
5689
5690
5691
5692
5693
5694
5695
5696
5697
5698 xorg_testset_save_CFLAGS="$CFLAGS"
5699
5700 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5701 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5703 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5704 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5705 $as_echo_n "(cached) " >&6
5706 else
5707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5708 /* end confdefs.h. */
5709 int i;
5710 _ACEOF
5711 if ac_fn_c_try_compile "$LINENO"; then :
5712 xorg_cv_cc_flag_unknown_warning_option=yes
5713 else
5714 xorg_cv_cc_flag_unknown_warning_option=no
5715 fi
5716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5717 fi
5718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5719 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5720 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5721 CFLAGS="$xorg_testset_save_CFLAGS"
5722 fi
5723
5724 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5725 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5726 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5727 fi
5728 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5730 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5731 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5732 $as_echo_n "(cached) " >&6
5733 else
5734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5735 /* end confdefs.h. */
5736 int i;
5737 _ACEOF
5738 if ac_fn_c_try_compile "$LINENO"; then :
5739 xorg_cv_cc_flag_unused_command_line_argument=yes
5740 else
5741 xorg_cv_cc_flag_unused_command_line_argument=no
5742 fi
5743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5744 fi
5745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5746 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5747 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5748 CFLAGS="$xorg_testset_save_CFLAGS"
5749 fi
5750
5751 found="no"
5752
5753 if test $found = "no" ; then
5754 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5755 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5756 fi
5757
5758 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5759 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5760 fi
5761
5762 CFLAGS="$CFLAGS -Wnested-externs"
5763
5764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5765 $as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
5766 cacheid=xorg_cv_cc_flag__Wnested_externs
5767 if eval \${$cacheid+:} false; then :
5768 $as_echo_n "(cached) " >&6
5769 else
5770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5771 /* end confdefs.h. */
5772 int i;
5773 int
5774 main ()
5775 {
5776
5777 ;
5778 return 0;
5779 }
5780 _ACEOF
5781 if ac_fn_c_try_link "$LINENO"; then :
5782 eval $cacheid=yes
5783 else
5784 eval $cacheid=no
5785 fi
5786 rm -f core conftest.err conftest.$ac_objext \
5787 conftest$ac_exeext conftest.$ac_ext
5788 fi
5789
5790
5791 CFLAGS="$xorg_testset_save_CFLAGS"
5792
5793 eval supported=\$$cacheid
5794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5795 $as_echo "$supported" >&6; }
5796 if test "$supported" = "yes" ; then
5797 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5798 found="yes"
5799 fi
5800 fi
5801
5802
5803
5804
5805
5806
5807
5808
5809
5810
5811
5812
5813
5814
5815
5816 xorg_testset_save_CFLAGS="$CFLAGS"
5817
5818 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5819 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5821 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5822 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5823 $as_echo_n "(cached) " >&6
5824 else
5825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5826 /* end confdefs.h. */
5827 int i;
5828 _ACEOF
5829 if ac_fn_c_try_compile "$LINENO"; then :
5830 xorg_cv_cc_flag_unknown_warning_option=yes
5831 else
5832 xorg_cv_cc_flag_unknown_warning_option=no
5833 fi
5834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5835 fi
5836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5837 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5838 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5839 CFLAGS="$xorg_testset_save_CFLAGS"
5840 fi
5841
5842 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5843 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5844 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5845 fi
5846 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5848 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5849 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5850 $as_echo_n "(cached) " >&6
5851 else
5852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5853 /* end confdefs.h. */
5854 int i;
5855 _ACEOF
5856 if ac_fn_c_try_compile "$LINENO"; then :
5857 xorg_cv_cc_flag_unused_command_line_argument=yes
5858 else
5859 xorg_cv_cc_flag_unused_command_line_argument=no
5860 fi
5861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5862 fi
5863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5864 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5865 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5866 CFLAGS="$xorg_testset_save_CFLAGS"
5867 fi
5868
5869 found="no"
5870
5871 if test $found = "no" ; then
5872 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5873 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5874 fi
5875
5876 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5877 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5878 fi
5879
5880 CFLAGS="$CFLAGS -Wbad-function-cast"
5881
5882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
5883 $as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
5884 cacheid=xorg_cv_cc_flag__Wbad_function_cast
5885 if eval \${$cacheid+:} false; then :
5886 $as_echo_n "(cached) " >&6
5887 else
5888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5889 /* end confdefs.h. */
5890 int i;
5891 int
5892 main ()
5893 {
5894
5895 ;
5896 return 0;
5897 }
5898 _ACEOF
5899 if ac_fn_c_try_link "$LINENO"; then :
5900 eval $cacheid=yes
5901 else
5902 eval $cacheid=no
5903 fi
5904 rm -f core conftest.err conftest.$ac_objext \
5905 conftest$ac_exeext conftest.$ac_ext
5906 fi
5907
5908
5909 CFLAGS="$xorg_testset_save_CFLAGS"
5910
5911 eval supported=\$$cacheid
5912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5913 $as_echo "$supported" >&6; }
5914 if test "$supported" = "yes" ; then
5915 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
5916 found="yes"
5917 fi
5918 fi
5919
5920
5921
5922
5923
5924
5925
5926
5927
5928
5929
5930
5931
5932
5933
5934 xorg_testset_save_CFLAGS="$CFLAGS"
5935
5936 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5937 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5939 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5940 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5941 $as_echo_n "(cached) " >&6
5942 else
5943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5944 /* end confdefs.h. */
5945 int i;
5946 _ACEOF
5947 if ac_fn_c_try_compile "$LINENO"; then :
5948 xorg_cv_cc_flag_unknown_warning_option=yes
5949 else
5950 xorg_cv_cc_flag_unknown_warning_option=no
5951 fi
5952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5953 fi
5954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5955 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5956 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5957 CFLAGS="$xorg_testset_save_CFLAGS"
5958 fi
5959
5960 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5961 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5962 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5963 fi
5964 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5966 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5967 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5968 $as_echo_n "(cached) " >&6
5969 else
5970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5971 /* end confdefs.h. */
5972 int i;
5973 _ACEOF
5974 if ac_fn_c_try_compile "$LINENO"; then :
5975 xorg_cv_cc_flag_unused_command_line_argument=yes
5976 else
5977 xorg_cv_cc_flag_unused_command_line_argument=no
5978 fi
5979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5980 fi
5981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5982 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5983 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5984 CFLAGS="$xorg_testset_save_CFLAGS"
5985 fi
5986
5987 found="no"
5988
5989 if test $found = "no" ; then
5990 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5991 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5992 fi
5993
5994 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5995 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5996 fi
5997
5998 CFLAGS="$CFLAGS -Wold-style-definition"
5999
6000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
6001 $as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
6002 cacheid=xorg_cv_cc_flag__Wold_style_definition
6003 if eval \${$cacheid+:} false; then :
6004 $as_echo_n "(cached) " >&6
6005 else
6006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6007 /* end confdefs.h. */
6008 int i;
6009 int
6010 main ()
6011 {
6012
6013 ;
6014 return 0;
6015 }
6016 _ACEOF
6017 if ac_fn_c_try_link "$LINENO"; then :
6018 eval $cacheid=yes
6019 else
6020 eval $cacheid=no
6021 fi
6022 rm -f core conftest.err conftest.$ac_objext \
6023 conftest$ac_exeext conftest.$ac_ext
6024 fi
6025
6026
6027 CFLAGS="$xorg_testset_save_CFLAGS"
6028
6029 eval supported=\$$cacheid
6030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6031 $as_echo "$supported" >&6; }
6032 if test "$supported" = "yes" ; then
6033 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
6034 found="yes"
6035 fi
6036 fi
6037
6038 if test $found = "no" ; then
6039 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6040 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6041 fi
6042
6043 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6044 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6045 fi
6046
6047 CFLAGS="$CFLAGS -fd"
6048
6049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
6050 $as_echo_n "checking if $CC supports -fd... " >&6; }
6051 cacheid=xorg_cv_cc_flag__fd
6052 if eval \${$cacheid+:} false; then :
6053 $as_echo_n "(cached) " >&6
6054 else
6055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6056 /* end confdefs.h. */
6057 int i;
6058 int
6059 main ()
6060 {
6061
6062 ;
6063 return 0;
6064 }
6065 _ACEOF
6066 if ac_fn_c_try_link "$LINENO"; then :
6067 eval $cacheid=yes
6068 else
6069 eval $cacheid=no
6070 fi
6071 rm -f core conftest.err conftest.$ac_objext \
6072 conftest$ac_exeext conftest.$ac_ext
6073 fi
6074
6075
6076 CFLAGS="$xorg_testset_save_CFLAGS"
6077
6078 eval supported=\$$cacheid
6079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6080 $as_echo "$supported" >&6; }
6081 if test "$supported" = "yes" ; then
6082 BASE_CFLAGS="$BASE_CFLAGS -fd"
6083 found="yes"
6084 fi
6085 fi
6086
6087
6088
6089
6090
6091
6092
6093
6094
6095
6096
6097
6098
6099
6100
6101 xorg_testset_save_CFLAGS="$CFLAGS"
6102
6103 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6104 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6106 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6107 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6108 $as_echo_n "(cached) " >&6
6109 else
6110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6111 /* end confdefs.h. */
6112 int i;
6113 _ACEOF
6114 if ac_fn_c_try_compile "$LINENO"; then :
6115 xorg_cv_cc_flag_unknown_warning_option=yes
6116 else
6117 xorg_cv_cc_flag_unknown_warning_option=no
6118 fi
6119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6120 fi
6121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6122 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6123 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6124 CFLAGS="$xorg_testset_save_CFLAGS"
6125 fi
6126
6127 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6128 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6129 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6130 fi
6131 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6133 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6134 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6135 $as_echo_n "(cached) " >&6
6136 else
6137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6138 /* end confdefs.h. */
6139 int i;
6140 _ACEOF
6141 if ac_fn_c_try_compile "$LINENO"; then :
6142 xorg_cv_cc_flag_unused_command_line_argument=yes
6143 else
6144 xorg_cv_cc_flag_unused_command_line_argument=no
6145 fi
6146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6147 fi
6148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6149 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6150 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6151 CFLAGS="$xorg_testset_save_CFLAGS"
6152 fi
6153
6154 found="no"
6155
6156 if test $found = "no" ; then
6157 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6158 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6159 fi
6160
6161 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6162 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6163 fi
6164
6165 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
6166
6167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
6168 $as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
6169 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
6170 if eval \${$cacheid+:} false; then :
6171 $as_echo_n "(cached) " >&6
6172 else
6173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6174 /* end confdefs.h. */
6175 int i;
6176 int
6177 main ()
6178 {
6179
6180 ;
6181 return 0;
6182 }
6183 _ACEOF
6184 if ac_fn_c_try_link "$LINENO"; then :
6185 eval $cacheid=yes
6186 else
6187 eval $cacheid=no
6188 fi
6189 rm -f core conftest.err conftest.$ac_objext \
6190 conftest$ac_exeext conftest.$ac_ext
6191 fi
6192
6193
6194 CFLAGS="$xorg_testset_save_CFLAGS"
6195
6196 eval supported=\$$cacheid
6197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6198 $as_echo "$supported" >&6; }
6199 if test "$supported" = "yes" ; then
6200 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
6201 found="yes"
6202 fi
6203 fi
6204
6205
6206
6207
6208
6209 # This chunk adds additional warnings that could catch undesired effects.
6210
6211
6212
6213
6214
6215
6216
6217
6218
6219
6220
6221
6222
6223 xorg_testset_save_CFLAGS="$CFLAGS"
6224
6225 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6226 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6228 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6229 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6230 $as_echo_n "(cached) " >&6
6231 else
6232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6233 /* end confdefs.h. */
6234 int i;
6235 _ACEOF
6236 if ac_fn_c_try_compile "$LINENO"; then :
6237 xorg_cv_cc_flag_unknown_warning_option=yes
6238 else
6239 xorg_cv_cc_flag_unknown_warning_option=no
6240 fi
6241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6242 fi
6243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6244 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6245 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6246 CFLAGS="$xorg_testset_save_CFLAGS"
6247 fi
6248
6249 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6250 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6251 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6252 fi
6253 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6255 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6256 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6257 $as_echo_n "(cached) " >&6
6258 else
6259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6260 /* end confdefs.h. */
6261 int i;
6262 _ACEOF
6263 if ac_fn_c_try_compile "$LINENO"; then :
6264 xorg_cv_cc_flag_unused_command_line_argument=yes
6265 else
6266 xorg_cv_cc_flag_unused_command_line_argument=no
6267 fi
6268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6269 fi
6270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6271 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6272 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6273 CFLAGS="$xorg_testset_save_CFLAGS"
6274 fi
6275
6276 found="no"
6277
6278 if test $found = "no" ; then
6279 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6280 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6281 fi
6282
6283 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6284 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6285 fi
6286
6287 CFLAGS="$CFLAGS -Wunused"
6288
6289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
6290 $as_echo_n "checking if $CC supports -Wunused... " >&6; }
6291 cacheid=xorg_cv_cc_flag__Wunused
6292 if eval \${$cacheid+:} false; then :
6293 $as_echo_n "(cached) " >&6
6294 else
6295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6296 /* end confdefs.h. */
6297 int i;
6298 int
6299 main ()
6300 {
6301
6302 ;
6303 return 0;
6304 }
6305 _ACEOF
6306 if ac_fn_c_try_link "$LINENO"; then :
6307 eval $cacheid=yes
6308 else
6309 eval $cacheid=no
6310 fi
6311 rm -f core conftest.err conftest.$ac_objext \
6312 conftest$ac_exeext conftest.$ac_ext
6313 fi
6314
6315
6316 CFLAGS="$xorg_testset_save_CFLAGS"
6317
6318 eval supported=\$$cacheid
6319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6320 $as_echo "$supported" >&6; }
6321 if test "$supported" = "yes" ; then
6322 BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6323 found="yes"
6324 fi
6325 fi
6326
6327
6328
6329
6330
6331
6332
6333
6334
6335
6336
6337
6338
6339
6340
6341 xorg_testset_save_CFLAGS="$CFLAGS"
6342
6343 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6344 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6346 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6347 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6348 $as_echo_n "(cached) " >&6
6349 else
6350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6351 /* end confdefs.h. */
6352 int i;
6353 _ACEOF
6354 if ac_fn_c_try_compile "$LINENO"; then :
6355 xorg_cv_cc_flag_unknown_warning_option=yes
6356 else
6357 xorg_cv_cc_flag_unknown_warning_option=no
6358 fi
6359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6360 fi
6361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6362 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6363 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6364 CFLAGS="$xorg_testset_save_CFLAGS"
6365 fi
6366
6367 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6368 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6369 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6370 fi
6371 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6373 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6374 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6375 $as_echo_n "(cached) " >&6
6376 else
6377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6378 /* end confdefs.h. */
6379 int i;
6380 _ACEOF
6381 if ac_fn_c_try_compile "$LINENO"; then :
6382 xorg_cv_cc_flag_unused_command_line_argument=yes
6383 else
6384 xorg_cv_cc_flag_unused_command_line_argument=no
6385 fi
6386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6387 fi
6388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6389 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6390 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6391 CFLAGS="$xorg_testset_save_CFLAGS"
6392 fi
6393
6394 found="no"
6395
6396 if test $found = "no" ; then
6397 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6398 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6399 fi
6400
6401 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6402 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6403 fi
6404
6405 CFLAGS="$CFLAGS -Wuninitialized"
6406
6407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6408 $as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
6409 cacheid=xorg_cv_cc_flag__Wuninitialized
6410 if eval \${$cacheid+:} false; then :
6411 $as_echo_n "(cached) " >&6
6412 else
6413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6414 /* end confdefs.h. */
6415 int i;
6416 int
6417 main ()
6418 {
6419
6420 ;
6421 return 0;
6422 }
6423 _ACEOF
6424 if ac_fn_c_try_link "$LINENO"; then :
6425 eval $cacheid=yes
6426 else
6427 eval $cacheid=no
6428 fi
6429 rm -f core conftest.err conftest.$ac_objext \
6430 conftest$ac_exeext conftest.$ac_ext
6431 fi
6432
6433
6434 CFLAGS="$xorg_testset_save_CFLAGS"
6435
6436 eval supported=\$$cacheid
6437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6438 $as_echo "$supported" >&6; }
6439 if test "$supported" = "yes" ; then
6440 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6441 found="yes"
6442 fi
6443 fi
6444
6445
6446
6447
6448
6449
6450
6451
6452
6453
6454
6455
6456
6457
6458
6459 xorg_testset_save_CFLAGS="$CFLAGS"
6460
6461 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6462 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6464 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6465 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6466 $as_echo_n "(cached) " >&6
6467 else
6468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6469 /* end confdefs.h. */
6470 int i;
6471 _ACEOF
6472 if ac_fn_c_try_compile "$LINENO"; then :
6473 xorg_cv_cc_flag_unknown_warning_option=yes
6474 else
6475 xorg_cv_cc_flag_unknown_warning_option=no
6476 fi
6477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6478 fi
6479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6480 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6481 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6482 CFLAGS="$xorg_testset_save_CFLAGS"
6483 fi
6484
6485 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6486 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6487 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6488 fi
6489 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6491 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6492 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6493 $as_echo_n "(cached) " >&6
6494 else
6495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6496 /* end confdefs.h. */
6497 int i;
6498 _ACEOF
6499 if ac_fn_c_try_compile "$LINENO"; then :
6500 xorg_cv_cc_flag_unused_command_line_argument=yes
6501 else
6502 xorg_cv_cc_flag_unused_command_line_argument=no
6503 fi
6504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6505 fi
6506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6507 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6508 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6509 CFLAGS="$xorg_testset_save_CFLAGS"
6510 fi
6511
6512 found="no"
6513
6514 if test $found = "no" ; then
6515 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6516 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6517 fi
6518
6519 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6520 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6521 fi
6522
6523 CFLAGS="$CFLAGS -Wshadow"
6524
6525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6526 $as_echo_n "checking if $CC supports -Wshadow... " >&6; }
6527 cacheid=xorg_cv_cc_flag__Wshadow
6528 if eval \${$cacheid+:} false; then :
6529 $as_echo_n "(cached) " >&6
6530 else
6531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6532 /* end confdefs.h. */
6533 int i;
6534 int
6535 main ()
6536 {
6537
6538 ;
6539 return 0;
6540 }
6541 _ACEOF
6542 if ac_fn_c_try_link "$LINENO"; then :
6543 eval $cacheid=yes
6544 else
6545 eval $cacheid=no
6546 fi
6547 rm -f core conftest.err conftest.$ac_objext \
6548 conftest$ac_exeext conftest.$ac_ext
6549 fi
6550
6551
6552 CFLAGS="$xorg_testset_save_CFLAGS"
6553
6554 eval supported=\$$cacheid
6555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6556 $as_echo "$supported" >&6; }
6557 if test "$supported" = "yes" ; then
6558 BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6559 found="yes"
6560 fi
6561 fi
6562
6563
6564
6565
6566
6567
6568
6569
6570
6571
6572
6573
6574
6575
6576
6577 xorg_testset_save_CFLAGS="$CFLAGS"
6578
6579 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6580 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6582 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6583 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6584 $as_echo_n "(cached) " >&6
6585 else
6586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6587 /* end confdefs.h. */
6588 int i;
6589 _ACEOF
6590 if ac_fn_c_try_compile "$LINENO"; then :
6591 xorg_cv_cc_flag_unknown_warning_option=yes
6592 else
6593 xorg_cv_cc_flag_unknown_warning_option=no
6594 fi
6595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6596 fi
6597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6598 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6599 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6600 CFLAGS="$xorg_testset_save_CFLAGS"
6601 fi
6602
6603 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6604 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6605 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6606 fi
6607 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6609 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6610 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6611 $as_echo_n "(cached) " >&6
6612 else
6613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6614 /* end confdefs.h. */
6615 int i;
6616 _ACEOF
6617 if ac_fn_c_try_compile "$LINENO"; then :
6618 xorg_cv_cc_flag_unused_command_line_argument=yes
6619 else
6620 xorg_cv_cc_flag_unused_command_line_argument=no
6621 fi
6622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6623 fi
6624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6625 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6626 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6627 CFLAGS="$xorg_testset_save_CFLAGS"
6628 fi
6629
6630 found="no"
6631
6632 if test $found = "no" ; then
6633 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6634 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6635 fi
6636
6637 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6638 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6639 fi
6640
6641 CFLAGS="$CFLAGS -Wmissing-noreturn"
6642
6643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6644 $as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
6645 cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6646 if eval \${$cacheid+:} false; then :
6647 $as_echo_n "(cached) " >&6
6648 else
6649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6650 /* end confdefs.h. */
6651 int i;
6652 int
6653 main ()
6654 {
6655
6656 ;
6657 return 0;
6658 }
6659 _ACEOF
6660 if ac_fn_c_try_link "$LINENO"; then :
6661 eval $cacheid=yes
6662 else
6663 eval $cacheid=no
6664 fi
6665 rm -f core conftest.err conftest.$ac_objext \
6666 conftest$ac_exeext conftest.$ac_ext
6667 fi
6668
6669
6670 CFLAGS="$xorg_testset_save_CFLAGS"
6671
6672 eval supported=\$$cacheid
6673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6674 $as_echo "$supported" >&6; }
6675 if test "$supported" = "yes" ; then
6676 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6677 found="yes"
6678 fi
6679 fi
6680
6681
6682
6683
6684
6685
6686
6687
6688
6689
6690
6691
6692
6693
6694
6695 xorg_testset_save_CFLAGS="$CFLAGS"
6696
6697 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6698 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6700 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6701 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6702 $as_echo_n "(cached) " >&6
6703 else
6704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6705 /* end confdefs.h. */
6706 int i;
6707 _ACEOF
6708 if ac_fn_c_try_compile "$LINENO"; then :
6709 xorg_cv_cc_flag_unknown_warning_option=yes
6710 else
6711 xorg_cv_cc_flag_unknown_warning_option=no
6712 fi
6713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6714 fi
6715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6716 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6717 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6718 CFLAGS="$xorg_testset_save_CFLAGS"
6719 fi
6720
6721 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6722 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6723 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6724 fi
6725 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6727 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6728 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6729 $as_echo_n "(cached) " >&6
6730 else
6731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6732 /* end confdefs.h. */
6733 int i;
6734 _ACEOF
6735 if ac_fn_c_try_compile "$LINENO"; then :
6736 xorg_cv_cc_flag_unused_command_line_argument=yes
6737 else
6738 xorg_cv_cc_flag_unused_command_line_argument=no
6739 fi
6740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6741 fi
6742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6743 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6744 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6745 CFLAGS="$xorg_testset_save_CFLAGS"
6746 fi
6747
6748 found="no"
6749
6750 if test $found = "no" ; then
6751 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6752 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6753 fi
6754
6755 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6756 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6757 fi
6758
6759 CFLAGS="$CFLAGS -Wmissing-format-attribute"
6760
6761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6762 $as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6763 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6764 if eval \${$cacheid+:} false; then :
6765 $as_echo_n "(cached) " >&6
6766 else
6767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6768 /* end confdefs.h. */
6769 int i;
6770 int
6771 main ()
6772 {
6773
6774 ;
6775 return 0;
6776 }
6777 _ACEOF
6778 if ac_fn_c_try_link "$LINENO"; then :
6779 eval $cacheid=yes
6780 else
6781 eval $cacheid=no
6782 fi
6783 rm -f core conftest.err conftest.$ac_objext \
6784 conftest$ac_exeext conftest.$ac_ext
6785 fi
6786
6787
6788 CFLAGS="$xorg_testset_save_CFLAGS"
6789
6790 eval supported=\$$cacheid
6791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6792 $as_echo "$supported" >&6; }
6793 if test "$supported" = "yes" ; then
6794 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6795 found="yes"
6796 fi
6797 fi
6798
6799
6800
6801
6802
6803
6804
6805
6806
6807
6808
6809
6810
6811
6812
6813 xorg_testset_save_CFLAGS="$CFLAGS"
6814
6815 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6816 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6818 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6819 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6820 $as_echo_n "(cached) " >&6
6821 else
6822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6823 /* end confdefs.h. */
6824 int i;
6825 _ACEOF
6826 if ac_fn_c_try_compile "$LINENO"; then :
6827 xorg_cv_cc_flag_unknown_warning_option=yes
6828 else
6829 xorg_cv_cc_flag_unknown_warning_option=no
6830 fi
6831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6832 fi
6833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6834 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6835 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6836 CFLAGS="$xorg_testset_save_CFLAGS"
6837 fi
6838
6839 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6840 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6841 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6842 fi
6843 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6845 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6846 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6847 $as_echo_n "(cached) " >&6
6848 else
6849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6850 /* end confdefs.h. */
6851 int i;
6852 _ACEOF
6853 if ac_fn_c_try_compile "$LINENO"; then :
6854 xorg_cv_cc_flag_unused_command_line_argument=yes
6855 else
6856 xorg_cv_cc_flag_unused_command_line_argument=no
6857 fi
6858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6859 fi
6860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6861 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6862 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6863 CFLAGS="$xorg_testset_save_CFLAGS"
6864 fi
6865
6866 found="no"
6867
6868 if test $found = "no" ; then
6869 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6870 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6871 fi
6872
6873 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6874 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6875 fi
6876
6877 CFLAGS="$CFLAGS -Wredundant-decls"
6878
6879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
6880 $as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
6881 cacheid=xorg_cv_cc_flag__Wredundant_decls
6882 if eval \${$cacheid+:} false; then :
6883 $as_echo_n "(cached) " >&6
6884 else
6885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6886 /* end confdefs.h. */
6887 int i;
6888 int
6889 main ()
6890 {
6891
6892 ;
6893 return 0;
6894 }
6895 _ACEOF
6896 if ac_fn_c_try_link "$LINENO"; then :
6897 eval $cacheid=yes
6898 else
6899 eval $cacheid=no
6900 fi
6901 rm -f core conftest.err conftest.$ac_objext \
6902 conftest$ac_exeext conftest.$ac_ext
6903 fi
6904
6905
6906 CFLAGS="$xorg_testset_save_CFLAGS"
6907
6908 eval supported=\$$cacheid
6909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6910 $as_echo "$supported" >&6; }
6911 if test "$supported" = "yes" ; then
6912 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
6913 found="yes"
6914 fi
6915 fi
6916
6917
6918
6919
6920
6921
6922
6923
6924
6925
6926
6927
6928
6929
6930
6931 xorg_testset_save_CFLAGS="$CFLAGS"
6932
6933 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6934 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6936 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6937 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6938 $as_echo_n "(cached) " >&6
6939 else
6940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6941 /* end confdefs.h. */
6942 int i;
6943 _ACEOF
6944 if ac_fn_c_try_compile "$LINENO"; then :
6945 xorg_cv_cc_flag_unknown_warning_option=yes
6946 else
6947 xorg_cv_cc_flag_unknown_warning_option=no
6948 fi
6949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6950 fi
6951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6952 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6953 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6954 CFLAGS="$xorg_testset_save_CFLAGS"
6955 fi
6956
6957 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6958 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6959 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6960 fi
6961 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6963 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6964 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6965 $as_echo_n "(cached) " >&6
6966 else
6967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6968 /* end confdefs.h. */
6969 int i;
6970 _ACEOF
6971 if ac_fn_c_try_compile "$LINENO"; then :
6972 xorg_cv_cc_flag_unused_command_line_argument=yes
6973 else
6974 xorg_cv_cc_flag_unused_command_line_argument=no
6975 fi
6976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6977 fi
6978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6979 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6980 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6981 CFLAGS="$xorg_testset_save_CFLAGS"
6982 fi
6983
6984 found="no"
6985
6986 if test $found = "no" ; then
6987 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6988 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6989 fi
6990
6991 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6992 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6993 fi
6994
6995 CFLAGS="$CFLAGS -Wlogical-op"
6996
6997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
6998 $as_echo_n "checking if $CC supports -Wlogical-op... " >&6; }
6999 cacheid=xorg_cv_cc_flag__Wlogical_op
7000 if eval \${$cacheid+:} false; then :
7001 $as_echo_n "(cached) " >&6
7002 else
7003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7004 /* end confdefs.h. */
7005 int i;
7006 int
7007 main ()
7008 {
7009
7010 ;
7011 return 0;
7012 }
7013 _ACEOF
7014 if ac_fn_c_try_link "$LINENO"; then :
7015 eval $cacheid=yes
7016 else
7017 eval $cacheid=no
7018 fi
7019 rm -f core conftest.err conftest.$ac_objext \
7020 conftest$ac_exeext conftest.$ac_ext
7021 fi
7022
7023
7024 CFLAGS="$xorg_testset_save_CFLAGS"
7025
7026 eval supported=\$$cacheid
7027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7028 $as_echo "$supported" >&6; }
7029 if test "$supported" = "yes" ; then
7030 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
7031 found="yes"
7032 fi
7033 fi
7034
7035
7036
7037 # These are currently disabled because they are noisy. They will be enabled
7038 # in the future once the codebase is sufficiently modernized to silence
7039 # them. For now, I don't want them to drown out the other warnings.
7040 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
7041 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
7042 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
7043
7044 # Turn some warnings into errors, so we don't accidently get successful builds
7045 # when there are problems that should be fixed.
7046
7047 if test "x$SELECTIVE_WERROR" = "xyes" ; then
7048
7049
7050
7051
7052
7053
7054
7055
7056
7057
7058
7059
7060
7061 xorg_testset_save_CFLAGS="$CFLAGS"
7062
7063 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7064 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7066 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7067 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7068 $as_echo_n "(cached) " >&6
7069 else
7070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7071 /* end confdefs.h. */
7072 int i;
7073 _ACEOF
7074 if ac_fn_c_try_compile "$LINENO"; then :
7075 xorg_cv_cc_flag_unknown_warning_option=yes
7076 else
7077 xorg_cv_cc_flag_unknown_warning_option=no
7078 fi
7079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7080 fi
7081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7082 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7083 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7084 CFLAGS="$xorg_testset_save_CFLAGS"
7085 fi
7086
7087 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7088 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7089 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7090 fi
7091 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7093 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7094 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7095 $as_echo_n "(cached) " >&6
7096 else
7097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7098 /* end confdefs.h. */
7099 int i;
7100 _ACEOF
7101 if ac_fn_c_try_compile "$LINENO"; then :
7102 xorg_cv_cc_flag_unused_command_line_argument=yes
7103 else
7104 xorg_cv_cc_flag_unused_command_line_argument=no
7105 fi
7106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7107 fi
7108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7109 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7110 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7111 CFLAGS="$xorg_testset_save_CFLAGS"
7112 fi
7113
7114 found="no"
7115
7116 if test $found = "no" ; then
7117 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7118 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7119 fi
7120
7121 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7122 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7123 fi
7124
7125 CFLAGS="$CFLAGS -Werror=implicit"
7126
7127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
7128 $as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
7129 cacheid=xorg_cv_cc_flag__Werror_implicit
7130 if eval \${$cacheid+:} false; then :
7131 $as_echo_n "(cached) " >&6
7132 else
7133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7134 /* end confdefs.h. */
7135 int i;
7136 int
7137 main ()
7138 {
7139
7140 ;
7141 return 0;
7142 }
7143 _ACEOF
7144 if ac_fn_c_try_link "$LINENO"; then :
7145 eval $cacheid=yes
7146 else
7147 eval $cacheid=no
7148 fi
7149 rm -f core conftest.err conftest.$ac_objext \
7150 conftest$ac_exeext conftest.$ac_ext
7151 fi
7152
7153
7154 CFLAGS="$xorg_testset_save_CFLAGS"
7155
7156 eval supported=\$$cacheid
7157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7158 $as_echo "$supported" >&6; }
7159 if test "$supported" = "yes" ; then
7160 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
7161 found="yes"
7162 fi
7163 fi
7164
7165 if test $found = "no" ; then
7166 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7167 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7168 fi
7169
7170 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7171 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7172 fi
7173
7174 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7175
7176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
7177 $as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
7178 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
7179 if eval \${$cacheid+:} false; then :
7180 $as_echo_n "(cached) " >&6
7181 else
7182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7183 /* end confdefs.h. */
7184 int i;
7185 int
7186 main ()
7187 {
7188
7189 ;
7190 return 0;
7191 }
7192 _ACEOF
7193 if ac_fn_c_try_link "$LINENO"; then :
7194 eval $cacheid=yes
7195 else
7196 eval $cacheid=no
7197 fi
7198 rm -f core conftest.err conftest.$ac_objext \
7199 conftest$ac_exeext conftest.$ac_ext
7200 fi
7201
7202
7203 CFLAGS="$xorg_testset_save_CFLAGS"
7204
7205 eval supported=\$$cacheid
7206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7207 $as_echo "$supported" >&6; }
7208 if test "$supported" = "yes" ; then
7209 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7210 found="yes"
7211 fi
7212 fi
7213
7214
7215
7216
7217
7218
7219
7220
7221
7222
7223
7224
7225
7226
7227
7228 xorg_testset_save_CFLAGS="$CFLAGS"
7229
7230 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7231 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7233 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7234 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7235 $as_echo_n "(cached) " >&6
7236 else
7237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7238 /* end confdefs.h. */
7239 int i;
7240 _ACEOF
7241 if ac_fn_c_try_compile "$LINENO"; then :
7242 xorg_cv_cc_flag_unknown_warning_option=yes
7243 else
7244 xorg_cv_cc_flag_unknown_warning_option=no
7245 fi
7246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7247 fi
7248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7249 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7250 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7251 CFLAGS="$xorg_testset_save_CFLAGS"
7252 fi
7253
7254 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7255 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7256 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7257 fi
7258 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7260 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7261 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7262 $as_echo_n "(cached) " >&6
7263 else
7264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7265 /* end confdefs.h. */
7266 int i;
7267 _ACEOF
7268 if ac_fn_c_try_compile "$LINENO"; then :
7269 xorg_cv_cc_flag_unused_command_line_argument=yes
7270 else
7271 xorg_cv_cc_flag_unused_command_line_argument=no
7272 fi
7273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7274 fi
7275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7276 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7277 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7278 CFLAGS="$xorg_testset_save_CFLAGS"
7279 fi
7280
7281 found="no"
7282
7283 if test $found = "no" ; then
7284 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7285 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7286 fi
7287
7288 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7289 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7290 fi
7291
7292 CFLAGS="$CFLAGS -Werror=nonnull"
7293
7294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
7295 $as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
7296 cacheid=xorg_cv_cc_flag__Werror_nonnull
7297 if eval \${$cacheid+:} false; then :
7298 $as_echo_n "(cached) " >&6
7299 else
7300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7301 /* end confdefs.h. */
7302 int i;
7303 int
7304 main ()
7305 {
7306
7307 ;
7308 return 0;
7309 }
7310 _ACEOF
7311 if ac_fn_c_try_link "$LINENO"; then :
7312 eval $cacheid=yes
7313 else
7314 eval $cacheid=no
7315 fi
7316 rm -f core conftest.err conftest.$ac_objext \
7317 conftest$ac_exeext conftest.$ac_ext
7318 fi
7319
7320
7321 CFLAGS="$xorg_testset_save_CFLAGS"
7322
7323 eval supported=\$$cacheid
7324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7325 $as_echo "$supported" >&6; }
7326 if test "$supported" = "yes" ; then
7327 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7328 found="yes"
7329 fi
7330 fi
7331
7332
7333
7334
7335
7336
7337
7338
7339
7340
7341
7342
7343
7344
7345
7346 xorg_testset_save_CFLAGS="$CFLAGS"
7347
7348 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7349 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7351 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7352 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7353 $as_echo_n "(cached) " >&6
7354 else
7355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7356 /* end confdefs.h. */
7357 int i;
7358 _ACEOF
7359 if ac_fn_c_try_compile "$LINENO"; then :
7360 xorg_cv_cc_flag_unknown_warning_option=yes
7361 else
7362 xorg_cv_cc_flag_unknown_warning_option=no
7363 fi
7364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7365 fi
7366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7367 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7368 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7369 CFLAGS="$xorg_testset_save_CFLAGS"
7370 fi
7371
7372 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7373 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7374 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7375 fi
7376 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7378 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7379 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7380 $as_echo_n "(cached) " >&6
7381 else
7382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7383 /* end confdefs.h. */
7384 int i;
7385 _ACEOF
7386 if ac_fn_c_try_compile "$LINENO"; then :
7387 xorg_cv_cc_flag_unused_command_line_argument=yes
7388 else
7389 xorg_cv_cc_flag_unused_command_line_argument=no
7390 fi
7391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7392 fi
7393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7394 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7395 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7396 CFLAGS="$xorg_testset_save_CFLAGS"
7397 fi
7398
7399 found="no"
7400
7401 if test $found = "no" ; then
7402 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7403 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7404 fi
7405
7406 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7407 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7408 fi
7409
7410 CFLAGS="$CFLAGS -Werror=init-self"
7411
7412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7413 $as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
7414 cacheid=xorg_cv_cc_flag__Werror_init_self
7415 if eval \${$cacheid+:} false; then :
7416 $as_echo_n "(cached) " >&6
7417 else
7418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7419 /* end confdefs.h. */
7420 int i;
7421 int
7422 main ()
7423 {
7424
7425 ;
7426 return 0;
7427 }
7428 _ACEOF
7429 if ac_fn_c_try_link "$LINENO"; then :
7430 eval $cacheid=yes
7431 else
7432 eval $cacheid=no
7433 fi
7434 rm -f core conftest.err conftest.$ac_objext \
7435 conftest$ac_exeext conftest.$ac_ext
7436 fi
7437
7438
7439 CFLAGS="$xorg_testset_save_CFLAGS"
7440
7441 eval supported=\$$cacheid
7442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7443 $as_echo "$supported" >&6; }
7444 if test "$supported" = "yes" ; then
7445 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7446 found="yes"
7447 fi
7448 fi
7449
7450
7451
7452
7453
7454
7455
7456
7457
7458
7459
7460
7461
7462
7463
7464 xorg_testset_save_CFLAGS="$CFLAGS"
7465
7466 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7467 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7469 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7470 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7471 $as_echo_n "(cached) " >&6
7472 else
7473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7474 /* end confdefs.h. */
7475 int i;
7476 _ACEOF
7477 if ac_fn_c_try_compile "$LINENO"; then :
7478 xorg_cv_cc_flag_unknown_warning_option=yes
7479 else
7480 xorg_cv_cc_flag_unknown_warning_option=no
7481 fi
7482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7483 fi
7484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7485 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7486 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7487 CFLAGS="$xorg_testset_save_CFLAGS"
7488 fi
7489
7490 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7491 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7492 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7493 fi
7494 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7496 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7497 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7498 $as_echo_n "(cached) " >&6
7499 else
7500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7501 /* end confdefs.h. */
7502 int i;
7503 _ACEOF
7504 if ac_fn_c_try_compile "$LINENO"; then :
7505 xorg_cv_cc_flag_unused_command_line_argument=yes
7506 else
7507 xorg_cv_cc_flag_unused_command_line_argument=no
7508 fi
7509 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7510 fi
7511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7512 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7513 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7514 CFLAGS="$xorg_testset_save_CFLAGS"
7515 fi
7516
7517 found="no"
7518
7519 if test $found = "no" ; then
7520 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7521 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7522 fi
7523
7524 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7525 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7526 fi
7527
7528 CFLAGS="$CFLAGS -Werror=main"
7529
7530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7531 $as_echo_n "checking if $CC supports -Werror=main... " >&6; }
7532 cacheid=xorg_cv_cc_flag__Werror_main
7533 if eval \${$cacheid+:} false; then :
7534 $as_echo_n "(cached) " >&6
7535 else
7536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7537 /* end confdefs.h. */
7538 int i;
7539 int
7540 main ()
7541 {
7542
7543 ;
7544 return 0;
7545 }
7546 _ACEOF
7547 if ac_fn_c_try_link "$LINENO"; then :
7548 eval $cacheid=yes
7549 else
7550 eval $cacheid=no
7551 fi
7552 rm -f core conftest.err conftest.$ac_objext \
7553 conftest$ac_exeext conftest.$ac_ext
7554 fi
7555
7556
7557 CFLAGS="$xorg_testset_save_CFLAGS"
7558
7559 eval supported=\$$cacheid
7560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7561 $as_echo "$supported" >&6; }
7562 if test "$supported" = "yes" ; then
7563 BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7564 found="yes"
7565 fi
7566 fi
7567
7568
7569
7570
7571
7572
7573
7574
7575
7576
7577
7578
7579
7580
7581
7582 xorg_testset_save_CFLAGS="$CFLAGS"
7583
7584 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7585 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7587 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7588 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7589 $as_echo_n "(cached) " >&6
7590 else
7591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7592 /* end confdefs.h. */
7593 int i;
7594 _ACEOF
7595 if ac_fn_c_try_compile "$LINENO"; then :
7596 xorg_cv_cc_flag_unknown_warning_option=yes
7597 else
7598 xorg_cv_cc_flag_unknown_warning_option=no
7599 fi
7600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7601 fi
7602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7603 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7604 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7605 CFLAGS="$xorg_testset_save_CFLAGS"
7606 fi
7607
7608 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7609 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7610 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7611 fi
7612 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7614 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7615 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7616 $as_echo_n "(cached) " >&6
7617 else
7618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7619 /* end confdefs.h. */
7620 int i;
7621 _ACEOF
7622 if ac_fn_c_try_compile "$LINENO"; then :
7623 xorg_cv_cc_flag_unused_command_line_argument=yes
7624 else
7625 xorg_cv_cc_flag_unused_command_line_argument=no
7626 fi
7627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7628 fi
7629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7630 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7631 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7632 CFLAGS="$xorg_testset_save_CFLAGS"
7633 fi
7634
7635 found="no"
7636
7637 if test $found = "no" ; then
7638 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7639 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7640 fi
7641
7642 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7643 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7644 fi
7645
7646 CFLAGS="$CFLAGS -Werror=missing-braces"
7647
7648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
7649 $as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
7650 cacheid=xorg_cv_cc_flag__Werror_missing_braces
7651 if eval \${$cacheid+:} false; then :
7652 $as_echo_n "(cached) " >&6
7653 else
7654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7655 /* end confdefs.h. */
7656 int i;
7657 int
7658 main ()
7659 {
7660
7661 ;
7662 return 0;
7663 }
7664 _ACEOF
7665 if ac_fn_c_try_link "$LINENO"; then :
7666 eval $cacheid=yes
7667 else
7668 eval $cacheid=no
7669 fi
7670 rm -f core conftest.err conftest.$ac_objext \
7671 conftest$ac_exeext conftest.$ac_ext
7672 fi
7673
7674
7675 CFLAGS="$xorg_testset_save_CFLAGS"
7676
7677 eval supported=\$$cacheid
7678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7679 $as_echo "$supported" >&6; }
7680 if test "$supported" = "yes" ; then
7681 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7682 found="yes"
7683 fi
7684 fi
7685
7686
7687
7688
7689
7690
7691
7692
7693
7694
7695
7696
7697
7698
7699
7700 xorg_testset_save_CFLAGS="$CFLAGS"
7701
7702 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7703 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7705 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7706 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7707 $as_echo_n "(cached) " >&6
7708 else
7709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7710 /* end confdefs.h. */
7711 int i;
7712 _ACEOF
7713 if ac_fn_c_try_compile "$LINENO"; then :
7714 xorg_cv_cc_flag_unknown_warning_option=yes
7715 else
7716 xorg_cv_cc_flag_unknown_warning_option=no
7717 fi
7718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7719 fi
7720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7721 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7722 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7723 CFLAGS="$xorg_testset_save_CFLAGS"
7724 fi
7725
7726 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7727 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7728 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7729 fi
7730 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7732 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7733 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7734 $as_echo_n "(cached) " >&6
7735 else
7736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7737 /* end confdefs.h. */
7738 int i;
7739 _ACEOF
7740 if ac_fn_c_try_compile "$LINENO"; then :
7741 xorg_cv_cc_flag_unused_command_line_argument=yes
7742 else
7743 xorg_cv_cc_flag_unused_command_line_argument=no
7744 fi
7745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7746 fi
7747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7748 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7749 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7750 CFLAGS="$xorg_testset_save_CFLAGS"
7751 fi
7752
7753 found="no"
7754
7755 if test $found = "no" ; then
7756 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7757 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7758 fi
7759
7760 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7761 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7762 fi
7763
7764 CFLAGS="$CFLAGS -Werror=sequence-point"
7765
7766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
7767 $as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
7768 cacheid=xorg_cv_cc_flag__Werror_sequence_point
7769 if eval \${$cacheid+:} false; then :
7770 $as_echo_n "(cached) " >&6
7771 else
7772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7773 /* end confdefs.h. */
7774 int i;
7775 int
7776 main ()
7777 {
7778
7779 ;
7780 return 0;
7781 }
7782 _ACEOF
7783 if ac_fn_c_try_link "$LINENO"; then :
7784 eval $cacheid=yes
7785 else
7786 eval $cacheid=no
7787 fi
7788 rm -f core conftest.err conftest.$ac_objext \
7789 conftest$ac_exeext conftest.$ac_ext
7790 fi
7791
7792
7793 CFLAGS="$xorg_testset_save_CFLAGS"
7794
7795 eval supported=\$$cacheid
7796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7797 $as_echo "$supported" >&6; }
7798 if test "$supported" = "yes" ; then
7799 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
7800 found="yes"
7801 fi
7802 fi
7803
7804
7805
7806
7807
7808
7809
7810
7811
7812
7813
7814
7815
7816
7817
7818 xorg_testset_save_CFLAGS="$CFLAGS"
7819
7820 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7821 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7823 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7824 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7825 $as_echo_n "(cached) " >&6
7826 else
7827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7828 /* end confdefs.h. */
7829 int i;
7830 _ACEOF
7831 if ac_fn_c_try_compile "$LINENO"; then :
7832 xorg_cv_cc_flag_unknown_warning_option=yes
7833 else
7834 xorg_cv_cc_flag_unknown_warning_option=no
7835 fi
7836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7837 fi
7838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7839 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7840 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7841 CFLAGS="$xorg_testset_save_CFLAGS"
7842 fi
7843
7844 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7845 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7846 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7847 fi
7848 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7850 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7851 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7852 $as_echo_n "(cached) " >&6
7853 else
7854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7855 /* end confdefs.h. */
7856 int i;
7857 _ACEOF
7858 if ac_fn_c_try_compile "$LINENO"; then :
7859 xorg_cv_cc_flag_unused_command_line_argument=yes
7860 else
7861 xorg_cv_cc_flag_unused_command_line_argument=no
7862 fi
7863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7864 fi
7865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7866 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7867 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7868 CFLAGS="$xorg_testset_save_CFLAGS"
7869 fi
7870
7871 found="no"
7872
7873 if test $found = "no" ; then
7874 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7875 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7876 fi
7877
7878 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7879 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7880 fi
7881
7882 CFLAGS="$CFLAGS -Werror=return-type"
7883
7884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
7885 $as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
7886 cacheid=xorg_cv_cc_flag__Werror_return_type
7887 if eval \${$cacheid+:} false; then :
7888 $as_echo_n "(cached) " >&6
7889 else
7890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7891 /* end confdefs.h. */
7892 int i;
7893 int
7894 main ()
7895 {
7896
7897 ;
7898 return 0;
7899 }
7900 _ACEOF
7901 if ac_fn_c_try_link "$LINENO"; then :
7902 eval $cacheid=yes
7903 else
7904 eval $cacheid=no
7905 fi
7906 rm -f core conftest.err conftest.$ac_objext \
7907 conftest$ac_exeext conftest.$ac_ext
7908 fi
7909
7910
7911 CFLAGS="$xorg_testset_save_CFLAGS"
7912
7913 eval supported=\$$cacheid
7914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7915 $as_echo "$supported" >&6; }
7916 if test "$supported" = "yes" ; then
7917 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
7918 found="yes"
7919 fi
7920 fi
7921
7922 if test $found = "no" ; then
7923 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7924 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7925 fi
7926
7927 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7928 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7929 fi
7930
7931 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7932
7933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
7934 $as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
7935 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
7936 if eval \${$cacheid+:} false; then :
7937 $as_echo_n "(cached) " >&6
7938 else
7939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7940 /* end confdefs.h. */
7941 int i;
7942 int
7943 main ()
7944 {
7945
7946 ;
7947 return 0;
7948 }
7949 _ACEOF
7950 if ac_fn_c_try_link "$LINENO"; then :
7951 eval $cacheid=yes
7952 else
7953 eval $cacheid=no
7954 fi
7955 rm -f core conftest.err conftest.$ac_objext \
7956 conftest$ac_exeext conftest.$ac_ext
7957 fi
7958
7959
7960 CFLAGS="$xorg_testset_save_CFLAGS"
7961
7962 eval supported=\$$cacheid
7963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7964 $as_echo "$supported" >&6; }
7965 if test "$supported" = "yes" ; then
7966 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7967 found="yes"
7968 fi
7969 fi
7970
7971
7972
7973
7974
7975
7976
7977
7978
7979
7980
7981
7982
7983
7984
7985 xorg_testset_save_CFLAGS="$CFLAGS"
7986
7987 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7988 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7990 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7991 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7992 $as_echo_n "(cached) " >&6
7993 else
7994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7995 /* end confdefs.h. */
7996 int i;
7997 _ACEOF
7998 if ac_fn_c_try_compile "$LINENO"; then :
7999 xorg_cv_cc_flag_unknown_warning_option=yes
8000 else
8001 xorg_cv_cc_flag_unknown_warning_option=no
8002 fi
8003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8004 fi
8005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8006 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8007 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8008 CFLAGS="$xorg_testset_save_CFLAGS"
8009 fi
8010
8011 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8012 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8013 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8014 fi
8015 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8017 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8018 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8019 $as_echo_n "(cached) " >&6
8020 else
8021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8022 /* end confdefs.h. */
8023 int i;
8024 _ACEOF
8025 if ac_fn_c_try_compile "$LINENO"; then :
8026 xorg_cv_cc_flag_unused_command_line_argument=yes
8027 else
8028 xorg_cv_cc_flag_unused_command_line_argument=no
8029 fi
8030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8031 fi
8032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8033 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8034 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8035 CFLAGS="$xorg_testset_save_CFLAGS"
8036 fi
8037
8038 found="no"
8039
8040 if test $found = "no" ; then
8041 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8042 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8043 fi
8044
8045 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8046 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8047 fi
8048
8049 CFLAGS="$CFLAGS -Werror=trigraphs"
8050
8051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
8052 $as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
8053 cacheid=xorg_cv_cc_flag__Werror_trigraphs
8054 if eval \${$cacheid+:} false; then :
8055 $as_echo_n "(cached) " >&6
8056 else
8057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8058 /* end confdefs.h. */
8059 int i;
8060 int
8061 main ()
8062 {
8063
8064 ;
8065 return 0;
8066 }
8067 _ACEOF
8068 if ac_fn_c_try_link "$LINENO"; then :
8069 eval $cacheid=yes
8070 else
8071 eval $cacheid=no
8072 fi
8073 rm -f core conftest.err conftest.$ac_objext \
8074 conftest$ac_exeext conftest.$ac_ext
8075 fi
8076
8077
8078 CFLAGS="$xorg_testset_save_CFLAGS"
8079
8080 eval supported=\$$cacheid
8081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8082 $as_echo "$supported" >&6; }
8083 if test "$supported" = "yes" ; then
8084 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
8085 found="yes"
8086 fi
8087 fi
8088
8089
8090
8091
8092
8093
8094
8095
8096
8097
8098
8099
8100
8101
8102
8103 xorg_testset_save_CFLAGS="$CFLAGS"
8104
8105 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8106 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8108 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8109 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8110 $as_echo_n "(cached) " >&6
8111 else
8112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8113 /* end confdefs.h. */
8114 int i;
8115 _ACEOF
8116 if ac_fn_c_try_compile "$LINENO"; then :
8117 xorg_cv_cc_flag_unknown_warning_option=yes
8118 else
8119 xorg_cv_cc_flag_unknown_warning_option=no
8120 fi
8121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8122 fi
8123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8124 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8125 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8126 CFLAGS="$xorg_testset_save_CFLAGS"
8127 fi
8128
8129 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8130 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8131 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8132 fi
8133 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8135 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8136 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8137 $as_echo_n "(cached) " >&6
8138 else
8139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8140 /* end confdefs.h. */
8141 int i;
8142 _ACEOF
8143 if ac_fn_c_try_compile "$LINENO"; then :
8144 xorg_cv_cc_flag_unused_command_line_argument=yes
8145 else
8146 xorg_cv_cc_flag_unused_command_line_argument=no
8147 fi
8148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8149 fi
8150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8151 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8152 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8153 CFLAGS="$xorg_testset_save_CFLAGS"
8154 fi
8155
8156 found="no"
8157
8158 if test $found = "no" ; then
8159 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8160 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8161 fi
8162
8163 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8164 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8165 fi
8166
8167 CFLAGS="$CFLAGS -Werror=array-bounds"
8168
8169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
8170 $as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
8171 cacheid=xorg_cv_cc_flag__Werror_array_bounds
8172 if eval \${$cacheid+:} false; then :
8173 $as_echo_n "(cached) " >&6
8174 else
8175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8176 /* end confdefs.h. */
8177 int i;
8178 int
8179 main ()
8180 {
8181
8182 ;
8183 return 0;
8184 }
8185 _ACEOF
8186 if ac_fn_c_try_link "$LINENO"; then :
8187 eval $cacheid=yes
8188 else
8189 eval $cacheid=no
8190 fi
8191 rm -f core conftest.err conftest.$ac_objext \
8192 conftest$ac_exeext conftest.$ac_ext
8193 fi
8194
8195
8196 CFLAGS="$xorg_testset_save_CFLAGS"
8197
8198 eval supported=\$$cacheid
8199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8200 $as_echo "$supported" >&6; }
8201 if test "$supported" = "yes" ; then
8202 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
8203 found="yes"
8204 fi
8205 fi
8206
8207
8208
8209
8210
8211
8212
8213
8214
8215
8216
8217
8218
8219
8220
8221 xorg_testset_save_CFLAGS="$CFLAGS"
8222
8223 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8224 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8226 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8227 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8228 $as_echo_n "(cached) " >&6
8229 else
8230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8231 /* end confdefs.h. */
8232 int i;
8233 _ACEOF
8234 if ac_fn_c_try_compile "$LINENO"; then :
8235 xorg_cv_cc_flag_unknown_warning_option=yes
8236 else
8237 xorg_cv_cc_flag_unknown_warning_option=no
8238 fi
8239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8240 fi
8241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8242 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8243 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8244 CFLAGS="$xorg_testset_save_CFLAGS"
8245 fi
8246
8247 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8248 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8249 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8250 fi
8251 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8253 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8254 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8255 $as_echo_n "(cached) " >&6
8256 else
8257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8258 /* end confdefs.h. */
8259 int i;
8260 _ACEOF
8261 if ac_fn_c_try_compile "$LINENO"; then :
8262 xorg_cv_cc_flag_unused_command_line_argument=yes
8263 else
8264 xorg_cv_cc_flag_unused_command_line_argument=no
8265 fi
8266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8267 fi
8268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8269 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8270 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8271 CFLAGS="$xorg_testset_save_CFLAGS"
8272 fi
8273
8274 found="no"
8275
8276 if test $found = "no" ; then
8277 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8278 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8279 fi
8280
8281 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8282 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8283 fi
8284
8285 CFLAGS="$CFLAGS -Werror=write-strings"
8286
8287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
8288 $as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
8289 cacheid=xorg_cv_cc_flag__Werror_write_strings
8290 if eval \${$cacheid+:} false; then :
8291 $as_echo_n "(cached) " >&6
8292 else
8293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8294 /* end confdefs.h. */
8295 int i;
8296 int
8297 main ()
8298 {
8299
8300 ;
8301 return 0;
8302 }
8303 _ACEOF
8304 if ac_fn_c_try_link "$LINENO"; then :
8305 eval $cacheid=yes
8306 else
8307 eval $cacheid=no
8308 fi
8309 rm -f core conftest.err conftest.$ac_objext \
8310 conftest$ac_exeext conftest.$ac_ext
8311 fi
8312
8313
8314 CFLAGS="$xorg_testset_save_CFLAGS"
8315
8316 eval supported=\$$cacheid
8317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8318 $as_echo "$supported" >&6; }
8319 if test "$supported" = "yes" ; then
8320 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
8321 found="yes"
8322 fi
8323 fi
8324
8325
8326
8327
8328
8329
8330
8331
8332
8333
8334
8335
8336
8337
8338
8339 xorg_testset_save_CFLAGS="$CFLAGS"
8340
8341 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8342 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8344 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8345 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8346 $as_echo_n "(cached) " >&6
8347 else
8348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8349 /* end confdefs.h. */
8350 int i;
8351 _ACEOF
8352 if ac_fn_c_try_compile "$LINENO"; then :
8353 xorg_cv_cc_flag_unknown_warning_option=yes
8354 else
8355 xorg_cv_cc_flag_unknown_warning_option=no
8356 fi
8357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8358 fi
8359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8360 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8361 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8362 CFLAGS="$xorg_testset_save_CFLAGS"
8363 fi
8364
8365 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8366 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8367 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8368 fi
8369 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8371 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8372 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8373 $as_echo_n "(cached) " >&6
8374 else
8375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8376 /* end confdefs.h. */
8377 int i;
8378 _ACEOF
8379 if ac_fn_c_try_compile "$LINENO"; then :
8380 xorg_cv_cc_flag_unused_command_line_argument=yes
8381 else
8382 xorg_cv_cc_flag_unused_command_line_argument=no
8383 fi
8384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8385 fi
8386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8387 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8388 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8389 CFLAGS="$xorg_testset_save_CFLAGS"
8390 fi
8391
8392 found="no"
8393
8394 if test $found = "no" ; then
8395 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8396 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8397 fi
8398
8399 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8400 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8401 fi
8402
8403 CFLAGS="$CFLAGS -Werror=address"
8404
8405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
8406 $as_echo_n "checking if $CC supports -Werror=address... " >&6; }
8407 cacheid=xorg_cv_cc_flag__Werror_address
8408 if eval \${$cacheid+:} false; then :
8409 $as_echo_n "(cached) " >&6
8410 else
8411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8412 /* end confdefs.h. */
8413 int i;
8414 int
8415 main ()
8416 {
8417
8418 ;
8419 return 0;
8420 }
8421 _ACEOF
8422 if ac_fn_c_try_link "$LINENO"; then :
8423 eval $cacheid=yes
8424 else
8425 eval $cacheid=no
8426 fi
8427 rm -f core conftest.err conftest.$ac_objext \
8428 conftest$ac_exeext conftest.$ac_ext
8429 fi
8430
8431
8432 CFLAGS="$xorg_testset_save_CFLAGS"
8433
8434 eval supported=\$$cacheid
8435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8436 $as_echo "$supported" >&6; }
8437 if test "$supported" = "yes" ; then
8438 BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8439 found="yes"
8440 fi
8441 fi
8442
8443
8444
8445
8446
8447
8448
8449
8450
8451
8452
8453
8454
8455
8456
8457 xorg_testset_save_CFLAGS="$CFLAGS"
8458
8459 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8460 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8462 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8463 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8464 $as_echo_n "(cached) " >&6
8465 else
8466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8467 /* end confdefs.h. */
8468 int i;
8469 _ACEOF
8470 if ac_fn_c_try_compile "$LINENO"; then :
8471 xorg_cv_cc_flag_unknown_warning_option=yes
8472 else
8473 xorg_cv_cc_flag_unknown_warning_option=no
8474 fi
8475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8476 fi
8477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8478 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8479 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8480 CFLAGS="$xorg_testset_save_CFLAGS"
8481 fi
8482
8483 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8484 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8485 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8486 fi
8487 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8489 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8490 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8491 $as_echo_n "(cached) " >&6
8492 else
8493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8494 /* end confdefs.h. */
8495 int i;
8496 _ACEOF
8497 if ac_fn_c_try_compile "$LINENO"; then :
8498 xorg_cv_cc_flag_unused_command_line_argument=yes
8499 else
8500 xorg_cv_cc_flag_unused_command_line_argument=no
8501 fi
8502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8503 fi
8504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8505 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8506 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8507 CFLAGS="$xorg_testset_save_CFLAGS"
8508 fi
8509
8510 found="no"
8511
8512 if test $found = "no" ; then
8513 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8514 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8515 fi
8516
8517 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8518 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8519 fi
8520
8521 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8522
8523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
8524 $as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
8525 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
8526 if eval \${$cacheid+:} false; then :
8527 $as_echo_n "(cached) " >&6
8528 else
8529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8530 /* end confdefs.h. */
8531 int i;
8532 int
8533 main ()
8534 {
8535
8536 ;
8537 return 0;
8538 }
8539 _ACEOF
8540 if ac_fn_c_try_link "$LINENO"; then :
8541 eval $cacheid=yes
8542 else
8543 eval $cacheid=no
8544 fi
8545 rm -f core conftest.err conftest.$ac_objext \
8546 conftest$ac_exeext conftest.$ac_ext
8547 fi
8548
8549
8550 CFLAGS="$xorg_testset_save_CFLAGS"
8551
8552 eval supported=\$$cacheid
8553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8554 $as_echo "$supported" >&6; }
8555 if test "$supported" = "yes" ; then
8556 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8557 found="yes"
8558 fi
8559 fi
8560
8561 if test $found = "no" ; then
8562 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8563 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8564 fi
8565
8566 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8567 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8568 fi
8569
8570 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8571
8572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8573 $as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8574 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
8575 if eval \${$cacheid+:} false; then :
8576 $as_echo_n "(cached) " >&6
8577 else
8578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8579 /* end confdefs.h. */
8580 int i;
8581 int
8582 main ()
8583 {
8584
8585 ;
8586 return 0;
8587 }
8588 _ACEOF
8589 if ac_fn_c_try_link "$LINENO"; then :
8590 eval $cacheid=yes
8591 else
8592 eval $cacheid=no
8593 fi
8594 rm -f core conftest.err conftest.$ac_objext \
8595 conftest$ac_exeext conftest.$ac_ext
8596 fi
8597
8598
8599 CFLAGS="$xorg_testset_save_CFLAGS"
8600
8601 eval supported=\$$cacheid
8602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8603 $as_echo "$supported" >&6; }
8604 if test "$supported" = "yes" ; then
8605 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8606 found="yes"
8607 fi
8608 fi
8609
8610
8611
8612
8613
8614
8615
8616
8617
8618
8619
8620
8621
8622
8623
8624 xorg_testset_save_CFLAGS="$CFLAGS"
8625
8626 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8627 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8629 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8630 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8631 $as_echo_n "(cached) " >&6
8632 else
8633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8634 /* end confdefs.h. */
8635 int i;
8636 _ACEOF
8637 if ac_fn_c_try_compile "$LINENO"; then :
8638 xorg_cv_cc_flag_unknown_warning_option=yes
8639 else
8640 xorg_cv_cc_flag_unknown_warning_option=no
8641 fi
8642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8643 fi
8644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8645 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8646 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8647 CFLAGS="$xorg_testset_save_CFLAGS"
8648 fi
8649
8650 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8651 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8652 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8653 fi
8654 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8656 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8657 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8658 $as_echo_n "(cached) " >&6
8659 else
8660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8661 /* end confdefs.h. */
8662 int i;
8663 _ACEOF
8664 if ac_fn_c_try_compile "$LINENO"; then :
8665 xorg_cv_cc_flag_unused_command_line_argument=yes
8666 else
8667 xorg_cv_cc_flag_unused_command_line_argument=no
8668 fi
8669 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8670 fi
8671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8672 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8673 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8674 CFLAGS="$xorg_testset_save_CFLAGS"
8675 fi
8676
8677 found="no"
8678
8679 if test $found = "no" ; then
8680 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8681 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8682 fi
8683
8684 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8685 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8686 fi
8687
8688 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
8689
8690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
8691 $as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
8692 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
8693 if eval \${$cacheid+:} false; then :
8694 $as_echo_n "(cached) " >&6
8695 else
8696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8697 /* end confdefs.h. */
8698 int i;
8699 int
8700 main ()
8701 {
8702
8703 ;
8704 return 0;
8705 }
8706 _ACEOF
8707 if ac_fn_c_try_link "$LINENO"; then :
8708 eval $cacheid=yes
8709 else
8710 eval $cacheid=no
8711 fi
8712 rm -f core conftest.err conftest.$ac_objext \
8713 conftest$ac_exeext conftest.$ac_ext
8714 fi
8715
8716
8717 CFLAGS="$xorg_testset_save_CFLAGS"
8718
8719 eval supported=\$$cacheid
8720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8721 $as_echo "$supported" >&6; }
8722 if test "$supported" = "yes" ; then
8723 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
8724 found="yes"
8725 fi
8726 fi
8727
8728 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
8729 else
8730 { $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
8731 $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;}
8732
8733
8734
8735
8736
8737
8738
8739
8740
8741
8742
8743
8744
8745 xorg_testset_save_CFLAGS="$CFLAGS"
8746
8747 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8748 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8750 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8751 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8752 $as_echo_n "(cached) " >&6
8753 else
8754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8755 /* end confdefs.h. */
8756 int i;
8757 _ACEOF
8758 if ac_fn_c_try_compile "$LINENO"; then :
8759 xorg_cv_cc_flag_unknown_warning_option=yes
8760 else
8761 xorg_cv_cc_flag_unknown_warning_option=no
8762 fi
8763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8764 fi
8765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8766 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8767 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8768 CFLAGS="$xorg_testset_save_CFLAGS"
8769 fi
8770
8771 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8772 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8773 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8774 fi
8775 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8777 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8778 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8779 $as_echo_n "(cached) " >&6
8780 else
8781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8782 /* end confdefs.h. */
8783 int i;
8784 _ACEOF
8785 if ac_fn_c_try_compile "$LINENO"; then :
8786 xorg_cv_cc_flag_unused_command_line_argument=yes
8787 else
8788 xorg_cv_cc_flag_unused_command_line_argument=no
8789 fi
8790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8791 fi
8792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8793 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8794 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8795 CFLAGS="$xorg_testset_save_CFLAGS"
8796 fi
8797
8798 found="no"
8799
8800 if test $found = "no" ; then
8801 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8802 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8803 fi
8804
8805 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8806 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8807 fi
8808
8809 CFLAGS="$CFLAGS -Wimplicit"
8810
8811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
8812 $as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
8813 cacheid=xorg_cv_cc_flag__Wimplicit
8814 if eval \${$cacheid+:} false; then :
8815 $as_echo_n "(cached) " >&6
8816 else
8817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8818 /* end confdefs.h. */
8819 int i;
8820 int
8821 main ()
8822 {
8823
8824 ;
8825 return 0;
8826 }
8827 _ACEOF
8828 if ac_fn_c_try_link "$LINENO"; then :
8829 eval $cacheid=yes
8830 else
8831 eval $cacheid=no
8832 fi
8833 rm -f core conftest.err conftest.$ac_objext \
8834 conftest$ac_exeext conftest.$ac_ext
8835 fi
8836
8837
8838 CFLAGS="$xorg_testset_save_CFLAGS"
8839
8840 eval supported=\$$cacheid
8841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8842 $as_echo "$supported" >&6; }
8843 if test "$supported" = "yes" ; then
8844 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
8845 found="yes"
8846 fi
8847 fi
8848
8849
8850
8851
8852
8853
8854
8855
8856
8857
8858
8859
8860
8861
8862
8863 xorg_testset_save_CFLAGS="$CFLAGS"
8864
8865 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8866 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8868 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8869 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8870 $as_echo_n "(cached) " >&6
8871 else
8872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8873 /* end confdefs.h. */
8874 int i;
8875 _ACEOF
8876 if ac_fn_c_try_compile "$LINENO"; then :
8877 xorg_cv_cc_flag_unknown_warning_option=yes
8878 else
8879 xorg_cv_cc_flag_unknown_warning_option=no
8880 fi
8881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8882 fi
8883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8884 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8885 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8886 CFLAGS="$xorg_testset_save_CFLAGS"
8887 fi
8888
8889 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8890 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8891 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8892 fi
8893 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8895 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8896 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8897 $as_echo_n "(cached) " >&6
8898 else
8899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8900 /* end confdefs.h. */
8901 int i;
8902 _ACEOF
8903 if ac_fn_c_try_compile "$LINENO"; then :
8904 xorg_cv_cc_flag_unused_command_line_argument=yes
8905 else
8906 xorg_cv_cc_flag_unused_command_line_argument=no
8907 fi
8908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8909 fi
8910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8911 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8912 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8913 CFLAGS="$xorg_testset_save_CFLAGS"
8914 fi
8915
8916 found="no"
8917
8918 if test $found = "no" ; then
8919 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8920 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8921 fi
8922
8923 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8924 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8925 fi
8926
8927 CFLAGS="$CFLAGS -Wnonnull"
8928
8929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
8930 $as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
8931 cacheid=xorg_cv_cc_flag__Wnonnull
8932 if eval \${$cacheid+:} false; then :
8933 $as_echo_n "(cached) " >&6
8934 else
8935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8936 /* end confdefs.h. */
8937 int i;
8938 int
8939 main ()
8940 {
8941
8942 ;
8943 return 0;
8944 }
8945 _ACEOF
8946 if ac_fn_c_try_link "$LINENO"; then :
8947 eval $cacheid=yes
8948 else
8949 eval $cacheid=no
8950 fi
8951 rm -f core conftest.err conftest.$ac_objext \
8952 conftest$ac_exeext conftest.$ac_ext
8953 fi
8954
8955
8956 CFLAGS="$xorg_testset_save_CFLAGS"
8957
8958 eval supported=\$$cacheid
8959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8960 $as_echo "$supported" >&6; }
8961 if test "$supported" = "yes" ; then
8962 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
8963 found="yes"
8964 fi
8965 fi
8966
8967
8968
8969
8970
8971
8972
8973
8974
8975
8976
8977
8978
8979
8980
8981 xorg_testset_save_CFLAGS="$CFLAGS"
8982
8983 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8984 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8986 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8987 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8988 $as_echo_n "(cached) " >&6
8989 else
8990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8991 /* end confdefs.h. */
8992 int i;
8993 _ACEOF
8994 if ac_fn_c_try_compile "$LINENO"; then :
8995 xorg_cv_cc_flag_unknown_warning_option=yes
8996 else
8997 xorg_cv_cc_flag_unknown_warning_option=no
8998 fi
8999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9000 fi
9001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9002 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9003 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9004 CFLAGS="$xorg_testset_save_CFLAGS"
9005 fi
9006
9007 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9008 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9009 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9010 fi
9011 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9013 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9014 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9015 $as_echo_n "(cached) " >&6
9016 else
9017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9018 /* end confdefs.h. */
9019 int i;
9020 _ACEOF
9021 if ac_fn_c_try_compile "$LINENO"; then :
9022 xorg_cv_cc_flag_unused_command_line_argument=yes
9023 else
9024 xorg_cv_cc_flag_unused_command_line_argument=no
9025 fi
9026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9027 fi
9028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9029 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9030 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9031 CFLAGS="$xorg_testset_save_CFLAGS"
9032 fi
9033
9034 found="no"
9035
9036 if test $found = "no" ; then
9037 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9038 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9039 fi
9040
9041 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9042 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9043 fi
9044
9045 CFLAGS="$CFLAGS -Winit-self"
9046
9047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
9048 $as_echo_n "checking if $CC supports -Winit-self... " >&6; }
9049 cacheid=xorg_cv_cc_flag__Winit_self
9050 if eval \${$cacheid+:} false; then :
9051 $as_echo_n "(cached) " >&6
9052 else
9053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9054 /* end confdefs.h. */
9055 int i;
9056 int
9057 main ()
9058 {
9059
9060 ;
9061 return 0;
9062 }
9063 _ACEOF
9064 if ac_fn_c_try_link "$LINENO"; then :
9065 eval $cacheid=yes
9066 else
9067 eval $cacheid=no
9068 fi
9069 rm -f core conftest.err conftest.$ac_objext \
9070 conftest$ac_exeext conftest.$ac_ext
9071 fi
9072
9073
9074 CFLAGS="$xorg_testset_save_CFLAGS"
9075
9076 eval supported=\$$cacheid
9077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9078 $as_echo "$supported" >&6; }
9079 if test "$supported" = "yes" ; then
9080 BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
9081 found="yes"
9082 fi
9083 fi
9084
9085
9086
9087
9088
9089
9090
9091
9092
9093
9094
9095
9096
9097
9098
9099 xorg_testset_save_CFLAGS="$CFLAGS"
9100
9101 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9102 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9104 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9105 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9106 $as_echo_n "(cached) " >&6
9107 else
9108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9109 /* end confdefs.h. */
9110 int i;
9111 _ACEOF
9112 if ac_fn_c_try_compile "$LINENO"; then :
9113 xorg_cv_cc_flag_unknown_warning_option=yes
9114 else
9115 xorg_cv_cc_flag_unknown_warning_option=no
9116 fi
9117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9118 fi
9119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9120 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9121 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9122 CFLAGS="$xorg_testset_save_CFLAGS"
9123 fi
9124
9125 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9126 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9127 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9128 fi
9129 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9131 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9132 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9133 $as_echo_n "(cached) " >&6
9134 else
9135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9136 /* end confdefs.h. */
9137 int i;
9138 _ACEOF
9139 if ac_fn_c_try_compile "$LINENO"; then :
9140 xorg_cv_cc_flag_unused_command_line_argument=yes
9141 else
9142 xorg_cv_cc_flag_unused_command_line_argument=no
9143 fi
9144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9145 fi
9146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9147 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9148 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9149 CFLAGS="$xorg_testset_save_CFLAGS"
9150 fi
9151
9152 found="no"
9153
9154 if test $found = "no" ; then
9155 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9156 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9157 fi
9158
9159 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9160 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9161 fi
9162
9163 CFLAGS="$CFLAGS -Wmain"
9164
9165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
9166 $as_echo_n "checking if $CC supports -Wmain... " >&6; }
9167 cacheid=xorg_cv_cc_flag__Wmain
9168 if eval \${$cacheid+:} false; then :
9169 $as_echo_n "(cached) " >&6
9170 else
9171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9172 /* end confdefs.h. */
9173 int i;
9174 int
9175 main ()
9176 {
9177
9178 ;
9179 return 0;
9180 }
9181 _ACEOF
9182 if ac_fn_c_try_link "$LINENO"; then :
9183 eval $cacheid=yes
9184 else
9185 eval $cacheid=no
9186 fi
9187 rm -f core conftest.err conftest.$ac_objext \
9188 conftest$ac_exeext conftest.$ac_ext
9189 fi
9190
9191
9192 CFLAGS="$xorg_testset_save_CFLAGS"
9193
9194 eval supported=\$$cacheid
9195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9196 $as_echo "$supported" >&6; }
9197 if test "$supported" = "yes" ; then
9198 BASE_CFLAGS="$BASE_CFLAGS -Wmain"
9199 found="yes"
9200 fi
9201 fi
9202
9203
9204
9205
9206
9207
9208
9209
9210
9211
9212
9213
9214
9215
9216
9217 xorg_testset_save_CFLAGS="$CFLAGS"
9218
9219 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9220 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9222 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9223 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9224 $as_echo_n "(cached) " >&6
9225 else
9226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9227 /* end confdefs.h. */
9228 int i;
9229 _ACEOF
9230 if ac_fn_c_try_compile "$LINENO"; then :
9231 xorg_cv_cc_flag_unknown_warning_option=yes
9232 else
9233 xorg_cv_cc_flag_unknown_warning_option=no
9234 fi
9235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9236 fi
9237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9238 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9239 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9240 CFLAGS="$xorg_testset_save_CFLAGS"
9241 fi
9242
9243 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9244 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9245 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9246 fi
9247 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9249 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9250 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9251 $as_echo_n "(cached) " >&6
9252 else
9253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9254 /* end confdefs.h. */
9255 int i;
9256 _ACEOF
9257 if ac_fn_c_try_compile "$LINENO"; then :
9258 xorg_cv_cc_flag_unused_command_line_argument=yes
9259 else
9260 xorg_cv_cc_flag_unused_command_line_argument=no
9261 fi
9262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9263 fi
9264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9265 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9266 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9267 CFLAGS="$xorg_testset_save_CFLAGS"
9268 fi
9269
9270 found="no"
9271
9272 if test $found = "no" ; then
9273 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9274 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9275 fi
9276
9277 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9278 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9279 fi
9280
9281 CFLAGS="$CFLAGS -Wmissing-braces"
9282
9283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
9284 $as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
9285 cacheid=xorg_cv_cc_flag__Wmissing_braces
9286 if eval \${$cacheid+:} false; then :
9287 $as_echo_n "(cached) " >&6
9288 else
9289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9290 /* end confdefs.h. */
9291 int i;
9292 int
9293 main ()
9294 {
9295
9296 ;
9297 return 0;
9298 }
9299 _ACEOF
9300 if ac_fn_c_try_link "$LINENO"; then :
9301 eval $cacheid=yes
9302 else
9303 eval $cacheid=no
9304 fi
9305 rm -f core conftest.err conftest.$ac_objext \
9306 conftest$ac_exeext conftest.$ac_ext
9307 fi
9308
9309
9310 CFLAGS="$xorg_testset_save_CFLAGS"
9311
9312 eval supported=\$$cacheid
9313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9314 $as_echo "$supported" >&6; }
9315 if test "$supported" = "yes" ; then
9316 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
9317 found="yes"
9318 fi
9319 fi
9320
9321
9322
9323
9324
9325
9326
9327
9328
9329
9330
9331
9332
9333
9334
9335 xorg_testset_save_CFLAGS="$CFLAGS"
9336
9337 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9338 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9340 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9341 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9342 $as_echo_n "(cached) " >&6
9343 else
9344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9345 /* end confdefs.h. */
9346 int i;
9347 _ACEOF
9348 if ac_fn_c_try_compile "$LINENO"; then :
9349 xorg_cv_cc_flag_unknown_warning_option=yes
9350 else
9351 xorg_cv_cc_flag_unknown_warning_option=no
9352 fi
9353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9354 fi
9355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9356 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9357 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9358 CFLAGS="$xorg_testset_save_CFLAGS"
9359 fi
9360
9361 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9362 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9363 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9364 fi
9365 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9367 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9368 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9369 $as_echo_n "(cached) " >&6
9370 else
9371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9372 /* end confdefs.h. */
9373 int i;
9374 _ACEOF
9375 if ac_fn_c_try_compile "$LINENO"; then :
9376 xorg_cv_cc_flag_unused_command_line_argument=yes
9377 else
9378 xorg_cv_cc_flag_unused_command_line_argument=no
9379 fi
9380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9381 fi
9382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9383 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9384 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9385 CFLAGS="$xorg_testset_save_CFLAGS"
9386 fi
9387
9388 found="no"
9389
9390 if test $found = "no" ; then
9391 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9392 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9393 fi
9394
9395 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9396 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9397 fi
9398
9399 CFLAGS="$CFLAGS -Wsequence-point"
9400
9401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
9402 $as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
9403 cacheid=xorg_cv_cc_flag__Wsequence_point
9404 if eval \${$cacheid+:} false; then :
9405 $as_echo_n "(cached) " >&6
9406 else
9407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9408 /* end confdefs.h. */
9409 int i;
9410 int
9411 main ()
9412 {
9413
9414 ;
9415 return 0;
9416 }
9417 _ACEOF
9418 if ac_fn_c_try_link "$LINENO"; then :
9419 eval $cacheid=yes
9420 else
9421 eval $cacheid=no
9422 fi
9423 rm -f core conftest.err conftest.$ac_objext \
9424 conftest$ac_exeext conftest.$ac_ext
9425 fi
9426
9427
9428 CFLAGS="$xorg_testset_save_CFLAGS"
9429
9430 eval supported=\$$cacheid
9431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9432 $as_echo "$supported" >&6; }
9433 if test "$supported" = "yes" ; then
9434 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9435 found="yes"
9436 fi
9437 fi
9438
9439
9440
9441
9442
9443
9444
9445
9446
9447
9448
9449
9450
9451
9452
9453 xorg_testset_save_CFLAGS="$CFLAGS"
9454
9455 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9456 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9458 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9459 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9460 $as_echo_n "(cached) " >&6
9461 else
9462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9463 /* end confdefs.h. */
9464 int i;
9465 _ACEOF
9466 if ac_fn_c_try_compile "$LINENO"; then :
9467 xorg_cv_cc_flag_unknown_warning_option=yes
9468 else
9469 xorg_cv_cc_flag_unknown_warning_option=no
9470 fi
9471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9472 fi
9473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9474 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9475 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9476 CFLAGS="$xorg_testset_save_CFLAGS"
9477 fi
9478
9479 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9480 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9481 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9482 fi
9483 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9485 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9486 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9487 $as_echo_n "(cached) " >&6
9488 else
9489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9490 /* end confdefs.h. */
9491 int i;
9492 _ACEOF
9493 if ac_fn_c_try_compile "$LINENO"; then :
9494 xorg_cv_cc_flag_unused_command_line_argument=yes
9495 else
9496 xorg_cv_cc_flag_unused_command_line_argument=no
9497 fi
9498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9499 fi
9500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9501 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9502 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9503 CFLAGS="$xorg_testset_save_CFLAGS"
9504 fi
9505
9506 found="no"
9507
9508 if test $found = "no" ; then
9509 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9510 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9511 fi
9512
9513 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9514 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9515 fi
9516
9517 CFLAGS="$CFLAGS -Wreturn-type"
9518
9519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
9520 $as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
9521 cacheid=xorg_cv_cc_flag__Wreturn_type
9522 if eval \${$cacheid+:} false; then :
9523 $as_echo_n "(cached) " >&6
9524 else
9525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9526 /* end confdefs.h. */
9527 int i;
9528 int
9529 main ()
9530 {
9531
9532 ;
9533 return 0;
9534 }
9535 _ACEOF
9536 if ac_fn_c_try_link "$LINENO"; then :
9537 eval $cacheid=yes
9538 else
9539 eval $cacheid=no
9540 fi
9541 rm -f core conftest.err conftest.$ac_objext \
9542 conftest$ac_exeext conftest.$ac_ext
9543 fi
9544
9545
9546 CFLAGS="$xorg_testset_save_CFLAGS"
9547
9548 eval supported=\$$cacheid
9549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9550 $as_echo "$supported" >&6; }
9551 if test "$supported" = "yes" ; then
9552 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9553 found="yes"
9554 fi
9555 fi
9556
9557
9558
9559
9560
9561
9562
9563
9564
9565
9566
9567
9568
9569
9570
9571 xorg_testset_save_CFLAGS="$CFLAGS"
9572
9573 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9574 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9576 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9577 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9578 $as_echo_n "(cached) " >&6
9579 else
9580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9581 /* end confdefs.h. */
9582 int i;
9583 _ACEOF
9584 if ac_fn_c_try_compile "$LINENO"; then :
9585 xorg_cv_cc_flag_unknown_warning_option=yes
9586 else
9587 xorg_cv_cc_flag_unknown_warning_option=no
9588 fi
9589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9590 fi
9591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9592 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9593 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9594 CFLAGS="$xorg_testset_save_CFLAGS"
9595 fi
9596
9597 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9598 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9599 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9600 fi
9601 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9603 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9604 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9605 $as_echo_n "(cached) " >&6
9606 else
9607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9608 /* end confdefs.h. */
9609 int i;
9610 _ACEOF
9611 if ac_fn_c_try_compile "$LINENO"; then :
9612 xorg_cv_cc_flag_unused_command_line_argument=yes
9613 else
9614 xorg_cv_cc_flag_unused_command_line_argument=no
9615 fi
9616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9617 fi
9618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9619 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9620 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9621 CFLAGS="$xorg_testset_save_CFLAGS"
9622 fi
9623
9624 found="no"
9625
9626 if test $found = "no" ; then
9627 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9628 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9629 fi
9630
9631 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9632 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9633 fi
9634
9635 CFLAGS="$CFLAGS -Wtrigraphs"
9636
9637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
9638 $as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
9639 cacheid=xorg_cv_cc_flag__Wtrigraphs
9640 if eval \${$cacheid+:} false; then :
9641 $as_echo_n "(cached) " >&6
9642 else
9643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9644 /* end confdefs.h. */
9645 int i;
9646 int
9647 main ()
9648 {
9649
9650 ;
9651 return 0;
9652 }
9653 _ACEOF
9654 if ac_fn_c_try_link "$LINENO"; then :
9655 eval $cacheid=yes
9656 else
9657 eval $cacheid=no
9658 fi
9659 rm -f core conftest.err conftest.$ac_objext \
9660 conftest$ac_exeext conftest.$ac_ext
9661 fi
9662
9663
9664 CFLAGS="$xorg_testset_save_CFLAGS"
9665
9666 eval supported=\$$cacheid
9667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9668 $as_echo "$supported" >&6; }
9669 if test "$supported" = "yes" ; then
9670 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
9671 found="yes"
9672 fi
9673 fi
9674
9675
9676
9677
9678
9679
9680
9681
9682
9683
9684
9685
9686
9687
9688
9689 xorg_testset_save_CFLAGS="$CFLAGS"
9690
9691 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9692 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9694 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9695 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9696 $as_echo_n "(cached) " >&6
9697 else
9698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9699 /* end confdefs.h. */
9700 int i;
9701 _ACEOF
9702 if ac_fn_c_try_compile "$LINENO"; then :
9703 xorg_cv_cc_flag_unknown_warning_option=yes
9704 else
9705 xorg_cv_cc_flag_unknown_warning_option=no
9706 fi
9707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9708 fi
9709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9710 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9711 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9712 CFLAGS="$xorg_testset_save_CFLAGS"
9713 fi
9714
9715 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9716 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9717 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9718 fi
9719 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9721 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9722 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9723 $as_echo_n "(cached) " >&6
9724 else
9725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9726 /* end confdefs.h. */
9727 int i;
9728 _ACEOF
9729 if ac_fn_c_try_compile "$LINENO"; then :
9730 xorg_cv_cc_flag_unused_command_line_argument=yes
9731 else
9732 xorg_cv_cc_flag_unused_command_line_argument=no
9733 fi
9734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9735 fi
9736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9737 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9738 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9739 CFLAGS="$xorg_testset_save_CFLAGS"
9740 fi
9741
9742 found="no"
9743
9744 if test $found = "no" ; then
9745 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9746 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9747 fi
9748
9749 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9750 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9751 fi
9752
9753 CFLAGS="$CFLAGS -Warray-bounds"
9754
9755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
9756 $as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
9757 cacheid=xorg_cv_cc_flag__Warray_bounds
9758 if eval \${$cacheid+:} false; then :
9759 $as_echo_n "(cached) " >&6
9760 else
9761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9762 /* end confdefs.h. */
9763 int i;
9764 int
9765 main ()
9766 {
9767
9768 ;
9769 return 0;
9770 }
9771 _ACEOF
9772 if ac_fn_c_try_link "$LINENO"; then :
9773 eval $cacheid=yes
9774 else
9775 eval $cacheid=no
9776 fi
9777 rm -f core conftest.err conftest.$ac_objext \
9778 conftest$ac_exeext conftest.$ac_ext
9779 fi
9780
9781
9782 CFLAGS="$xorg_testset_save_CFLAGS"
9783
9784 eval supported=\$$cacheid
9785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9786 $as_echo "$supported" >&6; }
9787 if test "$supported" = "yes" ; then
9788 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
9789 found="yes"
9790 fi
9791 fi
9792
9793
9794
9795
9796
9797
9798
9799
9800
9801
9802
9803
9804
9805
9806
9807 xorg_testset_save_CFLAGS="$CFLAGS"
9808
9809 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9810 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9812 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9813 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9814 $as_echo_n "(cached) " >&6
9815 else
9816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9817 /* end confdefs.h. */
9818 int i;
9819 _ACEOF
9820 if ac_fn_c_try_compile "$LINENO"; then :
9821 xorg_cv_cc_flag_unknown_warning_option=yes
9822 else
9823 xorg_cv_cc_flag_unknown_warning_option=no
9824 fi
9825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9826 fi
9827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9828 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9829 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9830 CFLAGS="$xorg_testset_save_CFLAGS"
9831 fi
9832
9833 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9834 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9835 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9836 fi
9837 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9839 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9840 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9841 $as_echo_n "(cached) " >&6
9842 else
9843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9844 /* end confdefs.h. */
9845 int i;
9846 _ACEOF
9847 if ac_fn_c_try_compile "$LINENO"; then :
9848 xorg_cv_cc_flag_unused_command_line_argument=yes
9849 else
9850 xorg_cv_cc_flag_unused_command_line_argument=no
9851 fi
9852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9853 fi
9854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9855 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9856 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9857 CFLAGS="$xorg_testset_save_CFLAGS"
9858 fi
9859
9860 found="no"
9861
9862 if test $found = "no" ; then
9863 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9864 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9865 fi
9866
9867 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9868 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9869 fi
9870
9871 CFLAGS="$CFLAGS -Wwrite-strings"
9872
9873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
9874 $as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
9875 cacheid=xorg_cv_cc_flag__Wwrite_strings
9876 if eval \${$cacheid+:} false; then :
9877 $as_echo_n "(cached) " >&6
9878 else
9879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9880 /* end confdefs.h. */
9881 int i;
9882 int
9883 main ()
9884 {
9885
9886 ;
9887 return 0;
9888 }
9889 _ACEOF
9890 if ac_fn_c_try_link "$LINENO"; then :
9891 eval $cacheid=yes
9892 else
9893 eval $cacheid=no
9894 fi
9895 rm -f core conftest.err conftest.$ac_objext \
9896 conftest$ac_exeext conftest.$ac_ext
9897 fi
9898
9899
9900 CFLAGS="$xorg_testset_save_CFLAGS"
9901
9902 eval supported=\$$cacheid
9903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9904 $as_echo "$supported" >&6; }
9905 if test "$supported" = "yes" ; then
9906 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
9907 found="yes"
9908 fi
9909 fi
9910
9911
9912
9913
9914
9915
9916
9917
9918
9919
9920
9921
9922
9923
9924
9925 xorg_testset_save_CFLAGS="$CFLAGS"
9926
9927 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9928 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9930 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9931 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9932 $as_echo_n "(cached) " >&6
9933 else
9934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9935 /* end confdefs.h. */
9936 int i;
9937 _ACEOF
9938 if ac_fn_c_try_compile "$LINENO"; then :
9939 xorg_cv_cc_flag_unknown_warning_option=yes
9940 else
9941 xorg_cv_cc_flag_unknown_warning_option=no
9942 fi
9943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9944 fi
9945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9946 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9947 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9948 CFLAGS="$xorg_testset_save_CFLAGS"
9949 fi
9950
9951 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9952 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9953 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9954 fi
9955 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9957 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9958 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9959 $as_echo_n "(cached) " >&6
9960 else
9961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9962 /* end confdefs.h. */
9963 int i;
9964 _ACEOF
9965 if ac_fn_c_try_compile "$LINENO"; then :
9966 xorg_cv_cc_flag_unused_command_line_argument=yes
9967 else
9968 xorg_cv_cc_flag_unused_command_line_argument=no
9969 fi
9970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9971 fi
9972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9973 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9974 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9975 CFLAGS="$xorg_testset_save_CFLAGS"
9976 fi
9977
9978 found="no"
9979
9980 if test $found = "no" ; then
9981 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9982 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9983 fi
9984
9985 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9986 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9987 fi
9988
9989 CFLAGS="$CFLAGS -Waddress"
9990
9991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
9992 $as_echo_n "checking if $CC supports -Waddress... " >&6; }
9993 cacheid=xorg_cv_cc_flag__Waddress
9994 if eval \${$cacheid+:} false; then :
9995 $as_echo_n "(cached) " >&6
9996 else
9997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9998 /* end confdefs.h. */
9999 int i;
10000 int
10001 main ()
10002 {
10003
10004 ;
10005 return 0;
10006 }
10007 _ACEOF
10008 if ac_fn_c_try_link "$LINENO"; then :
10009 eval $cacheid=yes
10010 else
10011 eval $cacheid=no
10012 fi
10013 rm -f core conftest.err conftest.$ac_objext \
10014 conftest$ac_exeext conftest.$ac_ext
10015 fi
10016
10017
10018 CFLAGS="$xorg_testset_save_CFLAGS"
10019
10020 eval supported=\$$cacheid
10021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10022 $as_echo "$supported" >&6; }
10023 if test "$supported" = "yes" ; then
10024 BASE_CFLAGS="$BASE_CFLAGS -Waddress"
10025 found="yes"
10026 fi
10027 fi
10028
10029
10030
10031
10032
10033
10034
10035
10036
10037
10038
10039
10040
10041
10042
10043 xorg_testset_save_CFLAGS="$CFLAGS"
10044
10045 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10046 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10048 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10049 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10050 $as_echo_n "(cached) " >&6
10051 else
10052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10053 /* end confdefs.h. */
10054 int i;
10055 _ACEOF
10056 if ac_fn_c_try_compile "$LINENO"; then :
10057 xorg_cv_cc_flag_unknown_warning_option=yes
10058 else
10059 xorg_cv_cc_flag_unknown_warning_option=no
10060 fi
10061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10062 fi
10063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10064 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10065 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10066 CFLAGS="$xorg_testset_save_CFLAGS"
10067 fi
10068
10069 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10070 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10071 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10072 fi
10073 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10075 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10076 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10077 $as_echo_n "(cached) " >&6
10078 else
10079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10080 /* end confdefs.h. */
10081 int i;
10082 _ACEOF
10083 if ac_fn_c_try_compile "$LINENO"; then :
10084 xorg_cv_cc_flag_unused_command_line_argument=yes
10085 else
10086 xorg_cv_cc_flag_unused_command_line_argument=no
10087 fi
10088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10089 fi
10090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10091 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10092 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10093 CFLAGS="$xorg_testset_save_CFLAGS"
10094 fi
10095
10096 found="no"
10097
10098 if test $found = "no" ; then
10099 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10100 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10101 fi
10102
10103 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10104 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10105 fi
10106
10107 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
10108
10109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
10110 $as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
10111 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
10112 if eval \${$cacheid+:} false; then :
10113 $as_echo_n "(cached) " >&6
10114 else
10115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10116 /* end confdefs.h. */
10117 int i;
10118 int
10119 main ()
10120 {
10121
10122 ;
10123 return 0;
10124 }
10125 _ACEOF
10126 if ac_fn_c_try_link "$LINENO"; then :
10127 eval $cacheid=yes
10128 else
10129 eval $cacheid=no
10130 fi
10131 rm -f core conftest.err conftest.$ac_objext \
10132 conftest$ac_exeext conftest.$ac_ext
10133 fi
10134
10135
10136 CFLAGS="$xorg_testset_save_CFLAGS"
10137
10138 eval supported=\$$cacheid
10139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10140 $as_echo "$supported" >&6; }
10141 if test "$supported" = "yes" ; then
10142 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
10143 found="yes"
10144 fi
10145 fi
10146
10147
10148
10149
10150
10151
10152
10153
10154
10155
10156
10157
10158
10159
10160
10161 xorg_testset_save_CFLAGS="$CFLAGS"
10162
10163 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10164 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10166 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10167 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10168 $as_echo_n "(cached) " >&6
10169 else
10170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10171 /* end confdefs.h. */
10172 int i;
10173 _ACEOF
10174 if ac_fn_c_try_compile "$LINENO"; then :
10175 xorg_cv_cc_flag_unknown_warning_option=yes
10176 else
10177 xorg_cv_cc_flag_unknown_warning_option=no
10178 fi
10179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10180 fi
10181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10182 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10183 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10184 CFLAGS="$xorg_testset_save_CFLAGS"
10185 fi
10186
10187 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10188 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10189 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10190 fi
10191 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10193 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10194 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10195 $as_echo_n "(cached) " >&6
10196 else
10197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10198 /* end confdefs.h. */
10199 int i;
10200 _ACEOF
10201 if ac_fn_c_try_compile "$LINENO"; then :
10202 xorg_cv_cc_flag_unused_command_line_argument=yes
10203 else
10204 xorg_cv_cc_flag_unused_command_line_argument=no
10205 fi
10206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10207 fi
10208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10209 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10210 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10211 CFLAGS="$xorg_testset_save_CFLAGS"
10212 fi
10213
10214 found="no"
10215
10216 if test $found = "no" ; then
10217 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10218 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10219 fi
10220
10221 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10222 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10223 fi
10224
10225 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
10226
10227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
10228 $as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
10229 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
10230 if eval \${$cacheid+:} false; then :
10231 $as_echo_n "(cached) " >&6
10232 else
10233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10234 /* end confdefs.h. */
10235 int i;
10236 int
10237 main ()
10238 {
10239
10240 ;
10241 return 0;
10242 }
10243 _ACEOF
10244 if ac_fn_c_try_link "$LINENO"; then :
10245 eval $cacheid=yes
10246 else
10247 eval $cacheid=no
10248 fi
10249 rm -f core conftest.err conftest.$ac_objext \
10250 conftest$ac_exeext conftest.$ac_ext
10251 fi
10252
10253
10254 CFLAGS="$xorg_testset_save_CFLAGS"
10255
10256 eval supported=\$$cacheid
10257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10258 $as_echo "$supported" >&6; }
10259 if test "$supported" = "yes" ; then
10260 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
10261 found="yes"
10262 fi
10263 fi
10264
10265
10266 fi
10267
10268
10269
10270
10271
10272
10273
10274 CWARNFLAGS="$BASE_CFLAGS"
10275 if test "x$GCC" = xyes ; then
10276 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
10277 fi
10278
10279
10280
10281
10282
10283
10284
10285
10286 # Check whether --enable-strict-compilation was given.
10287 if test "${enable_strict_compilation+set}" = set; then :
10288 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
10289 else
10290 STRICT_COMPILE=no
10291 fi
10292
10293
10294
10295
10296
10297
10298 STRICT_CFLAGS=""
10299
10300
10301
10302
10303
10304
10305
10306
10307
10308
10309
10310
10311
10312 xorg_testset_save_CFLAGS="$CFLAGS"
10313
10314 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10315 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10317 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10318 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10319 $as_echo_n "(cached) " >&6
10320 else
10321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10322 /* end confdefs.h. */
10323 int i;
10324 _ACEOF
10325 if ac_fn_c_try_compile "$LINENO"; then :
10326 xorg_cv_cc_flag_unknown_warning_option=yes
10327 else
10328 xorg_cv_cc_flag_unknown_warning_option=no
10329 fi
10330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10331 fi
10332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10333 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10334 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10335 CFLAGS="$xorg_testset_save_CFLAGS"
10336 fi
10337
10338 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10339 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10340 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10341 fi
10342 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10344 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10345 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10346 $as_echo_n "(cached) " >&6
10347 else
10348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10349 /* end confdefs.h. */
10350 int i;
10351 _ACEOF
10352 if ac_fn_c_try_compile "$LINENO"; then :
10353 xorg_cv_cc_flag_unused_command_line_argument=yes
10354 else
10355 xorg_cv_cc_flag_unused_command_line_argument=no
10356 fi
10357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10358 fi
10359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10360 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10361 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10362 CFLAGS="$xorg_testset_save_CFLAGS"
10363 fi
10364
10365 found="no"
10366
10367 if test $found = "no" ; then
10368 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10369 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10370 fi
10371
10372 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10373 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10374 fi
10375
10376 CFLAGS="$CFLAGS -pedantic"
10377
10378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
10379 $as_echo_n "checking if $CC supports -pedantic... " >&6; }
10380 cacheid=xorg_cv_cc_flag__pedantic
10381 if eval \${$cacheid+:} false; then :
10382 $as_echo_n "(cached) " >&6
10383 else
10384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10385 /* end confdefs.h. */
10386 int i;
10387 int
10388 main ()
10389 {
10390
10391 ;
10392 return 0;
10393 }
10394 _ACEOF
10395 if ac_fn_c_try_link "$LINENO"; then :
10396 eval $cacheid=yes
10397 else
10398 eval $cacheid=no
10399 fi
10400 rm -f core conftest.err conftest.$ac_objext \
10401 conftest$ac_exeext conftest.$ac_ext
10402 fi
10403
10404
10405 CFLAGS="$xorg_testset_save_CFLAGS"
10406
10407 eval supported=\$$cacheid
10408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10409 $as_echo "$supported" >&6; }
10410 if test "$supported" = "yes" ; then
10411 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
10412 found="yes"
10413 fi
10414 fi
10415
10416
10417
10418
10419
10420
10421
10422
10423
10424
10425
10426
10427
10428
10429
10430 xorg_testset_save_CFLAGS="$CFLAGS"
10431
10432 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10433 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10435 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10436 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10437 $as_echo_n "(cached) " >&6
10438 else
10439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10440 /* end confdefs.h. */
10441 int i;
10442 _ACEOF
10443 if ac_fn_c_try_compile "$LINENO"; then :
10444 xorg_cv_cc_flag_unknown_warning_option=yes
10445 else
10446 xorg_cv_cc_flag_unknown_warning_option=no
10447 fi
10448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10449 fi
10450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10451 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10452 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10453 CFLAGS="$xorg_testset_save_CFLAGS"
10454 fi
10455
10456 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10457 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10458 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10459 fi
10460 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10462 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10463 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10464 $as_echo_n "(cached) " >&6
10465 else
10466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10467 /* end confdefs.h. */
10468 int i;
10469 _ACEOF
10470 if ac_fn_c_try_compile "$LINENO"; then :
10471 xorg_cv_cc_flag_unused_command_line_argument=yes
10472 else
10473 xorg_cv_cc_flag_unused_command_line_argument=no
10474 fi
10475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10476 fi
10477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10478 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10479 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10480 CFLAGS="$xorg_testset_save_CFLAGS"
10481 fi
10482
10483 found="no"
10484
10485 if test $found = "no" ; then
10486 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10487 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10488 fi
10489
10490 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10491 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10492 fi
10493
10494 CFLAGS="$CFLAGS -Werror"
10495
10496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
10497 $as_echo_n "checking if $CC supports -Werror... " >&6; }
10498 cacheid=xorg_cv_cc_flag__Werror
10499 if eval \${$cacheid+:} false; then :
10500 $as_echo_n "(cached) " >&6
10501 else
10502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10503 /* end confdefs.h. */
10504 int i;
10505 int
10506 main ()
10507 {
10508
10509 ;
10510 return 0;
10511 }
10512 _ACEOF
10513 if ac_fn_c_try_link "$LINENO"; then :
10514 eval $cacheid=yes
10515 else
10516 eval $cacheid=no
10517 fi
10518 rm -f core conftest.err conftest.$ac_objext \
10519 conftest$ac_exeext conftest.$ac_ext
10520 fi
10521
10522
10523 CFLAGS="$xorg_testset_save_CFLAGS"
10524
10525 eval supported=\$$cacheid
10526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10527 $as_echo "$supported" >&6; }
10528 if test "$supported" = "yes" ; then
10529 STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
10530 found="yes"
10531 fi
10532 fi
10533
10534 if test $found = "no" ; then
10535 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10536 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10537 fi
10538
10539 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10540 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10541 fi
10542
10543 CFLAGS="$CFLAGS -errwarn"
10544
10545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
10546 $as_echo_n "checking if $CC supports -errwarn... " >&6; }
10547 cacheid=xorg_cv_cc_flag__errwarn
10548 if eval \${$cacheid+:} false; then :
10549 $as_echo_n "(cached) " >&6
10550 else
10551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10552 /* end confdefs.h. */
10553 int i;
10554 int
10555 main ()
10556 {
10557
10558 ;
10559 return 0;
10560 }
10561 _ACEOF
10562 if ac_fn_c_try_link "$LINENO"; then :
10563 eval $cacheid=yes
10564 else
10565 eval $cacheid=no
10566 fi
10567 rm -f core conftest.err conftest.$ac_objext \
10568 conftest$ac_exeext conftest.$ac_ext
10569 fi
10570
10571
10572 CFLAGS="$xorg_testset_save_CFLAGS"
10573
10574 eval supported=\$$cacheid
10575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10576 $as_echo "$supported" >&6; }
10577 if test "$supported" = "yes" ; then
10578 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
10579 found="yes"
10580 fi
10581 fi
10582
10583
10584
10585 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
10586 # activate it with -Werror, so we add it here explicitly.
10587
10588
10589
10590
10591
10592
10593
10594
10595
10596
10597
10598
10599
10600 xorg_testset_save_CFLAGS="$CFLAGS"
10601
10602 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10603 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10605 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10606 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10607 $as_echo_n "(cached) " >&6
10608 else
10609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10610 /* end confdefs.h. */
10611 int i;
10612 _ACEOF
10613 if ac_fn_c_try_compile "$LINENO"; then :
10614 xorg_cv_cc_flag_unknown_warning_option=yes
10615 else
10616 xorg_cv_cc_flag_unknown_warning_option=no
10617 fi
10618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10619 fi
10620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10621 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10622 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10623 CFLAGS="$xorg_testset_save_CFLAGS"
10624 fi
10625
10626 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10627 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10628 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10629 fi
10630 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10632 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10633 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10634 $as_echo_n "(cached) " >&6
10635 else
10636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10637 /* end confdefs.h. */
10638 int i;
10639 _ACEOF
10640 if ac_fn_c_try_compile "$LINENO"; then :
10641 xorg_cv_cc_flag_unused_command_line_argument=yes
10642 else
10643 xorg_cv_cc_flag_unused_command_line_argument=no
10644 fi
10645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10646 fi
10647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10648 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10649 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10650 CFLAGS="$xorg_testset_save_CFLAGS"
10651 fi
10652
10653 found="no"
10654
10655 if test $found = "no" ; then
10656 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10657 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10658 fi
10659
10660 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10661 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10662 fi
10663
10664 CFLAGS="$CFLAGS -Werror=attributes"
10665
10666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
10667 $as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
10668 cacheid=xorg_cv_cc_flag__Werror_attributes
10669 if eval \${$cacheid+:} false; then :
10670 $as_echo_n "(cached) " >&6
10671 else
10672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10673 /* end confdefs.h. */
10674 int i;
10675 int
10676 main ()
10677 {
10678
10679 ;
10680 return 0;
10681 }
10682 _ACEOF
10683 if ac_fn_c_try_link "$LINENO"; then :
10684 eval $cacheid=yes
10685 else
10686 eval $cacheid=no
10687 fi
10688 rm -f core conftest.err conftest.$ac_objext \
10689 conftest$ac_exeext conftest.$ac_ext
10690 fi
10691
10692
10693 CFLAGS="$xorg_testset_save_CFLAGS"
10694
10695 eval supported=\$$cacheid
10696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10697 $as_echo "$supported" >&6; }
10698 if test "$supported" = "yes" ; then
10699 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
10700 found="yes"
10701 fi
10702 fi
10703
10704
10705
10706 if test "x$STRICT_COMPILE" = "xyes"; then
10707 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
10708 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
10709 fi
10710
10711
10712
10713
10714
10715
10716 cat >>confdefs.h <<_ACEOF
10717 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
10718 _ACEOF
10719
10720 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
10721 if test "x$PVM" = "x"; then
10722 PVM="0"
10723 fi
10724
10725 cat >>confdefs.h <<_ACEOF
10726 #define PACKAGE_VERSION_MINOR $PVM
10727 _ACEOF
10728
10729 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
10730 if test "x$PVP" = "x"; then
10731 PVP="0"
10732 fi
10733
10734 cat >>confdefs.h <<_ACEOF
10735 #define PACKAGE_VERSION_PATCHLEVEL $PVP
10736 _ACEOF
10737
10738
10739
10740 CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
10741 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
10742 || (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
10743 echo 'git directory not found: installing possibly empty changelog.' >&2)"
10744
10745
10746
10747
10748 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
10749 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
10750 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
10751 || (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
10752 echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
10753
10754
10755
10756
10757
10758
10759 if test x$APP_MAN_SUFFIX = x ; then
10760 APP_MAN_SUFFIX=1
10761 fi
10762 if test x$APP_MAN_DIR = x ; then
10763 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
10764 fi
10765
10766 if test x$LIB_MAN_SUFFIX = x ; then
10767 LIB_MAN_SUFFIX=3
10768 fi
10769 if test x$LIB_MAN_DIR = x ; then
10770 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
10771 fi
10772
10773 if test x$FILE_MAN_SUFFIX = x ; then
10774 case $host_os in
10775 solaris*) FILE_MAN_SUFFIX=4 ;;
10776 *) FILE_MAN_SUFFIX=5 ;;
10777 esac
10778 fi
10779 if test x$FILE_MAN_DIR = x ; then
10780 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
10781 fi
10782
10783 if test x$MISC_MAN_SUFFIX = x ; then
10784 case $host_os in
10785 solaris*) MISC_MAN_SUFFIX=5 ;;
10786 *) MISC_MAN_SUFFIX=7 ;;
10787 esac
10788 fi
10789 if test x$MISC_MAN_DIR = x ; then
10790 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
10791 fi
10792
10793 if test x$DRIVER_MAN_SUFFIX = x ; then
10794 case $host_os in
10795 solaris*) DRIVER_MAN_SUFFIX=7 ;;
10796 *) DRIVER_MAN_SUFFIX=4 ;;
10797 esac
10798 fi
10799 if test x$DRIVER_MAN_DIR = x ; then
10800 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
10801 fi
10802
10803 if test x$ADMIN_MAN_SUFFIX = x ; then
10804 case $host_os in
10805 solaris*) ADMIN_MAN_SUFFIX=1m ;;
10806 *) ADMIN_MAN_SUFFIX=8 ;;
10807 esac
10808 fi
10809 if test x$ADMIN_MAN_DIR = x ; then
10810 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
10811 fi
10812
10813
10814
10815
10816
10817
10818
10819
10820
10821
10822
10823
10824
10825
10826
10827 XORG_MAN_PAGE="X Version 11"
10828
10829 MAN_SUBSTS="\
10830 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10831 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10832 -e 's|__xservername__|Xorg|g' \
10833 -e 's|__xconfigfile__|xorg.conf|g' \
10834 -e 's|__projectroot__|\$(prefix)|g' \
10835 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
10836 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
10837 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
10838 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
10839 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
10840 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
10841 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
10842
10843
10844
10845 # Check whether --enable-silent-rules was given.
10846 if test "${enable_silent_rules+set}" = set; then :
10847 enableval=$enable_silent_rules;
10848 fi
10849
10850 case $enable_silent_rules in # (((
10851 yes) AM_DEFAULT_VERBOSITY=0;;
10852 no) AM_DEFAULT_VERBOSITY=1;;
10853 *) AM_DEFAULT_VERBOSITY=0;;
10854 esac
10855 am_make=${MAKE-make}
10856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
10857 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
10858 if ${am_cv_make_support_nested_variables+:} false; then :
10859 $as_echo_n "(cached) " >&6
10860 else
10861 if $as_echo 'TRUE=$(BAR$(V))
10862 BAR0=false
10863 BAR1=true
10864 V=1
10865 am__doit:
10866 @$(TRUE)
10867 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
10868 am_cv_make_support_nested_variables=yes
10869 else
10870 am_cv_make_support_nested_variables=no
10871 fi
10872 fi
10873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
10874 $as_echo "$am_cv_make_support_nested_variables" >&6; }
10875 if test $am_cv_make_support_nested_variables = yes; then
10876 AM_V='$(V)'
10877 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
10878 else
10879 AM_V=$AM_DEFAULT_VERBOSITY
10880 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
10881 fi
10882 AM_BACKSLASH='\'
10883
10884
10885
10886 # Initialize libtool
10887 # Check whether --enable-static was given.
10888 if test "${enable_static+set}" = set; then :
10889 enableval=$enable_static; p=${PACKAGE-default}
10890 case $enableval in
10891 yes) enable_static=yes ;;
10892 no) enable_static=no ;;
10893 *)
10894 enable_static=no
10895 # Look at the argument we got. We use all the common list separators.
10896 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10897 for pkg in $enableval; do
10898 IFS="$lt_save_ifs"
10899 if test "X$pkg" = "X$p"; then
10900 enable_static=yes
10901 fi
10902 done
10903 IFS="$lt_save_ifs"
10904 ;;
10905 esac
10906 else
10907 enable_static=no
10908 fi
10909
10910
10911
10912
10913
10914
10915
10916
10917
10918 case `pwd` in
10919 *\ * | *\ *)
10920 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
10921 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
10922 esac
10923
10924
10925
10926 macro_version='2.4.2'
10927 macro_revision='1.3337'
10928
10929
10930
10931
10932
10933
10934
10935
10936
10937
10938
10939
10940
10941 ltmain="$ac_aux_dir/ltmain.sh"
10942
10943 # Backslashify metacharacters that are still active within
10944 # double-quoted strings.
10945 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
10946
10947 # Same as above, but do not quote variable references.
10948 double_quote_subst='s/\(["`\\]\)/\\\1/g'
10949
10950 # Sed substitution to delay expansion of an escaped shell variable in a
10951 # double_quote_subst'ed string.
10952 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
10953
10954 # Sed substitution to delay expansion of an escaped single quote.
10955 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
10956
10957 # Sed substitution to avoid accidental globbing in evaled expressions
10958 no_glob_subst='s/\*/\\\*/g'
10959
10960 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
10961 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
10962 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
10963
10964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
10965 $as_echo_n "checking how to print strings... " >&6; }
10966 # Test print first, because it will be a builtin if present.
10967 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
10968 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
10969 ECHO='print -r --'
10970 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
10971 ECHO='printf %s\n'
10972 else
10973 # Use this function as a fallback that always works.
10974 func_fallback_echo ()
10975 {
10976 eval 'cat <<_LTECHO_EOF
10977 $1
10978 _LTECHO_EOF'
10979 }
10980 ECHO='func_fallback_echo'
10981 fi
10982
10983 # func_echo_all arg...
10984 # Invoke $ECHO with all args, space-separated.
10985 func_echo_all ()
10986 {
10987 $ECHO ""
10988 }
10989
10990 case "$ECHO" in
10991 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
10992 $as_echo "printf" >&6; } ;;
10993 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
10994 $as_echo "print -r" >&6; } ;;
10995 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
10996 $as_echo "cat" >&6; } ;;
10997 esac
10998
10999
11000
11001
11002
11003
11004
11005
11006
11007
11008
11009
11010
11011
11012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
11013 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
11014 if ${ac_cv_path_SED+:} false; then :
11015 $as_echo_n "(cached) " >&6
11016 else
11017 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
11018 for ac_i in 1 2 3 4 5 6 7; do
11019 ac_script="$ac_script$as_nl$ac_script"
11020 done
11021 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
11022 { ac_script=; unset ac_script;}
11023 if test -z "$SED"; then
11024 ac_path_SED_found=false
11025 # Loop through the user's path and test for each of PROGNAME-LIST
11026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11027 for as_dir in $PATH
11028 do
11029 IFS=$as_save_IFS
11030 test -z "$as_dir" && as_dir=.
11031 for ac_prog in sed gsed; do
11032 for ac_exec_ext in '' $ac_executable_extensions; do
11033 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
11034 as_fn_executable_p "$ac_path_SED" || continue
11035 # Check for GNU ac_path_SED and select it if it is found.
11036 # Check for GNU $ac_path_SED
11037 case `"$ac_path_SED" --version 2>&1` in
11038 *GNU*)
11039 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
11040 *)
11041 ac_count=0
11042 $as_echo_n 0123456789 >"conftest.in"
11043 while :
11044 do
11045 cat "conftest.in" "conftest.in" >"conftest.tmp"
11046 mv "conftest.tmp" "conftest.in"
11047 cp "conftest.in" "conftest.nl"
11048 $as_echo '' >> "conftest.nl"
11049 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
11050 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11051 as_fn_arith $ac_count + 1 && ac_count=$as_val
11052 if test $ac_count -gt ${ac_path_SED_max-0}; then
11053 # Best one so far, save it but keep looking for a better one
11054 ac_cv_path_SED="$ac_path_SED"
11055 ac_path_SED_max=$ac_count
11056 fi
11057 # 10*(2^10) chars as input seems more than enough
11058 test $ac_count -gt 10 && break
11059 done
11060 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11061 esac
11062
11063 $ac_path_SED_found && break 3
11064 done
11065 done
11066 done
11067 IFS=$as_save_IFS
11068 if test -z "$ac_cv_path_SED"; then
11069 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
11070 fi
11071 else
11072 ac_cv_path_SED=$SED
11073 fi
11074
11075 fi
11076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
11077 $as_echo "$ac_cv_path_SED" >&6; }
11078 SED="$ac_cv_path_SED"
11079 rm -f conftest.sed
11080
11081 test -z "$SED" && SED=sed
11082 Xsed="$SED -e 1s/^X//"
11083
11084
11085
11086
11087
11088
11089
11090
11091
11092
11093
11094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
11095 $as_echo_n "checking for fgrep... " >&6; }
11096 if ${ac_cv_path_FGREP+:} false; then :
11097 $as_echo_n "(cached) " >&6
11098 else
11099 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
11100 then ac_cv_path_FGREP="$GREP -F"
11101 else
11102 if test -z "$FGREP"; then
11103 ac_path_FGREP_found=false
11104 # Loop through the user's path and test for each of PROGNAME-LIST
11105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11106 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11107 do
11108 IFS=$as_save_IFS
11109 test -z "$as_dir" && as_dir=.
11110 for ac_prog in fgrep; do
11111 for ac_exec_ext in '' $ac_executable_extensions; do
11112 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
11113 as_fn_executable_p "$ac_path_FGREP" || continue
11114 # Check for GNU ac_path_FGREP and select it if it is found.
11115 # Check for GNU $ac_path_FGREP
11116 case `"$ac_path_FGREP" --version 2>&1` in
11117 *GNU*)
11118 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
11119 *)
11120 ac_count=0
11121 $as_echo_n 0123456789 >"conftest.in"
11122 while :
11123 do
11124 cat "conftest.in" "conftest.in" >"conftest.tmp"
11125 mv "conftest.tmp" "conftest.in"
11126 cp "conftest.in" "conftest.nl"
11127 $as_echo 'FGREP' >> "conftest.nl"
11128 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
11129 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11130 as_fn_arith $ac_count + 1 && ac_count=$as_val
11131 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
11132 # Best one so far, save it but keep looking for a better one
11133 ac_cv_path_FGREP="$ac_path_FGREP"
11134 ac_path_FGREP_max=$ac_count
11135 fi
11136 # 10*(2^10) chars as input seems more than enough
11137 test $ac_count -gt 10 && break
11138 done
11139 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11140 esac
11141
11142 $ac_path_FGREP_found && break 3
11143 done
11144 done
11145 done
11146 IFS=$as_save_IFS
11147 if test -z "$ac_cv_path_FGREP"; then
11148 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11149 fi
11150 else
11151 ac_cv_path_FGREP=$FGREP
11152 fi
11153
11154 fi
11155 fi
11156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
11157 $as_echo "$ac_cv_path_FGREP" >&6; }
11158 FGREP="$ac_cv_path_FGREP"
11159
11160
11161 test -z "$GREP" && GREP=grep
11162
11163
11164
11165
11166
11167
11168
11169
11170
11171
11172
11173
11174
11175
11176
11177
11178
11179
11180
11181 # Check whether --with-gnu-ld was given.
11182 if test "${with_gnu_ld+set}" = set; then :
11183 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11184 else
11185 with_gnu_ld=no
11186 fi
11187
11188 ac_prog=ld
11189 if test "$GCC" = yes; then
11190 # Check if gcc -print-prog-name=ld gives a path.
11191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
11192 $as_echo_n "checking for ld used by $CC... " >&6; }
11193 case $host in
11194 *-*-mingw*)
11195 # gcc leaves a trailing carriage return which upsets mingw
11196 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11197 *)
11198 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11199 esac
11200 case $ac_prog in
11201 # Accept absolute paths.
11202 [\\/]* | ?:[\\/]*)
11203 re_direlt='/[^/][^/]*/\.\./'
11204 # Canonicalize the pathname of ld
11205 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
11206 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
11207 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
11208 done
11209 test -z "$LD" && LD="$ac_prog"
11210 ;;
11211 "")
11212 # If it fails, then pretend we aren't using GCC.
11213 ac_prog=ld
11214 ;;
11215 *)
11216 # If it is relative, then search for the first ld in PATH.
11217 with_gnu_ld=unknown
11218 ;;
11219 esac
11220 elif test "$with_gnu_ld" = yes; then
11221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11222 $as_echo_n "checking for GNU ld... " >&6; }
11223 else
11224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11225 $as_echo_n "checking for non-GNU ld... " >&6; }
11226 fi
11227 if ${lt_cv_path_LD+:} false; then :
11228 $as_echo_n "(cached) " >&6
11229 else
11230 if test -z "$LD"; then
11231 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11232 for ac_dir in $PATH; do
11233 IFS="$lt_save_ifs"
11234 test -z "$ac_dir" && ac_dir=.
11235 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11236 lt_cv_path_LD="$ac_dir/$ac_prog"
11237 # Check to see if the program is GNU ld. I'd rather use --version,
11238 # but apparently some variants of GNU ld only accept -v.
11239 # Break only if it was the GNU/non-GNU ld that we prefer.
11240 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11241 *GNU* | *'with BFD'*)
11242 test "$with_gnu_ld" != no && break
11243 ;;
11244 *)
11245 test "$with_gnu_ld" != yes && break
11246 ;;
11247 esac
11248 fi
11249 done
11250 IFS="$lt_save_ifs"
11251 else
11252 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11253 fi
11254 fi
11255
11256 LD="$lt_cv_path_LD"
11257 if test -n "$LD"; then
11258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11259 $as_echo "$LD" >&6; }
11260 else
11261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11262 $as_echo "no" >&6; }
11263 fi
11264 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
11265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11266 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11267 if ${lt_cv_prog_gnu_ld+:} false; then :
11268 $as_echo_n "(cached) " >&6
11269 else
11270 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11271 case `$LD -v 2>&1 </dev/null` in
11272 *GNU* | *'with BFD'*)
11273 lt_cv_prog_gnu_ld=yes
11274 ;;
11275 *)
11276 lt_cv_prog_gnu_ld=no
11277 ;;
11278 esac
11279 fi
11280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
11281 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
11282 with_gnu_ld=$lt_cv_prog_gnu_ld
11283
11284
11285
11286
11287
11288
11289
11290
11291
11292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
11293 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
11294 if ${lt_cv_path_NM+:} false; then :
11295 $as_echo_n "(cached) " >&6
11296 else
11297 if test -n "$NM"; then
11298 # Let the user override the test.
11299 lt_cv_path_NM="$NM"
11300 else
11301 lt_nm_to_check="${ac_tool_prefix}nm"
11302 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
11303 lt_nm_to_check="$lt_nm_to_check nm"
11304 fi
11305 for lt_tmp_nm in $lt_nm_to_check; do
11306 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11307 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
11308 IFS="$lt_save_ifs"
11309 test -z "$ac_dir" && ac_dir=.
11310 tmp_nm="$ac_dir/$lt_tmp_nm"
11311 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
11312 # Check to see if the nm accepts a BSD-compat flag.
11313 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
11314 # nm: unknown option "B" ignored
11315 # Tru64's nm complains that /dev/null is an invalid object file
11316 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
11317 */dev/null* | *'Invalid file or object type'*)
11318 lt_cv_path_NM="$tmp_nm -B"
11319 break
11320 ;;
11321 *)
11322 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
11323 */dev/null*)
11324 lt_cv_path_NM="$tmp_nm -p"
11325 break
11326 ;;
11327 *)
11328 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
11329 continue # so that we can try to find one that supports BSD flags
11330 ;;
11331 esac
11332 ;;
11333 esac
11334 fi
11335 done
11336 IFS="$lt_save_ifs"
11337 done
11338 : ${lt_cv_path_NM=no}
11339 fi
11340 fi
11341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
11342 $as_echo "$lt_cv_path_NM" >&6; }
11343 if test "$lt_cv_path_NM" != "no"; then
11344 NM="$lt_cv_path_NM"
11345 else
11346 # Didn't find any BSD compatible name lister, look for dumpbin.
11347 if test -n "$DUMPBIN"; then :
11348 # Let the user override the test.
11349 else
11350 if test -n "$ac_tool_prefix"; then
11351 for ac_prog in dumpbin "link -dump"
11352 do
11353 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11354 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11356 $as_echo_n "checking for $ac_word... " >&6; }
11357 if ${ac_cv_prog_DUMPBIN+:} false; then :
11358 $as_echo_n "(cached) " >&6
11359 else
11360 if test -n "$DUMPBIN"; then
11361 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
11362 else
11363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11364 for as_dir in $PATH
11365 do
11366 IFS=$as_save_IFS
11367 test -z "$as_dir" && as_dir=.
11368 for ac_exec_ext in '' $ac_executable_extensions; do
11369 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11370 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
11371 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11372 break 2
11373 fi
11374 done
11375 done
11376 IFS=$as_save_IFS
11377
11378 fi
11379 fi
11380 DUMPBIN=$ac_cv_prog_DUMPBIN
11381 if test -n "$DUMPBIN"; then
11382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
11383 $as_echo "$DUMPBIN" >&6; }
11384 else
11385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11386 $as_echo "no" >&6; }
11387 fi
11388
11389
11390 test -n "$DUMPBIN" && break
11391 done
11392 fi
11393 if test -z "$DUMPBIN"; then
11394 ac_ct_DUMPBIN=$DUMPBIN
11395 for ac_prog in dumpbin "link -dump"
11396 do
11397 # Extract the first word of "$ac_prog", so it can be a program name with args.
11398 set dummy $ac_prog; ac_word=$2
11399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11400 $as_echo_n "checking for $ac_word... " >&6; }
11401 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
11402 $as_echo_n "(cached) " >&6
11403 else
11404 if test -n "$ac_ct_DUMPBIN"; then
11405 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
11406 else
11407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11408 for as_dir in $PATH
11409 do
11410 IFS=$as_save_IFS
11411 test -z "$as_dir" && as_dir=.
11412 for ac_exec_ext in '' $ac_executable_extensions; do
11413 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11414 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
11415 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11416 break 2
11417 fi
11418 done
11419 done
11420 IFS=$as_save_IFS
11421
11422 fi
11423 fi
11424 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
11425 if test -n "$ac_ct_DUMPBIN"; then
11426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
11427 $as_echo "$ac_ct_DUMPBIN" >&6; }
11428 else
11429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11430 $as_echo "no" >&6; }
11431 fi
11432
11433
11434 test -n "$ac_ct_DUMPBIN" && break
11435 done
11436
11437 if test "x$ac_ct_DUMPBIN" = x; then
11438 DUMPBIN=":"
11439 else
11440 case $cross_compiling:$ac_tool_warned in
11441 yes:)
11442 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11443 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11444 ac_tool_warned=yes ;;
11445 esac
11446 DUMPBIN=$ac_ct_DUMPBIN
11447 fi
11448 fi
11449
11450 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
11451 *COFF*)
11452 DUMPBIN="$DUMPBIN -symbols"
11453 ;;
11454 *)
11455 DUMPBIN=:
11456 ;;
11457 esac
11458 fi
11459
11460 if test "$DUMPBIN" != ":"; then
11461 NM="$DUMPBIN"
11462 fi
11463 fi
11464 test -z "$NM" && NM=nm
11465
11466
11467
11468
11469
11470
11471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
11472 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
11473 if ${lt_cv_nm_interface+:} false; then :
11474 $as_echo_n "(cached) " >&6
11475 else
11476 lt_cv_nm_interface="BSD nm"
11477 echo "int some_variable = 0;" > conftest.$ac_ext
11478 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
11479 (eval "$ac_compile" 2>conftest.err)
11480 cat conftest.err >&5
11481 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
11482 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
11483 cat conftest.err >&5
11484 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
11485 cat conftest.out >&5
11486 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
11487 lt_cv_nm_interface="MS dumpbin"
11488 fi
11489 rm -f conftest*
11490 fi
11491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
11492 $as_echo "$lt_cv_nm_interface" >&6; }
11493
11494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
11495 $as_echo_n "checking whether ln -s works... " >&6; }
11496 LN_S=$as_ln_s
11497 if test "$LN_S" = "ln -s"; then
11498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11499 $as_echo "yes" >&6; }
11500 else
11501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
11502 $as_echo "no, using $LN_S" >&6; }
11503 fi
11504
11505 # find the maximum length of command line arguments
11506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
11507 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
11508 if ${lt_cv_sys_max_cmd_len+:} false; then :
11509 $as_echo_n "(cached) " >&6
11510 else
11511 i=0
11512 teststring="ABCD"
11513
11514 case $build_os in
11515 msdosdjgpp*)
11516 # On DJGPP, this test can blow up pretty badly due to problems in libc
11517 # (any single argument exceeding 2000 bytes causes a buffer overrun
11518 # during glob expansion). Even if it were fixed, the result of this
11519 # check would be larger than it should be.
11520 lt_cv_sys_max_cmd_len=12288; # 12K is about right
11521 ;;
11522
11523 gnu*)
11524 # Under GNU Hurd, this test is not required because there is
11525 # no limit to the length of command line arguments.
11526 # Libtool will interpret -1 as no limit whatsoever
11527 lt_cv_sys_max_cmd_len=-1;
11528 ;;
11529
11530 cygwin* | mingw* | cegcc*)
11531 # On Win9x/ME, this test blows up -- it succeeds, but takes
11532 # about 5 minutes as the teststring grows exponentially.
11533 # Worse, since 9x/ME are not pre-emptively multitasking,
11534 # you end up with a "frozen" computer, even though with patience
11535 # the test eventually succeeds (with a max line length of 256k).
11536 # Instead, let's just punt: use the minimum linelength reported by
11537 # all of the supported platforms: 8192 (on NT/2K/XP).
11538 lt_cv_sys_max_cmd_len=8192;
11539 ;;
11540
11541 mint*)
11542 # On MiNT this can take a long time and run out of memory.
11543 lt_cv_sys_max_cmd_len=8192;
11544 ;;
11545
11546 amigaos*)
11547 # On AmigaOS with pdksh, this test takes hours, literally.
11548 # So we just punt and use a minimum line length of 8192.
11549 lt_cv_sys_max_cmd_len=8192;
11550 ;;
11551
11552 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
11553 # This has been around since 386BSD, at least. Likely further.
11554 if test -x /sbin/sysctl; then
11555 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
11556 elif test -x /usr/sbin/sysctl; then
11557 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
11558 else
11559 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
11560 fi
11561 # And add a safety zone
11562 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11563 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11564 ;;
11565
11566 interix*)
11567 # We know the value 262144 and hardcode it with a safety zone (like BSD)
11568 lt_cv_sys_max_cmd_len=196608
11569 ;;
11570
11571 os2*)
11572 # The test takes a long time on OS/2.
11573 lt_cv_sys_max_cmd_len=8192
11574 ;;
11575
11576 osf*)
11577 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
11578 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
11579 # nice to cause kernel panics so lets avoid the loop below.
11580 # First set a reasonable default.
11581 lt_cv_sys_max_cmd_len=16384
11582 #
11583 if test -x /sbin/sysconfig; then
11584 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
11585 *1*) lt_cv_sys_max_cmd_len=-1 ;;
11586 esac
11587 fi
11588 ;;
11589 sco3.2v5*)
11590 lt_cv_sys_max_cmd_len=102400
11591 ;;
11592 sysv5* | sco5v6* | sysv4.2uw2*)
11593 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
11594 if test -n "$kargmax"; then
11595 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
11596 else
11597 lt_cv_sys_max_cmd_len=32768
11598 fi
11599 ;;
11600 *)
11601 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
11602 if test -n "$lt_cv_sys_max_cmd_len"; then
11603 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11604 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11605 else
11606 # Make teststring a little bigger before we do anything with it.
11607 # a 1K string should be a reasonable start.
11608 for i in 1 2 3 4 5 6 7 8 ; do
11609 teststring=$teststring$teststring
11610 done
11611 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
11612 # If test is not a shell built-in, we'll probably end up computing a
11613 # maximum length that is only half of the actual maximum length, but
11614 # we can't tell.
11615 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
11616 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
11617 test $i != 17 # 1/2 MB should be enough
11618 do
11619 i=`expr $i + 1`
11620 teststring=$teststring$teststring
11621 done
11622 # Only check the string length outside the loop.
11623 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
11624 teststring=
11625 # Add a significant safety factor because C++ compilers can tack on
11626 # massive amounts of additional arguments before passing them to the
11627 # linker. It appears as though 1/2 is a usable value.
11628 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
11629 fi
11630 ;;
11631 esac
11632
11633 fi
11634
11635 if test -n $lt_cv_sys_max_cmd_len ; then
11636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
11637 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
11638 else
11639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
11640 $as_echo "none" >&6; }
11641 fi
11642 max_cmd_len=$lt_cv_sys_max_cmd_len
11643
11644
11645
11646
11647
11648
11649 : ${CP="cp -f"}
11650 : ${MV="mv -f"}
11651 : ${RM="rm -f"}
11652
11653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
11654 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
11655 # Try some XSI features
11656 xsi_shell=no
11657 ( _lt_dummy="a/b/c"
11658 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
11659 = c,a/b,b/c, \
11660 && eval 'test $(( 1 + 1 )) -eq 2 \
11661 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
11662 && xsi_shell=yes
11663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
11664 $as_echo "$xsi_shell" >&6; }
11665
11666
11667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
11668 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
11669 lt_shell_append=no
11670 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
11671 >/dev/null 2>&1 \
11672 && lt_shell_append=yes
11673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
11674 $as_echo "$lt_shell_append" >&6; }
11675
11676
11677 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11678 lt_unset=unset
11679 else
11680 lt_unset=false
11681 fi
11682
11683
11684
11685
11686
11687 # test EBCDIC or ASCII
11688 case `echo X|tr X '\101'` in
11689 A) # ASCII based system
11690 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
11691 lt_SP2NL='tr \040 \012'
11692 lt_NL2SP='tr \015\012 \040\040'
11693 ;;
11694 *) # EBCDIC based system
11695 lt_SP2NL='tr \100 \n'
11696 lt_NL2SP='tr \r\n \100\100'
11697 ;;
11698 esac
11699
11700
11701
11702
11703
11704
11705
11706
11707
11708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
11709 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
11710 if ${lt_cv_to_host_file_cmd+:} false; then :
11711 $as_echo_n "(cached) " >&6
11712 else
11713 case $host in
11714 *-*-mingw* )
11715 case $build in
11716 *-*-mingw* ) # actually msys
11717 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
11718 ;;
11719 *-*-cygwin* )
11720 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
11721 ;;
11722 * ) # otherwise, assume *nix
11723 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
11724 ;;
11725 esac
11726 ;;
11727 *-*-cygwin* )
11728 case $build in
11729 *-*-mingw* ) # actually msys
11730 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
11731 ;;
11732 *-*-cygwin* )
11733 lt_cv_to_host_file_cmd=func_convert_file_noop
11734 ;;
11735 * ) # otherwise, assume *nix
11736 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
11737 ;;
11738 esac
11739 ;;
11740 * ) # unhandled hosts (and "normal" native builds)
11741 lt_cv_to_host_file_cmd=func_convert_file_noop
11742 ;;
11743 esac
11744
11745 fi
11746
11747 to_host_file_cmd=$lt_cv_to_host_file_cmd
11748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
11749 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
11750
11751
11752
11753
11754
11755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
11756 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
11757 if ${lt_cv_to_tool_file_cmd+:} false; then :
11758 $as_echo_n "(cached) " >&6
11759 else
11760 #assume ordinary cross tools, or native build.
11761 lt_cv_to_tool_file_cmd=func_convert_file_noop
11762 case $host in
11763 *-*-mingw* )
11764 case $build in
11765 *-*-mingw* ) # actually msys
11766 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
11767 ;;
11768 esac
11769 ;;
11770 esac
11771
11772 fi
11773
11774 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
11775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
11776 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
11777
11778
11779
11780
11781
11782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
11783 $as_echo_n "checking for $LD option to reload object files... " >&6; }
11784 if ${lt_cv_ld_reload_flag+:} false; then :
11785 $as_echo_n "(cached) " >&6
11786 else
11787 lt_cv_ld_reload_flag='-r'
11788 fi
11789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
11790 $as_echo "$lt_cv_ld_reload_flag" >&6; }
11791 reload_flag=$lt_cv_ld_reload_flag
11792 case $reload_flag in
11793 "" | " "*) ;;
11794 *) reload_flag=" $reload_flag" ;;
11795 esac
11796 reload_cmds='$LD$reload_flag -o $output$reload_objs'
11797 case $host_os in
11798 cygwin* | mingw* | pw32* | cegcc*)
11799 if test "$GCC" != yes; then
11800 reload_cmds=false
11801 fi
11802 ;;
11803 darwin*)
11804 if test "$GCC" = yes; then
11805 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
11806 else
11807 reload_cmds='$LD$reload_flag -o $output$reload_objs'
11808 fi
11809 ;;
11810 esac
11811
11812
11813
11814
11815
11816
11817
11818
11819
11820 if test -n "$ac_tool_prefix"; then
11821 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
11822 set dummy ${ac_tool_prefix}objdump; ac_word=$2
11823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11824 $as_echo_n "checking for $ac_word... " >&6; }
11825 if ${ac_cv_prog_OBJDUMP+:} false; then :
11826 $as_echo_n "(cached) " >&6
11827 else
11828 if test -n "$OBJDUMP"; then
11829 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
11830 else
11831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11832 for as_dir in $PATH
11833 do
11834 IFS=$as_save_IFS
11835 test -z "$as_dir" && as_dir=.
11836 for ac_exec_ext in '' $ac_executable_extensions; do
11837 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11838 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
11839 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11840 break 2
11841 fi
11842 done
11843 done
11844 IFS=$as_save_IFS
11845
11846 fi
11847 fi
11848 OBJDUMP=$ac_cv_prog_OBJDUMP
11849 if test -n "$OBJDUMP"; then
11850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
11851 $as_echo "$OBJDUMP" >&6; }
11852 else
11853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11854 $as_echo "no" >&6; }
11855 fi
11856
11857
11858 fi
11859 if test -z "$ac_cv_prog_OBJDUMP"; then
11860 ac_ct_OBJDUMP=$OBJDUMP
11861 # Extract the first word of "objdump", so it can be a program name with args.
11862 set dummy objdump; ac_word=$2
11863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11864 $as_echo_n "checking for $ac_word... " >&6; }
11865 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
11866 $as_echo_n "(cached) " >&6
11867 else
11868 if test -n "$ac_ct_OBJDUMP"; then
11869 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
11870 else
11871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11872 for as_dir in $PATH
11873 do
11874 IFS=$as_save_IFS
11875 test -z "$as_dir" && as_dir=.
11876 for ac_exec_ext in '' $ac_executable_extensions; do
11877 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11878 ac_cv_prog_ac_ct_OBJDUMP="objdump"
11879 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11880 break 2
11881 fi
11882 done
11883 done
11884 IFS=$as_save_IFS
11885
11886 fi
11887 fi
11888 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11889 if test -n "$ac_ct_OBJDUMP"; then
11890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
11891 $as_echo "$ac_ct_OBJDUMP" >&6; }
11892 else
11893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11894 $as_echo "no" >&6; }
11895 fi
11896
11897 if test "x$ac_ct_OBJDUMP" = x; then
11898 OBJDUMP="false"
11899 else
11900 case $cross_compiling:$ac_tool_warned in
11901 yes:)
11902 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11903 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11904 ac_tool_warned=yes ;;
11905 esac
11906 OBJDUMP=$ac_ct_OBJDUMP
11907 fi
11908 else
11909 OBJDUMP="$ac_cv_prog_OBJDUMP"
11910 fi
11911
11912 test -z "$OBJDUMP" && OBJDUMP=objdump
11913
11914
11915
11916
11917
11918
11919
11920
11921
11922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
11923 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
11924 if ${lt_cv_deplibs_check_method+:} false; then :
11925 $as_echo_n "(cached) " >&6
11926 else
11927 lt_cv_file_magic_cmd='$MAGIC_CMD'
11928 lt_cv_file_magic_test_file=
11929 lt_cv_deplibs_check_method='unknown'
11930 # Need to set the preceding variable on all platforms that support
11931 # interlibrary dependencies.
11932 # 'none' -- dependencies not supported.
11933 # `unknown' -- same as none, but documents that we really don't know.
11934 # 'pass_all' -- all dependencies passed with no checks.
11935 # 'test_compile' -- check by making test program.
11936 # 'file_magic [[regex]]' -- check by looking for files in library path
11937 # which responds to the $file_magic_cmd with a given extended regex.
11938 # If you have `file' or equivalent on your system and you're not sure
11939 # whether `pass_all' will *always* work, you probably want this one.
11940
11941 case $host_os in
11942 aix[4-9]*)
11943 lt_cv_deplibs_check_method=pass_all
11944 ;;
11945
11946 beos*)
11947 lt_cv_deplibs_check_method=pass_all
11948 ;;
11949
11950 bsdi[45]*)
11951 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
11952 lt_cv_file_magic_cmd='/usr/bin/file -L'
11953 lt_cv_file_magic_test_file=/shlib/libc.so
11954 ;;
11955
11956 cygwin*)
11957 # func_win32_libid is a shell function defined in ltmain.sh
11958 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11959 lt_cv_file_magic_cmd='func_win32_libid'
11960 ;;
11961
11962 mingw* | pw32*)
11963 # Base MSYS/MinGW do not provide the 'file' command needed by
11964 # func_win32_libid shell function, so use a weaker test based on 'objdump',
11965 # unless we find 'file', for example because we are cross-compiling.
11966 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
11967 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
11968 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11969 lt_cv_file_magic_cmd='func_win32_libid'
11970 else
11971 # Keep this pattern in sync with the one in func_win32_libid.
11972 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
11973 lt_cv_file_magic_cmd='$OBJDUMP -f'
11974 fi
11975 ;;
11976
11977 cegcc*)
11978 # use the weaker test based on 'objdump'. See mingw*.
11979 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
11980 lt_cv_file_magic_cmd='$OBJDUMP -f'
11981 ;;
11982
11983 darwin* | rhapsody*)
11984 lt_cv_deplibs_check_method=pass_all
11985 ;;
11986
11987 freebsd* | dragonfly*)
11988 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11989 case $host_cpu in
11990 i*86 )
11991 # Not sure whether the presence of OpenBSD here was a mistake.
11992 # Let's accept both of them until this is cleared up.
11993 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
11994 lt_cv_file_magic_cmd=/usr/bin/file
11995 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
11996 ;;
11997 esac
11998 else
11999 lt_cv_deplibs_check_method=pass_all
12000 fi
12001 ;;
12002
12003 gnu*)
12004 lt_cv_deplibs_check_method=pass_all
12005 ;;
12006
12007 haiku*)
12008 lt_cv_deplibs_check_method=pass_all
12009 ;;
12010
12011 hpux10.20* | hpux11*)
12012 lt_cv_file_magic_cmd=/usr/bin/file
12013 case $host_cpu in
12014 ia64*)
12015 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12016 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12017 ;;
12018 hppa*64*)
12019 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]'
12020 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12021 ;;
12022 *)
12023 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
12024 lt_cv_file_magic_test_file=/usr/lib/libc.sl
12025 ;;
12026 esac
12027 ;;
12028
12029 interix[3-9]*)
12030 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12031 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12032 ;;
12033
12034 irix5* | irix6* | nonstopux*)
12035 case $LD in
12036 *-32|*"-32 ") libmagic=32-bit;;
12037 *-n32|*"-n32 ") libmagic=N32;;
12038 *-64|*"-64 ") libmagic=64-bit;;
12039 *) libmagic=never-match;;
12040 esac
12041 lt_cv_deplibs_check_method=pass_all
12042 ;;
12043
12044 # This must be glibc/ELF.
12045 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12046 lt_cv_deplibs_check_method=pass_all
12047 ;;
12048
12049 netbsd*)
12050 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12051 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12052 else
12053 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12054 fi
12055 ;;
12056
12057 newos6*)
12058 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12059 lt_cv_file_magic_cmd=/usr/bin/file
12060 lt_cv_file_magic_test_file=/usr/lib/libnls.so
12061 ;;
12062
12063 *nto* | *qnx*)
12064 lt_cv_deplibs_check_method=pass_all
12065 ;;
12066
12067 openbsd*)
12068 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12069 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12070 else
12071 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12072 fi
12073 ;;
12074
12075 osf3* | osf4* | osf5*)
12076 lt_cv_deplibs_check_method=pass_all
12077 ;;
12078
12079 rdos*)
12080 lt_cv_deplibs_check_method=pass_all
12081 ;;
12082
12083 solaris*)
12084 lt_cv_deplibs_check_method=pass_all
12085 ;;
12086
12087 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12088 lt_cv_deplibs_check_method=pass_all
12089 ;;
12090
12091 sysv4 | sysv4.3*)
12092 case $host_vendor in
12093 motorola)
12094 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]'
12095 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12096 ;;
12097 ncr)
12098 lt_cv_deplibs_check_method=pass_all
12099 ;;
12100 sequent)
12101 lt_cv_file_magic_cmd='/bin/file'
12102 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12103 ;;
12104 sni)
12105 lt_cv_file_magic_cmd='/bin/file'
12106 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12107 lt_cv_file_magic_test_file=/lib/libc.so
12108 ;;
12109 siemens)
12110 lt_cv_deplibs_check_method=pass_all
12111 ;;
12112 pc)
12113 lt_cv_deplibs_check_method=pass_all
12114 ;;
12115 esac
12116 ;;
12117
12118 tpf*)
12119 lt_cv_deplibs_check_method=pass_all
12120 ;;
12121 esac
12122
12123 fi
12124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
12125 $as_echo "$lt_cv_deplibs_check_method" >&6; }
12126
12127 file_magic_glob=
12128 want_nocaseglob=no
12129 if test "$build" = "$host"; then
12130 case $host_os in
12131 mingw* | pw32*)
12132 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
12133 want_nocaseglob=yes
12134 else
12135 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
12136 fi
12137 ;;
12138 esac
12139 fi
12140
12141 file_magic_cmd=$lt_cv_file_magic_cmd
12142 deplibs_check_method=$lt_cv_deplibs_check_method
12143 test -z "$deplibs_check_method" && deplibs_check_method=unknown
12144
12145
12146
12147
12148
12149
12150
12151
12152
12153
12154
12155
12156
12157
12158
12159
12160
12161
12162
12163
12164
12165
12166 if test -n "$ac_tool_prefix"; then
12167 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
12168 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
12169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12170 $as_echo_n "checking for $ac_word... " >&6; }
12171 if ${ac_cv_prog_DLLTOOL+:} false; then :
12172 $as_echo_n "(cached) " >&6
12173 else
12174 if test -n "$DLLTOOL"; then
12175 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
12176 else
12177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12178 for as_dir in $PATH
12179 do
12180 IFS=$as_save_IFS
12181 test -z "$as_dir" && as_dir=.
12182 for ac_exec_ext in '' $ac_executable_extensions; do
12183 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12184 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
12185 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12186 break 2
12187 fi
12188 done
12189 done
12190 IFS=$as_save_IFS
12191
12192 fi
12193 fi
12194 DLLTOOL=$ac_cv_prog_DLLTOOL
12195 if test -n "$DLLTOOL"; then
12196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
12197 $as_echo "$DLLTOOL" >&6; }
12198 else
12199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12200 $as_echo "no" >&6; }
12201 fi
12202
12203
12204 fi
12205 if test -z "$ac_cv_prog_DLLTOOL"; then
12206 ac_ct_DLLTOOL=$DLLTOOL
12207 # Extract the first word of "dlltool", so it can be a program name with args.
12208 set dummy dlltool; ac_word=$2
12209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12210 $as_echo_n "checking for $ac_word... " >&6; }
12211 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
12212 $as_echo_n "(cached) " >&6
12213 else
12214 if test -n "$ac_ct_DLLTOOL"; then
12215 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
12216 else
12217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12218 for as_dir in $PATH
12219 do
12220 IFS=$as_save_IFS
12221 test -z "$as_dir" && as_dir=.
12222 for ac_exec_ext in '' $ac_executable_extensions; do
12223 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12224 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
12225 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12226 break 2
12227 fi
12228 done
12229 done
12230 IFS=$as_save_IFS
12231
12232 fi
12233 fi
12234 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
12235 if test -n "$ac_ct_DLLTOOL"; then
12236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
12237 $as_echo "$ac_ct_DLLTOOL" >&6; }
12238 else
12239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12240 $as_echo "no" >&6; }
12241 fi
12242
12243 if test "x$ac_ct_DLLTOOL" = x; then
12244 DLLTOOL="false"
12245 else
12246 case $cross_compiling:$ac_tool_warned in
12247 yes:)
12248 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12249 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12250 ac_tool_warned=yes ;;
12251 esac
12252 DLLTOOL=$ac_ct_DLLTOOL
12253 fi
12254 else
12255 DLLTOOL="$ac_cv_prog_DLLTOOL"
12256 fi
12257
12258 test -z "$DLLTOOL" && DLLTOOL=dlltool
12259
12260
12261
12262
12263
12264
12265
12266
12267
12268
12269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
12270 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
12271 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
12272 $as_echo_n "(cached) " >&6
12273 else
12274 lt_cv_sharedlib_from_linklib_cmd='unknown'
12275
12276 case $host_os in
12277 cygwin* | mingw* | pw32* | cegcc*)
12278 # two different shell functions defined in ltmain.sh
12279 # decide which to use based on capabilities of $DLLTOOL
12280 case `$DLLTOOL --help 2>&1` in
12281 *--identify-strict*)
12282 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
12283 ;;
12284 *)
12285 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
12286 ;;
12287 esac
12288 ;;
12289 *)
12290 # fallback: assume linklib IS sharedlib
12291 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
12292 ;;
12293 esac
12294
12295 fi
12296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
12297 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
12298 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
12299 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
12300
12301
12302
12303
12304
12305
12306
12307 if test -n "$ac_tool_prefix"; then
12308 for ac_prog in ar
12309 do
12310 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12311 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12313 $as_echo_n "checking for $ac_word... " >&6; }
12314 if ${ac_cv_prog_AR+:} false; then :
12315 $as_echo_n "(cached) " >&6
12316 else
12317 if test -n "$AR"; then
12318 ac_cv_prog_AR="$AR" # Let the user override the test.
12319 else
12320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12321 for as_dir in $PATH
12322 do
12323 IFS=$as_save_IFS
12324 test -z "$as_dir" && as_dir=.
12325 for ac_exec_ext in '' $ac_executable_extensions; do
12326 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12327 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
12328 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12329 break 2
12330 fi
12331 done
12332 done
12333 IFS=$as_save_IFS
12334
12335 fi
12336 fi
12337 AR=$ac_cv_prog_AR
12338 if test -n "$AR"; then
12339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
12340 $as_echo "$AR" >&6; }
12341 else
12342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12343 $as_echo "no" >&6; }
12344 fi
12345
12346
12347 test -n "$AR" && break
12348 done
12349 fi
12350 if test -z "$AR"; then
12351 ac_ct_AR=$AR
12352 for ac_prog in ar
12353 do
12354 # Extract the first word of "$ac_prog", so it can be a program name with args.
12355 set dummy $ac_prog; ac_word=$2
12356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12357 $as_echo_n "checking for $ac_word... " >&6; }
12358 if ${ac_cv_prog_ac_ct_AR+:} false; then :
12359 $as_echo_n "(cached) " >&6
12360 else
12361 if test -n "$ac_ct_AR"; then
12362 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
12363 else
12364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12365 for as_dir in $PATH
12366 do
12367 IFS=$as_save_IFS
12368 test -z "$as_dir" && as_dir=.
12369 for ac_exec_ext in '' $ac_executable_extensions; do
12370 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12371 ac_cv_prog_ac_ct_AR="$ac_prog"
12372 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12373 break 2
12374 fi
12375 done
12376 done
12377 IFS=$as_save_IFS
12378
12379 fi
12380 fi
12381 ac_ct_AR=$ac_cv_prog_ac_ct_AR
12382 if test -n "$ac_ct_AR"; then
12383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
12384 $as_echo "$ac_ct_AR" >&6; }
12385 else
12386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12387 $as_echo "no" >&6; }
12388 fi
12389
12390
12391 test -n "$ac_ct_AR" && break
12392 done
12393
12394 if test "x$ac_ct_AR" = x; then
12395 AR="false"
12396 else
12397 case $cross_compiling:$ac_tool_warned in
12398 yes:)
12399 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12400 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12401 ac_tool_warned=yes ;;
12402 esac
12403 AR=$ac_ct_AR
12404 fi
12405 fi
12406
12407 : ${AR=ar}
12408 : ${AR_FLAGS=cru}
12409
12410
12411
12412
12413
12414
12415
12416
12417
12418
12419
12420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
12421 $as_echo_n "checking for archiver @FILE support... " >&6; }
12422 if ${lt_cv_ar_at_file+:} false; then :
12423 $as_echo_n "(cached) " >&6
12424 else
12425 lt_cv_ar_at_file=no
12426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12427 /* end confdefs.h. */
12428
12429 int
12430 main ()
12431 {
12432
12433 ;
12434 return 0;
12435 }
12436 _ACEOF
12437 if ac_fn_c_try_compile "$LINENO"; then :
12438 echo conftest.$ac_objext > conftest.lst
12439 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
12440 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
12441 (eval $lt_ar_try) 2>&5
12442 ac_status=$?
12443 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12444 test $ac_status = 0; }
12445 if test "$ac_status" -eq 0; then
12446 # Ensure the archiver fails upon bogus file names.
12447 rm -f conftest.$ac_objext libconftest.a
12448 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
12449 (eval $lt_ar_try) 2>&5
12450 ac_status=$?
12451 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12452 test $ac_status = 0; }
12453 if test "$ac_status" -ne 0; then
12454 lt_cv_ar_at_file=@
12455 fi
12456 fi
12457 rm -f conftest.* libconftest.a
12458
12459 fi
12460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12461
12462 fi
12463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
12464 $as_echo "$lt_cv_ar_at_file" >&6; }
12465
12466 if test "x$lt_cv_ar_at_file" = xno; then
12467 archiver_list_spec=
12468 else
12469 archiver_list_spec=$lt_cv_ar_at_file
12470 fi
12471
12472
12473
12474
12475
12476
12477
12478 if test -n "$ac_tool_prefix"; then
12479 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
12480 set dummy ${ac_tool_prefix}strip; ac_word=$2
12481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12482 $as_echo_n "checking for $ac_word... " >&6; }
12483 if ${ac_cv_prog_STRIP+:} false; then :
12484 $as_echo_n "(cached) " >&6
12485 else
12486 if test -n "$STRIP"; then
12487 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12488 else
12489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12490 for as_dir in $PATH
12491 do
12492 IFS=$as_save_IFS
12493 test -z "$as_dir" && as_dir=.
12494 for ac_exec_ext in '' $ac_executable_extensions; do
12495 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12496 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
12497 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12498 break 2
12499 fi
12500 done
12501 done
12502 IFS=$as_save_IFS
12503
12504 fi
12505 fi
12506 STRIP=$ac_cv_prog_STRIP
12507 if test -n "$STRIP"; then
12508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12509 $as_echo "$STRIP" >&6; }
12510 else
12511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12512 $as_echo "no" >&6; }
12513 fi
12514
12515
12516 fi
12517 if test -z "$ac_cv_prog_STRIP"; then
12518 ac_ct_STRIP=$STRIP
12519 # Extract the first word of "strip", so it can be a program name with args.
12520 set dummy strip; ac_word=$2
12521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12522 $as_echo_n "checking for $ac_word... " >&6; }
12523 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
12524 $as_echo_n "(cached) " >&6
12525 else
12526 if test -n "$ac_ct_STRIP"; then
12527 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
12528 else
12529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12530 for as_dir in $PATH
12531 do
12532 IFS=$as_save_IFS
12533 test -z "$as_dir" && as_dir=.
12534 for ac_exec_ext in '' $ac_executable_extensions; do
12535 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12536 ac_cv_prog_ac_ct_STRIP="strip"
12537 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12538 break 2
12539 fi
12540 done
12541 done
12542 IFS=$as_save_IFS
12543
12544 fi
12545 fi
12546 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
12547 if test -n "$ac_ct_STRIP"; then
12548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
12549 $as_echo "$ac_ct_STRIP" >&6; }
12550 else
12551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12552 $as_echo "no" >&6; }
12553 fi
12554
12555 if test "x$ac_ct_STRIP" = x; then
12556 STRIP=":"
12557 else
12558 case $cross_compiling:$ac_tool_warned in
12559 yes:)
12560 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12561 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12562 ac_tool_warned=yes ;;
12563 esac
12564 STRIP=$ac_ct_STRIP
12565 fi
12566 else
12567 STRIP="$ac_cv_prog_STRIP"
12568 fi
12569
12570 test -z "$STRIP" && STRIP=:
12571
12572
12573
12574
12575
12576
12577 if test -n "$ac_tool_prefix"; then
12578 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12579 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12581 $as_echo_n "checking for $ac_word... " >&6; }
12582 if ${ac_cv_prog_RANLIB+:} false; then :
12583 $as_echo_n "(cached) " >&6
12584 else
12585 if test -n "$RANLIB"; then
12586 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12587 else
12588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12589 for as_dir in $PATH
12590 do
12591 IFS=$as_save_IFS
12592 test -z "$as_dir" && as_dir=.
12593 for ac_exec_ext in '' $ac_executable_extensions; do
12594 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12595 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12596 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12597 break 2
12598 fi
12599 done
12600 done
12601 IFS=$as_save_IFS
12602
12603 fi
12604 fi
12605 RANLIB=$ac_cv_prog_RANLIB
12606 if test -n "$RANLIB"; then
12607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
12608 $as_echo "$RANLIB" >&6; }
12609 else
12610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12611 $as_echo "no" >&6; }
12612 fi
12613
12614
12615 fi
12616 if test -z "$ac_cv_prog_RANLIB"; then
12617 ac_ct_RANLIB=$RANLIB
12618 # Extract the first word of "ranlib", so it can be a program name with args.
12619 set dummy ranlib; ac_word=$2
12620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12621 $as_echo_n "checking for $ac_word... " >&6; }
12622 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
12623 $as_echo_n "(cached) " >&6
12624 else
12625 if test -n "$ac_ct_RANLIB"; then
12626 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12627 else
12628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12629 for as_dir in $PATH
12630 do
12631 IFS=$as_save_IFS
12632 test -z "$as_dir" && as_dir=.
12633 for ac_exec_ext in '' $ac_executable_extensions; do
12634 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12635 ac_cv_prog_ac_ct_RANLIB="ranlib"
12636 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12637 break 2
12638 fi
12639 done
12640 done
12641 IFS=$as_save_IFS
12642
12643 fi
12644 fi
12645 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12646 if test -n "$ac_ct_RANLIB"; then
12647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
12648 $as_echo "$ac_ct_RANLIB" >&6; }
12649 else
12650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12651 $as_echo "no" >&6; }
12652 fi
12653
12654 if test "x$ac_ct_RANLIB" = x; then
12655 RANLIB=":"
12656 else
12657 case $cross_compiling:$ac_tool_warned in
12658 yes:)
12659 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12660 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12661 ac_tool_warned=yes ;;
12662 esac
12663 RANLIB=$ac_ct_RANLIB
12664 fi
12665 else
12666 RANLIB="$ac_cv_prog_RANLIB"
12667 fi
12668
12669 test -z "$RANLIB" && RANLIB=:
12670
12671
12672
12673
12674
12675
12676 # Determine commands to create old-style static archives.
12677 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
12678 old_postinstall_cmds='chmod 644 $oldlib'
12679 old_postuninstall_cmds=
12680
12681 if test -n "$RANLIB"; then
12682 case $host_os in
12683 openbsd*)
12684 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
12685 ;;
12686 *)
12687 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
12688 ;;
12689 esac
12690 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
12691 fi
12692
12693 case $host_os in
12694 darwin*)
12695 lock_old_archive_extraction=yes ;;
12696 *)
12697 lock_old_archive_extraction=no ;;
12698 esac
12699
12700
12701
12702
12703
12704
12705
12706
12707
12708
12709
12710
12711
12712
12713
12714
12715
12716
12717
12718
12719
12720
12721
12722
12723
12724
12725
12726
12727
12728
12729
12730
12731
12732
12733
12734
12735
12736
12737
12738 # If no C compiler was specified, use CC.
12739 LTCC=${LTCC-"$CC"}
12740
12741 # If no C compiler flags were specified, use CFLAGS.
12742 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12743
12744 # Allow CC to be a program name with arguments.
12745 compiler=$CC
12746
12747
12748 # Check for command to grab the raw symbol name followed by C symbol from nm.
12749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
12750 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
12751 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
12752 $as_echo_n "(cached) " >&6
12753 else
12754
12755 # These are sane defaults that work on at least a few old systems.
12756 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
12757
12758 # Character class describing NM global symbol codes.
12759 symcode='[BCDEGRST]'
12760
12761 # Regexp to match symbols that can be accessed directly from C.
12762 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
12763
12764 # Define system-specific variables.
12765 case $host_os in
12766 aix*)
12767 symcode='[BCDT]'
12768 ;;
12769 cygwin* | mingw* | pw32* | cegcc*)
12770 symcode='[ABCDGISTW]'
12771 ;;
12772 hpux*)
12773 if test "$host_cpu" = ia64; then
12774 symcode='[ABCDEGRST]'
12775 fi
12776 ;;
12777 irix* | nonstopux*)
12778 symcode='[BCDEGRST]'
12779 ;;
12780 osf*)
12781 symcode='[BCDEGQRST]'
12782 ;;
12783 solaris*)
12784 symcode='[BDRT]'
12785 ;;
12786 sco3.2v5*)
12787 symcode='[DT]'
12788 ;;
12789 sysv4.2uw2*)
12790 symcode='[DT]'
12791 ;;
12792 sysv5* | sco5v6* | unixware* | OpenUNIX*)
12793 symcode='[ABDT]'
12794 ;;
12795 sysv4)
12796 symcode='[DFNSTU]'
12797 ;;
12798 esac
12799
12800 # If we're using GNU nm, then use its standard symbol codes.
12801 case `$NM -V 2>&1` in
12802 *GNU* | *'with BFD'*)
12803 symcode='[ABCDGIRSTW]' ;;
12804 esac
12805
12806 # Transform an extracted symbol line into a proper C declaration.
12807 # Some systems (esp. on ia64) link data and code symbols differently,
12808 # so use this general approach.
12809 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
12810
12811 # Transform an extracted symbol line into symbol name and symbol address
12812 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
12813 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'"
12814
12815 # Handle CRLF in mingw tool chain
12816 opt_cr=
12817 case $build_os in
12818 mingw*)
12819 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
12820 ;;
12821 esac
12822
12823 # Try without a prefix underscore, then with it.
12824 for ac_symprfx in "" "_"; do
12825
12826 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
12827 symxfrm="\\1 $ac_symprfx\\2 \\2"
12828
12829 # Write the raw and C identifiers.
12830 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12831 # Fake it for dumpbin and say T for any non-static function
12832 # and D for any global variable.
12833 # Also find C++ and __fastcall symbols from MSVC++,
12834 # which start with @ or ?.
12835 lt_cv_sys_global_symbol_pipe="$AWK '"\
12836 " {last_section=section; section=\$ 3};"\
12837 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
12838 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
12839 " \$ 0!~/External *\|/{next};"\
12840 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
12841 " {if(hide[section]) next};"\
12842 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
12843 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
12844 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
12845 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
12846 " ' prfx=^$ac_symprfx"
12847 else
12848 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
12849 fi
12850 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
12851
12852 # Check to see that the pipe works correctly.
12853 pipe_works=no
12854
12855 rm -f conftest*
12856 cat > conftest.$ac_ext <<_LT_EOF
12857 #ifdef __cplusplus
12858 extern "C" {
12859 #endif
12860 char nm_test_var;
12861 void nm_test_func(void);
12862 void nm_test_func(void){}
12863 #ifdef __cplusplus
12864 }
12865 #endif
12866 int main(){nm_test_var='a';nm_test_func();return(0);}
12867 _LT_EOF
12868
12869 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12870 (eval $ac_compile) 2>&5
12871 ac_status=$?
12872 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12873 test $ac_status = 0; }; then
12874 # Now try to grab the symbols.
12875 nlist=conftest.nm
12876 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
12877 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
12878 ac_status=$?
12879 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12880 test $ac_status = 0; } && test -s "$nlist"; then
12881 # Try sorting and uniquifying the output.
12882 if sort "$nlist" | uniq > "$nlist"T; then
12883 mv -f "$nlist"T "$nlist"
12884 else
12885 rm -f "$nlist"T
12886 fi
12887
12888 # Make sure that we snagged all the symbols we need.
12889 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
12890 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
12891 cat <<_LT_EOF > conftest.$ac_ext
12892 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
12893 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
12894 /* DATA imports from DLLs on WIN32 con't be const, because runtime
12895 relocations are performed -- see ld's documentation on pseudo-relocs. */
12896 # define LT_DLSYM_CONST
12897 #elif defined(__osf__)
12898 /* This system does not cope well with relocations in const data. */
12899 # define LT_DLSYM_CONST
12900 #else
12901 # define LT_DLSYM_CONST const
12902 #endif
12903
12904 #ifdef __cplusplus
12905 extern "C" {
12906 #endif
12907
12908 _LT_EOF
12909 # Now generate the symbol file.
12910 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
12911
12912 cat <<_LT_EOF >> conftest.$ac_ext
12913
12914 /* The mapping between symbol names and symbols. */
12915 LT_DLSYM_CONST struct {
12916 const char *name;
12917 void *address;
12918 }
12919 lt__PROGRAM__LTX_preloaded_symbols[] =
12920 {
12921 { "@PROGRAM@", (void *) 0 },
12922 _LT_EOF
12923 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
12924 cat <<\_LT_EOF >> conftest.$ac_ext
12925 {0, (void *) 0}
12926 };
12927
12928 /* This works around a problem in FreeBSD linker */
12929 #ifdef FREEBSD_WORKAROUND
12930 static const void *lt_preloaded_setup() {
12931 return lt__PROGRAM__LTX_preloaded_symbols;
12932 }
12933 #endif
12934
12935 #ifdef __cplusplus
12936 }
12937 #endif
12938 _LT_EOF
12939 # Now try linking the two files.
12940 mv conftest.$ac_objext conftstm.$ac_objext
12941 lt_globsym_save_LIBS=$LIBS
12942 lt_globsym_save_CFLAGS=$CFLAGS
12943 LIBS="conftstm.$ac_objext"
12944 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
12945 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12946 (eval $ac_link) 2>&5
12947 ac_status=$?
12948 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12949 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
12950 pipe_works=yes
12951 fi
12952 LIBS=$lt_globsym_save_LIBS
12953 CFLAGS=$lt_globsym_save_CFLAGS
12954 else
12955 echo "cannot find nm_test_func in $nlist" >&5
12956 fi
12957 else
12958 echo "cannot find nm_test_var in $nlist" >&5
12959 fi
12960 else
12961 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
12962 fi
12963 else
12964 echo "$progname: failed program was:" >&5
12965 cat conftest.$ac_ext >&5
12966 fi
12967 rm -rf conftest* conftst*
12968
12969 # Do not use the global_symbol_pipe unless it works.
12970 if test "$pipe_works" = yes; then
12971 break
12972 else
12973 lt_cv_sys_global_symbol_pipe=
12974 fi
12975 done
12976
12977 fi
12978
12979 if test -z "$lt_cv_sys_global_symbol_pipe"; then
12980 lt_cv_sys_global_symbol_to_cdecl=
12981 fi
12982 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
12983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
12984 $as_echo "failed" >&6; }
12985 else
12986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
12987 $as_echo "ok" >&6; }
12988 fi
12989
12990 # Response file support.
12991 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12992 nm_file_list_spec='@'
12993 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
12994 nm_file_list_spec='@'
12995 fi
12996
12997
12998
12999
13000
13001
13002
13003
13004
13005
13006
13007
13008
13009
13010
13011
13012
13013
13014
13015
13016
13017
13018
13019
13020
13021
13022
13023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
13024 $as_echo_n "checking for sysroot... " >&6; }
13025
13026 # Check whether --with-sysroot was given.
13027 if test "${with_sysroot+set}" = set; then :
13028 withval=$with_sysroot;
13029 else
13030 with_sysroot=no
13031 fi
13032
13033
13034 lt_sysroot=
13035 case ${with_sysroot} in #(
13036 yes)
13037 if test "$GCC" = yes; then
13038 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
13039 fi
13040 ;; #(
13041 /*)
13042 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
13043 ;; #(
13044 no|'')
13045 ;; #(
13046 *)
13047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
13048 $as_echo "${with_sysroot}" >&6; }
13049 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
13050 ;;
13051 esac
13052
13053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
13054 $as_echo "${lt_sysroot:-no}" >&6; }
13055
13056
13057
13058
13059
13060 # Check whether --enable-libtool-lock was given.
13061 if test "${enable_libtool_lock+set}" = set; then :
13062 enableval=$enable_libtool_lock;
13063 fi
13064
13065 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
13066
13067 # Some flags need to be propagated to the compiler or linker for good
13068 # libtool support.
13069 case $host in
13070 ia64-*-hpux*)
13071 # Find out which ABI we are using.
13072 echo 'int i;' > conftest.$ac_ext
13073 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13074 (eval $ac_compile) 2>&5
13075 ac_status=$?
13076 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13077 test $ac_status = 0; }; then
13078 case `/usr/bin/file conftest.$ac_objext` in
13079 *ELF-32*)
13080 HPUX_IA64_MODE="32"
13081 ;;
13082 *ELF-64*)
13083 HPUX_IA64_MODE="64"
13084 ;;
13085 esac
13086 fi
13087 rm -rf conftest*
13088 ;;
13089 *-*-irix6*)
13090 # Find out which ABI we are using.
13091 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
13092 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13093 (eval $ac_compile) 2>&5
13094 ac_status=$?
13095 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13096 test $ac_status = 0; }; then
13097 if test "$lt_cv_prog_gnu_ld" = yes; then
13098 case `/usr/bin/file conftest.$ac_objext` in
13099 *32-bit*)
13100 LD="${LD-ld} -melf32bsmip"
13101 ;;
13102 *N32*)
13103 LD="${LD-ld} -melf32bmipn32"
13104 ;;
13105 *64-bit*)
13106 LD="${LD-ld} -melf64bmip"
13107 ;;
13108 esac
13109 else
13110 case `/usr/bin/file conftest.$ac_objext` in
13111 *32-bit*)
13112 LD="${LD-ld} -32"
13113 ;;
13114 *N32*)
13115 LD="${LD-ld} -n32"
13116 ;;
13117 *64-bit*)
13118 LD="${LD-ld} -64"
13119 ;;
13120 esac
13121 fi
13122 fi
13123 rm -rf conftest*
13124 ;;
13125
13126 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
13127 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
13128 # Find out which ABI we are using.
13129 echo 'int i;' > conftest.$ac_ext
13130 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13131 (eval $ac_compile) 2>&5
13132 ac_status=$?
13133 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13134 test $ac_status = 0; }; then
13135 case `/usr/bin/file conftest.o` in
13136 *32-bit*)
13137 case $host in
13138 x86_64-*kfreebsd*-gnu)
13139 LD="${LD-ld} -m elf_i386_fbsd"
13140 ;;
13141 x86_64-*linux*)
13142 LD="${LD-ld} -m elf_i386"
13143 ;;
13144 powerpc64le-*linux*)
13145 LD="${LD-ld} -m elf32lppclinux"
13146 ;;
13147 powerpc64-*linux*)
13148 LD="${LD-ld} -m elf32ppclinux"
13149 ;;
13150 s390x-*linux*)
13151 LD="${LD-ld} -m elf_s390"
13152 ;;
13153 sparc64-*linux*)
13154 LD="${LD-ld} -m elf32_sparc"
13155 ;;
13156 esac
13157 ;;
13158 *64-bit*)
13159 case $host in
13160 x86_64-*kfreebsd*-gnu)
13161 LD="${LD-ld} -m elf_x86_64_fbsd"
13162 ;;
13163 x86_64-*linux*)
13164 LD="${LD-ld} -m elf_x86_64"
13165 ;;
13166 powerpcle-*linux*)
13167 LD="${LD-ld} -m elf64lppc"
13168 ;;
13169 powerpc-*linux*)
13170 LD="${LD-ld} -m elf64ppc"
13171 ;;
13172 s390*-*linux*|s390*-*tpf*)
13173 LD="${LD-ld} -m elf64_s390"
13174 ;;
13175 sparc*-*linux*)
13176 LD="${LD-ld} -m elf64_sparc"
13177 ;;
13178 esac
13179 ;;
13180 esac
13181 fi
13182 rm -rf conftest*
13183 ;;
13184
13185 *-*-sco3.2v5*)
13186 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13187 SAVE_CFLAGS="$CFLAGS"
13188 CFLAGS="$CFLAGS -belf"
13189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
13190 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
13191 if ${lt_cv_cc_needs_belf+:} false; then :
13192 $as_echo_n "(cached) " >&6
13193 else
13194 ac_ext=c
13195 ac_cpp='$CPP $CPPFLAGS'
13196 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13197 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13198 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13199
13200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13201 /* end confdefs.h. */
13202
13203 int
13204 main ()
13205 {
13206
13207 ;
13208 return 0;
13209 }
13210 _ACEOF
13211 if ac_fn_c_try_link "$LINENO"; then :
13212 lt_cv_cc_needs_belf=yes
13213 else
13214 lt_cv_cc_needs_belf=no
13215 fi
13216 rm -f core conftest.err conftest.$ac_objext \
13217 conftest$ac_exeext conftest.$ac_ext
13218 ac_ext=c
13219 ac_cpp='$CPP $CPPFLAGS'
13220 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13221 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13222 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13223
13224 fi
13225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
13226 $as_echo "$lt_cv_cc_needs_belf" >&6; }
13227 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
13228 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13229 CFLAGS="$SAVE_CFLAGS"
13230 fi
13231 ;;
13232 *-*solaris*)
13233 # Find out which ABI we are using.
13234 echo 'int i;' > conftest.$ac_ext
13235 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13236 (eval $ac_compile) 2>&5
13237 ac_status=$?
13238 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13239 test $ac_status = 0; }; then
13240 case `/usr/bin/file conftest.o` in
13241 *64-bit*)
13242 case $lt_cv_prog_gnu_ld in
13243 yes*)
13244 case $host in
13245 i?86-*-solaris*)
13246 LD="${LD-ld} -m elf_x86_64"
13247 ;;
13248 sparc*-*-solaris*)
13249 LD="${LD-ld} -m elf64_sparc"
13250 ;;
13251 esac
13252 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
13253 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
13254 LD="${LD-ld}_sol2"
13255 fi
13256 ;;
13257 *)
13258 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
13259 LD="${LD-ld} -64"
13260 fi
13261 ;;
13262 esac
13263 ;;
13264 esac
13265 fi
13266 rm -rf conftest*
13267 ;;
13268 esac
13269
13270 need_locks="$enable_libtool_lock"
13271
13272 if test -n "$ac_tool_prefix"; then
13273 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
13274 set dummy ${ac_tool_prefix}mt; ac_word=$2
13275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13276 $as_echo_n "checking for $ac_word... " >&6; }
13277 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
13278 $as_echo_n "(cached) " >&6
13279 else
13280 if test -n "$MANIFEST_TOOL"; then
13281 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
13282 else
13283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13284 for as_dir in $PATH
13285 do
13286 IFS=$as_save_IFS
13287 test -z "$as_dir" && as_dir=.
13288 for ac_exec_ext in '' $ac_executable_extensions; do
13289 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13290 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
13291 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13292 break 2
13293 fi
13294 done
13295 done
13296 IFS=$as_save_IFS
13297
13298 fi
13299 fi
13300 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
13301 if test -n "$MANIFEST_TOOL"; then
13302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
13303 $as_echo "$MANIFEST_TOOL" >&6; }
13304 else
13305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13306 $as_echo "no" >&6; }
13307 fi
13308
13309
13310 fi
13311 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
13312 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
13313 # Extract the first word of "mt", so it can be a program name with args.
13314 set dummy mt; ac_word=$2
13315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13316 $as_echo_n "checking for $ac_word... " >&6; }
13317 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
13318 $as_echo_n "(cached) " >&6
13319 else
13320 if test -n "$ac_ct_MANIFEST_TOOL"; then
13321 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
13322 else
13323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13324 for as_dir in $PATH
13325 do
13326 IFS=$as_save_IFS
13327 test -z "$as_dir" && as_dir=.
13328 for ac_exec_ext in '' $ac_executable_extensions; do
13329 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13330 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
13331 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13332 break 2
13333 fi
13334 done
13335 done
13336 IFS=$as_save_IFS
13337
13338 fi
13339 fi
13340 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
13341 if test -n "$ac_ct_MANIFEST_TOOL"; then
13342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
13343 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
13344 else
13345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13346 $as_echo "no" >&6; }
13347 fi
13348
13349 if test "x$ac_ct_MANIFEST_TOOL" = x; then
13350 MANIFEST_TOOL=":"
13351 else
13352 case $cross_compiling:$ac_tool_warned in
13353 yes:)
13354 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13355 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13356 ac_tool_warned=yes ;;
13357 esac
13358 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
13359 fi
13360 else
13361 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
13362 fi
13363
13364 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
13365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
13366 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
13367 if ${lt_cv_path_mainfest_tool+:} false; then :
13368 $as_echo_n "(cached) " >&6
13369 else
13370 lt_cv_path_mainfest_tool=no
13371 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
13372 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
13373 cat conftest.err >&5
13374 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
13375 lt_cv_path_mainfest_tool=yes
13376 fi
13377 rm -f conftest*
13378 fi
13379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
13380 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
13381 if test "x$lt_cv_path_mainfest_tool" != xyes; then
13382 MANIFEST_TOOL=:
13383 fi
13384
13385
13386
13387
13388
13389
13390 case $host_os in
13391 rhapsody* | darwin*)
13392 if test -n "$ac_tool_prefix"; then
13393 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
13394 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
13395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13396 $as_echo_n "checking for $ac_word... " >&6; }
13397 if ${ac_cv_prog_DSYMUTIL+:} false; then :
13398 $as_echo_n "(cached) " >&6
13399 else
13400 if test -n "$DSYMUTIL"; then
13401 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
13402 else
13403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13404 for as_dir in $PATH
13405 do
13406 IFS=$as_save_IFS
13407 test -z "$as_dir" && as_dir=.
13408 for ac_exec_ext in '' $ac_executable_extensions; do
13409 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13410 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
13411 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13412 break 2
13413 fi
13414 done
13415 done
13416 IFS=$as_save_IFS
13417
13418 fi
13419 fi
13420 DSYMUTIL=$ac_cv_prog_DSYMUTIL
13421 if test -n "$DSYMUTIL"; then
13422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
13423 $as_echo "$DSYMUTIL" >&6; }
13424 else
13425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13426 $as_echo "no" >&6; }
13427 fi
13428
13429
13430 fi
13431 if test -z "$ac_cv_prog_DSYMUTIL"; then
13432 ac_ct_DSYMUTIL=$DSYMUTIL
13433 # Extract the first word of "dsymutil", so it can be a program name with args.
13434 set dummy dsymutil; ac_word=$2
13435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13436 $as_echo_n "checking for $ac_word... " >&6; }
13437 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
13438 $as_echo_n "(cached) " >&6
13439 else
13440 if test -n "$ac_ct_DSYMUTIL"; then
13441 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
13442 else
13443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13444 for as_dir in $PATH
13445 do
13446 IFS=$as_save_IFS
13447 test -z "$as_dir" && as_dir=.
13448 for ac_exec_ext in '' $ac_executable_extensions; do
13449 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13450 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
13451 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13452 break 2
13453 fi
13454 done
13455 done
13456 IFS=$as_save_IFS
13457
13458 fi
13459 fi
13460 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
13461 if test -n "$ac_ct_DSYMUTIL"; then
13462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
13463 $as_echo "$ac_ct_DSYMUTIL" >&6; }
13464 else
13465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13466 $as_echo "no" >&6; }
13467 fi
13468
13469 if test "x$ac_ct_DSYMUTIL" = x; then
13470 DSYMUTIL=":"
13471 else
13472 case $cross_compiling:$ac_tool_warned in
13473 yes:)
13474 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13475 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13476 ac_tool_warned=yes ;;
13477 esac
13478 DSYMUTIL=$ac_ct_DSYMUTIL
13479 fi
13480 else
13481 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
13482 fi
13483
13484 if test -n "$ac_tool_prefix"; then
13485 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
13486 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
13487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13488 $as_echo_n "checking for $ac_word... " >&6; }
13489 if ${ac_cv_prog_NMEDIT+:} false; then :
13490 $as_echo_n "(cached) " >&6
13491 else
13492 if test -n "$NMEDIT"; then
13493 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
13494 else
13495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13496 for as_dir in $PATH
13497 do
13498 IFS=$as_save_IFS
13499 test -z "$as_dir" && as_dir=.
13500 for ac_exec_ext in '' $ac_executable_extensions; do
13501 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13502 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
13503 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13504 break 2
13505 fi
13506 done
13507 done
13508 IFS=$as_save_IFS
13509
13510 fi
13511 fi
13512 NMEDIT=$ac_cv_prog_NMEDIT
13513 if test -n "$NMEDIT"; then
13514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
13515 $as_echo "$NMEDIT" >&6; }
13516 else
13517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13518 $as_echo "no" >&6; }
13519 fi
13520
13521
13522 fi
13523 if test -z "$ac_cv_prog_NMEDIT"; then
13524 ac_ct_NMEDIT=$NMEDIT
13525 # Extract the first word of "nmedit", so it can be a program name with args.
13526 set dummy nmedit; ac_word=$2
13527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13528 $as_echo_n "checking for $ac_word... " >&6; }
13529 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
13530 $as_echo_n "(cached) " >&6
13531 else
13532 if test -n "$ac_ct_NMEDIT"; then
13533 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
13534 else
13535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13536 for as_dir in $PATH
13537 do
13538 IFS=$as_save_IFS
13539 test -z "$as_dir" && as_dir=.
13540 for ac_exec_ext in '' $ac_executable_extensions; do
13541 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13542 ac_cv_prog_ac_ct_NMEDIT="nmedit"
13543 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13544 break 2
13545 fi
13546 done
13547 done
13548 IFS=$as_save_IFS
13549
13550 fi
13551 fi
13552 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
13553 if test -n "$ac_ct_NMEDIT"; then
13554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
13555 $as_echo "$ac_ct_NMEDIT" >&6; }
13556 else
13557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13558 $as_echo "no" >&6; }
13559 fi
13560
13561 if test "x$ac_ct_NMEDIT" = x; then
13562 NMEDIT=":"
13563 else
13564 case $cross_compiling:$ac_tool_warned in
13565 yes:)
13566 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13567 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13568 ac_tool_warned=yes ;;
13569 esac
13570 NMEDIT=$ac_ct_NMEDIT
13571 fi
13572 else
13573 NMEDIT="$ac_cv_prog_NMEDIT"
13574 fi
13575
13576 if test -n "$ac_tool_prefix"; then
13577 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
13578 set dummy ${ac_tool_prefix}lipo; ac_word=$2
13579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13580 $as_echo_n "checking for $ac_word... " >&6; }
13581 if ${ac_cv_prog_LIPO+:} false; then :
13582 $as_echo_n "(cached) " >&6
13583 else
13584 if test -n "$LIPO"; then
13585 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
13586 else
13587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13588 for as_dir in $PATH
13589 do
13590 IFS=$as_save_IFS
13591 test -z "$as_dir" && as_dir=.
13592 for ac_exec_ext in '' $ac_executable_extensions; do
13593 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13594 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
13595 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13596 break 2
13597 fi
13598 done
13599 done
13600 IFS=$as_save_IFS
13601
13602 fi
13603 fi
13604 LIPO=$ac_cv_prog_LIPO
13605 if test -n "$LIPO"; then
13606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
13607 $as_echo "$LIPO" >&6; }
13608 else
13609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13610 $as_echo "no" >&6; }
13611 fi
13612
13613
13614 fi
13615 if test -z "$ac_cv_prog_LIPO"; then
13616 ac_ct_LIPO=$LIPO
13617 # Extract the first word of "lipo", so it can be a program name with args.
13618 set dummy lipo; ac_word=$2
13619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13620 $as_echo_n "checking for $ac_word... " >&6; }
13621 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
13622 $as_echo_n "(cached) " >&6
13623 else
13624 if test -n "$ac_ct_LIPO"; then
13625 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
13626 else
13627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13628 for as_dir in $PATH
13629 do
13630 IFS=$as_save_IFS
13631 test -z "$as_dir" && as_dir=.
13632 for ac_exec_ext in '' $ac_executable_extensions; do
13633 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13634 ac_cv_prog_ac_ct_LIPO="lipo"
13635 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13636 break 2
13637 fi
13638 done
13639 done
13640 IFS=$as_save_IFS
13641
13642 fi
13643 fi
13644 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
13645 if test -n "$ac_ct_LIPO"; then
13646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
13647 $as_echo "$ac_ct_LIPO" >&6; }
13648 else
13649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13650 $as_echo "no" >&6; }
13651 fi
13652
13653 if test "x$ac_ct_LIPO" = x; then
13654 LIPO=":"
13655 else
13656 case $cross_compiling:$ac_tool_warned in
13657 yes:)
13658 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13659 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13660 ac_tool_warned=yes ;;
13661 esac
13662 LIPO=$ac_ct_LIPO
13663 fi
13664 else
13665 LIPO="$ac_cv_prog_LIPO"
13666 fi
13667
13668 if test -n "$ac_tool_prefix"; then
13669 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
13670 set dummy ${ac_tool_prefix}otool; ac_word=$2
13671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13672 $as_echo_n "checking for $ac_word... " >&6; }
13673 if ${ac_cv_prog_OTOOL+:} false; then :
13674 $as_echo_n "(cached) " >&6
13675 else
13676 if test -n "$OTOOL"; then
13677 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
13678 else
13679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13680 for as_dir in $PATH
13681 do
13682 IFS=$as_save_IFS
13683 test -z "$as_dir" && as_dir=.
13684 for ac_exec_ext in '' $ac_executable_extensions; do
13685 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13686 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
13687 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13688 break 2
13689 fi
13690 done
13691 done
13692 IFS=$as_save_IFS
13693
13694 fi
13695 fi
13696 OTOOL=$ac_cv_prog_OTOOL
13697 if test -n "$OTOOL"; then
13698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
13699 $as_echo "$OTOOL" >&6; }
13700 else
13701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13702 $as_echo "no" >&6; }
13703 fi
13704
13705
13706 fi
13707 if test -z "$ac_cv_prog_OTOOL"; then
13708 ac_ct_OTOOL=$OTOOL
13709 # Extract the first word of "otool", so it can be a program name with args.
13710 set dummy otool; ac_word=$2
13711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13712 $as_echo_n "checking for $ac_word... " >&6; }
13713 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
13714 $as_echo_n "(cached) " >&6
13715 else
13716 if test -n "$ac_ct_OTOOL"; then
13717 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
13718 else
13719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13720 for as_dir in $PATH
13721 do
13722 IFS=$as_save_IFS
13723 test -z "$as_dir" && as_dir=.
13724 for ac_exec_ext in '' $ac_executable_extensions; do
13725 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13726 ac_cv_prog_ac_ct_OTOOL="otool"
13727 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13728 break 2
13729 fi
13730 done
13731 done
13732 IFS=$as_save_IFS
13733
13734 fi
13735 fi
13736 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
13737 if test -n "$ac_ct_OTOOL"; then
13738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
13739 $as_echo "$ac_ct_OTOOL" >&6; }
13740 else
13741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13742 $as_echo "no" >&6; }
13743 fi
13744
13745 if test "x$ac_ct_OTOOL" = x; then
13746 OTOOL=":"
13747 else
13748 case $cross_compiling:$ac_tool_warned in
13749 yes:)
13750 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13751 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13752 ac_tool_warned=yes ;;
13753 esac
13754 OTOOL=$ac_ct_OTOOL
13755 fi
13756 else
13757 OTOOL="$ac_cv_prog_OTOOL"
13758 fi
13759
13760 if test -n "$ac_tool_prefix"; then
13761 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
13762 set dummy ${ac_tool_prefix}otool64; ac_word=$2
13763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13764 $as_echo_n "checking for $ac_word... " >&6; }
13765 if ${ac_cv_prog_OTOOL64+:} false; then :
13766 $as_echo_n "(cached) " >&6
13767 else
13768 if test -n "$OTOOL64"; then
13769 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
13770 else
13771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13772 for as_dir in $PATH
13773 do
13774 IFS=$as_save_IFS
13775 test -z "$as_dir" && as_dir=.
13776 for ac_exec_ext in '' $ac_executable_extensions; do
13777 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13778 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
13779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13780 break 2
13781 fi
13782 done
13783 done
13784 IFS=$as_save_IFS
13785
13786 fi
13787 fi
13788 OTOOL64=$ac_cv_prog_OTOOL64
13789 if test -n "$OTOOL64"; then
13790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
13791 $as_echo "$OTOOL64" >&6; }
13792 else
13793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13794 $as_echo "no" >&6; }
13795 fi
13796
13797
13798 fi
13799 if test -z "$ac_cv_prog_OTOOL64"; then
13800 ac_ct_OTOOL64=$OTOOL64
13801 # Extract the first word of "otool64", so it can be a program name with args.
13802 set dummy otool64; ac_word=$2
13803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13804 $as_echo_n "checking for $ac_word... " >&6; }
13805 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
13806 $as_echo_n "(cached) " >&6
13807 else
13808 if test -n "$ac_ct_OTOOL64"; then
13809 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
13810 else
13811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13812 for as_dir in $PATH
13813 do
13814 IFS=$as_save_IFS
13815 test -z "$as_dir" && as_dir=.
13816 for ac_exec_ext in '' $ac_executable_extensions; do
13817 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13818 ac_cv_prog_ac_ct_OTOOL64="otool64"
13819 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13820 break 2
13821 fi
13822 done
13823 done
13824 IFS=$as_save_IFS
13825
13826 fi
13827 fi
13828 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
13829 if test -n "$ac_ct_OTOOL64"; then
13830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
13831 $as_echo "$ac_ct_OTOOL64" >&6; }
13832 else
13833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13834 $as_echo "no" >&6; }
13835 fi
13836
13837 if test "x$ac_ct_OTOOL64" = x; then
13838 OTOOL64=":"
13839 else
13840 case $cross_compiling:$ac_tool_warned in
13841 yes:)
13842 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13843 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13844 ac_tool_warned=yes ;;
13845 esac
13846 OTOOL64=$ac_ct_OTOOL64
13847 fi
13848 else
13849 OTOOL64="$ac_cv_prog_OTOOL64"
13850 fi
13851
13852
13853
13854
13855
13856
13857
13858
13859
13860
13861
13862
13863
13864
13865
13866
13867
13868
13869
13870
13871
13872
13873
13874
13875
13876
13877
13878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
13879 $as_echo_n "checking for -single_module linker flag... " >&6; }
13880 if ${lt_cv_apple_cc_single_mod+:} false; then :
13881 $as_echo_n "(cached) " >&6
13882 else
13883 lt_cv_apple_cc_single_mod=no
13884 if test -z "${LT_MULTI_MODULE}"; then
13885 # By default we will add the -single_module flag. You can override
13886 # by either setting the environment variable LT_MULTI_MODULE
13887 # non-empty at configure time, or by adding -multi_module to the
13888 # link flags.
13889 rm -rf libconftest.dylib*
13890 echo "int foo(void){return 1;}" > conftest.c
13891 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13892 -dynamiclib -Wl,-single_module conftest.c" >&5
13893 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13894 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
13895 _lt_result=$?
13896 # If there is a non-empty error log, and "single_module"
13897 # appears in it, assume the flag caused a linker warning
13898 if test -s conftest.err && $GREP single_module conftest.err; then
13899 cat conftest.err >&5
13900 # Otherwise, if the output was created with a 0 exit code from
13901 # the compiler, it worked.
13902 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
13903 lt_cv_apple_cc_single_mod=yes
13904 else
13905 cat conftest.err >&5
13906 fi
13907 rm -rf libconftest.dylib*
13908 rm -f conftest.*
13909 fi
13910 fi
13911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
13912 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
13913
13914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
13915 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
13916 if ${lt_cv_ld_exported_symbols_list+:} false; then :
13917 $as_echo_n "(cached) " >&6
13918 else
13919 lt_cv_ld_exported_symbols_list=no
13920 save_LDFLAGS=$LDFLAGS
13921 echo "_main" > conftest.sym
13922 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
13923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13924 /* end confdefs.h. */
13925
13926 int
13927 main ()
13928 {
13929
13930 ;
13931 return 0;
13932 }
13933 _ACEOF
13934 if ac_fn_c_try_link "$LINENO"; then :
13935 lt_cv_ld_exported_symbols_list=yes
13936 else
13937 lt_cv_ld_exported_symbols_list=no
13938 fi
13939 rm -f core conftest.err conftest.$ac_objext \
13940 conftest$ac_exeext conftest.$ac_ext
13941 LDFLAGS="$save_LDFLAGS"
13942
13943 fi
13944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
13945 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
13946
13947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
13948 $as_echo_n "checking for -force_load linker flag... " >&6; }
13949 if ${lt_cv_ld_force_load+:} false; then :
13950 $as_echo_n "(cached) " >&6
13951 else
13952 lt_cv_ld_force_load=no
13953 cat > conftest.c << _LT_EOF
13954 int forced_loaded() { return 2;}
13955 _LT_EOF
13956 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
13957 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
13958 echo "$AR cru libconftest.a conftest.o" >&5
13959 $AR cru libconftest.a conftest.o 2>&5
13960 echo "$RANLIB libconftest.a" >&5
13961 $RANLIB libconftest.a 2>&5
13962 cat > conftest.c << _LT_EOF
13963 int main() { return 0;}
13964 _LT_EOF
13965 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
13966 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
13967 _lt_result=$?
13968 if test -s conftest.err && $GREP force_load conftest.err; then
13969 cat conftest.err >&5
13970 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
13971 lt_cv_ld_force_load=yes
13972 else
13973 cat conftest.err >&5
13974 fi
13975 rm -f conftest.err libconftest.a conftest conftest.c
13976 rm -rf conftest.dSYM
13977
13978 fi
13979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
13980 $as_echo "$lt_cv_ld_force_load" >&6; }
13981 case $host_os in
13982 rhapsody* | darwin1.[012])
13983 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
13984 darwin1.*)
13985 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13986 darwin*) # darwin 5.x on
13987 # if running on 10.5 or later, the deployment target defaults
13988 # to the OS version, if on x86, and 10.4, the deployment
13989 # target defaults to 10.4. Don't you love it?
13990 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
13991 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
13992 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13993 10.[012]*)
13994 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13995 10.*)
13996 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13997 esac
13998 ;;
13999 esac
14000 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
14001 _lt_dar_single_mod='$single_module'
14002 fi
14003 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
14004 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
14005 else
14006 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
14007 fi
14008 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
14009 _lt_dsymutil='~$DSYMUTIL $lib || :'
14010 else
14011 _lt_dsymutil=
14012 fi
14013 ;;
14014 esac
14015
14016 for ac_header in dlfcn.h
14017 do :
14018 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
14019 "
14020 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
14021 cat >>confdefs.h <<_ACEOF
14022 #define HAVE_DLFCN_H 1
14023 _ACEOF
14024
14025 fi
14026
14027 done
14028
14029
14030
14031
14032
14033 # Set options
14034
14035
14036
14037 enable_dlopen=no
14038
14039
14040 enable_win32_dll=no
14041
14042
14043 # Check whether --enable-shared was given.
14044 if test "${enable_shared+set}" = set; then :
14045 enableval=$enable_shared; p=${PACKAGE-default}
14046 case $enableval in
14047 yes) enable_shared=yes ;;
14048 no) enable_shared=no ;;
14049 *)
14050 enable_shared=no
14051 # Look at the argument we got. We use all the common list separators.
14052 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14053 for pkg in $enableval; do
14054 IFS="$lt_save_ifs"
14055 if test "X$pkg" = "X$p"; then
14056 enable_shared=yes
14057 fi
14058 done
14059 IFS="$lt_save_ifs"
14060 ;;
14061 esac
14062 else
14063 enable_shared=yes
14064 fi
14065
14066
14067
14068
14069
14070
14071
14072
14073
14074
14075
14076 # Check whether --with-pic was given.
14077 if test "${with_pic+set}" = set; then :
14078 withval=$with_pic; lt_p=${PACKAGE-default}
14079 case $withval in
14080 yes|no) pic_mode=$withval ;;
14081 *)
14082 pic_mode=default
14083 # Look at the argument we got. We use all the common list separators.
14084 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14085 for lt_pkg in $withval; do
14086 IFS="$lt_save_ifs"
14087 if test "X$lt_pkg" = "X$lt_p"; then
14088 pic_mode=yes
14089 fi
14090 done
14091 IFS="$lt_save_ifs"
14092 ;;
14093 esac
14094 else
14095 pic_mode=default
14096 fi
14097
14098
14099 test -z "$pic_mode" && pic_mode=default
14100
14101
14102
14103
14104
14105
14106
14107 # Check whether --enable-fast-install was given.
14108 if test "${enable_fast_install+set}" = set; then :
14109 enableval=$enable_fast_install; p=${PACKAGE-default}
14110 case $enableval in
14111 yes) enable_fast_install=yes ;;
14112 no) enable_fast_install=no ;;
14113 *)
14114 enable_fast_install=no
14115 # Look at the argument we got. We use all the common list separators.
14116 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14117 for pkg in $enableval; do
14118 IFS="$lt_save_ifs"
14119 if test "X$pkg" = "X$p"; then
14120 enable_fast_install=yes
14121 fi
14122 done
14123 IFS="$lt_save_ifs"
14124 ;;
14125 esac
14126 else
14127 enable_fast_install=yes
14128 fi
14129
14130
14131
14132
14133
14134
14135
14136
14137
14138
14139
14140 # This can be used to rebuild libtool when needed
14141 LIBTOOL_DEPS="$ltmain"
14142
14143 # Always use our own libtool.
14144 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
14145
14146
14147
14148
14149
14150
14151
14152
14153
14154
14155
14156
14157
14158
14159
14160
14161
14162
14163
14164
14165
14166
14167
14168
14169
14170
14171
14172
14173
14174
14175 test -z "$LN_S" && LN_S="ln -s"
14176
14177
14178
14179
14180
14181
14182
14183
14184
14185
14186
14187
14188
14189
14190 if test -n "${ZSH_VERSION+set}" ; then
14191 setopt NO_GLOB_SUBST
14192 fi
14193
14194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
14195 $as_echo_n "checking for objdir... " >&6; }
14196 if ${lt_cv_objdir+:} false; then :
14197 $as_echo_n "(cached) " >&6
14198 else
14199 rm -f .libs 2>/dev/null
14200 mkdir .libs 2>/dev/null
14201 if test -d .libs; then
14202 lt_cv_objdir=.libs
14203 else
14204 # MS-DOS does not allow filenames that begin with a dot.
14205 lt_cv_objdir=_libs
14206 fi
14207 rmdir .libs 2>/dev/null
14208 fi
14209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
14210 $as_echo "$lt_cv_objdir" >&6; }
14211 objdir=$lt_cv_objdir
14212
14213
14214
14215
14216
14217 cat >>confdefs.h <<_ACEOF
14218 #define LT_OBJDIR "$lt_cv_objdir/"
14219 _ACEOF
14220
14221
14222
14223
14224 case $host_os in
14225 aix3*)
14226 # AIX sometimes has problems with the GCC collect2 program. For some
14227 # reason, if we set the COLLECT_NAMES environment variable, the problems
14228 # vanish in a puff of smoke.
14229 if test "X${COLLECT_NAMES+set}" != Xset; then
14230 COLLECT_NAMES=
14231 export COLLECT_NAMES
14232 fi
14233 ;;
14234 esac
14235
14236 # Global variables:
14237 ofile=libtool
14238 can_build_shared=yes
14239
14240 # All known linkers require a `.a' archive for static linking (except MSVC,
14241 # which needs '.lib').
14242 libext=a
14243
14244 with_gnu_ld="$lt_cv_prog_gnu_ld"
14245
14246 old_CC="$CC"
14247 old_CFLAGS="$CFLAGS"
14248
14249 # Set sane defaults for various variables
14250 test -z "$CC" && CC=cc
14251 test -z "$LTCC" && LTCC=$CC
14252 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14253 test -z "$LD" && LD=ld
14254 test -z "$ac_objext" && ac_objext=o
14255
14256 for cc_temp in $compiler""; do
14257 case $cc_temp in
14258 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14259 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14260 \-*) ;;
14261 *) break;;
14262 esac
14263 done
14264 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
14265
14266
14267 # Only perform the check for file, if the check method requires it
14268 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14269 case $deplibs_check_method in
14270 file_magic*)
14271 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
14273 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
14274 if ${lt_cv_path_MAGIC_CMD+:} false; then :
14275 $as_echo_n "(cached) " >&6
14276 else
14277 case $MAGIC_CMD in
14278 [\\/*] | ?:[\\/]*)
14279 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14280 ;;
14281 *)
14282 lt_save_MAGIC_CMD="$MAGIC_CMD"
14283 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14284 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14285 for ac_dir in $ac_dummy; do
14286 IFS="$lt_save_ifs"
14287 test -z "$ac_dir" && ac_dir=.
14288 if test -f $ac_dir/${ac_tool_prefix}file; then
14289 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14290 if test -n "$file_magic_test_file"; then
14291 case $deplibs_check_method in
14292 "file_magic "*)
14293 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14294 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14295 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14296 $EGREP "$file_magic_regex" > /dev/null; then
14297 :
14298 else
14299 cat <<_LT_EOF 1>&2
14300
14301 *** Warning: the command libtool uses to detect shared libraries,
14302 *** $file_magic_cmd, produces output that libtool cannot recognize.
14303 *** The result is that libtool may fail to recognize shared libraries
14304 *** as such. This will affect the creation of libtool libraries that
14305 *** depend on shared libraries, but programs linked with such libtool
14306 *** libraries will work regardless of this problem. Nevertheless, you
14307 *** may want to report the problem to your system manager and/or to
14308 *** bug-libtool@gnu.org
14309
14310 _LT_EOF
14311 fi ;;
14312 esac
14313 fi
14314 break
14315 fi
14316 done
14317 IFS="$lt_save_ifs"
14318 MAGIC_CMD="$lt_save_MAGIC_CMD"
14319 ;;
14320 esac
14321 fi
14322
14323 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14324 if test -n "$MAGIC_CMD"; then
14325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14326 $as_echo "$MAGIC_CMD" >&6; }
14327 else
14328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14329 $as_echo "no" >&6; }
14330 fi
14331
14332
14333
14334
14335
14336 if test -z "$lt_cv_path_MAGIC_CMD"; then
14337 if test -n "$ac_tool_prefix"; then
14338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
14339 $as_echo_n "checking for file... " >&6; }
14340 if ${lt_cv_path_MAGIC_CMD+:} false; then :
14341 $as_echo_n "(cached) " >&6
14342 else
14343 case $MAGIC_CMD in
14344 [\\/*] | ?:[\\/]*)
14345 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14346 ;;
14347 *)
14348 lt_save_MAGIC_CMD="$MAGIC_CMD"
14349 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14350 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14351 for ac_dir in $ac_dummy; do
14352 IFS="$lt_save_ifs"
14353 test -z "$ac_dir" && ac_dir=.
14354 if test -f $ac_dir/file; then
14355 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14356 if test -n "$file_magic_test_file"; then
14357 case $deplibs_check_method in
14358 "file_magic "*)
14359 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14360 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14361 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14362 $EGREP "$file_magic_regex" > /dev/null; then
14363 :
14364 else
14365 cat <<_LT_EOF 1>&2
14366
14367 *** Warning: the command libtool uses to detect shared libraries,
14368 *** $file_magic_cmd, produces output that libtool cannot recognize.
14369 *** The result is that libtool may fail to recognize shared libraries
14370 *** as such. This will affect the creation of libtool libraries that
14371 *** depend on shared libraries, but programs linked with such libtool
14372 *** libraries will work regardless of this problem. Nevertheless, you
14373 *** may want to report the problem to your system manager and/or to
14374 *** bug-libtool@gnu.org
14375
14376 _LT_EOF
14377 fi ;;
14378 esac
14379 fi
14380 break
14381 fi
14382 done
14383 IFS="$lt_save_ifs"
14384 MAGIC_CMD="$lt_save_MAGIC_CMD"
14385 ;;
14386 esac
14387 fi
14388
14389 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14390 if test -n "$MAGIC_CMD"; then
14391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14392 $as_echo "$MAGIC_CMD" >&6; }
14393 else
14394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14395 $as_echo "no" >&6; }
14396 fi
14397
14398
14399 else
14400 MAGIC_CMD=:
14401 fi
14402 fi
14403
14404 fi
14405 ;;
14406 esac
14407
14408 # Use C for the default configuration in the libtool script
14409
14410 lt_save_CC="$CC"
14411 ac_ext=c
14412 ac_cpp='$CPP $CPPFLAGS'
14413 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14414 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14415 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14416
14417
14418 # Source file extension for C test sources.
14419 ac_ext=c
14420
14421 # Object file extension for compiled C test sources.
14422 objext=o
14423 objext=$objext
14424
14425 # Code to be used in simple compile tests
14426 lt_simple_compile_test_code="int some_variable = 0;"
14427
14428 # Code to be used in simple link tests
14429 lt_simple_link_test_code='int main(){return(0);}'
14430
14431
14432
14433
14434
14435
14436
14437 # If no C compiler was specified, use CC.
14438 LTCC=${LTCC-"$CC"}
14439
14440 # If no C compiler flags were specified, use CFLAGS.
14441 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14442
14443 # Allow CC to be a program name with arguments.
14444 compiler=$CC
14445
14446 # Save the default compiler, since it gets overwritten when the other
14447 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
14448 compiler_DEFAULT=$CC
14449
14450 # save warnings/boilerplate of simple test code
14451 ac_outfile=conftest.$ac_objext
14452 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14453 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14454 _lt_compiler_boilerplate=`cat conftest.err`
14455 $RM conftest*
14456
14457 ac_outfile=conftest.$ac_objext
14458 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14459 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14460 _lt_linker_boilerplate=`cat conftest.err`
14461 $RM -r conftest*
14462
14463
14464 if test -n "$compiler"; then
14465
14466 lt_prog_compiler_no_builtin_flag=
14467
14468 if test "$GCC" = yes; then
14469 case $cc_basename in
14470 nvcc*)
14471 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
14472 *)
14473 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
14474 esac
14475
14476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14477 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
14478 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
14479 $as_echo_n "(cached) " >&6
14480 else
14481 lt_cv_prog_compiler_rtti_exceptions=no
14482 ac_outfile=conftest.$ac_objext
14483 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14484 lt_compiler_flag="-fno-rtti -fno-exceptions"
14485 # Insert the option either (1) after the last *FLAGS variable, or
14486 # (2) before a word containing "conftest.", or (3) at the end.
14487 # Note that $ac_compile itself does not contain backslashes and begins
14488 # with a dollar sign (not a hyphen), so the echo should work correctly.
14489 # The option is referenced via a variable to avoid confusing sed.
14490 lt_compile=`echo "$ac_compile" | $SED \
14491 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14492 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14493 -e 's:$: $lt_compiler_flag:'`
14494 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14495 (eval "$lt_compile" 2>conftest.err)
14496 ac_status=$?
14497 cat conftest.err >&5
14498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14499 if (exit $ac_status) && test -s "$ac_outfile"; then
14500 # The compiler can only warn and ignore the option if not recognized
14501 # So say no if there are warnings other than the usual output.
14502 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14503 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14504 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14505 lt_cv_prog_compiler_rtti_exceptions=yes
14506 fi
14507 fi
14508 $RM conftest*
14509
14510 fi
14511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14512 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14513
14514 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14515 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14516 else
14517 :
14518 fi
14519
14520 fi
14521
14522
14523
14524
14525
14526
14527 lt_prog_compiler_wl=
14528 lt_prog_compiler_pic=
14529 lt_prog_compiler_static=
14530
14531
14532 if test "$GCC" = yes; then
14533 lt_prog_compiler_wl='-Wl,'
14534 lt_prog_compiler_static='-static'
14535
14536 case $host_os in
14537 aix*)
14538 # All AIX code is PIC.
14539 if test "$host_cpu" = ia64; then
14540 # AIX 5 now supports IA64 processor
14541 lt_prog_compiler_static='-Bstatic'
14542 fi
14543 ;;
14544
14545 amigaos*)
14546 case $host_cpu in
14547 powerpc)
14548 # see comment about AmigaOS4 .so support
14549 lt_prog_compiler_pic='-fPIC'
14550 ;;
14551 m68k)
14552 # FIXME: we need at least 68020 code to build shared libraries, but
14553 # adding the `-m68020' flag to GCC prevents building anything better,
14554 # like `-m68040'.
14555 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14556 ;;
14557 esac
14558 ;;
14559
14560 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14561 # PIC is the default for these OSes.
14562 ;;
14563
14564 mingw* | cygwin* | pw32* | os2* | cegcc*)
14565 # This hack is so that the source file can tell whether it is being
14566 # built for inclusion in a dll (and should export symbols for example).
14567 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14568 # (--disable-auto-import) libraries
14569 lt_prog_compiler_pic='-DDLL_EXPORT'
14570 ;;
14571
14572 darwin* | rhapsody*)
14573 # PIC is the default on this platform
14574 # Common symbols not allowed in MH_DYLIB files
14575 lt_prog_compiler_pic='-fno-common'
14576 ;;
14577
14578 haiku*)
14579 # PIC is the default for Haiku.
14580 # The "-static" flag exists, but is broken.
14581 lt_prog_compiler_static=
14582 ;;
14583
14584 hpux*)
14585 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14586 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14587 # sets the default TLS model and affects inlining.
14588 case $host_cpu in
14589 hppa*64*)
14590 # +Z the default
14591 ;;
14592 *)
14593 lt_prog_compiler_pic='-fPIC'
14594 ;;
14595 esac
14596 ;;
14597
14598 interix[3-9]*)
14599 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14600 # Instead, we relocate shared libraries at runtime.
14601 ;;
14602
14603 msdosdjgpp*)
14604 # Just because we use GCC doesn't mean we suddenly get shared libraries
14605 # on systems that don't support them.
14606 lt_prog_compiler_can_build_shared=no
14607 enable_shared=no
14608 ;;
14609
14610 *nto* | *qnx*)
14611 # QNX uses GNU C++, but need to define -shared option too, otherwise
14612 # it will coredump.
14613 lt_prog_compiler_pic='-fPIC -shared'
14614 ;;
14615
14616 sysv4*MP*)
14617 if test -d /usr/nec; then
14618 lt_prog_compiler_pic=-Kconform_pic
14619 fi
14620 ;;
14621
14622 *)
14623 lt_prog_compiler_pic='-fPIC'
14624 ;;
14625 esac
14626
14627 case $cc_basename in
14628 nvcc*) # Cuda Compiler Driver 2.2
14629 lt_prog_compiler_wl='-Xlinker '
14630 if test -n "$lt_prog_compiler_pic"; then
14631 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
14632 fi
14633 ;;
14634 esac
14635 else
14636 # PORTME Check for flag to pass linker flags through the system compiler.
14637 case $host_os in
14638 aix*)
14639 lt_prog_compiler_wl='-Wl,'
14640 if test "$host_cpu" = ia64; then
14641 # AIX 5 now supports IA64 processor
14642 lt_prog_compiler_static='-Bstatic'
14643 else
14644 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14645 fi
14646 ;;
14647
14648 mingw* | cygwin* | pw32* | os2* | cegcc*)
14649 # This hack is so that the source file can tell whether it is being
14650 # built for inclusion in a dll (and should export symbols for example).
14651 lt_prog_compiler_pic='-DDLL_EXPORT'
14652 ;;
14653
14654 hpux9* | hpux10* | hpux11*)
14655 lt_prog_compiler_wl='-Wl,'
14656 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14657 # not for PA HP-UX.
14658 case $host_cpu in
14659 hppa*64*|ia64*)
14660 # +Z the default
14661 ;;
14662 *)
14663 lt_prog_compiler_pic='+Z'
14664 ;;
14665 esac
14666 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14667 lt_prog_compiler_static='${wl}-a ${wl}archive'
14668 ;;
14669
14670 irix5* | irix6* | nonstopux*)
14671 lt_prog_compiler_wl='-Wl,'
14672 # PIC (with -KPIC) is the default.
14673 lt_prog_compiler_static='-non_shared'
14674 ;;
14675
14676 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14677 case $cc_basename in
14678 # old Intel for x86_64 which still supported -KPIC.
14679 ecc*)
14680 lt_prog_compiler_wl='-Wl,'
14681 lt_prog_compiler_pic='-KPIC'
14682 lt_prog_compiler_static='-static'
14683 ;;
14684 # icc used to be incompatible with GCC.
14685 # ICC 10 doesn't accept -KPIC any more.
14686 icc* | ifort*)
14687 lt_prog_compiler_wl='-Wl,'
14688 lt_prog_compiler_pic='-fPIC'
14689 lt_prog_compiler_static='-static'
14690 ;;
14691 # Lahey Fortran 8.1.
14692 lf95*)
14693 lt_prog_compiler_wl='-Wl,'
14694 lt_prog_compiler_pic='--shared'
14695 lt_prog_compiler_static='--static'
14696 ;;
14697 nagfor*)
14698 # NAG Fortran compiler
14699 lt_prog_compiler_wl='-Wl,-Wl,,'
14700 lt_prog_compiler_pic='-PIC'
14701 lt_prog_compiler_static='-Bstatic'
14702 ;;
14703 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
14704 # Portland Group compilers (*not* the Pentium gcc compiler,
14705 # which looks to be a dead project)
14706 lt_prog_compiler_wl='-Wl,'
14707 lt_prog_compiler_pic='-fpic'
14708 lt_prog_compiler_static='-Bstatic'
14709 ;;
14710 ccc*)
14711 lt_prog_compiler_wl='-Wl,'
14712 # All Alpha code is PIC.
14713 lt_prog_compiler_static='-non_shared'
14714 ;;
14715 xl* | bgxl* | bgf* | mpixl*)
14716 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
14717 lt_prog_compiler_wl='-Wl,'
14718 lt_prog_compiler_pic='-qpic'
14719 lt_prog_compiler_static='-qstaticlink'
14720 ;;
14721 *)
14722 case `$CC -V 2>&1 | sed 5q` in
14723 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
14724 # Sun Fortran 8.3 passes all unrecognized flags to the linker
14725 lt_prog_compiler_pic='-KPIC'
14726 lt_prog_compiler_static='-Bstatic'
14727 lt_prog_compiler_wl=''
14728 ;;
14729 *Sun\ F* | *Sun*Fortran*)
14730 lt_prog_compiler_pic='-KPIC'
14731 lt_prog_compiler_static='-Bstatic'
14732 lt_prog_compiler_wl='-Qoption ld '
14733 ;;
14734 *Sun\ C*)
14735 # Sun C 5.9
14736 lt_prog_compiler_pic='-KPIC'
14737 lt_prog_compiler_static='-Bstatic'
14738 lt_prog_compiler_wl='-Wl,'
14739 ;;
14740 *Intel*\ [CF]*Compiler*)
14741 lt_prog_compiler_wl='-Wl,'
14742 lt_prog_compiler_pic='-fPIC'
14743 lt_prog_compiler_static='-static'
14744 ;;
14745 *Portland\ Group*)
14746 lt_prog_compiler_wl='-Wl,'
14747 lt_prog_compiler_pic='-fpic'
14748 lt_prog_compiler_static='-Bstatic'
14749 ;;
14750 esac
14751 ;;
14752 esac
14753 ;;
14754
14755 newsos6)
14756 lt_prog_compiler_pic='-KPIC'
14757 lt_prog_compiler_static='-Bstatic'
14758 ;;
14759
14760 *nto* | *qnx*)
14761 # QNX uses GNU C++, but need to define -shared option too, otherwise
14762 # it will coredump.
14763 lt_prog_compiler_pic='-fPIC -shared'
14764 ;;
14765
14766 osf3* | osf4* | osf5*)
14767 lt_prog_compiler_wl='-Wl,'
14768 # All OSF/1 code is PIC.
14769 lt_prog_compiler_static='-non_shared'
14770 ;;
14771
14772 rdos*)
14773 lt_prog_compiler_static='-non_shared'
14774 ;;
14775
14776 solaris*)
14777 lt_prog_compiler_pic='-KPIC'
14778 lt_prog_compiler_static='-Bstatic'
14779 case $cc_basename in
14780 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
14781 lt_prog_compiler_wl='-Qoption ld ';;
14782 *)
14783 lt_prog_compiler_wl='-Wl,';;
14784 esac
14785 ;;
14786
14787 sunos4*)
14788 lt_prog_compiler_wl='-Qoption ld '
14789 lt_prog_compiler_pic='-PIC'
14790 lt_prog_compiler_static='-Bstatic'
14791 ;;
14792
14793 sysv4 | sysv4.2uw2* | sysv4.3*)
14794 lt_prog_compiler_wl='-Wl,'
14795 lt_prog_compiler_pic='-KPIC'
14796 lt_prog_compiler_static='-Bstatic'
14797 ;;
14798
14799 sysv4*MP*)
14800 if test -d /usr/nec ;then
14801 lt_prog_compiler_pic='-Kconform_pic'
14802 lt_prog_compiler_static='-Bstatic'
14803 fi
14804 ;;
14805
14806 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14807 lt_prog_compiler_wl='-Wl,'
14808 lt_prog_compiler_pic='-KPIC'
14809 lt_prog_compiler_static='-Bstatic'
14810 ;;
14811
14812 unicos*)
14813 lt_prog_compiler_wl='-Wl,'
14814 lt_prog_compiler_can_build_shared=no
14815 ;;
14816
14817 uts4*)
14818 lt_prog_compiler_pic='-pic'
14819 lt_prog_compiler_static='-Bstatic'
14820 ;;
14821
14822 *)
14823 lt_prog_compiler_can_build_shared=no
14824 ;;
14825 esac
14826 fi
14827
14828 case $host_os in
14829 # For platforms which do not support PIC, -DPIC is meaningless:
14830 *djgpp*)
14831 lt_prog_compiler_pic=
14832 ;;
14833 *)
14834 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14835 ;;
14836 esac
14837
14838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14839 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14840 if ${lt_cv_prog_compiler_pic+:} false; then :
14841 $as_echo_n "(cached) " >&6
14842 else
14843 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
14844 fi
14845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
14846 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
14847 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
14848
14849 #
14850 # Check to make sure the PIC flag actually works.
14851 #
14852 if test -n "$lt_prog_compiler_pic"; then
14853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14854 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
14855 if ${lt_cv_prog_compiler_pic_works+:} false; then :
14856 $as_echo_n "(cached) " >&6
14857 else
14858 lt_cv_prog_compiler_pic_works=no
14859 ac_outfile=conftest.$ac_objext
14860 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14861 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14862 # Insert the option either (1) after the last *FLAGS variable, or
14863 # (2) before a word containing "conftest.", or (3) at the end.
14864 # Note that $ac_compile itself does not contain backslashes and begins
14865 # with a dollar sign (not a hyphen), so the echo should work correctly.
14866 # The option is referenced via a variable to avoid confusing sed.
14867 lt_compile=`echo "$ac_compile" | $SED \
14868 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14869 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14870 -e 's:$: $lt_compiler_flag:'`
14871 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14872 (eval "$lt_compile" 2>conftest.err)
14873 ac_status=$?
14874 cat conftest.err >&5
14875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14876 if (exit $ac_status) && test -s "$ac_outfile"; then
14877 # The compiler can only warn and ignore the option if not recognized
14878 # So say no if there are warnings other than the usual output.
14879 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14880 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14881 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14882 lt_cv_prog_compiler_pic_works=yes
14883 fi
14884 fi
14885 $RM conftest*
14886
14887 fi
14888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
14889 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
14890
14891 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
14892 case $lt_prog_compiler_pic in
14893 "" | " "*) ;;
14894 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14895 esac
14896 else
14897 lt_prog_compiler_pic=
14898 lt_prog_compiler_can_build_shared=no
14899 fi
14900
14901 fi
14902
14903
14904
14905
14906
14907
14908
14909
14910
14911
14912
14913 #
14914 # Check to make sure the static flag actually works.
14915 #
14916 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14918 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14919 if ${lt_cv_prog_compiler_static_works+:} false; then :
14920 $as_echo_n "(cached) " >&6
14921 else
14922 lt_cv_prog_compiler_static_works=no
14923 save_LDFLAGS="$LDFLAGS"
14924 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14925 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14926 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14927 # The linker can only warn and ignore the option if not recognized
14928 # So say no if there are warnings
14929 if test -s conftest.err; then
14930 # Append any errors to the config.log.
14931 cat conftest.err 1>&5
14932 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14933 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14934 if diff conftest.exp conftest.er2 >/dev/null; then
14935 lt_cv_prog_compiler_static_works=yes
14936 fi
14937 else
14938 lt_cv_prog_compiler_static_works=yes
14939 fi
14940 fi
14941 $RM -r conftest*
14942 LDFLAGS="$save_LDFLAGS"
14943
14944 fi
14945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
14946 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
14947
14948 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
14949 :
14950 else
14951 lt_prog_compiler_static=
14952 fi
14953
14954
14955
14956
14957
14958
14959
14960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14961 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14962 if ${lt_cv_prog_compiler_c_o+:} false; then :
14963 $as_echo_n "(cached) " >&6
14964 else
14965 lt_cv_prog_compiler_c_o=no
14966 $RM -r conftest 2>/dev/null
14967 mkdir conftest
14968 cd conftest
14969 mkdir out
14970 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14971
14972 lt_compiler_flag="-o out/conftest2.$ac_objext"
14973 # Insert the option either (1) after the last *FLAGS variable, or
14974 # (2) before a word containing "conftest.", or (3) at the end.
14975 # Note that $ac_compile itself does not contain backslashes and begins
14976 # with a dollar sign (not a hyphen), so the echo should work correctly.
14977 lt_compile=`echo "$ac_compile" | $SED \
14978 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14979 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14980 -e 's:$: $lt_compiler_flag:'`
14981 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14982 (eval "$lt_compile" 2>out/conftest.err)
14983 ac_status=$?
14984 cat out/conftest.err >&5
14985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14986 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14987 then
14988 # The compiler can only warn and ignore the option if not recognized
14989 # So say no if there are warnings
14990 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14991 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14992 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14993 lt_cv_prog_compiler_c_o=yes
14994 fi
14995 fi
14996 chmod u+w . 2>&5
14997 $RM conftest*
14998 # SGI C++ compiler will create directory out/ii_files/ for
14999 # template instantiation
15000 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15001 $RM out/* && rmdir out
15002 cd ..
15003 $RM -r conftest
15004 $RM conftest*
15005
15006 fi
15007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15008 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15009
15010
15011
15012
15013
15014
15015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15016 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15017 if ${lt_cv_prog_compiler_c_o+:} false; then :
15018 $as_echo_n "(cached) " >&6
15019 else
15020 lt_cv_prog_compiler_c_o=no
15021 $RM -r conftest 2>/dev/null
15022 mkdir conftest
15023 cd conftest
15024 mkdir out
15025 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15026
15027 lt_compiler_flag="-o out/conftest2.$ac_objext"
15028 # Insert the option either (1) after the last *FLAGS variable, or
15029 # (2) before a word containing "conftest.", or (3) at the end.
15030 # Note that $ac_compile itself does not contain backslashes and begins
15031 # with a dollar sign (not a hyphen), so the echo should work correctly.
15032 lt_compile=`echo "$ac_compile" | $SED \
15033 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15034 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15035 -e 's:$: $lt_compiler_flag:'`
15036 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15037 (eval "$lt_compile" 2>out/conftest.err)
15038 ac_status=$?
15039 cat out/conftest.err >&5
15040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15041 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15042 then
15043 # The compiler can only warn and ignore the option if not recognized
15044 # So say no if there are warnings
15045 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15046 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15047 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15048 lt_cv_prog_compiler_c_o=yes
15049 fi
15050 fi
15051 chmod u+w . 2>&5
15052 $RM conftest*
15053 # SGI C++ compiler will create directory out/ii_files/ for
15054 # template instantiation
15055 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15056 $RM out/* && rmdir out
15057 cd ..
15058 $RM -r conftest
15059 $RM conftest*
15060
15061 fi
15062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15063 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15064
15065
15066
15067
15068 hard_links="nottested"
15069 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15070 # do not overwrite the value of need_locks provided by the user
15071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15072 $as_echo_n "checking if we can lock with hard links... " >&6; }
15073 hard_links=yes
15074 $RM conftest*
15075 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15076 touch conftest.a
15077 ln conftest.a conftest.b 2>&5 || hard_links=no
15078 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15080 $as_echo "$hard_links" >&6; }
15081 if test "$hard_links" = no; then
15082 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15083 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15084 need_locks=warn
15085 fi
15086 else
15087 need_locks=no
15088 fi
15089
15090
15091
15092
15093
15094
15095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15096 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15097
15098 runpath_var=
15099 allow_undefined_flag=
15100 always_export_symbols=no
15101 archive_cmds=
15102 archive_expsym_cmds=
15103 compiler_needs_object=no
15104 enable_shared_with_static_runtimes=no
15105 export_dynamic_flag_spec=
15106 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15107 hardcode_automatic=no
15108 hardcode_direct=no
15109 hardcode_direct_absolute=no
15110 hardcode_libdir_flag_spec=
15111 hardcode_libdir_separator=
15112 hardcode_minus_L=no
15113 hardcode_shlibpath_var=unsupported
15114 inherit_rpath=no
15115 link_all_deplibs=unknown
15116 module_cmds=
15117 module_expsym_cmds=
15118 old_archive_from_new_cmds=
15119 old_archive_from_expsyms_cmds=
15120 thread_safe_flag_spec=
15121 whole_archive_flag_spec=
15122 # include_expsyms should be a list of space-separated symbols to be *always*
15123 # included in the symbol list
15124 include_expsyms=
15125 # exclude_expsyms can be an extended regexp of symbols to exclude
15126 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15127 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15128 # as well as any symbol that contains `d'.
15129 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15130 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15131 # platforms (ab)use it in PIC code, but their linkers get confused if
15132 # the symbol is explicitly referenced. Since portable code cannot
15133 # rely on this symbol name, it's probably fine to never include it in
15134 # preloaded symbol tables.
15135 # Exclude shared library initialization/finalization symbols.
15136 extract_expsyms_cmds=
15137
15138 case $host_os in
15139 cygwin* | mingw* | pw32* | cegcc*)
15140 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15141 # When not using gcc, we currently assume that we are using
15142 # Microsoft Visual C++.
15143 if test "$GCC" != yes; then
15144 with_gnu_ld=no
15145 fi
15146 ;;
15147 interix*)
15148 # we just hope/assume this is gcc and not c89 (= MSVC++)
15149 with_gnu_ld=yes
15150 ;;
15151 openbsd*)
15152 with_gnu_ld=no
15153 ;;
15154 esac
15155
15156 ld_shlibs=yes
15157
15158 # On some targets, GNU ld is compatible enough with the native linker
15159 # that we're better off using the native interface for both.
15160 lt_use_gnu_ld_interface=no
15161 if test "$with_gnu_ld" = yes; then
15162 case $host_os in
15163 aix*)
15164 # The AIX port of GNU ld has always aspired to compatibility
15165 # with the native linker. However, as the warning in the GNU ld
15166 # block says, versions before 2.19.5* couldn't really create working
15167 # shared libraries, regardless of the interface used.
15168 case `$LD -v 2>&1` in
15169 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
15170 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
15171 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
15172 *)
15173 lt_use_gnu_ld_interface=yes
15174 ;;
15175 esac
15176 ;;
15177 *)
15178 lt_use_gnu_ld_interface=yes
15179 ;;
15180 esac
15181 fi
15182
15183 if test "$lt_use_gnu_ld_interface" = yes; then
15184 # If archive_cmds runs LD, not CC, wlarc should be empty
15185 wlarc='${wl}'
15186
15187 # Set some defaults for GNU ld with shared library support. These
15188 # are reset later if shared libraries are not supported. Putting them
15189 # here allows them to be overridden if necessary.
15190 runpath_var=LD_RUN_PATH
15191 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15192 export_dynamic_flag_spec='${wl}--export-dynamic'
15193 # ancient GNU ld didn't support --whole-archive et. al.
15194 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
15195 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15196 else
15197 whole_archive_flag_spec=
15198 fi
15199 supports_anon_versioning=no
15200 case `$LD -v 2>&1` in
15201 *GNU\ gold*) supports_anon_versioning=yes ;;
15202 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15203 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15204 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15205 *\ 2.11.*) ;; # other 2.11 versions
15206 *) supports_anon_versioning=yes ;;
15207 esac
15208
15209 # See if GNU ld supports shared libraries.
15210 case $host_os in
15211 aix[3-9]*)
15212 # On AIX/PPC, the GNU linker is very broken
15213 if test "$host_cpu" != ia64; then
15214 ld_shlibs=no
15215 cat <<_LT_EOF 1>&2
15216
15217 *** Warning: the GNU linker, at least up to release 2.19, is reported
15218 *** to be unable to reliably create shared libraries on AIX.
15219 *** Therefore, libtool is disabling shared libraries support. If you
15220 *** really care for shared libraries, you may want to install binutils
15221 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
15222 *** You will then need to restart the configuration process.
15223
15224 _LT_EOF
15225 fi
15226 ;;
15227
15228 amigaos*)
15229 case $host_cpu in
15230 powerpc)
15231 # see comment about AmigaOS4 .so support
15232 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15233 archive_expsym_cmds=''
15234 ;;
15235 m68k)
15236 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)'
15237 hardcode_libdir_flag_spec='-L$libdir'
15238 hardcode_minus_L=yes
15239 ;;
15240 esac
15241 ;;
15242
15243 beos*)
15244 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15245 allow_undefined_flag=unsupported
15246 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
15247 # support --undefined. This deserves some investigation. FIXME
15248 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15249 else
15250 ld_shlibs=no
15251 fi
15252 ;;
15253
15254 cygwin* | mingw* | pw32* | cegcc*)
15255 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15256 # as there is no search path for DLLs.
15257 hardcode_libdir_flag_spec='-L$libdir'
15258 export_dynamic_flag_spec='${wl}--export-all-symbols'
15259 allow_undefined_flag=unsupported
15260 always_export_symbols=no
15261 enable_shared_with_static_runtimes=yes
15262 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'
15263 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
15264
15265 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15266 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15267 # If the export-symbols file already is a .def file (1st line
15268 # is EXPORTS), use it as is; otherwise, prepend...
15269 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15270 cp $export_symbols $output_objdir/$soname.def;
15271 else
15272 echo EXPORTS > $output_objdir/$soname.def;
15273 cat $export_symbols >> $output_objdir/$soname.def;
15274 fi~
15275 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15276 else
15277 ld_shlibs=no
15278 fi
15279 ;;
15280
15281 haiku*)
15282 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15283 link_all_deplibs=yes
15284 ;;
15285
15286 interix[3-9]*)
15287 hardcode_direct=no
15288 hardcode_shlibpath_var=no
15289 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15290 export_dynamic_flag_spec='${wl}-E'
15291 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15292 # Instead, shared libraries are loaded at an image base (0x10000000 by
15293 # default) and relocated if they conflict, which is a slow very memory
15294 # consuming and fragmenting process. To avoid this, we pick a random,
15295 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15296 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15297 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15298 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'
15299 ;;
15300
15301 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
15302 tmp_diet=no
15303 if test "$host_os" = linux-dietlibc; then
15304 case $cc_basename in
15305 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
15306 esac
15307 fi
15308 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
15309 && test "$tmp_diet" = no
15310 then
15311 tmp_addflag=' $pic_flag'
15312 tmp_sharedflag='-shared'
15313 case $cc_basename,$host_cpu in
15314 pgcc*) # Portland Group C compiler
15315 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'
15316 tmp_addflag=' $pic_flag'
15317 ;;
15318 pgf77* | pgf90* | pgf95* | pgfortran*)
15319 # Portland Group f77 and f90 compilers
15320 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'
15321 tmp_addflag=' $pic_flag -Mnomain' ;;
15322 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15323 tmp_addflag=' -i_dynamic' ;;
15324 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15325 tmp_addflag=' -i_dynamic -nofor_main' ;;
15326 ifc* | ifort*) # Intel Fortran compiler
15327 tmp_addflag=' -nofor_main' ;;
15328 lf95*) # Lahey Fortran 8.1
15329 whole_archive_flag_spec=
15330 tmp_sharedflag='--shared' ;;
15331 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
15332 tmp_sharedflag='-qmkshrobj'
15333 tmp_addflag= ;;
15334 nvcc*) # Cuda Compiler Driver 2.2
15335 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'
15336 compiler_needs_object=yes
15337 ;;
15338 esac
15339 case `$CC -V 2>&1 | sed 5q` in
15340 *Sun\ C*) # Sun C 5.9
15341 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'
15342 compiler_needs_object=yes
15343 tmp_sharedflag='-G' ;;
15344 *Sun\ F*) # Sun Fortran 8.3
15345 tmp_sharedflag='-G' ;;
15346 esac
15347 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15348
15349 if test "x$supports_anon_versioning" = xyes; then
15350 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15351 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15352 echo "local: *; };" >> $output_objdir/$libname.ver~
15353 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15354 fi
15355
15356 case $cc_basename in
15357 xlf* | bgf* | bgxlf* | mpixlf*)
15358 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
15359 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
15360 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15361 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
15362 if test "x$supports_anon_versioning" = xyes; then
15363 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15364 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15365 echo "local: *; };" >> $output_objdir/$libname.ver~
15366 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
15367 fi
15368 ;;
15369 esac
15370 else
15371 ld_shlibs=no
15372 fi
15373 ;;
15374
15375 netbsd*)
15376 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15377 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15378 wlarc=
15379 else
15380 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15381 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15382 fi
15383 ;;
15384
15385 solaris*)
15386 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
15387 ld_shlibs=no
15388 cat <<_LT_EOF 1>&2
15389
15390 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15391 *** create shared libraries on Solaris systems. Therefore, libtool
15392 *** is disabling shared libraries support. We urge you to upgrade GNU
15393 *** binutils to release 2.9.1 or newer. Another option is to modify
15394 *** your PATH or compiler configuration so that the native linker is
15395 *** used, and then restart.
15396
15397 _LT_EOF
15398 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15399 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15400 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15401 else
15402 ld_shlibs=no
15403 fi
15404 ;;
15405
15406 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15407 case `$LD -v 2>&1` in
15408 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15409 ld_shlibs=no
15410 cat <<_LT_EOF 1>&2
15411
15412 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15413 *** reliably create shared libraries on SCO systems. Therefore, libtool
15414 *** is disabling shared libraries support. We urge you to upgrade GNU
15415 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15416 *** your PATH or compiler configuration so that the native linker is
15417 *** used, and then restart.
15418
15419 _LT_EOF
15420 ;;
15421 *)
15422 # For security reasons, it is highly recommended that you always
15423 # use absolute paths for naming shared libraries, and exclude the
15424 # DT_RUNPATH tag from executables and libraries. But doing so
15425 # requires that you compile everything twice, which is a pain.
15426 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15427 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15428 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15429 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15430 else
15431 ld_shlibs=no
15432 fi
15433 ;;
15434 esac
15435 ;;
15436
15437 sunos4*)
15438 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15439 wlarc=
15440 hardcode_direct=yes
15441 hardcode_shlibpath_var=no
15442 ;;
15443
15444 *)
15445 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15446 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15447 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15448 else
15449 ld_shlibs=no
15450 fi
15451 ;;
15452 esac
15453
15454 if test "$ld_shlibs" = no; then
15455 runpath_var=
15456 hardcode_libdir_flag_spec=
15457 export_dynamic_flag_spec=
15458 whole_archive_flag_spec=
15459 fi
15460 else
15461 # PORTME fill in a description of your system's linker (not GNU ld)
15462 case $host_os in
15463 aix3*)
15464 allow_undefined_flag=unsupported
15465 always_export_symbols=yes
15466 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'
15467 # Note: this linker hardcodes the directories in LIBPATH if there
15468 # are no directories specified by -L.
15469 hardcode_minus_L=yes
15470 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15471 # Neither direct hardcoding nor static linking is supported with a
15472 # broken collect2.
15473 hardcode_direct=unsupported
15474 fi
15475 ;;
15476
15477 aix[4-9]*)
15478 if test "$host_cpu" = ia64; then
15479 # On IA64, the linker does run time linking by default, so we don't
15480 # have to do anything special.
15481 aix_use_runtimelinking=no
15482 exp_sym_flag='-Bexport'
15483 no_entry_flag=""
15484 else
15485 # If we're using GNU nm, then we don't want the "-C" option.
15486 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15487 # Also, AIX nm treats weak defined symbols like other global
15488 # defined symbols, whereas GNU nm marks them as "W".
15489 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15490 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'
15491 else
15492 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'
15493 fi
15494 aix_use_runtimelinking=no
15495
15496 # Test if we are trying to use run time linking or normal
15497 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15498 # need to do runtime linking.
15499 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15500 for ld_flag in $LDFLAGS; do
15501 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15502 aix_use_runtimelinking=yes
15503 break
15504 fi
15505 done
15506 ;;
15507 esac
15508
15509 exp_sym_flag='-bexport'
15510 no_entry_flag='-bnoentry'
15511 fi
15512
15513 # When large executables or shared objects are built, AIX ld can
15514 # have problems creating the table of contents. If linking a library
15515 # or program results in "error TOC overflow" add -mminimal-toc to
15516 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15517 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15518
15519 archive_cmds=''
15520 hardcode_direct=yes
15521 hardcode_direct_absolute=yes
15522 hardcode_libdir_separator=':'
15523 link_all_deplibs=yes
15524 file_list_spec='${wl}-f,'
15525
15526 if test "$GCC" = yes; then
15527 case $host_os in aix4.[012]|aix4.[012].*)
15528 # We only want to do this on AIX 4.2 and lower, the check
15529 # below for broken collect2 doesn't work under 4.3+
15530 collect2name=`${CC} -print-prog-name=collect2`
15531 if test -f "$collect2name" &&
15532 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15533 then
15534 # We have reworked collect2
15535 :
15536 else
15537 # We have old collect2
15538 hardcode_direct=unsupported
15539 # It fails to find uninstalled libraries when the uninstalled
15540 # path is not listed in the libpath. Setting hardcode_minus_L
15541 # to unsupported forces relinking
15542 hardcode_minus_L=yes
15543 hardcode_libdir_flag_spec='-L$libdir'
15544 hardcode_libdir_separator=
15545 fi
15546 ;;
15547 esac
15548 shared_flag='-shared'
15549 if test "$aix_use_runtimelinking" = yes; then
15550 shared_flag="$shared_flag "'${wl}-G'
15551 fi
15552 else
15553 # not using gcc
15554 if test "$host_cpu" = ia64; then
15555 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15556 # chokes on -Wl,-G. The following line is correct:
15557 shared_flag='-G'
15558 else
15559 if test "$aix_use_runtimelinking" = yes; then
15560 shared_flag='${wl}-G'
15561 else
15562 shared_flag='${wl}-bM:SRE'
15563 fi
15564 fi
15565 fi
15566
15567 export_dynamic_flag_spec='${wl}-bexpall'
15568 # It seems that -bexpall does not export symbols beginning with
15569 # underscore (_), so it is better to generate a list of symbols to export.
15570 always_export_symbols=yes
15571 if test "$aix_use_runtimelinking" = yes; then
15572 # Warning - without using the other runtime loading flags (-brtl),
15573 # -berok will link without error, but may produce a broken library.
15574 allow_undefined_flag='-berok'
15575 # Determine the default libpath from the value encoded in an
15576 # empty executable.
15577 if test "${lt_cv_aix_libpath+set}" = set; then
15578 aix_libpath=$lt_cv_aix_libpath
15579 else
15580 if ${lt_cv_aix_libpath_+:} false; then :
15581 $as_echo_n "(cached) " >&6
15582 else
15583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15584 /* end confdefs.h. */
15585
15586 int
15587 main ()
15588 {
15589
15590 ;
15591 return 0;
15592 }
15593 _ACEOF
15594 if ac_fn_c_try_link "$LINENO"; then :
15595
15596 lt_aix_libpath_sed='
15597 /Import File Strings/,/^$/ {
15598 /^0/ {
15599 s/^0 *\([^ ]*\) *$/\1/
15600 p
15601 }
15602 }'
15603 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15604 # Check for a 64-bit object if we didn't find anything.
15605 if test -z "$lt_cv_aix_libpath_"; then
15606 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15607 fi
15608 fi
15609 rm -f core conftest.err conftest.$ac_objext \
15610 conftest$ac_exeext conftest.$ac_ext
15611 if test -z "$lt_cv_aix_libpath_"; then
15612 lt_cv_aix_libpath_="/usr/lib:/lib"
15613 fi
15614
15615 fi
15616
15617 aix_libpath=$lt_cv_aix_libpath_
15618 fi
15619
15620 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15621 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"
15622 else
15623 if test "$host_cpu" = ia64; then
15624 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15625 allow_undefined_flag="-z nodefs"
15626 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"
15627 else
15628 # Determine the default libpath from the value encoded in an
15629 # empty executable.
15630 if test "${lt_cv_aix_libpath+set}" = set; then
15631 aix_libpath=$lt_cv_aix_libpath
15632 else
15633 if ${lt_cv_aix_libpath_+:} false; then :
15634 $as_echo_n "(cached) " >&6
15635 else
15636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15637 /* end confdefs.h. */
15638
15639 int
15640 main ()
15641 {
15642
15643 ;
15644 return 0;
15645 }
15646 _ACEOF
15647 if ac_fn_c_try_link "$LINENO"; then :
15648
15649 lt_aix_libpath_sed='
15650 /Import File Strings/,/^$/ {
15651 /^0/ {
15652 s/^0 *\([^ ]*\) *$/\1/
15653 p
15654 }
15655 }'
15656 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15657 # Check for a 64-bit object if we didn't find anything.
15658 if test -z "$lt_cv_aix_libpath_"; then
15659 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15660 fi
15661 fi
15662 rm -f core conftest.err conftest.$ac_objext \
15663 conftest$ac_exeext conftest.$ac_ext
15664 if test -z "$lt_cv_aix_libpath_"; then
15665 lt_cv_aix_libpath_="/usr/lib:/lib"
15666 fi
15667
15668 fi
15669
15670 aix_libpath=$lt_cv_aix_libpath_
15671 fi
15672
15673 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15674 # Warning - without using the other run time loading flags,
15675 # -berok will link without error, but may produce a broken library.
15676 no_undefined_flag=' ${wl}-bernotok'
15677 allow_undefined_flag=' ${wl}-berok'
15678 if test "$with_gnu_ld" = yes; then
15679 # We only use this code for GNU lds that support --whole-archive.
15680 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15681 else
15682 # Exported symbols can be pulled into shared objects from archives
15683 whole_archive_flag_spec='$convenience'
15684 fi
15685 archive_cmds_need_lc=yes
15686 # This is similar to how AIX traditionally builds its shared libraries.
15687 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'
15688 fi
15689 fi
15690 ;;
15691
15692 amigaos*)
15693 case $host_cpu in
15694 powerpc)
15695 # see comment about AmigaOS4 .so support
15696 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15697 archive_expsym_cmds=''
15698 ;;
15699 m68k)
15700 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)'
15701 hardcode_libdir_flag_spec='-L$libdir'
15702 hardcode_minus_L=yes
15703 ;;
15704 esac
15705 ;;
15706
15707 bsdi[45]*)
15708 export_dynamic_flag_spec=-rdynamic
15709 ;;
15710
15711 cygwin* | mingw* | pw32* | cegcc*)
15712 # When not using gcc, we currently assume that we are using
15713 # Microsoft Visual C++.
15714 # hardcode_libdir_flag_spec is actually meaningless, as there is
15715 # no search path for DLLs.
15716 case $cc_basename in
15717 cl*)
15718 # Native MSVC
15719 hardcode_libdir_flag_spec=' '
15720 allow_undefined_flag=unsupported
15721 always_export_symbols=yes
15722 file_list_spec='@'
15723 # Tell ltmain to make .lib files, not .a files.
15724 libext=lib
15725 # Tell ltmain to make .dll files, not .so files.
15726 shrext_cmds=".dll"
15727 # FIXME: Setting linknames here is a bad hack.
15728 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
15729 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15730 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
15731 else
15732 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
15733 fi~
15734 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
15735 linknames='
15736 # The linker will not automatically build a static lib if we build a DLL.
15737 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
15738 enable_shared_with_static_runtimes=yes
15739 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
15740 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15741 # Don't use ranlib
15742 old_postinstall_cmds='chmod 644 $oldlib'
15743 postlink_cmds='lt_outputfile="@OUTPUT@"~
15744 lt_tool_outputfile="@TOOL_OUTPUT@"~
15745 case $lt_outputfile in
15746 *.exe|*.EXE) ;;
15747 *)
15748 lt_outputfile="$lt_outputfile.exe"
15749 lt_tool_outputfile="$lt_tool_outputfile.exe"
15750 ;;
15751 esac~
15752 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
15753 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
15754 $RM "$lt_outputfile.manifest";
15755 fi'
15756 ;;
15757 *)
15758 # Assume MSVC wrapper
15759 hardcode_libdir_flag_spec=' '
15760 allow_undefined_flag=unsupported
15761 # Tell ltmain to make .lib files, not .a files.
15762 libext=lib
15763 # Tell ltmain to make .dll files, not .so files.
15764 shrext_cmds=".dll"
15765 # FIXME: Setting linknames here is a bad hack.
15766 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
15767 # The linker will automatically build a .lib file if we build a DLL.
15768 old_archive_from_new_cmds='true'
15769 # FIXME: Should let the user specify the lib program.
15770 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
15771 enable_shared_with_static_runtimes=yes
15772 ;;
15773 esac
15774 ;;
15775
15776 darwin* | rhapsody*)
15777
15778
15779 archive_cmds_need_lc=no
15780 hardcode_direct=no
15781 hardcode_automatic=yes
15782 hardcode_shlibpath_var=unsupported
15783 if test "$lt_cv_ld_force_load" = "yes"; then
15784 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\"`'
15785
15786 else
15787 whole_archive_flag_spec=''
15788 fi
15789 link_all_deplibs=yes
15790 allow_undefined_flag="$_lt_dar_allow_undefined"
15791 case $cc_basename in
15792 ifort*) _lt_dar_can_shared=yes ;;
15793 *) _lt_dar_can_shared=$GCC ;;
15794 esac
15795 if test "$_lt_dar_can_shared" = "yes"; then
15796 output_verbose_link_cmd=func_echo_all
15797 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15798 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15799 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}"
15800 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}"
15801
15802 else
15803 ld_shlibs=no
15804 fi
15805
15806 ;;
15807
15808 dgux*)
15809 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15810 hardcode_libdir_flag_spec='-L$libdir'
15811 hardcode_shlibpath_var=no
15812 ;;
15813
15814 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15815 # support. Future versions do this automatically, but an explicit c++rt0.o
15816 # does not break anything, and helps significantly (at the cost of a little
15817 # extra space).
15818 freebsd2.2*)
15819 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15820 hardcode_libdir_flag_spec='-R$libdir'
15821 hardcode_direct=yes
15822 hardcode_shlibpath_var=no
15823 ;;
15824
15825 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15826 freebsd2.*)
15827 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15828 hardcode_direct=yes
15829 hardcode_minus_L=yes
15830 hardcode_shlibpath_var=no
15831 ;;
15832
15833 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15834 freebsd* | dragonfly*)
15835 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15836 hardcode_libdir_flag_spec='-R$libdir'
15837 hardcode_direct=yes
15838 hardcode_shlibpath_var=no
15839 ;;
15840
15841 hpux9*)
15842 if test "$GCC" = yes; then
15843 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'
15844 else
15845 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'
15846 fi
15847 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15848 hardcode_libdir_separator=:
15849 hardcode_direct=yes
15850
15851 # hardcode_minus_L: Not really in the search PATH,
15852 # but as the default location of the library.
15853 hardcode_minus_L=yes
15854 export_dynamic_flag_spec='${wl}-E'
15855 ;;
15856
15857 hpux10*)
15858 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
15859 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15860 else
15861 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15862 fi
15863 if test "$with_gnu_ld" = no; then
15864 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15865 hardcode_libdir_separator=:
15866 hardcode_direct=yes
15867 hardcode_direct_absolute=yes
15868 export_dynamic_flag_spec='${wl}-E'
15869 # hardcode_minus_L: Not really in the search PATH,
15870 # but as the default location of the library.
15871 hardcode_minus_L=yes
15872 fi
15873 ;;
15874
15875 hpux11*)
15876 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
15877 case $host_cpu in
15878 hppa*64*)
15879 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15880 ;;
15881 ia64*)
15882 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15883 ;;
15884 *)
15885 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15886 ;;
15887 esac
15888 else
15889 case $host_cpu in
15890 hppa*64*)
15891 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15892 ;;
15893 ia64*)
15894 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15895 ;;
15896 *)
15897
15898 # Older versions of the 11.00 compiler do not understand -b yet
15899 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
15900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
15901 $as_echo_n "checking if $CC understands -b... " >&6; }
15902 if ${lt_cv_prog_compiler__b+:} false; then :
15903 $as_echo_n "(cached) " >&6
15904 else
15905 lt_cv_prog_compiler__b=no
15906 save_LDFLAGS="$LDFLAGS"
15907 LDFLAGS="$LDFLAGS -b"
15908 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15909 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15910 # The linker can only warn and ignore the option if not recognized
15911 # So say no if there are warnings
15912 if test -s conftest.err; then
15913 # Append any errors to the config.log.
15914 cat conftest.err 1>&5
15915 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15916 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15917 if diff conftest.exp conftest.er2 >/dev/null; then
15918 lt_cv_prog_compiler__b=yes
15919 fi
15920 else
15921 lt_cv_prog_compiler__b=yes
15922 fi
15923 fi
15924 $RM -r conftest*
15925 LDFLAGS="$save_LDFLAGS"
15926
15927 fi
15928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
15929 $as_echo "$lt_cv_prog_compiler__b" >&6; }
15930
15931 if test x"$lt_cv_prog_compiler__b" = xyes; then
15932 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15933 else
15934 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15935 fi
15936
15937 ;;
15938 esac
15939 fi
15940 if test "$with_gnu_ld" = no; then
15941 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15942 hardcode_libdir_separator=:
15943
15944 case $host_cpu in
15945 hppa*64*|ia64*)
15946 hardcode_direct=no
15947 hardcode_shlibpath_var=no
15948 ;;
15949 *)
15950 hardcode_direct=yes
15951 hardcode_direct_absolute=yes
15952 export_dynamic_flag_spec='${wl}-E'
15953
15954 # hardcode_minus_L: Not really in the search PATH,
15955 # but as the default location of the library.
15956 hardcode_minus_L=yes
15957 ;;
15958 esac
15959 fi
15960 ;;
15961
15962 irix5* | irix6* | nonstopux*)
15963 if test "$GCC" = yes; then
15964 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'
15965 # Try to use the -exported_symbol ld option, if it does not
15966 # work, assume that -exports_file does not work either and
15967 # implicitly export all symbols.
15968 # This should be the same for all languages, so no per-tag cache variable.
15969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
15970 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
15971 if ${lt_cv_irix_exported_symbol+:} false; then :
15972 $as_echo_n "(cached) " >&6
15973 else
15974 save_LDFLAGS="$LDFLAGS"
15975 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
15976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15977 /* end confdefs.h. */
15978 int foo (void) { return 0; }
15979 _ACEOF
15980 if ac_fn_c_try_link "$LINENO"; then :
15981 lt_cv_irix_exported_symbol=yes
15982 else
15983 lt_cv_irix_exported_symbol=no
15984 fi
15985 rm -f core conftest.err conftest.$ac_objext \
15986 conftest$ac_exeext conftest.$ac_ext
15987 LDFLAGS="$save_LDFLAGS"
15988 fi
15989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
15990 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
15991 if test "$lt_cv_irix_exported_symbol" = yes; then
15992 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'
15993 fi
15994 else
15995 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'
15996 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'
15997 fi
15998 archive_cmds_need_lc='no'
15999 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16000 hardcode_libdir_separator=:
16001 inherit_rpath=yes
16002 link_all_deplibs=yes
16003 ;;
16004
16005 netbsd*)
16006 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16007 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16008 else
16009 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16010 fi
16011 hardcode_libdir_flag_spec='-R$libdir'
16012 hardcode_direct=yes
16013 hardcode_shlibpath_var=no
16014 ;;
16015
16016 newsos6)
16017 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16018 hardcode_direct=yes
16019 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16020 hardcode_libdir_separator=:
16021 hardcode_shlibpath_var=no
16022 ;;
16023
16024 *nto* | *qnx*)
16025 ;;
16026
16027 openbsd*)
16028 if test -f /usr/libexec/ld.so; then
16029 hardcode_direct=yes
16030 hardcode_shlibpath_var=no
16031 hardcode_direct_absolute=yes
16032 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16033 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16034 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16035 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16036 export_dynamic_flag_spec='${wl}-E'
16037 else
16038 case $host_os in
16039 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16040 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16041 hardcode_libdir_flag_spec='-R$libdir'
16042 ;;
16043 *)
16044 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16045 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16046 ;;
16047 esac
16048 fi
16049 else
16050 ld_shlibs=no
16051 fi
16052 ;;
16053
16054 os2*)
16055 hardcode_libdir_flag_spec='-L$libdir'
16056 hardcode_minus_L=yes
16057 allow_undefined_flag=unsupported
16058 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'
16059 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16060 ;;
16061
16062 osf3*)
16063 if test "$GCC" = yes; then
16064 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16065 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'
16066 else
16067 allow_undefined_flag=' -expect_unresolved \*'
16068 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'
16069 fi
16070 archive_cmds_need_lc='no'
16071 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16072 hardcode_libdir_separator=:
16073 ;;
16074
16075 osf4* | osf5*) # as osf3* with the addition of -msym flag
16076 if test "$GCC" = yes; then
16077 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16078 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'
16079 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16080 else
16081 allow_undefined_flag=' -expect_unresolved \*'
16082 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'
16083 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~
16084 $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'
16085
16086 # Both c and cxx compiler support -rpath directly
16087 hardcode_libdir_flag_spec='-rpath $libdir'
16088 fi
16089 archive_cmds_need_lc='no'
16090 hardcode_libdir_separator=:
16091 ;;
16092
16093 solaris*)
16094 no_undefined_flag=' -z defs'
16095 if test "$GCC" = yes; then
16096 wlarc='${wl}'
16097 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16098 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16099 $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'
16100 else
16101 case `$CC -V 2>&1` in
16102 *"Compilers 5.0"*)
16103 wlarc=''
16104 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16105 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16106 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
16107 ;;
16108 *)
16109 wlarc='${wl}'
16110 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
16111 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16112 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16113 ;;
16114 esac
16115 fi
16116 hardcode_libdir_flag_spec='-R$libdir'
16117 hardcode_shlibpath_var=no
16118 case $host_os in
16119 solaris2.[0-5] | solaris2.[0-5].*) ;;
16120 *)
16121 # The compiler driver will combine and reorder linker options,
16122 # but understands `-z linker_flag'. GCC discards it without `$wl',
16123 # but is careful enough not to reorder.
16124 # Supported since Solaris 2.6 (maybe 2.5.1?)
16125 if test "$GCC" = yes; then
16126 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16127 else
16128 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
16129 fi
16130 ;;
16131 esac
16132 link_all_deplibs=yes
16133 ;;
16134
16135 sunos4*)
16136 if test "x$host_vendor" = xsequent; then
16137 # Use $CC to link under sequent, because it throws in some extra .o
16138 # files that make .init and .fini sections work.
16139 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16140 else
16141 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16142 fi
16143 hardcode_libdir_flag_spec='-L$libdir'
16144 hardcode_direct=yes
16145 hardcode_minus_L=yes
16146 hardcode_shlibpath_var=no
16147 ;;
16148
16149 sysv4)
16150 case $host_vendor in
16151 sni)
16152 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16153 hardcode_direct=yes # is this really true???
16154 ;;
16155 siemens)
16156 ## LD is ld it makes a PLAMLIB
16157 ## CC just makes a GrossModule.
16158 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16159 reload_cmds='$CC -r -o $output$reload_objs'
16160 hardcode_direct=no
16161 ;;
16162 motorola)
16163 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16164 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
16165 ;;
16166 esac
16167 runpath_var='LD_RUN_PATH'
16168 hardcode_shlibpath_var=no
16169 ;;
16170
16171 sysv4.3*)
16172 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16173 hardcode_shlibpath_var=no
16174 export_dynamic_flag_spec='-Bexport'
16175 ;;
16176
16177 sysv4*MP*)
16178 if test -d /usr/nec; then
16179 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16180 hardcode_shlibpath_var=no
16181 runpath_var=LD_RUN_PATH
16182 hardcode_runpath_var=yes
16183 ld_shlibs=yes
16184 fi
16185 ;;
16186
16187 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16188 no_undefined_flag='${wl}-z,text'
16189 archive_cmds_need_lc=no
16190 hardcode_shlibpath_var=no
16191 runpath_var='LD_RUN_PATH'
16192
16193 if test "$GCC" = yes; then
16194 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16195 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16196 else
16197 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16198 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16199 fi
16200 ;;
16201
16202 sysv5* | sco3.2v5* | sco5v6*)
16203 # Note: We can NOT use -z defs as we might desire, because we do not
16204 # link with -lc, and that would cause any symbols used from libc to
16205 # always be unresolved, which means just about no library would
16206 # ever link correctly. If we're not using GNU ld we use -z text
16207 # though, which does catch some bad symbols but isn't as heavy-handed
16208 # as -z defs.
16209 no_undefined_flag='${wl}-z,text'
16210 allow_undefined_flag='${wl}-z,nodefs'
16211 archive_cmds_need_lc=no
16212 hardcode_shlibpath_var=no
16213 hardcode_libdir_flag_spec='${wl}-R,$libdir'
16214 hardcode_libdir_separator=':'
16215 link_all_deplibs=yes
16216 export_dynamic_flag_spec='${wl}-Bexport'
16217 runpath_var='LD_RUN_PATH'
16218
16219 if test "$GCC" = yes; then
16220 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16221 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16222 else
16223 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16224 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16225 fi
16226 ;;
16227
16228 uts4*)
16229 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16230 hardcode_libdir_flag_spec='-L$libdir'
16231 hardcode_shlibpath_var=no
16232 ;;
16233
16234 *)
16235 ld_shlibs=no
16236 ;;
16237 esac
16238
16239 if test x$host_vendor = xsni; then
16240 case $host in
16241 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16242 export_dynamic_flag_spec='${wl}-Blargedynsym'
16243 ;;
16244 esac
16245 fi
16246 fi
16247
16248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
16249 $as_echo "$ld_shlibs" >&6; }
16250 test "$ld_shlibs" = no && can_build_shared=no
16251
16252 with_gnu_ld=$with_gnu_ld
16253
16254
16255
16256
16257
16258
16259
16260
16261
16262
16263
16264
16265
16266
16267
16268 #
16269 # Do we need to explicitly link libc?
16270 #
16271 case "x$archive_cmds_need_lc" in
16272 x|xyes)
16273 # Assume -lc should be added
16274 archive_cmds_need_lc=yes
16275
16276 if test "$enable_shared" = yes && test "$GCC" = yes; then
16277 case $archive_cmds in
16278 *'~'*)
16279 # FIXME: we may have to deal with multi-command sequences.
16280 ;;
16281 '$CC '*)
16282 # Test whether the compiler implicitly links with -lc since on some
16283 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16284 # to ld, don't add -lc before -lgcc.
16285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16286 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16287 if ${lt_cv_archive_cmds_need_lc+:} false; then :
16288 $as_echo_n "(cached) " >&6
16289 else
16290 $RM conftest*
16291 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16292
16293 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16294 (eval $ac_compile) 2>&5
16295 ac_status=$?
16296 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16297 test $ac_status = 0; } 2>conftest.err; then
16298 soname=conftest
16299 lib=conftest
16300 libobjs=conftest.$ac_objext
16301 deplibs=
16302 wl=$lt_prog_compiler_wl
16303 pic_flag=$lt_prog_compiler_pic
16304 compiler_flags=-v
16305 linker_flags=-v
16306 verstring=
16307 output_objdir=.
16308 libname=conftest
16309 lt_save_allow_undefined_flag=$allow_undefined_flag
16310 allow_undefined_flag=
16311 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16312 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16313 ac_status=$?
16314 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16315 test $ac_status = 0; }
16316 then
16317 lt_cv_archive_cmds_need_lc=no
16318 else
16319 lt_cv_archive_cmds_need_lc=yes
16320 fi
16321 allow_undefined_flag=$lt_save_allow_undefined_flag
16322 else
16323 cat conftest.err 1>&5
16324 fi
16325 $RM conftest*
16326
16327 fi
16328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
16329 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
16330 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
16331 ;;
16332 esac
16333 fi
16334 ;;
16335 esac
16336
16337
16338
16339
16340
16341
16342
16343
16344
16345
16346
16347
16348
16349
16350
16351
16352
16353
16354
16355
16356
16357
16358
16359
16360
16361
16362
16363
16364
16365
16366
16367
16368
16369
16370
16371
16372
16373
16374
16375
16376
16377
16378
16379
16380
16381
16382
16383
16384
16385
16386
16387
16388
16389
16390
16391
16392
16393
16394
16395
16396
16397
16398
16399
16400
16401
16402
16403
16404
16405
16406
16407
16408
16409
16410
16411
16412
16413
16414
16415
16416
16417
16418
16419
16420
16421
16422
16423
16424
16425
16426
16427
16428
16429
16430
16431
16432
16433
16434
16435
16436
16437
16438
16439
16440
16441
16442
16443
16444
16445
16446
16447
16448
16449
16450
16451
16452
16453
16454
16455
16456
16457
16458
16459
16460
16461
16462
16463
16464
16465
16466
16467
16468
16469
16470
16471
16472
16473
16474
16475
16476
16477
16478
16479
16480
16481
16482
16483
16484
16485
16486
16487
16488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16489 $as_echo_n "checking dynamic linker characteristics... " >&6; }
16490
16491 if test "$GCC" = yes; then
16492 case $host_os in
16493 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
16494 *) lt_awk_arg="/^libraries:/" ;;
16495 esac
16496 case $host_os in
16497 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
16498 *) lt_sed_strip_eq="s,=/,/,g" ;;
16499 esac
16500 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
16501 case $lt_search_path_spec in
16502 *\;*)
16503 # if the path contains ";" then we assume it to be the separator
16504 # otherwise default to the standard path separator (i.e. ":") - it is
16505 # assumed that no part of a normal pathname contains ";" but that should
16506 # okay in the real world where ";" in dirpaths is itself problematic.
16507 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
16508 ;;
16509 *)
16510 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
16511 ;;
16512 esac
16513 # Ok, now we have the path, separated by spaces, we can step through it
16514 # and add multilib dir if necessary.
16515 lt_tmp_lt_search_path_spec=
16516 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16517 for lt_sys_path in $lt_search_path_spec; do
16518 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
16519 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
16520 else
16521 test -d "$lt_sys_path" && \
16522 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
16523 fi
16524 done
16525 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
16526 BEGIN {RS=" "; FS="/|\n";} {
16527 lt_foo="";
16528 lt_count=0;
16529 for (lt_i = NF; lt_i > 0; lt_i--) {
16530 if ($lt_i != "" && $lt_i != ".") {
16531 if ($lt_i == "..") {
16532 lt_count++;
16533 } else {
16534 if (lt_count == 0) {
16535 lt_foo="/" $lt_i lt_foo;
16536 } else {
16537 lt_count--;
16538 }
16539 }
16540 }
16541 }
16542 if (lt_foo != "") { lt_freq[lt_foo]++; }
16543 if (lt_freq[lt_foo] == 1) { print lt_foo; }
16544 }'`
16545 # AWK program above erroneously prepends '/' to C:/dos/paths
16546 # for these hosts.
16547 case $host_os in
16548 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
16549 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
16550 esac
16551 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
16552 else
16553 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16554 fi
16555 library_names_spec=
16556 libname_spec='lib$name'
16557 soname_spec=
16558 shrext_cmds=".so"
16559 postinstall_cmds=
16560 postuninstall_cmds=
16561 finish_cmds=
16562 finish_eval=
16563 shlibpath_var=
16564 shlibpath_overrides_runpath=unknown
16565 version_type=none
16566 dynamic_linker="$host_os ld.so"
16567 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16568 need_lib_prefix=unknown
16569 hardcode_into_libs=no
16570
16571 # when you set need_version to no, make sure it does not cause -set_version
16572 # flags to be left without arguments
16573 need_version=unknown
16574
16575 case $host_os in
16576 aix3*)
16577 version_type=linux # correct to gnu/linux during the next big refactor
16578 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16579 shlibpath_var=LIBPATH
16580
16581 # AIX 3 has no versioning support, so we append a major version to the name.
16582 soname_spec='${libname}${release}${shared_ext}$major'
16583 ;;
16584
16585 aix[4-9]*)
16586 version_type=linux # correct to gnu/linux during the next big refactor
16587 need_lib_prefix=no
16588 need_version=no
16589 hardcode_into_libs=yes
16590 if test "$host_cpu" = ia64; then
16591 # AIX 5 supports IA64
16592 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16593 shlibpath_var=LD_LIBRARY_PATH
16594 else
16595 # With GCC up to 2.95.x, collect2 would create an import file
16596 # for dependence libraries. The import file would start with
16597 # the line `#! .'. This would cause the generated library to
16598 # depend on `.', always an invalid library. This was fixed in
16599 # development snapshots of GCC prior to 3.0.
16600 case $host_os in
16601 aix4 | aix4.[01] | aix4.[01].*)
16602 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16603 echo ' yes '
16604 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16605 :
16606 else
16607 can_build_shared=no
16608 fi
16609 ;;
16610 esac
16611 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16612 # soname into executable. Probably we can add versioning support to
16613 # collect2, so additional links can be useful in future.
16614 if test "$aix_use_runtimelinking" = yes; then
16615 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16616 # instead of lib<name>.a to let people know that these are not
16617 # typical AIX shared libraries.
16618 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16619 else
16620 # We preserve .a as extension for shared libraries through AIX4.2
16621 # and later when we are not doing run time linking.
16622 library_names_spec='${libname}${release}.a $libname.a'
16623 soname_spec='${libname}${release}${shared_ext}$major'
16624 fi
16625 shlibpath_var=LIBPATH
16626 fi
16627 ;;
16628
16629 amigaos*)
16630 case $host_cpu in
16631 powerpc)
16632 # Since July 2007 AmigaOS4 officially supports .so libraries.
16633 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16634 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16635 ;;
16636 m68k)
16637 library_names_spec='$libname.ixlibrary $libname.a'
16638 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16639 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'
16640 ;;
16641 esac
16642 ;;
16643
16644 beos*)
16645 library_names_spec='${libname}${shared_ext}'
16646 dynamic_linker="$host_os ld.so"
16647 shlibpath_var=LIBRARY_PATH
16648 ;;
16649
16650 bsdi[45]*)
16651 version_type=linux # correct to gnu/linux during the next big refactor
16652 need_version=no
16653 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16654 soname_spec='${libname}${release}${shared_ext}$major'
16655 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16656 shlibpath_var=LD_LIBRARY_PATH
16657 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16658 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16659 # the default ld.so.conf also contains /usr/contrib/lib and
16660 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16661 # libtool to hard-code these into programs
16662 ;;
16663
16664 cygwin* | mingw* | pw32* | cegcc*)
16665 version_type=windows
16666 shrext_cmds=".dll"
16667 need_version=no
16668 need_lib_prefix=no
16669
16670 case $GCC,$cc_basename in
16671 yes,*)
16672 # gcc
16673 library_names_spec='$libname.dll.a'
16674 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16675 postinstall_cmds='base_file=`basename \${file}`~
16676 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16677 dldir=$destdir/`dirname \$dlpath`~
16678 test -d \$dldir || mkdir -p \$dldir~
16679 $install_prog $dir/$dlname \$dldir/$dlname~
16680 chmod a+x \$dldir/$dlname~
16681 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16682 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16683 fi'
16684 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16685 dlpath=$dir/\$dldll~
16686 $RM \$dlpath'
16687 shlibpath_overrides_runpath=yes
16688
16689 case $host_os in
16690 cygwin*)
16691 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16692 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16693
16694 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
16695 ;;
16696 mingw* | cegcc*)
16697 # MinGW DLLs use traditional 'lib' prefix
16698 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16699 ;;
16700 pw32*)
16701 # pw32 DLLs use 'pw' prefix rather than 'lib'
16702 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16703 ;;
16704 esac
16705 dynamic_linker='Win32 ld.exe'
16706 ;;
16707
16708 *,cl*)
16709 # Native MSVC
16710 libname_spec='$name'
16711 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16712 library_names_spec='${libname}.dll.lib'
16713
16714 case $build_os in
16715 mingw*)
16716 sys_lib_search_path_spec=
16717 lt_save_ifs=$IFS
16718 IFS=';'
16719 for lt_path in $LIB
16720 do
16721 IFS=$lt_save_ifs
16722 # Let DOS variable expansion print the short 8.3 style file name.
16723 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
16724 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
16725 done
16726 IFS=$lt_save_ifs
16727 # Convert to MSYS style.
16728 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
16729 ;;
16730 cygwin*)
16731 # Convert to unix form, then to dos form, then back to unix form
16732 # but this time dos style (no spaces!) so that the unix form looks
16733 # like /cygdrive/c/PROGRA~1:/cygdr...
16734 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
16735 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
16736 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16737 ;;
16738 *)
16739 sys_lib_search_path_spec="$LIB"
16740 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
16741 # It is most probably a Windows format PATH.
16742 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16743 else
16744 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16745 fi
16746 # FIXME: find the short name or the path components, as spaces are
16747 # common. (e.g. "Program Files" -> "PROGRA~1")
16748 ;;
16749 esac
16750
16751 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16752 postinstall_cmds='base_file=`basename \${file}`~
16753 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16754 dldir=$destdir/`dirname \$dlpath`~
16755 test -d \$dldir || mkdir -p \$dldir~
16756 $install_prog $dir/$dlname \$dldir/$dlname'
16757 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16758 dlpath=$dir/\$dldll~
16759 $RM \$dlpath'
16760 shlibpath_overrides_runpath=yes
16761 dynamic_linker='Win32 link.exe'
16762 ;;
16763
16764 *)
16765 # Assume MSVC wrapper
16766 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16767 dynamic_linker='Win32 ld.exe'
16768 ;;
16769 esac
16770 # FIXME: first we should search . and the directory the executable is in
16771 shlibpath_var=PATH
16772 ;;
16773
16774 darwin* | rhapsody*)
16775 dynamic_linker="$host_os dyld"
16776 version_type=darwin
16777 need_lib_prefix=no
16778 need_version=no
16779 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16780 soname_spec='${libname}${release}${major}$shared_ext'
16781 shlibpath_overrides_runpath=yes
16782 shlibpath_var=DYLD_LIBRARY_PATH
16783 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16784
16785 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
16786 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16787 ;;
16788
16789 dgux*)
16790 version_type=linux # correct to gnu/linux during the next big refactor
16791 need_lib_prefix=no
16792 need_version=no
16793 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16794 soname_spec='${libname}${release}${shared_ext}$major'
16795 shlibpath_var=LD_LIBRARY_PATH
16796 ;;
16797
16798 freebsd* | dragonfly*)
16799 # DragonFly does not have aout. When/if they implement a new
16800 # versioning mechanism, adjust this.
16801 if test -x /usr/bin/objformat; then
16802 objformat=`/usr/bin/objformat`
16803 else
16804 case $host_os in
16805 freebsd[23].*) objformat=aout ;;
16806 *) objformat=elf ;;
16807 esac
16808 fi
16809 version_type=freebsd-$objformat
16810 case $version_type in
16811 freebsd-elf*)
16812 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16813 need_version=no
16814 need_lib_prefix=no
16815 ;;
16816 freebsd-*)
16817 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16818 need_version=yes
16819 ;;
16820 esac
16821 shlibpath_var=LD_LIBRARY_PATH
16822 case $host_os in
16823 freebsd2.*)
16824 shlibpath_overrides_runpath=yes
16825 ;;
16826 freebsd3.[01]* | freebsdelf3.[01]*)
16827 shlibpath_overrides_runpath=yes
16828 hardcode_into_libs=yes
16829 ;;
16830 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16831 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16832 shlibpath_overrides_runpath=no
16833 hardcode_into_libs=yes
16834 ;;
16835 *) # from 4.6 on, and DragonFly
16836 shlibpath_overrides_runpath=yes
16837 hardcode_into_libs=yes
16838 ;;
16839 esac
16840 ;;
16841
16842 gnu*)
16843 version_type=linux # correct to gnu/linux during the next big refactor
16844 need_lib_prefix=no
16845 need_version=no
16846 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16847 soname_spec='${libname}${release}${shared_ext}$major'
16848 shlibpath_var=LD_LIBRARY_PATH
16849 shlibpath_overrides_runpath=no
16850 hardcode_into_libs=yes
16851 ;;
16852
16853 haiku*)
16854 version_type=linux # correct to gnu/linux during the next big refactor
16855 need_lib_prefix=no
16856 need_version=no
16857 dynamic_linker="$host_os runtime_loader"
16858 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16859 soname_spec='${libname}${release}${shared_ext}$major'
16860 shlibpath_var=LIBRARY_PATH
16861 shlibpath_overrides_runpath=yes
16862 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
16863 hardcode_into_libs=yes
16864 ;;
16865
16866 hpux9* | hpux10* | hpux11*)
16867 # Give a soname corresponding to the major version so that dld.sl refuses to
16868 # link against other versions.
16869 version_type=sunos
16870 need_lib_prefix=no
16871 need_version=no
16872 case $host_cpu in
16873 ia64*)
16874 shrext_cmds='.so'
16875 hardcode_into_libs=yes
16876 dynamic_linker="$host_os dld.so"
16877 shlibpath_var=LD_LIBRARY_PATH
16878 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16879 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16880 soname_spec='${libname}${release}${shared_ext}$major'
16881 if test "X$HPUX_IA64_MODE" = X32; then
16882 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16883 else
16884 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16885 fi
16886 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16887 ;;
16888 hppa*64*)
16889 shrext_cmds='.sl'
16890 hardcode_into_libs=yes
16891 dynamic_linker="$host_os dld.sl"
16892 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16893 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16894 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16895 soname_spec='${libname}${release}${shared_ext}$major'
16896 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16897 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16898 ;;
16899 *)
16900 shrext_cmds='.sl'
16901 dynamic_linker="$host_os dld.sl"
16902 shlibpath_var=SHLIB_PATH
16903 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16904 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16905 soname_spec='${libname}${release}${shared_ext}$major'
16906 ;;
16907 esac
16908 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
16909 postinstall_cmds='chmod 555 $lib'
16910 # or fails outright, so override atomically:
16911 install_override_mode=555
16912 ;;
16913
16914 interix[3-9]*)
16915 version_type=linux # correct to gnu/linux during the next big refactor
16916 need_lib_prefix=no
16917 need_version=no
16918 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16919 soname_spec='${libname}${release}${shared_ext}$major'
16920 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16921 shlibpath_var=LD_LIBRARY_PATH
16922 shlibpath_overrides_runpath=no
16923 hardcode_into_libs=yes
16924 ;;
16925
16926 irix5* | irix6* | nonstopux*)
16927 case $host_os in
16928 nonstopux*) version_type=nonstopux ;;
16929 *)
16930 if test "$lt_cv_prog_gnu_ld" = yes; then
16931 version_type=linux # correct to gnu/linux during the next big refactor
16932 else
16933 version_type=irix
16934 fi ;;
16935 esac
16936 need_lib_prefix=no
16937 need_version=no
16938 soname_spec='${libname}${release}${shared_ext}$major'
16939 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16940 case $host_os in
16941 irix5* | nonstopux*)
16942 libsuff= shlibsuff=
16943 ;;
16944 *)
16945 case $LD in # libtool.m4 will add one of these switches to LD
16946 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16947 libsuff= shlibsuff= libmagic=32-bit;;
16948 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16949 libsuff=32 shlibsuff=N32 libmagic=N32;;
16950 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16951 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16952 *) libsuff= shlibsuff= libmagic=never-match;;
16953 esac
16954 ;;
16955 esac
16956 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16957 shlibpath_overrides_runpath=no
16958 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16959 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16960 hardcode_into_libs=yes
16961 ;;
16962
16963 # No shared lib support for Linux oldld, aout, or coff.
16964 linux*oldld* | linux*aout* | linux*coff*)
16965 dynamic_linker=no
16966 ;;
16967
16968 # This must be glibc/ELF.
16969 linux* | k*bsd*-gnu | kopensolaris*-gnu)
16970 version_type=linux # correct to gnu/linux during the next big refactor
16971 need_lib_prefix=no
16972 need_version=no
16973 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16974 soname_spec='${libname}${release}${shared_ext}$major'
16975 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16976 shlibpath_var=LD_LIBRARY_PATH
16977 shlibpath_overrides_runpath=no
16978
16979 # Some binutils ld are patched to set DT_RUNPATH
16980 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
16981 $as_echo_n "(cached) " >&6
16982 else
16983 lt_cv_shlibpath_overrides_runpath=no
16984 save_LDFLAGS=$LDFLAGS
16985 save_libdir=$libdir
16986 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
16987 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
16988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16989 /* end confdefs.h. */
16990
16991 int
16992 main ()
16993 {
16994
16995 ;
16996 return 0;
16997 }
16998 _ACEOF
16999 if ac_fn_c_try_link "$LINENO"; then :
17000 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
17001 lt_cv_shlibpath_overrides_runpath=yes
17002 fi
17003 fi
17004 rm -f core conftest.err conftest.$ac_objext \
17005 conftest$ac_exeext conftest.$ac_ext
17006 LDFLAGS=$save_LDFLAGS
17007 libdir=$save_libdir
17008
17009 fi
17010
17011 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
17012
17013 # This implies no fast_install, which is unacceptable.
17014 # Some rework will be needed to allow for fast_install
17015 # before this can be enabled.
17016 hardcode_into_libs=yes
17017
17018 # Add ABI-specific directories to the system library path.
17019 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
17020
17021 # Append ld.so.conf contents to the search path
17022 if test -f /etc/ld.so.conf; then
17023 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' ' '`
17024 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
17025
17026 fi
17027
17028 # We used to test for /lib/ld.so.1 and disable shared libraries on
17029 # powerpc, because MkLinux only supported shared libraries with the
17030 # GNU dynamic linker. Since this was broken with cross compilers,
17031 # most powerpc-linux boxes support dynamic linking these days and
17032 # people can always --disable-shared, the test was removed, and we
17033 # assume the GNU/Linux dynamic linker is in use.
17034 dynamic_linker='GNU/Linux ld.so'
17035 ;;
17036
17037 netbsd*)
17038 version_type=sunos
17039 need_lib_prefix=no
17040 need_version=no
17041 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17042 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17043 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17044 dynamic_linker='NetBSD (a.out) ld.so'
17045 else
17046 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17047 soname_spec='${libname}${release}${shared_ext}$major'
17048 dynamic_linker='NetBSD ld.elf_so'
17049 fi
17050 shlibpath_var=LD_LIBRARY_PATH
17051 shlibpath_overrides_runpath=yes
17052 hardcode_into_libs=yes
17053 ;;
17054
17055 newsos6)
17056 version_type=linux # correct to gnu/linux during the next big refactor
17057 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17058 shlibpath_var=LD_LIBRARY_PATH
17059 shlibpath_overrides_runpath=yes
17060 ;;
17061
17062 *nto* | *qnx*)
17063 version_type=qnx
17064 need_lib_prefix=no
17065 need_version=no
17066 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17067 soname_spec='${libname}${release}${shared_ext}$major'
17068 shlibpath_var=LD_LIBRARY_PATH
17069 shlibpath_overrides_runpath=no
17070 hardcode_into_libs=yes
17071 dynamic_linker='ldqnx.so'
17072 ;;
17073
17074 openbsd*)
17075 version_type=sunos
17076 sys_lib_dlsearch_path_spec="/usr/lib"
17077 need_lib_prefix=no
17078 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17079 case $host_os in
17080 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17081 *) need_version=no ;;
17082 esac
17083 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17084 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17085 shlibpath_var=LD_LIBRARY_PATH
17086 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17087 case $host_os in
17088 openbsd2.[89] | openbsd2.[89].*)
17089 shlibpath_overrides_runpath=no
17090 ;;
17091 *)
17092 shlibpath_overrides_runpath=yes
17093 ;;
17094 esac
17095 else
17096 shlibpath_overrides_runpath=yes
17097 fi
17098 ;;
17099
17100 os2*)
17101 libname_spec='$name'
17102 shrext_cmds=".dll"
17103 need_lib_prefix=no
17104 library_names_spec='$libname${shared_ext} $libname.a'
17105 dynamic_linker='OS/2 ld.exe'
17106 shlibpath_var=LIBPATH
17107 ;;
17108
17109 osf3* | osf4* | osf5*)
17110 version_type=osf
17111 need_lib_prefix=no
17112 need_version=no
17113 soname_spec='${libname}${release}${shared_ext}$major'
17114 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17115 shlibpath_var=LD_LIBRARY_PATH
17116 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17117 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17118 ;;
17119
17120 rdos*)
17121 dynamic_linker=no
17122 ;;
17123
17124 solaris*)
17125 version_type=linux # correct to gnu/linux during the next big refactor
17126 need_lib_prefix=no
17127 need_version=no
17128 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17129 soname_spec='${libname}${release}${shared_ext}$major'
17130 shlibpath_var=LD_LIBRARY_PATH
17131 shlibpath_overrides_runpath=yes
17132 hardcode_into_libs=yes
17133 # ldd complains unless libraries are executable
17134 postinstall_cmds='chmod +x $lib'
17135 ;;
17136
17137 sunos4*)
17138 version_type=sunos
17139 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17140 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17141 shlibpath_var=LD_LIBRARY_PATH
17142 shlibpath_overrides_runpath=yes
17143 if test "$with_gnu_ld" = yes; then
17144 need_lib_prefix=no
17145 fi
17146 need_version=yes
17147 ;;
17148
17149 sysv4 | sysv4.3*)
17150 version_type=linux # correct to gnu/linux during the next big refactor
17151 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17152 soname_spec='${libname}${release}${shared_ext}$major'
17153 shlibpath_var=LD_LIBRARY_PATH
17154 case $host_vendor in
17155 sni)
17156 shlibpath_overrides_runpath=no
17157 need_lib_prefix=no
17158 runpath_var=LD_RUN_PATH
17159 ;;
17160 siemens)
17161 need_lib_prefix=no
17162 ;;
17163 motorola)
17164 need_lib_prefix=no
17165 need_version=no
17166 shlibpath_overrides_runpath=no
17167 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17168 ;;
17169 esac
17170 ;;
17171
17172 sysv4*MP*)
17173 if test -d /usr/nec ;then
17174 version_type=linux # correct to gnu/linux during the next big refactor
17175 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17176 soname_spec='$libname${shared_ext}.$major'
17177 shlibpath_var=LD_LIBRARY_PATH
17178 fi
17179 ;;
17180
17181 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17182 version_type=freebsd-elf
17183 need_lib_prefix=no
17184 need_version=no
17185 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17186 soname_spec='${libname}${release}${shared_ext}$major'
17187 shlibpath_var=LD_LIBRARY_PATH
17188 shlibpath_overrides_runpath=yes
17189 hardcode_into_libs=yes
17190 if test "$with_gnu_ld" = yes; then
17191 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17192 else
17193 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17194 case $host_os in
17195 sco3.2v5*)
17196 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17197 ;;
17198 esac
17199 fi
17200 sys_lib_dlsearch_path_spec='/usr/lib'
17201 ;;
17202
17203 tpf*)
17204 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
17205 version_type=linux # correct to gnu/linux during the next big refactor
17206 need_lib_prefix=no
17207 need_version=no
17208 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17209 shlibpath_var=LD_LIBRARY_PATH
17210 shlibpath_overrides_runpath=no
17211 hardcode_into_libs=yes
17212 ;;
17213
17214 uts4*)
17215 version_type=linux # correct to gnu/linux during the next big refactor
17216 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17217 soname_spec='${libname}${release}${shared_ext}$major'
17218 shlibpath_var=LD_LIBRARY_PATH
17219 ;;
17220
17221 *)
17222 dynamic_linker=no
17223 ;;
17224 esac
17225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17226 $as_echo "$dynamic_linker" >&6; }
17227 test "$dynamic_linker" = no && can_build_shared=no
17228
17229 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17230 if test "$GCC" = yes; then
17231 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17232 fi
17233
17234 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17235 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
17236 fi
17237 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17238 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
17239 fi
17240
17241
17242
17243
17244
17245
17246
17247
17248
17249
17250
17251
17252
17253
17254
17255
17256
17257
17258
17259
17260
17261
17262
17263
17264
17265
17266
17267
17268
17269
17270
17271
17272
17273
17274
17275
17276
17277
17278
17279
17280
17281
17282
17283
17284
17285
17286
17287
17288
17289
17290
17291
17292
17293
17294
17295
17296
17297
17298
17299
17300
17301
17302
17303
17304
17305
17306
17307
17308
17309
17310
17311
17312
17313
17314
17315
17316
17317
17318
17319
17320
17321
17322
17323
17324
17325
17326
17327
17328
17329
17330
17331
17332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17333 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17334 hardcode_action=
17335 if test -n "$hardcode_libdir_flag_spec" ||
17336 test -n "$runpath_var" ||
17337 test "X$hardcode_automatic" = "Xyes" ; then
17338
17339 # We can hardcode non-existent directories.
17340 if test "$hardcode_direct" != no &&
17341 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17342 # have to relink, otherwise we might link with an installed library
17343 # when we should be linking with a yet-to-be-installed one
17344 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
17345 test "$hardcode_minus_L" != no; then
17346 # Linking always hardcodes the temporary library directory.
17347 hardcode_action=relink
17348 else
17349 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17350 hardcode_action=immediate
17351 fi
17352 else
17353 # We cannot hardcode anything, or else we can only hardcode existing
17354 # directories.
17355 hardcode_action=unsupported
17356 fi
17357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
17358 $as_echo "$hardcode_action" >&6; }
17359
17360 if test "$hardcode_action" = relink ||
17361 test "$inherit_rpath" = yes; then
17362 # Fast installation is not supported
17363 enable_fast_install=no
17364 elif test "$shlibpath_overrides_runpath" = yes ||
17365 test "$enable_shared" = no; then
17366 # Fast installation is not necessary
17367 enable_fast_install=needless
17368 fi
17369
17370
17371
17372
17373
17374
17375 if test "x$enable_dlopen" != xyes; then
17376 enable_dlopen=unknown
17377 enable_dlopen_self=unknown
17378 enable_dlopen_self_static=unknown
17379 else
17380 lt_cv_dlopen=no
17381 lt_cv_dlopen_libs=
17382
17383 case $host_os in
17384 beos*)
17385 lt_cv_dlopen="load_add_on"
17386 lt_cv_dlopen_libs=
17387 lt_cv_dlopen_self=yes
17388 ;;
17389
17390 mingw* | pw32* | cegcc*)
17391 lt_cv_dlopen="LoadLibrary"
17392 lt_cv_dlopen_libs=
17393 ;;
17394
17395 cygwin*)
17396 lt_cv_dlopen="dlopen"
17397 lt_cv_dlopen_libs=
17398 ;;
17399
17400 darwin*)
17401 # if libdl is installed we need to link against it
17402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17403 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17404 if ${ac_cv_lib_dl_dlopen+:} false; then :
17405 $as_echo_n "(cached) " >&6
17406 else
17407 ac_check_lib_save_LIBS=$LIBS
17408 LIBS="-ldl $LIBS"
17409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17410 /* end confdefs.h. */
17411
17412 /* Override any GCC internal prototype to avoid an error.
17413 Use char because int might match the return type of a GCC
17414 builtin and then its argument prototype would still apply. */
17415 #ifdef __cplusplus
17416 extern "C"
17417 #endif
17418 char dlopen ();
17419 int
17420 main ()
17421 {
17422 return dlopen ();
17423 ;
17424 return 0;
17425 }
17426 _ACEOF
17427 if ac_fn_c_try_link "$LINENO"; then :
17428 ac_cv_lib_dl_dlopen=yes
17429 else
17430 ac_cv_lib_dl_dlopen=no
17431 fi
17432 rm -f core conftest.err conftest.$ac_objext \
17433 conftest$ac_exeext conftest.$ac_ext
17434 LIBS=$ac_check_lib_save_LIBS
17435 fi
17436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17437 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17438 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
17439 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17440 else
17441
17442 lt_cv_dlopen="dyld"
17443 lt_cv_dlopen_libs=
17444 lt_cv_dlopen_self=yes
17445
17446 fi
17447
17448 ;;
17449
17450 *)
17451 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
17452 if test "x$ac_cv_func_shl_load" = xyes; then :
17453 lt_cv_dlopen="shl_load"
17454 else
17455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17456 $as_echo_n "checking for shl_load in -ldld... " >&6; }
17457 if ${ac_cv_lib_dld_shl_load+:} false; then :
17458 $as_echo_n "(cached) " >&6
17459 else
17460 ac_check_lib_save_LIBS=$LIBS
17461 LIBS="-ldld $LIBS"
17462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17463 /* end confdefs.h. */
17464
17465 /* Override any GCC internal prototype to avoid an error.
17466 Use char because int might match the return type of a GCC
17467 builtin and then its argument prototype would still apply. */
17468 #ifdef __cplusplus
17469 extern "C"
17470 #endif
17471 char shl_load ();
17472 int
17473 main ()
17474 {
17475 return shl_load ();
17476 ;
17477 return 0;
17478 }
17479 _ACEOF
17480 if ac_fn_c_try_link "$LINENO"; then :
17481 ac_cv_lib_dld_shl_load=yes
17482 else
17483 ac_cv_lib_dld_shl_load=no
17484 fi
17485 rm -f core conftest.err conftest.$ac_objext \
17486 conftest$ac_exeext conftest.$ac_ext
17487 LIBS=$ac_check_lib_save_LIBS
17488 fi
17489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17490 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
17491 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
17492 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
17493 else
17494 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
17495 if test "x$ac_cv_func_dlopen" = xyes; then :
17496 lt_cv_dlopen="dlopen"
17497 else
17498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17499 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17500 if ${ac_cv_lib_dl_dlopen+:} false; then :
17501 $as_echo_n "(cached) " >&6
17502 else
17503 ac_check_lib_save_LIBS=$LIBS
17504 LIBS="-ldl $LIBS"
17505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17506 /* end confdefs.h. */
17507
17508 /* Override any GCC internal prototype to avoid an error.
17509 Use char because int might match the return type of a GCC
17510 builtin and then its argument prototype would still apply. */
17511 #ifdef __cplusplus
17512 extern "C"
17513 #endif
17514 char dlopen ();
17515 int
17516 main ()
17517 {
17518 return dlopen ();
17519 ;
17520 return 0;
17521 }
17522 _ACEOF
17523 if ac_fn_c_try_link "$LINENO"; then :
17524 ac_cv_lib_dl_dlopen=yes
17525 else
17526 ac_cv_lib_dl_dlopen=no
17527 fi
17528 rm -f core conftest.err conftest.$ac_objext \
17529 conftest$ac_exeext conftest.$ac_ext
17530 LIBS=$ac_check_lib_save_LIBS
17531 fi
17532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17533 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17534 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
17535 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17536 else
17537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17538 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
17539 if ${ac_cv_lib_svld_dlopen+:} false; then :
17540 $as_echo_n "(cached) " >&6
17541 else
17542 ac_check_lib_save_LIBS=$LIBS
17543 LIBS="-lsvld $LIBS"
17544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17545 /* end confdefs.h. */
17546
17547 /* Override any GCC internal prototype to avoid an error.
17548 Use char because int might match the return type of a GCC
17549 builtin and then its argument prototype would still apply. */
17550 #ifdef __cplusplus
17551 extern "C"
17552 #endif
17553 char dlopen ();
17554 int
17555 main ()
17556 {
17557 return dlopen ();
17558 ;
17559 return 0;
17560 }
17561 _ACEOF
17562 if ac_fn_c_try_link "$LINENO"; then :
17563 ac_cv_lib_svld_dlopen=yes
17564 else
17565 ac_cv_lib_svld_dlopen=no
17566 fi
17567 rm -f core conftest.err conftest.$ac_objext \
17568 conftest$ac_exeext conftest.$ac_ext
17569 LIBS=$ac_check_lib_save_LIBS
17570 fi
17571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17572 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
17573 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
17574 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17575 else
17576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17577 $as_echo_n "checking for dld_link in -ldld... " >&6; }
17578 if ${ac_cv_lib_dld_dld_link+:} false; then :
17579 $as_echo_n "(cached) " >&6
17580 else
17581 ac_check_lib_save_LIBS=$LIBS
17582 LIBS="-ldld $LIBS"
17583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17584 /* end confdefs.h. */
17585
17586 /* Override any GCC internal prototype to avoid an error.
17587 Use char because int might match the return type of a GCC
17588 builtin and then its argument prototype would still apply. */
17589 #ifdef __cplusplus
17590 extern "C"
17591 #endif
17592 char dld_link ();
17593 int
17594 main ()
17595 {
17596 return dld_link ();
17597 ;
17598 return 0;
17599 }
17600 _ACEOF
17601 if ac_fn_c_try_link "$LINENO"; then :
17602 ac_cv_lib_dld_dld_link=yes
17603 else
17604 ac_cv_lib_dld_dld_link=no
17605 fi
17606 rm -f core conftest.err conftest.$ac_objext \
17607 conftest$ac_exeext conftest.$ac_ext
17608 LIBS=$ac_check_lib_save_LIBS
17609 fi
17610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
17611 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
17612 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
17613 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
17614 fi
17615
17616
17617 fi
17618
17619
17620 fi
17621
17622
17623 fi
17624
17625
17626 fi
17627
17628
17629 fi
17630
17631 ;;
17632 esac
17633
17634 if test "x$lt_cv_dlopen" != xno; then
17635 enable_dlopen=yes
17636 else
17637 enable_dlopen=no
17638 fi
17639
17640 case $lt_cv_dlopen in
17641 dlopen)
17642 save_CPPFLAGS="$CPPFLAGS"
17643 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17644
17645 save_LDFLAGS="$LDFLAGS"
17646 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17647
17648 save_LIBS="$LIBS"
17649 LIBS="$lt_cv_dlopen_libs $LIBS"
17650
17651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
17652 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
17653 if ${lt_cv_dlopen_self+:} false; then :
17654 $as_echo_n "(cached) " >&6
17655 else
17656 if test "$cross_compiling" = yes; then :
17657 lt_cv_dlopen_self=cross
17658 else
17659 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17660 lt_status=$lt_dlunknown
17661 cat > conftest.$ac_ext <<_LT_EOF
17662 #line $LINENO "configure"
17663 #include "confdefs.h"
17664
17665 #if HAVE_DLFCN_H
17666 #include <dlfcn.h>
17667 #endif
17668
17669 #include <stdio.h>
17670
17671 #ifdef RTLD_GLOBAL
17672 # define LT_DLGLOBAL RTLD_GLOBAL
17673 #else
17674 # ifdef DL_GLOBAL
17675 # define LT_DLGLOBAL DL_GLOBAL
17676 # else
17677 # define LT_DLGLOBAL 0
17678 # endif
17679 #endif
17680
17681 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17682 find out it does not work in some platform. */
17683 #ifndef LT_DLLAZY_OR_NOW
17684 # ifdef RTLD_LAZY
17685 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17686 # else
17687 # ifdef DL_LAZY
17688 # define LT_DLLAZY_OR_NOW DL_LAZY
17689 # else
17690 # ifdef RTLD_NOW
17691 # define LT_DLLAZY_OR_NOW RTLD_NOW
17692 # else
17693 # ifdef DL_NOW
17694 # define LT_DLLAZY_OR_NOW DL_NOW
17695 # else
17696 # define LT_DLLAZY_OR_NOW 0
17697 # endif
17698 # endif
17699 # endif
17700 # endif
17701 #endif
17702
17703 /* When -fvisbility=hidden is used, assume the code has been annotated
17704 correspondingly for the symbols needed. */
17705 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17706 int fnord () __attribute__((visibility("default")));
17707 #endif
17708
17709 int fnord () { return 42; }
17710 int main ()
17711 {
17712 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17713 int status = $lt_dlunknown;
17714
17715 if (self)
17716 {
17717 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17718 else
17719 {
17720 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17721 else puts (dlerror ());
17722 }
17723 /* dlclose (self); */
17724 }
17725 else
17726 puts (dlerror ());
17727
17728 return status;
17729 }
17730 _LT_EOF
17731 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17732 (eval $ac_link) 2>&5
17733 ac_status=$?
17734 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17735 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17736 (./conftest; exit; ) >&5 2>/dev/null
17737 lt_status=$?
17738 case x$lt_status in
17739 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17740 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17741 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17742 esac
17743 else :
17744 # compilation failed
17745 lt_cv_dlopen_self=no
17746 fi
17747 fi
17748 rm -fr conftest*
17749
17750
17751 fi
17752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
17753 $as_echo "$lt_cv_dlopen_self" >&6; }
17754
17755 if test "x$lt_cv_dlopen_self" = xyes; then
17756 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
17758 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
17759 if ${lt_cv_dlopen_self_static+:} false; then :
17760 $as_echo_n "(cached) " >&6
17761 else
17762 if test "$cross_compiling" = yes; then :
17763 lt_cv_dlopen_self_static=cross
17764 else
17765 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17766 lt_status=$lt_dlunknown
17767 cat > conftest.$ac_ext <<_LT_EOF
17768 #line $LINENO "configure"
17769 #include "confdefs.h"
17770
17771 #if HAVE_DLFCN_H
17772 #include <dlfcn.h>
17773 #endif
17774
17775 #include <stdio.h>
17776
17777 #ifdef RTLD_GLOBAL
17778 # define LT_DLGLOBAL RTLD_GLOBAL
17779 #else
17780 # ifdef DL_GLOBAL
17781 # define LT_DLGLOBAL DL_GLOBAL
17782 # else
17783 # define LT_DLGLOBAL 0
17784 # endif
17785 #endif
17786
17787 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17788 find out it does not work in some platform. */
17789 #ifndef LT_DLLAZY_OR_NOW
17790 # ifdef RTLD_LAZY
17791 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17792 # else
17793 # ifdef DL_LAZY
17794 # define LT_DLLAZY_OR_NOW DL_LAZY
17795 # else
17796 # ifdef RTLD_NOW
17797 # define LT_DLLAZY_OR_NOW RTLD_NOW
17798 # else
17799 # ifdef DL_NOW
17800 # define LT_DLLAZY_OR_NOW DL_NOW
17801 # else
17802 # define LT_DLLAZY_OR_NOW 0
17803 # endif
17804 # endif
17805 # endif
17806 # endif
17807 #endif
17808
17809 /* When -fvisbility=hidden is used, assume the code has been annotated
17810 correspondingly for the symbols needed. */
17811 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17812 int fnord () __attribute__((visibility("default")));
17813 #endif
17814
17815 int fnord () { return 42; }
17816 int main ()
17817 {
17818 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17819 int status = $lt_dlunknown;
17820
17821 if (self)
17822 {
17823 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17824 else
17825 {
17826 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17827 else puts (dlerror ());
17828 }
17829 /* dlclose (self); */
17830 }
17831 else
17832 puts (dlerror ());
17833
17834 return status;
17835 }
17836 _LT_EOF
17837 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17838 (eval $ac_link) 2>&5
17839 ac_status=$?
17840 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17841 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17842 (./conftest; exit; ) >&5 2>/dev/null
17843 lt_status=$?
17844 case x$lt_status in
17845 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17846 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17847 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17848 esac
17849 else :
17850 # compilation failed
17851 lt_cv_dlopen_self_static=no
17852 fi
17853 fi
17854 rm -fr conftest*
17855
17856
17857 fi
17858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
17859 $as_echo "$lt_cv_dlopen_self_static" >&6; }
17860 fi
17861
17862 CPPFLAGS="$save_CPPFLAGS"
17863 LDFLAGS="$save_LDFLAGS"
17864 LIBS="$save_LIBS"
17865 ;;
17866 esac
17867
17868 case $lt_cv_dlopen_self in
17869 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17870 *) enable_dlopen_self=unknown ;;
17871 esac
17872
17873 case $lt_cv_dlopen_self_static in
17874 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17875 *) enable_dlopen_self_static=unknown ;;
17876 esac
17877 fi
17878
17879
17880
17881
17882
17883
17884
17885
17886
17887
17888
17889
17890
17891
17892
17893
17894
17895 striplib=
17896 old_striplib=
17897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
17898 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
17899 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
17900 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17901 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17903 $as_echo "yes" >&6; }
17904 else
17905 # FIXME - insert some real tests, host_os isn't really good enough
17906 case $host_os in
17907 darwin*)
17908 if test -n "$STRIP" ; then
17909 striplib="$STRIP -x"
17910 old_striplib="$STRIP -S"
17911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17912 $as_echo "yes" >&6; }
17913 else
17914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17915 $as_echo "no" >&6; }
17916 fi
17917 ;;
17918 *)
17919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17920 $as_echo "no" >&6; }
17921 ;;
17922 esac
17923 fi
17924
17925
17926
17927
17928
17929
17930
17931
17932
17933
17934
17935
17936 # Report which library types will actually be built
17937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
17938 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
17939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
17940 $as_echo "$can_build_shared" >&6; }
17941
17942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
17943 $as_echo_n "checking whether to build shared libraries... " >&6; }
17944 test "$can_build_shared" = "no" && enable_shared=no
17945
17946 # On AIX, shared libraries and static libraries use the same namespace, and
17947 # are all built from PIC.
17948 case $host_os in
17949 aix3*)
17950 test "$enable_shared" = yes && enable_static=no
17951 if test -n "$RANLIB"; then
17952 archive_cmds="$archive_cmds~\$RANLIB \$lib"
17953 postinstall_cmds='$RANLIB $lib'
17954 fi
17955 ;;
17956
17957 aix[4-9]*)
17958 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17959 test "$enable_shared" = yes && enable_static=no
17960 fi
17961 ;;
17962 esac
17963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
17964 $as_echo "$enable_shared" >&6; }
17965
17966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
17967 $as_echo_n "checking whether to build static libraries... " >&6; }
17968 # Make sure either enable_shared or enable_static is yes.
17969 test "$enable_shared" = yes || enable_static=yes
17970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
17971 $as_echo "$enable_static" >&6; }
17972
17973
17974
17975
17976 fi
17977 ac_ext=c
17978 ac_cpp='$CPP $CPPFLAGS'
17979 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17980 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17981 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17982
17983 CC="$lt_save_CC"
17984
17985
17986
17987
17988
17989
17990
17991
17992
17993
17994
17995
17996
17997
17998
17999 ac_config_commands="$ac_config_commands libtool"
18000
18001
18002
18003
18004 # Only expand once:
18005
18006
18007
18008
18009
18010 # Define a configure option for an alternate module directory
18011
18012 # Check whether --with-xorg-module-dir was given.
18013 if test "${with_xorg_module_dir+set}" = set; then :
18014 withval=$with_xorg_module_dir; moduledir="$withval"
18015 else
18016 moduledir="$libdir/xorg/modules"
18017 fi
18018
18019
18020 # Check whether --enable-dri was given.
18021 if test "${enable_dri+set}" = set; then :
18022 enableval=$enable_dri; DRI="$enableval"
18023 else
18024 DRI=auto
18025 fi
18026
18027
18028 # Check whether --enable-exa was given.
18029 if test "${enable_exa+set}" = set; then :
18030 enableval=$enable_exa; EXA="$enableval"
18031 else
18032 EXA=yes
18033 fi
18034
18035
18036 # Store the list of server defined optional extensions in REQUIRED_MODULES
18037
18038
18039 SAVE_CFLAGS="$CFLAGS"
18040 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
18041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18042 /* end confdefs.h. */
18043
18044 #include "xorg-server.h"
18045 #if !defined RANDR
18046 #error RANDR not defined
18047 #endif
18048
18049 int
18050 main ()
18051 {
18052
18053 ;
18054 return 0;
18055 }
18056 _ACEOF
18057 if ac_fn_c_try_compile "$LINENO"; then :
18058 _EXT_CHECK=yes
18059 else
18060 _EXT_CHECK=no
18061 fi
18062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18063 CFLAGS="$SAVE_CFLAGS"
18064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if RANDR is defined" >&5
18065 $as_echo_n "checking if RANDR is defined... " >&6; }
18066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
18067 $as_echo "$_EXT_CHECK" >&6; }
18068 if test "$_EXT_CHECK" != no; then
18069 REQUIRED_MODULES="$REQUIRED_MODULES randrproto"
18070 fi
18071
18072
18073
18074 SAVE_CFLAGS="$CFLAGS"
18075 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
18076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18077 /* end confdefs.h. */
18078
18079 #include "xorg-server.h"
18080 #if !defined RENDER
18081 #error RENDER not defined
18082 #endif
18083
18084 int
18085 main ()
18086 {
18087
18088 ;
18089 return 0;
18090 }
18091 _ACEOF
18092 if ac_fn_c_try_compile "$LINENO"; then :
18093 _EXT_CHECK=yes
18094 else
18095 _EXT_CHECK=no
18096 fi
18097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18098 CFLAGS="$SAVE_CFLAGS"
18099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if RENDER is defined" >&5
18100 $as_echo_n "checking if RENDER is defined... " >&6; }
18101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
18102 $as_echo "$_EXT_CHECK" >&6; }
18103 if test "$_EXT_CHECK" != no; then
18104 REQUIRED_MODULES="$REQUIRED_MODULES renderproto"
18105 fi
18106
18107
18108
18109 SAVE_CFLAGS="$CFLAGS"
18110 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
18111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18112 /* end confdefs.h. */
18113
18114 #include "xorg-server.h"
18115 #if !defined XV
18116 #error XV not defined
18117 #endif
18118
18119 int
18120 main ()
18121 {
18122
18123 ;
18124 return 0;
18125 }
18126 _ACEOF
18127 if ac_fn_c_try_compile "$LINENO"; then :
18128 _EXT_CHECK=yes
18129 else
18130 _EXT_CHECK=no
18131 fi
18132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18133 CFLAGS="$SAVE_CFLAGS"
18134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XV is defined" >&5
18135 $as_echo_n "checking if XV is defined... " >&6; }
18136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
18137 $as_echo "$_EXT_CHECK" >&6; }
18138 if test "$_EXT_CHECK" != no; then
18139 REQUIRED_MODULES="$REQUIRED_MODULES videoproto"
18140 fi
18141
18142
18143
18144 SAVE_CFLAGS="$CFLAGS"
18145 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
18146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18147 /* end confdefs.h. */
18148
18149 #include "xorg-server.h"
18150 #if !defined DPMSExtension
18151 #error DPMSExtension not defined
18152 #endif
18153
18154 int
18155 main ()
18156 {
18157
18158 ;
18159 return 0;
18160 }
18161 _ACEOF
18162 if ac_fn_c_try_compile "$LINENO"; then :
18163 _EXT_CHECK=yes
18164 else
18165 _EXT_CHECK=no
18166 fi
18167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18168 CFLAGS="$SAVE_CFLAGS"
18169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPMSExtension is defined" >&5
18170 $as_echo_n "checking if DPMSExtension is defined... " >&6; }
18171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
18172 $as_echo "$_EXT_CHECK" >&6; }
18173 if test "$_EXT_CHECK" != no; then
18174 REQUIRED_MODULES="$REQUIRED_MODULES xextproto"
18175 fi
18176
18177
18178 # Obtain compiler/linker options for the driver dependencies
18179
18180 pkg_failed=no
18181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XORG" >&5
18182 $as_echo_n "checking for XORG... " >&6; }
18183
18184 if test -n "$XORG_CFLAGS"; then
18185 pkg_cv_XORG_CFLAGS="$XORG_CFLAGS"
18186 elif test -n "$PKG_CONFIG"; then
18187 if test -n "$PKG_CONFIG" && \
18188 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.4 xproto fontsproto \$REQUIRED_MODULES\""; } >&5
18189 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.4 xproto fontsproto $REQUIRED_MODULES") 2>&5
18190 ac_status=$?
18191 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18192 test $ac_status = 0; }; then
18193 pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.4 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
18194 test "x$?" != "x0" && pkg_failed=yes
18195 else
18196 pkg_failed=yes
18197 fi
18198 else
18199 pkg_failed=untried
18200 fi
18201 if test -n "$XORG_LIBS"; then
18202 pkg_cv_XORG_LIBS="$XORG_LIBS"
18203 elif test -n "$PKG_CONFIG"; then
18204 if test -n "$PKG_CONFIG" && \
18205 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.4 xproto fontsproto \$REQUIRED_MODULES\""; } >&5
18206 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.4 xproto fontsproto $REQUIRED_MODULES") 2>&5
18207 ac_status=$?
18208 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18209 test $ac_status = 0; }; then
18210 pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.4 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
18211 test "x$?" != "x0" && pkg_failed=yes
18212 else
18213 pkg_failed=yes
18214 fi
18215 else
18216 pkg_failed=untried
18217 fi
18218
18219
18220
18221 if test $pkg_failed = yes; then
18222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18223 $as_echo "no" >&6; }
18224
18225 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18226 _pkg_short_errors_supported=yes
18227 else
18228 _pkg_short_errors_supported=no
18229 fi
18230 if test $_pkg_short_errors_supported = yes; then
18231 XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xorg-server >= 1.4 xproto fontsproto $REQUIRED_MODULES" 2>&1`
18232 else
18233 XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xorg-server >= 1.4 xproto fontsproto $REQUIRED_MODULES" 2>&1`
18234 fi
18235 # Put the nasty error message in config.log where it belongs
18236 echo "$XORG_PKG_ERRORS" >&5
18237
18238 as_fn_error $? "Package requirements (xorg-server >= 1.4 xproto fontsproto $REQUIRED_MODULES) were not met:
18239
18240 $XORG_PKG_ERRORS
18241
18242 Consider adjusting the PKG_CONFIG_PATH environment variable if you
18243 installed software in a non-standard prefix.
18244
18245 Alternatively, you may set the environment variables XORG_CFLAGS
18246 and XORG_LIBS to avoid the need to call pkg-config.
18247 See the pkg-config man page for more details." "$LINENO" 5
18248 elif test $pkg_failed = untried; then
18249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18250 $as_echo "no" >&6; }
18251 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18252 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18253 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
18254 is in your PATH or set the PKG_CONFIG environment variable to the full
18255 path to pkg-config.
18256
18257 Alternatively, you may set the environment variables XORG_CFLAGS
18258 and XORG_LIBS to avoid the need to call pkg-config.
18259 See the pkg-config man page for more details.
18260
18261 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18262 See \`config.log' for more details" "$LINENO" 5; }
18263 else
18264 XORG_CFLAGS=$pkg_cv_XORG_CFLAGS
18265 XORG_LIBS=$pkg_cv_XORG_LIBS
18266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18267 $as_echo "yes" >&6; }
18268
18269 fi
18270
18271 pkg_failed=no
18272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XEXT" >&5
18273 $as_echo_n "checking for XEXT... " >&6; }
18274
18275 if test -n "$XEXT_CFLAGS"; then
18276 pkg_cv_XEXT_CFLAGS="$XEXT_CFLAGS"
18277 elif test -n "$PKG_CONFIG"; then
18278 if test -n "$PKG_CONFIG" && \
18279 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xextproto >= 7.0.99.1\""; } >&5
18280 ($PKG_CONFIG --exists --print-errors "xextproto >= 7.0.99.1") 2>&5
18281 ac_status=$?
18282 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18283 test $ac_status = 0; }; then
18284 pkg_cv_XEXT_CFLAGS=`$PKG_CONFIG --cflags "xextproto >= 7.0.99.1" 2>/dev/null`
18285 test "x$?" != "x0" && pkg_failed=yes
18286 else
18287 pkg_failed=yes
18288 fi
18289 else
18290 pkg_failed=untried
18291 fi
18292 if test -n "$XEXT_LIBS"; then
18293 pkg_cv_XEXT_LIBS="$XEXT_LIBS"
18294 elif test -n "$PKG_CONFIG"; then
18295 if test -n "$PKG_CONFIG" && \
18296 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xextproto >= 7.0.99.1\""; } >&5
18297 ($PKG_CONFIG --exists --print-errors "xextproto >= 7.0.99.1") 2>&5
18298 ac_status=$?
18299 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18300 test $ac_status = 0; }; then
18301 pkg_cv_XEXT_LIBS=`$PKG_CONFIG --libs "xextproto >= 7.0.99.1" 2>/dev/null`
18302 test "x$?" != "x0" && pkg_failed=yes
18303 else
18304 pkg_failed=yes
18305 fi
18306 else
18307 pkg_failed=untried
18308 fi
18309
18310
18311
18312 if test $pkg_failed = yes; then
18313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18314 $as_echo "no" >&6; }
18315
18316 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18317 _pkg_short_errors_supported=yes
18318 else
18319 _pkg_short_errors_supported=no
18320 fi
18321 if test $_pkg_short_errors_supported = yes; then
18322 XEXT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xextproto >= 7.0.99.1" 2>&1`
18323 else
18324 XEXT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xextproto >= 7.0.99.1" 2>&1`
18325 fi
18326 # Put the nasty error message in config.log where it belongs
18327 echo "$XEXT_PKG_ERRORS" >&5
18328
18329 HAVE_XEXTPROTO_71="no"
18330 elif test $pkg_failed = untried; then
18331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18332 $as_echo "no" >&6; }
18333 HAVE_XEXTPROTO_71="no"
18334 else
18335 XEXT_CFLAGS=$pkg_cv_XEXT_CFLAGS
18336 XEXT_LIBS=$pkg_cv_XEXT_LIBS
18337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18338 $as_echo "yes" >&6; }
18339 HAVE_XEXTPROTO_71="yes";
18340 $as_echo "#define HAVE_XEXTPROTO_71 1" >>confdefs.h
18341
18342 fi
18343 if test "$HAVE_XEXTPROTO_71" = "yes" ; then
18344 HAVE_XEXTPROTO_71_TRUE=
18345 HAVE_XEXTPROTO_71_FALSE='#'
18346 else
18347 HAVE_XEXTPROTO_71_TRUE='#'
18348 HAVE_XEXTPROTO_71_FALSE=
18349 fi
18350
18351 sdkdir=`$PKG_CONFIG --variable=sdkdir xorg-server`
18352
18353 # Checks for libraries.
18354
18355 if test "$DRI" != no; then
18356 as_ac_File=`$as_echo "ac_cv_file_${sdkdir}/dri.h" | $as_tr_sh`
18357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${sdkdir}/dri.h" >&5
18358 $as_echo_n "checking for ${sdkdir}/dri.h... " >&6; }
18359 if eval \${$as_ac_File+:} false; then :
18360 $as_echo_n "(cached) " >&6
18361 else
18362 test "$cross_compiling" = yes &&
18363 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
18364 if test -r "${sdkdir}/dri.h"; then
18365 eval "$as_ac_File=yes"
18366 else
18367 eval "$as_ac_File=no"
18368 fi
18369 fi
18370 eval ac_res=\$$as_ac_File
18371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18372 $as_echo "$ac_res" >&6; }
18373 if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
18374 have_dri_h="yes"
18375 else
18376 have_dri_h="no"
18377 fi
18378
18379 as_ac_File=`$as_echo "ac_cv_file_${sdkdir}/sarea.h" | $as_tr_sh`
18380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${sdkdir}/sarea.h" >&5
18381 $as_echo_n "checking for ${sdkdir}/sarea.h... " >&6; }
18382 if eval \${$as_ac_File+:} false; then :
18383 $as_echo_n "(cached) " >&6
18384 else
18385 test "$cross_compiling" = yes &&
18386 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
18387 if test -r "${sdkdir}/sarea.h"; then
18388 eval "$as_ac_File=yes"
18389 else
18390 eval "$as_ac_File=no"
18391 fi
18392 fi
18393 eval ac_res=\$$as_ac_File
18394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18395 $as_echo "$ac_res" >&6; }
18396 if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
18397 have_sarea_h="yes"
18398 else
18399 have_sarea_h="no"
18400 fi
18401
18402 as_ac_File=`$as_echo "ac_cv_file_${sdkdir}/dristruct.h" | $as_tr_sh`
18403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${sdkdir}/dristruct.h" >&5
18404 $as_echo_n "checking for ${sdkdir}/dristruct.h... " >&6; }
18405 if eval \${$as_ac_File+:} false; then :
18406 $as_echo_n "(cached) " >&6
18407 else
18408 test "$cross_compiling" = yes &&
18409 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
18410 if test -r "${sdkdir}/dristruct.h"; then
18411 eval "$as_ac_File=yes"
18412 else
18413 eval "$as_ac_File=no"
18414 fi
18415 fi
18416 eval ac_res=\$$as_ac_File
18417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18418 $as_echo "$ac_res" >&6; }
18419 if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
18420 have_dristruct_h="yes"
18421 else
18422 have_dristruct_h="no"
18423 fi
18424
18425 as_ac_File=`$as_echo "ac_cv_file_${sdkdir}/damage.h" | $as_tr_sh`
18426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${sdkdir}/damage.h" >&5
18427 $as_echo_n "checking for ${sdkdir}/damage.h... " >&6; }
18428 if eval \${$as_ac_File+:} false; then :
18429 $as_echo_n "(cached) " >&6
18430 else
18431 test "$cross_compiling" = yes &&
18432 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
18433 if test -r "${sdkdir}/damage.h"; then
18434 eval "$as_ac_File=yes"
18435 else
18436 eval "$as_ac_File=no"
18437 fi
18438 fi
18439 eval ac_res=\$$as_ac_File
18440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18441 $as_echo "$ac_res" >&6; }
18442 if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
18443 have_damage_h="yes"
18444 else
18445 have_damage_h="no"
18446 fi
18447
18448 fi
18449
18450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include DRI support" >&5
18451 $as_echo_n "checking whether to include DRI support... " >&6; }
18452 if test x$DRI = xauto; then
18453 if test "$have_dri_h" = yes -a \
18454 "$have_sarea_h" = yes -a \
18455 "$have_dristruct_h" = yes; then
18456 DRI="yes"
18457 else
18458 DRI="no"
18459 fi
18460 fi
18461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DRI" >&5
18462 $as_echo "$DRI" >&6; }
18463
18464 if test x$DRI = xyes; then
18465 DRI_TRUE=
18466 DRI_FALSE='#'
18467 else
18468 DRI_TRUE='#'
18469 DRI_FALSE=
18470 fi
18471
18472 if test "$DRI" = yes; then
18473
18474 pkg_failed=no
18475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DRI" >&5
18476 $as_echo_n "checking for DRI... " >&6; }
18477
18478 if test -n "$DRI_CFLAGS"; then
18479 pkg_cv_DRI_CFLAGS="$DRI_CFLAGS"
18480 elif test -n "$PKG_CONFIG"; then
18481 if test -n "$PKG_CONFIG" && \
18482 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 2.2 xf86driproto\""; } >&5
18483 ($PKG_CONFIG --exists --print-errors "libdrm >= 2.2 xf86driproto") 2>&5
18484 ac_status=$?
18485 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18486 test $ac_status = 0; }; then
18487 pkg_cv_DRI_CFLAGS=`$PKG_CONFIG --cflags "libdrm >= 2.2 xf86driproto" 2>/dev/null`
18488 test "x$?" != "x0" && pkg_failed=yes
18489 else
18490 pkg_failed=yes
18491 fi
18492 else
18493 pkg_failed=untried
18494 fi
18495 if test -n "$DRI_LIBS"; then
18496 pkg_cv_DRI_LIBS="$DRI_LIBS"
18497 elif test -n "$PKG_CONFIG"; then
18498 if test -n "$PKG_CONFIG" && \
18499 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 2.2 xf86driproto\""; } >&5
18500 ($PKG_CONFIG --exists --print-errors "libdrm >= 2.2 xf86driproto") 2>&5
18501 ac_status=$?
18502 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18503 test $ac_status = 0; }; then
18504 pkg_cv_DRI_LIBS=`$PKG_CONFIG --libs "libdrm >= 2.2 xf86driproto" 2>/dev/null`
18505 test "x$?" != "x0" && pkg_failed=yes
18506 else
18507 pkg_failed=yes
18508 fi
18509 else
18510 pkg_failed=untried
18511 fi
18512
18513
18514
18515 if test $pkg_failed = yes; then
18516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18517 $as_echo "no" >&6; }
18518
18519 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18520 _pkg_short_errors_supported=yes
18521 else
18522 _pkg_short_errors_supported=no
18523 fi
18524 if test $_pkg_short_errors_supported = yes; then
18525 DRI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdrm >= 2.2 xf86driproto" 2>&1`
18526 else
18527 DRI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdrm >= 2.2 xf86driproto" 2>&1`
18528 fi
18529 # Put the nasty error message in config.log where it belongs
18530 echo "$DRI_PKG_ERRORS" >&5
18531
18532 as_fn_error $? "Package requirements (libdrm >= 2.2 xf86driproto) were not met:
18533
18534 $DRI_PKG_ERRORS
18535
18536 Consider adjusting the PKG_CONFIG_PATH environment variable if you
18537 installed software in a non-standard prefix.
18538
18539 Alternatively, you may set the environment variables DRI_CFLAGS
18540 and DRI_LIBS to avoid the need to call pkg-config.
18541 See the pkg-config man page for more details." "$LINENO" 5
18542 elif test $pkg_failed = untried; then
18543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18544 $as_echo "no" >&6; }
18545 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18546 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18547 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
18548 is in your PATH or set the PKG_CONFIG environment variable to the full
18549 path to pkg-config.
18550
18551 Alternatively, you may set the environment variables DRI_CFLAGS
18552 and DRI_LIBS to avoid the need to call pkg-config.
18553 See the pkg-config man page for more details.
18554
18555 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18556 See \`config.log' for more details" "$LINENO" 5; }
18557 else
18558 DRI_CFLAGS=$pkg_cv_DRI_CFLAGS
18559 DRI_LIBS=$pkg_cv_DRI_LIBS
18560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18561 $as_echo "yes" >&6; }
18562
18563 fi
18564
18565 $as_echo "#define XF86DRI 1" >>confdefs.h
18566
18567
18568 $as_echo "#define XF86DRI_DEVEL 1" >>confdefs.h
18569
18570 fi
18571
18572 # Note that this is sort of inverted from drivers/ati/Imakefile in
18573 # the monolith. We test for foo, not for !foo (i.e. ATMISC_CPIO, not
18574 # ATIMISC_AVOID_CPIO), but the defines are negative. So beware. Oh yeah,
18575 # TV_OUT is the special case where it's a positive define, not AVOID_TV_OUT.
18576
18577 # AVOID_CPIO: Only x86, amd64, and alpha are cool with CPIO. It needs a
18578 # little-endian, undirected PIO space of at least 64kB.
18579 # AVOID_DGA: ???
18580 # ATI_TV_OUT: This only works on x86.
18581
18582 ATIMISC_CPIO=no
18583 ATIMISC_DGA=yes
18584 ATIMISC_TV_OUT=no
18585
18586 case $host_cpu in
18587 i*86)
18588 ATIMISC_TV_OUT=yes
18589 ATIMISC_CPIO=yes
18590 ;;
18591 x86_64|amd64|alpha|ia64)
18592 ATIMISC_CPIO=yes
18593 ;;
18594 sparc)
18595 ATIMISC_DGA=no
18596 ;;
18597 *)
18598 ;;
18599 esac
18600
18601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include PIO support" >&5
18602 $as_echo_n "checking whether to include PIO support... " >&6; }
18603 if test "x$ATIMISC_CPIO" = xyes; then
18604 ATIMISC_CPIO_TRUE=
18605 ATIMISC_CPIO_FALSE='#'
18606 else
18607 ATIMISC_CPIO_TRUE='#'
18608 ATIMISC_CPIO_FALSE=
18609 fi
18610
18611 if test "x$ATIMISC_CPIO" = xyes; then
18612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, PIO" >&5
18613 $as_echo "yes, PIO" >&6; }
18614 else
18615
18616 $as_echo "#define AVOID_CPIO 1" >>confdefs.h
18617
18618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, MMIO" >&5
18619 $as_echo "no, MMIO" >&6; }
18620 fi
18621
18622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include DGA support" >&5
18623 $as_echo_n "checking whether to include DGA support... " >&6; }
18624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ATIMISC_DGA" >&5
18625 $as_echo "$ATIMISC_DGA" >&6; }
18626 if test "x$ATIMISC_DGA" = xyes; then
18627 ATIMISC_DGA_TRUE=
18628 ATIMISC_DGA_FALSE='#'
18629 else
18630 ATIMISC_DGA_TRUE='#'
18631 ATIMISC_DGA_FALSE=
18632 fi
18633
18634 if ! test "x$ATIMISC_DGA" = xyes; then
18635
18636 $as_echo "#define AVOID_DGA 1" >>confdefs.h
18637
18638 fi
18639
18640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include TV Out support" >&5
18641 $as_echo_n "checking whether to include TV Out support... " >&6; }
18642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ATIMISC_TV_OUT" >&5
18643 $as_echo "$ATIMISC_TV_OUT" >&6; }
18644 if test "x$ATIMISC_TV_OUT" = xyes; then
18645 ATIMISC_TV_OUT_TRUE=
18646 ATIMISC_TV_OUT_FALSE='#'
18647 else
18648 ATIMISC_TV_OUT_TRUE='#'
18649 ATIMISC_TV_OUT_FALSE=
18650 fi
18651
18652 if test "x$ATIMISC_TV_OUT" = xyes; then
18653
18654 $as_echo "#define TV_OUT 1" >>confdefs.h
18655
18656 fi
18657
18658 # Properly handle EXA.
18659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable EXA support" >&5
18660 $as_echo_n "checking whether to enable EXA support... " >&6; }
18661 if test "x$EXA" = xyes; then
18662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18663 $as_echo "yes" >&6; }
18664
18665 SAVE_CPPFLAGS="$CPPFLAGS"
18666 CPPFLAGS="$CPPFLAGS $XORG_CFLAGS"
18667 ac_fn_c_check_header_mongrel "$LINENO" "exa.h" "ac_cv_header_exa_h" "$ac_includes_default"
18668 if test "x$ac_cv_header_exa_h" = xyes; then :
18669 have_exa_h="yes"
18670 else
18671 have_exa_h="no"
18672 fi
18673
18674
18675 CPPFLAGS="$SAVE_CPPFLAGS"
18676 else
18677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18678 $as_echo "no" >&6; }
18679 fi
18680
18681 SAVE_CPPFLAGS="$CPPFLAGS"
18682 CPPFLAGS="$CPPFLAGS $XORG_CFLAGS"
18683 if test "x$have_exa_h" = xyes; then
18684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether EXA version is at least 2.0.0" >&5
18685 $as_echo_n "checking whether EXA version is at least 2.0.0... " >&6; }
18686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18687 /* end confdefs.h. */
18688
18689 #include "exa.h"
18690 #if EXA_VERSION_MAJOR < 2
18691 #error OLD EXA!
18692 #endif
18693
18694 int
18695 main ()
18696 {
18697
18698 ;
18699 return 0;
18700 }
18701 _ACEOF
18702 if ac_fn_c_try_cpp "$LINENO"; then :
18703 USE_EXA=yes
18704 else
18705 USE_EXA=no
18706 fi
18707 rm -f conftest.err conftest.i conftest.$ac_ext
18708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_EXA" >&5
18709 $as_echo "$USE_EXA" >&6; }
18710
18711 if test "x$USE_EXA" = xyes; then
18712
18713 $as_echo "#define USE_EXA 1" >>confdefs.h
18714
18715 fi
18716 fi
18717
18718 # Check whether --enable-xaa was given.
18719 if test "${enable_xaa+set}" = set; then :
18720 enableval=$enable_xaa; XAA="$enableval"
18721 else
18722 XAA=auto
18723 fi
18724
18725 if test "x$XAA" != xno; then
18726 save_CFLAGS=$CFLAGS
18727 save_CPPFLAGS=$CPPFLAGS
18728 CFLAGS=$XORG_CFLAGS
18729 CPPFLAGS="$XORG_CFLAGS"
18730 for ac_header in xaa.h
18731 do :
18732 ac_fn_c_check_header_mongrel "$LINENO" "xaa.h" "ac_cv_header_xaa_h" "$ac_includes_default"
18733 if test "x$ac_cv_header_xaa_h" = xyes; then :
18734 cat >>confdefs.h <<_ACEOF
18735 #define HAVE_XAA_H 1
18736 _ACEOF
18737 XAA=yes
18738 else
18739 XAA=no
18740 fi
18741
18742 done
18743
18744 CFLAGS=$save_CFLAGS
18745 CPPFLAGS=$save_CPPFLAGS
18746 fi
18747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include XAA support" >&5
18748 $as_echo_n "checking whether to include XAA support... " >&6; }
18749 if test "x$XAA" = xyes; then
18750 XAA_TRUE=
18751 XAA_FALSE='#'
18752 else
18753 XAA_TRUE='#'
18754 XAA_FALSE=
18755 fi
18756
18757 if test "x$XAA" = xyes; then
18758
18759 $as_echo "#define USE_XAA test \"x\$XAA\" = xyes" >>confdefs.h
18760
18761 fi
18762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XAA" >&5
18763 $as_echo "$XAA" >&6; }
18764
18765 ac_fn_c_check_decl "$LINENO" "XSERVER_LIBPCIACCESS" "ac_cv_have_decl_XSERVER_LIBPCIACCESS" "#include \"xorg-server.h\"
18766 "
18767 if test "x$ac_cv_have_decl_XSERVER_LIBPCIACCESS" = xyes; then :
18768 XSERVER_LIBPCIACCESS=yes
18769 else
18770 XSERVER_LIBPCIACCESS=no
18771 fi
18772
18773
18774 CPPFLAGS="$SAVE_CPPFLAGS"
18775
18776 if test "x$USE_EXA" = xyes; then
18777 USE_EXA_TRUE=
18778 USE_EXA_FALSE='#'
18779 else
18780 USE_EXA_TRUE='#'
18781 USE_EXA_FALSE=
18782 fi
18783
18784
18785 if test "x$XSERVER_LIBPCIACCESS" = xyes; then
18786
18787 pkg_failed=no
18788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCIACCESS" >&5
18789 $as_echo_n "checking for PCIACCESS... " >&6; }
18790
18791 if test -n "$PCIACCESS_CFLAGS"; then
18792 pkg_cv_PCIACCESS_CFLAGS="$PCIACCESS_CFLAGS"
18793 elif test -n "$PKG_CONFIG"; then
18794 if test -n "$PKG_CONFIG" && \
18795 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.12.901\""; } >&5
18796 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.12.901") 2>&5
18797 ac_status=$?
18798 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18799 test $ac_status = 0; }; then
18800 pkg_cv_PCIACCESS_CFLAGS=`$PKG_CONFIG --cflags "pciaccess >= 0.12.901" 2>/dev/null`
18801 test "x$?" != "x0" && pkg_failed=yes
18802 else
18803 pkg_failed=yes
18804 fi
18805 else
18806 pkg_failed=untried
18807 fi
18808 if test -n "$PCIACCESS_LIBS"; then
18809 pkg_cv_PCIACCESS_LIBS="$PCIACCESS_LIBS"
18810 elif test -n "$PKG_CONFIG"; then
18811 if test -n "$PKG_CONFIG" && \
18812 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.12.901\""; } >&5
18813 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.12.901") 2>&5
18814 ac_status=$?
18815 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18816 test $ac_status = 0; }; then
18817 pkg_cv_PCIACCESS_LIBS=`$PKG_CONFIG --libs "pciaccess >= 0.12.901" 2>/dev/null`
18818 test "x$?" != "x0" && pkg_failed=yes
18819 else
18820 pkg_failed=yes
18821 fi
18822 else
18823 pkg_failed=untried
18824 fi
18825
18826
18827
18828 if test $pkg_failed = yes; then
18829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18830 $as_echo "no" >&6; }
18831
18832 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18833 _pkg_short_errors_supported=yes
18834 else
18835 _pkg_short_errors_supported=no
18836 fi
18837 if test $_pkg_short_errors_supported = yes; then
18838 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "pciaccess >= 0.12.901" 2>&1`
18839 else
18840 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "pciaccess >= 0.12.901" 2>&1`
18841 fi
18842 # Put the nasty error message in config.log where it belongs
18843 echo "$PCIACCESS_PKG_ERRORS" >&5
18844
18845 as_fn_error $? "Package requirements (pciaccess >= 0.12.901) were not met:
18846
18847 $PCIACCESS_PKG_ERRORS
18848
18849 Consider adjusting the PKG_CONFIG_PATH environment variable if you
18850 installed software in a non-standard prefix.
18851
18852 Alternatively, you may set the environment variables PCIACCESS_CFLAGS
18853 and PCIACCESS_LIBS to avoid the need to call pkg-config.
18854 See the pkg-config man page for more details." "$LINENO" 5
18855 elif test $pkg_failed = untried; then
18856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18857 $as_echo "no" >&6; }
18858 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18859 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18860 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
18861 is in your PATH or set the PKG_CONFIG environment variable to the full
18862 path to pkg-config.
18863
18864 Alternatively, you may set the environment variables PCIACCESS_CFLAGS
18865 and PCIACCESS_LIBS to avoid the need to call pkg-config.
18866 See the pkg-config man page for more details.
18867
18868 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18869 See \`config.log' for more details" "$LINENO" 5; }
18870 else
18871 PCIACCESS_CFLAGS=$pkg_cv_PCIACCESS_CFLAGS
18872 PCIACCESS_LIBS=$pkg_cv_PCIACCESS_LIBS
18873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18874 $as_echo "yes" >&6; }
18875
18876 fi
18877 XORG_CFLAGS="$XORG_CFLAGS $PCIACCESS_CFLAGS"
18878 fi
18879 if test "x$XSERVER_LIBPCIACCESS" = xyes; then
18880 XSERVER_LIBPCIACCESS_TRUE=
18881 XSERVER_LIBPCIACCESS_FALSE='#'
18882 else
18883 XSERVER_LIBPCIACCESS_TRUE='#'
18884 XSERVER_LIBPCIACCESS_FALSE=
18885 fi
18886
18887
18888
18889
18890 DRIVER_NAME=mach64
18891
18892
18893 { $as_echo "$as_me:${as_lineno-$LINENO}: Please change the Driver line in xorg.conf from \"ati\" to \"mach64\"
18894 or install the ati wrapper as well:
18895 git://anongit.freedesktop.org/git/xorg/driver/xf86-video-ati
18896 " >&5
18897 $as_echo "$as_me: Please change the Driver line in xorg.conf from \"ati\" to \"mach64\"
18898 or install the ati wrapper as well:
18899 git://anongit.freedesktop.org/git/xorg/driver/xf86-video-ati
18900 " >&6;}
18901
18902 ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile"
18903
18904 cat >confcache <<\_ACEOF
18905 # This file is a shell script that caches the results of configure
18906 # tests run on this system so they can be shared between configure
18907 # scripts and configure runs, see configure's option --config-cache.
18908 # It is not useful on other systems. If it contains results you don't
18909 # want to keep, you may remove or edit it.
18910 #
18911 # config.status only pays attention to the cache file if you give it
18912 # the --recheck option to rerun configure.
18913 #
18914 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18915 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18916 # following values.
18917
18918 _ACEOF
18919
18920 # The following way of writing the cache mishandles newlines in values,
18921 # but we know of no workaround that is simple, portable, and efficient.
18922 # So, we kill variables containing newlines.
18923 # Ultrix sh set writes to stderr and can't be redirected directly,
18924 # and sets the high bit in the cache file unless we assign to the vars.
18925 (
18926 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18927 eval ac_val=\$$ac_var
18928 case $ac_val in #(
18929 *${as_nl}*)
18930 case $ac_var in #(
18931 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18932 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18933 esac
18934 case $ac_var in #(
18935 _ | IFS | as_nl) ;; #(
18936 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18937 *) { eval $ac_var=; unset $ac_var;} ;;
18938 esac ;;
18939 esac
18940 done
18941
18942 (set) 2>&1 |
18943 case $as_nl`(ac_space=' '; set) 2>&1` in #(
18944 *${as_nl}ac_space=\ *)
18945 # `set' does not quote correctly, so add quotes: double-quote
18946 # substitution turns \\\\ into \\, and sed turns \\ into \.
18947 sed -n \
18948 "s/'/'\\\\''/g;
18949 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18950 ;; #(
18951 *)
18952 # `set' quotes correctly as required by POSIX, so do not add quotes.
18953 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18954 ;;
18955 esac |
18956 sort
18957 ) |
18958 sed '
18959 /^ac_cv_env_/b end
18960 t clear
18961 :clear
18962 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18963 t end
18964 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18965 :end' >>confcache
18966 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18967 if test -w "$cache_file"; then
18968 if test "x$cache_file" != "x/dev/null"; then
18969 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18970 $as_echo "$as_me: updating cache $cache_file" >&6;}
18971 if test ! -f "$cache_file" || test -h "$cache_file"; then
18972 cat confcache >"$cache_file"
18973 else
18974 case $cache_file in #(
18975 */* | ?:*)
18976 mv -f confcache "$cache_file"$$ &&
18977 mv -f "$cache_file"$$ "$cache_file" ;; #(
18978 *)
18979 mv -f confcache "$cache_file" ;;
18980 esac
18981 fi
18982 fi
18983 else
18984 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18985 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18986 fi
18987 fi
18988 rm -f confcache
18989
18990 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18991 # Let make expand exec_prefix.
18992 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18993
18994 DEFS=-DHAVE_CONFIG_H
18995
18996 ac_libobjs=
18997 ac_ltlibobjs=
18998 U=
18999 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19000 # 1. Remove the extension, and $U if already installed.
19001 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19002 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
19003 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
19004 # will be set to the directory where LIBOBJS objects are built.
19005 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19006 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
19007 done
19008 LIBOBJS=$ac_libobjs
19009
19010 LTLIBOBJS=$ac_ltlibobjs
19011
19012
19013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
19014 $as_echo_n "checking that generated files are newer than configure... " >&6; }
19015 if test -n "$am_sleep_pid"; then
19016 # Hide warnings about reused PIDs.
19017 wait $am_sleep_pid 2>/dev/null
19018 fi
19019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
19020 $as_echo "done" >&6; }
19021 if test -n "$EXEEXT"; then
19022 am__EXEEXT_TRUE=
19023 am__EXEEXT_FALSE='#'
19024 else
19025 am__EXEEXT_TRUE='#'
19026 am__EXEEXT_FALSE=
19027 fi
19028
19029 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
19030 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
19031 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19032 fi
19033 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19034 as_fn_error $? "conditional \"AMDEP\" was never defined.
19035 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19036 fi
19037 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19038 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
19039 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19040 fi
19041 if test -z "${HAVE_XEXTPROTO_71_TRUE}" && test -z "${HAVE_XEXTPROTO_71_FALSE}"; then
19042 as_fn_error $? "conditional \"HAVE_XEXTPROTO_71\" was never defined.
19043 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19044 fi
19045 if test -z "${DRI_TRUE}" && test -z "${DRI_FALSE}"; then
19046 as_fn_error $? "conditional \"DRI\" was never defined.
19047 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19048 fi
19049 if test -z "${ATIMISC_CPIO_TRUE}" && test -z "${ATIMISC_CPIO_FALSE}"; then
19050 as_fn_error $? "conditional \"ATIMISC_CPIO\" was never defined.
19051 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19052 fi
19053 if test -z "${ATIMISC_DGA_TRUE}" && test -z "${ATIMISC_DGA_FALSE}"; then
19054 as_fn_error $? "conditional \"ATIMISC_DGA\" was never defined.
19055 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19056 fi
19057 if test -z "${ATIMISC_TV_OUT_TRUE}" && test -z "${ATIMISC_TV_OUT_FALSE}"; then
19058 as_fn_error $? "conditional \"ATIMISC_TV_OUT\" was never defined.
19059 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19060 fi
19061 if test -z "${XAA_TRUE}" && test -z "${XAA_FALSE}"; then
19062 as_fn_error $? "conditional \"XAA\" was never defined.
19063 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19064 fi
19065 if test -z "${USE_EXA_TRUE}" && test -z "${USE_EXA_FALSE}"; then
19066 as_fn_error $? "conditional \"USE_EXA\" was never defined.
19067 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19068 fi
19069 if test -z "${XSERVER_LIBPCIACCESS_TRUE}" && test -z "${XSERVER_LIBPCIACCESS_FALSE}"; then
19070 as_fn_error $? "conditional \"XSERVER_LIBPCIACCESS\" was never defined.
19071 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19072 fi
19073
19074 : "${CONFIG_STATUS=./config.status}"
19075 ac_write_fail=0
19076 ac_clean_files_save=$ac_clean_files
19077 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19078 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19079 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
19080 as_write_fail=0
19081 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
19082 #! $SHELL
19083 # Generated by $as_me.
19084 # Run this file to recreate the current configuration.
19085 # Compiler output produced by configure, useful for debugging
19086 # configure, is in config.log if it exists.
19087
19088 debug=false
19089 ac_cs_recheck=false
19090 ac_cs_silent=false
19091
19092 SHELL=\${CONFIG_SHELL-$SHELL}
19093 export SHELL
19094 _ASEOF
19095 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
19096 ## -------------------- ##
19097 ## M4sh Initialization. ##
19098 ## -------------------- ##
19099
19100 # Be more Bourne compatible
19101 DUALCASE=1; export DUALCASE # for MKS sh
19102 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
19103 emulate sh
19104 NULLCMD=:
19105 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19106 # is contrary to our usage. Disable this feature.
19107 alias -g '${1+"$@"}'='"$@"'
19108 setopt NO_GLOB_SUBST
19109 else
19110 case `(set -o) 2>/dev/null` in #(
19111 *posix*) :
19112 set -o posix ;; #(
19113 *) :
19114 ;;
19115 esac
19116 fi
19117
19118
19119 as_nl='
19120 '
19121 export as_nl
19122 # Printing a long string crashes Solaris 7 /usr/bin/printf.
19123 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
19124 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
19125 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
19126 # Prefer a ksh shell builtin over an external printf program on Solaris,
19127 # but without wasting forks for bash or zsh.
19128 if test -z "$BASH_VERSION$ZSH_VERSION" \
19129 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
19130 as_echo='print -r --'
19131 as_echo_n='print -rn --'
19132 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
19133 as_echo='printf %s\n'
19134 as_echo_n='printf %s'
19135 else
19136 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
19137 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
19138 as_echo_n='/usr/ucb/echo -n'
19139 else
19140 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
19141 as_echo_n_body='eval
19142 arg=$1;
19143 case $arg in #(
19144 *"$as_nl"*)
19145 expr "X$arg" : "X\\(.*\\)$as_nl";
19146 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
19147 esac;
19148 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
19149 '
19150 export as_echo_n_body
19151 as_echo_n='sh -c $as_echo_n_body as_echo'
19152 fi
19153 export as_echo_body
19154 as_echo='sh -c $as_echo_body as_echo'
19155 fi
19156
19157 # The user is always right.
19158 if test "${PATH_SEPARATOR+set}" != set; then
19159 PATH_SEPARATOR=:
19160 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19161 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19162 PATH_SEPARATOR=';'
19163 }
19164 fi
19165
19166
19167 # IFS
19168 # We need space, tab and new line, in precisely that order. Quoting is
19169 # there to prevent editors from complaining about space-tab.
19170 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
19171 # splitting by setting IFS to empty value.)
19172 IFS=" "" $as_nl"
19173
19174 # Find who we are. Look in the path if we contain no directory separator.
19175 as_myself=
19176 case $0 in #((
19177 *[\\/]* ) as_myself=$0 ;;
19178 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19179 for as_dir in $PATH
19180 do
19181 IFS=$as_save_IFS
19182 test -z "$as_dir" && as_dir=.
19183 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19184 done
19185 IFS=$as_save_IFS
19186
19187 ;;
19188 esac
19189 # We did not find ourselves, most probably we were run as `sh COMMAND'
19190 # in which case we are not to be found in the path.
19191 if test "x$as_myself" = x; then
19192 as_myself=$0
19193 fi
19194 if test ! -f "$as_myself"; then
19195 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19196 exit 1
19197 fi
19198
19199 # Unset variables that we do not need and which cause bugs (e.g. in
19200 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
19201 # suppresses any "Segmentation fault" message there. '((' could
19202 # trigger a bug in pdksh 5.2.14.
19203 for as_var in BASH_ENV ENV MAIL MAILPATH
19204 do eval test x\${$as_var+set} = xset \
19205 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
19206 done
19207 PS1='$ '
19208 PS2='> '
19209 PS4='+ '
19210
19211 # NLS nuisances.
19212 LC_ALL=C
19213 export LC_ALL
19214 LANGUAGE=C
19215 export LANGUAGE
19216
19217 # CDPATH.
19218 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19219
19220
19221 # as_fn_error STATUS ERROR [LINENO LOG_FD]
19222 # ----------------------------------------
19223 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19224 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19225 # script with STATUS, using 1 if that was 0.
19226 as_fn_error ()
19227 {
19228 as_status=$1; test $as_status -eq 0 && as_status=1
19229 if test "$4"; then
19230 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
19231 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
19232 fi
19233 $as_echo "$as_me: error: $2" >&2
19234 as_fn_exit $as_status
19235 } # as_fn_error
19236
19237
19238 # as_fn_set_status STATUS
19239 # -----------------------
19240 # Set $? to STATUS, without forking.
19241 as_fn_set_status ()
19242 {
19243 return $1
19244 } # as_fn_set_status
19245
19246 # as_fn_exit STATUS
19247 # -----------------
19248 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19249 as_fn_exit ()
19250 {
19251 set +e
19252 as_fn_set_status $1
19253 exit $1
19254 } # as_fn_exit
19255
19256 # as_fn_unset VAR
19257 # ---------------
19258 # Portably unset VAR.
19259 as_fn_unset ()
19260 {
19261 { eval $1=; unset $1;}
19262 }
19263 as_unset=as_fn_unset
19264 # as_fn_append VAR VALUE
19265 # ----------------------
19266 # Append the text in VALUE to the end of the definition contained in VAR. Take
19267 # advantage of any shell optimizations that allow amortized linear growth over
19268 # repeated appends, instead of the typical quadratic growth present in naive
19269 # implementations.
19270 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
19271 eval 'as_fn_append ()
19272 {
19273 eval $1+=\$2
19274 }'
19275 else
19276 as_fn_append ()
19277 {
19278 eval $1=\$$1\$2
19279 }
19280 fi # as_fn_append
19281
19282 # as_fn_arith ARG...
19283 # ------------------
19284 # Perform arithmetic evaluation on the ARGs, and store the result in the
19285 # global $as_val. Take advantage of shells that can avoid forks. The arguments
19286 # must be portable across $(()) and expr.
19287 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
19288 eval 'as_fn_arith ()
19289 {
19290 as_val=$(( $* ))
19291 }'
19292 else
19293 as_fn_arith ()
19294 {
19295 as_val=`expr "$@" || test $? -eq 1`
19296 }
19297 fi # as_fn_arith
19298
19299
19300 if expr a : '\(a\)' >/dev/null 2>&1 &&
19301 test "X`expr 00001 : '.*\(...\)'`" = X001; then
19302 as_expr=expr
19303 else
19304 as_expr=false
19305 fi
19306
19307 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19308 as_basename=basename
19309 else
19310 as_basename=false
19311 fi
19312
19313 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19314 as_dirname=dirname
19315 else
19316 as_dirname=false
19317 fi
19318
19319 as_me=`$as_basename -- "$0" ||
19320 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19321 X"$0" : 'X\(//\)$' \| \
19322 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19323 $as_echo X/"$0" |
19324 sed '/^.*\/\([^/][^/]*\)\/*$/{
19325 s//\1/
19326 q
19327 }
19328 /^X\/\(\/\/\)$/{
19329 s//\1/
19330 q
19331 }
19332 /^X\/\(\/\).*/{
19333 s//\1/
19334 q
19335 }
19336 s/.*/./; q'`
19337
19338 # Avoid depending upon Character Ranges.
19339 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19340 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19341 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19342 as_cr_digits='0123456789'
19343 as_cr_alnum=$as_cr_Letters$as_cr_digits
19344
19345 ECHO_C= ECHO_N= ECHO_T=
19346 case `echo -n x` in #(((((
19347 -n*)
19348 case `echo 'xy\c'` in
19349 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
19350 xy) ECHO_C='\c';;
19351 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
19352 ECHO_T=' ';;
19353 esac;;
19354 *)
19355 ECHO_N='-n';;
19356 esac
19357
19358 rm -f conf$$ conf$$.exe conf$$.file
19359 if test -d conf$$.dir; then
19360 rm -f conf$$.dir/conf$$.file
19361 else
19362 rm -f conf$$.dir
19363 mkdir conf$$.dir 2>/dev/null
19364 fi
19365 if (echo >conf$$.file) 2>/dev/null; then
19366 if ln -s conf$$.file conf$$ 2>/dev/null; then
19367 as_ln_s='ln -s'
19368 # ... but there are two gotchas:
19369 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19370 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19371 # In both cases, we have to default to `cp -pR'.
19372 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19373 as_ln_s='cp -pR'
19374 elif ln conf$$.file conf$$ 2>/dev/null; then
19375 as_ln_s=ln
19376 else
19377 as_ln_s='cp -pR'
19378 fi
19379 else
19380 as_ln_s='cp -pR'
19381 fi
19382 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19383 rmdir conf$$.dir 2>/dev/null
19384
19385
19386 # as_fn_mkdir_p
19387 # -------------
19388 # Create "$as_dir" as a directory, including parents if necessary.
19389 as_fn_mkdir_p ()
19390 {
19391
19392 case $as_dir in #(
19393 -*) as_dir=./$as_dir;;
19394 esac
19395 test -d "$as_dir" || eval $as_mkdir_p || {
19396 as_dirs=
19397 while :; do
19398 case $as_dir in #(
19399 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19400 *) as_qdir=$as_dir;;
19401 esac
19402 as_dirs="'$as_qdir' $as_dirs"
19403 as_dir=`$as_dirname -- "$as_dir" ||
19404 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19405 X"$as_dir" : 'X\(//\)[^/]' \| \
19406 X"$as_dir" : 'X\(//\)$' \| \
19407 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19408 $as_echo X"$as_dir" |
19409 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19410 s//\1/
19411 q
19412 }
19413 /^X\(\/\/\)[^/].*/{
19414 s//\1/
19415 q
19416 }
19417 /^X\(\/\/\)$/{
19418 s//\1/
19419 q
19420 }
19421 /^X\(\/\).*/{
19422 s//\1/
19423 q
19424 }
19425 s/.*/./; q'`
19426 test -d "$as_dir" && break
19427 done
19428 test -z "$as_dirs" || eval "mkdir $as_dirs"
19429 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
19430
19431
19432 } # as_fn_mkdir_p
19433 if mkdir -p . 2>/dev/null; then
19434 as_mkdir_p='mkdir -p "$as_dir"'
19435 else
19436 test -d ./-p && rmdir ./-p
19437 as_mkdir_p=false
19438 fi
19439
19440
19441 # as_fn_executable_p FILE
19442 # -----------------------
19443 # Test if FILE is an executable regular file.
19444 as_fn_executable_p ()
19445 {
19446 test -f "$1" && test -x "$1"
19447 } # as_fn_executable_p
19448 as_test_x='test -x'
19449 as_executable_p=as_fn_executable_p
19450
19451 # Sed expression to map a string onto a valid CPP name.
19452 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19453
19454 # Sed expression to map a string onto a valid variable name.
19455 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19456
19457
19458 exec 6>&1
19459 ## ----------------------------------- ##
19460 ## Main body of $CONFIG_STATUS script. ##
19461 ## ----------------------------------- ##
19462 _ASEOF
19463 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
19464
19465 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19466 # Save the log message, to keep $0 and so on meaningful, and to
19467 # report actual input values of CONFIG_FILES etc. instead of their
19468 # values after options handling.
19469 ac_log="
19470 This file was extended by xf86-video-mach64 $as_me 6.9.5, which was
19471 generated by GNU Autoconf 2.69. Invocation command line was
19472
19473 CONFIG_FILES = $CONFIG_FILES
19474 CONFIG_HEADERS = $CONFIG_HEADERS
19475 CONFIG_LINKS = $CONFIG_LINKS
19476 CONFIG_COMMANDS = $CONFIG_COMMANDS
19477 $ $0 $@
19478
19479 on `(hostname || uname -n) 2>/dev/null | sed 1q`
19480 "
19481
19482 _ACEOF
19483
19484 case $ac_config_files in *"
19485 "*) set x $ac_config_files; shift; ac_config_files=$*;;
19486 esac
19487
19488 case $ac_config_headers in *"
19489 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
19490 esac
19491
19492
19493 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19494 # Files that config.status was made for.
19495 config_files="$ac_config_files"
19496 config_headers="$ac_config_headers"
19497 config_commands="$ac_config_commands"
19498
19499 _ACEOF
19500
19501 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19502 ac_cs_usage="\
19503 \`$as_me' instantiates files and other configuration actions
19504 from templates according to the current configuration. Unless the files
19505 and actions are specified as TAGs, all are instantiated by default.
19506
19507 Usage: $0 [OPTION]... [TAG]...
19508
19509 -h, --help print this help, then exit
19510 -V, --version print version number and configuration settings, then exit
19511 --config print configuration, then exit
19512 -q, --quiet, --silent
19513 do not print progress messages
19514 -d, --debug don't remove temporary files
19515 --recheck update $as_me by reconfiguring in the same conditions
19516 --file=FILE[:TEMPLATE]
19517 instantiate the configuration file FILE
19518 --header=FILE[:TEMPLATE]
19519 instantiate the configuration header FILE
19520
19521 Configuration files:
19522 $config_files
19523
19524 Configuration headers:
19525 $config_headers
19526
19527 Configuration commands:
19528 $config_commands
19529
19530 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
19531
19532 _ACEOF
19533 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19534 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
19535 ac_cs_version="\\
19536 xf86-video-mach64 config.status 6.9.5
19537 configured by $0, generated by GNU Autoconf 2.69,
19538 with options \\"\$ac_cs_config\\"
19539
19540 Copyright (C) 2012 Free Software Foundation, Inc.
19541 This config.status script is free software; the Free Software Foundation
19542 gives unlimited permission to copy, distribute and modify it."
19543
19544 ac_pwd='$ac_pwd'
19545 srcdir='$srcdir'
19546 INSTALL='$INSTALL'
19547 MKDIR_P='$MKDIR_P'
19548 AWK='$AWK'
19549 test -n "\$AWK" || AWK=awk
19550 _ACEOF
19551
19552 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19553 # The default lists apply if the user does not specify any file.
19554 ac_need_defaults=:
19555 while test $# != 0
19556 do
19557 case $1 in
19558 --*=?*)
19559 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19560 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19561 ac_shift=:
19562 ;;
19563 --*=)
19564 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19565 ac_optarg=
19566 ac_shift=:
19567 ;;
19568 *)
19569 ac_option=$1
19570 ac_optarg=$2
19571 ac_shift=shift
19572 ;;
19573 esac
19574
19575 case $ac_option in
19576 # Handling of the options.
19577 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19578 ac_cs_recheck=: ;;
19579 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19580 $as_echo "$ac_cs_version"; exit ;;
19581 --config | --confi | --conf | --con | --co | --c )
19582 $as_echo "$ac_cs_config"; exit ;;
19583 --debug | --debu | --deb | --de | --d | -d )
19584 debug=: ;;
19585 --file | --fil | --fi | --f )
19586 $ac_shift
19587 case $ac_optarg in
19588 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19589 '') as_fn_error $? "missing file argument" ;;
19590 esac
19591 as_fn_append CONFIG_FILES " '$ac_optarg'"
19592 ac_need_defaults=false;;
19593 --header | --heade | --head | --hea )
19594 $ac_shift
19595 case $ac_optarg in
19596 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19597 esac
19598 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
19599 ac_need_defaults=false;;
19600 --he | --h)
19601 # Conflict between --help and --header
19602 as_fn_error $? "ambiguous option: \`$1'
19603 Try \`$0 --help' for more information.";;
19604 --help | --hel | -h )
19605 $as_echo "$ac_cs_usage"; exit ;;
19606 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19607 | -silent | --silent | --silen | --sile | --sil | --si | --s)
19608 ac_cs_silent=: ;;
19609
19610 # This is an error.
19611 -*) as_fn_error $? "unrecognized option: \`$1'
19612 Try \`$0 --help' for more information." ;;
19613
19614 *) as_fn_append ac_config_targets " $1"
19615 ac_need_defaults=false ;;
19616
19617 esac
19618 shift
19619 done
19620
19621 ac_configure_extra_args=
19622
19623 if $ac_cs_silent; then
19624 exec 6>/dev/null
19625 ac_configure_extra_args="$ac_configure_extra_args --silent"
19626 fi
19627
19628 _ACEOF
19629 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19630 if \$ac_cs_recheck; then
19631 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19632 shift
19633 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19634 CONFIG_SHELL='$SHELL'
19635 export CONFIG_SHELL
19636 exec "\$@"
19637 fi
19638
19639 _ACEOF
19640 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19641 exec 5>>config.log
19642 {
19643 echo
19644 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19645 ## Running $as_me. ##
19646 _ASBOX
19647 $as_echo "$ac_log"
19648 } >&5
19649
19650 _ACEOF
19651 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19652 #
19653 # INIT-COMMANDS
19654 #
19655 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
19656
19657
19658 # The HP-UX ksh and POSIX shell print the target directory to stdout
19659 # if CDPATH is set.
19660 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19661
19662 sed_quote_subst='$sed_quote_subst'
19663 double_quote_subst='$double_quote_subst'
19664 delay_variable_subst='$delay_variable_subst'
19665 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
19666 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
19667 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
19668 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
19669 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
19670 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
19671 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
19672 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
19673 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
19674 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
19675 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
19676 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
19677 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
19678 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
19679 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
19680 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
19681 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
19682 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
19683 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
19684 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
19685 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
19686 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
19687 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
19688 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
19689 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
19690 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
19691 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
19692 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
19693 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
19694 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
19695 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
19696 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
19697 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
19698 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
19699 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
19700 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
19701 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
19702 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
19703 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
19704 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
19705 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
19706 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
19707 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
19708 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
19709 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
19710 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19711 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19712 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
19713 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
19714 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
19715 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
19716 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
19717 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
19718 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
19719 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
19720 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
19721 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"`'
19722 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
19723 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
19724 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
19725 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
19726 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
19727 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
19728 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
19729 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
19730 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
19731 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
19732 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
19733 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
19734 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
19735 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
19736 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
19737 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
19738 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
19739 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
19740 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19741 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
19742 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
19743 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
19744 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
19745 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
19746 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
19747 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19748 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
19749 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19750 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
19751 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19752 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
19753 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
19754 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
19755 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
19756 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
19757 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
19758 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
19759 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
19760 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
19761 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
19762 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
19763 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
19764 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
19765 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
19766 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
19767 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
19768 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
19769 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
19770 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
19771 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
19772 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
19773 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
19774 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
19775 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
19776 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
19777 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
19778 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
19779 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
19780 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
19781 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
19782 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19783 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19784 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
19785 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
19786 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
19787 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
19788 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
19789 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
19790 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
19791 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
19792 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
19793 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
19794 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
19795
19796 LTCC='$LTCC'
19797 LTCFLAGS='$LTCFLAGS'
19798 compiler='$compiler_DEFAULT'
19799
19800 # A function that is used when there is no print builtin or printf.
19801 func_fallback_echo ()
19802 {
19803 eval 'cat <<_LTECHO_EOF
19804 \$1
19805 _LTECHO_EOF'
19806 }
19807
19808 # Quote evaled strings.
19809 for var in SHELL \
19810 ECHO \
19811 PATH_SEPARATOR \
19812 SED \
19813 GREP \
19814 EGREP \
19815 FGREP \
19816 LD \
19817 NM \
19818 LN_S \
19819 lt_SP2NL \
19820 lt_NL2SP \
19821 reload_flag \
19822 OBJDUMP \
19823 deplibs_check_method \
19824 file_magic_cmd \
19825 file_magic_glob \
19826 want_nocaseglob \
19827 DLLTOOL \
19828 sharedlib_from_linklib_cmd \
19829 AR \
19830 AR_FLAGS \
19831 archiver_list_spec \
19832 STRIP \
19833 RANLIB \
19834 CC \
19835 CFLAGS \
19836 compiler \
19837 lt_cv_sys_global_symbol_pipe \
19838 lt_cv_sys_global_symbol_to_cdecl \
19839 lt_cv_sys_global_symbol_to_c_name_address \
19840 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
19841 nm_file_list_spec \
19842 lt_prog_compiler_no_builtin_flag \
19843 lt_prog_compiler_pic \
19844 lt_prog_compiler_wl \
19845 lt_prog_compiler_static \
19846 lt_cv_prog_compiler_c_o \
19847 need_locks \
19848 MANIFEST_TOOL \
19849 DSYMUTIL \
19850 NMEDIT \
19851 LIPO \
19852 OTOOL \
19853 OTOOL64 \
19854 shrext_cmds \
19855 export_dynamic_flag_spec \
19856 whole_archive_flag_spec \
19857 compiler_needs_object \
19858 with_gnu_ld \
19859 allow_undefined_flag \
19860 no_undefined_flag \
19861 hardcode_libdir_flag_spec \
19862 hardcode_libdir_separator \
19863 exclude_expsyms \
19864 include_expsyms \
19865 file_list_spec \
19866 variables_saved_for_relink \
19867 libname_spec \
19868 library_names_spec \
19869 soname_spec \
19870 install_override_mode \
19871 finish_eval \
19872 old_striplib \
19873 striplib; do
19874 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19875 *[\\\\\\\`\\"\\\$]*)
19876 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
19877 ;;
19878 *)
19879 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19880 ;;
19881 esac
19882 done
19883
19884 # Double-quote double-evaled strings.
19885 for var in reload_cmds \
19886 old_postinstall_cmds \
19887 old_postuninstall_cmds \
19888 old_archive_cmds \
19889 extract_expsyms_cmds \
19890 old_archive_from_new_cmds \
19891 old_archive_from_expsyms_cmds \
19892 archive_cmds \
19893 archive_expsym_cmds \
19894 module_cmds \
19895 module_expsym_cmds \
19896 export_symbols_cmds \
19897 prelink_cmds \
19898 postlink_cmds \
19899 postinstall_cmds \
19900 postuninstall_cmds \
19901 finish_cmds \
19902 sys_lib_search_path_spec \
19903 sys_lib_dlsearch_path_spec; do
19904 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19905 *[\\\\\\\`\\"\\\$]*)
19906 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
19907 ;;
19908 *)
19909 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19910 ;;
19911 esac
19912 done
19913
19914 ac_aux_dir='$ac_aux_dir'
19915 xsi_shell='$xsi_shell'
19916 lt_shell_append='$lt_shell_append'
19917
19918 # See if we are running on zsh, and set the options which allow our
19919 # commands through without removal of \ escapes INIT.
19920 if test -n "\${ZSH_VERSION+set}" ; then
19921 setopt NO_GLOB_SUBST
19922 fi
19923
19924
19925 PACKAGE='$PACKAGE'
19926 VERSION='$VERSION'
19927 TIMESTAMP='$TIMESTAMP'
19928 RM='$RM'
19929 ofile='$ofile'
19930
19931
19932
19933
19934 _ACEOF
19935
19936 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19937
19938 # Handling of arguments.
19939 for ac_config_target in $ac_config_targets
19940 do
19941 case $ac_config_target in
19942 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
19943 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
19944 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
19945 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19946 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
19947 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
19948
19949 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19950 esac
19951 done
19952
19953
19954 # If the user did not use the arguments to specify the items to instantiate,
19955 # then the envvar interface is used. Set only those that are not.
19956 # We use the long form for the default assignment because of an extremely
19957 # bizarre bug on SunOS 4.1.3.
19958 if $ac_need_defaults; then
19959 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19960 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19961 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19962 fi
19963
19964 # Have a temporary directory for convenience. Make it in the build tree
19965 # simply because there is no reason against having it here, and in addition,
19966 # creating and moving files from /tmp can sometimes cause problems.
19967 # Hook for its removal unless debugging.
19968 # Note that there is a small window in which the directory will not be cleaned:
19969 # after its creation but before its name has been assigned to `$tmp'.
19970 $debug ||
19971 {
19972 tmp= ac_tmp=
19973 trap 'exit_status=$?
19974 : "${ac_tmp:=$tmp}"
19975 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19976 ' 0
19977 trap 'as_fn_exit 1' 1 2 13 15
19978 }
19979 # Create a (secure) tmp directory for tmp files.
19980
19981 {
19982 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19983 test -d "$tmp"
19984 } ||
19985 {
19986 tmp=./conf$$-$RANDOM
19987 (umask 077 && mkdir "$tmp")
19988 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19989 ac_tmp=$tmp
19990
19991 # Set up the scripts for CONFIG_FILES section.
19992 # No need to generate them if there are no CONFIG_FILES.
19993 # This happens for instance with `./config.status config.h'.
19994 if test -n "$CONFIG_FILES"; then
19995
19996
19997 ac_cr=`echo X | tr X '\015'`
19998 # On cygwin, bash can eat \r inside `` if the user requested igncr.
19999 # But we know of no other shell where ac_cr would be empty at this
20000 # point, so we can use a bashism as a fallback.
20001 if test "x$ac_cr" = x; then
20002 eval ac_cr=\$\'\\r\'
20003 fi
20004 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20005 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20006 ac_cs_awk_cr='\\r'
20007 else
20008 ac_cs_awk_cr=$ac_cr
20009 fi
20010
20011 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
20012 _ACEOF
20013
20014
20015 {
20016 echo "cat >conf$$subs.awk <<_ACEOF" &&
20017 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20018 echo "_ACEOF"
20019 } >conf$$subs.sh ||
20020 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20021 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
20022 ac_delim='%!_!# '
20023 for ac_last_try in false false false false false :; do
20024 . ./conf$$subs.sh ||
20025 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20026
20027 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
20028 if test $ac_delim_n = $ac_delim_num; then
20029 break
20030 elif $ac_last_try; then
20031 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20032 else
20033 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20034 fi
20035 done
20036 rm -f conf$$subs.sh
20037
20038 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20039 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
20040 _ACEOF
20041 sed -n '
20042 h
20043 s/^/S["/; s/!.*/"]=/
20044 p
20045 g
20046 s/^[^!]*!//
20047 :repl
20048 t repl
20049 s/'"$ac_delim"'$//
20050 t delim
20051 :nl
20052 h
20053 s/\(.\{148\}\)..*/\1/
20054 t more1
20055 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
20056 p
20057 n
20058 b repl
20059 :more1
20060 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20061 p
20062 g
20063 s/.\{148\}//
20064 t nl
20065 :delim
20066 h
20067 s/\(.\{148\}\)..*/\1/
20068 t more2
20069 s/["\\]/\\&/g; s/^/"/; s/$/"/
20070 p
20071 b
20072 :more2
20073 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20074 p
20075 g
20076 s/.\{148\}//
20077 t delim
20078 ' <conf$$subs.awk | sed '
20079 /^[^""]/{
20080 N
20081 s/\n//
20082 }
20083 ' >>$CONFIG_STATUS || ac_write_fail=1
20084 rm -f conf$$subs.awk
20085 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20086 _ACAWK
20087 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
20088 for (key in S) S_is_set[key] = 1
20089 FS = ""
20090
20091 }
20092 {
20093 line = $ 0
20094 nfields = split(line, field, "@")
20095 substed = 0
20096 len = length(field[1])
20097 for (i = 2; i < nfields; i++) {
20098 key = field[i]
20099 keylen = length(key)
20100 if (S_is_set[key]) {
20101 value = S[key]
20102 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20103 len += length(value) + length(field[++i])
20104 substed = 1
20105 } else
20106 len += 1 + keylen
20107 }
20108
20109 print line
20110 }
20111
20112 _ACAWK
20113 _ACEOF
20114 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20115 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20116 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
20117 else
20118 cat
20119 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
20120 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
20121 _ACEOF
20122
20123 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
20124 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
20125 # trailing colons and then remove the whole line if VPATH becomes empty
20126 # (actually we leave an empty line to preserve line numbers).
20127 if test "x$srcdir" = x.; then
20128 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
20129 h
20130 s///
20131 s/^/:/
20132 s/[ ]*$/:/
20133 s/:\$(srcdir):/:/g
20134 s/:\${srcdir}:/:/g
20135 s/:@srcdir@:/:/g
20136 s/^:*//
20137 s/:*$//
20138 x
20139 s/\(=[ ]*\).*/\1/
20140 G
20141 s/\n//
20142 s/^[^=]*=[ ]*$//
20143 }'
20144 fi
20145
20146 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20147 fi # test -n "$CONFIG_FILES"
20148
20149 # Set up the scripts for CONFIG_HEADERS section.
20150 # No need to generate them if there are no CONFIG_HEADERS.
20151 # This happens for instance with `./config.status Makefile'.
20152 if test -n "$CONFIG_HEADERS"; then
20153 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
20154 BEGIN {
20155 _ACEOF
20156
20157 # Transform confdefs.h into an awk script `defines.awk', embedded as
20158 # here-document in config.status, that substitutes the proper values into
20159 # config.h.in to produce config.h.
20160
20161 # Create a delimiter string that does not exist in confdefs.h, to ease
20162 # handling of long lines.
20163 ac_delim='%!_!# '
20164 for ac_last_try in false false :; do
20165 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
20166 if test -z "$ac_tt"; then
20167 break
20168 elif $ac_last_try; then
20169 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
20170 else
20171 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20172 fi
20173 done
20174
20175 # For the awk script, D is an array of macro values keyed by name,
20176 # likewise P contains macro parameters if any. Preserve backslash
20177 # newline sequences.
20178
20179 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20180 sed -n '
20181 s/.\{148\}/&'"$ac_delim"'/g
20182 t rset
20183 :rset
20184 s/^[ ]*#[ ]*define[ ][ ]*/ /
20185 t def
20186 d
20187 :def
20188 s/\\$//
20189 t bsnl
20190 s/["\\]/\\&/g
20191 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20192 D["\1"]=" \3"/p
20193 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
20194 d
20195 :bsnl
20196 s/["\\]/\\&/g
20197 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20198 D["\1"]=" \3\\\\\\n"\\/p
20199 t cont
20200 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
20201 t cont
20202 d
20203 :cont
20204 n
20205 s/.\{148\}/&'"$ac_delim"'/g
20206 t clear
20207 :clear
20208 s/\\$//
20209 t bsnlc
20210 s/["\\]/\\&/g; s/^/"/; s/$/"/p
20211 d
20212 :bsnlc
20213 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
20214 b cont
20215 ' <confdefs.h | sed '
20216 s/'"$ac_delim"'/"\\\
20217 "/g' >>$CONFIG_STATUS || ac_write_fail=1
20218
20219 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20220 for (key in D) D_is_set[key] = 1
20221 FS = ""
20222 }
20223 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
20224 line = \$ 0
20225 split(line, arg, " ")
20226 if (arg[1] == "#") {
20227 defundef = arg[2]
20228 mac1 = arg[3]
20229 } else {
20230 defundef = substr(arg[1], 2)
20231 mac1 = arg[2]
20232 }
20233 split(mac1, mac2, "(") #)
20234 macro = mac2[1]
20235 prefix = substr(line, 1, index(line, defundef) - 1)
20236 if (D_is_set[macro]) {
20237 # Preserve the white space surrounding the "#".
20238 print prefix "define", macro P[macro] D[macro]
20239 next
20240 } else {
20241 # Replace #undef with comments. This is necessary, for example,
20242 # in the case of _POSIX_SOURCE, which is predefined and required
20243 # on some systems where configure will not decide to define it.
20244 if (defundef == "undef") {
20245 print "/*", prefix defundef, macro, "*/"
20246 next
20247 }
20248 }
20249 }
20250 { print }
20251 _ACAWK
20252 _ACEOF
20253 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20254 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
20255 fi # test -n "$CONFIG_HEADERS"
20256
20257
20258 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
20259 shift
20260 for ac_tag
20261 do
20262 case $ac_tag in
20263 :[FHLC]) ac_mode=$ac_tag; continue;;
20264 esac
20265 case $ac_mode$ac_tag in
20266 :[FHL]*:*);;
20267 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
20268 :[FH]-) ac_tag=-:-;;
20269 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20270 esac
20271 ac_save_IFS=$IFS
20272 IFS=:
20273 set x $ac_tag
20274 IFS=$ac_save_IFS
20275 shift
20276 ac_file=$1
20277 shift
20278
20279 case $ac_mode in
20280 :L) ac_source=$1;;
20281 :[FH])
20282 ac_file_inputs=
20283 for ac_f
20284 do
20285 case $ac_f in
20286 -) ac_f="$ac_tmp/stdin";;
20287 *) # Look for the file first in the build tree, then in the source tree
20288 # (if the path is not absolute). The absolute path cannot be DOS-style,
20289 # because $ac_f cannot contain `:'.
20290 test -f "$ac_f" ||
20291 case $ac_f in
20292 [\\/$]*) false;;
20293 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20294 esac ||
20295 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
20296 esac
20297 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20298 as_fn_append ac_file_inputs " '$ac_f'"
20299 done
20300
20301 # Let's still pretend it is `configure' which instantiates (i.e., don't
20302 # use $as_me), people would be surprised to read:
20303 # /* config.h. Generated by config.status. */
20304 configure_input='Generated from '`
20305 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20306 `' by configure.'
20307 if test x"$ac_file" != x-; then
20308 configure_input="$ac_file. $configure_input"
20309 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20310 $as_echo "$as_me: creating $ac_file" >&6;}
20311 fi
20312 # Neutralize special characters interpreted by sed in replacement strings.
20313 case $configure_input in #(
20314 *\&* | *\|* | *\\* )
20315 ac_sed_conf_input=`$as_echo "$configure_input" |
20316 sed 's/[\\\\&|]/\\\\&/g'`;; #(
20317 *) ac_sed_conf_input=$configure_input;;
20318 esac
20319
20320 case $ac_tag in
20321 *:-:* | *:-) cat >"$ac_tmp/stdin" \
20322 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
20323 esac
20324 ;;
20325 esac
20326
20327 ac_dir=`$as_dirname -- "$ac_file" ||
20328 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20329 X"$ac_file" : 'X\(//\)[^/]' \| \
20330 X"$ac_file" : 'X\(//\)$' \| \
20331 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20332 $as_echo X"$ac_file" |
20333 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20334 s//\1/
20335 q
20336 }
20337 /^X\(\/\/\)[^/].*/{
20338 s//\1/
20339 q
20340 }
20341 /^X\(\/\/\)$/{
20342 s//\1/
20343 q
20344 }
20345 /^X\(\/\).*/{
20346 s//\1/
20347 q
20348 }
20349 s/.*/./; q'`
20350 as_dir="$ac_dir"; as_fn_mkdir_p
20351 ac_builddir=.
20352
20353 case "$ac_dir" in
20354 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20355 *)
20356 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20357 # A ".." for each directory in $ac_dir_suffix.
20358 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20359 case $ac_top_builddir_sub in
20360 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20361 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20362 esac ;;
20363 esac
20364 ac_abs_top_builddir=$ac_pwd
20365 ac_abs_builddir=$ac_pwd$ac_dir_suffix
20366 # for backward compatibility:
20367 ac_top_builddir=$ac_top_build_prefix
20368
20369 case $srcdir in
20370 .) # We are building in place.
20371 ac_srcdir=.
20372 ac_top_srcdir=$ac_top_builddir_sub
20373 ac_abs_top_srcdir=$ac_pwd ;;
20374 [\\/]* | ?:[\\/]* ) # Absolute name.
20375 ac_srcdir=$srcdir$ac_dir_suffix;
20376 ac_top_srcdir=$srcdir
20377 ac_abs_top_srcdir=$srcdir ;;
20378 *) # Relative name.
20379 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20380 ac_top_srcdir=$ac_top_build_prefix$srcdir
20381 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20382 esac
20383 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20384
20385
20386 case $ac_mode in
20387 :F)
20388 #
20389 # CONFIG_FILE
20390 #
20391
20392 case $INSTALL in
20393 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20394 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
20395 esac
20396 ac_MKDIR_P=$MKDIR_P
20397 case $MKDIR_P in
20398 [\\/$]* | ?:[\\/]* ) ;;
20399 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
20400 esac
20401 _ACEOF
20402
20403 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20404 # If the template does not know about datarootdir, expand it.
20405 # FIXME: This hack should be removed a few years after 2.60.
20406 ac_datarootdir_hack=; ac_datarootdir_seen=
20407 ac_sed_dataroot='
20408 /datarootdir/ {
20409 p
20410 q
20411 }
20412 /@datadir@/p
20413 /@docdir@/p
20414 /@infodir@/p
20415 /@localedir@/p
20416 /@mandir@/p'
20417 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20418 *datarootdir*) ac_datarootdir_seen=yes;;
20419 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20420 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20421 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20422 _ACEOF
20423 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20424 ac_datarootdir_hack='
20425 s&@datadir@&$datadir&g
20426 s&@docdir@&$docdir&g
20427 s&@infodir@&$infodir&g
20428 s&@localedir@&$localedir&g
20429 s&@mandir@&$mandir&g
20430 s&\\\${datarootdir}&$datarootdir&g' ;;
20431 esac
20432 _ACEOF
20433
20434 # Neutralize VPATH when `$srcdir' = `.'.
20435 # Shell code in configure.ac might set extrasub.
20436 # FIXME: do we really want to maintain this feature?
20437 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20438 ac_sed_extra="$ac_vpsub
20439 $extrasub
20440 _ACEOF
20441 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20442 :t
20443 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20444 s|@configure_input@|$ac_sed_conf_input|;t t
20445 s&@top_builddir@&$ac_top_builddir_sub&;t t
20446 s&@top_build_prefix@&$ac_top_build_prefix&;t t
20447 s&@srcdir@&$ac_srcdir&;t t
20448 s&@abs_srcdir@&$ac_abs_srcdir&;t t
20449 s&@top_srcdir@&$ac_top_srcdir&;t t
20450 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20451 s&@builddir@&$ac_builddir&;t t
20452 s&@abs_builddir@&$ac_abs_builddir&;t t
20453 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20454 s&@INSTALL@&$ac_INSTALL&;t t
20455 s&@MKDIR_P@&$ac_MKDIR_P&;t t
20456 $ac_datarootdir_hack
20457 "
20458 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
20459 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20460
20461 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20462 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
20463 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
20464 "$ac_tmp/out"`; test -z "$ac_out"; } &&
20465 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20466 which seems to be undefined. Please make sure it is defined" >&5
20467 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20468 which seems to be undefined. Please make sure it is defined" >&2;}
20469
20470 rm -f "$ac_tmp/stdin"
20471 case $ac_file in
20472 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
20473 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
20474 esac \
20475 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20476 ;;
20477 :H)
20478 #
20479 # CONFIG_HEADER
20480 #
20481 if test x"$ac_file" != x-; then
20482 {
20483 $as_echo "/* $configure_input */" \
20484 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
20485 } >"$ac_tmp/config.h" \
20486 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20487 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
20488 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
20489 $as_echo "$as_me: $ac_file is unchanged" >&6;}
20490 else
20491 rm -f "$ac_file"
20492 mv "$ac_tmp/config.h" "$ac_file" \
20493 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20494 fi
20495 else
20496 $as_echo "/* $configure_input */" \
20497 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
20498 || as_fn_error $? "could not create -" "$LINENO" 5
20499 fi
20500 # Compute "$ac_file"'s index in $config_headers.
20501 _am_arg="$ac_file"
20502 _am_stamp_count=1
20503 for _am_header in $config_headers :; do
20504 case $_am_header in
20505 $_am_arg | $_am_arg:* )
20506 break ;;
20507 * )
20508 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20509 esac
20510 done
20511 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
20512 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20513 X"$_am_arg" : 'X\(//\)[^/]' \| \
20514 X"$_am_arg" : 'X\(//\)$' \| \
20515 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
20516 $as_echo X"$_am_arg" |
20517 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20518 s//\1/
20519 q
20520 }
20521 /^X\(\/\/\)[^/].*/{
20522 s//\1/
20523 q
20524 }
20525 /^X\(\/\/\)$/{
20526 s//\1/
20527 q
20528 }
20529 /^X\(\/\).*/{
20530 s//\1/
20531 q
20532 }
20533 s/.*/./; q'`/stamp-h$_am_stamp_count
20534 ;;
20535
20536 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
20537 $as_echo "$as_me: executing $ac_file commands" >&6;}
20538 ;;
20539 esac
20540
20541
20542 case $ac_file$ac_mode in
20543 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
20544 # Older Autoconf quotes --file arguments for eval, but not when files
20545 # are listed without --file. Let's play safe and only enable the eval
20546 # if we detect the quoting.
20547 case $CONFIG_FILES in
20548 *\'*) eval set x "$CONFIG_FILES" ;;
20549 *) set x $CONFIG_FILES ;;
20550 esac
20551 shift
20552 for mf
20553 do
20554 # Strip MF so we end up with the name of the file.
20555 mf=`echo "$mf" | sed -e 's/:.*$//'`
20556 # Check whether this is an Automake generated Makefile or not.
20557 # We used to match only the files named 'Makefile.in', but
20558 # some people rename them; so instead we look at the file content.
20559 # Grep'ing the first line is not enough: some people post-process
20560 # each Makefile.in and add a new line on top of each file to say so.
20561 # Grep'ing the whole file is not good either: AIX grep has a line
20562 # limit of 2048, but all sed's we know have understand at least 4000.
20563 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
20564 dirpart=`$as_dirname -- "$mf" ||
20565 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20566 X"$mf" : 'X\(//\)[^/]' \| \
20567 X"$mf" : 'X\(//\)$' \| \
20568 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
20569 $as_echo X"$mf" |
20570 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20571 s//\1/
20572 q
20573 }
20574 /^X\(\/\/\)[^/].*/{
20575 s//\1/
20576 q
20577 }
20578 /^X\(\/\/\)$/{
20579 s//\1/
20580 q
20581 }
20582 /^X\(\/\).*/{
20583 s//\1/
20584 q
20585 }
20586 s/.*/./; q'`
20587 else
20588 continue
20589 fi
20590 # Extract the definition of DEPDIR, am__include, and am__quote
20591 # from the Makefile without running 'make'.
20592 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
20593 test -z "$DEPDIR" && continue
20594 am__include=`sed -n 's/^am__include = //p' < "$mf"`
20595 test -z "$am__include" && continue
20596 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
20597 # Find all dependency output files, they are included files with
20598 # $(DEPDIR) in their names. We invoke sed twice because it is the
20599 # simplest approach to changing $(DEPDIR) to its actual value in the
20600 # expansion.
20601 for file in `sed -n "
20602 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
20603 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
20604 # Make sure the directory exists.
20605 test -f "$dirpart/$file" && continue
20606 fdir=`$as_dirname -- "$file" ||
20607 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20608 X"$file" : 'X\(//\)[^/]' \| \
20609 X"$file" : 'X\(//\)$' \| \
20610 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
20611 $as_echo X"$file" |
20612 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20613 s//\1/
20614 q
20615 }
20616 /^X\(\/\/\)[^/].*/{
20617 s//\1/
20618 q
20619 }
20620 /^X\(\/\/\)$/{
20621 s//\1/
20622 q
20623 }
20624 /^X\(\/\).*/{
20625 s//\1/
20626 q
20627 }
20628 s/.*/./; q'`
20629 as_dir=$dirpart/$fdir; as_fn_mkdir_p
20630 # echo "creating $dirpart/$file"
20631 echo '# dummy' > "$dirpart/$file"
20632 done
20633 done
20634 }
20635 ;;
20636 "libtool":C)
20637
20638 # See if we are running on zsh, and set the options which allow our
20639 # commands through without removal of \ escapes.
20640 if test -n "${ZSH_VERSION+set}" ; then
20641 setopt NO_GLOB_SUBST
20642 fi
20643
20644 cfgfile="${ofile}T"
20645 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
20646 $RM "$cfgfile"
20647
20648 cat <<_LT_EOF >> "$cfgfile"
20649 #! $SHELL
20650
20651 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
20652 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
20653 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20654 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
20655 #
20656 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
20657 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
20658 # Foundation, Inc.
20659 # Written by Gordon Matzigkeit, 1996
20660 #
20661 # This file is part of GNU Libtool.
20662 #
20663 # GNU Libtool is free software; you can redistribute it and/or
20664 # modify it under the terms of the GNU General Public License as
20665 # published by the Free Software Foundation; either version 2 of
20666 # the License, or (at your option) any later version.
20667 #
20668 # As a special exception to the GNU General Public License,
20669 # if you distribute this file as part of a program or library that
20670 # is built using GNU Libtool, you may include this file under the
20671 # same distribution terms that you use for the rest of that program.
20672 #
20673 # GNU Libtool is distributed in the hope that it will be useful,
20674 # but WITHOUT ANY WARRANTY; without even the implied warranty of
20675 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20676 # GNU General Public License for more details.
20677 #
20678 # You should have received a copy of the GNU General Public License
20679 # along with GNU Libtool; see the file COPYING. If not, a copy
20680 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
20681 # obtained by writing to the Free Software Foundation, Inc.,
20682 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20683
20684
20685 # The names of the tagged configurations supported by this script.
20686 available_tags=""
20687
20688 # ### BEGIN LIBTOOL CONFIG
20689
20690 # Whether or not to build static libraries.
20691 build_old_libs=$enable_static
20692
20693 # Which release of libtool.m4 was used?
20694 macro_version=$macro_version
20695 macro_revision=$macro_revision
20696
20697 # Whether or not to build shared libraries.
20698 build_libtool_libs=$enable_shared
20699
20700 # What type of objects to build.
20701 pic_mode=$pic_mode
20702
20703 # Whether or not to optimize for fast installation.
20704 fast_install=$enable_fast_install
20705
20706 # Shell to use when invoking shell scripts.
20707 SHELL=$lt_SHELL
20708
20709 # An echo program that protects backslashes.
20710 ECHO=$lt_ECHO
20711
20712 # The PATH separator for the build system.
20713 PATH_SEPARATOR=$lt_PATH_SEPARATOR
20714
20715 # The host system.
20716 host_alias=$host_alias
20717 host=$host
20718 host_os=$host_os
20719
20720 # The build system.
20721 build_alias=$build_alias
20722 build=$build
20723 build_os=$build_os
20724
20725 # A sed program that does not truncate output.
20726 SED=$lt_SED
20727
20728 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
20729 Xsed="\$SED -e 1s/^X//"
20730
20731 # A grep program that handles long lines.
20732 GREP=$lt_GREP
20733
20734 # An ERE matcher.
20735 EGREP=$lt_EGREP
20736
20737 # A literal string matcher.
20738 FGREP=$lt_FGREP
20739
20740 # A BSD- or MS-compatible name lister.
20741 NM=$lt_NM
20742
20743 # Whether we need soft or hard links.
20744 LN_S=$lt_LN_S
20745
20746 # What is the maximum length of a command?
20747 max_cmd_len=$max_cmd_len
20748
20749 # Object file suffix (normally "o").
20750 objext=$ac_objext
20751
20752 # Executable file suffix (normally "").
20753 exeext=$exeext
20754
20755 # whether the shell understands "unset".
20756 lt_unset=$lt_unset
20757
20758 # turn spaces into newlines.
20759 SP2NL=$lt_lt_SP2NL
20760
20761 # turn newlines into spaces.
20762 NL2SP=$lt_lt_NL2SP
20763
20764 # convert \$build file names to \$host format.
20765 to_host_file_cmd=$lt_cv_to_host_file_cmd
20766
20767 # convert \$build files to toolchain format.
20768 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
20769
20770 # An object symbol dumper.
20771 OBJDUMP=$lt_OBJDUMP
20772
20773 # Method to check whether dependent libraries are shared objects.
20774 deplibs_check_method=$lt_deplibs_check_method
20775
20776 # Command to use when deplibs_check_method = "file_magic".
20777 file_magic_cmd=$lt_file_magic_cmd
20778
20779 # How to find potential files when deplibs_check_method = "file_magic".
20780 file_magic_glob=$lt_file_magic_glob
20781
20782 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
20783 want_nocaseglob=$lt_want_nocaseglob
20784
20785 # DLL creation program.
20786 DLLTOOL=$lt_DLLTOOL
20787
20788 # Command to associate shared and link libraries.
20789 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
20790
20791 # The archiver.
20792 AR=$lt_AR
20793
20794 # Flags to create an archive.
20795 AR_FLAGS=$lt_AR_FLAGS
20796
20797 # How to feed a file listing to the archiver.
20798 archiver_list_spec=$lt_archiver_list_spec
20799
20800 # A symbol stripping program.
20801 STRIP=$lt_STRIP
20802
20803 # Commands used to install an old-style archive.
20804 RANLIB=$lt_RANLIB
20805 old_postinstall_cmds=$lt_old_postinstall_cmds
20806 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20807
20808 # Whether to use a lock for old archive extraction.
20809 lock_old_archive_extraction=$lock_old_archive_extraction
20810
20811 # A C compiler.
20812 LTCC=$lt_CC
20813
20814 # LTCC compiler flags.
20815 LTCFLAGS=$lt_CFLAGS
20816
20817 # Take the output of nm and produce a listing of raw symbols and C names.
20818 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20819
20820 # Transform the output of nm in a proper C declaration.
20821 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20822
20823 # Transform the output of nm in a C name address pair.
20824 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20825
20826 # Transform the output of nm in a C name address pair when lib prefix is needed.
20827 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
20828
20829 # Specify filename containing input files for \$NM.
20830 nm_file_list_spec=$lt_nm_file_list_spec
20831
20832 # The root where to search for dependent libraries,and in which our libraries should be installed.
20833 lt_sysroot=$lt_sysroot
20834
20835 # The name of the directory that contains temporary libtool files.
20836 objdir=$objdir
20837
20838 # Used to examine libraries when file_magic_cmd begins with "file".
20839 MAGIC_CMD=$MAGIC_CMD
20840
20841 # Must we lock files when doing compilation?
20842 need_locks=$lt_need_locks
20843
20844 # Manifest tool.
20845 MANIFEST_TOOL=$lt_MANIFEST_TOOL
20846
20847 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
20848 DSYMUTIL=$lt_DSYMUTIL
20849
20850 # Tool to change global to local symbols on Mac OS X.
20851 NMEDIT=$lt_NMEDIT
20852
20853 # Tool to manipulate fat objects and archives on Mac OS X.
20854 LIPO=$lt_LIPO
20855
20856 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
20857 OTOOL=$lt_OTOOL
20858
20859 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
20860 OTOOL64=$lt_OTOOL64
20861
20862 # Old archive suffix (normally "a").
20863 libext=$libext
20864
20865 # Shared library suffix (normally ".so").
20866 shrext_cmds=$lt_shrext_cmds
20867
20868 # The commands to extract the exported symbol list from a shared archive.
20869 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20870
20871 # Variables whose values should be saved in libtool wrapper scripts and
20872 # restored at link time.
20873 variables_saved_for_relink=$lt_variables_saved_for_relink
20874
20875 # Do we need the "lib" prefix for modules?
20876 need_lib_prefix=$need_lib_prefix
20877
20878 # Do we need a version for libraries?
20879 need_version=$need_version
20880
20881 # Library versioning type.
20882 version_type=$version_type
20883
20884 # Shared library runtime path variable.
20885 runpath_var=$runpath_var
20886
20887 # Shared library path variable.
20888 shlibpath_var=$shlibpath_var
20889
20890 # Is shlibpath searched before the hard-coded library search path?
20891 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20892
20893 # Format of library name prefix.
20894 libname_spec=$lt_libname_spec
20895
20896 # List of archive names. First name is the real one, the rest are links.
20897 # The last name is the one that the linker finds with -lNAME
20898 library_names_spec=$lt_library_names_spec
20899
20900 # The coded name of the library, if different from the real name.
20901 soname_spec=$lt_soname_spec
20902
20903 # Permission mode override for installation of shared libraries.
20904 install_override_mode=$lt_install_override_mode
20905
20906 # Command to use after installation of a shared archive.
20907 postinstall_cmds=$lt_postinstall_cmds
20908
20909 # Command to use after uninstallation of a shared archive.
20910 postuninstall_cmds=$lt_postuninstall_cmds
20911
20912 # Commands used to finish a libtool library installation in a directory.
20913 finish_cmds=$lt_finish_cmds
20914
20915 # As "finish_cmds", except a single script fragment to be evaled but
20916 # not shown.
20917 finish_eval=$lt_finish_eval
20918
20919 # Whether we should hardcode library paths into libraries.
20920 hardcode_into_libs=$hardcode_into_libs
20921
20922 # Compile-time system search path for libraries.
20923 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20924
20925 # Run-time system search path for libraries.
20926 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20927
20928 # Whether dlopen is supported.
20929 dlopen_support=$enable_dlopen
20930
20931 # Whether dlopen of programs is supported.
20932 dlopen_self=$enable_dlopen_self
20933
20934 # Whether dlopen of statically linked programs is supported.
20935 dlopen_self_static=$enable_dlopen_self_static
20936
20937 # Commands to strip libraries.
20938 old_striplib=$lt_old_striplib
20939 striplib=$lt_striplib
20940
20941
20942 # The linker used to build libraries.
20943 LD=$lt_LD
20944
20945 # How to create reloadable object files.
20946 reload_flag=$lt_reload_flag
20947 reload_cmds=$lt_reload_cmds
20948
20949 # Commands used to build an old-style archive.
20950 old_archive_cmds=$lt_old_archive_cmds
20951
20952 # A language specific compiler.
20953 CC=$lt_compiler
20954
20955 # Is the compiler the GNU compiler?
20956 with_gcc=$GCC
20957
20958 # Compiler flag to turn off builtin functions.
20959 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
20960
20961 # Additional compiler flags for building library objects.
20962 pic_flag=$lt_lt_prog_compiler_pic
20963
20964 # How to pass a linker flag through the compiler.
20965 wl=$lt_lt_prog_compiler_wl
20966
20967 # Compiler flag to prevent dynamic linking.
20968 link_static_flag=$lt_lt_prog_compiler_static
20969
20970 # Does compiler simultaneously support -c and -o options?
20971 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
20972
20973 # Whether or not to add -lc for building shared libraries.
20974 build_libtool_need_lc=$archive_cmds_need_lc
20975
20976 # Whether or not to disallow shared libs when runtime libs are static.
20977 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
20978
20979 # Compiler flag to allow reflexive dlopens.
20980 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
20981
20982 # Compiler flag to generate shared objects directly from archives.
20983 whole_archive_flag_spec=$lt_whole_archive_flag_spec
20984
20985 # Whether the compiler copes with passing no objects directly.
20986 compiler_needs_object=$lt_compiler_needs_object
20987
20988 # Create an old-style archive from a shared archive.
20989 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
20990
20991 # Create a temporary old-style archive to link instead of a shared archive.
20992 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
20993
20994 # Commands used to build a shared archive.
20995 archive_cmds=$lt_archive_cmds
20996 archive_expsym_cmds=$lt_archive_expsym_cmds
20997
20998 # Commands used to build a loadable module if different from building
20999 # a shared archive.
21000 module_cmds=$lt_module_cmds
21001 module_expsym_cmds=$lt_module_expsym_cmds
21002
21003 # Whether we are building with GNU ld or not.
21004 with_gnu_ld=$lt_with_gnu_ld
21005
21006 # Flag that allows shared libraries with undefined symbols to be built.
21007 allow_undefined_flag=$lt_allow_undefined_flag
21008
21009 # Flag that enforces no undefined symbols.
21010 no_undefined_flag=$lt_no_undefined_flag
21011
21012 # Flag to hardcode \$libdir into a binary during linking.
21013 # This must work even if \$libdir does not exist
21014 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
21015
21016 # Whether we need a single "-rpath" flag with a separated argument.
21017 hardcode_libdir_separator=$lt_hardcode_libdir_separator
21018
21019 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21020 # DIR into the resulting binary.
21021 hardcode_direct=$hardcode_direct
21022
21023 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21024 # DIR into the resulting binary and the resulting library dependency is
21025 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
21026 # library is relocated.
21027 hardcode_direct_absolute=$hardcode_direct_absolute
21028
21029 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21030 # into the resulting binary.
21031 hardcode_minus_L=$hardcode_minus_L
21032
21033 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21034 # into the resulting binary.
21035 hardcode_shlibpath_var=$hardcode_shlibpath_var
21036
21037 # Set to "yes" if building a shared library automatically hardcodes DIR
21038 # into the library and all subsequent libraries and executables linked
21039 # against it.
21040 hardcode_automatic=$hardcode_automatic
21041
21042 # Set to yes if linker adds runtime paths of dependent libraries
21043 # to runtime path list.
21044 inherit_rpath=$inherit_rpath
21045
21046 # Whether libtool must link a program against all its dependency libraries.
21047 link_all_deplibs=$link_all_deplibs
21048
21049 # Set to "yes" if exported symbols are required.
21050 always_export_symbols=$always_export_symbols
21051
21052 # The commands to list exported symbols.
21053 export_symbols_cmds=$lt_export_symbols_cmds
21054
21055 # Symbols that should not be listed in the preloaded symbols.
21056 exclude_expsyms=$lt_exclude_expsyms
21057
21058 # Symbols that must always be exported.
21059 include_expsyms=$lt_include_expsyms
21060
21061 # Commands necessary for linking programs (against libraries) with templates.
21062 prelink_cmds=$lt_prelink_cmds
21063
21064 # Commands necessary for finishing linking programs.
21065 postlink_cmds=$lt_postlink_cmds
21066
21067 # Specify filename containing input files.
21068 file_list_spec=$lt_file_list_spec
21069
21070 # How to hardcode a shared library path into an executable.
21071 hardcode_action=$hardcode_action
21072
21073 # ### END LIBTOOL CONFIG
21074
21075 _LT_EOF
21076
21077 case $host_os in
21078 aix3*)
21079 cat <<\_LT_EOF >> "$cfgfile"
21080 # AIX sometimes has problems with the GCC collect2 program. For some
21081 # reason, if we set the COLLECT_NAMES environment variable, the problems
21082 # vanish in a puff of smoke.
21083 if test "X${COLLECT_NAMES+set}" != Xset; then
21084 COLLECT_NAMES=
21085 export COLLECT_NAMES
21086 fi
21087 _LT_EOF
21088 ;;
21089 esac
21090
21091
21092 ltmain="$ac_aux_dir/ltmain.sh"
21093
21094
21095 # We use sed instead of cat because bash on DJGPP gets confused if
21096 # if finds mixed CR/LF and LF-only lines. Since sed operates in
21097 # text mode, it properly converts lines to CR/LF. This bash problem
21098 # is reportedly fixed, but why not run on old versions too?
21099 sed '$q' "$ltmain" >> "$cfgfile" \
21100 || (rm -f "$cfgfile"; exit 1)
21101
21102 if test x"$xsi_shell" = xyes; then
21103 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
21104 func_dirname ()\
21105 {\
21106 \ case ${1} in\
21107 \ */*) func_dirname_result="${1%/*}${2}" ;;\
21108 \ * ) func_dirname_result="${3}" ;;\
21109 \ esac\
21110 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
21111 && mv -f "$cfgfile.tmp" "$cfgfile" \
21112 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21113 test 0 -eq $? || _lt_function_replace_fail=:
21114
21115
21116 sed -e '/^func_basename ()$/,/^} # func_basename /c\
21117 func_basename ()\
21118 {\
21119 \ func_basename_result="${1##*/}"\
21120 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
21121 && mv -f "$cfgfile.tmp" "$cfgfile" \
21122 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21123 test 0 -eq $? || _lt_function_replace_fail=:
21124
21125
21126 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
21127 func_dirname_and_basename ()\
21128 {\
21129 \ case ${1} in\
21130 \ */*) func_dirname_result="${1%/*}${2}" ;;\
21131 \ * ) func_dirname_result="${3}" ;;\
21132 \ esac\
21133 \ func_basename_result="${1##*/}"\
21134 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
21135 && mv -f "$cfgfile.tmp" "$cfgfile" \
21136 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21137 test 0 -eq $? || _lt_function_replace_fail=:
21138
21139
21140 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
21141 func_stripname ()\
21142 {\
21143 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
21144 \ # positional parameters, so assign one to ordinary parameter first.\
21145 \ func_stripname_result=${3}\
21146 \ func_stripname_result=${func_stripname_result#"${1}"}\
21147 \ func_stripname_result=${func_stripname_result%"${2}"}\
21148 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
21149 && mv -f "$cfgfile.tmp" "$cfgfile" \
21150 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21151 test 0 -eq $? || _lt_function_replace_fail=:
21152
21153
21154 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
21155 func_split_long_opt ()\
21156 {\
21157 \ func_split_long_opt_name=${1%%=*}\
21158 \ func_split_long_opt_arg=${1#*=}\
21159 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
21160 && mv -f "$cfgfile.tmp" "$cfgfile" \
21161 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21162 test 0 -eq $? || _lt_function_replace_fail=:
21163
21164
21165 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
21166 func_split_short_opt ()\
21167 {\
21168 \ func_split_short_opt_arg=${1#??}\
21169 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
21170 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
21171 && mv -f "$cfgfile.tmp" "$cfgfile" \
21172 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21173 test 0 -eq $? || _lt_function_replace_fail=:
21174
21175
21176 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
21177 func_lo2o ()\
21178 {\
21179 \ case ${1} in\
21180 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
21181 \ *) func_lo2o_result=${1} ;;\
21182 \ esac\
21183 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
21184 && mv -f "$cfgfile.tmp" "$cfgfile" \
21185 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21186 test 0 -eq $? || _lt_function_replace_fail=:
21187
21188
21189 sed -e '/^func_xform ()$/,/^} # func_xform /c\
21190 func_xform ()\
21191 {\
21192 func_xform_result=${1%.*}.lo\
21193 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
21194 && mv -f "$cfgfile.tmp" "$cfgfile" \
21195 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21196 test 0 -eq $? || _lt_function_replace_fail=:
21197
21198
21199 sed -e '/^func_arith ()$/,/^} # func_arith /c\
21200 func_arith ()\
21201 {\
21202 func_arith_result=$(( $* ))\
21203 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
21204 && mv -f "$cfgfile.tmp" "$cfgfile" \
21205 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21206 test 0 -eq $? || _lt_function_replace_fail=:
21207
21208
21209 sed -e '/^func_len ()$/,/^} # func_len /c\
21210 func_len ()\
21211 {\
21212 func_len_result=${#1}\
21213 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
21214 && mv -f "$cfgfile.tmp" "$cfgfile" \
21215 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21216 test 0 -eq $? || _lt_function_replace_fail=:
21217
21218 fi
21219
21220 if test x"$lt_shell_append" = xyes; then
21221 sed -e '/^func_append ()$/,/^} # func_append /c\
21222 func_append ()\
21223 {\
21224 eval "${1}+=\\${2}"\
21225 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
21226 && mv -f "$cfgfile.tmp" "$cfgfile" \
21227 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21228 test 0 -eq $? || _lt_function_replace_fail=:
21229
21230
21231 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
21232 func_append_quoted ()\
21233 {\
21234 \ func_quote_for_eval "${2}"\
21235 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
21236 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
21237 && mv -f "$cfgfile.tmp" "$cfgfile" \
21238 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21239 test 0 -eq $? || _lt_function_replace_fail=:
21240
21241
21242 # Save a `func_append' function call where possible by direct use of '+='
21243 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
21244 && mv -f "$cfgfile.tmp" "$cfgfile" \
21245 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21246 test 0 -eq $? || _lt_function_replace_fail=:
21247 else
21248 # Save a `func_append' function call even when '+=' is not available
21249 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
21250 && mv -f "$cfgfile.tmp" "$cfgfile" \
21251 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21252 test 0 -eq $? || _lt_function_replace_fail=:
21253 fi
21254
21255 if test x"$_lt_function_replace_fail" = x":"; then
21256 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
21257 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
21258 fi
21259
21260
21261 mv -f "$cfgfile" "$ofile" ||
21262 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
21263 chmod +x "$ofile"
21264
21265 ;;
21266
21267 esac
21268 done # for ac_tag
21269
21270
21271 as_fn_exit 0
21272 _ACEOF
21273 ac_clean_files=$ac_clean_files_save
21274
21275 test $ac_write_fail = 0 ||
21276 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
21277
21278
21279 # configure is writing to config.log, and then calls config.status.
21280 # config.status does its own redirection, appending to config.log.
21281 # Unfortunately, on DOS this fails, as config.log is still kept open
21282 # by configure, so config.status won't be able to write to it; its
21283 # output is simply discarded. So we exec the FD to /dev/null,
21284 # effectively closing config.log, so it can be properly (re)opened and
21285 # appended to by config.status. When coming back to configure, we
21286 # need to make the FD available again.
21287 if test "$no_create" != yes; then
21288 ac_cs_success=:
21289 ac_config_status_args=
21290 test "$silent" = yes &&
21291 ac_config_status_args="$ac_config_status_args --quiet"
21292 exec 5>/dev/null
21293 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21294 exec 5>>config.log
21295 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21296 # would make configure fail if this is the last instruction.
21297 $ac_cs_success || as_fn_exit 1
21298 fi
21299 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
21300 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21301 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
21302 fi
21303
21304