configure revision 1.1.1.8 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.72 for xf86-video-mach64 6.10.0.
4 #
5 # Report bugs to <https://gitlab.freedesktop.org/xorg/driver/xf86-video-mach64/-/issues>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2017, 2020-2023 Free Software Foundation,
9 # Inc.
10 #
11 #
12 # This configure script is free software; the Free Software Foundation
13 # gives unlimited permission to copy, distribute and modify it.
14 ## -------------------- ##
15 ## M4sh Initialization. ##
16 ## -------------------- ##
17
18 # Be more Bourne compatible
19 DUALCASE=1; export DUALCASE # for MKS sh
20 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
21 then :
22 emulate sh
23 NULLCMD=:
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
27 setopt NO_GLOB_SUBST
28 else case e in #(
29 e) case `(set -o) 2>/dev/null` in #(
30 *posix*) :
31 set -o posix ;; #(
32 *) :
33 ;;
34 esac ;;
35 esac
36 fi
37
38
39
40 # Reset variables that may have inherited troublesome values from
41 # the environment.
42
43 # IFS needs to be set, to space, tab, and newline, in precisely that order.
44 # (If _AS_PATH_WALK were called with IFS unset, it would have the
45 # side effect of setting IFS to empty, thus disabling word splitting.)
46 # Quoting is to prevent editors from complaining about space-tab.
47 as_nl='
48 '
49 export as_nl
50 IFS=" "" $as_nl"
51
52 PS1='$ '
53 PS2='> '
54 PS4='+ '
55
56 # Ensure predictable behavior from utilities with locale-dependent output.
57 LC_ALL=C
58 export LC_ALL
59 LANGUAGE=C
60 export LANGUAGE
61
62 # We cannot yet rely on "unset" to work, but we need these variables
63 # to be unset--not just set to an empty or harmless value--now, to
64 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
65 # also avoids known problems related to "unset" and subshell syntax
66 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
67 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
68 do eval test \${$as_var+y} \
69 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
70 done
71
72 # Ensure that fds 0, 1, and 2 are open.
73 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
74 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
75 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
76
77 # The user is always right.
78 if ${PATH_SEPARATOR+false} :; then
79 PATH_SEPARATOR=:
80 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
82 PATH_SEPARATOR=';'
83 }
84 fi
85
86
87 # Find who we are. Look in the path if we contain no directory separator.
88 as_myself=
89 case $0 in #((
90 *[\\/]* ) as_myself=$0 ;;
91 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
92 for as_dir in $PATH
93 do
94 IFS=$as_save_IFS
95 case $as_dir in #(((
96 '') as_dir=./ ;;
97 */) ;;
98 *) as_dir=$as_dir/ ;;
99 esac
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 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116
117 # Use a proper internal environment variable to ensure we don't fall
118 # into an infinite loop, continuously re-executing ourselves.
119 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
120 _as_can_reexec=no; export _as_can_reexec;
121 # We cannot yet assume a decent shell, so we have to provide a
122 # neutralization value for shells without unset; and this also
123 # works around shells that cannot unset nonexistent variables.
124 # Preserve -v and -x to the replacement shell.
125 BASH_ENV=/dev/null
126 ENV=/dev/null
127 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
128 case $- in # ((((
129 *v*x* | *x*v* ) as_opts=-vx ;;
130 *v* ) as_opts=-v ;;
131 *x* ) as_opts=-x ;;
132 * ) as_opts= ;;
133 esac
134 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
135 # Admittedly, this is quite paranoid, since all the known shells bail
136 # out after a failed 'exec'.
137 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
138 exit 255
139 fi
140 # We don't want this to propagate to other subprocesses.
141 { _as_can_reexec=; unset _as_can_reexec;}
142 if test "x$CONFIG_SHELL" = x; then
143 as_bourne_compatible="if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
144 then :
145 emulate sh
146 NULLCMD=:
147 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
148 # is contrary to our usage. Disable this feature.
149 alias -g '\${1+\"\$@\"}'='\"\$@\"'
150 setopt NO_GLOB_SUBST
151 else case e in #(
152 e) case \`(set -o) 2>/dev/null\` in #(
153 *posix*) :
154 set -o posix ;; #(
155 *) :
156 ;;
157 esac ;;
158 esac
159 fi
160 "
161 as_required="as_fn_return () { (exit \$1); }
162 as_fn_success () { as_fn_return 0; }
163 as_fn_failure () { as_fn_return 1; }
164 as_fn_ret_success () { return 0; }
165 as_fn_ret_failure () { return 1; }
166
167 exitcode=0
168 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
169 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
170 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
171 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
172 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
173 then :
174
175 else case e in #(
176 e) exitcode=1; echo positional parameters were not saved. ;;
177 esac
178 fi
179 test x\$exitcode = x0 || exit 1
180 blah=\$(echo \$(echo blah))
181 test x\"\$blah\" = xblah || exit 1
182 test -x / || exit 1"
183 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
184 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
185 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
186 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
187 test \$(( 1 + 1 )) = 2 || exit 1
188
189 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
190 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
191 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
192 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
193 PATH=/empty FPATH=/empty; export PATH FPATH
194 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
195 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
196 if (eval "$as_required") 2>/dev/null
197 then :
198 as_have_required=yes
199 else case e in #(
200 e) as_have_required=no ;;
201 esac
202 fi
203 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
204 then :
205
206 else case e in #(
207 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
208 as_found=false
209 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
210 do
211 IFS=$as_save_IFS
212 case $as_dir in #(((
213 '') as_dir=./ ;;
214 */) ;;
215 *) as_dir=$as_dir/ ;;
216 esac
217 as_found=:
218 case $as_dir in #(
219 /*)
220 for as_base in sh bash ksh sh5; do
221 # Try only shells that exist, to save several forks.
222 as_shell=$as_dir$as_base
223 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
224 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
225 then :
226 CONFIG_SHELL=$as_shell as_have_required=yes
227 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
228 then :
229 break 2
230 fi
231 fi
232 done;;
233 esac
234 as_found=false
235 done
236 IFS=$as_save_IFS
237 if $as_found
238 then :
239
240 else case e in #(
241 e) if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
243 then :
244 CONFIG_SHELL=$SHELL as_have_required=yes
245 fi ;;
246 esac
247 fi
248
249
250 if test "x$CONFIG_SHELL" != x
251 then :
252 export CONFIG_SHELL
253 # We cannot yet assume a decent shell, so we have to provide a
254 # neutralization value for shells without unset; and this also
255 # works around shells that cannot unset nonexistent variables.
256 # Preserve -v and -x to the replacement shell.
257 BASH_ENV=/dev/null
258 ENV=/dev/null
259 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
260 case $- in # ((((
261 *v*x* | *x*v* ) as_opts=-vx ;;
262 *v* ) as_opts=-v ;;
263 *x* ) as_opts=-x ;;
264 * ) as_opts= ;;
265 esac
266 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
267 # Admittedly, this is quite paranoid, since all the known shells bail
268 # out after a failed 'exec'.
269 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
270 exit 255
271 fi
272
273 if test x$as_have_required = xno
274 then :
275 printf "%s\n" "$0: This script requires a shell more modern than all"
276 printf "%s\n" "$0: the shells that I found on your system."
277 if test ${ZSH_VERSION+y} ; then
278 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
279 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
280 else
281 printf "%s\n" "$0: Please tell bug-autoconf (at] gnu.org and
282 $0: https://gitlab.freedesktop.org/xorg/driver/xf86-video-mach64/-/issues
283 $0: about your system, including any error possibly output
284 $0: before this message. Then install a modern shell, or
285 $0: manually run the script under such a shell if you do
286 $0: have one."
287 fi
288 exit 1
289 fi ;;
290 esac
291 fi
292 fi
293 SHELL=${CONFIG_SHELL-/bin/sh}
294 export SHELL
295 # Unset more variables known to interfere with behavior of common tools.
296 CLICOLOR_FORCE= GREP_OPTIONS=
297 unset CLICOLOR_FORCE GREP_OPTIONS
298
299 ## --------------------- ##
300 ## M4sh Shell Functions. ##
301 ## --------------------- ##
302 # as_fn_unset VAR
303 # ---------------
304 # Portably unset VAR.
305 as_fn_unset ()
306 {
307 { eval $1=; unset $1;}
308 }
309 as_unset=as_fn_unset
310
311
312 # as_fn_set_status STATUS
313 # -----------------------
314 # Set $? to STATUS, without forking.
315 as_fn_set_status ()
316 {
317 return $1
318 } # as_fn_set_status
319
320 # as_fn_exit STATUS
321 # -----------------
322 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
323 as_fn_exit ()
324 {
325 set +e
326 as_fn_set_status $1
327 exit $1
328 } # as_fn_exit
329
330 # as_fn_mkdir_p
331 # -------------
332 # Create "$as_dir" as a directory, including parents if necessary.
333 as_fn_mkdir_p ()
334 {
335
336 case $as_dir in #(
337 -*) as_dir=./$as_dir;;
338 esac
339 test -d "$as_dir" || eval $as_mkdir_p || {
340 as_dirs=
341 while :; do
342 case $as_dir in #(
343 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
344 *) as_qdir=$as_dir;;
345 esac
346 as_dirs="'$as_qdir' $as_dirs"
347 as_dir=`$as_dirname -- "$as_dir" ||
348 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
349 X"$as_dir" : 'X\(//\)[^/]' \| \
350 X"$as_dir" : 'X\(//\)$' \| \
351 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
352 printf "%s\n" X"$as_dir" |
353 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
354 s//\1/
355 q
356 }
357 /^X\(\/\/\)[^/].*/{
358 s//\1/
359 q
360 }
361 /^X\(\/\/\)$/{
362 s//\1/
363 q
364 }
365 /^X\(\/\).*/{
366 s//\1/
367 q
368 }
369 s/.*/./; q'`
370 test -d "$as_dir" && break
371 done
372 test -z "$as_dirs" || eval "mkdir $as_dirs"
373 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
374
375
376 } # as_fn_mkdir_p
377
378 # as_fn_executable_p FILE
379 # -----------------------
380 # Test if FILE is an executable regular file.
381 as_fn_executable_p ()
382 {
383 test -f "$1" && test -x "$1"
384 } # as_fn_executable_p
385 # as_fn_append VAR VALUE
386 # ----------------------
387 # Append the text in VALUE to the end of the definition contained in VAR. Take
388 # advantage of any shell optimizations that allow amortized linear growth over
389 # repeated appends, instead of the typical quadratic growth present in naive
390 # implementations.
391 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
392 then :
393 eval 'as_fn_append ()
394 {
395 eval $1+=\$2
396 }'
397 else case e in #(
398 e) as_fn_append ()
399 {
400 eval $1=\$$1\$2
401 } ;;
402 esac
403 fi # as_fn_append
404
405 # as_fn_arith ARG...
406 # ------------------
407 # Perform arithmetic evaluation on the ARGs, and store the result in the
408 # global $as_val. Take advantage of shells that can avoid forks. The arguments
409 # must be portable across $(()) and expr.
410 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
411 then :
412 eval 'as_fn_arith ()
413 {
414 as_val=$(( $* ))
415 }'
416 else case e in #(
417 e) as_fn_arith ()
418 {
419 as_val=`expr "$@" || test $? -eq 1`
420 } ;;
421 esac
422 fi # as_fn_arith
423
424
425 # as_fn_error STATUS ERROR [LINENO LOG_FD]
426 # ----------------------------------------
427 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
428 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
429 # script with STATUS, using 1 if that was 0.
430 as_fn_error ()
431 {
432 as_status=$1; test $as_status -eq 0 && as_status=1
433 if test "$4"; then
434 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
435 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
436 fi
437 printf "%s\n" "$as_me: error: $2" >&2
438 as_fn_exit $as_status
439 } # as_fn_error
440
441 if expr a : '\(a\)' >/dev/null 2>&1 &&
442 test "X`expr 00001 : '.*\(...\)'`" = X001; then
443 as_expr=expr
444 else
445 as_expr=false
446 fi
447
448 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
449 as_basename=basename
450 else
451 as_basename=false
452 fi
453
454 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
455 as_dirname=dirname
456 else
457 as_dirname=false
458 fi
459
460 as_me=`$as_basename -- "$0" ||
461 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
462 X"$0" : 'X\(//\)$' \| \
463 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
464 printf "%s\n" X/"$0" |
465 sed '/^.*\/\([^/][^/]*\)\/*$/{
466 s//\1/
467 q
468 }
469 /^X\/\(\/\/\)$/{
470 s//\1/
471 q
472 }
473 /^X\/\(\/\).*/{
474 s//\1/
475 q
476 }
477 s/.*/./; q'`
478
479 # Avoid depending upon Character Ranges.
480 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
481 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
482 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
483 as_cr_digits='0123456789'
484 as_cr_alnum=$as_cr_Letters$as_cr_digits
485
486
487 as_lineno_1=$LINENO as_lineno_1a=$LINENO
488 as_lineno_2=$LINENO as_lineno_2a=$LINENO
489 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
490 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
491 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
492 sed -n '
493 p
494 /[$]LINENO/=
495 ' <$as_myself |
496 sed '
497 t clear
498 :clear
499 s/[$]LINENO.*/&-/
500 t lineno
501 b
502 :lineno
503 N
504 :loop
505 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
506 t loop
507 s/-\n.*//
508 ' >$as_me.lineno &&
509 chmod +x "$as_me.lineno" ||
510 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
511
512 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
513 # already done that, so ensure we don't try to do so again and fall
514 # in an infinite loop. This has already happened in practice.
515 _as_can_reexec=no; export _as_can_reexec
516 # Don't try to exec as it changes $[0], causing all sort of problems
517 # (the dirname of $[0] is not the place where we might find the
518 # original and so on. Autoconf is especially sensitive to this).
519 . "./$as_me.lineno"
520 # Exit status is that of the last command.
521 exit
522 }
523
524
525 # Determine whether it's possible to make 'echo' print without a newline.
526 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
527 # for compatibility with existing Makefiles.
528 ECHO_C= ECHO_N= ECHO_T=
529 case `echo -n x` in #(((((
530 -n*)
531 case `echo 'xy\c'` in
532 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
533 xy) ECHO_C='\c';;
534 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
535 ECHO_T=' ';;
536 esac;;
537 *)
538 ECHO_N='-n';;
539 esac
540
541 # For backward compatibility with old third-party macros, we provide
542 # the shell variables $as_echo and $as_echo_n. New code should use
543 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
544 as_echo='printf %s\n'
545 as_echo_n='printf %s'
546
547 rm -f conf$$ conf$$.exe conf$$.file
548 if test -d conf$$.dir; then
549 rm -f conf$$.dir/conf$$.file
550 else
551 rm -f conf$$.dir
552 mkdir conf$$.dir 2>/dev/null
553 fi
554 if (echo >conf$$.file) 2>/dev/null; then
555 if ln -s conf$$.file conf$$ 2>/dev/null; then
556 as_ln_s='ln -s'
557 # ... but there are two gotchas:
558 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
559 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
560 # In both cases, we have to default to 'cp -pR'.
561 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
562 as_ln_s='cp -pR'
563 elif ln conf$$.file conf$$ 2>/dev/null; then
564 as_ln_s=ln
565 else
566 as_ln_s='cp -pR'
567 fi
568 else
569 as_ln_s='cp -pR'
570 fi
571 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
572 rmdir conf$$.dir 2>/dev/null
573
574 if mkdir -p . 2>/dev/null; then
575 as_mkdir_p='mkdir -p "$as_dir"'
576 else
577 test -d ./-p && rmdir ./-p
578 as_mkdir_p=false
579 fi
580
581 as_test_x='test -x'
582 as_executable_p=as_fn_executable_p
583
584 # Sed expression to map a string onto a valid CPP name.
585 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
586 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
587
588 # Sed expression to map a string onto a valid variable name.
589 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
590 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
591
592 SHELL=${CONFIG_SHELL-/bin/sh}
593
594
595 test -n "$DJDIR" || exec 7<&0 </dev/null
596 exec 6>&1
597
598 # Name of the host.
599 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
600 # so uname gets run too.
601 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
602
603 #
604 # Initializations.
605 #
606 ac_default_prefix=/usr/local
607 ac_clean_files=
608 ac_config_libobj_dir=.
609 LIBOBJS=
610 cross_compiling=no
611 subdirs=
612 MFLAGS=
613 MAKEFLAGS=
614
615 # Identity of this package.
616 PACKAGE_NAME='xf86-video-mach64'
617 PACKAGE_TARNAME='xf86-video-mach64'
618 PACKAGE_VERSION='6.10.0'
619 PACKAGE_STRING='xf86-video-mach64 6.10.0'
620 PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/driver/xf86-video-mach64/-/issues'
621 PACKAGE_URL=''
622
623 ac_unique_file="Makefile.am"
624 # Factoring default headers for most tests.
625 ac_includes_default="\
626 #include <stddef.h>
627 #ifdef HAVE_STDIO_H
628 # include <stdio.h>
629 #endif
630 #ifdef HAVE_STDLIB_H
631 # include <stdlib.h>
632 #endif
633 #ifdef HAVE_STRING_H
634 # include <string.h>
635 #endif
636 #ifdef HAVE_INTTYPES_H
637 # include <inttypes.h>
638 #endif
639 #ifdef HAVE_STDINT_H
640 # include <stdint.h>
641 #endif
642 #ifdef HAVE_STRINGS_H
643 # include <strings.h>
644 #endif
645 #ifdef HAVE_SYS_TYPES_H
646 # include <sys/types.h>
647 #endif
648 #ifdef HAVE_SYS_STAT_H
649 # include <sys/stat.h>
650 #endif
651 #ifdef HAVE_UNISTD_H
652 # include <unistd.h>
653 #endif"
654
655 ac_header_c_list=
656 ac_subst_vars='am__EXEEXT_FALSE
657 am__EXEEXT_TRUE
658 LTLIBOBJS
659 LIBOBJS
660 DRIVER_NAME
661 moduledir
662 XSERVER_LIBPCIACCESS_FALSE
663 XSERVER_LIBPCIACCESS_TRUE
664 PCIACCESS_LIBS
665 PCIACCESS_CFLAGS
666 USE_EXA_FALSE
667 USE_EXA_TRUE
668 CPP
669 ATIMISC_TV_OUT_FALSE
670 ATIMISC_TV_OUT_TRUE
671 ATIMISC_DGA_FALSE
672 ATIMISC_DGA_TRUE
673 ATIMISC_CPIO_FALSE
674 ATIMISC_CPIO_TRUE
675 DRI_LIBS
676 DRI_CFLAGS
677 DRI_FALSE
678 DRI_TRUE
679 HAVE_XEXTPROTO_71_FALSE
680 HAVE_XEXTPROTO_71_TRUE
681 XEXT_LIBS
682 XEXT_CFLAGS
683 XORG_LIBS
684 XORG_CFLAGS
685 LT_SYS_LIBRARY_PATH
686 OTOOL64
687 OTOOL
688 LIPO
689 NMEDIT
690 DSYMUTIL
691 MANIFEST_TOOL
692 RANLIB
693 ac_ct_AR
694 AR
695 DLLTOOL
696 OBJDUMP
697 FILECMD
698 LN_S
699 NM
700 ac_ct_DUMPBIN
701 DUMPBIN
702 LD
703 FGREP
704 EGREP
705 GREP
706 LIBTOOL
707 MAN_SUBSTS
708 XORG_MAN_PAGE
709 ADMIN_MAN_DIR
710 DRIVER_MAN_DIR
711 MISC_MAN_DIR
712 FILE_MAN_DIR
713 LIB_MAN_DIR
714 APP_MAN_DIR
715 ADMIN_MAN_SUFFIX
716 DRIVER_MAN_SUFFIX
717 MISC_MAN_SUFFIX
718 FILE_MAN_SUFFIX
719 LIB_MAN_SUFFIX
720 APP_MAN_SUFFIX
721 SED
722 host_os
723 host_vendor
724 host_cpu
725 host
726 build_os
727 build_vendor
728 build_cpu
729 build
730 INSTALL_CMD
731 PKG_CONFIG_LIBDIR
732 PKG_CONFIG_PATH
733 PKG_CONFIG
734 CHANGELOG_CMD
735 STRICT_CFLAGS
736 CWARNFLAGS
737 BASE_CFLAGS
738 am__fastdepCC_FALSE
739 am__fastdepCC_TRUE
740 CCDEPMODE
741 am__nodep
742 AMDEPBACKSLASH
743 AMDEP_FALSE
744 AMDEP_TRUE
745 am__include
746 DEPDIR
747 OBJEXT
748 EXEEXT
749 ac_ct_CC
750 CPPFLAGS
751 LDFLAGS
752 CFLAGS
753 CC
754 am__xargs_n
755 am__rm_f_notfound
756 AM_BACKSLASH
757 AM_DEFAULT_VERBOSITY
758 AM_DEFAULT_V
759 AM_V
760 CSCOPE
761 ETAGS
762 CTAGS
763 am__untar
764 am__tar
765 AMTAR
766 am__leading_dot
767 SET_MAKE
768 AWK
769 mkdir_p
770 MKDIR_P
771 INSTALL_STRIP_PROGRAM
772 STRIP
773 install_sh
774 MAKEINFO
775 AUTOHEADER
776 AUTOMAKE
777 AUTOCONF
778 ACLOCAL
779 VERSION
780 PACKAGE
781 CYGPATH_W
782 am__isrc
783 INSTALL_DATA
784 INSTALL_SCRIPT
785 INSTALL_PROGRAM
786 target_alias
787 host_alias
788 build_alias
789 LIBS
790 ECHO_T
791 ECHO_N
792 ECHO_C
793 DEFS
794 mandir
795 localedir
796 libdir
797 psdir
798 pdfdir
799 dvidir
800 htmldir
801 infodir
802 docdir
803 oldincludedir
804 includedir
805 runstatedir
806 localstatedir
807 sharedstatedir
808 sysconfdir
809 datadir
810 datarootdir
811 libexecdir
812 sbindir
813 bindir
814 program_transform_name
815 prefix
816 exec_prefix
817 PACKAGE_URL
818 PACKAGE_BUGREPORT
819 PACKAGE_STRING
820 PACKAGE_VERSION
821 PACKAGE_TARNAME
822 PACKAGE_NAME
823 PATH_SEPARATOR
824 SHELL
825 am__quote'
826 ac_subst_files=''
827 ac_user_opts='
828 enable_option_checking
829 enable_silent_rules
830 enable_dependency_tracking
831 enable_selective_werror
832 enable_strict_compilation
833 enable_static
834 enable_shared
835 enable_pic
836 with_pic
837 enable_fast_install
838 enable_aix_soname
839 with_aix_soname
840 with_gnu_ld
841 with_sysroot
842 enable_libtool_lock
843 with_xorg_module_dir
844 enable_dri
845 enable_exa
846 '
847 ac_precious_vars='build_alias
848 host_alias
849 target_alias
850 CC
851 CFLAGS
852 LDFLAGS
853 LIBS
854 CPPFLAGS
855 PKG_CONFIG
856 PKG_CONFIG_PATH
857 PKG_CONFIG_LIBDIR
858 LT_SYS_LIBRARY_PATH
859 XORG_CFLAGS
860 XORG_LIBS
861 XEXT_CFLAGS
862 XEXT_LIBS
863 DRI_CFLAGS
864 DRI_LIBS
865 CPP
866 PCIACCESS_CFLAGS
867 PCIACCESS_LIBS'
868
869
870 # Initialize some variables set by options.
871 ac_init_help=
872 ac_init_version=false
873 ac_unrecognized_opts=
874 ac_unrecognized_sep=
875 # The variables have the same names as the options, with
876 # dashes changed to underlines.
877 cache_file=/dev/null
878 exec_prefix=NONE
879 no_create=
880 no_recursion=
881 prefix=NONE
882 program_prefix=NONE
883 program_suffix=NONE
884 program_transform_name=s,x,x,
885 silent=
886 site=
887 srcdir=
888 verbose=
889 x_includes=NONE
890 x_libraries=NONE
891
892 # Installation directory options.
893 # These are left unexpanded so users can "make install exec_prefix=/foo"
894 # and all the variables that are supposed to be based on exec_prefix
895 # by default will actually change.
896 # Use braces instead of parens because sh, perl, etc. also accept them.
897 # (The list follows the same order as the GNU Coding Standards.)
898 bindir='${exec_prefix}/bin'
899 sbindir='${exec_prefix}/sbin'
900 libexecdir='${exec_prefix}/libexec'
901 datarootdir='${prefix}/share'
902 datadir='${datarootdir}'
903 sysconfdir='${prefix}/etc'
904 sharedstatedir='${prefix}/com'
905 localstatedir='${prefix}/var'
906 runstatedir='${localstatedir}/run'
907 includedir='${prefix}/include'
908 oldincludedir='/usr/include'
909 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
910 infodir='${datarootdir}/info'
911 htmldir='${docdir}'
912 dvidir='${docdir}'
913 pdfdir='${docdir}'
914 psdir='${docdir}'
915 libdir='${exec_prefix}/lib'
916 localedir='${datarootdir}/locale'
917 mandir='${datarootdir}/man'
918
919 ac_prev=
920 ac_dashdash=
921 for ac_option
922 do
923 # If the previous option needs an argument, assign it.
924 if test -n "$ac_prev"; then
925 eval $ac_prev=\$ac_option
926 ac_prev=
927 continue
928 fi
929
930 case $ac_option in
931 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
932 *=) ac_optarg= ;;
933 *) ac_optarg=yes ;;
934 esac
935
936 case $ac_dashdash$ac_option in
937 --)
938 ac_dashdash=yes ;;
939
940 -bindir | --bindir | --bindi | --bind | --bin | --bi)
941 ac_prev=bindir ;;
942 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
943 bindir=$ac_optarg ;;
944
945 -build | --build | --buil | --bui | --bu)
946 ac_prev=build_alias ;;
947 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
948 build_alias=$ac_optarg ;;
949
950 -cache-file | --cache-file | --cache-fil | --cache-fi \
951 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
952 ac_prev=cache_file ;;
953 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
954 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
955 cache_file=$ac_optarg ;;
956
957 --config-cache | -C)
958 cache_file=config.cache ;;
959
960 -datadir | --datadir | --datadi | --datad)
961 ac_prev=datadir ;;
962 -datadir=* | --datadir=* | --datadi=* | --datad=*)
963 datadir=$ac_optarg ;;
964
965 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
966 | --dataroo | --dataro | --datar)
967 ac_prev=datarootdir ;;
968 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
969 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
970 datarootdir=$ac_optarg ;;
971
972 -disable-* | --disable-*)
973 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
974 # Reject names that are not valid shell variable names.
975 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
976 as_fn_error $? "invalid feature name: '$ac_useropt'"
977 ac_useropt_orig=$ac_useropt
978 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
979 case $ac_user_opts in
980 *"
981 "enable_$ac_useropt"
982 "*) ;;
983 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
984 ac_unrecognized_sep=', ';;
985 esac
986 eval enable_$ac_useropt=no ;;
987
988 -docdir | --docdir | --docdi | --doc | --do)
989 ac_prev=docdir ;;
990 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
991 docdir=$ac_optarg ;;
992
993 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
994 ac_prev=dvidir ;;
995 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
996 dvidir=$ac_optarg ;;
997
998 -enable-* | --enable-*)
999 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1000 # Reject names that are not valid shell variable names.
1001 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1002 as_fn_error $? "invalid feature name: '$ac_useropt'"
1003 ac_useropt_orig=$ac_useropt
1004 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1005 case $ac_user_opts in
1006 *"
1007 "enable_$ac_useropt"
1008 "*) ;;
1009 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1010 ac_unrecognized_sep=', ';;
1011 esac
1012 eval enable_$ac_useropt=\$ac_optarg ;;
1013
1014 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1015 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1016 | --exec | --exe | --ex)
1017 ac_prev=exec_prefix ;;
1018 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1019 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1020 | --exec=* | --exe=* | --ex=*)
1021 exec_prefix=$ac_optarg ;;
1022
1023 -gas | --gas | --ga | --g)
1024 # Obsolete; use --with-gas.
1025 with_gas=yes ;;
1026
1027 -help | --help | --hel | --he | -h)
1028 ac_init_help=long ;;
1029 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1030 ac_init_help=recursive ;;
1031 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1032 ac_init_help=short ;;
1033
1034 -host | --host | --hos | --ho)
1035 ac_prev=host_alias ;;
1036 -host=* | --host=* | --hos=* | --ho=*)
1037 host_alias=$ac_optarg ;;
1038
1039 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1040 ac_prev=htmldir ;;
1041 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1042 | --ht=*)
1043 htmldir=$ac_optarg ;;
1044
1045 -includedir | --includedir | --includedi | --included | --include \
1046 | --includ | --inclu | --incl | --inc)
1047 ac_prev=includedir ;;
1048 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1049 | --includ=* | --inclu=* | --incl=* | --inc=*)
1050 includedir=$ac_optarg ;;
1051
1052 -infodir | --infodir | --infodi | --infod | --info | --inf)
1053 ac_prev=infodir ;;
1054 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1055 infodir=$ac_optarg ;;
1056
1057 -libdir | --libdir | --libdi | --libd)
1058 ac_prev=libdir ;;
1059 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1060 libdir=$ac_optarg ;;
1061
1062 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1063 | --libexe | --libex | --libe)
1064 ac_prev=libexecdir ;;
1065 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1066 | --libexe=* | --libex=* | --libe=*)
1067 libexecdir=$ac_optarg ;;
1068
1069 -localedir | --localedir | --localedi | --localed | --locale)
1070 ac_prev=localedir ;;
1071 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1072 localedir=$ac_optarg ;;
1073
1074 -localstatedir | --localstatedir | --localstatedi | --localstated \
1075 | --localstate | --localstat | --localsta | --localst | --locals)
1076 ac_prev=localstatedir ;;
1077 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1078 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1079 localstatedir=$ac_optarg ;;
1080
1081 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1082 ac_prev=mandir ;;
1083 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1084 mandir=$ac_optarg ;;
1085
1086 -nfp | --nfp | --nf)
1087 # Obsolete; use --without-fp.
1088 with_fp=no ;;
1089
1090 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1091 | --no-cr | --no-c | -n)
1092 no_create=yes ;;
1093
1094 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1095 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1096 no_recursion=yes ;;
1097
1098 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1099 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1100 | --oldin | --oldi | --old | --ol | --o)
1101 ac_prev=oldincludedir ;;
1102 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1103 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1104 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1105 oldincludedir=$ac_optarg ;;
1106
1107 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1108 ac_prev=prefix ;;
1109 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1110 prefix=$ac_optarg ;;
1111
1112 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1113 | --program-pre | --program-pr | --program-p)
1114 ac_prev=program_prefix ;;
1115 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1116 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1117 program_prefix=$ac_optarg ;;
1118
1119 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1120 | --program-suf | --program-su | --program-s)
1121 ac_prev=program_suffix ;;
1122 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1123 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1124 program_suffix=$ac_optarg ;;
1125
1126 -program-transform-name | --program-transform-name \
1127 | --program-transform-nam | --program-transform-na \
1128 | --program-transform-n | --program-transform- \
1129 | --program-transform | --program-transfor \
1130 | --program-transfo | --program-transf \
1131 | --program-trans | --program-tran \
1132 | --progr-tra | --program-tr | --program-t)
1133 ac_prev=program_transform_name ;;
1134 -program-transform-name=* | --program-transform-name=* \
1135 | --program-transform-nam=* | --program-transform-na=* \
1136 | --program-transform-n=* | --program-transform-=* \
1137 | --program-transform=* | --program-transfor=* \
1138 | --program-transfo=* | --program-transf=* \
1139 | --program-trans=* | --program-tran=* \
1140 | --progr-tra=* | --program-tr=* | --program-t=*)
1141 program_transform_name=$ac_optarg ;;
1142
1143 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1144 ac_prev=pdfdir ;;
1145 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1146 pdfdir=$ac_optarg ;;
1147
1148 -psdir | --psdir | --psdi | --psd | --ps)
1149 ac_prev=psdir ;;
1150 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1151 psdir=$ac_optarg ;;
1152
1153 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1154 | -silent | --silent | --silen | --sile | --sil)
1155 silent=yes ;;
1156
1157 -runstatedir | --runstatedir | --runstatedi | --runstated \
1158 | --runstate | --runstat | --runsta | --runst | --runs \
1159 | --run | --ru | --r)
1160 ac_prev=runstatedir ;;
1161 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1162 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1163 | --run=* | --ru=* | --r=*)
1164 runstatedir=$ac_optarg ;;
1165
1166 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1167 ac_prev=sbindir ;;
1168 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1169 | --sbi=* | --sb=*)
1170 sbindir=$ac_optarg ;;
1171
1172 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1173 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1174 | --sharedst | --shareds | --shared | --share | --shar \
1175 | --sha | --sh)
1176 ac_prev=sharedstatedir ;;
1177 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1178 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1179 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1180 | --sha=* | --sh=*)
1181 sharedstatedir=$ac_optarg ;;
1182
1183 -site | --site | --sit)
1184 ac_prev=site ;;
1185 -site=* | --site=* | --sit=*)
1186 site=$ac_optarg ;;
1187
1188 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1189 ac_prev=srcdir ;;
1190 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1191 srcdir=$ac_optarg ;;
1192
1193 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1194 | --syscon | --sysco | --sysc | --sys | --sy)
1195 ac_prev=sysconfdir ;;
1196 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1197 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1198 sysconfdir=$ac_optarg ;;
1199
1200 -target | --target | --targe | --targ | --tar | --ta | --t)
1201 ac_prev=target_alias ;;
1202 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1203 target_alias=$ac_optarg ;;
1204
1205 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1206 verbose=yes ;;
1207
1208 -version | --version | --versio | --versi | --vers | -V)
1209 ac_init_version=: ;;
1210
1211 -with-* | --with-*)
1212 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1213 # Reject names that are not valid shell variable names.
1214 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1215 as_fn_error $? "invalid package name: '$ac_useropt'"
1216 ac_useropt_orig=$ac_useropt
1217 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1218 case $ac_user_opts in
1219 *"
1220 "with_$ac_useropt"
1221 "*) ;;
1222 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1223 ac_unrecognized_sep=', ';;
1224 esac
1225 eval with_$ac_useropt=\$ac_optarg ;;
1226
1227 -without-* | --without-*)
1228 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1229 # Reject names that are not valid shell variable names.
1230 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1231 as_fn_error $? "invalid package name: '$ac_useropt'"
1232 ac_useropt_orig=$ac_useropt
1233 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1234 case $ac_user_opts in
1235 *"
1236 "with_$ac_useropt"
1237 "*) ;;
1238 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1239 ac_unrecognized_sep=', ';;
1240 esac
1241 eval with_$ac_useropt=no ;;
1242
1243 --x)
1244 # Obsolete; use --with-x.
1245 with_x=yes ;;
1246
1247 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1248 | --x-incl | --x-inc | --x-in | --x-i)
1249 ac_prev=x_includes ;;
1250 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1251 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1252 x_includes=$ac_optarg ;;
1253
1254 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1255 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1256 ac_prev=x_libraries ;;
1257 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1258 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1259 x_libraries=$ac_optarg ;;
1260
1261 -*) as_fn_error $? "unrecognized option: '$ac_option'
1262 Try '$0 --help' for more information"
1263 ;;
1264
1265 *=*)
1266 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1267 # Reject names that are not valid shell variable names.
1268 case $ac_envvar in #(
1269 '' | [0-9]* | *[!_$as_cr_alnum]* )
1270 as_fn_error $? "invalid variable name: '$ac_envvar'" ;;
1271 esac
1272 eval $ac_envvar=\$ac_optarg
1273 export $ac_envvar ;;
1274
1275 *)
1276 # FIXME: should be removed in autoconf 3.0.
1277 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1278 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1279 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1280 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1281 ;;
1282
1283 esac
1284 done
1285
1286 if test -n "$ac_prev"; then
1287 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1288 as_fn_error $? "missing argument to $ac_option"
1289 fi
1290
1291 if test -n "$ac_unrecognized_opts"; then
1292 case $enable_option_checking in
1293 no) ;;
1294 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1295 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1296 esac
1297 fi
1298
1299 # Check all directory arguments for consistency.
1300 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1301 datadir sysconfdir sharedstatedir localstatedir includedir \
1302 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1303 libdir localedir mandir runstatedir
1304 do
1305 eval ac_val=\$$ac_var
1306 # Remove trailing slashes.
1307 case $ac_val in
1308 */ )
1309 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1310 eval $ac_var=\$ac_val;;
1311 esac
1312 # Be sure to have absolute directory names.
1313 case $ac_val in
1314 [\\/$]* | ?:[\\/]* ) continue;;
1315 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1316 esac
1317 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1318 done
1319
1320 # There might be people who depend on the old broken behavior: '$host'
1321 # used to hold the argument of --host etc.
1322 # FIXME: To remove some day.
1323 build=$build_alias
1324 host=$host_alias
1325 target=$target_alias
1326
1327 # FIXME: To remove some day.
1328 if test "x$host_alias" != x; then
1329 if test "x$build_alias" = x; then
1330 cross_compiling=maybe
1331 elif test "x$build_alias" != "x$host_alias"; then
1332 cross_compiling=yes
1333 fi
1334 fi
1335
1336 ac_tool_prefix=
1337 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1338
1339 test "$silent" = yes && exec 6>/dev/null
1340
1341
1342 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1343 ac_ls_di=`ls -di .` &&
1344 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1345 as_fn_error $? "working directory cannot be determined"
1346 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1347 as_fn_error $? "pwd does not report name of working directory"
1348
1349
1350 # Find the source files, if location was not specified.
1351 if test -z "$srcdir"; then
1352 ac_srcdir_defaulted=yes
1353 # Try the directory containing this script, then the parent directory.
1354 ac_confdir=`$as_dirname -- "$as_myself" ||
1355 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1356 X"$as_myself" : 'X\(//\)[^/]' \| \
1357 X"$as_myself" : 'X\(//\)$' \| \
1358 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1359 printf "%s\n" X"$as_myself" |
1360 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1361 s//\1/
1362 q
1363 }
1364 /^X\(\/\/\)[^/].*/{
1365 s//\1/
1366 q
1367 }
1368 /^X\(\/\/\)$/{
1369 s//\1/
1370 q
1371 }
1372 /^X\(\/\).*/{
1373 s//\1/
1374 q
1375 }
1376 s/.*/./; q'`
1377 srcdir=$ac_confdir
1378 if test ! -r "$srcdir/$ac_unique_file"; then
1379 srcdir=..
1380 fi
1381 else
1382 ac_srcdir_defaulted=no
1383 fi
1384 if test ! -r "$srcdir/$ac_unique_file"; then
1385 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1386 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1387 fi
1388 ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work"
1389 ac_abs_confdir=`(
1390 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1391 pwd)`
1392 # When building in place, set srcdir=.
1393 if test "$ac_abs_confdir" = "$ac_pwd"; then
1394 srcdir=.
1395 fi
1396 # Remove unnecessary trailing slashes from srcdir.
1397 # Double slashes in file names in object file debugging info
1398 # mess up M-x gdb in Emacs.
1399 case $srcdir in
1400 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1401 esac
1402 for ac_var in $ac_precious_vars; do
1403 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1404 eval ac_env_${ac_var}_value=\$${ac_var}
1405 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1406 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1407 done
1408
1409 #
1410 # Report the --help message.
1411 #
1412 if test "$ac_init_help" = "long"; then
1413 # Omit some internal or obsolete options to make the list less imposing.
1414 # This message is too long to be a string in the A/UX 3.1 sh.
1415 cat <<_ACEOF
1416 'configure' configures xf86-video-mach64 6.10.0 to adapt to many kinds of systems.
1417
1418 Usage: $0 [OPTION]... [VAR=VALUE]...
1419
1420 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1421 VAR=VALUE. See below for descriptions of some of the useful variables.
1422
1423 Defaults for the options are specified in brackets.
1424
1425 Configuration:
1426 -h, --help display this help and exit
1427 --help=short display options specific to this package
1428 --help=recursive display the short help of all the included packages
1429 -V, --version display version information and exit
1430 -q, --quiet, --silent do not print 'checking ...' messages
1431 --cache-file=FILE cache test results in FILE [disabled]
1432 -C, --config-cache alias for '--cache-file=config.cache'
1433 -n, --no-create do not create output files
1434 --srcdir=DIR find the sources in DIR [configure dir or '..']
1435
1436 Installation directories:
1437 --prefix=PREFIX install architecture-independent files in PREFIX
1438 [$ac_default_prefix]
1439 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1440 [PREFIX]
1441
1442 By default, 'make install' will install all the files in
1443 '$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify
1444 an installation prefix other than '$ac_default_prefix' using '--prefix',
1445 for instance '--prefix=\$HOME'.
1446
1447 For better control, use the options below.
1448
1449 Fine tuning of the installation directories:
1450 --bindir=DIR user executables [EPREFIX/bin]
1451 --sbindir=DIR system admin executables [EPREFIX/sbin]
1452 --libexecdir=DIR program executables [EPREFIX/libexec]
1453 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1454 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1455 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1456 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1457 --libdir=DIR object code libraries [EPREFIX/lib]
1458 --includedir=DIR C header files [PREFIX/include]
1459 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1460 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1461 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1462 --infodir=DIR info documentation [DATAROOTDIR/info]
1463 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1464 --mandir=DIR man documentation [DATAROOTDIR/man]
1465 --docdir=DIR documentation root
1466 [DATAROOTDIR/doc/xf86-video-mach64]
1467 --htmldir=DIR html documentation [DOCDIR]
1468 --dvidir=DIR dvi documentation [DOCDIR]
1469 --pdfdir=DIR pdf documentation [DOCDIR]
1470 --psdir=DIR ps documentation [DOCDIR]
1471 _ACEOF
1472
1473 cat <<\_ACEOF
1474
1475 Program names:
1476 --program-prefix=PREFIX prepend PREFIX to installed program names
1477 --program-suffix=SUFFIX append SUFFIX to installed program names
1478 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1479
1480 System types:
1481 --build=BUILD configure for building on BUILD [guessed]
1482 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1483 _ACEOF
1484 fi
1485
1486 if test -n "$ac_init_help"; then
1487 case $ac_init_help in
1488 short | recursive ) echo "Configuration of xf86-video-mach64 6.10.0:";;
1489 esac
1490 cat <<\_ACEOF
1491
1492 Optional Features:
1493 --disable-option-checking ignore unrecognized --enable/--with options
1494 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1495 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1496 --enable-silent-rules less verbose build output (undo: "make V=1")
1497 --disable-silent-rules verbose build output (undo: "make V=0")
1498 --enable-dependency-tracking
1499 do not reject slow dependency extractors
1500 --disable-dependency-tracking
1501 speeds up one-time build
1502 --disable-selective-werror
1503 Turn off selective compiler errors. (default:
1504 enabled)
1505 --enable-strict-compilation
1506 Enable all warnings from compiler and make them
1507 errors (default: disabled)
1508 --enable-static[=PKGS] build static libraries [default=no]
1509 --enable-shared[=PKGS] build shared libraries [default=yes]
1510 --enable-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1511 both]
1512 --enable-fast-install[=PKGS]
1513 optimize for fast installation [default=yes]
1514 --enable-aix-soname=aix|svr4|both
1515 shared library versioning (aka "SONAME") variant to
1516 provide on AIX, [default=aix].
1517 --disable-libtool-lock avoid locking (might break parallel builds)
1518 --disable-dri Disable DRI support [[default=auto]]
1519 --disable-exa Disable EXA support [[default=enabled]]
1520
1521 Optional Packages:
1522 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1523 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1524 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1525 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1526 compiler's sysroot if not specified).
1527 --with-xorg-module-dir=DIR
1528 Default xorg module directory
1529 [[default=$libdir/xorg/modules]]
1530
1531 Some influential environment variables:
1532 CC C compiler command
1533 CFLAGS C compiler flags
1534 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1535 nonstandard directory <lib dir>
1536 LIBS libraries to pass to the linker, e.g. -l<library>
1537 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1538 you have headers in a nonstandard directory <include dir>
1539 PKG_CONFIG path to pkg-config utility
1540 PKG_CONFIG_PATH
1541 directories to add to pkg-config's search path
1542 PKG_CONFIG_LIBDIR
1543 path overriding pkg-config's built-in search path
1544 LT_SYS_LIBRARY_PATH
1545 User-defined run-time library search path.
1546 XORG_CFLAGS C compiler flags for XORG, overriding pkg-config
1547 XORG_LIBS linker flags for XORG, overriding pkg-config
1548 XEXT_CFLAGS C compiler flags for XEXT, overriding pkg-config
1549 XEXT_LIBS linker flags for XEXT, overriding pkg-config
1550 DRI_CFLAGS C compiler flags for DRI, overriding pkg-config
1551 DRI_LIBS linker flags for DRI, overriding pkg-config
1552 CPP C preprocessor
1553 PCIACCESS_CFLAGS
1554 C compiler flags for PCIACCESS, overriding pkg-config
1555 PCIACCESS_LIBS
1556 linker flags for PCIACCESS, overriding pkg-config
1557
1558 Use these variables to override the choices made by 'configure' or to help
1559 it to find libraries and programs with nonstandard names/locations.
1560
1561 Report bugs to <https://gitlab.freedesktop.org/xorg/driver/xf86-video-mach64/-/issues>.
1562 _ACEOF
1563 ac_status=$?
1564 fi
1565
1566 if test "$ac_init_help" = "recursive"; then
1567 # If there are subdirs, report their specific --help.
1568 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1569 test -d "$ac_dir" ||
1570 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1571 continue
1572 ac_builddir=.
1573
1574 case "$ac_dir" in
1575 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1576 *)
1577 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1578 # A ".." for each directory in $ac_dir_suffix.
1579 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1580 case $ac_top_builddir_sub in
1581 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1582 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1583 esac ;;
1584 esac
1585 ac_abs_top_builddir=$ac_pwd
1586 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1587 # for backward compatibility:
1588 ac_top_builddir=$ac_top_build_prefix
1589
1590 case $srcdir in
1591 .) # We are building in place.
1592 ac_srcdir=.
1593 ac_top_srcdir=$ac_top_builddir_sub
1594 ac_abs_top_srcdir=$ac_pwd ;;
1595 [\\/]* | ?:[\\/]* ) # Absolute name.
1596 ac_srcdir=$srcdir$ac_dir_suffix;
1597 ac_top_srcdir=$srcdir
1598 ac_abs_top_srcdir=$srcdir ;;
1599 *) # Relative name.
1600 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1601 ac_top_srcdir=$ac_top_build_prefix$srcdir
1602 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1603 esac
1604 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1605
1606 cd "$ac_dir" || { ac_status=$?; continue; }
1607 # Check for configure.gnu first; this name is used for a wrapper for
1608 # Metaconfig's "Configure" on case-insensitive file systems.
1609 if test -f "$ac_srcdir/configure.gnu"; then
1610 echo &&
1611 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1612 elif test -f "$ac_srcdir/configure"; then
1613 echo &&
1614 $SHELL "$ac_srcdir/configure" --help=recursive
1615 else
1616 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1617 fi || ac_status=$?
1618 cd "$ac_pwd" || { ac_status=$?; break; }
1619 done
1620 fi
1621
1622 test -n "$ac_init_help" && exit $ac_status
1623 if $ac_init_version; then
1624 cat <<\_ACEOF
1625 xf86-video-mach64 configure 6.10.0
1626 generated by GNU Autoconf 2.72
1627
1628 Copyright (C) 2023 Free Software Foundation, Inc.
1629 This configure script is free software; the Free Software Foundation
1630 gives unlimited permission to copy, distribute and modify it.
1631 _ACEOF
1632 exit
1633 fi
1634
1635 ## ------------------------ ##
1636 ## Autoconf initialization. ##
1637 ## ------------------------ ##
1638
1639 # ac_fn_c_try_compile LINENO
1640 # --------------------------
1641 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1642 ac_fn_c_try_compile ()
1643 {
1644 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1645 rm -f conftest.$ac_objext conftest.beam
1646 if { { ac_try="$ac_compile"
1647 case "(($ac_try" in
1648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1649 *) ac_try_echo=$ac_try;;
1650 esac
1651 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1652 printf "%s\n" "$ac_try_echo"; } >&5
1653 (eval "$ac_compile") 2>conftest.err
1654 ac_status=$?
1655 if test -s conftest.err; then
1656 grep -v '^ *+' conftest.err >conftest.er1
1657 cat conftest.er1 >&5
1658 mv -f conftest.er1 conftest.err
1659 fi
1660 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1661 test $ac_status = 0; } && {
1662 test -z "$ac_c_werror_flag" ||
1663 test ! -s conftest.err
1664 } && test -s conftest.$ac_objext
1665 then :
1666 ac_retval=0
1667 else case e in #(
1668 e) printf "%s\n" "$as_me: failed program was:" >&5
1669 sed 's/^/| /' conftest.$ac_ext >&5
1670
1671 ac_retval=1 ;;
1672 esac
1673 fi
1674 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1675 as_fn_set_status $ac_retval
1676
1677 } # ac_fn_c_try_compile
1678
1679 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
1680 # ------------------------------------------------------------------
1681 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1682 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
1683 ac_fn_check_decl ()
1684 {
1685 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1686 as_decl_name=`echo $2|sed 's/ *(.*//'`
1687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1688 printf %s "checking whether $as_decl_name is declared... " >&6; }
1689 if eval test \${$3+y}
1690 then :
1691 printf %s "(cached) " >&6
1692 else case e in #(
1693 e) as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1694 eval ac_save_FLAGS=\$$6
1695 as_fn_append $6 " $5"
1696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1697 /* end confdefs.h. */
1698 $4
1699 int
1700 main (void)
1701 {
1702 #ifndef $as_decl_name
1703 #ifdef __cplusplus
1704 (void) $as_decl_use;
1705 #else
1706 (void) $as_decl_name;
1707 #endif
1708 #endif
1709
1710 ;
1711 return 0;
1712 }
1713 _ACEOF
1714 if ac_fn_c_try_compile "$LINENO"
1715 then :
1716 eval "$3=yes"
1717 else case e in #(
1718 e) eval "$3=no" ;;
1719 esac
1720 fi
1721 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1722 eval $6=\$ac_save_FLAGS
1723 ;;
1724 esac
1725 fi
1726 eval ac_res=\$$3
1727 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1728 printf "%s\n" "$ac_res" >&6; }
1729 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1730
1731 } # ac_fn_check_decl
1732
1733 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1734 # -------------------------------------------------------
1735 # Tests whether HEADER exists and can be compiled using the include files in
1736 # INCLUDES, setting the cache variable VAR accordingly.
1737 ac_fn_c_check_header_compile ()
1738 {
1739 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1741 printf %s "checking for $2... " >&6; }
1742 if eval test \${$3+y}
1743 then :
1744 printf %s "(cached) " >&6
1745 else case e in #(
1746 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1747 /* end confdefs.h. */
1748 $4
1749 #include <$2>
1750 _ACEOF
1751 if ac_fn_c_try_compile "$LINENO"
1752 then :
1753 eval "$3=yes"
1754 else case e in #(
1755 e) eval "$3=no" ;;
1756 esac
1757 fi
1758 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1759 esac
1760 fi
1761 eval ac_res=\$$3
1762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1763 printf "%s\n" "$ac_res" >&6; }
1764 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1765
1766 } # ac_fn_c_check_header_compile
1767
1768 # ac_fn_c_try_link LINENO
1769 # -----------------------
1770 # Try to link conftest.$ac_ext, and return whether this succeeded.
1771 ac_fn_c_try_link ()
1772 {
1773 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1774 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1775 if { { ac_try="$ac_link"
1776 case "(($ac_try" in
1777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1778 *) ac_try_echo=$ac_try;;
1779 esac
1780 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1781 printf "%s\n" "$ac_try_echo"; } >&5
1782 (eval "$ac_link") 2>conftest.err
1783 ac_status=$?
1784 if test -s conftest.err; then
1785 grep -v '^ *+' conftest.err >conftest.er1
1786 cat conftest.er1 >&5
1787 mv -f conftest.er1 conftest.err
1788 fi
1789 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1790 test $ac_status = 0; } && {
1791 test -z "$ac_c_werror_flag" ||
1792 test ! -s conftest.err
1793 } && test -s conftest$ac_exeext && {
1794 test "$cross_compiling" = yes ||
1795 test -x conftest$ac_exeext
1796 }
1797 then :
1798 ac_retval=0
1799 else case e in #(
1800 e) printf "%s\n" "$as_me: failed program was:" >&5
1801 sed 's/^/| /' conftest.$ac_ext >&5
1802
1803 ac_retval=1 ;;
1804 esac
1805 fi
1806 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1807 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1808 # interfere with the next link command; also delete a directory that is
1809 # left behind by Apple's compiler. We do this before executing the actions.
1810 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1811 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1812 as_fn_set_status $ac_retval
1813
1814 } # ac_fn_c_try_link
1815
1816 # ac_fn_c_check_func LINENO FUNC VAR
1817 # ----------------------------------
1818 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1819 ac_fn_c_check_func ()
1820 {
1821 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1822 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1823 printf %s "checking for $2... " >&6; }
1824 if eval test \${$3+y}
1825 then :
1826 printf %s "(cached) " >&6
1827 else case e in #(
1828 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1829 /* end confdefs.h. */
1830 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1831 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1832 #define $2 innocuous_$2
1833
1834 /* System header to define __stub macros and hopefully few prototypes,
1835 which can conflict with char $2 (void); below. */
1836
1837 #include <limits.h>
1838 #undef $2
1839
1840 /* Override any GCC internal prototype to avoid an error.
1841 Use char because int might match the return type of a GCC
1842 builtin and then its argument prototype would still apply. */
1843 #ifdef __cplusplus
1844 extern "C"
1845 #endif
1846 char $2 (void);
1847 /* The GNU C library defines this for functions which it implements
1848 to always fail with ENOSYS. Some functions are actually named
1849 something starting with __ and the normal name is an alias. */
1850 #if defined __stub_$2 || defined __stub___$2
1851 choke me
1852 #endif
1853
1854 int
1855 main (void)
1856 {
1857 return $2 ();
1858 ;
1859 return 0;
1860 }
1861 _ACEOF
1862 if ac_fn_c_try_link "$LINENO"
1863 then :
1864 eval "$3=yes"
1865 else case e in #(
1866 e) eval "$3=no" ;;
1867 esac
1868 fi
1869 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1870 conftest$ac_exeext conftest.$ac_ext ;;
1871 esac
1872 fi
1873 eval ac_res=\$$3
1874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1875 printf "%s\n" "$ac_res" >&6; }
1876 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1877
1878 } # ac_fn_c_check_func
1879
1880 # ac_fn_c_try_cpp LINENO
1881 # ----------------------
1882 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1883 ac_fn_c_try_cpp ()
1884 {
1885 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1886 if { { ac_try="$ac_cpp conftest.$ac_ext"
1887 case "(($ac_try" in
1888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1889 *) ac_try_echo=$ac_try;;
1890 esac
1891 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1892 printf "%s\n" "$ac_try_echo"; } >&5
1893 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1894 ac_status=$?
1895 if test -s conftest.err; then
1896 grep -v '^ *+' conftest.err >conftest.er1
1897 cat conftest.er1 >&5
1898 mv -f conftest.er1 conftest.err
1899 fi
1900 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1901 test $ac_status = 0; } > conftest.i && {
1902 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1903 test ! -s conftest.err
1904 }
1905 then :
1906 ac_retval=0
1907 else case e in #(
1908 e) printf "%s\n" "$as_me: failed program was:" >&5
1909 sed 's/^/| /' conftest.$ac_ext >&5
1910
1911 ac_retval=1 ;;
1912 esac
1913 fi
1914 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1915 as_fn_set_status $ac_retval
1916
1917 } # ac_fn_c_try_cpp
1918 ac_configure_args_raw=
1919 for ac_arg
1920 do
1921 case $ac_arg in
1922 *\'*)
1923 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1924 esac
1925 as_fn_append ac_configure_args_raw " '$ac_arg'"
1926 done
1927
1928 case $ac_configure_args_raw in
1929 *$as_nl*)
1930 ac_safe_unquote= ;;
1931 *)
1932 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
1933 ac_unsafe_a="$ac_unsafe_z#~"
1934 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1935 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1936 esac
1937
1938 cat >config.log <<_ACEOF
1939 This file contains any messages produced by compilers while
1940 running configure, to aid debugging if configure makes a mistake.
1941
1942 It was created by xf86-video-mach64 $as_me 6.10.0, which was
1943 generated by GNU Autoconf 2.72. Invocation command line was
1944
1945 $ $0$ac_configure_args_raw
1946
1947 _ACEOF
1948 exec 5>>config.log
1949 {
1950 cat <<_ASUNAME
1951 ## --------- ##
1952 ## Platform. ##
1953 ## --------- ##
1954
1955 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1956 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1957 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1958 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1959 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1960
1961 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1962 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1963
1964 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1965 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1966 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1967 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1968 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1969 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1970 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1971
1972 _ASUNAME
1973
1974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1975 for as_dir in $PATH
1976 do
1977 IFS=$as_save_IFS
1978 case $as_dir in #(((
1979 '') as_dir=./ ;;
1980 */) ;;
1981 *) as_dir=$as_dir/ ;;
1982 esac
1983 printf "%s\n" "PATH: $as_dir"
1984 done
1985 IFS=$as_save_IFS
1986
1987 } >&5
1988
1989 cat >&5 <<_ACEOF
1990
1991
1992 ## ----------- ##
1993 ## Core tests. ##
1994 ## ----------- ##
1995
1996 _ACEOF
1997
1998
1999 # Keep a trace of the command line.
2000 # Strip out --no-create and --no-recursion so they do not pile up.
2001 # Strip out --silent because we don't want to record it for future runs.
2002 # Also quote any args containing shell meta-characters.
2003 # Make two passes to allow for proper duplicate-argument suppression.
2004 ac_configure_args=
2005 ac_configure_args0=
2006 ac_configure_args1=
2007 ac_must_keep_next=false
2008 for ac_pass in 1 2
2009 do
2010 for ac_arg
2011 do
2012 case $ac_arg in
2013 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2014 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2015 | -silent | --silent | --silen | --sile | --sil)
2016 continue ;;
2017 *\'*)
2018 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2019 esac
2020 case $ac_pass in
2021 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2022 2)
2023 as_fn_append ac_configure_args1 " '$ac_arg'"
2024 if test $ac_must_keep_next = true; then
2025 ac_must_keep_next=false # Got value, back to normal.
2026 else
2027 case $ac_arg in
2028 *=* | --config-cache | -C | -disable-* | --disable-* \
2029 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2030 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2031 | -with-* | --with-* | -without-* | --without-* | --x)
2032 case "$ac_configure_args0 " in
2033 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2034 esac
2035 ;;
2036 -* ) ac_must_keep_next=true ;;
2037 esac
2038 fi
2039 as_fn_append ac_configure_args " '$ac_arg'"
2040 ;;
2041 esac
2042 done
2043 done
2044 { ac_configure_args0=; unset ac_configure_args0;}
2045 { ac_configure_args1=; unset ac_configure_args1;}
2046
2047 # When interrupted or exit'd, cleanup temporary files, and complete
2048 # config.log. We remove comments because anyway the quotes in there
2049 # would cause problems or look ugly.
2050 # WARNING: Use '\'' to represent an apostrophe within the trap.
2051 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2052 trap 'exit_status=$?
2053 # Sanitize IFS.
2054 IFS=" "" $as_nl"
2055 # Save into config.log some information that might help in debugging.
2056 {
2057 echo
2058
2059 printf "%s\n" "## ---------------- ##
2060 ## Cache variables. ##
2061 ## ---------------- ##"
2062 echo
2063 # The following way of writing the cache mishandles newlines in values,
2064 (
2065 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2066 eval ac_val=\$$ac_var
2067 case $ac_val in #(
2068 *${as_nl}*)
2069 case $ac_var in #(
2070 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2071 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2072 esac
2073 case $ac_var in #(
2074 _ | IFS | as_nl) ;; #(
2075 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2076 *) { eval $ac_var=; unset $ac_var;} ;;
2077 esac ;;
2078 esac
2079 done
2080 (set) 2>&1 |
2081 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2082 *${as_nl}ac_space=\ *)
2083 sed -n \
2084 "s/'\''/'\''\\\\'\'''\''/g;
2085 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2086 ;; #(
2087 *)
2088 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2089 ;;
2090 esac |
2091 sort
2092 )
2093 echo
2094
2095 printf "%s\n" "## ----------------- ##
2096 ## Output variables. ##
2097 ## ----------------- ##"
2098 echo
2099 for ac_var in $ac_subst_vars
2100 do
2101 eval ac_val=\$$ac_var
2102 case $ac_val in
2103 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2104 esac
2105 printf "%s\n" "$ac_var='\''$ac_val'\''"
2106 done | sort
2107 echo
2108
2109 if test -n "$ac_subst_files"; then
2110 printf "%s\n" "## ------------------- ##
2111 ## File substitutions. ##
2112 ## ------------------- ##"
2113 echo
2114 for ac_var in $ac_subst_files
2115 do
2116 eval ac_val=\$$ac_var
2117 case $ac_val in
2118 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2119 esac
2120 printf "%s\n" "$ac_var='\''$ac_val'\''"
2121 done | sort
2122 echo
2123 fi
2124
2125 if test -s confdefs.h; then
2126 printf "%s\n" "## ----------- ##
2127 ## confdefs.h. ##
2128 ## ----------- ##"
2129 echo
2130 cat confdefs.h
2131 echo
2132 fi
2133 test "$ac_signal" != 0 &&
2134 printf "%s\n" "$as_me: caught signal $ac_signal"
2135 printf "%s\n" "$as_me: exit $exit_status"
2136 } >&5
2137 rm -f core *.core core.conftest.* &&
2138 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2139 exit $exit_status
2140 ' 0
2141 for ac_signal in 1 2 13 15; do
2142 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2143 done
2144 ac_signal=0
2145
2146 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2147 rm -f -r conftest* confdefs.h
2148
2149 printf "%s\n" "/* confdefs.h */" > confdefs.h
2150
2151 # Predefined preprocessor variables.
2152
2153 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2154
2155 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2156
2157 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2158
2159 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2160
2161 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2162
2163 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2164
2165
2166 # Let the site file select an alternate cache file if it wants to.
2167 # Prefer an explicitly selected file to automatically selected ones.
2168 if test -n "$CONFIG_SITE"; then
2169 ac_site_files="$CONFIG_SITE"
2170 elif test "x$prefix" != xNONE; then
2171 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2172 else
2173 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2174 fi
2175
2176 for ac_site_file in $ac_site_files
2177 do
2178 case $ac_site_file in #(
2179 */*) :
2180 ;; #(
2181 *) :
2182 ac_site_file=./$ac_site_file ;;
2183 esac
2184 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2186 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2187 sed 's/^/| /' "$ac_site_file" >&5
2188 . "$ac_site_file" \
2189 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2190 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2191 as_fn_error $? "failed to load site script $ac_site_file
2192 See 'config.log' for more details" "$LINENO" 5; }
2193 fi
2194 done
2195
2196 if test -r "$cache_file"; then
2197 # Some versions of bash will fail to source /dev/null (special files
2198 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2199 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2201 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2202 case $cache_file in
2203 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2204 *) . "./$cache_file";;
2205 esac
2206 fi
2207 else
2208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2209 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2210 >$cache_file
2211 fi
2212
2213 # Test code for whether the C compiler supports C89 (global declarations)
2214 ac_c_conftest_c89_globals='
2215 /* Does the compiler advertise C89 conformance?
2216 Do not test the value of __STDC__, because some compilers set it to 0
2217 while being otherwise adequately conformant. */
2218 #if !defined __STDC__
2219 # error "Compiler does not advertise C89 conformance"
2220 #endif
2221
2222 #include <stddef.h>
2223 #include <stdarg.h>
2224 struct stat;
2225 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2226 struct buf { int x; };
2227 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2228 static char *e (char **p, int i)
2229 {
2230 return p[i];
2231 }
2232 static char *f (char * (*g) (char **, int), char **p, ...)
2233 {
2234 char *s;
2235 va_list v;
2236 va_start (v,p);
2237 s = g (p, va_arg (v,int));
2238 va_end (v);
2239 return s;
2240 }
2241
2242 /* C89 style stringification. */
2243 #define noexpand_stringify(a) #a
2244 const char *stringified = noexpand_stringify(arbitrary+token=sequence);
2245
2246 /* C89 style token pasting. Exercises some of the corner cases that
2247 e.g. old MSVC gets wrong, but not very hard. */
2248 #define noexpand_concat(a,b) a##b
2249 #define expand_concat(a,b) noexpand_concat(a,b)
2250 extern int vA;
2251 extern int vbee;
2252 #define aye A
2253 #define bee B
2254 int *pvA = &expand_concat(v,aye);
2255 int *pvbee = &noexpand_concat(v,bee);
2256
2257 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2258 function prototypes and stuff, but not \xHH hex character constants.
2259 These do not provoke an error unfortunately, instead are silently treated
2260 as an "x". The following induces an error, until -std is added to get
2261 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2262 array size at least. It is necessary to write \x00 == 0 to get something
2263 that is true only with -std. */
2264 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2265
2266 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2267 inside strings and character constants. */
2268 #define FOO(x) '\''x'\''
2269 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2270
2271 int test (int i, double x);
2272 struct s1 {int (*f) (int a);};
2273 struct s2 {int (*f) (double a);};
2274 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2275 int, int);'
2276
2277 # Test code for whether the C compiler supports C89 (body of main).
2278 ac_c_conftest_c89_main='
2279 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2280 '
2281
2282 # Test code for whether the C compiler supports C99 (global declarations)
2283 ac_c_conftest_c99_globals='
2284 /* Does the compiler advertise C99 conformance? */
2285 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2286 # error "Compiler does not advertise C99 conformance"
2287 #endif
2288
2289 // See if C++-style comments work.
2290
2291 #include <stdbool.h>
2292 extern int puts (const char *);
2293 extern int printf (const char *, ...);
2294 extern int dprintf (int, const char *, ...);
2295 extern void *malloc (size_t);
2296 extern void free (void *);
2297
2298 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2299 // dprintf is used instead of fprintf to avoid needing to declare
2300 // FILE and stderr.
2301 #define debug(...) dprintf (2, __VA_ARGS__)
2302 #define showlist(...) puts (#__VA_ARGS__)
2303 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2304 static void
2305 test_varargs_macros (void)
2306 {
2307 int x = 1234;
2308 int y = 5678;
2309 debug ("Flag");
2310 debug ("X = %d\n", x);
2311 showlist (The first, second, and third items.);
2312 report (x>y, "x is %d but y is %d", x, y);
2313 }
2314
2315 // Check long long types.
2316 #define BIG64 18446744073709551615ull
2317 #define BIG32 4294967295ul
2318 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2319 #if !BIG_OK
2320 #error "your preprocessor is broken"
2321 #endif
2322 #if BIG_OK
2323 #else
2324 #error "your preprocessor is broken"
2325 #endif
2326 static long long int bignum = -9223372036854775807LL;
2327 static unsigned long long int ubignum = BIG64;
2328
2329 struct incomplete_array
2330 {
2331 int datasize;
2332 double data[];
2333 };
2334
2335 struct named_init {
2336 int number;
2337 const wchar_t *name;
2338 double average;
2339 };
2340
2341 typedef const char *ccp;
2342
2343 static inline int
2344 test_restrict (ccp restrict text)
2345 {
2346 // Iterate through items via the restricted pointer.
2347 // Also check for declarations in for loops.
2348 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2349 continue;
2350 return 0;
2351 }
2352
2353 // Check varargs and va_copy.
2354 static bool
2355 test_varargs (const char *format, ...)
2356 {
2357 va_list args;
2358 va_start (args, format);
2359 va_list args_copy;
2360 va_copy (args_copy, args);
2361
2362 const char *str = "";
2363 int number = 0;
2364 float fnumber = 0;
2365
2366 while (*format)
2367 {
2368 switch (*format++)
2369 {
2370 case '\''s'\'': // string
2371 str = va_arg (args_copy, const char *);
2372 break;
2373 case '\''d'\'': // int
2374 number = va_arg (args_copy, int);
2375 break;
2376 case '\''f'\'': // float
2377 fnumber = va_arg (args_copy, double);
2378 break;
2379 default:
2380 break;
2381 }
2382 }
2383 va_end (args_copy);
2384 va_end (args);
2385
2386 return *str && number && fnumber;
2387 }
2388 '
2389
2390 # Test code for whether the C compiler supports C99 (body of main).
2391 ac_c_conftest_c99_main='
2392 // Check bool.
2393 _Bool success = false;
2394 success |= (argc != 0);
2395
2396 // Check restrict.
2397 if (test_restrict ("String literal") == 0)
2398 success = true;
2399 char *restrict newvar = "Another string";
2400
2401 // Check varargs.
2402 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2403 test_varargs_macros ();
2404
2405 // Check flexible array members.
2406 struct incomplete_array *ia =
2407 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2408 ia->datasize = 10;
2409 for (int i = 0; i < ia->datasize; ++i)
2410 ia->data[i] = i * 1.234;
2411 // Work around memory leak warnings.
2412 free (ia);
2413
2414 // Check named initializers.
2415 struct named_init ni = {
2416 .number = 34,
2417 .name = L"Test wide string",
2418 .average = 543.34343,
2419 };
2420
2421 ni.number = 58;
2422
2423 int dynamic_array[ni.number];
2424 dynamic_array[0] = argv[0][0];
2425 dynamic_array[ni.number - 1] = 543;
2426
2427 // work around unused variable warnings
2428 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2429 || dynamic_array[ni.number - 1] != 543);
2430 '
2431
2432 # Test code for whether the C compiler supports C11 (global declarations)
2433 ac_c_conftest_c11_globals='
2434 /* Does the compiler advertise C11 conformance? */
2435 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2436 # error "Compiler does not advertise C11 conformance"
2437 #endif
2438
2439 // Check _Alignas.
2440 char _Alignas (double) aligned_as_double;
2441 char _Alignas (0) no_special_alignment;
2442 extern char aligned_as_int;
2443 char _Alignas (0) _Alignas (int) aligned_as_int;
2444
2445 // Check _Alignof.
2446 enum
2447 {
2448 int_alignment = _Alignof (int),
2449 int_array_alignment = _Alignof (int[100]),
2450 char_alignment = _Alignof (char)
2451 };
2452 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2453
2454 // Check _Noreturn.
2455 int _Noreturn does_not_return (void) { for (;;) continue; }
2456
2457 // Check _Static_assert.
2458 struct test_static_assert
2459 {
2460 int x;
2461 _Static_assert (sizeof (int) <= sizeof (long int),
2462 "_Static_assert does not work in struct");
2463 long int y;
2464 };
2465
2466 // Check UTF-8 literals.
2467 #define u8 syntax error!
2468 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2469
2470 // Check duplicate typedefs.
2471 typedef long *long_ptr;
2472 typedef long int *long_ptr;
2473 typedef long_ptr long_ptr;
2474
2475 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2476 struct anonymous
2477 {
2478 union {
2479 struct { int i; int j; };
2480 struct { int k; long int l; } w;
2481 };
2482 int m;
2483 } v1;
2484 '
2485
2486 # Test code for whether the C compiler supports C11 (body of main).
2487 ac_c_conftest_c11_main='
2488 _Static_assert ((offsetof (struct anonymous, i)
2489 == offsetof (struct anonymous, w.k)),
2490 "Anonymous union alignment botch");
2491 v1.i = 2;
2492 v1.w.k = 5;
2493 ok |= v1.i != 5;
2494 '
2495
2496 # Test code for whether the C compiler supports C11 (complete).
2497 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2498 ${ac_c_conftest_c99_globals}
2499 ${ac_c_conftest_c11_globals}
2500
2501 int
2502 main (int argc, char **argv)
2503 {
2504 int ok = 0;
2505 ${ac_c_conftest_c89_main}
2506 ${ac_c_conftest_c99_main}
2507 ${ac_c_conftest_c11_main}
2508 return ok;
2509 }
2510 "
2511
2512 # Test code for whether the C compiler supports C99 (complete).
2513 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2514 ${ac_c_conftest_c99_globals}
2515
2516 int
2517 main (int argc, char **argv)
2518 {
2519 int ok = 0;
2520 ${ac_c_conftest_c89_main}
2521 ${ac_c_conftest_c99_main}
2522 return ok;
2523 }
2524 "
2525
2526 # Test code for whether the C compiler supports C89 (complete).
2527 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2528
2529 int
2530 main (int argc, char **argv)
2531 {
2532 int ok = 0;
2533 ${ac_c_conftest_c89_main}
2534 return ok;
2535 }
2536 "
2537
2538 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2539 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2540 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2541 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2542 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2543 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2544 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2545 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2546 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2547
2548 # Auxiliary files required by this configure script.
2549 ac_aux_files="ltmain.sh config.guess config.sub compile missing install-sh"
2550
2551 # Locations in which to look for auxiliary files.
2552 ac_aux_dir_candidates="${srcdir}/."
2553
2554 # Search for a directory containing all of the required auxiliary files,
2555 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2556 # If we don't find one directory that contains all the files we need,
2557 # we report the set of missing files from the *first* directory in
2558 # $ac_aux_dir_candidates and give up.
2559 ac_missing_aux_files=""
2560 ac_first_candidate=:
2561 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2563 as_found=false
2564 for as_dir in $ac_aux_dir_candidates
2565 do
2566 IFS=$as_save_IFS
2567 case $as_dir in #(((
2568 '') as_dir=./ ;;
2569 */) ;;
2570 *) as_dir=$as_dir/ ;;
2571 esac
2572 as_found=:
2573
2574 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2575 ac_aux_dir_found=yes
2576 ac_install_sh=
2577 for ac_aux in $ac_aux_files
2578 do
2579 # As a special case, if "install-sh" is required, that requirement
2580 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2581 # and $ac_install_sh is set appropriately for whichever one is found.
2582 if test x"$ac_aux" = x"install-sh"
2583 then
2584 if test -f "${as_dir}install-sh"; then
2585 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2586 ac_install_sh="${as_dir}install-sh -c"
2587 elif test -f "${as_dir}install.sh"; then
2588 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2589 ac_install_sh="${as_dir}install.sh -c"
2590 elif test -f "${as_dir}shtool"; then
2591 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2592 ac_install_sh="${as_dir}shtool install -c"
2593 else
2594 ac_aux_dir_found=no
2595 if $ac_first_candidate; then
2596 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2597 else
2598 break
2599 fi
2600 fi
2601 else
2602 if test -f "${as_dir}${ac_aux}"; then
2603 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2604 else
2605 ac_aux_dir_found=no
2606 if $ac_first_candidate; then
2607 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2608 else
2609 break
2610 fi
2611 fi
2612 fi
2613 done
2614 if test "$ac_aux_dir_found" = yes; then
2615 ac_aux_dir="$as_dir"
2616 break
2617 fi
2618 ac_first_candidate=false
2619
2620 as_found=false
2621 done
2622 IFS=$as_save_IFS
2623 if $as_found
2624 then :
2625
2626 else case e in #(
2627 e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;;
2628 esac
2629 fi
2630
2631
2632 # These three variables are undocumented and unsupported,
2633 # and are intended to be withdrawn in a future Autoconf release.
2634 # They can cause serious problems if a builder's source tree is in a directory
2635 # whose full name contains unusual characters.
2636 if test -f "${ac_aux_dir}config.guess"; then
2637 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2638 fi
2639 if test -f "${ac_aux_dir}config.sub"; then
2640 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2641 fi
2642 if test -f "$ac_aux_dir/configure"; then
2643 ac_configure="$SHELL ${ac_aux_dir}configure"
2644 fi
2645
2646 # Check that the precious variables saved in the cache have kept the same
2647 # value.
2648 ac_cache_corrupted=false
2649 for ac_var in $ac_precious_vars; do
2650 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2651 eval ac_new_set=\$ac_env_${ac_var}_set
2652 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2653 eval ac_new_val=\$ac_env_${ac_var}_value
2654 case $ac_old_set,$ac_new_set in
2655 set,)
2656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5
2657 printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;}
2658 ac_cache_corrupted=: ;;
2659 ,set)
2660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5
2661 printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;}
2662 ac_cache_corrupted=: ;;
2663 ,);;
2664 *)
2665 if test "x$ac_old_val" != "x$ac_new_val"; then
2666 # differences in whitespace do not lead to failure.
2667 ac_old_val_w=`echo x $ac_old_val`
2668 ac_new_val_w=`echo x $ac_new_val`
2669 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5
2671 printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;}
2672 ac_cache_corrupted=:
2673 else
2674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5
2675 printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;}
2676 eval $ac_var=\$ac_old_val
2677 fi
2678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5
2679 printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;}
2680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5
2681 printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;}
2682 fi;;
2683 esac
2684 # Pass precious variables to config.status.
2685 if test "$ac_new_set" = set; then
2686 case $ac_new_val in
2687 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2688 *) ac_arg=$ac_var=$ac_new_val ;;
2689 esac
2690 case " $ac_configure_args " in
2691 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2692 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2693 esac
2694 fi
2695 done
2696 if $ac_cache_corrupted; then
2697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2698 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2700 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2701 as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file'
2702 and start over" "$LINENO" 5
2703 fi
2704 ## -------------------- ##
2705 ## Main body of script. ##
2706 ## -------------------- ##
2707
2708 ac_ext=c
2709 ac_cpp='$CPP $CPPFLAGS'
2710 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2711 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2712 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2713
2714
2715
2716 ac_config_headers="$ac_config_headers config.h"
2717
2718
2719
2720 # Initialize Automake
2721 am__api_version='1.17'
2722
2723
2724
2725 # Find a good install program. We prefer a C program (faster),
2726 # so one script is as good as another. But avoid the broken or
2727 # incompatible versions:
2728 # SysV /etc/install, /usr/sbin/install
2729 # SunOS /usr/etc/install
2730 # IRIX /sbin/install
2731 # AIX /bin/install
2732 # AmigaOS /C/install, which installs bootblocks on floppy discs
2733 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2734 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2735 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2736 # OS/2's system install, which has a completely different semantic
2737 # ./install, which can be erroneously created by make from ./install.sh.
2738 # Reject install programs that cannot install multiple files.
2739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2740 printf %s "checking for a BSD-compatible install... " >&6; }
2741 if test -z "$INSTALL"; then
2742 if test ${ac_cv_path_install+y}
2743 then :
2744 printf %s "(cached) " >&6
2745 else case e in #(
2746 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2747 for as_dir in $PATH
2748 do
2749 IFS=$as_save_IFS
2750 case $as_dir in #(((
2751 '') as_dir=./ ;;
2752 */) ;;
2753 *) as_dir=$as_dir/ ;;
2754 esac
2755 # Account for fact that we put trailing slashes in our PATH walk.
2756 case $as_dir in #((
2757 ./ | /[cC]/* | \
2758 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2759 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2760 /usr/ucb/* ) ;;
2761 *)
2762 # OSF1 and SCO ODT 3.0 have their own names for install.
2763 # Don't use installbsd from OSF since it installs stuff as root
2764 # by default.
2765 for ac_prog in ginstall scoinst install; do
2766 for ac_exec_ext in '' $ac_executable_extensions; do
2767 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
2768 if test $ac_prog = install &&
2769 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2770 # AIX install. It has an incompatible calling convention.
2771 :
2772 elif test $ac_prog = install &&
2773 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2774 # program-specific install script used by HP pwplus--don't use.
2775 :
2776 else
2777 rm -rf conftest.one conftest.two conftest.dir
2778 echo one > conftest.one
2779 echo two > conftest.two
2780 mkdir conftest.dir
2781 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
2782 test -s conftest.one && test -s conftest.two &&
2783 test -s conftest.dir/conftest.one &&
2784 test -s conftest.dir/conftest.two
2785 then
2786 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
2787 break 3
2788 fi
2789 fi
2790 fi
2791 done
2792 done
2793 ;;
2794 esac
2795
2796 done
2797 IFS=$as_save_IFS
2798
2799 rm -rf conftest.one conftest.two conftest.dir
2800 ;;
2801 esac
2802 fi
2803 if test ${ac_cv_path_install+y}; then
2804 INSTALL=$ac_cv_path_install
2805 else
2806 # As a last resort, use the slow shell script. Don't cache a
2807 # value for INSTALL within a source directory, because that will
2808 # break other packages using the cache if that directory is
2809 # removed, or if the value is a relative name.
2810 INSTALL=$ac_install_sh
2811 fi
2812 fi
2813 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2814 printf "%s\n" "$INSTALL" >&6; }
2815
2816 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2817 # It thinks the first close brace ends the variable substitution.
2818 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2819
2820 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2821
2822 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2823
2824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether sleep supports fractional seconds" >&5
2825 printf %s "checking whether sleep supports fractional seconds... " >&6; }
2826 if test ${am_cv_sleep_fractional_seconds+y}
2827 then :
2828 printf %s "(cached) " >&6
2829 else case e in #(
2830 e) if sleep 0.001 2>/dev/null
2831 then :
2832 am_cv_sleep_fractional_seconds=yes
2833 else case e in #(
2834 e) am_cv_sleep_fractional_seconds=no ;;
2835 esac
2836 fi
2837 ;;
2838 esac
2839 fi
2840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_sleep_fractional_seconds" >&5
2841 printf "%s\n" "$am_cv_sleep_fractional_seconds" >&6; }
2842
2843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking filesystem timestamp resolution" >&5
2844 printf %s "checking filesystem timestamp resolution... " >&6; }
2845 if test ${am_cv_filesystem_timestamp_resolution+y}
2846 then :
2847 printf %s "(cached) " >&6
2848 else case e in #(
2849 e) # Default to the worst case.
2850 am_cv_filesystem_timestamp_resolution=2
2851
2852 # Only try to go finer than 1 sec if sleep can do it.
2853 # Don't try 1 sec, because if 0.01 sec and 0.1 sec don't work,
2854 # - 1 sec is not much of a win compared to 2 sec, and
2855 # - it takes 2 seconds to perform the test whether 1 sec works.
2856 #
2857 # Instead, just use the default 2s on platforms that have 1s resolution,
2858 # accept the extra 1s delay when using $sleep in the Automake tests, in
2859 # exchange for not incurring the 2s delay for running the test for all
2860 # packages.
2861 #
2862 am_try_resolutions=
2863 if test "$am_cv_sleep_fractional_seconds" = yes; then
2864 # Even a millisecond often causes a bunch of false positives,
2865 # so just try a hundredth of a second. The time saved between .001 and
2866 # .01 is not terribly consequential.
2867 am_try_resolutions="0.01 0.1 $am_try_resolutions"
2868 fi
2869
2870 # In order to catch current-generation FAT out, we must *modify* files
2871 # that already exist; the *creation* timestamp is finer. Use names
2872 # that make ls -t sort them differently when they have equal
2873 # timestamps than when they have distinct timestamps, keeping
2874 # in mind that ls -t prints the *newest* file first.
2875 rm -f conftest.ts?
2876 : > conftest.ts1
2877 : > conftest.ts2
2878 : > conftest.ts3
2879
2880 # Make sure ls -t actually works. Do 'set' in a subshell so we don't
2881 # clobber the current shell's arguments. (Outer-level square brackets
2882 # are removed by m4; they're present so that m4 does not expand
2883 # <dollar><star>; be careful, easy to get confused.)
2884 if (
2885 set X `ls -t conftest.ts[12]` &&
2886 {
2887 test "$*" != "X conftest.ts1 conftest.ts2" ||
2888 test "$*" != "X conftest.ts2 conftest.ts1";
2889 }
2890 ); then :; else
2891 # If neither matched, then we have a broken ls. This can happen
2892 # if, for instance, CONFIG_SHELL is bash and it inherits a
2893 # broken ls alias from the environment. This has actually
2894 # happened. Such a system could not be considered "sane".
2895 printf "%s\n" ""Bad output from ls -t: \"`ls -t conftest.ts[12]`\""" >&5
2896 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2897 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2898 as_fn_error $? "ls -t produces unexpected output.
2899 Make sure there is not a broken ls alias in your environment.
2900 See 'config.log' for more details" "$LINENO" 5; }
2901 fi
2902
2903 for am_try_res in $am_try_resolutions; do
2904 # Any one fine-grained sleep might happen to cross the boundary
2905 # between two values of a coarser actual resolution, but if we do
2906 # two fine-grained sleeps in a row, at least one of them will fall
2907 # entirely within a coarse interval.
2908 echo alpha > conftest.ts1
2909 sleep $am_try_res
2910 echo beta > conftest.ts2
2911 sleep $am_try_res
2912 echo gamma > conftest.ts3
2913
2914 # We assume that 'ls -t' will make use of high-resolution
2915 # timestamps if the operating system supports them at all.
2916 if (set X `ls -t conftest.ts?` &&
2917 test "$2" = conftest.ts3 &&
2918 test "$3" = conftest.ts2 &&
2919 test "$4" = conftest.ts1); then
2920 #
2921 # Ok, ls -t worked. If we're at a resolution of 1 second, we're done,
2922 # because we don't need to test make.
2923 make_ok=true
2924 if test $am_try_res != 1; then
2925 # But if we've succeeded so far with a subsecond resolution, we
2926 # have one more thing to check: make. It can happen that
2927 # everything else supports the subsecond mtimes, but make doesn't;
2928 # notably on macOS, which ships make 3.81 from 2006 (the last one
2929 # released under GPLv2). https://bugs.gnu.org/68808
2930 #
2931 # We test $MAKE if it is defined in the environment, else "make".
2932 # It might get overridden later, but our hope is that in practice
2933 # it does not matter: it is the system "make" which is (by far)
2934 # the most likely to be broken, whereas if the user overrides it,
2935 # probably they did so with a better, or at least not worse, make.
2936 # https://lists.gnu.org/archive/html/automake/2024-06/msg00051.html
2937 #
2938 # Create a Makefile (real tab character here):
2939 rm -f conftest.mk
2940 echo 'conftest.ts1: conftest.ts2' >conftest.mk
2941 echo ' touch conftest.ts2' >>conftest.mk
2942 #
2943 # Now, running
2944 # touch conftest.ts1; touch conftest.ts2; make
2945 # should touch ts1 because ts2 is newer. This could happen by luck,
2946 # but most often, it will fail if make's support is insufficient. So
2947 # test for several consecutive successes.
2948 #
2949 # (We reuse conftest.ts[12] because we still want to modify existing
2950 # files, not create new ones, per above.)
2951 n=0
2952 make=${MAKE-make}
2953 until test $n -eq 3; do
2954 echo one > conftest.ts1
2955 sleep $am_try_res
2956 echo two > conftest.ts2 # ts2 should now be newer than ts1
2957 if $make -f conftest.mk | grep 'up to date' >/dev/null; then
2958 make_ok=false
2959 break # out of $n loop
2960 fi
2961 n=`expr $n + 1`
2962 done
2963 fi
2964 #
2965 if $make_ok; then
2966 # Everything we know to check worked out, so call this resolution good.
2967 am_cv_filesystem_timestamp_resolution=$am_try_res
2968 break # out of $am_try_res loop
2969 fi
2970 # Otherwise, we'll go on to check the next resolution.
2971 fi
2972 done
2973 rm -f conftest.ts?
2974 # (end _am_filesystem_timestamp_resolution)
2975 ;;
2976 esac
2977 fi
2978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_filesystem_timestamp_resolution" >&5
2979 printf "%s\n" "$am_cv_filesystem_timestamp_resolution" >&6; }
2980
2981 # This check should not be cached, as it may vary across builds of
2982 # different projects.
2983 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2984 printf %s "checking whether build environment is sane... " >&6; }
2985 # Reject unsafe characters in $srcdir or the absolute working directory
2986 # name. Accept space and tab only in the latter.
2987 am_lf='
2988 '
2989 case `pwd` in
2990 *[\\\"\#\$\&\'\`$am_lf]*)
2991 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2992 esac
2993 case $srcdir in
2994 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2995 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2996 esac
2997
2998 # Do 'set' in a subshell so we don't clobber the current shell's
2999 # arguments. Must try -L first in case configure is actually a
3000 # symlink; some systems play weird games with the mod time of symlinks
3001 # (eg FreeBSD returns the mod time of the symlink's containing
3002 # directory).
3003 am_build_env_is_sane=no
3004 am_has_slept=no
3005 rm -f conftest.file
3006 for am_try in 1 2; do
3007 echo "timestamp, slept: $am_has_slept" > conftest.file
3008 if (
3009 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3010 if test "$*" = "X"; then
3011 # -L didn't work.
3012 set X `ls -t "$srcdir/configure" conftest.file`
3013 fi
3014 test "$2" = conftest.file
3015 ); then
3016 am_build_env_is_sane=yes
3017 break
3018 fi
3019 # Just in case.
3020 sleep "$am_cv_filesystem_timestamp_resolution"
3021 am_has_slept=yes
3022 done
3023
3024 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_build_env_is_sane" >&5
3025 printf "%s\n" "$am_build_env_is_sane" >&6; }
3026 if test "$am_build_env_is_sane" = no; then
3027 as_fn_error $? "newly created file is older than distributed files!
3028 Check your system clock" "$LINENO" 5
3029 fi
3030
3031 # If we didn't sleep, we still need to ensure time stamps of config.status and
3032 # generated files are strictly newer.
3033 am_sleep_pid=
3034 if test -e conftest.file || grep 'slept: no' conftest.file >/dev/null 2>&1
3035 then :
3036
3037 else case e in #(
3038 e) ( sleep "$am_cv_filesystem_timestamp_resolution" ) &
3039 am_sleep_pid=$!
3040 ;;
3041 esac
3042 fi
3043
3044 rm -f conftest.file
3045
3046 test "$program_prefix" != NONE &&
3047 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3048 # Use a double $ so make ignores it.
3049 test "$program_suffix" != NONE &&
3050 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3051 # Double any \ or $.
3052 # By default was 's,x,x', remove it if useless.
3053 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3054 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
3055
3056
3057 # Expand $ac_aux_dir to an absolute path.
3058 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3059
3060
3061 if test x"${MISSING+set}" != xset; then
3062 MISSING="\${SHELL} '$am_aux_dir/missing'"
3063 fi
3064 # Use eval to expand $SHELL
3065 if eval "$MISSING --is-lightweight"; then
3066 am_missing_run="$MISSING "
3067 else
3068 am_missing_run=
3069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3070 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3071 fi
3072
3073 if test x"${install_sh+set}" != xset; then
3074 case $am_aux_dir in
3075 *\ * | *\ *)
3076 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3077 *)
3078 install_sh="\${SHELL} $am_aux_dir/install-sh"
3079 esac
3080 fi
3081
3082 # Installed binaries are usually stripped using 'strip' when the user
3083 # run "make install-strip". However 'strip' might not be the right
3084 # tool to use in cross-compilation environments, therefore Automake
3085 # will honor the 'STRIP' environment variable to overrule this program.
3086 if test "$cross_compiling" != no; then
3087 if test -n "$ac_tool_prefix"; then
3088 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3089 set dummy ${ac_tool_prefix}strip; ac_word=$2
3090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3091 printf %s "checking for $ac_word... " >&6; }
3092 if test ${ac_cv_prog_STRIP+y}
3093 then :
3094 printf %s "(cached) " >&6
3095 else case e in #(
3096 e) if test -n "$STRIP"; then
3097 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3098 else
3099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3100 for as_dir in $PATH
3101 do
3102 IFS=$as_save_IFS
3103 case $as_dir in #(((
3104 '') as_dir=./ ;;
3105 */) ;;
3106 *) as_dir=$as_dir/ ;;
3107 esac
3108 for ac_exec_ext in '' $ac_executable_extensions; do
3109 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3110 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3111 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3112 break 2
3113 fi
3114 done
3115 done
3116 IFS=$as_save_IFS
3117
3118 fi ;;
3119 esac
3120 fi
3121 STRIP=$ac_cv_prog_STRIP
3122 if test -n "$STRIP"; then
3123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3124 printf "%s\n" "$STRIP" >&6; }
3125 else
3126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3127 printf "%s\n" "no" >&6; }
3128 fi
3129
3130
3131 fi
3132 if test -z "$ac_cv_prog_STRIP"; then
3133 ac_ct_STRIP=$STRIP
3134 # Extract the first word of "strip", so it can be a program name with args.
3135 set dummy strip; ac_word=$2
3136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3137 printf %s "checking for $ac_word... " >&6; }
3138 if test ${ac_cv_prog_ac_ct_STRIP+y}
3139 then :
3140 printf %s "(cached) " >&6
3141 else case e in #(
3142 e) if test -n "$ac_ct_STRIP"; then
3143 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3144 else
3145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3146 for as_dir in $PATH
3147 do
3148 IFS=$as_save_IFS
3149 case $as_dir in #(((
3150 '') as_dir=./ ;;
3151 */) ;;
3152 *) as_dir=$as_dir/ ;;
3153 esac
3154 for ac_exec_ext in '' $ac_executable_extensions; do
3155 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3156 ac_cv_prog_ac_ct_STRIP="strip"
3157 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3158 break 2
3159 fi
3160 done
3161 done
3162 IFS=$as_save_IFS
3163
3164 fi ;;
3165 esac
3166 fi
3167 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3168 if test -n "$ac_ct_STRIP"; then
3169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3170 printf "%s\n" "$ac_ct_STRIP" >&6; }
3171 else
3172 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3173 printf "%s\n" "no" >&6; }
3174 fi
3175
3176 if test "x$ac_ct_STRIP" = x; then
3177 STRIP=":"
3178 else
3179 case $cross_compiling:$ac_tool_warned in
3180 yes:)
3181 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3182 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3183 ac_tool_warned=yes ;;
3184 esac
3185 STRIP=$ac_ct_STRIP
3186 fi
3187 else
3188 STRIP="$ac_cv_prog_STRIP"
3189 fi
3190
3191 fi
3192 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3193
3194
3195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
3196 printf %s "checking for a race-free mkdir -p... " >&6; }
3197 if test -z "$MKDIR_P"; then
3198 if test ${ac_cv_path_mkdir+y}
3199 then :
3200 printf %s "(cached) " >&6
3201 else case e in #(
3202 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3203 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3204 do
3205 IFS=$as_save_IFS
3206 case $as_dir in #(((
3207 '') as_dir=./ ;;
3208 */) ;;
3209 *) as_dir=$as_dir/ ;;
3210 esac
3211 for ac_prog in mkdir gmkdir; do
3212 for ac_exec_ext in '' $ac_executable_extensions; do
3213 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
3214 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
3215 'mkdir ('*'coreutils) '* | \
3216 *'BusyBox '* | \
3217 'mkdir (fileutils) '4.1*)
3218 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
3219 break 3;;
3220 esac
3221 done
3222 done
3223 done
3224 IFS=$as_save_IFS
3225 ;;
3226 esac
3227 fi
3228
3229 test -d ./--version && rmdir ./--version
3230 if test ${ac_cv_path_mkdir+y}; then
3231 MKDIR_P="$ac_cv_path_mkdir -p"
3232 else
3233 # As a last resort, use plain mkdir -p,
3234 # in the hope it doesn't have the bugs of ancient mkdir.
3235 MKDIR_P='mkdir -p'
3236 fi
3237 fi
3238 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3239 printf "%s\n" "$MKDIR_P" >&6; }
3240
3241 for ac_prog in gawk mawk nawk awk
3242 do
3243 # Extract the first word of "$ac_prog", so it can be a program name with args.
3244 set dummy $ac_prog; ac_word=$2
3245 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3246 printf %s "checking for $ac_word... " >&6; }
3247 if test ${ac_cv_prog_AWK+y}
3248 then :
3249 printf %s "(cached) " >&6
3250 else case e in #(
3251 e) if test -n "$AWK"; then
3252 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3253 else
3254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3255 for as_dir in $PATH
3256 do
3257 IFS=$as_save_IFS
3258 case $as_dir in #(((
3259 '') as_dir=./ ;;
3260 */) ;;
3261 *) as_dir=$as_dir/ ;;
3262 esac
3263 for ac_exec_ext in '' $ac_executable_extensions; do
3264 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3265 ac_cv_prog_AWK="$ac_prog"
3266 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3267 break 2
3268 fi
3269 done
3270 done
3271 IFS=$as_save_IFS
3272
3273 fi ;;
3274 esac
3275 fi
3276 AWK=$ac_cv_prog_AWK
3277 if test -n "$AWK"; then
3278 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3279 printf "%s\n" "$AWK" >&6; }
3280 else
3281 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3282 printf "%s\n" "no" >&6; }
3283 fi
3284
3285
3286 test -n "$AWK" && break
3287 done
3288
3289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3290 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3291 set x ${MAKE-make}
3292 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3293 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3294 then :
3295 printf %s "(cached) " >&6
3296 else case e in #(
3297 e) cat >conftest.make <<\_ACEOF
3298 SHELL = /bin/sh
3299 all:
3300 @echo '@@@%%%=$(MAKE)=@@@%%%'
3301 _ACEOF
3302 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3303 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3304 *@@@%%%=?*=@@@%%%*)
3305 eval ac_cv_prog_make_${ac_make}_set=yes;;
3306 *)
3307 eval ac_cv_prog_make_${ac_make}_set=no;;
3308 esac
3309 rm -f conftest.make ;;
3310 esac
3311 fi
3312 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3314 printf "%s\n" "yes" >&6; }
3315 SET_MAKE=
3316 else
3317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3318 printf "%s\n" "no" >&6; }
3319 SET_MAKE="MAKE=${MAKE-make}"
3320 fi
3321
3322 rm -rf .tst 2>/dev/null
3323 mkdir .tst 2>/dev/null
3324 if test -d .tst; then
3325 am__leading_dot=.
3326 else
3327 am__leading_dot=_
3328 fi
3329 rmdir .tst 2>/dev/null
3330
3331 AM_DEFAULT_VERBOSITY=1
3332 # Check whether --enable-silent-rules was given.
3333 if test ${enable_silent_rules+y}
3334 then :
3335 enableval=$enable_silent_rules;
3336 fi
3337
3338 am_make=${MAKE-make}
3339 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3340 printf %s "checking whether $am_make supports nested variables... " >&6; }
3341 if test ${am_cv_make_support_nested_variables+y}
3342 then :
3343 printf %s "(cached) " >&6
3344 else case e in #(
3345 e) if printf "%s\n" 'TRUE=$(BAR$(V))
3346 BAR0=false
3347 BAR1=true
3348 V=1
3349 am__doit:
3350 @$(TRUE)
3351 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3352 am_cv_make_support_nested_variables=yes
3353 else
3354 am_cv_make_support_nested_variables=no
3355 fi ;;
3356 esac
3357 fi
3358 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3359 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3360 AM_BACKSLASH='\'
3361
3362 am__rm_f_notfound=
3363 if (rm -f && rm -fr && rm -rf) 2>/dev/null
3364 then :
3365
3366 else case e in #(
3367 e) am__rm_f_notfound='""' ;;
3368 esac
3369 fi
3370
3371
3372 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking xargs -n works" >&5
3373 printf %s "checking xargs -n works... " >&6; }
3374 if test ${am_cv_xargs_n_works+y}
3375 then :
3376 printf %s "(cached) " >&6
3377 else case e in #(
3378 e) if test "`echo 1 2 3 | xargs -n2 echo`" = "1 2
3379 3"
3380 then :
3381 am_cv_xargs_n_works=yes
3382 else case e in #(
3383 e) am_cv_xargs_n_works=no ;;
3384 esac
3385 fi ;;
3386 esac
3387 fi
3388 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_xargs_n_works" >&5
3389 printf "%s\n" "$am_cv_xargs_n_works" >&6; }
3390 if test "$am_cv_xargs_n_works" = yes
3391 then :
3392 am__xargs_n='xargs -n'
3393 else case e in #(
3394 e) am__xargs_n='am__xargs_n () { shift; sed "s/ /\\n/g" | while read am__xargs_n_arg; do "" "$am__xargs_n_arg"; done; }'
3395 ;;
3396 esac
3397 fi
3398
3399 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3400 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3401 # is not polluted with repeated "-I."
3402 am__isrc=' -I$(srcdir)'
3403 # test to see if srcdir already configured
3404 if test -f $srcdir/config.status; then
3405 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3406 fi
3407 fi
3408
3409 # test whether we have cygpath
3410 if test -z "$CYGPATH_W"; then
3411 if (cygpath --version) >/dev/null 2>/dev/null; then
3412 CYGPATH_W='cygpath -w'
3413 else
3414 CYGPATH_W=echo
3415 fi
3416 fi
3417
3418
3419 # Define the identity of the package.
3420 PACKAGE='xf86-video-mach64'
3421 VERSION='6.10.0'
3422
3423
3424 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3425
3426
3427 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3428
3429 # Some tools Automake needs.
3430
3431 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3432
3433
3434 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3435
3436
3437 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3438
3439
3440 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3441
3442
3443 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3444
3445 # For better backward compatibility. To be removed once Automake 1.9.x
3446 # dies out for good. For more background, see:
3447 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3448 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3449 mkdir_p='$(MKDIR_P)'
3450
3451 # We need awk for the "check" target (and possibly the TAP driver). The
3452 # system "awk" is bad on some platforms.
3453 # Always define AMTAR for backward compatibility. Yes, it's still used
3454 # in the wild :-( We should find a proper way to deprecate it ...
3455 AMTAR='$${TAR-tar}'
3456
3457
3458 # We'll loop over all known methods to create a tar archive until one works.
3459 _am_tools='gnutar pax cpio none'
3460
3461 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3462
3463
3464
3465
3466
3467 # Variables for tags utilities; see am/tags.am
3468 if test -z "$CTAGS"; then
3469 CTAGS=ctags
3470 fi
3471
3472 if test -z "$ETAGS"; then
3473 ETAGS=etags
3474 fi
3475
3476 if test -z "$CSCOPE"; then
3477 CSCOPE=cscope
3478 fi
3479
3480
3481
3482
3483
3484
3485
3486
3487 # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
3488
3489
3490
3491
3492
3493
3494
3495
3496
3497
3498
3499
3500
3501
3502
3503
3504
3505
3506
3507
3508 DEPDIR="${am__leading_dot}deps"
3509
3510 ac_config_commands="$ac_config_commands depfiles"
3511
3512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3513 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
3514 cat > confinc.mk << 'END'
3515 am__doit:
3516 @echo this is the am__doit target >confinc.out
3517 .PHONY: am__doit
3518 END
3519 am__include="#"
3520 am__quote=
3521 # BSD make does it like this.
3522 echo '.include "confinc.mk" # ignored' > confmf.BSD
3523 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
3524 echo 'include confinc.mk # ignored' > confmf.GNU
3525 _am_result=no
3526 for s in GNU BSD; do
3527 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3528 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3529 ac_status=$?
3530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3531 (exit $ac_status); }
3532 case $?:`cat confinc.out 2>/dev/null` in #(
3533 '0:this is the am__doit target') :
3534 case $s in #(
3535 BSD) :
3536 am__include='.include' am__quote='"' ;; #(
3537 *) :
3538 am__include='include' am__quote='' ;;
3539 esac ;; #(
3540 *) :
3541 ;;
3542 esac
3543 if test "$am__include" != "#"; then
3544 _am_result="yes ($s style)"
3545 break
3546 fi
3547 done
3548 rm -f confinc.* confmf.*
3549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3550 printf "%s\n" "${_am_result}" >&6; }
3551
3552 # Check whether --enable-dependency-tracking was given.
3553 if test ${enable_dependency_tracking+y}
3554 then :
3555 enableval=$enable_dependency_tracking;
3556 fi
3557
3558 if test "x$enable_dependency_tracking" != xno; then
3559 am_depcomp="$ac_aux_dir/depcomp"
3560 AMDEPBACKSLASH='\'
3561 am__nodep='_no'
3562 fi
3563 if test "x$enable_dependency_tracking" != xno; then
3564 AMDEP_TRUE=
3565 AMDEP_FALSE='#'
3566 else
3567 AMDEP_TRUE='#'
3568 AMDEP_FALSE=
3569 fi
3570
3571
3572 ac_ext=c
3573 ac_cpp='$CPP $CPPFLAGS'
3574 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3575 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3576 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3577 if test -n "$ac_tool_prefix"; then
3578 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3579 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3581 printf %s "checking for $ac_word... " >&6; }
3582 if test ${ac_cv_prog_CC+y}
3583 then :
3584 printf %s "(cached) " >&6
3585 else case e in #(
3586 e) if test -n "$CC"; then
3587 ac_cv_prog_CC="$CC" # Let the user override the test.
3588 else
3589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3590 for as_dir in $PATH
3591 do
3592 IFS=$as_save_IFS
3593 case $as_dir in #(((
3594 '') as_dir=./ ;;
3595 */) ;;
3596 *) as_dir=$as_dir/ ;;
3597 esac
3598 for ac_exec_ext in '' $ac_executable_extensions; do
3599 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3600 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3601 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3602 break 2
3603 fi
3604 done
3605 done
3606 IFS=$as_save_IFS
3607
3608 fi ;;
3609 esac
3610 fi
3611 CC=$ac_cv_prog_CC
3612 if test -n "$CC"; then
3613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3614 printf "%s\n" "$CC" >&6; }
3615 else
3616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3617 printf "%s\n" "no" >&6; }
3618 fi
3619
3620
3621 fi
3622 if test -z "$ac_cv_prog_CC"; then
3623 ac_ct_CC=$CC
3624 # Extract the first word of "gcc", so it can be a program name with args.
3625 set dummy gcc; ac_word=$2
3626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3627 printf %s "checking for $ac_word... " >&6; }
3628 if test ${ac_cv_prog_ac_ct_CC+y}
3629 then :
3630 printf %s "(cached) " >&6
3631 else case e in #(
3632 e) if test -n "$ac_ct_CC"; then
3633 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3634 else
3635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3636 for as_dir in $PATH
3637 do
3638 IFS=$as_save_IFS
3639 case $as_dir in #(((
3640 '') as_dir=./ ;;
3641 */) ;;
3642 *) as_dir=$as_dir/ ;;
3643 esac
3644 for ac_exec_ext in '' $ac_executable_extensions; do
3645 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3646 ac_cv_prog_ac_ct_CC="gcc"
3647 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3648 break 2
3649 fi
3650 done
3651 done
3652 IFS=$as_save_IFS
3653
3654 fi ;;
3655 esac
3656 fi
3657 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3658 if test -n "$ac_ct_CC"; then
3659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3660 printf "%s\n" "$ac_ct_CC" >&6; }
3661 else
3662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3663 printf "%s\n" "no" >&6; }
3664 fi
3665
3666 if test "x$ac_ct_CC" = x; then
3667 CC=""
3668 else
3669 case $cross_compiling:$ac_tool_warned in
3670 yes:)
3671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3672 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3673 ac_tool_warned=yes ;;
3674 esac
3675 CC=$ac_ct_CC
3676 fi
3677 else
3678 CC="$ac_cv_prog_CC"
3679 fi
3680
3681 if test -z "$CC"; then
3682 if test -n "$ac_tool_prefix"; then
3683 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3684 set dummy ${ac_tool_prefix}cc; ac_word=$2
3685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3686 printf %s "checking for $ac_word... " >&6; }
3687 if test ${ac_cv_prog_CC+y}
3688 then :
3689 printf %s "(cached) " >&6
3690 else case e in #(
3691 e) if test -n "$CC"; then
3692 ac_cv_prog_CC="$CC" # Let the user override the test.
3693 else
3694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3695 for as_dir in $PATH
3696 do
3697 IFS=$as_save_IFS
3698 case $as_dir in #(((
3699 '') as_dir=./ ;;
3700 */) ;;
3701 *) as_dir=$as_dir/ ;;
3702 esac
3703 for ac_exec_ext in '' $ac_executable_extensions; do
3704 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3705 ac_cv_prog_CC="${ac_tool_prefix}cc"
3706 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3707 break 2
3708 fi
3709 done
3710 done
3711 IFS=$as_save_IFS
3712
3713 fi ;;
3714 esac
3715 fi
3716 CC=$ac_cv_prog_CC
3717 if test -n "$CC"; then
3718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3719 printf "%s\n" "$CC" >&6; }
3720 else
3721 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3722 printf "%s\n" "no" >&6; }
3723 fi
3724
3725
3726 fi
3727 fi
3728 if test -z "$CC"; then
3729 # Extract the first word of "cc", so it can be a program name with args.
3730 set dummy cc; ac_word=$2
3731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3732 printf %s "checking for $ac_word... " >&6; }
3733 if test ${ac_cv_prog_CC+y}
3734 then :
3735 printf %s "(cached) " >&6
3736 else case e in #(
3737 e) if test -n "$CC"; then
3738 ac_cv_prog_CC="$CC" # Let the user override the test.
3739 else
3740 ac_prog_rejected=no
3741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3742 for as_dir in $PATH
3743 do
3744 IFS=$as_save_IFS
3745 case $as_dir in #(((
3746 '') as_dir=./ ;;
3747 */) ;;
3748 *) as_dir=$as_dir/ ;;
3749 esac
3750 for ac_exec_ext in '' $ac_executable_extensions; do
3751 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3752 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3753 ac_prog_rejected=yes
3754 continue
3755 fi
3756 ac_cv_prog_CC="cc"
3757 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3758 break 2
3759 fi
3760 done
3761 done
3762 IFS=$as_save_IFS
3763
3764 if test $ac_prog_rejected = yes; then
3765 # We found a bogon in the path, so make sure we never use it.
3766 set dummy $ac_cv_prog_CC
3767 shift
3768 if test $# != 0; then
3769 # We chose a different compiler from the bogus one.
3770 # However, it has the same basename, so the bogon will be chosen
3771 # first if we set CC to just the basename; use the full file name.
3772 shift
3773 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3774 fi
3775 fi
3776 fi ;;
3777 esac
3778 fi
3779 CC=$ac_cv_prog_CC
3780 if test -n "$CC"; then
3781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3782 printf "%s\n" "$CC" >&6; }
3783 else
3784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3785 printf "%s\n" "no" >&6; }
3786 fi
3787
3788
3789 fi
3790 if test -z "$CC"; then
3791 if test -n "$ac_tool_prefix"; then
3792 for ac_prog in cl.exe
3793 do
3794 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3795 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3797 printf %s "checking for $ac_word... " >&6; }
3798 if test ${ac_cv_prog_CC+y}
3799 then :
3800 printf %s "(cached) " >&6
3801 else case e in #(
3802 e) if test -n "$CC"; then
3803 ac_cv_prog_CC="$CC" # Let the user override the test.
3804 else
3805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3806 for as_dir in $PATH
3807 do
3808 IFS=$as_save_IFS
3809 case $as_dir in #(((
3810 '') as_dir=./ ;;
3811 */) ;;
3812 *) as_dir=$as_dir/ ;;
3813 esac
3814 for ac_exec_ext in '' $ac_executable_extensions; do
3815 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3816 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3817 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3818 break 2
3819 fi
3820 done
3821 done
3822 IFS=$as_save_IFS
3823
3824 fi ;;
3825 esac
3826 fi
3827 CC=$ac_cv_prog_CC
3828 if test -n "$CC"; then
3829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3830 printf "%s\n" "$CC" >&6; }
3831 else
3832 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3833 printf "%s\n" "no" >&6; }
3834 fi
3835
3836
3837 test -n "$CC" && break
3838 done
3839 fi
3840 if test -z "$CC"; then
3841 ac_ct_CC=$CC
3842 for ac_prog in cl.exe
3843 do
3844 # Extract the first word of "$ac_prog", so it can be a program name with args.
3845 set dummy $ac_prog; ac_word=$2
3846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3847 printf %s "checking for $ac_word... " >&6; }
3848 if test ${ac_cv_prog_ac_ct_CC+y}
3849 then :
3850 printf %s "(cached) " >&6
3851 else case e in #(
3852 e) if test -n "$ac_ct_CC"; then
3853 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3854 else
3855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3856 for as_dir in $PATH
3857 do
3858 IFS=$as_save_IFS
3859 case $as_dir in #(((
3860 '') as_dir=./ ;;
3861 */) ;;
3862 *) as_dir=$as_dir/ ;;
3863 esac
3864 for ac_exec_ext in '' $ac_executable_extensions; do
3865 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3866 ac_cv_prog_ac_ct_CC="$ac_prog"
3867 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3868 break 2
3869 fi
3870 done
3871 done
3872 IFS=$as_save_IFS
3873
3874 fi ;;
3875 esac
3876 fi
3877 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3878 if test -n "$ac_ct_CC"; then
3879 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3880 printf "%s\n" "$ac_ct_CC" >&6; }
3881 else
3882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3883 printf "%s\n" "no" >&6; }
3884 fi
3885
3886
3887 test -n "$ac_ct_CC" && break
3888 done
3889
3890 if test "x$ac_ct_CC" = x; then
3891 CC=""
3892 else
3893 case $cross_compiling:$ac_tool_warned in
3894 yes:)
3895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3896 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3897 ac_tool_warned=yes ;;
3898 esac
3899 CC=$ac_ct_CC
3900 fi
3901 fi
3902
3903 fi
3904 if test -z "$CC"; then
3905 if test -n "$ac_tool_prefix"; then
3906 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3907 set dummy ${ac_tool_prefix}clang; ac_word=$2
3908 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3909 printf %s "checking for $ac_word... " >&6; }
3910 if test ${ac_cv_prog_CC+y}
3911 then :
3912 printf %s "(cached) " >&6
3913 else case e in #(
3914 e) if test -n "$CC"; then
3915 ac_cv_prog_CC="$CC" # Let the user override the test.
3916 else
3917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3918 for as_dir in $PATH
3919 do
3920 IFS=$as_save_IFS
3921 case $as_dir in #(((
3922 '') as_dir=./ ;;
3923 */) ;;
3924 *) as_dir=$as_dir/ ;;
3925 esac
3926 for ac_exec_ext in '' $ac_executable_extensions; do
3927 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3928 ac_cv_prog_CC="${ac_tool_prefix}clang"
3929 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3930 break 2
3931 fi
3932 done
3933 done
3934 IFS=$as_save_IFS
3935
3936 fi ;;
3937 esac
3938 fi
3939 CC=$ac_cv_prog_CC
3940 if test -n "$CC"; then
3941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3942 printf "%s\n" "$CC" >&6; }
3943 else
3944 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3945 printf "%s\n" "no" >&6; }
3946 fi
3947
3948
3949 fi
3950 if test -z "$ac_cv_prog_CC"; then
3951 ac_ct_CC=$CC
3952 # Extract the first word of "clang", so it can be a program name with args.
3953 set dummy clang; ac_word=$2
3954 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3955 printf %s "checking for $ac_word... " >&6; }
3956 if test ${ac_cv_prog_ac_ct_CC+y}
3957 then :
3958 printf %s "(cached) " >&6
3959 else case e in #(
3960 e) if test -n "$ac_ct_CC"; then
3961 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3962 else
3963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3964 for as_dir in $PATH
3965 do
3966 IFS=$as_save_IFS
3967 case $as_dir in #(((
3968 '') as_dir=./ ;;
3969 */) ;;
3970 *) as_dir=$as_dir/ ;;
3971 esac
3972 for ac_exec_ext in '' $ac_executable_extensions; do
3973 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3974 ac_cv_prog_ac_ct_CC="clang"
3975 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3976 break 2
3977 fi
3978 done
3979 done
3980 IFS=$as_save_IFS
3981
3982 fi ;;
3983 esac
3984 fi
3985 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3986 if test -n "$ac_ct_CC"; then
3987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3988 printf "%s\n" "$ac_ct_CC" >&6; }
3989 else
3990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3991 printf "%s\n" "no" >&6; }
3992 fi
3993
3994 if test "x$ac_ct_CC" = x; then
3995 CC=""
3996 else
3997 case $cross_compiling:$ac_tool_warned in
3998 yes:)
3999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4000 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4001 ac_tool_warned=yes ;;
4002 esac
4003 CC=$ac_ct_CC
4004 fi
4005 else
4006 CC="$ac_cv_prog_CC"
4007 fi
4008
4009 fi
4010
4011
4012 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4013 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4014 as_fn_error $? "no acceptable C compiler found in \$PATH
4015 See 'config.log' for more details" "$LINENO" 5; }
4016
4017 # Provide some information about the compiler.
4018 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4019 set X $ac_compile
4020 ac_compiler=$2
4021 for ac_option in --version -v -V -qversion -version; do
4022 { { ac_try="$ac_compiler $ac_option >&5"
4023 case "(($ac_try" in
4024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4025 *) ac_try_echo=$ac_try;;
4026 esac
4027 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4028 printf "%s\n" "$ac_try_echo"; } >&5
4029 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4030 ac_status=$?
4031 if test -s conftest.err; then
4032 sed '10a\
4033 ... rest of stderr output deleted ...
4034 10q' conftest.err >conftest.er1
4035 cat conftest.er1 >&5
4036 fi
4037 rm -f conftest.er1 conftest.err
4038 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4039 test $ac_status = 0; }
4040 done
4041
4042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4043 /* end confdefs.h. */
4044
4045 int
4046 main (void)
4047 {
4048
4049 ;
4050 return 0;
4051 }
4052 _ACEOF
4053 ac_clean_files_save=$ac_clean_files
4054 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4055 # Try to create an executable without -o first, disregard a.out.
4056 # It will help us diagnose broken compilers, and finding out an intuition
4057 # of exeext.
4058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4059 printf %s "checking whether the C compiler works... " >&6; }
4060 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4061
4062 # The possible output files:
4063 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4064
4065 ac_rmfiles=
4066 for ac_file in $ac_files
4067 do
4068 case $ac_file in
4069 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4070 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4071 esac
4072 done
4073 rm -f $ac_rmfiles
4074
4075 if { { ac_try="$ac_link_default"
4076 case "(($ac_try" in
4077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4078 *) ac_try_echo=$ac_try;;
4079 esac
4080 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4081 printf "%s\n" "$ac_try_echo"; } >&5
4082 (eval "$ac_link_default") 2>&5
4083 ac_status=$?
4084 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4085 test $ac_status = 0; }
4086 then :
4087 # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'.
4088 # So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no'
4089 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4090 # so that the user can short-circuit this test for compilers unknown to
4091 # Autoconf.
4092 for ac_file in $ac_files ''
4093 do
4094 test -f "$ac_file" || continue
4095 case $ac_file in
4096 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4097 ;;
4098 [ab].out )
4099 # We found the default executable, but exeext='' is most
4100 # certainly right.
4101 break;;
4102 *.* )
4103 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
4104 then :; else
4105 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4106 fi
4107 # We set ac_cv_exeext here because the later test for it is not
4108 # safe: cross compilers may not add the suffix if given an '-o'
4109 # argument, so we may need to know it at that point already.
4110 # Even if this section looks crufty: it has the advantage of
4111 # actually working.
4112 break;;
4113 * )
4114 break;;
4115 esac
4116 done
4117 test "$ac_cv_exeext" = no && ac_cv_exeext=
4118
4119 else case e in #(
4120 e) ac_file='' ;;
4121 esac
4122 fi
4123 if test -z "$ac_file"
4124 then :
4125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4126 printf "%s\n" "no" >&6; }
4127 printf "%s\n" "$as_me: failed program was:" >&5
4128 sed 's/^/| /' conftest.$ac_ext >&5
4129
4130 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4131 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4132 as_fn_error 77 "C compiler cannot create executables
4133 See 'config.log' for more details" "$LINENO" 5; }
4134 else case e in #(
4135 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4136 printf "%s\n" "yes" >&6; } ;;
4137 esac
4138 fi
4139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4140 printf %s "checking for C compiler default output file name... " >&6; }
4141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4142 printf "%s\n" "$ac_file" >&6; }
4143 ac_exeext=$ac_cv_exeext
4144
4145 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4146 ac_clean_files=$ac_clean_files_save
4147 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4148 printf %s "checking for suffix of executables... " >&6; }
4149 if { { ac_try="$ac_link"
4150 case "(($ac_try" in
4151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4152 *) ac_try_echo=$ac_try;;
4153 esac
4154 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4155 printf "%s\n" "$ac_try_echo"; } >&5
4156 (eval "$ac_link") 2>&5
4157 ac_status=$?
4158 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4159 test $ac_status = 0; }
4160 then :
4161 # If both 'conftest.exe' and 'conftest' are 'present' (well, observable)
4162 # catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will
4163 # work properly (i.e., refer to 'conftest.exe'), while it won't with
4164 # 'rm'.
4165 for ac_file in conftest.exe conftest conftest.*; do
4166 test -f "$ac_file" || continue
4167 case $ac_file in
4168 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4169 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4170 break;;
4171 * ) break;;
4172 esac
4173 done
4174 else case e in #(
4175 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4176 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4177 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4178 See 'config.log' for more details" "$LINENO" 5; } ;;
4179 esac
4180 fi
4181 rm -f conftest conftest$ac_cv_exeext
4182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4183 printf "%s\n" "$ac_cv_exeext" >&6; }
4184
4185 rm -f conftest.$ac_ext
4186 EXEEXT=$ac_cv_exeext
4187 ac_exeext=$EXEEXT
4188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4189 /* end confdefs.h. */
4190 #include <stdio.h>
4191 int
4192 main (void)
4193 {
4194 FILE *f = fopen ("conftest.out", "w");
4195 if (!f)
4196 return 1;
4197 return ferror (f) || fclose (f) != 0;
4198
4199 ;
4200 return 0;
4201 }
4202 _ACEOF
4203 ac_clean_files="$ac_clean_files conftest.out"
4204 # Check that the compiler produces executables we can run. If not, either
4205 # the compiler is broken, or we cross compile.
4206 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4207 printf %s "checking whether we are cross compiling... " >&6; }
4208 if test "$cross_compiling" != yes; then
4209 { { ac_try="$ac_link"
4210 case "(($ac_try" in
4211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4212 *) ac_try_echo=$ac_try;;
4213 esac
4214 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4215 printf "%s\n" "$ac_try_echo"; } >&5
4216 (eval "$ac_link") 2>&5
4217 ac_status=$?
4218 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4219 test $ac_status = 0; }
4220 if { ac_try='./conftest$ac_cv_exeext'
4221 { { case "(($ac_try" in
4222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4223 *) ac_try_echo=$ac_try;;
4224 esac
4225 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4226 printf "%s\n" "$ac_try_echo"; } >&5
4227 (eval "$ac_try") 2>&5
4228 ac_status=$?
4229 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4230 test $ac_status = 0; }; }; then
4231 cross_compiling=no
4232 else
4233 if test "$cross_compiling" = maybe; then
4234 cross_compiling=yes
4235 else
4236 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4237 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4238 as_fn_error 77 "cannot run C compiled programs.
4239 If you meant to cross compile, use '--host'.
4240 See 'config.log' for more details" "$LINENO" 5; }
4241 fi
4242 fi
4243 fi
4244 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4245 printf "%s\n" "$cross_compiling" >&6; }
4246
4247 rm -f conftest.$ac_ext conftest$ac_cv_exeext \
4248 conftest.o conftest.obj conftest.out
4249 ac_clean_files=$ac_clean_files_save
4250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4251 printf %s "checking for suffix of object files... " >&6; }
4252 if test ${ac_cv_objext+y}
4253 then :
4254 printf %s "(cached) " >&6
4255 else case e in #(
4256 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4257 /* end confdefs.h. */
4258
4259 int
4260 main (void)
4261 {
4262
4263 ;
4264 return 0;
4265 }
4266 _ACEOF
4267 rm -f conftest.o conftest.obj
4268 if { { ac_try="$ac_compile"
4269 case "(($ac_try" in
4270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4271 *) ac_try_echo=$ac_try;;
4272 esac
4273 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4274 printf "%s\n" "$ac_try_echo"; } >&5
4275 (eval "$ac_compile") 2>&5
4276 ac_status=$?
4277 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4278 test $ac_status = 0; }
4279 then :
4280 for ac_file in conftest.o conftest.obj conftest.*; do
4281 test -f "$ac_file" || continue;
4282 case $ac_file in
4283 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4284 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4285 break;;
4286 esac
4287 done
4288 else case e in #(
4289 e) printf "%s\n" "$as_me: failed program was:" >&5
4290 sed 's/^/| /' conftest.$ac_ext >&5
4291
4292 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4293 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4294 as_fn_error $? "cannot compute suffix of object files: cannot compile
4295 See 'config.log' for more details" "$LINENO" 5; } ;;
4296 esac
4297 fi
4298 rm -f conftest.$ac_cv_objext conftest.$ac_ext ;;
4299 esac
4300 fi
4301 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4302 printf "%s\n" "$ac_cv_objext" >&6; }
4303 OBJEXT=$ac_cv_objext
4304 ac_objext=$OBJEXT
4305 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4306 printf %s "checking whether the compiler supports GNU C... " >&6; }
4307 if test ${ac_cv_c_compiler_gnu+y}
4308 then :
4309 printf %s "(cached) " >&6
4310 else case e in #(
4311 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4312 /* end confdefs.h. */
4313
4314 int
4315 main (void)
4316 {
4317 #ifndef __GNUC__
4318 choke me
4319 #endif
4320
4321 ;
4322 return 0;
4323 }
4324 _ACEOF
4325 if ac_fn_c_try_compile "$LINENO"
4326 then :
4327 ac_compiler_gnu=yes
4328 else case e in #(
4329 e) ac_compiler_gnu=no ;;
4330 esac
4331 fi
4332 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4333 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4334 ;;
4335 esac
4336 fi
4337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4338 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4339 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4340
4341 if test $ac_compiler_gnu = yes; then
4342 GCC=yes
4343 else
4344 GCC=
4345 fi
4346 ac_test_CFLAGS=${CFLAGS+y}
4347 ac_save_CFLAGS=$CFLAGS
4348 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4349 printf %s "checking whether $CC accepts -g... " >&6; }
4350 if test ${ac_cv_prog_cc_g+y}
4351 then :
4352 printf %s "(cached) " >&6
4353 else case e in #(
4354 e) ac_save_c_werror_flag=$ac_c_werror_flag
4355 ac_c_werror_flag=yes
4356 ac_cv_prog_cc_g=no
4357 CFLAGS="-g"
4358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4359 /* end confdefs.h. */
4360
4361 int
4362 main (void)
4363 {
4364
4365 ;
4366 return 0;
4367 }
4368 _ACEOF
4369 if ac_fn_c_try_compile "$LINENO"
4370 then :
4371 ac_cv_prog_cc_g=yes
4372 else case e in #(
4373 e) CFLAGS=""
4374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4375 /* end confdefs.h. */
4376
4377 int
4378 main (void)
4379 {
4380
4381 ;
4382 return 0;
4383 }
4384 _ACEOF
4385 if ac_fn_c_try_compile "$LINENO"
4386 then :
4387
4388 else case e in #(
4389 e) ac_c_werror_flag=$ac_save_c_werror_flag
4390 CFLAGS="-g"
4391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4392 /* end confdefs.h. */
4393
4394 int
4395 main (void)
4396 {
4397
4398 ;
4399 return 0;
4400 }
4401 _ACEOF
4402 if ac_fn_c_try_compile "$LINENO"
4403 then :
4404 ac_cv_prog_cc_g=yes
4405 fi
4406 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4407 esac
4408 fi
4409 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4410 esac
4411 fi
4412 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4413 ac_c_werror_flag=$ac_save_c_werror_flag ;;
4414 esac
4415 fi
4416 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4417 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4418 if test $ac_test_CFLAGS; then
4419 CFLAGS=$ac_save_CFLAGS
4420 elif test $ac_cv_prog_cc_g = yes; then
4421 if test "$GCC" = yes; then
4422 CFLAGS="-g -O2"
4423 else
4424 CFLAGS="-g"
4425 fi
4426 else
4427 if test "$GCC" = yes; then
4428 CFLAGS="-O2"
4429 else
4430 CFLAGS=
4431 fi
4432 fi
4433 ac_prog_cc_stdc=no
4434 if test x$ac_prog_cc_stdc = xno
4435 then :
4436 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4437 printf %s "checking for $CC option to enable C11 features... " >&6; }
4438 if test ${ac_cv_prog_cc_c11+y}
4439 then :
4440 printf %s "(cached) " >&6
4441 else case e in #(
4442 e) ac_cv_prog_cc_c11=no
4443 ac_save_CC=$CC
4444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4445 /* end confdefs.h. */
4446 $ac_c_conftest_c11_program
4447 _ACEOF
4448 for ac_arg in '' -std=gnu11
4449 do
4450 CC="$ac_save_CC $ac_arg"
4451 if ac_fn_c_try_compile "$LINENO"
4452 then :
4453 ac_cv_prog_cc_c11=$ac_arg
4454 fi
4455 rm -f core conftest.err conftest.$ac_objext conftest.beam
4456 test "x$ac_cv_prog_cc_c11" != "xno" && break
4457 done
4458 rm -f conftest.$ac_ext
4459 CC=$ac_save_CC ;;
4460 esac
4461 fi
4462
4463 if test "x$ac_cv_prog_cc_c11" = xno
4464 then :
4465 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4466 printf "%s\n" "unsupported" >&6; }
4467 else case e in #(
4468 e) if test "x$ac_cv_prog_cc_c11" = x
4469 then :
4470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4471 printf "%s\n" "none needed" >&6; }
4472 else case e in #(
4473 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4474 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4475 CC="$CC $ac_cv_prog_cc_c11" ;;
4476 esac
4477 fi
4478 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4479 ac_prog_cc_stdc=c11 ;;
4480 esac
4481 fi
4482 fi
4483 if test x$ac_prog_cc_stdc = xno
4484 then :
4485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4486 printf %s "checking for $CC option to enable C99 features... " >&6; }
4487 if test ${ac_cv_prog_cc_c99+y}
4488 then :
4489 printf %s "(cached) " >&6
4490 else case e in #(
4491 e) ac_cv_prog_cc_c99=no
4492 ac_save_CC=$CC
4493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4494 /* end confdefs.h. */
4495 $ac_c_conftest_c99_program
4496 _ACEOF
4497 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4498 do
4499 CC="$ac_save_CC $ac_arg"
4500 if ac_fn_c_try_compile "$LINENO"
4501 then :
4502 ac_cv_prog_cc_c99=$ac_arg
4503 fi
4504 rm -f core conftest.err conftest.$ac_objext conftest.beam
4505 test "x$ac_cv_prog_cc_c99" != "xno" && break
4506 done
4507 rm -f conftest.$ac_ext
4508 CC=$ac_save_CC ;;
4509 esac
4510 fi
4511
4512 if test "x$ac_cv_prog_cc_c99" = xno
4513 then :
4514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4515 printf "%s\n" "unsupported" >&6; }
4516 else case e in #(
4517 e) if test "x$ac_cv_prog_cc_c99" = x
4518 then :
4519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4520 printf "%s\n" "none needed" >&6; }
4521 else case e in #(
4522 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4523 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4524 CC="$CC $ac_cv_prog_cc_c99" ;;
4525 esac
4526 fi
4527 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4528 ac_prog_cc_stdc=c99 ;;
4529 esac
4530 fi
4531 fi
4532 if test x$ac_prog_cc_stdc = xno
4533 then :
4534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4535 printf %s "checking for $CC option to enable C89 features... " >&6; }
4536 if test ${ac_cv_prog_cc_c89+y}
4537 then :
4538 printf %s "(cached) " >&6
4539 else case e in #(
4540 e) ac_cv_prog_cc_c89=no
4541 ac_save_CC=$CC
4542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4543 /* end confdefs.h. */
4544 $ac_c_conftest_c89_program
4545 _ACEOF
4546 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4547 do
4548 CC="$ac_save_CC $ac_arg"
4549 if ac_fn_c_try_compile "$LINENO"
4550 then :
4551 ac_cv_prog_cc_c89=$ac_arg
4552 fi
4553 rm -f core conftest.err conftest.$ac_objext conftest.beam
4554 test "x$ac_cv_prog_cc_c89" != "xno" && break
4555 done
4556 rm -f conftest.$ac_ext
4557 CC=$ac_save_CC ;;
4558 esac
4559 fi
4560
4561 if test "x$ac_cv_prog_cc_c89" = xno
4562 then :
4563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4564 printf "%s\n" "unsupported" >&6; }
4565 else case e in #(
4566 e) if test "x$ac_cv_prog_cc_c89" = x
4567 then :
4568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4569 printf "%s\n" "none needed" >&6; }
4570 else case e in #(
4571 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4572 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4573 CC="$CC $ac_cv_prog_cc_c89" ;;
4574 esac
4575 fi
4576 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4577 ac_prog_cc_stdc=c89 ;;
4578 esac
4579 fi
4580 fi
4581
4582 ac_ext=c
4583 ac_cpp='$CPP $CPPFLAGS'
4584 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4585 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4586 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4587
4588
4589 ac_ext=c
4590 ac_cpp='$CPP $CPPFLAGS'
4591 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4592 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4593 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4595 printf %s "checking whether $CC understands -c and -o together... " >&6; }
4596 if test ${am_cv_prog_cc_c_o+y}
4597 then :
4598 printf %s "(cached) " >&6
4599 else case e in #(
4600 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4601 /* end confdefs.h. */
4602
4603 int
4604 main (void)
4605 {
4606
4607 ;
4608 return 0;
4609 }
4610 _ACEOF
4611 # Make sure it works both with $CC and with simple cc.
4612 # Following AC_PROG_CC_C_O, we do the test twice because some
4613 # compilers refuse to overwrite an existing .o file with -o,
4614 # though they will create one.
4615 am_cv_prog_cc_c_o=yes
4616 for am_i in 1 2; do
4617 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4618 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4619 ac_status=$?
4620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4621 (exit $ac_status); } \
4622 && test -f conftest2.$ac_objext; then
4623 : OK
4624 else
4625 am_cv_prog_cc_c_o=no
4626 break
4627 fi
4628 done
4629 rm -f core conftest*
4630 unset am_i ;;
4631 esac
4632 fi
4633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4634 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4635 if test "$am_cv_prog_cc_c_o" != yes; then
4636 # Losing compiler, so override with the script.
4637 # FIXME: It is wrong to rewrite CC.
4638 # But if we don't then we get into trouble of one sort or another.
4639 # A longer-term fix would be to have automake use am__CC in this case,
4640 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4641 CC="$am_aux_dir/compile $CC"
4642 fi
4643 ac_ext=c
4644 ac_cpp='$CPP $CPPFLAGS'
4645 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4646 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4647 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4648
4649
4650 depcc="$CC" am_compiler_list=
4651
4652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4653 printf %s "checking dependency style of $depcc... " >&6; }
4654 if test ${am_cv_CC_dependencies_compiler_type+y}
4655 then :
4656 printf %s "(cached) " >&6
4657 else case e in #(
4658 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4659 # We make a subdir and do the tests there. Otherwise we can end up
4660 # making bogus files that we don't know about and never remove. For
4661 # instance it was reported that on HP-UX the gcc test will end up
4662 # making a dummy file named 'D' -- because '-MD' means "put the output
4663 # in D".
4664 rm -rf conftest.dir
4665 mkdir conftest.dir
4666 # Copy depcomp to subdir because otherwise we won't find it if we're
4667 # using a relative directory.
4668 cp "$am_depcomp" conftest.dir
4669 cd conftest.dir
4670 # We will build objects and dependencies in a subdirectory because
4671 # it helps to detect inapplicable dependency modes. For instance
4672 # both Tru64's cc and ICC support -MD to output dependencies as a
4673 # side effect of compilation, but ICC will put the dependencies in
4674 # the current directory while Tru64 will put them in the object
4675 # directory.
4676 mkdir sub
4677
4678 am_cv_CC_dependencies_compiler_type=none
4679 if test "$am_compiler_list" = ""; then
4680 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4681 fi
4682 am__universal=false
4683 case " $depcc " in #(
4684 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4685 esac
4686
4687 for depmode in $am_compiler_list; do
4688 # Setup a source with many dependencies, because some compilers
4689 # like to wrap large dependency lists on column 80 (with \), and
4690 # we should not choose a depcomp mode which is confused by this.
4691 #
4692 # We need to recreate these files for each test, as the compiler may
4693 # overwrite some of them when testing with obscure command lines.
4694 # This happens at least with the AIX C compiler.
4695 : > sub/conftest.c
4696 for i in 1 2 3 4 5 6; do
4697 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4698 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4699 # Solaris 10 /bin/sh.
4700 echo '/* dummy */' > sub/conftst$i.h
4701 done
4702 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4703
4704 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4705 # mode. It turns out that the SunPro C++ compiler does not properly
4706 # handle '-M -o', and we need to detect this. Also, some Intel
4707 # versions had trouble with output in subdirs.
4708 am__obj=sub/conftest.${OBJEXT-o}
4709 am__minus_obj="-o $am__obj"
4710 case $depmode in
4711 gcc)
4712 # This depmode causes a compiler race in universal mode.
4713 test "$am__universal" = false || continue
4714 ;;
4715 nosideeffect)
4716 # After this tag, mechanisms are not by side-effect, so they'll
4717 # only be used when explicitly requested.
4718 if test "x$enable_dependency_tracking" = xyes; then
4719 continue
4720 else
4721 break
4722 fi
4723 ;;
4724 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4725 # This compiler won't grok '-c -o', but also, the minuso test has
4726 # not run yet. These depmodes are late enough in the game, and
4727 # so weak that their functioning should not be impacted.
4728 am__obj=conftest.${OBJEXT-o}
4729 am__minus_obj=
4730 ;;
4731 none) break ;;
4732 esac
4733 if depmode=$depmode \
4734 source=sub/conftest.c object=$am__obj \
4735 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4736 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4737 >/dev/null 2>conftest.err &&
4738 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4739 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4740 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4741 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4742 # icc doesn't choke on unknown options, it will just issue warnings
4743 # or remarks (even with -Werror). So we grep stderr for any message
4744 # that says an option was ignored or not supported.
4745 # When given -MP, icc 7.0 and 7.1 complain thus:
4746 # icc: Command line warning: ignoring option '-M'; no argument required
4747 # The diagnosis changed in icc 8.0:
4748 # icc: Command line remark: option '-MP' not supported
4749 if (grep 'ignoring option' conftest.err ||
4750 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4751 am_cv_CC_dependencies_compiler_type=$depmode
4752 break
4753 fi
4754 fi
4755 done
4756
4757 cd ..
4758 rm -rf conftest.dir
4759 else
4760 am_cv_CC_dependencies_compiler_type=none
4761 fi
4762 ;;
4763 esac
4764 fi
4765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4766 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4767 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4768
4769 if
4770 test "x$enable_dependency_tracking" != xno \
4771 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4772 am__fastdepCC_TRUE=
4773 am__fastdepCC_FALSE='#'
4774 else
4775 am__fastdepCC_TRUE='#'
4776 am__fastdepCC_FALSE=
4777 fi
4778
4779
4780
4781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
4782 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
4783 if test ${ac_cv_c_undeclared_builtin_options+y}
4784 then :
4785 printf %s "(cached) " >&6
4786 else case e in #(
4787 e) ac_save_CFLAGS=$CFLAGS
4788 ac_cv_c_undeclared_builtin_options='cannot detect'
4789 for ac_arg in '' -fno-builtin; do
4790 CFLAGS="$ac_save_CFLAGS $ac_arg"
4791 # This test program should *not* compile successfully.
4792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4793 /* end confdefs.h. */
4794
4795 int
4796 main (void)
4797 {
4798 (void) strchr;
4799 ;
4800 return 0;
4801 }
4802 _ACEOF
4803 if ac_fn_c_try_compile "$LINENO"
4804 then :
4805
4806 else case e in #(
4807 e) # This test program should compile successfully.
4808 # No library function is consistently available on
4809 # freestanding implementations, so test against a dummy
4810 # declaration. Include always-available headers on the
4811 # off chance that they somehow elicit warnings.
4812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4813 /* end confdefs.h. */
4814 #include <float.h>
4815 #include <limits.h>
4816 #include <stdarg.h>
4817 #include <stddef.h>
4818 extern void ac_decl (int, char *);
4819
4820 int
4821 main (void)
4822 {
4823 (void) ac_decl (0, (char *) 0);
4824 (void) ac_decl;
4825
4826 ;
4827 return 0;
4828 }
4829 _ACEOF
4830 if ac_fn_c_try_compile "$LINENO"
4831 then :
4832 if test x"$ac_arg" = x
4833 then :
4834 ac_cv_c_undeclared_builtin_options='none needed'
4835 else case e in #(
4836 e) ac_cv_c_undeclared_builtin_options=$ac_arg ;;
4837 esac
4838 fi
4839 break
4840 fi
4841 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4842 esac
4843 fi
4844 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4845 done
4846 CFLAGS=$ac_save_CFLAGS
4847 ;;
4848 esac
4849 fi
4850 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
4851 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
4852 case $ac_cv_c_undeclared_builtin_options in #(
4853 'cannot detect') :
4854 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4855 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4856 as_fn_error $? "cannot make $CC report undeclared builtins
4857 See 'config.log' for more details" "$LINENO" 5; } ;; #(
4858 'none needed') :
4859 ac_c_undeclared_builtin_options='' ;; #(
4860 *) :
4861 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
4862 esac
4863
4864 ac_header= ac_cache=
4865 for ac_item in $ac_header_c_list
4866 do
4867 if test $ac_cache; then
4868 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
4869 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
4870 printf "%s\n" "#define $ac_item 1" >> confdefs.h
4871 fi
4872 ac_header= ac_cache=
4873 elif test $ac_header; then
4874 ac_cache=$ac_item
4875 else
4876 ac_header=$ac_item
4877 fi
4878 done
4879
4880
4881
4882
4883
4884
4885
4886
4887 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
4888 then :
4889
4890 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
4891
4892 fi
4893
4894
4895
4896
4897 ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4898 if test "x$ac_cv_have_decl___clang__" = xyes
4899 then :
4900 CLANGCC="yes"
4901 else case e in #(
4902 e) CLANGCC="no" ;;
4903 esac
4904 fi
4905 ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4906 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes
4907 then :
4908 INTELCC="yes"
4909 else case e in #(
4910 e) INTELCC="no" ;;
4911 esac
4912 fi
4913 ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4914 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes
4915 then :
4916 SUNCC="yes"
4917 else case e in #(
4918 e) SUNCC="no" ;;
4919 esac
4920 fi
4921
4922
4923
4924
4925
4926
4927
4928
4929 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4930 if test -n "$ac_tool_prefix"; then
4931 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4932 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4933 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4934 printf %s "checking for $ac_word... " >&6; }
4935 if test ${ac_cv_path_PKG_CONFIG+y}
4936 then :
4937 printf %s "(cached) " >&6
4938 else case e in #(
4939 e) case $PKG_CONFIG in
4940 [\\/]* | ?:[\\/]*)
4941 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4942 ;;
4943 *)
4944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4945 for as_dir in $PATH
4946 do
4947 IFS=$as_save_IFS
4948 case $as_dir in #(((
4949 '') as_dir=./ ;;
4950 */) ;;
4951 *) as_dir=$as_dir/ ;;
4952 esac
4953 for ac_exec_ext in '' $ac_executable_extensions; do
4954 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4955 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
4956 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4957 break 2
4958 fi
4959 done
4960 done
4961 IFS=$as_save_IFS
4962
4963 ;;
4964 esac ;;
4965 esac
4966 fi
4967 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4968 if test -n "$PKG_CONFIG"; then
4969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4970 printf "%s\n" "$PKG_CONFIG" >&6; }
4971 else
4972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4973 printf "%s\n" "no" >&6; }
4974 fi
4975
4976
4977 fi
4978 if test -z "$ac_cv_path_PKG_CONFIG"; then
4979 ac_pt_PKG_CONFIG=$PKG_CONFIG
4980 # Extract the first word of "pkg-config", so it can be a program name with args.
4981 set dummy pkg-config; ac_word=$2
4982 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4983 printf %s "checking for $ac_word... " >&6; }
4984 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
4985 then :
4986 printf %s "(cached) " >&6
4987 else case e in #(
4988 e) case $ac_pt_PKG_CONFIG in
4989 [\\/]* | ?:[\\/]*)
4990 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4991 ;;
4992 *)
4993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4994 for as_dir in $PATH
4995 do
4996 IFS=$as_save_IFS
4997 case $as_dir in #(((
4998 '') as_dir=./ ;;
4999 */) ;;
5000 *) as_dir=$as_dir/ ;;
5001 esac
5002 for ac_exec_ext in '' $ac_executable_extensions; do
5003 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5004 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
5005 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5006 break 2
5007 fi
5008 done
5009 done
5010 IFS=$as_save_IFS
5011
5012 ;;
5013 esac ;;
5014 esac
5015 fi
5016 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5017 if test -n "$ac_pt_PKG_CONFIG"; then
5018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5019 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
5020 else
5021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5022 printf "%s\n" "no" >&6; }
5023 fi
5024
5025 if test "x$ac_pt_PKG_CONFIG" = x; then
5026 PKG_CONFIG=""
5027 else
5028 case $cross_compiling:$ac_tool_warned in
5029 yes:)
5030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5031 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5032 ac_tool_warned=yes ;;
5033 esac
5034 PKG_CONFIG=$ac_pt_PKG_CONFIG
5035 fi
5036 else
5037 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5038 fi
5039
5040 fi
5041 if test -n "$PKG_CONFIG"; then
5042 _pkg_min_version=0.9.0
5043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5044 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5045 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5047 printf "%s\n" "yes" >&6; }
5048 else
5049 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5050 printf "%s\n" "no" >&6; }
5051 PKG_CONFIG=""
5052 fi
5053 fi
5054
5055
5056 # Make sure we can run config.sub.
5057 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
5058 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
5059
5060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5061 printf %s "checking build system type... " >&6; }
5062 if test ${ac_cv_build+y}
5063 then :
5064 printf %s "(cached) " >&6
5065 else case e in #(
5066 e) ac_build_alias=$build_alias
5067 test "x$ac_build_alias" = x &&
5068 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
5069 test "x$ac_build_alias" = x &&
5070 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5071 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
5072 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
5073 ;;
5074 esac
5075 fi
5076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5077 printf "%s\n" "$ac_cv_build" >&6; }
5078 case $ac_cv_build in
5079 *-*-*) ;;
5080 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5081 esac
5082 build=$ac_cv_build
5083 ac_save_IFS=$IFS; IFS='-'
5084 set x $ac_cv_build
5085 shift
5086 build_cpu=$1
5087 build_vendor=$2
5088 shift; shift
5089 # Remember, the first character of IFS is used to create $*,
5090 # except with old shells:
5091 build_os=$*
5092 IFS=$ac_save_IFS
5093 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5094
5095
5096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5097 printf %s "checking host system type... " >&6; }
5098 if test ${ac_cv_host+y}
5099 then :
5100 printf %s "(cached) " >&6
5101 else case e in #(
5102 e) if test "x$host_alias" = x; then
5103 ac_cv_host=$ac_cv_build
5104 else
5105 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
5106 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
5107 fi
5108 ;;
5109 esac
5110 fi
5111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5112 printf "%s\n" "$ac_cv_host" >&6; }
5113 case $ac_cv_host in
5114 *-*-*) ;;
5115 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5116 esac
5117 host=$ac_cv_host
5118 ac_save_IFS=$IFS; IFS='-'
5119 set x $ac_cv_host
5120 shift
5121 host_cpu=$1
5122 host_vendor=$2
5123 shift; shift
5124 # Remember, the first character of IFS is used to create $*,
5125 # except with old shells:
5126 host_os=$*
5127 IFS=$ac_save_IFS
5128 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5129
5130
5131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5132 printf %s "checking for a sed that does not truncate output... " >&6; }
5133 if test ${ac_cv_path_SED+y}
5134 then :
5135 printf %s "(cached) " >&6
5136 else case e in #(
5137 e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5138 for ac_i in 1 2 3 4 5 6 7; do
5139 ac_script="$ac_script$as_nl$ac_script"
5140 done
5141 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5142 { ac_script=; unset ac_script;}
5143 if test -z "$SED"; then
5144 ac_path_SED_found=false
5145 # Loop through the user's path and test for each of PROGNAME-LIST
5146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5147 for as_dir in $PATH
5148 do
5149 IFS=$as_save_IFS
5150 case $as_dir in #(((
5151 '') as_dir=./ ;;
5152 */) ;;
5153 *) as_dir=$as_dir/ ;;
5154 esac
5155 for ac_prog in sed gsed
5156 do
5157 for ac_exec_ext in '' $ac_executable_extensions; do
5158 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
5159 as_fn_executable_p "$ac_path_SED" || continue
5160 # Check for GNU ac_path_SED and select it if it is found.
5161 # Check for GNU $ac_path_SED
5162 case `"$ac_path_SED" --version 2>&1` in #(
5163 *GNU*)
5164 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5165 #(
5166 *)
5167 ac_count=0
5168 printf %s 0123456789 >"conftest.in"
5169 while :
5170 do
5171 cat "conftest.in" "conftest.in" >"conftest.tmp"
5172 mv "conftest.tmp" "conftest.in"
5173 cp "conftest.in" "conftest.nl"
5174 printf "%s\n" '' >> "conftest.nl"
5175 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5176 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5177 as_fn_arith $ac_count + 1 && ac_count=$as_val
5178 if test $ac_count -gt ${ac_path_SED_max-0}; then
5179 # Best one so far, save it but keep looking for a better one
5180 ac_cv_path_SED="$ac_path_SED"
5181 ac_path_SED_max=$ac_count
5182 fi
5183 # 10*(2^10) chars as input seems more than enough
5184 test $ac_count -gt 10 && break
5185 done
5186 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5187 esac
5188
5189 $ac_path_SED_found && break 3
5190 done
5191 done
5192 done
5193 IFS=$as_save_IFS
5194 if test -z "$ac_cv_path_SED"; then
5195 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5196 fi
5197 else
5198 ac_cv_path_SED=$SED
5199 fi
5200 ;;
5201 esac
5202 fi
5203 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5204 printf "%s\n" "$ac_cv_path_SED" >&6; }
5205 SED="$ac_cv_path_SED"
5206 rm -f conftest.sed
5207
5208
5209
5210
5211
5212
5213 # Check whether --enable-selective-werror was given.
5214 if test ${enable_selective_werror+y}
5215 then :
5216 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
5217 else case e in #(
5218 e) SELECTIVE_WERROR=yes ;;
5219 esac
5220 fi
5221
5222
5223
5224
5225
5226 # -v is too short to test reliably with XORG_TESTSET_CFLAG
5227 if test "x$SUNCC" = "xyes"; then
5228 BASE_CFLAGS="-v"
5229 else
5230 BASE_CFLAGS=""
5231 fi
5232
5233 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
5234
5235
5236
5237
5238
5239
5240
5241
5242
5243
5244
5245
5246
5247 xorg_testset_save_CFLAGS="$CFLAGS"
5248
5249 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5250 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5252 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5253 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5254 then :
5255 printf %s "(cached) " >&6
5256 else case e in #(
5257 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5258 /* end confdefs.h. */
5259 int i;
5260 _ACEOF
5261 if ac_fn_c_try_compile "$LINENO"
5262 then :
5263 xorg_cv_cc_flag_unknown_warning_option=yes
5264 else case e in #(
5265 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5266 esac
5267 fi
5268 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5269 esac
5270 fi
5271 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5272 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5273 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5274 CFLAGS="$xorg_testset_save_CFLAGS"
5275 fi
5276
5277 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5278 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5279 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5280 fi
5281 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5282 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5283 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5284 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5285 then :
5286 printf %s "(cached) " >&6
5287 else case e in #(
5288 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5289 /* end confdefs.h. */
5290 int i;
5291 _ACEOF
5292 if ac_fn_c_try_compile "$LINENO"
5293 then :
5294 xorg_cv_cc_flag_unused_command_line_argument=yes
5295 else case e in #(
5296 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5297 esac
5298 fi
5299 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5300 esac
5301 fi
5302 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5303 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5304 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5305 CFLAGS="$xorg_testset_save_CFLAGS"
5306 fi
5307
5308 found="no"
5309
5310 if test $found = "no" ; then
5311 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5312 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5313 fi
5314
5315 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5316 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5317 fi
5318
5319 CFLAGS="$CFLAGS -Wall"
5320
5321 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
5322 printf %s "checking if $CC supports -Wall... " >&6; }
5323 cacheid=xorg_cv_cc_flag__Wall
5324 if eval test \${$cacheid+y}
5325 then :
5326 printf %s "(cached) " >&6
5327 else case e in #(
5328 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5329 /* end confdefs.h. */
5330 int i;
5331 int
5332 main (void)
5333 {
5334
5335 ;
5336 return 0;
5337 }
5338 _ACEOF
5339 if ac_fn_c_try_link "$LINENO"
5340 then :
5341 eval $cacheid=yes
5342 else case e in #(
5343 e) eval $cacheid=no ;;
5344 esac
5345 fi
5346 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5347 conftest$ac_exeext conftest.$ac_ext ;;
5348 esac
5349 fi
5350
5351
5352 CFLAGS="$xorg_testset_save_CFLAGS"
5353
5354 eval supported=\$$cacheid
5355 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5356 printf "%s\n" "$supported" >&6; }
5357 if test "$supported" = "yes" ; then
5358 BASE_CFLAGS="$BASE_CFLAGS -Wall"
5359 found="yes"
5360 fi
5361 fi
5362
5363
5364
5365
5366
5367
5368
5369
5370
5371
5372
5373
5374
5375
5376
5377 xorg_testset_save_CFLAGS="$CFLAGS"
5378
5379 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5380 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5382 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5383 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5384 then :
5385 printf %s "(cached) " >&6
5386 else case e in #(
5387 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5388 /* end confdefs.h. */
5389 int i;
5390 _ACEOF
5391 if ac_fn_c_try_compile "$LINENO"
5392 then :
5393 xorg_cv_cc_flag_unknown_warning_option=yes
5394 else case e in #(
5395 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5396 esac
5397 fi
5398 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5399 esac
5400 fi
5401 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5402 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5403 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5404 CFLAGS="$xorg_testset_save_CFLAGS"
5405 fi
5406
5407 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5408 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5409 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5410 fi
5411 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5412 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5413 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5414 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5415 then :
5416 printf %s "(cached) " >&6
5417 else case e in #(
5418 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5419 /* end confdefs.h. */
5420 int i;
5421 _ACEOF
5422 if ac_fn_c_try_compile "$LINENO"
5423 then :
5424 xorg_cv_cc_flag_unused_command_line_argument=yes
5425 else case e in #(
5426 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5427 esac
5428 fi
5429 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5430 esac
5431 fi
5432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5433 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5434 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5435 CFLAGS="$xorg_testset_save_CFLAGS"
5436 fi
5437
5438 found="no"
5439
5440 if test $found = "no" ; then
5441 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5442 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5443 fi
5444
5445 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5446 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5447 fi
5448
5449 CFLAGS="$CFLAGS -Wpointer-arith"
5450
5451 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
5452 printf %s "checking if $CC supports -Wpointer-arith... " >&6; }
5453 cacheid=xorg_cv_cc_flag__Wpointer_arith
5454 if eval test \${$cacheid+y}
5455 then :
5456 printf %s "(cached) " >&6
5457 else case e in #(
5458 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5459 /* end confdefs.h. */
5460 int i;
5461 int
5462 main (void)
5463 {
5464
5465 ;
5466 return 0;
5467 }
5468 _ACEOF
5469 if ac_fn_c_try_link "$LINENO"
5470 then :
5471 eval $cacheid=yes
5472 else case e in #(
5473 e) eval $cacheid=no ;;
5474 esac
5475 fi
5476 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5477 conftest$ac_exeext conftest.$ac_ext ;;
5478 esac
5479 fi
5480
5481
5482 CFLAGS="$xorg_testset_save_CFLAGS"
5483
5484 eval supported=\$$cacheid
5485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5486 printf "%s\n" "$supported" >&6; }
5487 if test "$supported" = "yes" ; then
5488 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
5489 found="yes"
5490 fi
5491 fi
5492
5493
5494
5495
5496
5497
5498
5499
5500
5501
5502
5503
5504
5505
5506
5507 xorg_testset_save_CFLAGS="$CFLAGS"
5508
5509 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5510 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5512 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5513 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5514 then :
5515 printf %s "(cached) " >&6
5516 else case e in #(
5517 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5518 /* end confdefs.h. */
5519 int i;
5520 _ACEOF
5521 if ac_fn_c_try_compile "$LINENO"
5522 then :
5523 xorg_cv_cc_flag_unknown_warning_option=yes
5524 else case e in #(
5525 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5526 esac
5527 fi
5528 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5529 esac
5530 fi
5531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5532 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5533 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5534 CFLAGS="$xorg_testset_save_CFLAGS"
5535 fi
5536
5537 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5538 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5539 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5540 fi
5541 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5542 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5543 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5544 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5545 then :
5546 printf %s "(cached) " >&6
5547 else case e in #(
5548 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5549 /* end confdefs.h. */
5550 int i;
5551 _ACEOF
5552 if ac_fn_c_try_compile "$LINENO"
5553 then :
5554 xorg_cv_cc_flag_unused_command_line_argument=yes
5555 else case e in #(
5556 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5557 esac
5558 fi
5559 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5560 esac
5561 fi
5562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5563 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5564 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5565 CFLAGS="$xorg_testset_save_CFLAGS"
5566 fi
5567
5568 found="no"
5569
5570 if test $found = "no" ; then
5571 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5572 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5573 fi
5574
5575 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5576 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5577 fi
5578
5579 CFLAGS="$CFLAGS -Wmissing-declarations"
5580
5581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
5582 printf %s "checking if $CC supports -Wmissing-declarations... " >&6; }
5583 cacheid=xorg_cv_cc_flag__Wmissing_declarations
5584 if eval test \${$cacheid+y}
5585 then :
5586 printf %s "(cached) " >&6
5587 else case e in #(
5588 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5589 /* end confdefs.h. */
5590 int i;
5591 int
5592 main (void)
5593 {
5594
5595 ;
5596 return 0;
5597 }
5598 _ACEOF
5599 if ac_fn_c_try_link "$LINENO"
5600 then :
5601 eval $cacheid=yes
5602 else case e in #(
5603 e) eval $cacheid=no ;;
5604 esac
5605 fi
5606 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5607 conftest$ac_exeext conftest.$ac_ext ;;
5608 esac
5609 fi
5610
5611
5612 CFLAGS="$xorg_testset_save_CFLAGS"
5613
5614 eval supported=\$$cacheid
5615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5616 printf "%s\n" "$supported" >&6; }
5617 if test "$supported" = "yes" ; then
5618 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5619 found="yes"
5620 fi
5621 fi
5622
5623
5624
5625
5626
5627
5628
5629
5630
5631
5632
5633
5634
5635
5636
5637 xorg_testset_save_CFLAGS="$CFLAGS"
5638
5639 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5640 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5642 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5643 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5644 then :
5645 printf %s "(cached) " >&6
5646 else case e in #(
5647 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5648 /* end confdefs.h. */
5649 int i;
5650 _ACEOF
5651 if ac_fn_c_try_compile "$LINENO"
5652 then :
5653 xorg_cv_cc_flag_unknown_warning_option=yes
5654 else case e in #(
5655 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5656 esac
5657 fi
5658 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5659 esac
5660 fi
5661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5662 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5663 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5664 CFLAGS="$xorg_testset_save_CFLAGS"
5665 fi
5666
5667 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5668 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5669 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5670 fi
5671 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5673 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5674 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5675 then :
5676 printf %s "(cached) " >&6
5677 else case e in #(
5678 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5679 /* end confdefs.h. */
5680 int i;
5681 _ACEOF
5682 if ac_fn_c_try_compile "$LINENO"
5683 then :
5684 xorg_cv_cc_flag_unused_command_line_argument=yes
5685 else case e in #(
5686 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5687 esac
5688 fi
5689 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5690 esac
5691 fi
5692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5693 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5694 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5695 CFLAGS="$xorg_testset_save_CFLAGS"
5696 fi
5697
5698 found="no"
5699
5700 if test $found = "no" ; then
5701 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5702 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5703 fi
5704
5705 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5706 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5707 fi
5708
5709 CFLAGS="$CFLAGS -Wformat=2"
5710
5711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5712 printf %s "checking if $CC supports -Wformat=2... " >&6; }
5713 cacheid=xorg_cv_cc_flag__Wformat_2
5714 if eval test \${$cacheid+y}
5715 then :
5716 printf %s "(cached) " >&6
5717 else case e in #(
5718 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5719 /* end confdefs.h. */
5720 int i;
5721 int
5722 main (void)
5723 {
5724
5725 ;
5726 return 0;
5727 }
5728 _ACEOF
5729 if ac_fn_c_try_link "$LINENO"
5730 then :
5731 eval $cacheid=yes
5732 else case e in #(
5733 e) eval $cacheid=no ;;
5734 esac
5735 fi
5736 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5737 conftest$ac_exeext conftest.$ac_ext ;;
5738 esac
5739 fi
5740
5741
5742 CFLAGS="$xorg_testset_save_CFLAGS"
5743
5744 eval supported=\$$cacheid
5745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5746 printf "%s\n" "$supported" >&6; }
5747 if test "$supported" = "yes" ; then
5748 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5749 found="yes"
5750 fi
5751 fi
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 -Wformat"
5763
5764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5765 printf %s "checking if $CC supports -Wformat... " >&6; }
5766 cacheid=xorg_cv_cc_flag__Wformat
5767 if eval test \${$cacheid+y}
5768 then :
5769 printf %s "(cached) " >&6
5770 else case e in #(
5771 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5772 /* end confdefs.h. */
5773 int i;
5774 int
5775 main (void)
5776 {
5777
5778 ;
5779 return 0;
5780 }
5781 _ACEOF
5782 if ac_fn_c_try_link "$LINENO"
5783 then :
5784 eval $cacheid=yes
5785 else case e in #(
5786 e) eval $cacheid=no ;;
5787 esac
5788 fi
5789 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5790 conftest$ac_exeext conftest.$ac_ext ;;
5791 esac
5792 fi
5793
5794
5795 CFLAGS="$xorg_testset_save_CFLAGS"
5796
5797 eval supported=\$$cacheid
5798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5799 printf "%s\n" "$supported" >&6; }
5800 if test "$supported" = "yes" ; then
5801 BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5802 found="yes"
5803 fi
5804 fi
5805
5806
5807
5808
5809
5810
5811
5812
5813
5814
5815
5816
5817
5818
5819
5820
5821
5822 xorg_testset_save_CFLAGS="$CFLAGS"
5823
5824 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5825 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5827 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5828 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5829 then :
5830 printf %s "(cached) " >&6
5831 else case e in #(
5832 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5833 /* end confdefs.h. */
5834 int i;
5835 _ACEOF
5836 if ac_fn_c_try_compile "$LINENO"
5837 then :
5838 xorg_cv_cc_flag_unknown_warning_option=yes
5839 else case e in #(
5840 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5841 esac
5842 fi
5843 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5844 esac
5845 fi
5846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5847 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5848 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5849 CFLAGS="$xorg_testset_save_CFLAGS"
5850 fi
5851
5852 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5853 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5854 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5855 fi
5856 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5858 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5859 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5860 then :
5861 printf %s "(cached) " >&6
5862 else case e in #(
5863 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5864 /* end confdefs.h. */
5865 int i;
5866 _ACEOF
5867 if ac_fn_c_try_compile "$LINENO"
5868 then :
5869 xorg_cv_cc_flag_unused_command_line_argument=yes
5870 else case e in #(
5871 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5872 esac
5873 fi
5874 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5875 esac
5876 fi
5877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5878 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5879 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5880 CFLAGS="$xorg_testset_save_CFLAGS"
5881 fi
5882
5883 found="no"
5884
5885 if test $found = "no" ; then
5886 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5887 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5888 fi
5889
5890 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5891 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5892 fi
5893
5894 CFLAGS="$CFLAGS -Wstrict-prototypes"
5895
5896 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5897 printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; }
5898 cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5899 if eval test \${$cacheid+y}
5900 then :
5901 printf %s "(cached) " >&6
5902 else case e in #(
5903 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5904 /* end confdefs.h. */
5905 int i;
5906 int
5907 main (void)
5908 {
5909
5910 ;
5911 return 0;
5912 }
5913 _ACEOF
5914 if ac_fn_c_try_link "$LINENO"
5915 then :
5916 eval $cacheid=yes
5917 else case e in #(
5918 e) eval $cacheid=no ;;
5919 esac
5920 fi
5921 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5922 conftest$ac_exeext conftest.$ac_ext ;;
5923 esac
5924 fi
5925
5926
5927 CFLAGS="$xorg_testset_save_CFLAGS"
5928
5929 eval supported=\$$cacheid
5930 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5931 printf "%s\n" "$supported" >&6; }
5932 if test "$supported" = "yes" ; then
5933 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5934 found="yes"
5935 fi
5936 fi
5937
5938
5939
5940
5941
5942
5943
5944
5945
5946
5947
5948
5949
5950
5951
5952 xorg_testset_save_CFLAGS="$CFLAGS"
5953
5954 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5955 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5956 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5957 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5958 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5959 then :
5960 printf %s "(cached) " >&6
5961 else case e in #(
5962 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5963 /* end confdefs.h. */
5964 int i;
5965 _ACEOF
5966 if ac_fn_c_try_compile "$LINENO"
5967 then :
5968 xorg_cv_cc_flag_unknown_warning_option=yes
5969 else case e in #(
5970 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5971 esac
5972 fi
5973 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5974 esac
5975 fi
5976 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5977 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5978 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5979 CFLAGS="$xorg_testset_save_CFLAGS"
5980 fi
5981
5982 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5983 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5984 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5985 fi
5986 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5988 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5989 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5990 then :
5991 printf %s "(cached) " >&6
5992 else case e in #(
5993 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5994 /* end confdefs.h. */
5995 int i;
5996 _ACEOF
5997 if ac_fn_c_try_compile "$LINENO"
5998 then :
5999 xorg_cv_cc_flag_unused_command_line_argument=yes
6000 else case e in #(
6001 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6002 esac
6003 fi
6004 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6005 esac
6006 fi
6007 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6008 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6009 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6010 CFLAGS="$xorg_testset_save_CFLAGS"
6011 fi
6012
6013 found="no"
6014
6015 if test $found = "no" ; then
6016 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6017 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6018 fi
6019
6020 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6021 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6022 fi
6023
6024 CFLAGS="$CFLAGS -Wmissing-prototypes"
6025
6026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
6027 printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; }
6028 cacheid=xorg_cv_cc_flag__Wmissing_prototypes
6029 if eval test \${$cacheid+y}
6030 then :
6031 printf %s "(cached) " >&6
6032 else case e in #(
6033 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6034 /* end confdefs.h. */
6035 int i;
6036 int
6037 main (void)
6038 {
6039
6040 ;
6041 return 0;
6042 }
6043 _ACEOF
6044 if ac_fn_c_try_link "$LINENO"
6045 then :
6046 eval $cacheid=yes
6047 else case e in #(
6048 e) eval $cacheid=no ;;
6049 esac
6050 fi
6051 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6052 conftest$ac_exeext conftest.$ac_ext ;;
6053 esac
6054 fi
6055
6056
6057 CFLAGS="$xorg_testset_save_CFLAGS"
6058
6059 eval supported=\$$cacheid
6060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6061 printf "%s\n" "$supported" >&6; }
6062 if test "$supported" = "yes" ; then
6063 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
6064 found="yes"
6065 fi
6066 fi
6067
6068
6069
6070
6071
6072
6073
6074
6075
6076
6077
6078
6079
6080
6081
6082 xorg_testset_save_CFLAGS="$CFLAGS"
6083
6084 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6085 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6086 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6087 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6088 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6089 then :
6090 printf %s "(cached) " >&6
6091 else case e in #(
6092 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6093 /* end confdefs.h. */
6094 int i;
6095 _ACEOF
6096 if ac_fn_c_try_compile "$LINENO"
6097 then :
6098 xorg_cv_cc_flag_unknown_warning_option=yes
6099 else case e in #(
6100 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6101 esac
6102 fi
6103 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6104 esac
6105 fi
6106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6107 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6108 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6109 CFLAGS="$xorg_testset_save_CFLAGS"
6110 fi
6111
6112 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6113 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6114 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6115 fi
6116 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6117 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6118 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6119 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6120 then :
6121 printf %s "(cached) " >&6
6122 else case e in #(
6123 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6124 /* end confdefs.h. */
6125 int i;
6126 _ACEOF
6127 if ac_fn_c_try_compile "$LINENO"
6128 then :
6129 xorg_cv_cc_flag_unused_command_line_argument=yes
6130 else case e in #(
6131 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6132 esac
6133 fi
6134 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6135 esac
6136 fi
6137 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6138 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6139 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6140 CFLAGS="$xorg_testset_save_CFLAGS"
6141 fi
6142
6143 found="no"
6144
6145 if test $found = "no" ; then
6146 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6147 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6148 fi
6149
6150 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6151 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6152 fi
6153
6154 CFLAGS="$CFLAGS -Wnested-externs"
6155
6156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
6157 printf %s "checking if $CC supports -Wnested-externs... " >&6; }
6158 cacheid=xorg_cv_cc_flag__Wnested_externs
6159 if eval test \${$cacheid+y}
6160 then :
6161 printf %s "(cached) " >&6
6162 else case e in #(
6163 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6164 /* end confdefs.h. */
6165 int i;
6166 int
6167 main (void)
6168 {
6169
6170 ;
6171 return 0;
6172 }
6173 _ACEOF
6174 if ac_fn_c_try_link "$LINENO"
6175 then :
6176 eval $cacheid=yes
6177 else case e in #(
6178 e) eval $cacheid=no ;;
6179 esac
6180 fi
6181 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6182 conftest$ac_exeext conftest.$ac_ext ;;
6183 esac
6184 fi
6185
6186
6187 CFLAGS="$xorg_testset_save_CFLAGS"
6188
6189 eval supported=\$$cacheid
6190 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6191 printf "%s\n" "$supported" >&6; }
6192 if test "$supported" = "yes" ; then
6193 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
6194 found="yes"
6195 fi
6196 fi
6197
6198
6199
6200
6201
6202
6203
6204
6205
6206
6207
6208
6209
6210
6211
6212 xorg_testset_save_CFLAGS="$CFLAGS"
6213
6214 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6215 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6217 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6218 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6219 then :
6220 printf %s "(cached) " >&6
6221 else case e in #(
6222 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6223 /* end confdefs.h. */
6224 int i;
6225 _ACEOF
6226 if ac_fn_c_try_compile "$LINENO"
6227 then :
6228 xorg_cv_cc_flag_unknown_warning_option=yes
6229 else case e in #(
6230 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6231 esac
6232 fi
6233 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6234 esac
6235 fi
6236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6237 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6238 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6239 CFLAGS="$xorg_testset_save_CFLAGS"
6240 fi
6241
6242 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6243 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6244 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6245 fi
6246 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6248 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6249 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6250 then :
6251 printf %s "(cached) " >&6
6252 else case e in #(
6253 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6254 /* end confdefs.h. */
6255 int i;
6256 _ACEOF
6257 if ac_fn_c_try_compile "$LINENO"
6258 then :
6259 xorg_cv_cc_flag_unused_command_line_argument=yes
6260 else case e in #(
6261 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6262 esac
6263 fi
6264 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6265 esac
6266 fi
6267 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6268 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6269 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6270 CFLAGS="$xorg_testset_save_CFLAGS"
6271 fi
6272
6273 found="no"
6274
6275 if test $found = "no" ; then
6276 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6277 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6278 fi
6279
6280 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6281 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6282 fi
6283
6284 CFLAGS="$CFLAGS -Wbad-function-cast"
6285
6286 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
6287 printf %s "checking if $CC supports -Wbad-function-cast... " >&6; }
6288 cacheid=xorg_cv_cc_flag__Wbad_function_cast
6289 if eval test \${$cacheid+y}
6290 then :
6291 printf %s "(cached) " >&6
6292 else case e in #(
6293 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6294 /* end confdefs.h. */
6295 int i;
6296 int
6297 main (void)
6298 {
6299
6300 ;
6301 return 0;
6302 }
6303 _ACEOF
6304 if ac_fn_c_try_link "$LINENO"
6305 then :
6306 eval $cacheid=yes
6307 else case e in #(
6308 e) eval $cacheid=no ;;
6309 esac
6310 fi
6311 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6312 conftest$ac_exeext conftest.$ac_ext ;;
6313 esac
6314 fi
6315
6316
6317 CFLAGS="$xorg_testset_save_CFLAGS"
6318
6319 eval supported=\$$cacheid
6320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6321 printf "%s\n" "$supported" >&6; }
6322 if test "$supported" = "yes" ; then
6323 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
6324 found="yes"
6325 fi
6326 fi
6327
6328
6329
6330
6331
6332
6333
6334
6335
6336
6337
6338
6339
6340
6341
6342 xorg_testset_save_CFLAGS="$CFLAGS"
6343
6344 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6345 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6347 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6348 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6349 then :
6350 printf %s "(cached) " >&6
6351 else case e in #(
6352 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6353 /* end confdefs.h. */
6354 int i;
6355 _ACEOF
6356 if ac_fn_c_try_compile "$LINENO"
6357 then :
6358 xorg_cv_cc_flag_unknown_warning_option=yes
6359 else case e in #(
6360 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6361 esac
6362 fi
6363 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6364 esac
6365 fi
6366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6367 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6368 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6369 CFLAGS="$xorg_testset_save_CFLAGS"
6370 fi
6371
6372 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6373 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6374 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6375 fi
6376 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6378 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6379 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6380 then :
6381 printf %s "(cached) " >&6
6382 else case e in #(
6383 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6384 /* end confdefs.h. */
6385 int i;
6386 _ACEOF
6387 if ac_fn_c_try_compile "$LINENO"
6388 then :
6389 xorg_cv_cc_flag_unused_command_line_argument=yes
6390 else case e in #(
6391 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6392 esac
6393 fi
6394 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6395 esac
6396 fi
6397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6398 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6399 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6400 CFLAGS="$xorg_testset_save_CFLAGS"
6401 fi
6402
6403 found="no"
6404
6405 if test $found = "no" ; then
6406 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6407 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6408 fi
6409
6410 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6411 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6412 fi
6413
6414 CFLAGS="$CFLAGS -Wold-style-definition"
6415
6416 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
6417 printf %s "checking if $CC supports -Wold-style-definition... " >&6; }
6418 cacheid=xorg_cv_cc_flag__Wold_style_definition
6419 if eval test \${$cacheid+y}
6420 then :
6421 printf %s "(cached) " >&6
6422 else case e in #(
6423 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6424 /* end confdefs.h. */
6425 int i;
6426 int
6427 main (void)
6428 {
6429
6430 ;
6431 return 0;
6432 }
6433 _ACEOF
6434 if ac_fn_c_try_link "$LINENO"
6435 then :
6436 eval $cacheid=yes
6437 else case e in #(
6438 e) eval $cacheid=no ;;
6439 esac
6440 fi
6441 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6442 conftest$ac_exeext conftest.$ac_ext ;;
6443 esac
6444 fi
6445
6446
6447 CFLAGS="$xorg_testset_save_CFLAGS"
6448
6449 eval supported=\$$cacheid
6450 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6451 printf "%s\n" "$supported" >&6; }
6452 if test "$supported" = "yes" ; then
6453 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
6454 found="yes"
6455 fi
6456 fi
6457
6458 if test $found = "no" ; then
6459 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6460 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6461 fi
6462
6463 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6464 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6465 fi
6466
6467 CFLAGS="$CFLAGS -fd"
6468
6469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
6470 printf %s "checking if $CC supports -fd... " >&6; }
6471 cacheid=xorg_cv_cc_flag__fd
6472 if eval test \${$cacheid+y}
6473 then :
6474 printf %s "(cached) " >&6
6475 else case e in #(
6476 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6477 /* end confdefs.h. */
6478 int i;
6479 int
6480 main (void)
6481 {
6482
6483 ;
6484 return 0;
6485 }
6486 _ACEOF
6487 if ac_fn_c_try_link "$LINENO"
6488 then :
6489 eval $cacheid=yes
6490 else case e in #(
6491 e) eval $cacheid=no ;;
6492 esac
6493 fi
6494 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6495 conftest$ac_exeext conftest.$ac_ext ;;
6496 esac
6497 fi
6498
6499
6500 CFLAGS="$xorg_testset_save_CFLAGS"
6501
6502 eval supported=\$$cacheid
6503 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6504 printf "%s\n" "$supported" >&6; }
6505 if test "$supported" = "yes" ; then
6506 BASE_CFLAGS="$BASE_CFLAGS -fd"
6507 found="yes"
6508 fi
6509 fi
6510
6511
6512
6513
6514
6515 # This chunk adds additional warnings that could catch undesired effects.
6516
6517
6518
6519
6520
6521
6522
6523
6524
6525
6526
6527
6528
6529 xorg_testset_save_CFLAGS="$CFLAGS"
6530
6531 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6532 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6534 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6535 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6536 then :
6537 printf %s "(cached) " >&6
6538 else case e in #(
6539 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6540 /* end confdefs.h. */
6541 int i;
6542 _ACEOF
6543 if ac_fn_c_try_compile "$LINENO"
6544 then :
6545 xorg_cv_cc_flag_unknown_warning_option=yes
6546 else case e in #(
6547 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6548 esac
6549 fi
6550 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6551 esac
6552 fi
6553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6554 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6555 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6556 CFLAGS="$xorg_testset_save_CFLAGS"
6557 fi
6558
6559 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6560 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6561 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6562 fi
6563 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6565 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6566 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6567 then :
6568 printf %s "(cached) " >&6
6569 else case e in #(
6570 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6571 /* end confdefs.h. */
6572 int i;
6573 _ACEOF
6574 if ac_fn_c_try_compile "$LINENO"
6575 then :
6576 xorg_cv_cc_flag_unused_command_line_argument=yes
6577 else case e in #(
6578 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6579 esac
6580 fi
6581 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6582 esac
6583 fi
6584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6585 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6586 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6587 CFLAGS="$xorg_testset_save_CFLAGS"
6588 fi
6589
6590 found="no"
6591
6592 if test $found = "no" ; then
6593 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6594 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6595 fi
6596
6597 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6598 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6599 fi
6600
6601 CFLAGS="$CFLAGS -Wunused"
6602
6603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
6604 printf %s "checking if $CC supports -Wunused... " >&6; }
6605 cacheid=xorg_cv_cc_flag__Wunused
6606 if eval test \${$cacheid+y}
6607 then :
6608 printf %s "(cached) " >&6
6609 else case e in #(
6610 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6611 /* end confdefs.h. */
6612 int i;
6613 int
6614 main (void)
6615 {
6616
6617 ;
6618 return 0;
6619 }
6620 _ACEOF
6621 if ac_fn_c_try_link "$LINENO"
6622 then :
6623 eval $cacheid=yes
6624 else case e in #(
6625 e) eval $cacheid=no ;;
6626 esac
6627 fi
6628 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6629 conftest$ac_exeext conftest.$ac_ext ;;
6630 esac
6631 fi
6632
6633
6634 CFLAGS="$xorg_testset_save_CFLAGS"
6635
6636 eval supported=\$$cacheid
6637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6638 printf "%s\n" "$supported" >&6; }
6639 if test "$supported" = "yes" ; then
6640 BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6641 found="yes"
6642 fi
6643 fi
6644
6645
6646
6647
6648
6649
6650
6651
6652
6653
6654
6655
6656
6657
6658
6659 xorg_testset_save_CFLAGS="$CFLAGS"
6660
6661 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6662 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6664 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6665 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6666 then :
6667 printf %s "(cached) " >&6
6668 else case e in #(
6669 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6670 /* end confdefs.h. */
6671 int i;
6672 _ACEOF
6673 if ac_fn_c_try_compile "$LINENO"
6674 then :
6675 xorg_cv_cc_flag_unknown_warning_option=yes
6676 else case e in #(
6677 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6678 esac
6679 fi
6680 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6681 esac
6682 fi
6683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6684 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6685 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6686 CFLAGS="$xorg_testset_save_CFLAGS"
6687 fi
6688
6689 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6690 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6691 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6692 fi
6693 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6695 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6696 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6697 then :
6698 printf %s "(cached) " >&6
6699 else case e in #(
6700 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6701 /* end confdefs.h. */
6702 int i;
6703 _ACEOF
6704 if ac_fn_c_try_compile "$LINENO"
6705 then :
6706 xorg_cv_cc_flag_unused_command_line_argument=yes
6707 else case e in #(
6708 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6709 esac
6710 fi
6711 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6712 esac
6713 fi
6714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6715 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6716 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6717 CFLAGS="$xorg_testset_save_CFLAGS"
6718 fi
6719
6720 found="no"
6721
6722 if test $found = "no" ; then
6723 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6724 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6725 fi
6726
6727 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6728 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6729 fi
6730
6731 CFLAGS="$CFLAGS -Wuninitialized"
6732
6733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6734 printf %s "checking if $CC supports -Wuninitialized... " >&6; }
6735 cacheid=xorg_cv_cc_flag__Wuninitialized
6736 if eval test \${$cacheid+y}
6737 then :
6738 printf %s "(cached) " >&6
6739 else case e in #(
6740 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6741 /* end confdefs.h. */
6742 int i;
6743 int
6744 main (void)
6745 {
6746
6747 ;
6748 return 0;
6749 }
6750 _ACEOF
6751 if ac_fn_c_try_link "$LINENO"
6752 then :
6753 eval $cacheid=yes
6754 else case e in #(
6755 e) eval $cacheid=no ;;
6756 esac
6757 fi
6758 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6759 conftest$ac_exeext conftest.$ac_ext ;;
6760 esac
6761 fi
6762
6763
6764 CFLAGS="$xorg_testset_save_CFLAGS"
6765
6766 eval supported=\$$cacheid
6767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6768 printf "%s\n" "$supported" >&6; }
6769 if test "$supported" = "yes" ; then
6770 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6771 found="yes"
6772 fi
6773 fi
6774
6775
6776
6777
6778
6779
6780
6781
6782
6783
6784
6785
6786
6787
6788
6789 xorg_testset_save_CFLAGS="$CFLAGS"
6790
6791 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6792 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6794 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6795 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6796 then :
6797 printf %s "(cached) " >&6
6798 else case e in #(
6799 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6800 /* end confdefs.h. */
6801 int i;
6802 _ACEOF
6803 if ac_fn_c_try_compile "$LINENO"
6804 then :
6805 xorg_cv_cc_flag_unknown_warning_option=yes
6806 else case e in #(
6807 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6808 esac
6809 fi
6810 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6811 esac
6812 fi
6813 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6814 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6815 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6816 CFLAGS="$xorg_testset_save_CFLAGS"
6817 fi
6818
6819 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6820 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6821 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6822 fi
6823 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6825 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6826 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6827 then :
6828 printf %s "(cached) " >&6
6829 else case e in #(
6830 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6831 /* end confdefs.h. */
6832 int i;
6833 _ACEOF
6834 if ac_fn_c_try_compile "$LINENO"
6835 then :
6836 xorg_cv_cc_flag_unused_command_line_argument=yes
6837 else case e in #(
6838 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6839 esac
6840 fi
6841 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6842 esac
6843 fi
6844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6845 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6846 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6847 CFLAGS="$xorg_testset_save_CFLAGS"
6848 fi
6849
6850 found="no"
6851
6852 if test $found = "no" ; then
6853 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6854 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6855 fi
6856
6857 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6858 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6859 fi
6860
6861 CFLAGS="$CFLAGS -Wshadow"
6862
6863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6864 printf %s "checking if $CC supports -Wshadow... " >&6; }
6865 cacheid=xorg_cv_cc_flag__Wshadow
6866 if eval test \${$cacheid+y}
6867 then :
6868 printf %s "(cached) " >&6
6869 else case e in #(
6870 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6871 /* end confdefs.h. */
6872 int i;
6873 int
6874 main (void)
6875 {
6876
6877 ;
6878 return 0;
6879 }
6880 _ACEOF
6881 if ac_fn_c_try_link "$LINENO"
6882 then :
6883 eval $cacheid=yes
6884 else case e in #(
6885 e) eval $cacheid=no ;;
6886 esac
6887 fi
6888 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6889 conftest$ac_exeext conftest.$ac_ext ;;
6890 esac
6891 fi
6892
6893
6894 CFLAGS="$xorg_testset_save_CFLAGS"
6895
6896 eval supported=\$$cacheid
6897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6898 printf "%s\n" "$supported" >&6; }
6899 if test "$supported" = "yes" ; then
6900 BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6901 found="yes"
6902 fi
6903 fi
6904
6905
6906
6907
6908
6909
6910
6911
6912
6913
6914
6915
6916
6917
6918
6919 xorg_testset_save_CFLAGS="$CFLAGS"
6920
6921 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6922 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6924 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6925 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6926 then :
6927 printf %s "(cached) " >&6
6928 else case e in #(
6929 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6930 /* end confdefs.h. */
6931 int i;
6932 _ACEOF
6933 if ac_fn_c_try_compile "$LINENO"
6934 then :
6935 xorg_cv_cc_flag_unknown_warning_option=yes
6936 else case e in #(
6937 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6938 esac
6939 fi
6940 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6941 esac
6942 fi
6943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6944 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6945 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6946 CFLAGS="$xorg_testset_save_CFLAGS"
6947 fi
6948
6949 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6950 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6951 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6952 fi
6953 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6954 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6955 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6956 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6957 then :
6958 printf %s "(cached) " >&6
6959 else case e in #(
6960 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6961 /* end confdefs.h. */
6962 int i;
6963 _ACEOF
6964 if ac_fn_c_try_compile "$LINENO"
6965 then :
6966 xorg_cv_cc_flag_unused_command_line_argument=yes
6967 else case e in #(
6968 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6969 esac
6970 fi
6971 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6972 esac
6973 fi
6974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6975 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6976 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6977 CFLAGS="$xorg_testset_save_CFLAGS"
6978 fi
6979
6980 found="no"
6981
6982 if test $found = "no" ; then
6983 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6984 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6985 fi
6986
6987 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6988 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6989 fi
6990
6991 CFLAGS="$CFLAGS -Wmissing-noreturn"
6992
6993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6994 printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; }
6995 cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6996 if eval test \${$cacheid+y}
6997 then :
6998 printf %s "(cached) " >&6
6999 else case e in #(
7000 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7001 /* end confdefs.h. */
7002 int i;
7003 int
7004 main (void)
7005 {
7006
7007 ;
7008 return 0;
7009 }
7010 _ACEOF
7011 if ac_fn_c_try_link "$LINENO"
7012 then :
7013 eval $cacheid=yes
7014 else case e in #(
7015 e) eval $cacheid=no ;;
7016 esac
7017 fi
7018 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7019 conftest$ac_exeext conftest.$ac_ext ;;
7020 esac
7021 fi
7022
7023
7024 CFLAGS="$xorg_testset_save_CFLAGS"
7025
7026 eval supported=\$$cacheid
7027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7028 printf "%s\n" "$supported" >&6; }
7029 if test "$supported" = "yes" ; then
7030 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
7031 found="yes"
7032 fi
7033 fi
7034
7035
7036
7037
7038
7039
7040
7041
7042
7043
7044
7045
7046
7047
7048
7049 xorg_testset_save_CFLAGS="$CFLAGS"
7050
7051 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7052 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7054 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7055 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7056 then :
7057 printf %s "(cached) " >&6
7058 else case e in #(
7059 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7060 /* end confdefs.h. */
7061 int i;
7062 _ACEOF
7063 if ac_fn_c_try_compile "$LINENO"
7064 then :
7065 xorg_cv_cc_flag_unknown_warning_option=yes
7066 else case e in #(
7067 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7068 esac
7069 fi
7070 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7071 esac
7072 fi
7073 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7074 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7075 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7076 CFLAGS="$xorg_testset_save_CFLAGS"
7077 fi
7078
7079 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7080 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7081 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7082 fi
7083 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7084 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7085 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7086 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7087 then :
7088 printf %s "(cached) " >&6
7089 else case e in #(
7090 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7091 /* end confdefs.h. */
7092 int i;
7093 _ACEOF
7094 if ac_fn_c_try_compile "$LINENO"
7095 then :
7096 xorg_cv_cc_flag_unused_command_line_argument=yes
7097 else case e in #(
7098 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7099 esac
7100 fi
7101 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7102 esac
7103 fi
7104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7105 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7106 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7107 CFLAGS="$xorg_testset_save_CFLAGS"
7108 fi
7109
7110 found="no"
7111
7112 if test $found = "no" ; then
7113 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7114 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7115 fi
7116
7117 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7118 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7119 fi
7120
7121 CFLAGS="$CFLAGS -Wmissing-format-attribute"
7122
7123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
7124 printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; }
7125 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
7126 if eval test \${$cacheid+y}
7127 then :
7128 printf %s "(cached) " >&6
7129 else case e in #(
7130 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7131 /* end confdefs.h. */
7132 int i;
7133 int
7134 main (void)
7135 {
7136
7137 ;
7138 return 0;
7139 }
7140 _ACEOF
7141 if ac_fn_c_try_link "$LINENO"
7142 then :
7143 eval $cacheid=yes
7144 else case e in #(
7145 e) eval $cacheid=no ;;
7146 esac
7147 fi
7148 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7149 conftest$ac_exeext conftest.$ac_ext ;;
7150 esac
7151 fi
7152
7153
7154 CFLAGS="$xorg_testset_save_CFLAGS"
7155
7156 eval supported=\$$cacheid
7157 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7158 printf "%s\n" "$supported" >&6; }
7159 if test "$supported" = "yes" ; then
7160 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
7161 found="yes"
7162 fi
7163 fi
7164
7165
7166
7167
7168
7169
7170
7171
7172
7173
7174
7175
7176
7177
7178
7179 xorg_testset_save_CFLAGS="$CFLAGS"
7180
7181 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7182 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7183 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7184 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7185 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7186 then :
7187 printf %s "(cached) " >&6
7188 else case e in #(
7189 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7190 /* end confdefs.h. */
7191 int i;
7192 _ACEOF
7193 if ac_fn_c_try_compile "$LINENO"
7194 then :
7195 xorg_cv_cc_flag_unknown_warning_option=yes
7196 else case e in #(
7197 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7198 esac
7199 fi
7200 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7201 esac
7202 fi
7203 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7204 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7205 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7206 CFLAGS="$xorg_testset_save_CFLAGS"
7207 fi
7208
7209 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7210 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7211 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7212 fi
7213 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7214 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7215 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7216 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7217 then :
7218 printf %s "(cached) " >&6
7219 else case e in #(
7220 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7221 /* end confdefs.h. */
7222 int i;
7223 _ACEOF
7224 if ac_fn_c_try_compile "$LINENO"
7225 then :
7226 xorg_cv_cc_flag_unused_command_line_argument=yes
7227 else case e in #(
7228 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7229 esac
7230 fi
7231 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7232 esac
7233 fi
7234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7235 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7236 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7237 CFLAGS="$xorg_testset_save_CFLAGS"
7238 fi
7239
7240 found="no"
7241
7242 if test $found = "no" ; then
7243 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7244 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7245 fi
7246
7247 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7248 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7249 fi
7250
7251 CFLAGS="$CFLAGS -Wredundant-decls"
7252
7253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
7254 printf %s "checking if $CC supports -Wredundant-decls... " >&6; }
7255 cacheid=xorg_cv_cc_flag__Wredundant_decls
7256 if eval test \${$cacheid+y}
7257 then :
7258 printf %s "(cached) " >&6
7259 else case e in #(
7260 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7261 /* end confdefs.h. */
7262 int i;
7263 int
7264 main (void)
7265 {
7266
7267 ;
7268 return 0;
7269 }
7270 _ACEOF
7271 if ac_fn_c_try_link "$LINENO"
7272 then :
7273 eval $cacheid=yes
7274 else case e in #(
7275 e) eval $cacheid=no ;;
7276 esac
7277 fi
7278 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7279 conftest$ac_exeext conftest.$ac_ext ;;
7280 esac
7281 fi
7282
7283
7284 CFLAGS="$xorg_testset_save_CFLAGS"
7285
7286 eval supported=\$$cacheid
7287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7288 printf "%s\n" "$supported" >&6; }
7289 if test "$supported" = "yes" ; then
7290 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
7291 found="yes"
7292 fi
7293 fi
7294
7295
7296
7297
7298
7299
7300
7301
7302
7303
7304
7305
7306
7307
7308
7309 xorg_testset_save_CFLAGS="$CFLAGS"
7310
7311 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7312 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7314 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7315 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7316 then :
7317 printf %s "(cached) " >&6
7318 else case e in #(
7319 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7320 /* end confdefs.h. */
7321 int i;
7322 _ACEOF
7323 if ac_fn_c_try_compile "$LINENO"
7324 then :
7325 xorg_cv_cc_flag_unknown_warning_option=yes
7326 else case e in #(
7327 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7328 esac
7329 fi
7330 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7331 esac
7332 fi
7333 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7334 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7335 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7336 CFLAGS="$xorg_testset_save_CFLAGS"
7337 fi
7338
7339 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7340 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7341 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7342 fi
7343 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7345 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7346 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7347 then :
7348 printf %s "(cached) " >&6
7349 else case e in #(
7350 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7351 /* end confdefs.h. */
7352 int i;
7353 _ACEOF
7354 if ac_fn_c_try_compile "$LINENO"
7355 then :
7356 xorg_cv_cc_flag_unused_command_line_argument=yes
7357 else case e in #(
7358 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7359 esac
7360 fi
7361 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7362 esac
7363 fi
7364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7365 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7366 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7367 CFLAGS="$xorg_testset_save_CFLAGS"
7368 fi
7369
7370 found="no"
7371
7372 if test $found = "no" ; then
7373 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7374 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7375 fi
7376
7377 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7378 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7379 fi
7380
7381 CFLAGS="$CFLAGS -Wlogical-op"
7382
7383 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
7384 printf %s "checking if $CC supports -Wlogical-op... " >&6; }
7385 cacheid=xorg_cv_cc_flag__Wlogical_op
7386 if eval test \${$cacheid+y}
7387 then :
7388 printf %s "(cached) " >&6
7389 else case e in #(
7390 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7391 /* end confdefs.h. */
7392 int i;
7393 int
7394 main (void)
7395 {
7396
7397 ;
7398 return 0;
7399 }
7400 _ACEOF
7401 if ac_fn_c_try_link "$LINENO"
7402 then :
7403 eval $cacheid=yes
7404 else case e in #(
7405 e) eval $cacheid=no ;;
7406 esac
7407 fi
7408 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7409 conftest$ac_exeext conftest.$ac_ext ;;
7410 esac
7411 fi
7412
7413
7414 CFLAGS="$xorg_testset_save_CFLAGS"
7415
7416 eval supported=\$$cacheid
7417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7418 printf "%s\n" "$supported" >&6; }
7419 if test "$supported" = "yes" ; then
7420 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
7421 found="yes"
7422 fi
7423 fi
7424
7425
7426
7427 # These are currently disabled because they are noisy. They will be enabled
7428 # in the future once the codebase is sufficiently modernized to silence
7429 # them. For now, I don't want them to drown out the other warnings.
7430 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
7431 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
7432 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
7433
7434 # Turn some warnings into errors, so we don't accidentally get successful builds
7435 # when there are problems that should be fixed.
7436
7437 if test "x$SELECTIVE_WERROR" = "xyes" ; then
7438
7439
7440
7441
7442
7443
7444
7445
7446
7447
7448
7449
7450
7451 xorg_testset_save_CFLAGS="$CFLAGS"
7452
7453 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7454 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7456 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7457 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7458 then :
7459 printf %s "(cached) " >&6
7460 else case e in #(
7461 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7462 /* end confdefs.h. */
7463 int i;
7464 _ACEOF
7465 if ac_fn_c_try_compile "$LINENO"
7466 then :
7467 xorg_cv_cc_flag_unknown_warning_option=yes
7468 else case e in #(
7469 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7470 esac
7471 fi
7472 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7473 esac
7474 fi
7475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7476 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7477 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7478 CFLAGS="$xorg_testset_save_CFLAGS"
7479 fi
7480
7481 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7482 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7483 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7484 fi
7485 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7486 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7487 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7488 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7489 then :
7490 printf %s "(cached) " >&6
7491 else case e in #(
7492 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7493 /* end confdefs.h. */
7494 int i;
7495 _ACEOF
7496 if ac_fn_c_try_compile "$LINENO"
7497 then :
7498 xorg_cv_cc_flag_unused_command_line_argument=yes
7499 else case e in #(
7500 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7501 esac
7502 fi
7503 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7504 esac
7505 fi
7506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7507 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7508 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7509 CFLAGS="$xorg_testset_save_CFLAGS"
7510 fi
7511
7512 found="no"
7513
7514 if test $found = "no" ; then
7515 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7516 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7517 fi
7518
7519 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7520 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7521 fi
7522
7523 CFLAGS="$CFLAGS -Werror=implicit"
7524
7525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
7526 printf %s "checking if $CC supports -Werror=implicit... " >&6; }
7527 cacheid=xorg_cv_cc_flag__Werror_implicit
7528 if eval test \${$cacheid+y}
7529 then :
7530 printf %s "(cached) " >&6
7531 else case e in #(
7532 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7533 /* end confdefs.h. */
7534 int i;
7535 int
7536 main (void)
7537 {
7538
7539 ;
7540 return 0;
7541 }
7542 _ACEOF
7543 if ac_fn_c_try_link "$LINENO"
7544 then :
7545 eval $cacheid=yes
7546 else case e in #(
7547 e) eval $cacheid=no ;;
7548 esac
7549 fi
7550 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7551 conftest$ac_exeext conftest.$ac_ext ;;
7552 esac
7553 fi
7554
7555
7556 CFLAGS="$xorg_testset_save_CFLAGS"
7557
7558 eval supported=\$$cacheid
7559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7560 printf "%s\n" "$supported" >&6; }
7561 if test "$supported" = "yes" ; then
7562 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
7563 found="yes"
7564 fi
7565 fi
7566
7567 if test $found = "no" ; then
7568 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7569 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7570 fi
7571
7572 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7573 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7574 fi
7575
7576 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7577
7578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
7579 printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
7580 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
7581 if eval test \${$cacheid+y}
7582 then :
7583 printf %s "(cached) " >&6
7584 else case e in #(
7585 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7586 /* end confdefs.h. */
7587 int i;
7588 int
7589 main (void)
7590 {
7591
7592 ;
7593 return 0;
7594 }
7595 _ACEOF
7596 if ac_fn_c_try_link "$LINENO"
7597 then :
7598 eval $cacheid=yes
7599 else case e in #(
7600 e) eval $cacheid=no ;;
7601 esac
7602 fi
7603 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7604 conftest$ac_exeext conftest.$ac_ext ;;
7605 esac
7606 fi
7607
7608
7609 CFLAGS="$xorg_testset_save_CFLAGS"
7610
7611 eval supported=\$$cacheid
7612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7613 printf "%s\n" "$supported" >&6; }
7614 if test "$supported" = "yes" ; then
7615 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7616 found="yes"
7617 fi
7618 fi
7619
7620
7621
7622
7623
7624
7625
7626
7627
7628
7629
7630
7631
7632
7633
7634 xorg_testset_save_CFLAGS="$CFLAGS"
7635
7636 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7637 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7639 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7640 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7641 then :
7642 printf %s "(cached) " >&6
7643 else case e in #(
7644 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7645 /* end confdefs.h. */
7646 int i;
7647 _ACEOF
7648 if ac_fn_c_try_compile "$LINENO"
7649 then :
7650 xorg_cv_cc_flag_unknown_warning_option=yes
7651 else case e in #(
7652 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7653 esac
7654 fi
7655 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7656 esac
7657 fi
7658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7659 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7660 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7661 CFLAGS="$xorg_testset_save_CFLAGS"
7662 fi
7663
7664 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7665 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7666 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7667 fi
7668 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7669 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7670 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7671 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7672 then :
7673 printf %s "(cached) " >&6
7674 else case e in #(
7675 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7676 /* end confdefs.h. */
7677 int i;
7678 _ACEOF
7679 if ac_fn_c_try_compile "$LINENO"
7680 then :
7681 xorg_cv_cc_flag_unused_command_line_argument=yes
7682 else case e in #(
7683 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7684 esac
7685 fi
7686 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7687 esac
7688 fi
7689 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7690 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7691 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7692 CFLAGS="$xorg_testset_save_CFLAGS"
7693 fi
7694
7695 found="no"
7696
7697 if test $found = "no" ; then
7698 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7699 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7700 fi
7701
7702 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7703 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7704 fi
7705
7706 CFLAGS="$CFLAGS -Werror=nonnull"
7707
7708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
7709 printf %s "checking if $CC supports -Werror=nonnull... " >&6; }
7710 cacheid=xorg_cv_cc_flag__Werror_nonnull
7711 if eval test \${$cacheid+y}
7712 then :
7713 printf %s "(cached) " >&6
7714 else case e in #(
7715 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7716 /* end confdefs.h. */
7717 int i;
7718 int
7719 main (void)
7720 {
7721
7722 ;
7723 return 0;
7724 }
7725 _ACEOF
7726 if ac_fn_c_try_link "$LINENO"
7727 then :
7728 eval $cacheid=yes
7729 else case e in #(
7730 e) eval $cacheid=no ;;
7731 esac
7732 fi
7733 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7734 conftest$ac_exeext conftest.$ac_ext ;;
7735 esac
7736 fi
7737
7738
7739 CFLAGS="$xorg_testset_save_CFLAGS"
7740
7741 eval supported=\$$cacheid
7742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7743 printf "%s\n" "$supported" >&6; }
7744 if test "$supported" = "yes" ; then
7745 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7746 found="yes"
7747 fi
7748 fi
7749
7750
7751
7752
7753
7754
7755
7756
7757
7758
7759
7760
7761
7762
7763
7764 xorg_testset_save_CFLAGS="$CFLAGS"
7765
7766 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7767 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7769 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7770 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7771 then :
7772 printf %s "(cached) " >&6
7773 else case e in #(
7774 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7775 /* end confdefs.h. */
7776 int i;
7777 _ACEOF
7778 if ac_fn_c_try_compile "$LINENO"
7779 then :
7780 xorg_cv_cc_flag_unknown_warning_option=yes
7781 else case e in #(
7782 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7783 esac
7784 fi
7785 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7786 esac
7787 fi
7788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7789 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7790 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7791 CFLAGS="$xorg_testset_save_CFLAGS"
7792 fi
7793
7794 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7795 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7796 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7797 fi
7798 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7800 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7801 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7802 then :
7803 printf %s "(cached) " >&6
7804 else case e in #(
7805 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7806 /* end confdefs.h. */
7807 int i;
7808 _ACEOF
7809 if ac_fn_c_try_compile "$LINENO"
7810 then :
7811 xorg_cv_cc_flag_unused_command_line_argument=yes
7812 else case e in #(
7813 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7814 esac
7815 fi
7816 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7817 esac
7818 fi
7819 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7820 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7821 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7822 CFLAGS="$xorg_testset_save_CFLAGS"
7823 fi
7824
7825 found="no"
7826
7827 if test $found = "no" ; then
7828 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7829 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7830 fi
7831
7832 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7833 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7834 fi
7835
7836 CFLAGS="$CFLAGS -Werror=init-self"
7837
7838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7839 printf %s "checking if $CC supports -Werror=init-self... " >&6; }
7840 cacheid=xorg_cv_cc_flag__Werror_init_self
7841 if eval test \${$cacheid+y}
7842 then :
7843 printf %s "(cached) " >&6
7844 else case e in #(
7845 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7846 /* end confdefs.h. */
7847 int i;
7848 int
7849 main (void)
7850 {
7851
7852 ;
7853 return 0;
7854 }
7855 _ACEOF
7856 if ac_fn_c_try_link "$LINENO"
7857 then :
7858 eval $cacheid=yes
7859 else case e in #(
7860 e) eval $cacheid=no ;;
7861 esac
7862 fi
7863 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7864 conftest$ac_exeext conftest.$ac_ext ;;
7865 esac
7866 fi
7867
7868
7869 CFLAGS="$xorg_testset_save_CFLAGS"
7870
7871 eval supported=\$$cacheid
7872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7873 printf "%s\n" "$supported" >&6; }
7874 if test "$supported" = "yes" ; then
7875 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7876 found="yes"
7877 fi
7878 fi
7879
7880
7881
7882
7883
7884
7885
7886
7887
7888
7889
7890
7891
7892
7893
7894 xorg_testset_save_CFLAGS="$CFLAGS"
7895
7896 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7897 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7899 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7900 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7901 then :
7902 printf %s "(cached) " >&6
7903 else case e in #(
7904 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7905 /* end confdefs.h. */
7906 int i;
7907 _ACEOF
7908 if ac_fn_c_try_compile "$LINENO"
7909 then :
7910 xorg_cv_cc_flag_unknown_warning_option=yes
7911 else case e in #(
7912 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7913 esac
7914 fi
7915 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7916 esac
7917 fi
7918 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7919 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7920 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7921 CFLAGS="$xorg_testset_save_CFLAGS"
7922 fi
7923
7924 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7925 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7926 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7927 fi
7928 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7930 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7931 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7932 then :
7933 printf %s "(cached) " >&6
7934 else case e in #(
7935 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7936 /* end confdefs.h. */
7937 int i;
7938 _ACEOF
7939 if ac_fn_c_try_compile "$LINENO"
7940 then :
7941 xorg_cv_cc_flag_unused_command_line_argument=yes
7942 else case e in #(
7943 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7944 esac
7945 fi
7946 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7947 esac
7948 fi
7949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7950 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7951 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7952 CFLAGS="$xorg_testset_save_CFLAGS"
7953 fi
7954
7955 found="no"
7956
7957 if test $found = "no" ; then
7958 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7959 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7960 fi
7961
7962 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7963 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7964 fi
7965
7966 CFLAGS="$CFLAGS -Werror=main"
7967
7968 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7969 printf %s "checking if $CC supports -Werror=main... " >&6; }
7970 cacheid=xorg_cv_cc_flag__Werror_main
7971 if eval test \${$cacheid+y}
7972 then :
7973 printf %s "(cached) " >&6
7974 else case e in #(
7975 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7976 /* end confdefs.h. */
7977 int i;
7978 int
7979 main (void)
7980 {
7981
7982 ;
7983 return 0;
7984 }
7985 _ACEOF
7986 if ac_fn_c_try_link "$LINENO"
7987 then :
7988 eval $cacheid=yes
7989 else case e in #(
7990 e) eval $cacheid=no ;;
7991 esac
7992 fi
7993 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7994 conftest$ac_exeext conftest.$ac_ext ;;
7995 esac
7996 fi
7997
7998
7999 CFLAGS="$xorg_testset_save_CFLAGS"
8000
8001 eval supported=\$$cacheid
8002 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8003 printf "%s\n" "$supported" >&6; }
8004 if test "$supported" = "yes" ; then
8005 BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
8006 found="yes"
8007 fi
8008 fi
8009
8010
8011
8012
8013
8014
8015
8016
8017
8018
8019
8020
8021
8022
8023
8024 xorg_testset_save_CFLAGS="$CFLAGS"
8025
8026 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8027 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8028 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8029 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8030 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8031 then :
8032 printf %s "(cached) " >&6
8033 else case e in #(
8034 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8035 /* end confdefs.h. */
8036 int i;
8037 _ACEOF
8038 if ac_fn_c_try_compile "$LINENO"
8039 then :
8040 xorg_cv_cc_flag_unknown_warning_option=yes
8041 else case e in #(
8042 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8043 esac
8044 fi
8045 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8046 esac
8047 fi
8048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8049 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8050 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8051 CFLAGS="$xorg_testset_save_CFLAGS"
8052 fi
8053
8054 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8055 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8056 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8057 fi
8058 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8060 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8061 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8062 then :
8063 printf %s "(cached) " >&6
8064 else case e in #(
8065 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8066 /* end confdefs.h. */
8067 int i;
8068 _ACEOF
8069 if ac_fn_c_try_compile "$LINENO"
8070 then :
8071 xorg_cv_cc_flag_unused_command_line_argument=yes
8072 else case e in #(
8073 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8074 esac
8075 fi
8076 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8077 esac
8078 fi
8079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8080 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8081 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8082 CFLAGS="$xorg_testset_save_CFLAGS"
8083 fi
8084
8085 found="no"
8086
8087 if test $found = "no" ; then
8088 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8089 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8090 fi
8091
8092 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8093 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8094 fi
8095
8096 CFLAGS="$CFLAGS -Werror=missing-braces"
8097
8098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
8099 printf %s "checking if $CC supports -Werror=missing-braces... " >&6; }
8100 cacheid=xorg_cv_cc_flag__Werror_missing_braces
8101 if eval test \${$cacheid+y}
8102 then :
8103 printf %s "(cached) " >&6
8104 else case e in #(
8105 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8106 /* end confdefs.h. */
8107 int i;
8108 int
8109 main (void)
8110 {
8111
8112 ;
8113 return 0;
8114 }
8115 _ACEOF
8116 if ac_fn_c_try_link "$LINENO"
8117 then :
8118 eval $cacheid=yes
8119 else case e in #(
8120 e) eval $cacheid=no ;;
8121 esac
8122 fi
8123 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8124 conftest$ac_exeext conftest.$ac_ext ;;
8125 esac
8126 fi
8127
8128
8129 CFLAGS="$xorg_testset_save_CFLAGS"
8130
8131 eval supported=\$$cacheid
8132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8133 printf "%s\n" "$supported" >&6; }
8134 if test "$supported" = "yes" ; then
8135 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
8136 found="yes"
8137 fi
8138 fi
8139
8140
8141
8142
8143
8144
8145
8146
8147
8148
8149
8150
8151
8152
8153
8154 xorg_testset_save_CFLAGS="$CFLAGS"
8155
8156 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8157 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8159 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8160 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8161 then :
8162 printf %s "(cached) " >&6
8163 else case e in #(
8164 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8165 /* end confdefs.h. */
8166 int i;
8167 _ACEOF
8168 if ac_fn_c_try_compile "$LINENO"
8169 then :
8170 xorg_cv_cc_flag_unknown_warning_option=yes
8171 else case e in #(
8172 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8173 esac
8174 fi
8175 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8176 esac
8177 fi
8178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8179 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8180 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8181 CFLAGS="$xorg_testset_save_CFLAGS"
8182 fi
8183
8184 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8185 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8186 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8187 fi
8188 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8190 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8191 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8192 then :
8193 printf %s "(cached) " >&6
8194 else case e in #(
8195 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8196 /* end confdefs.h. */
8197 int i;
8198 _ACEOF
8199 if ac_fn_c_try_compile "$LINENO"
8200 then :
8201 xorg_cv_cc_flag_unused_command_line_argument=yes
8202 else case e in #(
8203 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8204 esac
8205 fi
8206 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8207 esac
8208 fi
8209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8210 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8211 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8212 CFLAGS="$xorg_testset_save_CFLAGS"
8213 fi
8214
8215 found="no"
8216
8217 if test $found = "no" ; then
8218 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8219 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8220 fi
8221
8222 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8223 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8224 fi
8225
8226 CFLAGS="$CFLAGS -Werror=sequence-point"
8227
8228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
8229 printf %s "checking if $CC supports -Werror=sequence-point... " >&6; }
8230 cacheid=xorg_cv_cc_flag__Werror_sequence_point
8231 if eval test \${$cacheid+y}
8232 then :
8233 printf %s "(cached) " >&6
8234 else case e in #(
8235 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8236 /* end confdefs.h. */
8237 int i;
8238 int
8239 main (void)
8240 {
8241
8242 ;
8243 return 0;
8244 }
8245 _ACEOF
8246 if ac_fn_c_try_link "$LINENO"
8247 then :
8248 eval $cacheid=yes
8249 else case e in #(
8250 e) eval $cacheid=no ;;
8251 esac
8252 fi
8253 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8254 conftest$ac_exeext conftest.$ac_ext ;;
8255 esac
8256 fi
8257
8258
8259 CFLAGS="$xorg_testset_save_CFLAGS"
8260
8261 eval supported=\$$cacheid
8262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8263 printf "%s\n" "$supported" >&6; }
8264 if test "$supported" = "yes" ; then
8265 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
8266 found="yes"
8267 fi
8268 fi
8269
8270
8271
8272
8273
8274
8275
8276
8277
8278
8279
8280
8281
8282
8283
8284 xorg_testset_save_CFLAGS="$CFLAGS"
8285
8286 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8287 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8289 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8290 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8291 then :
8292 printf %s "(cached) " >&6
8293 else case e in #(
8294 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8295 /* end confdefs.h. */
8296 int i;
8297 _ACEOF
8298 if ac_fn_c_try_compile "$LINENO"
8299 then :
8300 xorg_cv_cc_flag_unknown_warning_option=yes
8301 else case e in #(
8302 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8303 esac
8304 fi
8305 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8306 esac
8307 fi
8308 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8309 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8310 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8311 CFLAGS="$xorg_testset_save_CFLAGS"
8312 fi
8313
8314 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8315 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8316 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8317 fi
8318 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8320 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8321 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8322 then :
8323 printf %s "(cached) " >&6
8324 else case e in #(
8325 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8326 /* end confdefs.h. */
8327 int i;
8328 _ACEOF
8329 if ac_fn_c_try_compile "$LINENO"
8330 then :
8331 xorg_cv_cc_flag_unused_command_line_argument=yes
8332 else case e in #(
8333 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8334 esac
8335 fi
8336 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8337 esac
8338 fi
8339 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8340 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8341 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8342 CFLAGS="$xorg_testset_save_CFLAGS"
8343 fi
8344
8345 found="no"
8346
8347 if test $found = "no" ; then
8348 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8349 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8350 fi
8351
8352 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8353 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8354 fi
8355
8356 CFLAGS="$CFLAGS -Werror=return-type"
8357
8358 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
8359 printf %s "checking if $CC supports -Werror=return-type... " >&6; }
8360 cacheid=xorg_cv_cc_flag__Werror_return_type
8361 if eval test \${$cacheid+y}
8362 then :
8363 printf %s "(cached) " >&6
8364 else case e in #(
8365 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8366 /* end confdefs.h. */
8367 int i;
8368 int
8369 main (void)
8370 {
8371
8372 ;
8373 return 0;
8374 }
8375 _ACEOF
8376 if ac_fn_c_try_link "$LINENO"
8377 then :
8378 eval $cacheid=yes
8379 else case e in #(
8380 e) eval $cacheid=no ;;
8381 esac
8382 fi
8383 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8384 conftest$ac_exeext conftest.$ac_ext ;;
8385 esac
8386 fi
8387
8388
8389 CFLAGS="$xorg_testset_save_CFLAGS"
8390
8391 eval supported=\$$cacheid
8392 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8393 printf "%s\n" "$supported" >&6; }
8394 if test "$supported" = "yes" ; then
8395 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
8396 found="yes"
8397 fi
8398 fi
8399
8400 if test $found = "no" ; then
8401 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8402 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8403 fi
8404
8405 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8406 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8407 fi
8408
8409 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8410
8411 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
8412 printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
8413 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
8414 if eval test \${$cacheid+y}
8415 then :
8416 printf %s "(cached) " >&6
8417 else case e in #(
8418 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8419 /* end confdefs.h. */
8420 int i;
8421 int
8422 main (void)
8423 {
8424
8425 ;
8426 return 0;
8427 }
8428 _ACEOF
8429 if ac_fn_c_try_link "$LINENO"
8430 then :
8431 eval $cacheid=yes
8432 else case e in #(
8433 e) eval $cacheid=no ;;
8434 esac
8435 fi
8436 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8437 conftest$ac_exeext conftest.$ac_ext ;;
8438 esac
8439 fi
8440
8441
8442 CFLAGS="$xorg_testset_save_CFLAGS"
8443
8444 eval supported=\$$cacheid
8445 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8446 printf "%s\n" "$supported" >&6; }
8447 if test "$supported" = "yes" ; then
8448 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8449 found="yes"
8450 fi
8451 fi
8452
8453
8454
8455
8456
8457
8458
8459
8460
8461
8462
8463
8464
8465
8466
8467 xorg_testset_save_CFLAGS="$CFLAGS"
8468
8469 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8470 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8472 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8473 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8474 then :
8475 printf %s "(cached) " >&6
8476 else case e in #(
8477 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8478 /* end confdefs.h. */
8479 int i;
8480 _ACEOF
8481 if ac_fn_c_try_compile "$LINENO"
8482 then :
8483 xorg_cv_cc_flag_unknown_warning_option=yes
8484 else case e in #(
8485 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8486 esac
8487 fi
8488 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8489 esac
8490 fi
8491 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8492 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8493 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8494 CFLAGS="$xorg_testset_save_CFLAGS"
8495 fi
8496
8497 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8498 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8499 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8500 fi
8501 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8503 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8504 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8505 then :
8506 printf %s "(cached) " >&6
8507 else case e in #(
8508 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8509 /* end confdefs.h. */
8510 int i;
8511 _ACEOF
8512 if ac_fn_c_try_compile "$LINENO"
8513 then :
8514 xorg_cv_cc_flag_unused_command_line_argument=yes
8515 else case e in #(
8516 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8517 esac
8518 fi
8519 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8520 esac
8521 fi
8522 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8523 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8524 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8525 CFLAGS="$xorg_testset_save_CFLAGS"
8526 fi
8527
8528 found="no"
8529
8530 if test $found = "no" ; then
8531 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8532 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8533 fi
8534
8535 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8536 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8537 fi
8538
8539 CFLAGS="$CFLAGS -Werror=trigraphs"
8540
8541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
8542 printf %s "checking if $CC supports -Werror=trigraphs... " >&6; }
8543 cacheid=xorg_cv_cc_flag__Werror_trigraphs
8544 if eval test \${$cacheid+y}
8545 then :
8546 printf %s "(cached) " >&6
8547 else case e in #(
8548 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8549 /* end confdefs.h. */
8550 int i;
8551 int
8552 main (void)
8553 {
8554
8555 ;
8556 return 0;
8557 }
8558 _ACEOF
8559 if ac_fn_c_try_link "$LINENO"
8560 then :
8561 eval $cacheid=yes
8562 else case e in #(
8563 e) eval $cacheid=no ;;
8564 esac
8565 fi
8566 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8567 conftest$ac_exeext conftest.$ac_ext ;;
8568 esac
8569 fi
8570
8571
8572 CFLAGS="$xorg_testset_save_CFLAGS"
8573
8574 eval supported=\$$cacheid
8575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8576 printf "%s\n" "$supported" >&6; }
8577 if test "$supported" = "yes" ; then
8578 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
8579 found="yes"
8580 fi
8581 fi
8582
8583
8584
8585
8586
8587
8588
8589
8590
8591
8592
8593
8594
8595
8596
8597 xorg_testset_save_CFLAGS="$CFLAGS"
8598
8599 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8600 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8602 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8603 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8604 then :
8605 printf %s "(cached) " >&6
8606 else case e in #(
8607 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8608 /* end confdefs.h. */
8609 int i;
8610 _ACEOF
8611 if ac_fn_c_try_compile "$LINENO"
8612 then :
8613 xorg_cv_cc_flag_unknown_warning_option=yes
8614 else case e in #(
8615 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8616 esac
8617 fi
8618 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8619 esac
8620 fi
8621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8622 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8623 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8624 CFLAGS="$xorg_testset_save_CFLAGS"
8625 fi
8626
8627 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8628 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8629 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8630 fi
8631 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8633 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8634 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8635 then :
8636 printf %s "(cached) " >&6
8637 else case e in #(
8638 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8639 /* end confdefs.h. */
8640 int i;
8641 _ACEOF
8642 if ac_fn_c_try_compile "$LINENO"
8643 then :
8644 xorg_cv_cc_flag_unused_command_line_argument=yes
8645 else case e in #(
8646 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8647 esac
8648 fi
8649 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8650 esac
8651 fi
8652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8653 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8654 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8655 CFLAGS="$xorg_testset_save_CFLAGS"
8656 fi
8657
8658 found="no"
8659
8660 if test $found = "no" ; then
8661 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8662 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8663 fi
8664
8665 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8666 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8667 fi
8668
8669 CFLAGS="$CFLAGS -Werror=array-bounds"
8670
8671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
8672 printf %s "checking if $CC supports -Werror=array-bounds... " >&6; }
8673 cacheid=xorg_cv_cc_flag__Werror_array_bounds
8674 if eval test \${$cacheid+y}
8675 then :
8676 printf %s "(cached) " >&6
8677 else case e in #(
8678 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8679 /* end confdefs.h. */
8680 int i;
8681 int
8682 main (void)
8683 {
8684
8685 ;
8686 return 0;
8687 }
8688 _ACEOF
8689 if ac_fn_c_try_link "$LINENO"
8690 then :
8691 eval $cacheid=yes
8692 else case e in #(
8693 e) eval $cacheid=no ;;
8694 esac
8695 fi
8696 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8697 conftest$ac_exeext conftest.$ac_ext ;;
8698 esac
8699 fi
8700
8701
8702 CFLAGS="$xorg_testset_save_CFLAGS"
8703
8704 eval supported=\$$cacheid
8705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8706 printf "%s\n" "$supported" >&6; }
8707 if test "$supported" = "yes" ; then
8708 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
8709 found="yes"
8710 fi
8711 fi
8712
8713
8714
8715
8716
8717
8718
8719
8720
8721
8722
8723
8724
8725
8726
8727 xorg_testset_save_CFLAGS="$CFLAGS"
8728
8729 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8730 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8732 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8733 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8734 then :
8735 printf %s "(cached) " >&6
8736 else case e in #(
8737 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8738 /* end confdefs.h. */
8739 int i;
8740 _ACEOF
8741 if ac_fn_c_try_compile "$LINENO"
8742 then :
8743 xorg_cv_cc_flag_unknown_warning_option=yes
8744 else case e in #(
8745 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8746 esac
8747 fi
8748 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8749 esac
8750 fi
8751 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8752 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8753 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8754 CFLAGS="$xorg_testset_save_CFLAGS"
8755 fi
8756
8757 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8758 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8759 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8760 fi
8761 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8763 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8764 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8765 then :
8766 printf %s "(cached) " >&6
8767 else case e in #(
8768 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8769 /* end confdefs.h. */
8770 int i;
8771 _ACEOF
8772 if ac_fn_c_try_compile "$LINENO"
8773 then :
8774 xorg_cv_cc_flag_unused_command_line_argument=yes
8775 else case e in #(
8776 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8777 esac
8778 fi
8779 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8780 esac
8781 fi
8782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8783 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8784 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8785 CFLAGS="$xorg_testset_save_CFLAGS"
8786 fi
8787
8788 found="no"
8789
8790 if test $found = "no" ; then
8791 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8792 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8793 fi
8794
8795 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8796 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8797 fi
8798
8799 CFLAGS="$CFLAGS -Werror=write-strings"
8800
8801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
8802 printf %s "checking if $CC supports -Werror=write-strings... " >&6; }
8803 cacheid=xorg_cv_cc_flag__Werror_write_strings
8804 if eval test \${$cacheid+y}
8805 then :
8806 printf %s "(cached) " >&6
8807 else case e in #(
8808 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8809 /* end confdefs.h. */
8810 int i;
8811 int
8812 main (void)
8813 {
8814
8815 ;
8816 return 0;
8817 }
8818 _ACEOF
8819 if ac_fn_c_try_link "$LINENO"
8820 then :
8821 eval $cacheid=yes
8822 else case e in #(
8823 e) eval $cacheid=no ;;
8824 esac
8825 fi
8826 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8827 conftest$ac_exeext conftest.$ac_ext ;;
8828 esac
8829 fi
8830
8831
8832 CFLAGS="$xorg_testset_save_CFLAGS"
8833
8834 eval supported=\$$cacheid
8835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8836 printf "%s\n" "$supported" >&6; }
8837 if test "$supported" = "yes" ; then
8838 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
8839 found="yes"
8840 fi
8841 fi
8842
8843
8844
8845
8846
8847
8848
8849
8850
8851
8852
8853
8854
8855
8856
8857 xorg_testset_save_CFLAGS="$CFLAGS"
8858
8859 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8860 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8862 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8863 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8864 then :
8865 printf %s "(cached) " >&6
8866 else case e in #(
8867 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8868 /* end confdefs.h. */
8869 int i;
8870 _ACEOF
8871 if ac_fn_c_try_compile "$LINENO"
8872 then :
8873 xorg_cv_cc_flag_unknown_warning_option=yes
8874 else case e in #(
8875 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8876 esac
8877 fi
8878 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8879 esac
8880 fi
8881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8882 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8883 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8884 CFLAGS="$xorg_testset_save_CFLAGS"
8885 fi
8886
8887 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8888 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8889 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8890 fi
8891 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8893 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8894 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8895 then :
8896 printf %s "(cached) " >&6
8897 else case e in #(
8898 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8899 /* end confdefs.h. */
8900 int i;
8901 _ACEOF
8902 if ac_fn_c_try_compile "$LINENO"
8903 then :
8904 xorg_cv_cc_flag_unused_command_line_argument=yes
8905 else case e in #(
8906 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8907 esac
8908 fi
8909 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8910 esac
8911 fi
8912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8913 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8914 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8915 CFLAGS="$xorg_testset_save_CFLAGS"
8916 fi
8917
8918 found="no"
8919
8920 if test $found = "no" ; then
8921 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8922 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8923 fi
8924
8925 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8926 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8927 fi
8928
8929 CFLAGS="$CFLAGS -Werror=address"
8930
8931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
8932 printf %s "checking if $CC supports -Werror=address... " >&6; }
8933 cacheid=xorg_cv_cc_flag__Werror_address
8934 if eval test \${$cacheid+y}
8935 then :
8936 printf %s "(cached) " >&6
8937 else case e in #(
8938 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8939 /* end confdefs.h. */
8940 int i;
8941 int
8942 main (void)
8943 {
8944
8945 ;
8946 return 0;
8947 }
8948 _ACEOF
8949 if ac_fn_c_try_link "$LINENO"
8950 then :
8951 eval $cacheid=yes
8952 else case e in #(
8953 e) eval $cacheid=no ;;
8954 esac
8955 fi
8956 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8957 conftest$ac_exeext conftest.$ac_ext ;;
8958 esac
8959 fi
8960
8961
8962 CFLAGS="$xorg_testset_save_CFLAGS"
8963
8964 eval supported=\$$cacheid
8965 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8966 printf "%s\n" "$supported" >&6; }
8967 if test "$supported" = "yes" ; then
8968 BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8969 found="yes"
8970 fi
8971 fi
8972
8973
8974
8975
8976
8977
8978
8979
8980
8981
8982
8983
8984
8985
8986
8987 xorg_testset_save_CFLAGS="$CFLAGS"
8988
8989 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8990 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8991 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8992 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8993 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8994 then :
8995 printf %s "(cached) " >&6
8996 else case e in #(
8997 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8998 /* end confdefs.h. */
8999 int i;
9000 _ACEOF
9001 if ac_fn_c_try_compile "$LINENO"
9002 then :
9003 xorg_cv_cc_flag_unknown_warning_option=yes
9004 else case e in #(
9005 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9006 esac
9007 fi
9008 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9009 esac
9010 fi
9011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9012 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9013 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9014 CFLAGS="$xorg_testset_save_CFLAGS"
9015 fi
9016
9017 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9018 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9019 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9020 fi
9021 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9022 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9023 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9024 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9025 then :
9026 printf %s "(cached) " >&6
9027 else case e in #(
9028 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9029 /* end confdefs.h. */
9030 int i;
9031 _ACEOF
9032 if ac_fn_c_try_compile "$LINENO"
9033 then :
9034 xorg_cv_cc_flag_unused_command_line_argument=yes
9035 else case e in #(
9036 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9037 esac
9038 fi
9039 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9040 esac
9041 fi
9042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9043 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9044 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9045 CFLAGS="$xorg_testset_save_CFLAGS"
9046 fi
9047
9048 found="no"
9049
9050 if test $found = "no" ; then
9051 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9052 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9053 fi
9054
9055 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9056 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9057 fi
9058
9059 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
9060
9061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
9062 printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
9063 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
9064 if eval test \${$cacheid+y}
9065 then :
9066 printf %s "(cached) " >&6
9067 else case e in #(
9068 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9069 /* end confdefs.h. */
9070 int i;
9071 int
9072 main (void)
9073 {
9074
9075 ;
9076 return 0;
9077 }
9078 _ACEOF
9079 if ac_fn_c_try_link "$LINENO"
9080 then :
9081 eval $cacheid=yes
9082 else case e in #(
9083 e) eval $cacheid=no ;;
9084 esac
9085 fi
9086 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9087 conftest$ac_exeext conftest.$ac_ext ;;
9088 esac
9089 fi
9090
9091
9092 CFLAGS="$xorg_testset_save_CFLAGS"
9093
9094 eval supported=\$$cacheid
9095 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9096 printf "%s\n" "$supported" >&6; }
9097 if test "$supported" = "yes" ; then
9098 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
9099 found="yes"
9100 fi
9101 fi
9102
9103 if test $found = "no" ; then
9104 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9105 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9106 fi
9107
9108 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9109 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9110 fi
9111
9112 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
9113
9114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
9115 printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
9116 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
9117 if eval test \${$cacheid+y}
9118 then :
9119 printf %s "(cached) " >&6
9120 else case e in #(
9121 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9122 /* end confdefs.h. */
9123 int i;
9124 int
9125 main (void)
9126 {
9127
9128 ;
9129 return 0;
9130 }
9131 _ACEOF
9132 if ac_fn_c_try_link "$LINENO"
9133 then :
9134 eval $cacheid=yes
9135 else case e in #(
9136 e) eval $cacheid=no ;;
9137 esac
9138 fi
9139 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9140 conftest$ac_exeext conftest.$ac_ext ;;
9141 esac
9142 fi
9143
9144
9145 CFLAGS="$xorg_testset_save_CFLAGS"
9146
9147 eval supported=\$$cacheid
9148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9149 printf "%s\n" "$supported" >&6; }
9150 if test "$supported" = "yes" ; then
9151 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
9152 found="yes"
9153 fi
9154 fi
9155
9156
9157
9158
9159
9160
9161
9162
9163
9164
9165
9166
9167
9168
9169
9170 xorg_testset_save_CFLAGS="$CFLAGS"
9171
9172 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9173 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9174 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9175 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9176 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9177 then :
9178 printf %s "(cached) " >&6
9179 else case e in #(
9180 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9181 /* end confdefs.h. */
9182 int i;
9183 _ACEOF
9184 if ac_fn_c_try_compile "$LINENO"
9185 then :
9186 xorg_cv_cc_flag_unknown_warning_option=yes
9187 else case e in #(
9188 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9189 esac
9190 fi
9191 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9192 esac
9193 fi
9194 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9195 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9196 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9197 CFLAGS="$xorg_testset_save_CFLAGS"
9198 fi
9199
9200 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9201 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9202 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9203 fi
9204 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9205 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9206 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9207 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9208 then :
9209 printf %s "(cached) " >&6
9210 else case e in #(
9211 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9212 /* end confdefs.h. */
9213 int i;
9214 _ACEOF
9215 if ac_fn_c_try_compile "$LINENO"
9216 then :
9217 xorg_cv_cc_flag_unused_command_line_argument=yes
9218 else case e in #(
9219 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9220 esac
9221 fi
9222 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9223 esac
9224 fi
9225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9226 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9227 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9228 CFLAGS="$xorg_testset_save_CFLAGS"
9229 fi
9230
9231 found="no"
9232
9233 if test $found = "no" ; then
9234 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9235 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9236 fi
9237
9238 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9239 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9240 fi
9241
9242 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
9243
9244 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
9245 printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
9246 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
9247 if eval test \${$cacheid+y}
9248 then :
9249 printf %s "(cached) " >&6
9250 else case e in #(
9251 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9252 /* end confdefs.h. */
9253 int i;
9254 int
9255 main (void)
9256 {
9257
9258 ;
9259 return 0;
9260 }
9261 _ACEOF
9262 if ac_fn_c_try_link "$LINENO"
9263 then :
9264 eval $cacheid=yes
9265 else case e in #(
9266 e) eval $cacheid=no ;;
9267 esac
9268 fi
9269 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9270 conftest$ac_exeext conftest.$ac_ext ;;
9271 esac
9272 fi
9273
9274
9275 CFLAGS="$xorg_testset_save_CFLAGS"
9276
9277 eval supported=\$$cacheid
9278 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9279 printf "%s\n" "$supported" >&6; }
9280 if test "$supported" = "yes" ; then
9281 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
9282 found="yes"
9283 fi
9284 fi
9285
9286 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
9287 else
9288 { printf "%s\n" "$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
9289 printf "%s\n" "$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;}
9290
9291
9292
9293
9294
9295
9296
9297
9298
9299
9300
9301
9302
9303 xorg_testset_save_CFLAGS="$CFLAGS"
9304
9305 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9306 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9307 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9308 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9309 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9310 then :
9311 printf %s "(cached) " >&6
9312 else case e in #(
9313 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9314 /* end confdefs.h. */
9315 int i;
9316 _ACEOF
9317 if ac_fn_c_try_compile "$LINENO"
9318 then :
9319 xorg_cv_cc_flag_unknown_warning_option=yes
9320 else case e in #(
9321 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9322 esac
9323 fi
9324 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9325 esac
9326 fi
9327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9328 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9329 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9330 CFLAGS="$xorg_testset_save_CFLAGS"
9331 fi
9332
9333 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9334 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9335 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9336 fi
9337 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9339 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9340 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9341 then :
9342 printf %s "(cached) " >&6
9343 else case e in #(
9344 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9345 /* end confdefs.h. */
9346 int i;
9347 _ACEOF
9348 if ac_fn_c_try_compile "$LINENO"
9349 then :
9350 xorg_cv_cc_flag_unused_command_line_argument=yes
9351 else case e in #(
9352 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9353 esac
9354 fi
9355 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9356 esac
9357 fi
9358 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9359 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9360 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9361 CFLAGS="$xorg_testset_save_CFLAGS"
9362 fi
9363
9364 found="no"
9365
9366 if test $found = "no" ; then
9367 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9368 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9369 fi
9370
9371 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9372 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9373 fi
9374
9375 CFLAGS="$CFLAGS -Wimplicit"
9376
9377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
9378 printf %s "checking if $CC supports -Wimplicit... " >&6; }
9379 cacheid=xorg_cv_cc_flag__Wimplicit
9380 if eval test \${$cacheid+y}
9381 then :
9382 printf %s "(cached) " >&6
9383 else case e in #(
9384 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9385 /* end confdefs.h. */
9386 int i;
9387 int
9388 main (void)
9389 {
9390
9391 ;
9392 return 0;
9393 }
9394 _ACEOF
9395 if ac_fn_c_try_link "$LINENO"
9396 then :
9397 eval $cacheid=yes
9398 else case e in #(
9399 e) eval $cacheid=no ;;
9400 esac
9401 fi
9402 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9403 conftest$ac_exeext conftest.$ac_ext ;;
9404 esac
9405 fi
9406
9407
9408 CFLAGS="$xorg_testset_save_CFLAGS"
9409
9410 eval supported=\$$cacheid
9411 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9412 printf "%s\n" "$supported" >&6; }
9413 if test "$supported" = "yes" ; then
9414 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
9415 found="yes"
9416 fi
9417 fi
9418
9419
9420
9421
9422
9423
9424
9425
9426
9427
9428
9429
9430
9431
9432
9433 xorg_testset_save_CFLAGS="$CFLAGS"
9434
9435 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9436 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9438 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9439 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9440 then :
9441 printf %s "(cached) " >&6
9442 else case e in #(
9443 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9444 /* end confdefs.h. */
9445 int i;
9446 _ACEOF
9447 if ac_fn_c_try_compile "$LINENO"
9448 then :
9449 xorg_cv_cc_flag_unknown_warning_option=yes
9450 else case e in #(
9451 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9452 esac
9453 fi
9454 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9455 esac
9456 fi
9457 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9458 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9459 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9460 CFLAGS="$xorg_testset_save_CFLAGS"
9461 fi
9462
9463 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9464 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9465 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9466 fi
9467 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9469 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9470 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9471 then :
9472 printf %s "(cached) " >&6
9473 else case e in #(
9474 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9475 /* end confdefs.h. */
9476 int i;
9477 _ACEOF
9478 if ac_fn_c_try_compile "$LINENO"
9479 then :
9480 xorg_cv_cc_flag_unused_command_line_argument=yes
9481 else case e in #(
9482 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9483 esac
9484 fi
9485 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9486 esac
9487 fi
9488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9489 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9490 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9491 CFLAGS="$xorg_testset_save_CFLAGS"
9492 fi
9493
9494 found="no"
9495
9496 if test $found = "no" ; then
9497 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9498 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9499 fi
9500
9501 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9502 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9503 fi
9504
9505 CFLAGS="$CFLAGS -Wnonnull"
9506
9507 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
9508 printf %s "checking if $CC supports -Wnonnull... " >&6; }
9509 cacheid=xorg_cv_cc_flag__Wnonnull
9510 if eval test \${$cacheid+y}
9511 then :
9512 printf %s "(cached) " >&6
9513 else case e in #(
9514 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9515 /* end confdefs.h. */
9516 int i;
9517 int
9518 main (void)
9519 {
9520
9521 ;
9522 return 0;
9523 }
9524 _ACEOF
9525 if ac_fn_c_try_link "$LINENO"
9526 then :
9527 eval $cacheid=yes
9528 else case e in #(
9529 e) eval $cacheid=no ;;
9530 esac
9531 fi
9532 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9533 conftest$ac_exeext conftest.$ac_ext ;;
9534 esac
9535 fi
9536
9537
9538 CFLAGS="$xorg_testset_save_CFLAGS"
9539
9540 eval supported=\$$cacheid
9541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9542 printf "%s\n" "$supported" >&6; }
9543 if test "$supported" = "yes" ; then
9544 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
9545 found="yes"
9546 fi
9547 fi
9548
9549
9550
9551
9552
9553
9554
9555
9556
9557
9558
9559
9560
9561
9562
9563 xorg_testset_save_CFLAGS="$CFLAGS"
9564
9565 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9566 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9568 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9569 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9570 then :
9571 printf %s "(cached) " >&6
9572 else case e in #(
9573 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9574 /* end confdefs.h. */
9575 int i;
9576 _ACEOF
9577 if ac_fn_c_try_compile "$LINENO"
9578 then :
9579 xorg_cv_cc_flag_unknown_warning_option=yes
9580 else case e in #(
9581 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9582 esac
9583 fi
9584 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9585 esac
9586 fi
9587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9588 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9589 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9590 CFLAGS="$xorg_testset_save_CFLAGS"
9591 fi
9592
9593 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9594 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9595 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9596 fi
9597 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9598 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9599 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9600 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9601 then :
9602 printf %s "(cached) " >&6
9603 else case e in #(
9604 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9605 /* end confdefs.h. */
9606 int i;
9607 _ACEOF
9608 if ac_fn_c_try_compile "$LINENO"
9609 then :
9610 xorg_cv_cc_flag_unused_command_line_argument=yes
9611 else case e in #(
9612 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9613 esac
9614 fi
9615 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9616 esac
9617 fi
9618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9619 printf "%s\n" "$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 -Winit-self"
9636
9637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
9638 printf %s "checking if $CC supports -Winit-self... " >&6; }
9639 cacheid=xorg_cv_cc_flag__Winit_self
9640 if eval test \${$cacheid+y}
9641 then :
9642 printf %s "(cached) " >&6
9643 else case e in #(
9644 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9645 /* end confdefs.h. */
9646 int i;
9647 int
9648 main (void)
9649 {
9650
9651 ;
9652 return 0;
9653 }
9654 _ACEOF
9655 if ac_fn_c_try_link "$LINENO"
9656 then :
9657 eval $cacheid=yes
9658 else case e in #(
9659 e) eval $cacheid=no ;;
9660 esac
9661 fi
9662 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9663 conftest$ac_exeext conftest.$ac_ext ;;
9664 esac
9665 fi
9666
9667
9668 CFLAGS="$xorg_testset_save_CFLAGS"
9669
9670 eval supported=\$$cacheid
9671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9672 printf "%s\n" "$supported" >&6; }
9673 if test "$supported" = "yes" ; then
9674 BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
9675 found="yes"
9676 fi
9677 fi
9678
9679
9680
9681
9682
9683
9684
9685
9686
9687
9688
9689
9690
9691
9692
9693 xorg_testset_save_CFLAGS="$CFLAGS"
9694
9695 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9696 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9698 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9699 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9700 then :
9701 printf %s "(cached) " >&6
9702 else case e in #(
9703 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9704 /* end confdefs.h. */
9705 int i;
9706 _ACEOF
9707 if ac_fn_c_try_compile "$LINENO"
9708 then :
9709 xorg_cv_cc_flag_unknown_warning_option=yes
9710 else case e in #(
9711 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9712 esac
9713 fi
9714 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9715 esac
9716 fi
9717 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9718 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9719 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9720 CFLAGS="$xorg_testset_save_CFLAGS"
9721 fi
9722
9723 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9724 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9725 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9726 fi
9727 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9728 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9729 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9730 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9731 then :
9732 printf %s "(cached) " >&6
9733 else case e in #(
9734 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9735 /* end confdefs.h. */
9736 int i;
9737 _ACEOF
9738 if ac_fn_c_try_compile "$LINENO"
9739 then :
9740 xorg_cv_cc_flag_unused_command_line_argument=yes
9741 else case e in #(
9742 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9743 esac
9744 fi
9745 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9746 esac
9747 fi
9748 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9749 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9750 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9751 CFLAGS="$xorg_testset_save_CFLAGS"
9752 fi
9753
9754 found="no"
9755
9756 if test $found = "no" ; then
9757 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9758 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9759 fi
9760
9761 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9762 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9763 fi
9764
9765 CFLAGS="$CFLAGS -Wmain"
9766
9767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
9768 printf %s "checking if $CC supports -Wmain... " >&6; }
9769 cacheid=xorg_cv_cc_flag__Wmain
9770 if eval test \${$cacheid+y}
9771 then :
9772 printf %s "(cached) " >&6
9773 else case e in #(
9774 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9775 /* end confdefs.h. */
9776 int i;
9777 int
9778 main (void)
9779 {
9780
9781 ;
9782 return 0;
9783 }
9784 _ACEOF
9785 if ac_fn_c_try_link "$LINENO"
9786 then :
9787 eval $cacheid=yes
9788 else case e in #(
9789 e) eval $cacheid=no ;;
9790 esac
9791 fi
9792 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9793 conftest$ac_exeext conftest.$ac_ext ;;
9794 esac
9795 fi
9796
9797
9798 CFLAGS="$xorg_testset_save_CFLAGS"
9799
9800 eval supported=\$$cacheid
9801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9802 printf "%s\n" "$supported" >&6; }
9803 if test "$supported" = "yes" ; then
9804 BASE_CFLAGS="$BASE_CFLAGS -Wmain"
9805 found="yes"
9806 fi
9807 fi
9808
9809
9810
9811
9812
9813
9814
9815
9816
9817
9818
9819
9820
9821
9822
9823 xorg_testset_save_CFLAGS="$CFLAGS"
9824
9825 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9826 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9827 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9828 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9829 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9830 then :
9831 printf %s "(cached) " >&6
9832 else case e in #(
9833 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9834 /* end confdefs.h. */
9835 int i;
9836 _ACEOF
9837 if ac_fn_c_try_compile "$LINENO"
9838 then :
9839 xorg_cv_cc_flag_unknown_warning_option=yes
9840 else case e in #(
9841 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9842 esac
9843 fi
9844 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9845 esac
9846 fi
9847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9848 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9849 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9850 CFLAGS="$xorg_testset_save_CFLAGS"
9851 fi
9852
9853 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9854 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9855 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9856 fi
9857 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9858 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9859 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9860 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9861 then :
9862 printf %s "(cached) " >&6
9863 else case e in #(
9864 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9865 /* end confdefs.h. */
9866 int i;
9867 _ACEOF
9868 if ac_fn_c_try_compile "$LINENO"
9869 then :
9870 xorg_cv_cc_flag_unused_command_line_argument=yes
9871 else case e in #(
9872 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9873 esac
9874 fi
9875 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9876 esac
9877 fi
9878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9879 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9880 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9881 CFLAGS="$xorg_testset_save_CFLAGS"
9882 fi
9883
9884 found="no"
9885
9886 if test $found = "no" ; then
9887 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9888 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9889 fi
9890
9891 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9892 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9893 fi
9894
9895 CFLAGS="$CFLAGS -Wmissing-braces"
9896
9897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
9898 printf %s "checking if $CC supports -Wmissing-braces... " >&6; }
9899 cacheid=xorg_cv_cc_flag__Wmissing_braces
9900 if eval test \${$cacheid+y}
9901 then :
9902 printf %s "(cached) " >&6
9903 else case e in #(
9904 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9905 /* end confdefs.h. */
9906 int i;
9907 int
9908 main (void)
9909 {
9910
9911 ;
9912 return 0;
9913 }
9914 _ACEOF
9915 if ac_fn_c_try_link "$LINENO"
9916 then :
9917 eval $cacheid=yes
9918 else case e in #(
9919 e) eval $cacheid=no ;;
9920 esac
9921 fi
9922 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9923 conftest$ac_exeext conftest.$ac_ext ;;
9924 esac
9925 fi
9926
9927
9928 CFLAGS="$xorg_testset_save_CFLAGS"
9929
9930 eval supported=\$$cacheid
9931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9932 printf "%s\n" "$supported" >&6; }
9933 if test "$supported" = "yes" ; then
9934 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
9935 found="yes"
9936 fi
9937 fi
9938
9939
9940
9941
9942
9943
9944
9945
9946
9947
9948
9949
9950
9951
9952
9953 xorg_testset_save_CFLAGS="$CFLAGS"
9954
9955 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9956 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9958 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9959 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9960 then :
9961 printf %s "(cached) " >&6
9962 else case e in #(
9963 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9964 /* end confdefs.h. */
9965 int i;
9966 _ACEOF
9967 if ac_fn_c_try_compile "$LINENO"
9968 then :
9969 xorg_cv_cc_flag_unknown_warning_option=yes
9970 else case e in #(
9971 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9972 esac
9973 fi
9974 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9975 esac
9976 fi
9977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9978 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9979 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9980 CFLAGS="$xorg_testset_save_CFLAGS"
9981 fi
9982
9983 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9984 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9985 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9986 fi
9987 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9989 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9990 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9991 then :
9992 printf %s "(cached) " >&6
9993 else case e in #(
9994 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9995 /* end confdefs.h. */
9996 int i;
9997 _ACEOF
9998 if ac_fn_c_try_compile "$LINENO"
9999 then :
10000 xorg_cv_cc_flag_unused_command_line_argument=yes
10001 else case e in #(
10002 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10003 esac
10004 fi
10005 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10006 esac
10007 fi
10008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10009 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10010 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10011 CFLAGS="$xorg_testset_save_CFLAGS"
10012 fi
10013
10014 found="no"
10015
10016 if test $found = "no" ; then
10017 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10018 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10019 fi
10020
10021 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10022 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10023 fi
10024
10025 CFLAGS="$CFLAGS -Wsequence-point"
10026
10027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
10028 printf %s "checking if $CC supports -Wsequence-point... " >&6; }
10029 cacheid=xorg_cv_cc_flag__Wsequence_point
10030 if eval test \${$cacheid+y}
10031 then :
10032 printf %s "(cached) " >&6
10033 else case e in #(
10034 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10035 /* end confdefs.h. */
10036 int i;
10037 int
10038 main (void)
10039 {
10040
10041 ;
10042 return 0;
10043 }
10044 _ACEOF
10045 if ac_fn_c_try_link "$LINENO"
10046 then :
10047 eval $cacheid=yes
10048 else case e in #(
10049 e) eval $cacheid=no ;;
10050 esac
10051 fi
10052 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10053 conftest$ac_exeext conftest.$ac_ext ;;
10054 esac
10055 fi
10056
10057
10058 CFLAGS="$xorg_testset_save_CFLAGS"
10059
10060 eval supported=\$$cacheid
10061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10062 printf "%s\n" "$supported" >&6; }
10063 if test "$supported" = "yes" ; then
10064 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
10065 found="yes"
10066 fi
10067 fi
10068
10069
10070
10071
10072
10073
10074
10075
10076
10077
10078
10079
10080
10081
10082
10083 xorg_testset_save_CFLAGS="$CFLAGS"
10084
10085 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10086 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10088 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10089 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10090 then :
10091 printf %s "(cached) " >&6
10092 else case e in #(
10093 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10094 /* end confdefs.h. */
10095 int i;
10096 _ACEOF
10097 if ac_fn_c_try_compile "$LINENO"
10098 then :
10099 xorg_cv_cc_flag_unknown_warning_option=yes
10100 else case e in #(
10101 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10102 esac
10103 fi
10104 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10105 esac
10106 fi
10107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10108 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10109 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10110 CFLAGS="$xorg_testset_save_CFLAGS"
10111 fi
10112
10113 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10114 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10115 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10116 fi
10117 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10118 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10119 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10120 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10121 then :
10122 printf %s "(cached) " >&6
10123 else case e in #(
10124 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10125 /* end confdefs.h. */
10126 int i;
10127 _ACEOF
10128 if ac_fn_c_try_compile "$LINENO"
10129 then :
10130 xorg_cv_cc_flag_unused_command_line_argument=yes
10131 else case e in #(
10132 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10133 esac
10134 fi
10135 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10136 esac
10137 fi
10138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10139 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10140 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10141 CFLAGS="$xorg_testset_save_CFLAGS"
10142 fi
10143
10144 found="no"
10145
10146 if test $found = "no" ; then
10147 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10148 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10149 fi
10150
10151 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10152 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10153 fi
10154
10155 CFLAGS="$CFLAGS -Wreturn-type"
10156
10157 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
10158 printf %s "checking if $CC supports -Wreturn-type... " >&6; }
10159 cacheid=xorg_cv_cc_flag__Wreturn_type
10160 if eval test \${$cacheid+y}
10161 then :
10162 printf %s "(cached) " >&6
10163 else case e in #(
10164 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10165 /* end confdefs.h. */
10166 int i;
10167 int
10168 main (void)
10169 {
10170
10171 ;
10172 return 0;
10173 }
10174 _ACEOF
10175 if ac_fn_c_try_link "$LINENO"
10176 then :
10177 eval $cacheid=yes
10178 else case e in #(
10179 e) eval $cacheid=no ;;
10180 esac
10181 fi
10182 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10183 conftest$ac_exeext conftest.$ac_ext ;;
10184 esac
10185 fi
10186
10187
10188 CFLAGS="$xorg_testset_save_CFLAGS"
10189
10190 eval supported=\$$cacheid
10191 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10192 printf "%s\n" "$supported" >&6; }
10193 if test "$supported" = "yes" ; then
10194 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
10195 found="yes"
10196 fi
10197 fi
10198
10199
10200
10201
10202
10203
10204
10205
10206
10207
10208
10209
10210
10211
10212
10213 xorg_testset_save_CFLAGS="$CFLAGS"
10214
10215 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10216 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10218 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10219 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10220 then :
10221 printf %s "(cached) " >&6
10222 else case e in #(
10223 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10224 /* end confdefs.h. */
10225 int i;
10226 _ACEOF
10227 if ac_fn_c_try_compile "$LINENO"
10228 then :
10229 xorg_cv_cc_flag_unknown_warning_option=yes
10230 else case e in #(
10231 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10232 esac
10233 fi
10234 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10235 esac
10236 fi
10237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10238 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10239 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10240 CFLAGS="$xorg_testset_save_CFLAGS"
10241 fi
10242
10243 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10244 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10245 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10246 fi
10247 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10248 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10249 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10250 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10251 then :
10252 printf %s "(cached) " >&6
10253 else case e in #(
10254 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10255 /* end confdefs.h. */
10256 int i;
10257 _ACEOF
10258 if ac_fn_c_try_compile "$LINENO"
10259 then :
10260 xorg_cv_cc_flag_unused_command_line_argument=yes
10261 else case e in #(
10262 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10263 esac
10264 fi
10265 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10266 esac
10267 fi
10268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10269 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10270 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10271 CFLAGS="$xorg_testset_save_CFLAGS"
10272 fi
10273
10274 found="no"
10275
10276 if test $found = "no" ; then
10277 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10278 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10279 fi
10280
10281 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10282 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10283 fi
10284
10285 CFLAGS="$CFLAGS -Wtrigraphs"
10286
10287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
10288 printf %s "checking if $CC supports -Wtrigraphs... " >&6; }
10289 cacheid=xorg_cv_cc_flag__Wtrigraphs
10290 if eval test \${$cacheid+y}
10291 then :
10292 printf %s "(cached) " >&6
10293 else case e in #(
10294 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10295 /* end confdefs.h. */
10296 int i;
10297 int
10298 main (void)
10299 {
10300
10301 ;
10302 return 0;
10303 }
10304 _ACEOF
10305 if ac_fn_c_try_link "$LINENO"
10306 then :
10307 eval $cacheid=yes
10308 else case e in #(
10309 e) eval $cacheid=no ;;
10310 esac
10311 fi
10312 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10313 conftest$ac_exeext conftest.$ac_ext ;;
10314 esac
10315 fi
10316
10317
10318 CFLAGS="$xorg_testset_save_CFLAGS"
10319
10320 eval supported=\$$cacheid
10321 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10322 printf "%s\n" "$supported" >&6; }
10323 if test "$supported" = "yes" ; then
10324 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
10325 found="yes"
10326 fi
10327 fi
10328
10329
10330
10331
10332
10333
10334
10335
10336
10337
10338
10339
10340
10341
10342
10343 xorg_testset_save_CFLAGS="$CFLAGS"
10344
10345 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10346 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10347 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10348 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10349 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10350 then :
10351 printf %s "(cached) " >&6
10352 else case e in #(
10353 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10354 /* end confdefs.h. */
10355 int i;
10356 _ACEOF
10357 if ac_fn_c_try_compile "$LINENO"
10358 then :
10359 xorg_cv_cc_flag_unknown_warning_option=yes
10360 else case e in #(
10361 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10362 esac
10363 fi
10364 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10365 esac
10366 fi
10367 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10368 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10369 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10370 CFLAGS="$xorg_testset_save_CFLAGS"
10371 fi
10372
10373 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10374 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10375 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10376 fi
10377 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10378 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10379 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10380 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10381 then :
10382 printf %s "(cached) " >&6
10383 else case e in #(
10384 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10385 /* end confdefs.h. */
10386 int i;
10387 _ACEOF
10388 if ac_fn_c_try_compile "$LINENO"
10389 then :
10390 xorg_cv_cc_flag_unused_command_line_argument=yes
10391 else case e in #(
10392 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10393 esac
10394 fi
10395 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10396 esac
10397 fi
10398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10399 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10400 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10401 CFLAGS="$xorg_testset_save_CFLAGS"
10402 fi
10403
10404 found="no"
10405
10406 if test $found = "no" ; then
10407 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10408 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10409 fi
10410
10411 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10412 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10413 fi
10414
10415 CFLAGS="$CFLAGS -Warray-bounds"
10416
10417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
10418 printf %s "checking if $CC supports -Warray-bounds... " >&6; }
10419 cacheid=xorg_cv_cc_flag__Warray_bounds
10420 if eval test \${$cacheid+y}
10421 then :
10422 printf %s "(cached) " >&6
10423 else case e in #(
10424 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10425 /* end confdefs.h. */
10426 int i;
10427 int
10428 main (void)
10429 {
10430
10431 ;
10432 return 0;
10433 }
10434 _ACEOF
10435 if ac_fn_c_try_link "$LINENO"
10436 then :
10437 eval $cacheid=yes
10438 else case e in #(
10439 e) eval $cacheid=no ;;
10440 esac
10441 fi
10442 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10443 conftest$ac_exeext conftest.$ac_ext ;;
10444 esac
10445 fi
10446
10447
10448 CFLAGS="$xorg_testset_save_CFLAGS"
10449
10450 eval supported=\$$cacheid
10451 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10452 printf "%s\n" "$supported" >&6; }
10453 if test "$supported" = "yes" ; then
10454 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
10455 found="yes"
10456 fi
10457 fi
10458
10459
10460
10461
10462
10463
10464
10465
10466
10467
10468
10469
10470
10471
10472
10473 xorg_testset_save_CFLAGS="$CFLAGS"
10474
10475 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10476 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10478 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10479 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10480 then :
10481 printf %s "(cached) " >&6
10482 else case e in #(
10483 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10484 /* end confdefs.h. */
10485 int i;
10486 _ACEOF
10487 if ac_fn_c_try_compile "$LINENO"
10488 then :
10489 xorg_cv_cc_flag_unknown_warning_option=yes
10490 else case e in #(
10491 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10492 esac
10493 fi
10494 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10495 esac
10496 fi
10497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10498 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10499 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10500 CFLAGS="$xorg_testset_save_CFLAGS"
10501 fi
10502
10503 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10504 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10505 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10506 fi
10507 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10509 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10510 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10511 then :
10512 printf %s "(cached) " >&6
10513 else case e in #(
10514 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10515 /* end confdefs.h. */
10516 int i;
10517 _ACEOF
10518 if ac_fn_c_try_compile "$LINENO"
10519 then :
10520 xorg_cv_cc_flag_unused_command_line_argument=yes
10521 else case e in #(
10522 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10523 esac
10524 fi
10525 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10526 esac
10527 fi
10528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10529 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10530 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10531 CFLAGS="$xorg_testset_save_CFLAGS"
10532 fi
10533
10534 found="no"
10535
10536 if test $found = "no" ; then
10537 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10538 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10539 fi
10540
10541 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10542 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10543 fi
10544
10545 CFLAGS="$CFLAGS -Wwrite-strings"
10546
10547 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
10548 printf %s "checking if $CC supports -Wwrite-strings... " >&6; }
10549 cacheid=xorg_cv_cc_flag__Wwrite_strings
10550 if eval test \${$cacheid+y}
10551 then :
10552 printf %s "(cached) " >&6
10553 else case e in #(
10554 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10555 /* end confdefs.h. */
10556 int i;
10557 int
10558 main (void)
10559 {
10560
10561 ;
10562 return 0;
10563 }
10564 _ACEOF
10565 if ac_fn_c_try_link "$LINENO"
10566 then :
10567 eval $cacheid=yes
10568 else case e in #(
10569 e) eval $cacheid=no ;;
10570 esac
10571 fi
10572 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10573 conftest$ac_exeext conftest.$ac_ext ;;
10574 esac
10575 fi
10576
10577
10578 CFLAGS="$xorg_testset_save_CFLAGS"
10579
10580 eval supported=\$$cacheid
10581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10582 printf "%s\n" "$supported" >&6; }
10583 if test "$supported" = "yes" ; then
10584 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
10585 found="yes"
10586 fi
10587 fi
10588
10589
10590
10591
10592
10593
10594
10595
10596
10597
10598
10599
10600
10601
10602
10603 xorg_testset_save_CFLAGS="$CFLAGS"
10604
10605 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10606 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10608 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10609 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10610 then :
10611 printf %s "(cached) " >&6
10612 else case e in #(
10613 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10614 /* end confdefs.h. */
10615 int i;
10616 _ACEOF
10617 if ac_fn_c_try_compile "$LINENO"
10618 then :
10619 xorg_cv_cc_flag_unknown_warning_option=yes
10620 else case e in #(
10621 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10622 esac
10623 fi
10624 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10625 esac
10626 fi
10627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10628 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10629 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10630 CFLAGS="$xorg_testset_save_CFLAGS"
10631 fi
10632
10633 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10634 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10635 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10636 fi
10637 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10639 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10640 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10641 then :
10642 printf %s "(cached) " >&6
10643 else case e in #(
10644 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10645 /* end confdefs.h. */
10646 int i;
10647 _ACEOF
10648 if ac_fn_c_try_compile "$LINENO"
10649 then :
10650 xorg_cv_cc_flag_unused_command_line_argument=yes
10651 else case e in #(
10652 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10653 esac
10654 fi
10655 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10656 esac
10657 fi
10658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10659 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10660 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10661 CFLAGS="$xorg_testset_save_CFLAGS"
10662 fi
10663
10664 found="no"
10665
10666 if test $found = "no" ; then
10667 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10668 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10669 fi
10670
10671 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10672 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10673 fi
10674
10675 CFLAGS="$CFLAGS -Waddress"
10676
10677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
10678 printf %s "checking if $CC supports -Waddress... " >&6; }
10679 cacheid=xorg_cv_cc_flag__Waddress
10680 if eval test \${$cacheid+y}
10681 then :
10682 printf %s "(cached) " >&6
10683 else case e in #(
10684 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10685 /* end confdefs.h. */
10686 int i;
10687 int
10688 main (void)
10689 {
10690
10691 ;
10692 return 0;
10693 }
10694 _ACEOF
10695 if ac_fn_c_try_link "$LINENO"
10696 then :
10697 eval $cacheid=yes
10698 else case e in #(
10699 e) eval $cacheid=no ;;
10700 esac
10701 fi
10702 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10703 conftest$ac_exeext conftest.$ac_ext ;;
10704 esac
10705 fi
10706
10707
10708 CFLAGS="$xorg_testset_save_CFLAGS"
10709
10710 eval supported=\$$cacheid
10711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10712 printf "%s\n" "$supported" >&6; }
10713 if test "$supported" = "yes" ; then
10714 BASE_CFLAGS="$BASE_CFLAGS -Waddress"
10715 found="yes"
10716 fi
10717 fi
10718
10719
10720
10721
10722
10723
10724
10725
10726
10727
10728
10729
10730
10731
10732
10733 xorg_testset_save_CFLAGS="$CFLAGS"
10734
10735 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10736 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10738 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10739 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10740 then :
10741 printf %s "(cached) " >&6
10742 else case e in #(
10743 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10744 /* end confdefs.h. */
10745 int i;
10746 _ACEOF
10747 if ac_fn_c_try_compile "$LINENO"
10748 then :
10749 xorg_cv_cc_flag_unknown_warning_option=yes
10750 else case e in #(
10751 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10752 esac
10753 fi
10754 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10755 esac
10756 fi
10757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10758 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10759 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10760 CFLAGS="$xorg_testset_save_CFLAGS"
10761 fi
10762
10763 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10764 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10765 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10766 fi
10767 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10769 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10770 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10771 then :
10772 printf %s "(cached) " >&6
10773 else case e in #(
10774 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10775 /* end confdefs.h. */
10776 int i;
10777 _ACEOF
10778 if ac_fn_c_try_compile "$LINENO"
10779 then :
10780 xorg_cv_cc_flag_unused_command_line_argument=yes
10781 else case e in #(
10782 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10783 esac
10784 fi
10785 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10786 esac
10787 fi
10788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10789 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10790 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10791 CFLAGS="$xorg_testset_save_CFLAGS"
10792 fi
10793
10794 found="no"
10795
10796 if test $found = "no" ; then
10797 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10798 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10799 fi
10800
10801 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10802 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10803 fi
10804
10805 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
10806
10807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
10808 printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
10809 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
10810 if eval test \${$cacheid+y}
10811 then :
10812 printf %s "(cached) " >&6
10813 else case e in #(
10814 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10815 /* end confdefs.h. */
10816 int i;
10817 int
10818 main (void)
10819 {
10820
10821 ;
10822 return 0;
10823 }
10824 _ACEOF
10825 if ac_fn_c_try_link "$LINENO"
10826 then :
10827 eval $cacheid=yes
10828 else case e in #(
10829 e) eval $cacheid=no ;;
10830 esac
10831 fi
10832 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10833 conftest$ac_exeext conftest.$ac_ext ;;
10834 esac
10835 fi
10836
10837
10838 CFLAGS="$xorg_testset_save_CFLAGS"
10839
10840 eval supported=\$$cacheid
10841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10842 printf "%s\n" "$supported" >&6; }
10843 if test "$supported" = "yes" ; then
10844 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
10845 found="yes"
10846 fi
10847 fi
10848
10849
10850
10851
10852
10853
10854
10855
10856
10857
10858
10859
10860
10861
10862
10863 xorg_testset_save_CFLAGS="$CFLAGS"
10864
10865 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10866 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10868 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10869 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10870 then :
10871 printf %s "(cached) " >&6
10872 else case e in #(
10873 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10874 /* end confdefs.h. */
10875 int i;
10876 _ACEOF
10877 if ac_fn_c_try_compile "$LINENO"
10878 then :
10879 xorg_cv_cc_flag_unknown_warning_option=yes
10880 else case e in #(
10881 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10882 esac
10883 fi
10884 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10885 esac
10886 fi
10887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10888 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10889 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10890 CFLAGS="$xorg_testset_save_CFLAGS"
10891 fi
10892
10893 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10894 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10895 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10896 fi
10897 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10899 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10900 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10901 then :
10902 printf %s "(cached) " >&6
10903 else case e in #(
10904 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10905 /* end confdefs.h. */
10906 int i;
10907 _ACEOF
10908 if ac_fn_c_try_compile "$LINENO"
10909 then :
10910 xorg_cv_cc_flag_unused_command_line_argument=yes
10911 else case e in #(
10912 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10913 esac
10914 fi
10915 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10916 esac
10917 fi
10918 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10919 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10920 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10921 CFLAGS="$xorg_testset_save_CFLAGS"
10922 fi
10923
10924 found="no"
10925
10926 if test $found = "no" ; then
10927 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10928 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10929 fi
10930
10931 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10932 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10933 fi
10934
10935 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
10936
10937 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
10938 printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
10939 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
10940 if eval test \${$cacheid+y}
10941 then :
10942 printf %s "(cached) " >&6
10943 else case e in #(
10944 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10945 /* end confdefs.h. */
10946 int i;
10947 int
10948 main (void)
10949 {
10950
10951 ;
10952 return 0;
10953 }
10954 _ACEOF
10955 if ac_fn_c_try_link "$LINENO"
10956 then :
10957 eval $cacheid=yes
10958 else case e in #(
10959 e) eval $cacheid=no ;;
10960 esac
10961 fi
10962 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10963 conftest$ac_exeext conftest.$ac_ext ;;
10964 esac
10965 fi
10966
10967
10968 CFLAGS="$xorg_testset_save_CFLAGS"
10969
10970 eval supported=\$$cacheid
10971 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10972 printf "%s\n" "$supported" >&6; }
10973 if test "$supported" = "yes" ; then
10974 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
10975 found="yes"
10976 fi
10977 fi
10978
10979
10980 fi
10981
10982
10983
10984
10985
10986
10987
10988 CWARNFLAGS="$BASE_CFLAGS"
10989 if test "x$GCC" = xyes ; then
10990 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
10991 fi
10992
10993
10994
10995
10996
10997
10998
10999
11000 # Check whether --enable-strict-compilation was given.
11001 if test ${enable_strict_compilation+y}
11002 then :
11003 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
11004 else case e in #(
11005 e) STRICT_COMPILE=no ;;
11006 esac
11007 fi
11008
11009
11010
11011
11012
11013
11014 STRICT_CFLAGS=""
11015
11016
11017
11018
11019
11020
11021
11022
11023
11024
11025
11026
11027
11028 xorg_testset_save_CFLAGS="$CFLAGS"
11029
11030 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11031 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11032 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11033 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11034 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
11035 then :
11036 printf %s "(cached) " >&6
11037 else case e in #(
11038 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11039 /* end confdefs.h. */
11040 int i;
11041 _ACEOF
11042 if ac_fn_c_try_compile "$LINENO"
11043 then :
11044 xorg_cv_cc_flag_unknown_warning_option=yes
11045 else case e in #(
11046 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
11047 esac
11048 fi
11049 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11050 esac
11051 fi
11052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11053 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11054 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11055 CFLAGS="$xorg_testset_save_CFLAGS"
11056 fi
11057
11058 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11059 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11060 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11061 fi
11062 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11064 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11065 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
11066 then :
11067 printf %s "(cached) " >&6
11068 else case e in #(
11069 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11070 /* end confdefs.h. */
11071 int i;
11072 _ACEOF
11073 if ac_fn_c_try_compile "$LINENO"
11074 then :
11075 xorg_cv_cc_flag_unused_command_line_argument=yes
11076 else case e in #(
11077 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
11078 esac
11079 fi
11080 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11081 esac
11082 fi
11083 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11084 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11085 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11086 CFLAGS="$xorg_testset_save_CFLAGS"
11087 fi
11088
11089 found="no"
11090
11091 if test $found = "no" ; then
11092 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11093 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11094 fi
11095
11096 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11097 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11098 fi
11099
11100 CFLAGS="$CFLAGS -pedantic"
11101
11102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
11103 printf %s "checking if $CC supports -pedantic... " >&6; }
11104 cacheid=xorg_cv_cc_flag__pedantic
11105 if eval test \${$cacheid+y}
11106 then :
11107 printf %s "(cached) " >&6
11108 else case e in #(
11109 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11110 /* end confdefs.h. */
11111 int i;
11112 int
11113 main (void)
11114 {
11115
11116 ;
11117 return 0;
11118 }
11119 _ACEOF
11120 if ac_fn_c_try_link "$LINENO"
11121 then :
11122 eval $cacheid=yes
11123 else case e in #(
11124 e) eval $cacheid=no ;;
11125 esac
11126 fi
11127 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11128 conftest$ac_exeext conftest.$ac_ext ;;
11129 esac
11130 fi
11131
11132
11133 CFLAGS="$xorg_testset_save_CFLAGS"
11134
11135 eval supported=\$$cacheid
11136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11137 printf "%s\n" "$supported" >&6; }
11138 if test "$supported" = "yes" ; then
11139 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
11140 found="yes"
11141 fi
11142 fi
11143
11144
11145
11146
11147
11148
11149
11150
11151
11152
11153
11154
11155
11156
11157
11158 xorg_testset_save_CFLAGS="$CFLAGS"
11159
11160 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11161 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11162 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11163 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11164 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
11165 then :
11166 printf %s "(cached) " >&6
11167 else case e in #(
11168 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11169 /* end confdefs.h. */
11170 int i;
11171 _ACEOF
11172 if ac_fn_c_try_compile "$LINENO"
11173 then :
11174 xorg_cv_cc_flag_unknown_warning_option=yes
11175 else case e in #(
11176 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
11177 esac
11178 fi
11179 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11180 esac
11181 fi
11182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11183 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11184 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11185 CFLAGS="$xorg_testset_save_CFLAGS"
11186 fi
11187
11188 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11189 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11190 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11191 fi
11192 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11193 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11194 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11195 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
11196 then :
11197 printf %s "(cached) " >&6
11198 else case e in #(
11199 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11200 /* end confdefs.h. */
11201 int i;
11202 _ACEOF
11203 if ac_fn_c_try_compile "$LINENO"
11204 then :
11205 xorg_cv_cc_flag_unused_command_line_argument=yes
11206 else case e in #(
11207 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
11208 esac
11209 fi
11210 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11211 esac
11212 fi
11213 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11214 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11215 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11216 CFLAGS="$xorg_testset_save_CFLAGS"
11217 fi
11218
11219 found="no"
11220
11221 if test $found = "no" ; then
11222 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11223 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11224 fi
11225
11226 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11227 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11228 fi
11229
11230 CFLAGS="$CFLAGS -Werror"
11231
11232 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
11233 printf %s "checking if $CC supports -Werror... " >&6; }
11234 cacheid=xorg_cv_cc_flag__Werror
11235 if eval test \${$cacheid+y}
11236 then :
11237 printf %s "(cached) " >&6
11238 else case e in #(
11239 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11240 /* end confdefs.h. */
11241 int i;
11242 int
11243 main (void)
11244 {
11245
11246 ;
11247 return 0;
11248 }
11249 _ACEOF
11250 if ac_fn_c_try_link "$LINENO"
11251 then :
11252 eval $cacheid=yes
11253 else case e in #(
11254 e) eval $cacheid=no ;;
11255 esac
11256 fi
11257 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11258 conftest$ac_exeext conftest.$ac_ext ;;
11259 esac
11260 fi
11261
11262
11263 CFLAGS="$xorg_testset_save_CFLAGS"
11264
11265 eval supported=\$$cacheid
11266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11267 printf "%s\n" "$supported" >&6; }
11268 if test "$supported" = "yes" ; then
11269 STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
11270 found="yes"
11271 fi
11272 fi
11273
11274 if test $found = "no" ; then
11275 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11276 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11277 fi
11278
11279 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11280 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11281 fi
11282
11283 CFLAGS="$CFLAGS -errwarn"
11284
11285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
11286 printf %s "checking if $CC supports -errwarn... " >&6; }
11287 cacheid=xorg_cv_cc_flag__errwarn
11288 if eval test \${$cacheid+y}
11289 then :
11290 printf %s "(cached) " >&6
11291 else case e in #(
11292 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11293 /* end confdefs.h. */
11294 int i;
11295 int
11296 main (void)
11297 {
11298
11299 ;
11300 return 0;
11301 }
11302 _ACEOF
11303 if ac_fn_c_try_link "$LINENO"
11304 then :
11305 eval $cacheid=yes
11306 else case e in #(
11307 e) eval $cacheid=no ;;
11308 esac
11309 fi
11310 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11311 conftest$ac_exeext conftest.$ac_ext ;;
11312 esac
11313 fi
11314
11315
11316 CFLAGS="$xorg_testset_save_CFLAGS"
11317
11318 eval supported=\$$cacheid
11319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11320 printf "%s\n" "$supported" >&6; }
11321 if test "$supported" = "yes" ; then
11322 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
11323 found="yes"
11324 fi
11325 fi
11326
11327
11328
11329 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
11330 # activate it with -Werror, so we add it here explicitly.
11331
11332
11333
11334
11335
11336
11337
11338
11339
11340
11341
11342
11343
11344 xorg_testset_save_CFLAGS="$CFLAGS"
11345
11346 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11347 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11348 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11349 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11350 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
11351 then :
11352 printf %s "(cached) " >&6
11353 else case e in #(
11354 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11355 /* end confdefs.h. */
11356 int i;
11357 _ACEOF
11358 if ac_fn_c_try_compile "$LINENO"
11359 then :
11360 xorg_cv_cc_flag_unknown_warning_option=yes
11361 else case e in #(
11362 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
11363 esac
11364 fi
11365 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11366 esac
11367 fi
11368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11369 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11370 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11371 CFLAGS="$xorg_testset_save_CFLAGS"
11372 fi
11373
11374 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11375 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11376 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11377 fi
11378 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11380 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11381 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
11382 then :
11383 printf %s "(cached) " >&6
11384 else case e in #(
11385 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11386 /* end confdefs.h. */
11387 int i;
11388 _ACEOF
11389 if ac_fn_c_try_compile "$LINENO"
11390 then :
11391 xorg_cv_cc_flag_unused_command_line_argument=yes
11392 else case e in #(
11393 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
11394 esac
11395 fi
11396 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11397 esac
11398 fi
11399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11400 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11401 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11402 CFLAGS="$xorg_testset_save_CFLAGS"
11403 fi
11404
11405 found="no"
11406
11407 if test $found = "no" ; then
11408 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11409 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11410 fi
11411
11412 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11413 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11414 fi
11415
11416 CFLAGS="$CFLAGS -Werror=attributes"
11417
11418 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
11419 printf %s "checking if $CC supports -Werror=attributes... " >&6; }
11420 cacheid=xorg_cv_cc_flag__Werror_attributes
11421 if eval test \${$cacheid+y}
11422 then :
11423 printf %s "(cached) " >&6
11424 else case e in #(
11425 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11426 /* end confdefs.h. */
11427 int i;
11428 int
11429 main (void)
11430 {
11431
11432 ;
11433 return 0;
11434 }
11435 _ACEOF
11436 if ac_fn_c_try_link "$LINENO"
11437 then :
11438 eval $cacheid=yes
11439 else case e in #(
11440 e) eval $cacheid=no ;;
11441 esac
11442 fi
11443 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11444 conftest$ac_exeext conftest.$ac_ext ;;
11445 esac
11446 fi
11447
11448
11449 CFLAGS="$xorg_testset_save_CFLAGS"
11450
11451 eval supported=\$$cacheid
11452 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11453 printf "%s\n" "$supported" >&6; }
11454 if test "$supported" = "yes" ; then
11455 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
11456 found="yes"
11457 fi
11458 fi
11459
11460
11461
11462 if test "x$STRICT_COMPILE" = "xyes"; then
11463 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
11464 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
11465 fi
11466
11467
11468
11469
11470
11471
11472
11473
11474 cat >>confdefs.h <<_ACEOF
11475 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
11476 _ACEOF
11477
11478 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
11479 if test "x$PVM" = "x"; then
11480 PVM="0"
11481 fi
11482
11483 printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h
11484
11485 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
11486 if test "x$PVP" = "x"; then
11487 PVP="0"
11488 fi
11489
11490 printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h
11491
11492
11493
11494 CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \
11495 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
11496 || (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \
11497 touch \$(top_srcdir)/ChangeLog; \
11498 echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))"
11499
11500
11501
11502
11503 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
11504 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
11505 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
11506 || (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \
11507 touch \$(top_srcdir)/INSTALL; \
11508 echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))"
11509
11510
11511
11512
11513
11514
11515 case $host_os in
11516 solaris*)
11517 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we
11518 # check for a man page file found in later versions that use
11519 # traditional section numbers instead
11520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5
11521 printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; }
11522 if test ${ac_cv_file__usr_share_man_man7_attributes_7+y}
11523 then :
11524 printf %s "(cached) " >&6
11525 else case e in #(
11526 e) test "$cross_compiling" = yes &&
11527 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
11528 if test -r "/usr/share/man/man7/attributes.7"; then
11529 ac_cv_file__usr_share_man_man7_attributes_7=yes
11530 else
11531 ac_cv_file__usr_share_man_man7_attributes_7=no
11532 fi ;;
11533 esac
11534 fi
11535 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5
11536 printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; }
11537 if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes
11538 then :
11539 SYSV_MAN_SECTIONS=false
11540 else case e in #(
11541 e) SYSV_MAN_SECTIONS=true ;;
11542 esac
11543 fi
11544
11545 ;;
11546 *) SYSV_MAN_SECTIONS=false ;;
11547 esac
11548
11549 if test x$APP_MAN_SUFFIX = x ; then
11550 APP_MAN_SUFFIX=1
11551 fi
11552 if test x$APP_MAN_DIR = x ; then
11553 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
11554 fi
11555
11556 if test x$LIB_MAN_SUFFIX = x ; then
11557 LIB_MAN_SUFFIX=3
11558 fi
11559 if test x$LIB_MAN_DIR = x ; then
11560 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
11561 fi
11562
11563 if test x$FILE_MAN_SUFFIX = x ; then
11564 case $SYSV_MAN_SECTIONS in
11565 true) FILE_MAN_SUFFIX=4 ;;
11566 *) FILE_MAN_SUFFIX=5 ;;
11567 esac
11568 fi
11569 if test x$FILE_MAN_DIR = x ; then
11570 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
11571 fi
11572
11573 if test x$MISC_MAN_SUFFIX = x ; then
11574 case $SYSV_MAN_SECTIONS in
11575 true) MISC_MAN_SUFFIX=5 ;;
11576 *) MISC_MAN_SUFFIX=7 ;;
11577 esac
11578 fi
11579 if test x$MISC_MAN_DIR = x ; then
11580 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
11581 fi
11582
11583 if test x$DRIVER_MAN_SUFFIX = x ; then
11584 case $SYSV_MAN_SECTIONS in
11585 true) DRIVER_MAN_SUFFIX=7 ;;
11586 *) DRIVER_MAN_SUFFIX=4 ;;
11587 esac
11588 fi
11589 if test x$DRIVER_MAN_DIR = x ; then
11590 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
11591 fi
11592
11593 if test x$ADMIN_MAN_SUFFIX = x ; then
11594 case $SYSV_MAN_SECTIONS in
11595 true) ADMIN_MAN_SUFFIX=1m ;;
11596 *) ADMIN_MAN_SUFFIX=8 ;;
11597 esac
11598 fi
11599 if test x$ADMIN_MAN_DIR = x ; then
11600 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
11601 fi
11602
11603
11604
11605
11606
11607
11608
11609
11610
11611
11612
11613
11614
11615
11616
11617 XORG_MAN_PAGE="X Version 11"
11618
11619 MAN_SUBSTS="\
11620 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11621 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11622 -e 's|__xservername__|Xorg|g' \
11623 -e 's|__xconfigfile__|xorg.conf|g' \
11624 -e 's|__projectroot__|\$(prefix)|g' \
11625 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
11626 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
11627 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
11628 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
11629 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
11630 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
11631 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
11632
11633
11634
11635
11636 AM_DEFAULT_VERBOSITY=0
11637
11638
11639
11640 # Initialize libtool
11641 case `pwd` in
11642 *\ * | *\ *)
11643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
11644 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
11645 esac
11646
11647
11648
11649 macro_version='2.5.3'
11650 macro_revision='2.5.3'
11651
11652
11653
11654
11655
11656
11657
11658
11659
11660
11661
11662
11663
11664
11665 ltmain=$ac_aux_dir/ltmain.sh
11666
11667 # Backslashify metacharacters that are still active within
11668 # double-quoted strings.
11669 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
11670
11671 # Same as above, but do not quote variable references.
11672 double_quote_subst='s/\(["`\\]\)/\\\1/g'
11673
11674 # Sed substitution to delay expansion of an escaped shell variable in a
11675 # double_quote_subst'ed string.
11676 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11677
11678 # Sed substitution to delay expansion of an escaped single quote.
11679 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
11680
11681 # Sed substitution to avoid accidental globbing in evaled expressions
11682 no_glob_subst='s/\*/\\\*/g'
11683
11684 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11685 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
11686 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
11687
11688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
11689 printf %s "checking how to print strings... " >&6; }
11690 # Test print first, because it will be a builtin if present.
11691 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
11692 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
11693 ECHO='print -r --'
11694 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
11695 ECHO='printf %s\n'
11696 else
11697 # Use this function as a fallback that always works.
11698 func_fallback_echo ()
11699 {
11700 eval 'cat <<_LTECHO_EOF
11701 $1
11702 _LTECHO_EOF'
11703 }
11704 ECHO='func_fallback_echo'
11705 fi
11706
11707 # func_echo_all arg...
11708 # Invoke $ECHO with all args, space-separated.
11709 func_echo_all ()
11710 {
11711 $ECHO ""
11712 }
11713
11714 case $ECHO in
11715 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
11716 printf "%s\n" "printf" >&6; } ;;
11717 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
11718 printf "%s\n" "print -r" >&6; } ;;
11719 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
11720 printf "%s\n" "cat" >&6; } ;;
11721 esac
11722
11723
11724
11725
11726
11727
11728
11729
11730
11731
11732
11733
11734
11735
11736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
11737 printf %s "checking for a sed that does not truncate output... " >&6; }
11738 if test ${ac_cv_path_SED+y}
11739 then :
11740 printf %s "(cached) " >&6
11741 else case e in #(
11742 e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
11743 for ac_i in 1 2 3 4 5 6 7; do
11744 ac_script="$ac_script$as_nl$ac_script"
11745 done
11746 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
11747 { ac_script=; unset ac_script;}
11748 if test -z "$SED"; then
11749 ac_path_SED_found=false
11750 # Loop through the user's path and test for each of PROGNAME-LIST
11751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11752 for as_dir in $PATH
11753 do
11754 IFS=$as_save_IFS
11755 case $as_dir in #(((
11756 '') as_dir=./ ;;
11757 */) ;;
11758 *) as_dir=$as_dir/ ;;
11759 esac
11760 for ac_prog in sed gsed
11761 do
11762 for ac_exec_ext in '' $ac_executable_extensions; do
11763 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
11764 as_fn_executable_p "$ac_path_SED" || continue
11765 # Check for GNU ac_path_SED and select it if it is found.
11766 # Check for GNU $ac_path_SED
11767 case `"$ac_path_SED" --version 2>&1` in #(
11768 *GNU*)
11769 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
11770 #(
11771 *)
11772 ac_count=0
11773 printf %s 0123456789 >"conftest.in"
11774 while :
11775 do
11776 cat "conftest.in" "conftest.in" >"conftest.tmp"
11777 mv "conftest.tmp" "conftest.in"
11778 cp "conftest.in" "conftest.nl"
11779 printf "%s\n" '' >> "conftest.nl"
11780 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
11781 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11782 as_fn_arith $ac_count + 1 && ac_count=$as_val
11783 if test $ac_count -gt ${ac_path_SED_max-0}; then
11784 # Best one so far, save it but keep looking for a better one
11785 ac_cv_path_SED="$ac_path_SED"
11786 ac_path_SED_max=$ac_count
11787 fi
11788 # 10*(2^10) chars as input seems more than enough
11789 test $ac_count -gt 10 && break
11790 done
11791 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11792 esac
11793
11794 $ac_path_SED_found && break 3
11795 done
11796 done
11797 done
11798 IFS=$as_save_IFS
11799 if test -z "$ac_cv_path_SED"; then
11800 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
11801 fi
11802 else
11803 ac_cv_path_SED=$SED
11804 fi
11805 ;;
11806 esac
11807 fi
11808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
11809 printf "%s\n" "$ac_cv_path_SED" >&6; }
11810 SED="$ac_cv_path_SED"
11811 rm -f conftest.sed
11812
11813 test -z "$SED" && SED=sed
11814 Xsed="$SED -e 1s/^X//"
11815
11816
11817
11818
11819
11820
11821
11822
11823
11824
11825
11826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
11827 printf %s "checking for grep that handles long lines and -e... " >&6; }
11828 if test ${ac_cv_path_GREP+y}
11829 then :
11830 printf %s "(cached) " >&6
11831 else case e in #(
11832 e) if test -z "$GREP"; then
11833 ac_path_GREP_found=false
11834 # Loop through the user's path and test for each of PROGNAME-LIST
11835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11836 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11837 do
11838 IFS=$as_save_IFS
11839 case $as_dir in #(((
11840 '') as_dir=./ ;;
11841 */) ;;
11842 *) as_dir=$as_dir/ ;;
11843 esac
11844 for ac_prog in grep ggrep
11845 do
11846 for ac_exec_ext in '' $ac_executable_extensions; do
11847 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
11848 as_fn_executable_p "$ac_path_GREP" || continue
11849 # Check for GNU ac_path_GREP and select it if it is found.
11850 # Check for GNU $ac_path_GREP
11851 case `"$ac_path_GREP" --version 2>&1` in #(
11852 *GNU*)
11853 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
11854 #(
11855 *)
11856 ac_count=0
11857 printf %s 0123456789 >"conftest.in"
11858 while :
11859 do
11860 cat "conftest.in" "conftest.in" >"conftest.tmp"
11861 mv "conftest.tmp" "conftest.in"
11862 cp "conftest.in" "conftest.nl"
11863 printf "%s\n" 'GREP' >> "conftest.nl"
11864 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11865 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11866 as_fn_arith $ac_count + 1 && ac_count=$as_val
11867 if test $ac_count -gt ${ac_path_GREP_max-0}; then
11868 # Best one so far, save it but keep looking for a better one
11869 ac_cv_path_GREP="$ac_path_GREP"
11870 ac_path_GREP_max=$ac_count
11871 fi
11872 # 10*(2^10) chars as input seems more than enough
11873 test $ac_count -gt 10 && break
11874 done
11875 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11876 esac
11877
11878 $ac_path_GREP_found && break 3
11879 done
11880 done
11881 done
11882 IFS=$as_save_IFS
11883 if test -z "$ac_cv_path_GREP"; then
11884 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11885 fi
11886 else
11887 ac_cv_path_GREP=$GREP
11888 fi
11889 ;;
11890 esac
11891 fi
11892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
11893 printf "%s\n" "$ac_cv_path_GREP" >&6; }
11894 GREP="$ac_cv_path_GREP"
11895
11896
11897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
11898 printf %s "checking for egrep... " >&6; }
11899 if test ${ac_cv_path_EGREP+y}
11900 then :
11901 printf %s "(cached) " >&6
11902 else case e in #(
11903 e) if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
11904 then ac_cv_path_EGREP="$GREP -E"
11905 else
11906 if test -z "$EGREP"; then
11907 ac_path_EGREP_found=false
11908 # Loop through the user's path and test for each of PROGNAME-LIST
11909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11910 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11911 do
11912 IFS=$as_save_IFS
11913 case $as_dir in #(((
11914 '') as_dir=./ ;;
11915 */) ;;
11916 *) as_dir=$as_dir/ ;;
11917 esac
11918 for ac_prog in egrep
11919 do
11920 for ac_exec_ext in '' $ac_executable_extensions; do
11921 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
11922 as_fn_executable_p "$ac_path_EGREP" || continue
11923 # Check for GNU ac_path_EGREP and select it if it is found.
11924 # Check for GNU $ac_path_EGREP
11925 case `"$ac_path_EGREP" --version 2>&1` in #(
11926 *GNU*)
11927 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
11928 #(
11929 *)
11930 ac_count=0
11931 printf %s 0123456789 >"conftest.in"
11932 while :
11933 do
11934 cat "conftest.in" "conftest.in" >"conftest.tmp"
11935 mv "conftest.tmp" "conftest.in"
11936 cp "conftest.in" "conftest.nl"
11937 printf "%s\n" 'EGREP' >> "conftest.nl"
11938 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11939 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11940 as_fn_arith $ac_count + 1 && ac_count=$as_val
11941 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
11942 # Best one so far, save it but keep looking for a better one
11943 ac_cv_path_EGREP="$ac_path_EGREP"
11944 ac_path_EGREP_max=$ac_count
11945 fi
11946 # 10*(2^10) chars as input seems more than enough
11947 test $ac_count -gt 10 && break
11948 done
11949 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11950 esac
11951
11952 $ac_path_EGREP_found && break 3
11953 done
11954 done
11955 done
11956 IFS=$as_save_IFS
11957 if test -z "$ac_cv_path_EGREP"; then
11958 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11959 fi
11960 else
11961 ac_cv_path_EGREP=$EGREP
11962 fi
11963
11964 fi ;;
11965 esac
11966 fi
11967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
11968 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
11969 EGREP="$ac_cv_path_EGREP"
11970
11971 EGREP_TRADITIONAL=$EGREP
11972 ac_cv_path_EGREP_TRADITIONAL=$EGREP
11973
11974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
11975 printf %s "checking for fgrep... " >&6; }
11976 if test ${ac_cv_path_FGREP+y}
11977 then :
11978 printf %s "(cached) " >&6
11979 else case e in #(
11980 e) if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
11981 then ac_cv_path_FGREP="$GREP -F"
11982 else
11983 if test -z "$FGREP"; then
11984 ac_path_FGREP_found=false
11985 # Loop through the user's path and test for each of PROGNAME-LIST
11986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11987 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11988 do
11989 IFS=$as_save_IFS
11990 case $as_dir in #(((
11991 '') as_dir=./ ;;
11992 */) ;;
11993 *) as_dir=$as_dir/ ;;
11994 esac
11995 for ac_prog in fgrep
11996 do
11997 for ac_exec_ext in '' $ac_executable_extensions; do
11998 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
11999 as_fn_executable_p "$ac_path_FGREP" || continue
12000 # Check for GNU ac_path_FGREP and select it if it is found.
12001 # Check for GNU $ac_path_FGREP
12002 case `"$ac_path_FGREP" --version 2>&1` in #(
12003 *GNU*)
12004 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
12005 #(
12006 *)
12007 ac_count=0
12008 printf %s 0123456789 >"conftest.in"
12009 while :
12010 do
12011 cat "conftest.in" "conftest.in" >"conftest.tmp"
12012 mv "conftest.tmp" "conftest.in"
12013 cp "conftest.in" "conftest.nl"
12014 printf "%s\n" 'FGREP' >> "conftest.nl"
12015 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
12016 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12017 as_fn_arith $ac_count + 1 && ac_count=$as_val
12018 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
12019 # Best one so far, save it but keep looking for a better one
12020 ac_cv_path_FGREP="$ac_path_FGREP"
12021 ac_path_FGREP_max=$ac_count
12022 fi
12023 # 10*(2^10) chars as input seems more than enough
12024 test $ac_count -gt 10 && break
12025 done
12026 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12027 esac
12028
12029 $ac_path_FGREP_found && break 3
12030 done
12031 done
12032 done
12033 IFS=$as_save_IFS
12034 if test -z "$ac_cv_path_FGREP"; then
12035 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12036 fi
12037 else
12038 ac_cv_path_FGREP=$FGREP
12039 fi
12040
12041 fi ;;
12042 esac
12043 fi
12044 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
12045 printf "%s\n" "$ac_cv_path_FGREP" >&6; }
12046 FGREP="$ac_cv_path_FGREP"
12047
12048
12049 test -z "$GREP" && GREP=grep
12050
12051
12052
12053
12054
12055
12056
12057
12058
12059
12060
12061
12062
12063
12064
12065
12066
12067
12068
12069 # Check whether --with-gnu-ld was given.
12070 if test ${with_gnu_ld+y}
12071 then :
12072 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
12073 else case e in #(
12074 e) with_gnu_ld=no ;;
12075 esac
12076 fi
12077
12078 ac_prog=ld
12079 if test yes = "$GCC"; then
12080 # Check if gcc -print-prog-name=ld gives a path.
12081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12082 printf %s "checking for ld used by $CC... " >&6; }
12083 case $host in
12084 *-*-mingw* | *-*-windows*)
12085 # gcc leaves a trailing carriage return, which upsets mingw
12086 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12087 *)
12088 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12089 esac
12090 case $ac_prog in
12091 # Accept absolute paths.
12092 [\\/]* | ?:[\\/]*)
12093 re_direlt='/[^/][^/]*/\.\./'
12094 # Canonicalize the pathname of ld
12095 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12096 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12097 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12098 done
12099 test -z "$LD" && LD=$ac_prog
12100 ;;
12101 "")
12102 # If it fails, then pretend we aren't using GCC.
12103 ac_prog=ld
12104 ;;
12105 *)
12106 # If it is relative, then search for the first ld in PATH.
12107 with_gnu_ld=unknown
12108 ;;
12109 esac
12110 elif test yes = "$with_gnu_ld"; then
12111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12112 printf %s "checking for GNU ld... " >&6; }
12113 else
12114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12115 printf %s "checking for non-GNU ld... " >&6; }
12116 fi
12117 if test ${lt_cv_path_LD+y}
12118 then :
12119 printf %s "(cached) " >&6
12120 else case e in #(
12121 e) if test -z "$LD"; then
12122 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
12123 for ac_dir in $PATH; do
12124 IFS=$lt_save_ifs
12125 test -z "$ac_dir" && ac_dir=.
12126 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12127 lt_cv_path_LD=$ac_dir/$ac_prog
12128 # Check to see if the program is GNU ld. I'd rather use --version,
12129 # but apparently some variants of GNU ld only accept -v.
12130 # Break only if it was the GNU/non-GNU ld that we prefer.
12131 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12132 *GNU* | *'with BFD'*)
12133 test no != "$with_gnu_ld" && break
12134 ;;
12135 *)
12136 test yes != "$with_gnu_ld" && break
12137 ;;
12138 esac
12139 fi
12140 done
12141 IFS=$lt_save_ifs
12142 else
12143 lt_cv_path_LD=$LD # Let the user override the test with a path.
12144 fi ;;
12145 esac
12146 fi
12147
12148 LD=$lt_cv_path_LD
12149 if test -n "$LD"; then
12150 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12151 printf "%s\n" "$LD" >&6; }
12152 else
12153 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12154 printf "%s\n" "no" >&6; }
12155 fi
12156 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12157 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12158 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
12159 if test ${lt_cv_prog_gnu_ld+y}
12160 then :
12161 printf %s "(cached) " >&6
12162 else case e in #(
12163 e) # I'd rather use --version here, but apparently some GNU lds only accept -v.
12164 case `$LD -v 2>&1 </dev/null` in
12165 *GNU* | *'with BFD'*)
12166 lt_cv_prog_gnu_ld=yes
12167 ;;
12168 *)
12169 lt_cv_prog_gnu_ld=no
12170 ;;
12171 esac ;;
12172 esac
12173 fi
12174 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12175 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
12176 with_gnu_ld=$lt_cv_prog_gnu_ld
12177
12178
12179
12180
12181
12182
12183
12184
12185
12186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
12187 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
12188 if test ${lt_cv_path_NM+y}
12189 then :
12190 printf %s "(cached) " >&6
12191 else case e in #(
12192 e) if test -n "$NM"; then
12193 # Let the user override the test.
12194 lt_cv_path_NM=$NM
12195 else
12196 lt_nm_to_check=${ac_tool_prefix}nm
12197 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
12198 lt_nm_to_check="$lt_nm_to_check nm"
12199 fi
12200 for lt_tmp_nm in $lt_nm_to_check; do
12201 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
12202 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
12203 IFS=$lt_save_ifs
12204 test -z "$ac_dir" && ac_dir=.
12205 tmp_nm=$ac_dir/$lt_tmp_nm
12206 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
12207 # Check to see if the nm accepts a BSD-compat flag.
12208 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
12209 # nm: unknown option "B" ignored
12210 # Tru64's nm complains that /dev/null is an invalid object file
12211 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
12212 case $build_os in
12213 mingw* | windows*) lt_bad_file=conftest.nm/nofile ;;
12214 *) lt_bad_file=/dev/null ;;
12215 esac
12216 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
12217 *$lt_bad_file* | *'Invalid file or object type'*)
12218 lt_cv_path_NM="$tmp_nm -B"
12219 break 2
12220 ;;
12221 *)
12222 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
12223 */dev/null*)
12224 lt_cv_path_NM="$tmp_nm -p"
12225 break 2
12226 ;;
12227 *)
12228 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
12229 continue # so that we can try to find one that supports BSD flags
12230 ;;
12231 esac
12232 ;;
12233 esac
12234 fi
12235 done
12236 IFS=$lt_save_ifs
12237 done
12238 : ${lt_cv_path_NM=no}
12239 fi ;;
12240 esac
12241 fi
12242 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
12243 printf "%s\n" "$lt_cv_path_NM" >&6; }
12244 if test no != "$lt_cv_path_NM"; then
12245 NM=$lt_cv_path_NM
12246 else
12247 # Didn't find any BSD compatible name lister, look for dumpbin.
12248 if test -n "$DUMPBIN"; then :
12249 # Let the user override the test.
12250 else
12251 if test -n "$ac_tool_prefix"; then
12252 for ac_prog in dumpbin "link -dump"
12253 do
12254 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12255 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12256 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12257 printf %s "checking for $ac_word... " >&6; }
12258 if test ${ac_cv_prog_DUMPBIN+y}
12259 then :
12260 printf %s "(cached) " >&6
12261 else case e in #(
12262 e) if test -n "$DUMPBIN"; then
12263 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
12264 else
12265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12266 for as_dir in $PATH
12267 do
12268 IFS=$as_save_IFS
12269 case $as_dir in #(((
12270 '') as_dir=./ ;;
12271 */) ;;
12272 *) as_dir=$as_dir/ ;;
12273 esac
12274 for ac_exec_ext in '' $ac_executable_extensions; do
12275 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12276 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
12277 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12278 break 2
12279 fi
12280 done
12281 done
12282 IFS=$as_save_IFS
12283
12284 fi ;;
12285 esac
12286 fi
12287 DUMPBIN=$ac_cv_prog_DUMPBIN
12288 if test -n "$DUMPBIN"; then
12289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
12290 printf "%s\n" "$DUMPBIN" >&6; }
12291 else
12292 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12293 printf "%s\n" "no" >&6; }
12294 fi
12295
12296
12297 test -n "$DUMPBIN" && break
12298 done
12299 fi
12300 if test -z "$DUMPBIN"; then
12301 ac_ct_DUMPBIN=$DUMPBIN
12302 for ac_prog in dumpbin "link -dump"
12303 do
12304 # Extract the first word of "$ac_prog", so it can be a program name with args.
12305 set dummy $ac_prog; ac_word=$2
12306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12307 printf %s "checking for $ac_word... " >&6; }
12308 if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
12309 then :
12310 printf %s "(cached) " >&6
12311 else case e in #(
12312 e) if test -n "$ac_ct_DUMPBIN"; then
12313 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
12314 else
12315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12316 for as_dir in $PATH
12317 do
12318 IFS=$as_save_IFS
12319 case $as_dir in #(((
12320 '') as_dir=./ ;;
12321 */) ;;
12322 *) as_dir=$as_dir/ ;;
12323 esac
12324 for ac_exec_ext in '' $ac_executable_extensions; do
12325 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12326 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
12327 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12328 break 2
12329 fi
12330 done
12331 done
12332 IFS=$as_save_IFS
12333
12334 fi ;;
12335 esac
12336 fi
12337 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
12338 if test -n "$ac_ct_DUMPBIN"; then
12339 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
12340 printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
12341 else
12342 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12343 printf "%s\n" "no" >&6; }
12344 fi
12345
12346
12347 test -n "$ac_ct_DUMPBIN" && break
12348 done
12349
12350 if test "x$ac_ct_DUMPBIN" = x; then
12351 DUMPBIN=":"
12352 else
12353 case $cross_compiling:$ac_tool_warned in
12354 yes:)
12355 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12356 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12357 ac_tool_warned=yes ;;
12358 esac
12359 DUMPBIN=$ac_ct_DUMPBIN
12360 fi
12361 fi
12362
12363 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
12364 *COFF*)
12365 DUMPBIN="$DUMPBIN -symbols -headers"
12366 ;;
12367 *)
12368 DUMPBIN=:
12369 ;;
12370 esac
12371 fi
12372
12373 if test : != "$DUMPBIN"; then
12374 NM=$DUMPBIN
12375 fi
12376 fi
12377 test -z "$NM" && NM=nm
12378
12379
12380
12381
12382
12383
12384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
12385 printf %s "checking the name lister ($NM) interface... " >&6; }
12386 if test ${lt_cv_nm_interface+y}
12387 then :
12388 printf %s "(cached) " >&6
12389 else case e in #(
12390 e) lt_cv_nm_interface="BSD nm"
12391 echo "int some_variable = 0;" > conftest.$ac_ext
12392 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
12393 (eval "$ac_compile" 2>conftest.err)
12394 cat conftest.err >&5
12395 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
12396 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
12397 cat conftest.err >&5
12398 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
12399 cat conftest.out >&5
12400 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
12401 lt_cv_nm_interface="MS dumpbin"
12402 fi
12403 rm -f conftest* ;;
12404 esac
12405 fi
12406 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
12407 printf "%s\n" "$lt_cv_nm_interface" >&6; }
12408
12409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
12410 printf %s "checking whether ln -s works... " >&6; }
12411 LN_S=$as_ln_s
12412 if test "$LN_S" = "ln -s"; then
12413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12414 printf "%s\n" "yes" >&6; }
12415 else
12416 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
12417 printf "%s\n" "no, using $LN_S" >&6; }
12418 fi
12419
12420 # find the maximum length of command line arguments
12421 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
12422 printf %s "checking the maximum length of command line arguments... " >&6; }
12423 if test ${lt_cv_sys_max_cmd_len+y}
12424 then :
12425 printf %s "(cached) " >&6
12426 else case e in #(
12427 e) i=0
12428 teststring=ABCD
12429
12430 case $build_os in
12431 msdosdjgpp*)
12432 # On DJGPP, this test can blow up pretty badly due to problems in libc
12433 # (any single argument exceeding 2000 bytes causes a buffer overrun
12434 # during glob expansion). Even if it were fixed, the result of this
12435 # check would be larger than it should be.
12436 lt_cv_sys_max_cmd_len=12288; # 12K is about right
12437 ;;
12438
12439 gnu*)
12440 # Under GNU Hurd, this test is not required because there is
12441 # no limit to the length of command line arguments.
12442 # Libtool will interpret -1 as no limit whatsoever
12443 lt_cv_sys_max_cmd_len=-1;
12444 ;;
12445
12446 cygwin* | mingw* | windows* | cegcc*)
12447 # On Win9x/ME, this test blows up -- it succeeds, but takes
12448 # about 5 minutes as the teststring grows exponentially.
12449 # Worse, since 9x/ME are not pre-emptively multitasking,
12450 # you end up with a "frozen" computer, even though with patience
12451 # the test eventually succeeds (with a max line length of 256k).
12452 # Instead, let's just punt: use the minimum linelength reported by
12453 # all of the supported platforms: 8192 (on NT/2K/XP).
12454 lt_cv_sys_max_cmd_len=8192;
12455 ;;
12456
12457 mint*)
12458 # On MiNT this can take a long time and run out of memory.
12459 lt_cv_sys_max_cmd_len=8192;
12460 ;;
12461
12462 amigaos*)
12463 # On AmigaOS with pdksh, this test takes hours, literally.
12464 # So we just punt and use a minimum line length of 8192.
12465 lt_cv_sys_max_cmd_len=8192;
12466 ;;
12467
12468 darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
12469 # This has been around since 386BSD, at least. Likely further.
12470 if test -x /sbin/sysctl; then
12471 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
12472 elif test -x /usr/sbin/sysctl; then
12473 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
12474 else
12475 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
12476 fi
12477 # And add a safety zone
12478 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12479 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12480 ;;
12481
12482 interix*)
12483 # We know the value 262144 and hardcode it with a safety zone (like BSD)
12484 lt_cv_sys_max_cmd_len=196608
12485 ;;
12486
12487 os2*)
12488 # The test takes a long time on OS/2.
12489 lt_cv_sys_max_cmd_len=8192
12490 ;;
12491
12492 osf*)
12493 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
12494 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
12495 # nice to cause kernel panics so lets avoid the loop below.
12496 # First set a reasonable default.
12497 lt_cv_sys_max_cmd_len=16384
12498 #
12499 if test -x /sbin/sysconfig; then
12500 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
12501 *1*) lt_cv_sys_max_cmd_len=-1 ;;
12502 esac
12503 fi
12504 ;;
12505 sco3.2v5*)
12506 lt_cv_sys_max_cmd_len=102400
12507 ;;
12508 sysv5* | sco5v6* | sysv4.2uw2*)
12509 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
12510 if test -n "$kargmax"; then
12511 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'`
12512 else
12513 lt_cv_sys_max_cmd_len=32768
12514 fi
12515 ;;
12516 *)
12517 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
12518 if test -n "$lt_cv_sys_max_cmd_len" && \
12519 test undefined != "$lt_cv_sys_max_cmd_len"; then
12520 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12521 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12522 else
12523 # Make teststring a little bigger before we do anything with it.
12524 # a 1K string should be a reasonable start.
12525 for i in 1 2 3 4 5 6 7 8; do
12526 teststring=$teststring$teststring
12527 done
12528 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
12529 # If test is not a shell built-in, we'll probably end up computing a
12530 # maximum length that is only half of the actual maximum length, but
12531 # we can't tell.
12532 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
12533 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
12534 test 17 != "$i" # 1/2 MB should be enough
12535 do
12536 i=`expr $i + 1`
12537 teststring=$teststring$teststring
12538 done
12539 # Only check the string length outside the loop.
12540 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
12541 teststring=
12542 # Add a significant safety factor because C++ compilers can tack on
12543 # massive amounts of additional arguments before passing them to the
12544 # linker. It appears as though 1/2 is a usable value.
12545 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
12546 fi
12547 ;;
12548 esac
12549 ;;
12550 esac
12551 fi
12552
12553 if test -n "$lt_cv_sys_max_cmd_len"; then
12554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
12555 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
12556 else
12557 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
12558 printf "%s\n" "none" >&6; }
12559 fi
12560 max_cmd_len=$lt_cv_sys_max_cmd_len
12561
12562
12563
12564
12565
12566
12567 : ${CP="cp -f"}
12568 : ${MV="mv -f"}
12569 : ${RM="rm -f"}
12570
12571 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12572 lt_unset=unset
12573 else
12574 lt_unset=false
12575 fi
12576
12577
12578
12579
12580
12581 # test EBCDIC or ASCII
12582 case `echo X|tr X '\101'` in
12583 A) # ASCII based system
12584 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
12585 lt_SP2NL='tr \040 \012'
12586 lt_NL2SP='tr \015\012 \040\040'
12587 ;;
12588 *) # EBCDIC based system
12589 lt_SP2NL='tr \100 \n'
12590 lt_NL2SP='tr \r\n \100\100'
12591 ;;
12592 esac
12593
12594
12595
12596
12597
12598
12599
12600
12601
12602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
12603 printf %s "checking how to convert $build file names to $host format... " >&6; }
12604 if test ${lt_cv_to_host_file_cmd+y}
12605 then :
12606 printf %s "(cached) " >&6
12607 else case e in #(
12608 e) case $host in
12609 *-*-mingw* )
12610 case $build in
12611 *-*-mingw* | *-*-windows* ) # actually msys
12612 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
12613 ;;
12614 *-*-cygwin* )
12615 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
12616 ;;
12617 * ) # otherwise, assume *nix
12618 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
12619 ;;
12620 esac
12621 ;;
12622 *-*-cygwin* )
12623 case $build in
12624 *-*-mingw* | *-*-windows* ) # actually msys
12625 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
12626 ;;
12627 *-*-cygwin* )
12628 lt_cv_to_host_file_cmd=func_convert_file_noop
12629 ;;
12630 * ) # otherwise, assume *nix
12631 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
12632 ;;
12633 esac
12634 ;;
12635 * ) # unhandled hosts (and "normal" native builds)
12636 lt_cv_to_host_file_cmd=func_convert_file_noop
12637 ;;
12638 esac
12639 ;;
12640 esac
12641 fi
12642
12643 to_host_file_cmd=$lt_cv_to_host_file_cmd
12644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
12645 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
12646
12647
12648
12649
12650
12651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
12652 printf %s "checking how to convert $build file names to toolchain format... " >&6; }
12653 if test ${lt_cv_to_tool_file_cmd+y}
12654 then :
12655 printf %s "(cached) " >&6
12656 else case e in #(
12657 e) #assume ordinary cross tools, or native build.
12658 lt_cv_to_tool_file_cmd=func_convert_file_noop
12659 case $host in
12660 *-*-mingw* | *-*-windows* )
12661 case $build in
12662 *-*-mingw* | *-*-windows* ) # actually msys
12663 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
12664 ;;
12665 esac
12666 ;;
12667 esac
12668 ;;
12669 esac
12670 fi
12671
12672 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
12673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
12674 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
12675
12676
12677
12678
12679
12680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
12681 printf %s "checking for $LD option to reload object files... " >&6; }
12682 if test ${lt_cv_ld_reload_flag+y}
12683 then :
12684 printf %s "(cached) " >&6
12685 else case e in #(
12686 e) lt_cv_ld_reload_flag='-r' ;;
12687 esac
12688 fi
12689 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
12690 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
12691 reload_flag=$lt_cv_ld_reload_flag
12692 case $reload_flag in
12693 "" | " "*) ;;
12694 *) reload_flag=" $reload_flag" ;;
12695 esac
12696 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12697 case $host_os in
12698 cygwin* | mingw* | windows* | pw32* | cegcc*)
12699 if test yes != "$GCC"; then
12700 reload_cmds=false
12701 fi
12702 ;;
12703 darwin*)
12704 if test yes = "$GCC"; then
12705 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
12706 else
12707 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12708 fi
12709 ;;
12710 esac
12711
12712
12713
12714
12715
12716
12717
12718
12719
12720 # Extract the first word of "file", so it can be a program name with args.
12721 set dummy file; ac_word=$2
12722 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12723 printf %s "checking for $ac_word... " >&6; }
12724 if test ${ac_cv_prog_FILECMD+y}
12725 then :
12726 printf %s "(cached) " >&6
12727 else case e in #(
12728 e) if test -n "$FILECMD"; then
12729 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
12730 else
12731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12732 for as_dir in $PATH
12733 do
12734 IFS=$as_save_IFS
12735 case $as_dir in #(((
12736 '') as_dir=./ ;;
12737 */) ;;
12738 *) as_dir=$as_dir/ ;;
12739 esac
12740 for ac_exec_ext in '' $ac_executable_extensions; do
12741 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12742 ac_cv_prog_FILECMD="file"
12743 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12744 break 2
12745 fi
12746 done
12747 done
12748 IFS=$as_save_IFS
12749
12750 test -z "$ac_cv_prog_FILECMD" && ac_cv_prog_FILECMD=":"
12751 fi ;;
12752 esac
12753 fi
12754 FILECMD=$ac_cv_prog_FILECMD
12755 if test -n "$FILECMD"; then
12756 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
12757 printf "%s\n" "$FILECMD" >&6; }
12758 else
12759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12760 printf "%s\n" "no" >&6; }
12761 fi
12762
12763
12764
12765
12766
12767
12768
12769
12770 if test -n "$ac_tool_prefix"; then
12771 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
12772 set dummy ${ac_tool_prefix}objdump; ac_word=$2
12773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12774 printf %s "checking for $ac_word... " >&6; }
12775 if test ${ac_cv_prog_OBJDUMP+y}
12776 then :
12777 printf %s "(cached) " >&6
12778 else case e in #(
12779 e) if test -n "$OBJDUMP"; then
12780 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12781 else
12782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12783 for as_dir in $PATH
12784 do
12785 IFS=$as_save_IFS
12786 case $as_dir in #(((
12787 '') as_dir=./ ;;
12788 */) ;;
12789 *) as_dir=$as_dir/ ;;
12790 esac
12791 for ac_exec_ext in '' $ac_executable_extensions; do
12792 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12793 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
12794 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12795 break 2
12796 fi
12797 done
12798 done
12799 IFS=$as_save_IFS
12800
12801 fi ;;
12802 esac
12803 fi
12804 OBJDUMP=$ac_cv_prog_OBJDUMP
12805 if test -n "$OBJDUMP"; then
12806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12807 printf "%s\n" "$OBJDUMP" >&6; }
12808 else
12809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12810 printf "%s\n" "no" >&6; }
12811 fi
12812
12813
12814 fi
12815 if test -z "$ac_cv_prog_OBJDUMP"; then
12816 ac_ct_OBJDUMP=$OBJDUMP
12817 # Extract the first word of "objdump", so it can be a program name with args.
12818 set dummy objdump; ac_word=$2
12819 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12820 printf %s "checking for $ac_word... " >&6; }
12821 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
12822 then :
12823 printf %s "(cached) " >&6
12824 else case e in #(
12825 e) if test -n "$ac_ct_OBJDUMP"; then
12826 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
12827 else
12828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12829 for as_dir in $PATH
12830 do
12831 IFS=$as_save_IFS
12832 case $as_dir in #(((
12833 '') as_dir=./ ;;
12834 */) ;;
12835 *) as_dir=$as_dir/ ;;
12836 esac
12837 for ac_exec_ext in '' $ac_executable_extensions; do
12838 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12839 ac_cv_prog_ac_ct_OBJDUMP="objdump"
12840 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12841 break 2
12842 fi
12843 done
12844 done
12845 IFS=$as_save_IFS
12846
12847 fi ;;
12848 esac
12849 fi
12850 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
12851 if test -n "$ac_ct_OBJDUMP"; then
12852 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
12853 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
12854 else
12855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12856 printf "%s\n" "no" >&6; }
12857 fi
12858
12859 if test "x$ac_ct_OBJDUMP" = x; then
12860 OBJDUMP="false"
12861 else
12862 case $cross_compiling:$ac_tool_warned in
12863 yes:)
12864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12865 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12866 ac_tool_warned=yes ;;
12867 esac
12868 OBJDUMP=$ac_ct_OBJDUMP
12869 fi
12870 else
12871 OBJDUMP="$ac_cv_prog_OBJDUMP"
12872 fi
12873
12874 test -z "$OBJDUMP" && OBJDUMP=objdump
12875
12876
12877
12878
12879
12880
12881
12882
12883
12884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
12885 printf %s "checking how to recognize dependent libraries... " >&6; }
12886 if test ${lt_cv_deplibs_check_method+y}
12887 then :
12888 printf %s "(cached) " >&6
12889 else case e in #(
12890 e) lt_cv_file_magic_cmd='$MAGIC_CMD'
12891 lt_cv_file_magic_test_file=
12892 lt_cv_deplibs_check_method='unknown'
12893 # Need to set the preceding variable on all platforms that support
12894 # interlibrary dependencies.
12895 # 'none' -- dependencies not supported.
12896 # 'unknown' -- same as none, but documents that we really don't know.
12897 # 'pass_all' -- all dependencies passed with no checks.
12898 # 'file_magic [[regex]]' -- check by looking for files in library path
12899 # that responds to the $file_magic_cmd with a given extended regex.
12900 # If you have 'file' or equivalent on your system and you're not sure
12901 # whether 'pass_all' will *always* work, you probably want this one.
12902
12903 case $host_os in
12904 aix[4-9]*)
12905 lt_cv_deplibs_check_method=pass_all
12906 ;;
12907
12908 beos*)
12909 lt_cv_deplibs_check_method=pass_all
12910 ;;
12911
12912 bsdi[45]*)
12913 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12914 lt_cv_file_magic_cmd='$FILECMD -L'
12915 lt_cv_file_magic_test_file=/shlib/libc.so
12916 ;;
12917
12918 cygwin*)
12919 # func_win32_libid is a shell function defined in ltmain.sh
12920 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12921 lt_cv_file_magic_cmd='func_win32_libid'
12922 ;;
12923
12924 mingw* | windows* | pw32*)
12925 # Base MSYS/MinGW do not provide the 'file' command needed by
12926 # func_win32_libid shell function, so use a weaker test based on 'objdump',
12927 # unless we find 'file', for example because we are cross-compiling.
12928 if ( file / ) >/dev/null 2>&1; then
12929 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12930 lt_cv_file_magic_cmd='func_win32_libid'
12931 else
12932 # Keep this pattern in sync with the one in func_win32_libid.
12933 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64|pe-aarch64)'
12934 lt_cv_file_magic_cmd='$OBJDUMP -f'
12935 fi
12936 ;;
12937
12938 cegcc*)
12939 # use the weaker test based on 'objdump'. See mingw*.
12940 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
12941 lt_cv_file_magic_cmd='$OBJDUMP -f'
12942 ;;
12943
12944 darwin* | rhapsody*)
12945 lt_cv_deplibs_check_method=pass_all
12946 ;;
12947
12948 freebsd* | dragonfly* | midnightbsd*)
12949 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12950 case $host_cpu in
12951 i*86 )
12952 # Not sure whether the presence of OpenBSD here was a mistake.
12953 # Let's accept both of them until this is cleared up.
12954 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12955 lt_cv_file_magic_cmd=$FILECMD
12956 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12957 ;;
12958 esac
12959 else
12960 lt_cv_deplibs_check_method=pass_all
12961 fi
12962 ;;
12963
12964 haiku*)
12965 lt_cv_deplibs_check_method=pass_all
12966 ;;
12967
12968 hpux10.20* | hpux11*)
12969 lt_cv_file_magic_cmd=$FILECMD
12970 case $host_cpu in
12971 ia64*)
12972 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12973 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12974 ;;
12975 hppa*64*)
12976 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]'
12977 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12978 ;;
12979 *)
12980 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
12981 lt_cv_file_magic_test_file=/usr/lib/libc.sl
12982 ;;
12983 esac
12984 ;;
12985
12986 interix[3-9]*)
12987 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12988 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12989 ;;
12990
12991 irix5* | irix6* | nonstopux*)
12992 case $LD in
12993 *-32|*"-32 ") libmagic=32-bit;;
12994 *-n32|*"-n32 ") libmagic=N32;;
12995 *-64|*"-64 ") libmagic=64-bit;;
12996 *) libmagic=never-match;;
12997 esac
12998 lt_cv_deplibs_check_method=pass_all
12999 ;;
13000
13001 # This must be glibc/ELF.
13002 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
13003 lt_cv_deplibs_check_method=pass_all
13004 ;;
13005
13006 netbsd*)
13007 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13008 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13009 else
13010 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
13011 fi
13012 ;;
13013
13014 newos6*)
13015 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
13016 lt_cv_file_magic_cmd=$FILECMD
13017 lt_cv_file_magic_test_file=/usr/lib/libnls.so
13018 ;;
13019
13020 *nto* | *qnx*)
13021 lt_cv_deplibs_check_method=pass_all
13022 ;;
13023
13024 openbsd*)
13025 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
13026 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
13027 else
13028 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13029 fi
13030 ;;
13031
13032 osf3* | osf4* | osf5*)
13033 lt_cv_deplibs_check_method=pass_all
13034 ;;
13035
13036 rdos*)
13037 lt_cv_deplibs_check_method=pass_all
13038 ;;
13039
13040 solaris*)
13041 lt_cv_deplibs_check_method=pass_all
13042 ;;
13043
13044 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13045 lt_cv_deplibs_check_method=pass_all
13046 ;;
13047
13048 sysv4 | sysv4.3*)
13049 case $host_vendor in
13050 motorola)
13051 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]'
13052 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
13053 ;;
13054 ncr)
13055 lt_cv_deplibs_check_method=pass_all
13056 ;;
13057 sequent)
13058 lt_cv_file_magic_cmd='/bin/file'
13059 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
13060 ;;
13061 sni)
13062 lt_cv_file_magic_cmd='/bin/file'
13063 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
13064 lt_cv_file_magic_test_file=/lib/libc.so
13065 ;;
13066 siemens)
13067 lt_cv_deplibs_check_method=pass_all
13068 ;;
13069 pc)
13070 lt_cv_deplibs_check_method=pass_all
13071 ;;
13072 esac
13073 ;;
13074
13075 tpf*)
13076 lt_cv_deplibs_check_method=pass_all
13077 ;;
13078 os2*)
13079 lt_cv_deplibs_check_method=pass_all
13080 ;;
13081 esac
13082 ;;
13083 esac
13084 fi
13085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
13086 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
13087
13088 file_magic_glob=
13089 want_nocaseglob=no
13090 if test "$build" = "$host"; then
13091 case $host_os in
13092 mingw* | windows* | pw32*)
13093 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
13094 want_nocaseglob=yes
13095 else
13096 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
13097 fi
13098 ;;
13099 esac
13100 fi
13101
13102 file_magic_cmd=$lt_cv_file_magic_cmd
13103 deplibs_check_method=$lt_cv_deplibs_check_method
13104 test -z "$deplibs_check_method" && deplibs_check_method=unknown
13105
13106
13107
13108
13109
13110
13111
13112
13113
13114
13115
13116
13117
13118
13119
13120
13121
13122
13123
13124
13125
13126
13127 if test -n "$ac_tool_prefix"; then
13128 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
13129 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
13130 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13131 printf %s "checking for $ac_word... " >&6; }
13132 if test ${ac_cv_prog_DLLTOOL+y}
13133 then :
13134 printf %s "(cached) " >&6
13135 else case e in #(
13136 e) if test -n "$DLLTOOL"; then
13137 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
13138 else
13139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13140 for as_dir in $PATH
13141 do
13142 IFS=$as_save_IFS
13143 case $as_dir in #(((
13144 '') as_dir=./ ;;
13145 */) ;;
13146 *) as_dir=$as_dir/ ;;
13147 esac
13148 for ac_exec_ext in '' $ac_executable_extensions; do
13149 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13150 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
13151 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13152 break 2
13153 fi
13154 done
13155 done
13156 IFS=$as_save_IFS
13157
13158 fi ;;
13159 esac
13160 fi
13161 DLLTOOL=$ac_cv_prog_DLLTOOL
13162 if test -n "$DLLTOOL"; then
13163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
13164 printf "%s\n" "$DLLTOOL" >&6; }
13165 else
13166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13167 printf "%s\n" "no" >&6; }
13168 fi
13169
13170
13171 fi
13172 if test -z "$ac_cv_prog_DLLTOOL"; then
13173 ac_ct_DLLTOOL=$DLLTOOL
13174 # Extract the first word of "dlltool", so it can be a program name with args.
13175 set dummy dlltool; ac_word=$2
13176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13177 printf %s "checking for $ac_word... " >&6; }
13178 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
13179 then :
13180 printf %s "(cached) " >&6
13181 else case e in #(
13182 e) if test -n "$ac_ct_DLLTOOL"; then
13183 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
13184 else
13185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13186 for as_dir in $PATH
13187 do
13188 IFS=$as_save_IFS
13189 case $as_dir in #(((
13190 '') as_dir=./ ;;
13191 */) ;;
13192 *) as_dir=$as_dir/ ;;
13193 esac
13194 for ac_exec_ext in '' $ac_executable_extensions; do
13195 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13196 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
13197 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13198 break 2
13199 fi
13200 done
13201 done
13202 IFS=$as_save_IFS
13203
13204 fi ;;
13205 esac
13206 fi
13207 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
13208 if test -n "$ac_ct_DLLTOOL"; then
13209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
13210 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
13211 else
13212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13213 printf "%s\n" "no" >&6; }
13214 fi
13215
13216 if test "x$ac_ct_DLLTOOL" = x; then
13217 DLLTOOL="false"
13218 else
13219 case $cross_compiling:$ac_tool_warned in
13220 yes:)
13221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13222 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13223 ac_tool_warned=yes ;;
13224 esac
13225 DLLTOOL=$ac_ct_DLLTOOL
13226 fi
13227 else
13228 DLLTOOL="$ac_cv_prog_DLLTOOL"
13229 fi
13230
13231 test -z "$DLLTOOL" && DLLTOOL=dlltool
13232
13233
13234
13235
13236
13237
13238
13239
13240
13241
13242 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
13243 printf %s "checking how to associate runtime and link libraries... " >&6; }
13244 if test ${lt_cv_sharedlib_from_linklib_cmd+y}
13245 then :
13246 printf %s "(cached) " >&6
13247 else case e in #(
13248 e) lt_cv_sharedlib_from_linklib_cmd='unknown'
13249
13250 case $host_os in
13251 cygwin* | mingw* | windows* | pw32* | cegcc*)
13252 # two different shell functions defined in ltmain.sh;
13253 # decide which one to use based on capabilities of $DLLTOOL
13254 case `$DLLTOOL --help 2>&1` in
13255 *--identify-strict*)
13256 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
13257 ;;
13258 *)
13259 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
13260 ;;
13261 esac
13262 ;;
13263 *)
13264 # fallback: assume linklib IS sharedlib
13265 lt_cv_sharedlib_from_linklib_cmd=$ECHO
13266 ;;
13267 esac
13268 ;;
13269 esac
13270 fi
13271 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
13272 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
13273 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
13274 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
13275
13276
13277
13278
13279
13280
13281
13282 if test -n "$ac_tool_prefix"; then
13283 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13284 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13286 printf %s "checking for $ac_word... " >&6; }
13287 if test ${ac_cv_prog_RANLIB+y}
13288 then :
13289 printf %s "(cached) " >&6
13290 else case e in #(
13291 e) if test -n "$RANLIB"; then
13292 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13293 else
13294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13295 for as_dir in $PATH
13296 do
13297 IFS=$as_save_IFS
13298 case $as_dir in #(((
13299 '') as_dir=./ ;;
13300 */) ;;
13301 *) as_dir=$as_dir/ ;;
13302 esac
13303 for ac_exec_ext in '' $ac_executable_extensions; do
13304 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13305 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13306 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13307 break 2
13308 fi
13309 done
13310 done
13311 IFS=$as_save_IFS
13312
13313 fi ;;
13314 esac
13315 fi
13316 RANLIB=$ac_cv_prog_RANLIB
13317 if test -n "$RANLIB"; then
13318 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
13319 printf "%s\n" "$RANLIB" >&6; }
13320 else
13321 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13322 printf "%s\n" "no" >&6; }
13323 fi
13324
13325
13326 fi
13327 if test -z "$ac_cv_prog_RANLIB"; then
13328 ac_ct_RANLIB=$RANLIB
13329 # Extract the first word of "ranlib", so it can be a program name with args.
13330 set dummy ranlib; ac_word=$2
13331 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13332 printf %s "checking for $ac_word... " >&6; }
13333 if test ${ac_cv_prog_ac_ct_RANLIB+y}
13334 then :
13335 printf %s "(cached) " >&6
13336 else case e in #(
13337 e) if test -n "$ac_ct_RANLIB"; then
13338 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13339 else
13340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13341 for as_dir in $PATH
13342 do
13343 IFS=$as_save_IFS
13344 case $as_dir in #(((
13345 '') as_dir=./ ;;
13346 */) ;;
13347 *) as_dir=$as_dir/ ;;
13348 esac
13349 for ac_exec_ext in '' $ac_executable_extensions; do
13350 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13351 ac_cv_prog_ac_ct_RANLIB="ranlib"
13352 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13353 break 2
13354 fi
13355 done
13356 done
13357 IFS=$as_save_IFS
13358
13359 fi ;;
13360 esac
13361 fi
13362 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13363 if test -n "$ac_ct_RANLIB"; then
13364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
13365 printf "%s\n" "$ac_ct_RANLIB" >&6; }
13366 else
13367 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13368 printf "%s\n" "no" >&6; }
13369 fi
13370
13371 if test "x$ac_ct_RANLIB" = x; then
13372 RANLIB=":"
13373 else
13374 case $cross_compiling:$ac_tool_warned in
13375 yes:)
13376 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13377 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13378 ac_tool_warned=yes ;;
13379 esac
13380 RANLIB=$ac_ct_RANLIB
13381 fi
13382 else
13383 RANLIB="$ac_cv_prog_RANLIB"
13384 fi
13385
13386 if test -n "$ac_tool_prefix"; then
13387 for ac_prog in ar
13388 do
13389 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13390 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13391 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13392 printf %s "checking for $ac_word... " >&6; }
13393 if test ${ac_cv_prog_AR+y}
13394 then :
13395 printf %s "(cached) " >&6
13396 else case e in #(
13397 e) if test -n "$AR"; then
13398 ac_cv_prog_AR="$AR" # Let the user override the test.
13399 else
13400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13401 for as_dir in $PATH
13402 do
13403 IFS=$as_save_IFS
13404 case $as_dir in #(((
13405 '') as_dir=./ ;;
13406 */) ;;
13407 *) as_dir=$as_dir/ ;;
13408 esac
13409 for ac_exec_ext in '' $ac_executable_extensions; do
13410 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13411 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
13412 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13413 break 2
13414 fi
13415 done
13416 done
13417 IFS=$as_save_IFS
13418
13419 fi ;;
13420 esac
13421 fi
13422 AR=$ac_cv_prog_AR
13423 if test -n "$AR"; then
13424 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
13425 printf "%s\n" "$AR" >&6; }
13426 else
13427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13428 printf "%s\n" "no" >&6; }
13429 fi
13430
13431
13432 test -n "$AR" && break
13433 done
13434 fi
13435 if test -z "$AR"; then
13436 ac_ct_AR=$AR
13437 for ac_prog in ar
13438 do
13439 # Extract the first word of "$ac_prog", so it can be a program name with args.
13440 set dummy $ac_prog; ac_word=$2
13441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13442 printf %s "checking for $ac_word... " >&6; }
13443 if test ${ac_cv_prog_ac_ct_AR+y}
13444 then :
13445 printf %s "(cached) " >&6
13446 else case e in #(
13447 e) if test -n "$ac_ct_AR"; then
13448 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13449 else
13450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13451 for as_dir in $PATH
13452 do
13453 IFS=$as_save_IFS
13454 case $as_dir in #(((
13455 '') as_dir=./ ;;
13456 */) ;;
13457 *) as_dir=$as_dir/ ;;
13458 esac
13459 for ac_exec_ext in '' $ac_executable_extensions; do
13460 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13461 ac_cv_prog_ac_ct_AR="$ac_prog"
13462 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13463 break 2
13464 fi
13465 done
13466 done
13467 IFS=$as_save_IFS
13468
13469 fi ;;
13470 esac
13471 fi
13472 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13473 if test -n "$ac_ct_AR"; then
13474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
13475 printf "%s\n" "$ac_ct_AR" >&6; }
13476 else
13477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13478 printf "%s\n" "no" >&6; }
13479 fi
13480
13481
13482 test -n "$ac_ct_AR" && break
13483 done
13484
13485 if test "x$ac_ct_AR" = x; then
13486 AR="false"
13487 else
13488 case $cross_compiling:$ac_tool_warned in
13489 yes:)
13490 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13491 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13492 ac_tool_warned=yes ;;
13493 esac
13494 AR=$ac_ct_AR
13495 fi
13496 fi
13497
13498 : ${AR=ar}
13499
13500
13501
13502
13503
13504
13505 # Use ARFLAGS variable as AR's operation code to sync the variable naming with
13506 # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
13507 # higher priority because that's what people were doing historically (setting
13508 # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS
13509 # variable obsoleted/removed.
13510
13511 test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
13512 lt_ar_flags=$AR_FLAGS
13513
13514
13515
13516
13517
13518
13519 # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override
13520 # by AR_FLAGS because that was never working and AR_FLAGS is about to die.
13521
13522
13523
13524
13525
13526
13527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
13528 printf %s "checking for archiver @FILE support... " >&6; }
13529 if test ${lt_cv_ar_at_file+y}
13530 then :
13531 printf %s "(cached) " >&6
13532 else case e in #(
13533 e) lt_cv_ar_at_file=no
13534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13535 /* end confdefs.h. */
13536
13537 int
13538 main (void)
13539 {
13540
13541 ;
13542 return 0;
13543 }
13544 _ACEOF
13545 if ac_fn_c_try_compile "$LINENO"
13546 then :
13547 echo conftest.$ac_objext > conftest.lst
13548 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
13549 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
13550 (eval $lt_ar_try) 2>&5
13551 ac_status=$?
13552 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13553 test $ac_status = 0; }
13554 if test 0 -eq "$ac_status"; then
13555 # Ensure the archiver fails upon bogus file names.
13556 rm -f conftest.$ac_objext libconftest.a
13557 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
13558 (eval $lt_ar_try) 2>&5
13559 ac_status=$?
13560 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13561 test $ac_status = 0; }
13562 if test 0 -ne "$ac_status"; then
13563 lt_cv_ar_at_file=@
13564 fi
13565 fi
13566 rm -f conftest.* libconftest.a
13567
13568 fi
13569 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13570 ;;
13571 esac
13572 fi
13573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
13574 printf "%s\n" "$lt_cv_ar_at_file" >&6; }
13575
13576 if test no = "$lt_cv_ar_at_file"; then
13577 archiver_list_spec=
13578 else
13579 archiver_list_spec=$lt_cv_ar_at_file
13580 fi
13581
13582
13583
13584
13585
13586
13587
13588 if test -n "$ac_tool_prefix"; then
13589 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13590 set dummy ${ac_tool_prefix}strip; ac_word=$2
13591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13592 printf %s "checking for $ac_word... " >&6; }
13593 if test ${ac_cv_prog_STRIP+y}
13594 then :
13595 printf %s "(cached) " >&6
13596 else case e in #(
13597 e) if test -n "$STRIP"; then
13598 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13599 else
13600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13601 for as_dir in $PATH
13602 do
13603 IFS=$as_save_IFS
13604 case $as_dir in #(((
13605 '') as_dir=./ ;;
13606 */) ;;
13607 *) as_dir=$as_dir/ ;;
13608 esac
13609 for ac_exec_ext in '' $ac_executable_extensions; do
13610 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13611 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
13612 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13613 break 2
13614 fi
13615 done
13616 done
13617 IFS=$as_save_IFS
13618
13619 fi ;;
13620 esac
13621 fi
13622 STRIP=$ac_cv_prog_STRIP
13623 if test -n "$STRIP"; then
13624 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
13625 printf "%s\n" "$STRIP" >&6; }
13626 else
13627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13628 printf "%s\n" "no" >&6; }
13629 fi
13630
13631
13632 fi
13633 if test -z "$ac_cv_prog_STRIP"; then
13634 ac_ct_STRIP=$STRIP
13635 # Extract the first word of "strip", so it can be a program name with args.
13636 set dummy strip; ac_word=$2
13637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13638 printf %s "checking for $ac_word... " >&6; }
13639 if test ${ac_cv_prog_ac_ct_STRIP+y}
13640 then :
13641 printf %s "(cached) " >&6
13642 else case e in #(
13643 e) if test -n "$ac_ct_STRIP"; then
13644 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13645 else
13646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13647 for as_dir in $PATH
13648 do
13649 IFS=$as_save_IFS
13650 case $as_dir in #(((
13651 '') as_dir=./ ;;
13652 */) ;;
13653 *) as_dir=$as_dir/ ;;
13654 esac
13655 for ac_exec_ext in '' $ac_executable_extensions; do
13656 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13657 ac_cv_prog_ac_ct_STRIP="strip"
13658 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13659 break 2
13660 fi
13661 done
13662 done
13663 IFS=$as_save_IFS
13664
13665 fi ;;
13666 esac
13667 fi
13668 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13669 if test -n "$ac_ct_STRIP"; then
13670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
13671 printf "%s\n" "$ac_ct_STRIP" >&6; }
13672 else
13673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13674 printf "%s\n" "no" >&6; }
13675 fi
13676
13677 if test "x$ac_ct_STRIP" = x; then
13678 STRIP=":"
13679 else
13680 case $cross_compiling:$ac_tool_warned in
13681 yes:)
13682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13683 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13684 ac_tool_warned=yes ;;
13685 esac
13686 STRIP=$ac_ct_STRIP
13687 fi
13688 else
13689 STRIP="$ac_cv_prog_STRIP"
13690 fi
13691
13692 test -z "$STRIP" && STRIP=:
13693
13694
13695
13696
13697
13698
13699
13700 test -z "$RANLIB" && RANLIB=:
13701
13702
13703
13704
13705
13706
13707 # Determine commands to create old-style static archives.
13708 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
13709 old_postinstall_cmds='chmod 644 $oldlib'
13710 old_postuninstall_cmds=
13711
13712 if test -n "$RANLIB"; then
13713 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
13714 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
13715 fi
13716
13717 case $host_os in
13718 darwin*)
13719 lock_old_archive_extraction=yes ;;
13720 *)
13721 lock_old_archive_extraction=no ;;
13722 esac
13723
13724
13725
13726
13727
13728
13729
13730
13731
13732
13733
13734
13735
13736
13737
13738
13739
13740
13741
13742
13743
13744
13745
13746
13747
13748
13749
13750
13751
13752
13753
13754
13755
13756
13757
13758
13759
13760
13761
13762 # If no C compiler was specified, use CC.
13763 LTCC=${LTCC-"$CC"}
13764
13765 # If no C compiler flags were specified, use CFLAGS.
13766 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13767
13768 # Allow CC to be a program name with arguments.
13769 compiler=$CC
13770
13771
13772 # Check for command to grab the raw symbol name followed by C symbol from nm.
13773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
13774 printf %s "checking command to parse $NM output from $compiler object... " >&6; }
13775 if test ${lt_cv_sys_global_symbol_pipe+y}
13776 then :
13777 printf %s "(cached) " >&6
13778 else case e in #(
13779 e)
13780 # These are sane defaults that work on at least a few old systems.
13781 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
13782
13783 # Character class describing NM global symbol codes.
13784 symcode='[BCDEGRST]'
13785
13786 # Regexp to match symbols that can be accessed directly from C.
13787 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13788
13789 # Define system-specific variables.
13790 case $host_os in
13791 aix*)
13792 symcode='[BCDT]'
13793 ;;
13794 cygwin* | mingw* | windows* | pw32* | cegcc*)
13795 symcode='[ABCDGISTW]'
13796 ;;
13797 hpux*)
13798 if test ia64 = "$host_cpu"; then
13799 symcode='[ABCDEGRST]'
13800 fi
13801 ;;
13802 irix* | nonstopux*)
13803 symcode='[BCDEGRST]'
13804 ;;
13805 osf*)
13806 symcode='[BCDEGQRST]'
13807 ;;
13808 solaris*)
13809 symcode='[BCDRT]'
13810 ;;
13811 sco3.2v5*)
13812 symcode='[DT]'
13813 ;;
13814 sysv4.2uw2*)
13815 symcode='[DT]'
13816 ;;
13817 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13818 symcode='[ABDT]'
13819 ;;
13820 sysv4)
13821 symcode='[DFNSTU]'
13822 ;;
13823 esac
13824
13825 # If we're using GNU nm, then use its standard symbol codes.
13826 case `$NM -V 2>&1` in
13827 *GNU* | *'with BFD'*)
13828 symcode='[ABCDGIRSTW]' ;;
13829 esac
13830
13831 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
13832 # Gets list of data symbols to import.
13833 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
13834 # Adjust the below global symbol transforms to fixup imported variables.
13835 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
13836 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
13837 lt_c_name_lib_hook="\
13838 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
13839 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
13840 else
13841 # Disable hooks by default.
13842 lt_cv_sys_global_symbol_to_import=
13843 lt_cdecl_hook=
13844 lt_c_name_hook=
13845 lt_c_name_lib_hook=
13846 fi
13847
13848 # Transform an extracted symbol line into a proper C declaration.
13849 # Some systems (esp. on ia64) link data and code symbols differently,
13850 # so use this general approach.
13851 lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
13852 $lt_cdecl_hook\
13853 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
13854 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
13855
13856 # Transform an extracted symbol line into symbol name and symbol address
13857 lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
13858 $lt_c_name_hook\
13859 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
13860 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
13861
13862 # Transform an extracted symbol line into symbol name with lib prefix and
13863 # symbol address.
13864 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
13865 $lt_c_name_lib_hook\
13866 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
13867 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
13868 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
13869
13870 # Handle CRLF in mingw tool chain
13871 opt_cr=
13872 case $build_os in
13873 mingw* | windows*)
13874 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13875 ;;
13876 esac
13877
13878 # Try without a prefix underscore, then with it.
13879 for ac_symprfx in "" "_"; do
13880
13881 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13882 symxfrm="\\1 $ac_symprfx\\2 \\2"
13883
13884 # Write the raw and C identifiers.
13885 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
13886 # Fake it for dumpbin and say T for any non-static function,
13887 # D for any global variable and I for any imported variable.
13888 # Also find C++ and __fastcall symbols from MSVC++ or ICC,
13889 # which start with @ or ?.
13890 lt_cv_sys_global_symbol_pipe="$AWK '"\
13891 " {last_section=section; section=\$ 3};"\
13892 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
13893 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
13894 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
13895 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
13896 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
13897 " \$ 0!~/External *\|/{next};"\
13898 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
13899 " {if(hide[section]) next};"\
13900 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
13901 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
13902 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
13903 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
13904 " ' prfx=^$ac_symprfx"
13905 else
13906 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13907 fi
13908 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
13909
13910 # Check to see that the pipe works correctly.
13911 pipe_works=no
13912
13913 rm -f conftest*
13914 cat > conftest.$ac_ext <<_LT_EOF
13915 #ifdef __cplusplus
13916 extern "C" {
13917 #endif
13918 char nm_test_var;
13919 void nm_test_func(void);
13920 void nm_test_func(void){}
13921 #ifdef __cplusplus
13922 }
13923 #endif
13924 int main(void){nm_test_var='a';nm_test_func();return(0);}
13925 _LT_EOF
13926
13927 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13928 (eval $ac_compile) 2>&5
13929 ac_status=$?
13930 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13931 test $ac_status = 0; }; then
13932 # Now try to grab the symbols.
13933 nlist=conftest.nm
13934 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
13935 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
13936 ac_status=$?
13937 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13938 test $ac_status = 0; } && test -s "$nlist"; then
13939 # Try sorting and uniquifying the output.
13940 if sort "$nlist" | uniq > "$nlist"T; then
13941 mv -f "$nlist"T "$nlist"
13942 else
13943 rm -f "$nlist"T
13944 fi
13945
13946 # Make sure that we snagged all the symbols we need.
13947 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
13948 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
13949 cat <<_LT_EOF > conftest.$ac_ext
13950 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
13951 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
13952 /* DATA imports from DLLs on WIN32 can't be const, because runtime
13953 relocations are performed -- see ld's documentation on pseudo-relocs. */
13954 # define LT_DLSYM_CONST
13955 #elif defined __osf__
13956 /* This system does not cope well with relocations in const data. */
13957 # define LT_DLSYM_CONST
13958 #else
13959 # define LT_DLSYM_CONST const
13960 #endif
13961
13962 #ifdef __cplusplus
13963 extern "C" {
13964 #endif
13965
13966 _LT_EOF
13967 # Now generate the symbol file.
13968 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
13969
13970 cat <<_LT_EOF >> conftest.$ac_ext
13971
13972 /* The mapping between symbol names and symbols. */
13973 LT_DLSYM_CONST struct {
13974 const char *name;
13975 void *address;
13976 }
13977 lt__PROGRAM__LTX_preloaded_symbols[] =
13978 {
13979 { "@PROGRAM@", (void *) 0 },
13980 _LT_EOF
13981 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
13982 cat <<\_LT_EOF >> conftest.$ac_ext
13983 {0, (void *) 0}
13984 };
13985
13986 /* This works around a problem in FreeBSD linker */
13987 #ifdef FREEBSD_WORKAROUND
13988 static const void *lt_preloaded_setup() {
13989 return lt__PROGRAM__LTX_preloaded_symbols;
13990 }
13991 #endif
13992
13993 #ifdef __cplusplus
13994 }
13995 #endif
13996 _LT_EOF
13997 # Now try linking the two files.
13998 mv conftest.$ac_objext conftstm.$ac_objext
13999 lt_globsym_save_LIBS=$LIBS
14000 lt_globsym_save_CFLAGS=$CFLAGS
14001 LIBS=conftstm.$ac_objext
14002 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
14003 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14004 (eval $ac_link) 2>&5
14005 ac_status=$?
14006 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14007 test $ac_status = 0; } && test -s conftest$ac_exeext; then
14008 pipe_works=yes
14009 fi
14010 LIBS=$lt_globsym_save_LIBS
14011 CFLAGS=$lt_globsym_save_CFLAGS
14012 else
14013 echo "cannot find nm_test_func in $nlist" >&5
14014 fi
14015 else
14016 echo "cannot find nm_test_var in $nlist" >&5
14017 fi
14018 else
14019 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
14020 fi
14021 else
14022 echo "$progname: failed program was:" >&5
14023 cat conftest.$ac_ext >&5
14024 fi
14025 rm -rf conftest* conftst*
14026
14027 # Do not use the global_symbol_pipe unless it works.
14028 if test yes = "$pipe_works"; then
14029 break
14030 else
14031 lt_cv_sys_global_symbol_pipe=
14032 fi
14033 done
14034 ;;
14035 esac
14036 fi
14037
14038 if test -z "$lt_cv_sys_global_symbol_pipe"; then
14039 lt_cv_sys_global_symbol_to_cdecl=
14040 fi
14041 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
14042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
14043 printf "%s\n" "failed" >&6; }
14044 else
14045 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
14046 printf "%s\n" "ok" >&6; }
14047 fi
14048
14049 # Response file support.
14050 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
14051 nm_file_list_spec='@'
14052 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
14053 nm_file_list_spec='@'
14054 fi
14055
14056
14057
14058
14059
14060
14061
14062
14063
14064
14065
14066
14067
14068
14069
14070
14071
14072
14073
14074
14075
14076
14077
14078
14079
14080
14081
14082
14083
14084
14085
14086
14087
14088
14089
14090
14091
14092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
14093 printf %s "checking for sysroot... " >&6; }
14094
14095 # Check whether --with-sysroot was given.
14096 if test ${with_sysroot+y}
14097 then :
14098 withval=$with_sysroot;
14099 else case e in #(
14100 e) with_sysroot=no ;;
14101 esac
14102 fi
14103
14104
14105 lt_sysroot=
14106 case $with_sysroot in #(
14107 yes)
14108 if test yes = "$GCC"; then
14109 # Trim trailing / since we'll always append absolute paths and we want
14110 # to avoid //, if only for less confusing output for the user.
14111 lt_sysroot=`$CC --print-sysroot 2>/dev/null | $SED 's:/\+$::'`
14112 fi
14113 ;; #(
14114 /*)
14115 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
14116 ;; #(
14117 no|'')
14118 ;; #(
14119 *)
14120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
14121 printf "%s\n" "$with_sysroot" >&6; }
14122 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
14123 ;;
14124 esac
14125
14126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
14127 printf "%s\n" "${lt_sysroot:-no}" >&6; }
14128
14129
14130
14131
14132
14133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
14134 printf %s "checking for a working dd... " >&6; }
14135 if test ${ac_cv_path_lt_DD+y}
14136 then :
14137 printf %s "(cached) " >&6
14138 else case e in #(
14139 e) printf 0123456789abcdef0123456789abcdef >conftest.i
14140 cat conftest.i conftest.i >conftest2.i
14141 : ${lt_DD:=$DD}
14142 if test -z "$lt_DD"; then
14143 ac_path_lt_DD_found=false
14144 # Loop through the user's path and test for each of PROGNAME-LIST
14145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14146 for as_dir in $PATH
14147 do
14148 IFS=$as_save_IFS
14149 case $as_dir in #(((
14150 '') as_dir=./ ;;
14151 */) ;;
14152 *) as_dir=$as_dir/ ;;
14153 esac
14154 for ac_prog in dd
14155 do
14156 for ac_exec_ext in '' $ac_executable_extensions; do
14157 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
14158 as_fn_executable_p "$ac_path_lt_DD" || continue
14159 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
14160 cmp -s conftest.i conftest.out \
14161 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
14162 fi
14163 $ac_path_lt_DD_found && break 3
14164 done
14165 done
14166 done
14167 IFS=$as_save_IFS
14168 if test -z "$ac_cv_path_lt_DD"; then
14169 :
14170 fi
14171 else
14172 ac_cv_path_lt_DD=$lt_DD
14173 fi
14174
14175 rm -f conftest.i conftest2.i conftest.out ;;
14176 esac
14177 fi
14178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
14179 printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
14180
14181
14182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
14183 printf %s "checking how to truncate binary pipes... " >&6; }
14184 if test ${lt_cv_truncate_bin+y}
14185 then :
14186 printf %s "(cached) " >&6
14187 else case e in #(
14188 e) printf 0123456789abcdef0123456789abcdef >conftest.i
14189 cat conftest.i conftest.i >conftest2.i
14190 lt_cv_truncate_bin=
14191 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
14192 cmp -s conftest.i conftest.out \
14193 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
14194 fi
14195 rm -f conftest.i conftest2.i conftest.out
14196 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" ;;
14197 esac
14198 fi
14199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
14200 printf "%s\n" "$lt_cv_truncate_bin" >&6; }
14201
14202
14203
14204
14205
14206
14207
14208 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
14209 func_cc_basename ()
14210 {
14211 for cc_temp in $*""; do
14212 case $cc_temp in
14213 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14214 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14215 \-*) ;;
14216 *) break;;
14217 esac
14218 done
14219 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
14220 }
14221
14222 # Check whether --enable-libtool-lock was given.
14223 if test ${enable_libtool_lock+y}
14224 then :
14225 enableval=$enable_libtool_lock;
14226 fi
14227
14228 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
14229
14230 # Some flags need to be propagated to the compiler or linker for good
14231 # libtool support.
14232 case $host in
14233 ia64-*-hpux*)
14234 # Find out what ABI is being produced by ac_compile, and set mode
14235 # options accordingly.
14236 echo 'int i;' > conftest.$ac_ext
14237 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14238 (eval $ac_compile) 2>&5
14239 ac_status=$?
14240 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14241 test $ac_status = 0; }; then
14242 case `$FILECMD conftest.$ac_objext` in
14243 *ELF-32*)
14244 HPUX_IA64_MODE=32
14245 ;;
14246 *ELF-64*)
14247 HPUX_IA64_MODE=64
14248 ;;
14249 esac
14250 fi
14251 rm -rf conftest*
14252 ;;
14253 *-*-irix6*)
14254 # Find out what ABI is being produced by ac_compile, and set linker
14255 # options accordingly.
14256 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
14257 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14258 (eval $ac_compile) 2>&5
14259 ac_status=$?
14260 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14261 test $ac_status = 0; }; then
14262 if test yes = "$lt_cv_prog_gnu_ld"; then
14263 case `$FILECMD conftest.$ac_objext` in
14264 *32-bit*)
14265 LD="${LD-ld} -melf32bsmip"
14266 ;;
14267 *N32*)
14268 LD="${LD-ld} -melf32bmipn32"
14269 ;;
14270 *64-bit*)
14271 LD="${LD-ld} -melf64bmip"
14272 ;;
14273 esac
14274 else
14275 case `$FILECMD conftest.$ac_objext` in
14276 *32-bit*)
14277 LD="${LD-ld} -32"
14278 ;;
14279 *N32*)
14280 LD="${LD-ld} -n32"
14281 ;;
14282 *64-bit*)
14283 LD="${LD-ld} -64"
14284 ;;
14285 esac
14286 fi
14287 fi
14288 rm -rf conftest*
14289 ;;
14290
14291 mips64*-*linux*)
14292 # Find out what ABI is being produced by ac_compile, and set linker
14293 # options accordingly.
14294 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
14295 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14296 (eval $ac_compile) 2>&5
14297 ac_status=$?
14298 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14299 test $ac_status = 0; }; then
14300 emul=elf
14301 case `$FILECMD conftest.$ac_objext` in
14302 *32-bit*)
14303 emul="${emul}32"
14304 ;;
14305 *64-bit*)
14306 emul="${emul}64"
14307 ;;
14308 esac
14309 case `$FILECMD conftest.$ac_objext` in
14310 *MSB*)
14311 emul="${emul}btsmip"
14312 ;;
14313 *LSB*)
14314 emul="${emul}ltsmip"
14315 ;;
14316 esac
14317 case `$FILECMD conftest.$ac_objext` in
14318 *N32*)
14319 emul="${emul}n32"
14320 ;;
14321 esac
14322 LD="${LD-ld} -m $emul"
14323 fi
14324 rm -rf conftest*
14325 ;;
14326
14327 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
14328 s390*-*linux*|s390*-*tpf*|sparc*-*linux*|x86_64-gnu*)
14329 # Find out what ABI is being produced by ac_compile, and set linker
14330 # options accordingly. Note that the listed cases only cover the
14331 # situations where additional linker options are needed (such as when
14332 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
14333 # vice versa); the common cases where no linker options are needed do
14334 # not appear in the list.
14335 echo 'int i;' > conftest.$ac_ext
14336 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14337 (eval $ac_compile) 2>&5
14338 ac_status=$?
14339 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14340 test $ac_status = 0; }; then
14341 case `$FILECMD conftest.o` in
14342 *32-bit*)
14343 case $host in
14344 x86_64-*kfreebsd*-gnu)
14345 LD="${LD-ld} -m elf_i386_fbsd"
14346 ;;
14347 x86_64-*linux*|x86_64-gnu*)
14348 case `$FILECMD conftest.o` in
14349 *x86-64*)
14350 LD="${LD-ld} -m elf32_x86_64"
14351 ;;
14352 *)
14353 LD="${LD-ld} -m elf_i386"
14354 ;;
14355 esac
14356 ;;
14357 powerpc64le-*linux*)
14358 LD="${LD-ld} -m elf32lppclinux"
14359 ;;
14360 powerpc64-*linux*)
14361 LD="${LD-ld} -m elf32ppclinux"
14362 ;;
14363 s390x-*linux*)
14364 LD="${LD-ld} -m elf_s390"
14365 ;;
14366 sparc64-*linux*)
14367 LD="${LD-ld} -m elf32_sparc"
14368 ;;
14369 esac
14370 ;;
14371 *64-bit*)
14372 case $host in
14373 x86_64-*kfreebsd*-gnu)
14374 LD="${LD-ld} -m elf_x86_64_fbsd"
14375 ;;
14376 x86_64-*linux*|x86_64-gnu*)
14377 LD="${LD-ld} -m elf_x86_64"
14378 ;;
14379 powerpcle-*linux*)
14380 LD="${LD-ld} -m elf64lppc"
14381 ;;
14382 powerpc-*linux*)
14383 LD="${LD-ld} -m elf64ppc"
14384 ;;
14385 s390*-*linux*|s390*-*tpf*)
14386 LD="${LD-ld} -m elf64_s390"
14387 ;;
14388 sparc*-*linux*)
14389 LD="${LD-ld} -m elf64_sparc"
14390 ;;
14391 esac
14392 ;;
14393 esac
14394 fi
14395 rm -rf conftest*
14396 ;;
14397
14398 *-*-sco3.2v5*)
14399 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
14400 SAVE_CFLAGS=$CFLAGS
14401 CFLAGS="$CFLAGS -belf"
14402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
14403 printf %s "checking whether the C compiler needs -belf... " >&6; }
14404 if test ${lt_cv_cc_needs_belf+y}
14405 then :
14406 printf %s "(cached) " >&6
14407 else case e in #(
14408 e) ac_ext=c
14409 ac_cpp='$CPP $CPPFLAGS'
14410 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14411 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14412 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14413
14414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14415 /* end confdefs.h. */
14416
14417 int
14418 main (void)
14419 {
14420
14421 ;
14422 return 0;
14423 }
14424 _ACEOF
14425 if ac_fn_c_try_link "$LINENO"
14426 then :
14427 lt_cv_cc_needs_belf=yes
14428 else case e in #(
14429 e) lt_cv_cc_needs_belf=no ;;
14430 esac
14431 fi
14432 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14433 conftest$ac_exeext conftest.$ac_ext
14434 ac_ext=c
14435 ac_cpp='$CPP $CPPFLAGS'
14436 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14437 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14438 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14439 ;;
14440 esac
14441 fi
14442 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
14443 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
14444 if test yes != "$lt_cv_cc_needs_belf"; then
14445 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
14446 CFLAGS=$SAVE_CFLAGS
14447 fi
14448 ;;
14449 *-*solaris*)
14450 # Find out what ABI is being produced by ac_compile, and set linker
14451 # options accordingly.
14452 echo 'int i;' > conftest.$ac_ext
14453 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14454 (eval $ac_compile) 2>&5
14455 ac_status=$?
14456 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14457 test $ac_status = 0; }; then
14458 case `$FILECMD conftest.o` in
14459 *64-bit*)
14460 case $lt_cv_prog_gnu_ld in
14461 yes*)
14462 case $host in
14463 i?86-*-solaris*|x86_64-*-solaris*)
14464 LD="${LD-ld} -m elf_x86_64"
14465 ;;
14466 sparc*-*-solaris*)
14467 LD="${LD-ld} -m elf64_sparc"
14468 ;;
14469 esac
14470 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
14471 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
14472 LD=${LD-ld}_sol2
14473 fi
14474 ;;
14475 *)
14476 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
14477 LD="${LD-ld} -64"
14478 fi
14479 ;;
14480 esac
14481 ;;
14482 esac
14483 fi
14484 rm -rf conftest*
14485 ;;
14486 esac
14487
14488 need_locks=$enable_libtool_lock
14489
14490 if test -n "$ac_tool_prefix"; then
14491 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
14492 set dummy ${ac_tool_prefix}mt; ac_word=$2
14493 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14494 printf %s "checking for $ac_word... " >&6; }
14495 if test ${ac_cv_prog_MANIFEST_TOOL+y}
14496 then :
14497 printf %s "(cached) " >&6
14498 else case e in #(
14499 e) if test -n "$MANIFEST_TOOL"; then
14500 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
14501 else
14502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14503 for as_dir in $PATH
14504 do
14505 IFS=$as_save_IFS
14506 case $as_dir in #(((
14507 '') as_dir=./ ;;
14508 */) ;;
14509 *) as_dir=$as_dir/ ;;
14510 esac
14511 for ac_exec_ext in '' $ac_executable_extensions; do
14512 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14513 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
14514 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14515 break 2
14516 fi
14517 done
14518 done
14519 IFS=$as_save_IFS
14520
14521 fi ;;
14522 esac
14523 fi
14524 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
14525 if test -n "$MANIFEST_TOOL"; then
14526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
14527 printf "%s\n" "$MANIFEST_TOOL" >&6; }
14528 else
14529 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14530 printf "%s\n" "no" >&6; }
14531 fi
14532
14533
14534 fi
14535 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
14536 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
14537 # Extract the first word of "mt", so it can be a program name with args.
14538 set dummy mt; ac_word=$2
14539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14540 printf %s "checking for $ac_word... " >&6; }
14541 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
14542 then :
14543 printf %s "(cached) " >&6
14544 else case e in #(
14545 e) if test -n "$ac_ct_MANIFEST_TOOL"; then
14546 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
14547 else
14548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14549 for as_dir in $PATH
14550 do
14551 IFS=$as_save_IFS
14552 case $as_dir in #(((
14553 '') as_dir=./ ;;
14554 */) ;;
14555 *) as_dir=$as_dir/ ;;
14556 esac
14557 for ac_exec_ext in '' $ac_executable_extensions; do
14558 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14559 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
14560 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14561 break 2
14562 fi
14563 done
14564 done
14565 IFS=$as_save_IFS
14566
14567 fi ;;
14568 esac
14569 fi
14570 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
14571 if test -n "$ac_ct_MANIFEST_TOOL"; then
14572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
14573 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
14574 else
14575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14576 printf "%s\n" "no" >&6; }
14577 fi
14578
14579 if test "x$ac_ct_MANIFEST_TOOL" = x; then
14580 MANIFEST_TOOL=":"
14581 else
14582 case $cross_compiling:$ac_tool_warned in
14583 yes:)
14584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14585 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14586 ac_tool_warned=yes ;;
14587 esac
14588 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
14589 fi
14590 else
14591 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
14592 fi
14593
14594 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
14595 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
14596 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
14597 if test ${lt_cv_path_manifest_tool+y}
14598 then :
14599 printf %s "(cached) " >&6
14600 else case e in #(
14601 e) lt_cv_path_manifest_tool=no
14602 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
14603 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
14604 cat conftest.err >&5
14605 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
14606 lt_cv_path_manifest_tool=yes
14607 fi
14608 rm -f conftest* ;;
14609 esac
14610 fi
14611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_manifest_tool" >&5
14612 printf "%s\n" "$lt_cv_path_manifest_tool" >&6; }
14613 if test yes != "$lt_cv_path_manifest_tool"; then
14614 MANIFEST_TOOL=:
14615 fi
14616
14617
14618
14619
14620
14621
14622 case $host_os in
14623 rhapsody* | darwin*)
14624 if test -n "$ac_tool_prefix"; then
14625 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
14626 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
14627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14628 printf %s "checking for $ac_word... " >&6; }
14629 if test ${ac_cv_prog_DSYMUTIL+y}
14630 then :
14631 printf %s "(cached) " >&6
14632 else case e in #(
14633 e) if test -n "$DSYMUTIL"; then
14634 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
14635 else
14636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14637 for as_dir in $PATH
14638 do
14639 IFS=$as_save_IFS
14640 case $as_dir in #(((
14641 '') as_dir=./ ;;
14642 */) ;;
14643 *) as_dir=$as_dir/ ;;
14644 esac
14645 for ac_exec_ext in '' $ac_executable_extensions; do
14646 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14647 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
14648 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14649 break 2
14650 fi
14651 done
14652 done
14653 IFS=$as_save_IFS
14654
14655 fi ;;
14656 esac
14657 fi
14658 DSYMUTIL=$ac_cv_prog_DSYMUTIL
14659 if test -n "$DSYMUTIL"; then
14660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
14661 printf "%s\n" "$DSYMUTIL" >&6; }
14662 else
14663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14664 printf "%s\n" "no" >&6; }
14665 fi
14666
14667
14668 fi
14669 if test -z "$ac_cv_prog_DSYMUTIL"; then
14670 ac_ct_DSYMUTIL=$DSYMUTIL
14671 # Extract the first word of "dsymutil", so it can be a program name with args.
14672 set dummy dsymutil; ac_word=$2
14673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14674 printf %s "checking for $ac_word... " >&6; }
14675 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
14676 then :
14677 printf %s "(cached) " >&6
14678 else case e in #(
14679 e) if test -n "$ac_ct_DSYMUTIL"; then
14680 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
14681 else
14682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14683 for as_dir in $PATH
14684 do
14685 IFS=$as_save_IFS
14686 case $as_dir in #(((
14687 '') as_dir=./ ;;
14688 */) ;;
14689 *) as_dir=$as_dir/ ;;
14690 esac
14691 for ac_exec_ext in '' $ac_executable_extensions; do
14692 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14693 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
14694 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14695 break 2
14696 fi
14697 done
14698 done
14699 IFS=$as_save_IFS
14700
14701 fi ;;
14702 esac
14703 fi
14704 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
14705 if test -n "$ac_ct_DSYMUTIL"; then
14706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
14707 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
14708 else
14709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14710 printf "%s\n" "no" >&6; }
14711 fi
14712
14713 if test "x$ac_ct_DSYMUTIL" = x; then
14714 DSYMUTIL=":"
14715 else
14716 case $cross_compiling:$ac_tool_warned in
14717 yes:)
14718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14719 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14720 ac_tool_warned=yes ;;
14721 esac
14722 DSYMUTIL=$ac_ct_DSYMUTIL
14723 fi
14724 else
14725 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
14726 fi
14727
14728 if test -n "$ac_tool_prefix"; then
14729 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
14730 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
14731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14732 printf %s "checking for $ac_word... " >&6; }
14733 if test ${ac_cv_prog_NMEDIT+y}
14734 then :
14735 printf %s "(cached) " >&6
14736 else case e in #(
14737 e) if test -n "$NMEDIT"; then
14738 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
14739 else
14740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14741 for as_dir in $PATH
14742 do
14743 IFS=$as_save_IFS
14744 case $as_dir in #(((
14745 '') as_dir=./ ;;
14746 */) ;;
14747 *) as_dir=$as_dir/ ;;
14748 esac
14749 for ac_exec_ext in '' $ac_executable_extensions; do
14750 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14751 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
14752 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14753 break 2
14754 fi
14755 done
14756 done
14757 IFS=$as_save_IFS
14758
14759 fi ;;
14760 esac
14761 fi
14762 NMEDIT=$ac_cv_prog_NMEDIT
14763 if test -n "$NMEDIT"; then
14764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
14765 printf "%s\n" "$NMEDIT" >&6; }
14766 else
14767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14768 printf "%s\n" "no" >&6; }
14769 fi
14770
14771
14772 fi
14773 if test -z "$ac_cv_prog_NMEDIT"; then
14774 ac_ct_NMEDIT=$NMEDIT
14775 # Extract the first word of "nmedit", so it can be a program name with args.
14776 set dummy nmedit; ac_word=$2
14777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14778 printf %s "checking for $ac_word... " >&6; }
14779 if test ${ac_cv_prog_ac_ct_NMEDIT+y}
14780 then :
14781 printf %s "(cached) " >&6
14782 else case e in #(
14783 e) if test -n "$ac_ct_NMEDIT"; then
14784 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
14785 else
14786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14787 for as_dir in $PATH
14788 do
14789 IFS=$as_save_IFS
14790 case $as_dir in #(((
14791 '') as_dir=./ ;;
14792 */) ;;
14793 *) as_dir=$as_dir/ ;;
14794 esac
14795 for ac_exec_ext in '' $ac_executable_extensions; do
14796 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14797 ac_cv_prog_ac_ct_NMEDIT="nmedit"
14798 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14799 break 2
14800 fi
14801 done
14802 done
14803 IFS=$as_save_IFS
14804
14805 fi ;;
14806 esac
14807 fi
14808 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
14809 if test -n "$ac_ct_NMEDIT"; then
14810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
14811 printf "%s\n" "$ac_ct_NMEDIT" >&6; }
14812 else
14813 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14814 printf "%s\n" "no" >&6; }
14815 fi
14816
14817 if test "x$ac_ct_NMEDIT" = x; then
14818 NMEDIT=":"
14819 else
14820 case $cross_compiling:$ac_tool_warned in
14821 yes:)
14822 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14823 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14824 ac_tool_warned=yes ;;
14825 esac
14826 NMEDIT=$ac_ct_NMEDIT
14827 fi
14828 else
14829 NMEDIT="$ac_cv_prog_NMEDIT"
14830 fi
14831
14832 if test -n "$ac_tool_prefix"; then
14833 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
14834 set dummy ${ac_tool_prefix}lipo; ac_word=$2
14835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14836 printf %s "checking for $ac_word... " >&6; }
14837 if test ${ac_cv_prog_LIPO+y}
14838 then :
14839 printf %s "(cached) " >&6
14840 else case e in #(
14841 e) if test -n "$LIPO"; then
14842 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
14843 else
14844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14845 for as_dir in $PATH
14846 do
14847 IFS=$as_save_IFS
14848 case $as_dir in #(((
14849 '') as_dir=./ ;;
14850 */) ;;
14851 *) as_dir=$as_dir/ ;;
14852 esac
14853 for ac_exec_ext in '' $ac_executable_extensions; do
14854 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14855 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
14856 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14857 break 2
14858 fi
14859 done
14860 done
14861 IFS=$as_save_IFS
14862
14863 fi ;;
14864 esac
14865 fi
14866 LIPO=$ac_cv_prog_LIPO
14867 if test -n "$LIPO"; then
14868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
14869 printf "%s\n" "$LIPO" >&6; }
14870 else
14871 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14872 printf "%s\n" "no" >&6; }
14873 fi
14874
14875
14876 fi
14877 if test -z "$ac_cv_prog_LIPO"; then
14878 ac_ct_LIPO=$LIPO
14879 # Extract the first word of "lipo", so it can be a program name with args.
14880 set dummy lipo; ac_word=$2
14881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14882 printf %s "checking for $ac_word... " >&6; }
14883 if test ${ac_cv_prog_ac_ct_LIPO+y}
14884 then :
14885 printf %s "(cached) " >&6
14886 else case e in #(
14887 e) if test -n "$ac_ct_LIPO"; then
14888 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
14889 else
14890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14891 for as_dir in $PATH
14892 do
14893 IFS=$as_save_IFS
14894 case $as_dir in #(((
14895 '') as_dir=./ ;;
14896 */) ;;
14897 *) as_dir=$as_dir/ ;;
14898 esac
14899 for ac_exec_ext in '' $ac_executable_extensions; do
14900 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14901 ac_cv_prog_ac_ct_LIPO="lipo"
14902 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14903 break 2
14904 fi
14905 done
14906 done
14907 IFS=$as_save_IFS
14908
14909 fi ;;
14910 esac
14911 fi
14912 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
14913 if test -n "$ac_ct_LIPO"; then
14914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
14915 printf "%s\n" "$ac_ct_LIPO" >&6; }
14916 else
14917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14918 printf "%s\n" "no" >&6; }
14919 fi
14920
14921 if test "x$ac_ct_LIPO" = x; then
14922 LIPO=":"
14923 else
14924 case $cross_compiling:$ac_tool_warned in
14925 yes:)
14926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14927 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14928 ac_tool_warned=yes ;;
14929 esac
14930 LIPO=$ac_ct_LIPO
14931 fi
14932 else
14933 LIPO="$ac_cv_prog_LIPO"
14934 fi
14935
14936 if test -n "$ac_tool_prefix"; then
14937 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
14938 set dummy ${ac_tool_prefix}otool; ac_word=$2
14939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14940 printf %s "checking for $ac_word... " >&6; }
14941 if test ${ac_cv_prog_OTOOL+y}
14942 then :
14943 printf %s "(cached) " >&6
14944 else case e in #(
14945 e) if test -n "$OTOOL"; then
14946 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
14947 else
14948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14949 for as_dir in $PATH
14950 do
14951 IFS=$as_save_IFS
14952 case $as_dir in #(((
14953 '') as_dir=./ ;;
14954 */) ;;
14955 *) as_dir=$as_dir/ ;;
14956 esac
14957 for ac_exec_ext in '' $ac_executable_extensions; do
14958 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14959 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
14960 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14961 break 2
14962 fi
14963 done
14964 done
14965 IFS=$as_save_IFS
14966
14967 fi ;;
14968 esac
14969 fi
14970 OTOOL=$ac_cv_prog_OTOOL
14971 if test -n "$OTOOL"; then
14972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
14973 printf "%s\n" "$OTOOL" >&6; }
14974 else
14975 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14976 printf "%s\n" "no" >&6; }
14977 fi
14978
14979
14980 fi
14981 if test -z "$ac_cv_prog_OTOOL"; then
14982 ac_ct_OTOOL=$OTOOL
14983 # Extract the first word of "otool", so it can be a program name with args.
14984 set dummy otool; ac_word=$2
14985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14986 printf %s "checking for $ac_word... " >&6; }
14987 if test ${ac_cv_prog_ac_ct_OTOOL+y}
14988 then :
14989 printf %s "(cached) " >&6
14990 else case e in #(
14991 e) if test -n "$ac_ct_OTOOL"; then
14992 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
14993 else
14994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14995 for as_dir in $PATH
14996 do
14997 IFS=$as_save_IFS
14998 case $as_dir in #(((
14999 '') as_dir=./ ;;
15000 */) ;;
15001 *) as_dir=$as_dir/ ;;
15002 esac
15003 for ac_exec_ext in '' $ac_executable_extensions; do
15004 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
15005 ac_cv_prog_ac_ct_OTOOL="otool"
15006 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
15007 break 2
15008 fi
15009 done
15010 done
15011 IFS=$as_save_IFS
15012
15013 fi ;;
15014 esac
15015 fi
15016 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
15017 if test -n "$ac_ct_OTOOL"; then
15018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
15019 printf "%s\n" "$ac_ct_OTOOL" >&6; }
15020 else
15021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15022 printf "%s\n" "no" >&6; }
15023 fi
15024
15025 if test "x$ac_ct_OTOOL" = x; then
15026 OTOOL=":"
15027 else
15028 case $cross_compiling:$ac_tool_warned in
15029 yes:)
15030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15031 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15032 ac_tool_warned=yes ;;
15033 esac
15034 OTOOL=$ac_ct_OTOOL
15035 fi
15036 else
15037 OTOOL="$ac_cv_prog_OTOOL"
15038 fi
15039
15040 if test -n "$ac_tool_prefix"; then
15041 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
15042 set dummy ${ac_tool_prefix}otool64; ac_word=$2
15043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15044 printf %s "checking for $ac_word... " >&6; }
15045 if test ${ac_cv_prog_OTOOL64+y}
15046 then :
15047 printf %s "(cached) " >&6
15048 else case e in #(
15049 e) if test -n "$OTOOL64"; then
15050 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
15051 else
15052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15053 for as_dir in $PATH
15054 do
15055 IFS=$as_save_IFS
15056 case $as_dir in #(((
15057 '') as_dir=./ ;;
15058 */) ;;
15059 *) as_dir=$as_dir/ ;;
15060 esac
15061 for ac_exec_ext in '' $ac_executable_extensions; do
15062 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
15063 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
15064 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
15065 break 2
15066 fi
15067 done
15068 done
15069 IFS=$as_save_IFS
15070
15071 fi ;;
15072 esac
15073 fi
15074 OTOOL64=$ac_cv_prog_OTOOL64
15075 if test -n "$OTOOL64"; then
15076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
15077 printf "%s\n" "$OTOOL64" >&6; }
15078 else
15079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15080 printf "%s\n" "no" >&6; }
15081 fi
15082
15083
15084 fi
15085 if test -z "$ac_cv_prog_OTOOL64"; then
15086 ac_ct_OTOOL64=$OTOOL64
15087 # Extract the first word of "otool64", so it can be a program name with args.
15088 set dummy otool64; ac_word=$2
15089 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15090 printf %s "checking for $ac_word... " >&6; }
15091 if test ${ac_cv_prog_ac_ct_OTOOL64+y}
15092 then :
15093 printf %s "(cached) " >&6
15094 else case e in #(
15095 e) if test -n "$ac_ct_OTOOL64"; then
15096 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
15097 else
15098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15099 for as_dir in $PATH
15100 do
15101 IFS=$as_save_IFS
15102 case $as_dir in #(((
15103 '') as_dir=./ ;;
15104 */) ;;
15105 *) as_dir=$as_dir/ ;;
15106 esac
15107 for ac_exec_ext in '' $ac_executable_extensions; do
15108 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
15109 ac_cv_prog_ac_ct_OTOOL64="otool64"
15110 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
15111 break 2
15112 fi
15113 done
15114 done
15115 IFS=$as_save_IFS
15116
15117 fi ;;
15118 esac
15119 fi
15120 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
15121 if test -n "$ac_ct_OTOOL64"; then
15122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
15123 printf "%s\n" "$ac_ct_OTOOL64" >&6; }
15124 else
15125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15126 printf "%s\n" "no" >&6; }
15127 fi
15128
15129 if test "x$ac_ct_OTOOL64" = x; then
15130 OTOOL64=":"
15131 else
15132 case $cross_compiling:$ac_tool_warned in
15133 yes:)
15134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15135 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15136 ac_tool_warned=yes ;;
15137 esac
15138 OTOOL64=$ac_ct_OTOOL64
15139 fi
15140 else
15141 OTOOL64="$ac_cv_prog_OTOOL64"
15142 fi
15143
15144
15145
15146
15147
15148
15149
15150
15151
15152
15153
15154
15155
15156
15157
15158
15159
15160
15161
15162
15163
15164
15165
15166
15167
15168
15169
15170 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
15171 printf %s "checking for -single_module linker flag... " >&6; }
15172 if test ${lt_cv_apple_cc_single_mod+y}
15173 then :
15174 printf %s "(cached) " >&6
15175 else case e in #(
15176 e) lt_cv_apple_cc_single_mod=no
15177 if test -z "$LT_MULTI_MODULE"; then
15178 # By default we will add the -single_module flag. You can override
15179 # by either setting the environment variable LT_MULTI_MODULE
15180 # non-empty at configure time, or by adding -multi_module to the
15181 # link flags.
15182 rm -rf libconftest.dylib*
15183 echo "int foo(void){return 1;}" > conftest.c
15184 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
15185 -dynamiclib -Wl,-single_module conftest.c" >&5
15186 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
15187 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
15188 _lt_result=$?
15189 # If there is a non-empty error log, and "single_module"
15190 # appears in it, assume the flag caused a linker warning
15191 if test -s conftest.err && $GREP single_module conftest.err; then
15192 cat conftest.err >&5
15193 # Otherwise, if the output was created with a 0 exit code from
15194 # the compiler, it worked.
15195 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
15196 lt_cv_apple_cc_single_mod=yes
15197 else
15198 cat conftest.err >&5
15199 fi
15200 rm -rf libconftest.dylib*
15201 rm -f conftest.*
15202 fi ;;
15203 esac
15204 fi
15205 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
15206 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
15207
15208 # Feature test to disable chained fixups since it is not
15209 # compatible with '-undefined dynamic_lookup'
15210 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -no_fixup_chains linker flag" >&5
15211 printf %s "checking for -no_fixup_chains linker flag... " >&6; }
15212 if test ${lt_cv_support_no_fixup_chains+y}
15213 then :
15214 printf %s "(cached) " >&6
15215 else case e in #(
15216 e) save_LDFLAGS=$LDFLAGS
15217 LDFLAGS="$LDFLAGS -Wl,-no_fixup_chains"
15218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15219 /* end confdefs.h. */
15220
15221 int
15222 main (void)
15223 {
15224
15225 ;
15226 return 0;
15227 }
15228 _ACEOF
15229 if ac_fn_c_try_link "$LINENO"
15230 then :
15231 lt_cv_support_no_fixup_chains=yes
15232 else case e in #(
15233 e) lt_cv_support_no_fixup_chains=no
15234 ;;
15235 esac
15236 fi
15237 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15238 conftest$ac_exeext conftest.$ac_ext
15239 LDFLAGS=$save_LDFLAGS
15240
15241 ;;
15242 esac
15243 fi
15244 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_support_no_fixup_chains" >&5
15245 printf "%s\n" "$lt_cv_support_no_fixup_chains" >&6; }
15246
15247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
15248 printf %s "checking for -exported_symbols_list linker flag... " >&6; }
15249 if test ${lt_cv_ld_exported_symbols_list+y}
15250 then :
15251 printf %s "(cached) " >&6
15252 else case e in #(
15253 e) lt_cv_ld_exported_symbols_list=no
15254 save_LDFLAGS=$LDFLAGS
15255 echo "_main" > conftest.sym
15256 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
15257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15258 /* end confdefs.h. */
15259
15260 int
15261 main (void)
15262 {
15263
15264 ;
15265 return 0;
15266 }
15267 _ACEOF
15268 if ac_fn_c_try_link "$LINENO"
15269 then :
15270 lt_cv_ld_exported_symbols_list=yes
15271 else case e in #(
15272 e) lt_cv_ld_exported_symbols_list=no ;;
15273 esac
15274 fi
15275 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15276 conftest$ac_exeext conftest.$ac_ext
15277 LDFLAGS=$save_LDFLAGS
15278 ;;
15279 esac
15280 fi
15281 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
15282 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
15283
15284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
15285 printf %s "checking for -force_load linker flag... " >&6; }
15286 if test ${lt_cv_ld_force_load+y}
15287 then :
15288 printf %s "(cached) " >&6
15289 else case e in #(
15290 e) lt_cv_ld_force_load=no
15291 cat > conftest.c << _LT_EOF
15292 int forced_loaded() { return 2;}
15293 _LT_EOF
15294 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
15295 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
15296 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
15297 $AR $AR_FLAGS libconftest.a conftest.o 2>&5
15298 echo "$RANLIB libconftest.a" >&5
15299 $RANLIB libconftest.a 2>&5
15300 cat > conftest.c << _LT_EOF
15301 int main(void) { return 0;}
15302 _LT_EOF
15303 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
15304 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
15305 _lt_result=$?
15306 if test -s conftest.err && $GREP force_load conftest.err; then
15307 cat conftest.err >&5
15308 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
15309 lt_cv_ld_force_load=yes
15310 else
15311 cat conftest.err >&5
15312 fi
15313 rm -f conftest.err libconftest.a conftest conftest.c
15314 rm -rf conftest.dSYM
15315 ;;
15316 esac
15317 fi
15318 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
15319 printf "%s\n" "$lt_cv_ld_force_load" >&6; }
15320 case $host_os in
15321 rhapsody* | darwin1.[012])
15322 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
15323 darwin1.*)
15324 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
15325 darwin*)
15326 case $MACOSX_DEPLOYMENT_TARGET,$host in
15327 10.[012],*|,*powerpc*-darwin[5-8]*)
15328 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
15329 *)
15330 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup'
15331 if test yes = "$lt_cv_support_no_fixup_chains"; then
15332 as_fn_append _lt_dar_allow_undefined ' $wl-no_fixup_chains'
15333 fi
15334 ;;
15335 esac
15336 ;;
15337 esac
15338 if test yes = "$lt_cv_apple_cc_single_mod"; then
15339 _lt_dar_single_mod='$single_module'
15340 fi
15341 if test yes = "$lt_cv_ld_exported_symbols_list"; then
15342 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
15343 else
15344 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
15345 fi
15346 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
15347 _lt_dsymutil='~$DSYMUTIL $lib || :'
15348 else
15349 _lt_dsymutil=
15350 fi
15351 ;;
15352 esac
15353
15354 # func_munge_path_list VARIABLE PATH
15355 # -----------------------------------
15356 # VARIABLE is name of variable containing _space_ separated list of
15357 # directories to be munged by the contents of PATH, which is string
15358 # having a format:
15359 # "DIR[:DIR]:"
15360 # string "DIR[ DIR]" will be prepended to VARIABLE
15361 # ":DIR[:DIR]"
15362 # string "DIR[ DIR]" will be appended to VARIABLE
15363 # "DIRP[:DIRP]::[DIRA:]DIRA"
15364 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
15365 # "DIRA[ DIRA]" will be appended to VARIABLE
15366 # "DIR[:DIR]"
15367 # VARIABLE will be replaced by "DIR[ DIR]"
15368 func_munge_path_list ()
15369 {
15370 case x$2 in
15371 x)
15372 ;;
15373 *:)
15374 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
15375 ;;
15376 x:*)
15377 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
15378 ;;
15379 *::*)
15380 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
15381 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
15382 ;;
15383 *)
15384 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
15385 ;;
15386 esac
15387 }
15388
15389 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
15390 "
15391 if test "x$ac_cv_header_dlfcn_h" = xyes
15392 then :
15393 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
15394
15395 fi
15396
15397
15398
15399
15400
15401 # Set options
15402 # Check whether --enable-static was given.
15403 if test ${enable_static+y}
15404 then :
15405 enableval=$enable_static; p=${PACKAGE-default}
15406 case $enableval in
15407 yes) enable_static=yes ;;
15408 no) enable_static=no ;;
15409 *)
15410 enable_static=no
15411 # Look at the argument we got. We use all the common list separators.
15412 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
15413 for pkg in $enableval; do
15414 IFS=$lt_save_ifs
15415 if test "X$pkg" = "X$p"; then
15416 enable_static=yes
15417 fi
15418 done
15419 IFS=$lt_save_ifs
15420 ;;
15421 esac
15422 else case e in #(
15423 e) enable_static=no ;;
15424 esac
15425 fi
15426
15427
15428
15429
15430
15431
15432
15433
15434
15435
15436 enable_dlopen=no
15437
15438
15439 enable_win32_dll=no
15440
15441
15442 # Check whether --enable-shared was given.
15443 if test ${enable_shared+y}
15444 then :
15445 enableval=$enable_shared; p=${PACKAGE-default}
15446 case $enableval in
15447 yes) enable_shared=yes ;;
15448 no) enable_shared=no ;;
15449 *)
15450 enable_shared=no
15451 # Look at the argument we got. We use all the common list separators.
15452 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
15453 for pkg in $enableval; do
15454 IFS=$lt_save_ifs
15455 if test "X$pkg" = "X$p"; then
15456 enable_shared=yes
15457 fi
15458 done
15459 IFS=$lt_save_ifs
15460 ;;
15461 esac
15462 else case e in #(
15463 e) enable_shared=yes ;;
15464 esac
15465 fi
15466
15467
15468
15469
15470
15471
15472
15473
15474
15475
15476 # Check whether --enable-pic was given.
15477 if test ${enable_pic+y}
15478 then :
15479 enableval=$enable_pic; lt_p=${PACKAGE-default}
15480 case $enableval in
15481 yes|no) pic_mode=$enableval ;;
15482 *)
15483 pic_mode=default
15484 # Look at the argument we got. We use all the common list separators.
15485 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
15486 for lt_pkg in $enableval; do
15487 IFS=$lt_save_ifs
15488 if test "X$lt_pkg" = "X$lt_p"; then
15489 pic_mode=yes
15490 fi
15491 done
15492 IFS=$lt_save_ifs
15493 ;;
15494 esac
15495 else case e in #(
15496 e) # Check whether --with-pic was given.
15497 if test ${with_pic+y}
15498 then :
15499 withval=$with_pic; lt_p=${PACKAGE-default}
15500 case $withval in
15501 yes|no) pic_mode=$withval ;;
15502 *)
15503 pic_mode=default
15504 # Look at the argument we got. We use all the common list separators.
15505 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
15506 for lt_pkg in $withval; do
15507 IFS=$lt_save_ifs
15508 if test "X$lt_pkg" = "X$lt_p"; then
15509 pic_mode=yes
15510 fi
15511 done
15512 IFS=$lt_save_ifs
15513 ;;
15514 esac
15515 else case e in #(
15516 e) pic_mode=default ;;
15517 esac
15518 fi
15519
15520 ;;
15521 esac
15522 fi
15523
15524
15525
15526
15527
15528
15529
15530
15531 # Check whether --enable-fast-install was given.
15532 if test ${enable_fast_install+y}
15533 then :
15534 enableval=$enable_fast_install; p=${PACKAGE-default}
15535 case $enableval in
15536 yes) enable_fast_install=yes ;;
15537 no) enable_fast_install=no ;;
15538 *)
15539 enable_fast_install=no
15540 # Look at the argument we got. We use all the common list separators.
15541 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
15542 for pkg in $enableval; do
15543 IFS=$lt_save_ifs
15544 if test "X$pkg" = "X$p"; then
15545 enable_fast_install=yes
15546 fi
15547 done
15548 IFS=$lt_save_ifs
15549 ;;
15550 esac
15551 else case e in #(
15552 e) enable_fast_install=yes ;;
15553 esac
15554 fi
15555
15556
15557
15558
15559
15560
15561
15562
15563 shared_archive_member_spec=
15564 case $host,$enable_shared in
15565 power*-*-aix[5-9]*,yes)
15566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
15567 printf %s "checking which variant of shared library versioning to provide... " >&6; }
15568 # Check whether --enable-aix-soname was given.
15569 if test ${enable_aix_soname+y}
15570 then :
15571 enableval=$enable_aix_soname; case $enableval in
15572 aix|svr4|both)
15573 ;;
15574 *)
15575 as_fn_error $? "Unknown argument to --enable-aix-soname" "$LINENO" 5
15576 ;;
15577 esac
15578 lt_cv_with_aix_soname=$enable_aix_soname
15579 else case e in #(
15580 e) # Check whether --with-aix-soname was given.
15581 if test ${with_aix_soname+y}
15582 then :
15583 withval=$with_aix_soname; case $withval in
15584 aix|svr4|both)
15585 ;;
15586 *)
15587 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
15588 ;;
15589 esac
15590 lt_cv_with_aix_soname=$with_aix_soname
15591 else case e in #(
15592 e) if test ${lt_cv_with_aix_soname+y}
15593 then :
15594 printf %s "(cached) " >&6
15595 else case e in #(
15596 e) lt_cv_with_aix_soname=aix ;;
15597 esac
15598 fi
15599 ;;
15600 esac
15601 fi
15602
15603 enable_aix_soname=$lt_cv_with_aix_soname ;;
15604 esac
15605 fi
15606
15607 with_aix_soname=$enable_aix_soname
15608 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
15609 printf "%s\n" "$with_aix_soname" >&6; }
15610 if test aix != "$with_aix_soname"; then
15611 # For the AIX way of multilib, we name the shared archive member
15612 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
15613 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
15614 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
15615 # the AIX toolchain works better with OBJECT_MODE set (default 32).
15616 if test 64 = "${OBJECT_MODE-32}"; then
15617 shared_archive_member_spec=shr_64
15618 else
15619 shared_archive_member_spec=shr
15620 fi
15621 fi
15622 ;;
15623 *)
15624 with_aix_soname=aix
15625 ;;
15626 esac
15627
15628
15629
15630
15631
15632
15633
15634
15635
15636
15637 # This can be used to rebuild libtool when needed
15638 LIBTOOL_DEPS=$ltmain
15639
15640 # Always use our own libtool.
15641 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
15642
15643
15644
15645
15646
15647
15648
15649
15650
15651
15652
15653
15654
15655
15656
15657
15658
15659
15660
15661
15662
15663
15664
15665
15666
15667
15668
15669
15670
15671
15672 test -z "$LN_S" && LN_S="ln -s"
15673
15674
15675
15676
15677
15678
15679
15680
15681
15682
15683
15684
15685
15686
15687 if test -n "${ZSH_VERSION+set}"; then
15688 setopt NO_GLOB_SUBST
15689 fi
15690
15691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
15692 printf %s "checking for objdir... " >&6; }
15693 if test ${lt_cv_objdir+y}
15694 then :
15695 printf %s "(cached) " >&6
15696 else case e in #(
15697 e) rm -f .libs 2>/dev/null
15698 mkdir .libs 2>/dev/null
15699 if test -d .libs; then
15700 lt_cv_objdir=.libs
15701 else
15702 # MS-DOS does not allow filenames that begin with a dot.
15703 lt_cv_objdir=_libs
15704 fi
15705 rmdir .libs 2>/dev/null ;;
15706 esac
15707 fi
15708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
15709 printf "%s\n" "$lt_cv_objdir" >&6; }
15710 objdir=$lt_cv_objdir
15711
15712
15713
15714
15715
15716 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
15717
15718
15719
15720
15721 case $host_os in
15722 aix3*)
15723 # AIX sometimes has problems with the GCC collect2 program. For some
15724 # reason, if we set the COLLECT_NAMES environment variable, the problems
15725 # vanish in a puff of smoke.
15726 if test set != "${COLLECT_NAMES+set}"; then
15727 COLLECT_NAMES=
15728 export COLLECT_NAMES
15729 fi
15730 ;;
15731 esac
15732
15733 # Global variables:
15734 ofile=libtool
15735 can_build_shared=yes
15736
15737 # All known linkers require a '.a' archive for static linking (except MSVC and
15738 # ICC, which need '.lib').
15739 libext=a
15740
15741 with_gnu_ld=$lt_cv_prog_gnu_ld
15742
15743 old_CC=$CC
15744 old_CFLAGS=$CFLAGS
15745
15746 # Set sane defaults for various variables
15747 test -z "$CC" && CC=cc
15748 test -z "$LTCC" && LTCC=$CC
15749 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
15750 test -z "$LD" && LD=ld
15751 test -z "$ac_objext" && ac_objext=o
15752
15753 func_cc_basename $compiler
15754 cc_basename=$func_cc_basename_result
15755
15756
15757 # Only perform the check for file, if the check method requires it
15758 test -z "$MAGIC_CMD" && MAGIC_CMD=file
15759 case $deplibs_check_method in
15760 file_magic*)
15761 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
15762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
15763 printf %s "checking for ${ac_tool_prefix}file... " >&6; }
15764 if test ${lt_cv_path_MAGIC_CMD+y}
15765 then :
15766 printf %s "(cached) " >&6
15767 else case e in #(
15768 e) case $MAGIC_CMD in
15769 [\\/*] | ?:[\\/]*)
15770 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
15771 ;;
15772 *)
15773 lt_save_MAGIC_CMD=$MAGIC_CMD
15774 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
15775 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
15776 for ac_dir in $ac_dummy; do
15777 IFS=$lt_save_ifs
15778 test -z "$ac_dir" && ac_dir=.
15779 if test -f "$ac_dir/${ac_tool_prefix}file"; then
15780 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
15781 if test -n "$file_magic_test_file"; then
15782 case $deplibs_check_method in
15783 "file_magic "*)
15784 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
15785 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
15786 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15787 $EGREP "$file_magic_regex" > /dev/null; then
15788 :
15789 else
15790 cat <<_LT_EOF 1>&2
15791
15792 *** Warning: the command libtool uses to detect shared libraries,
15793 *** $file_magic_cmd, produces output that libtool cannot recognize.
15794 *** The result is that libtool may fail to recognize shared libraries
15795 *** as such. This will affect the creation of libtool libraries that
15796 *** depend on shared libraries, but programs linked with such libtool
15797 *** libraries will work regardless of this problem. Nevertheless, you
15798 *** may want to report the problem to your system manager and/or to
15799 *** bug-libtool@gnu.org
15800
15801 _LT_EOF
15802 fi ;;
15803 esac
15804 fi
15805 break
15806 fi
15807 done
15808 IFS=$lt_save_ifs
15809 MAGIC_CMD=$lt_save_MAGIC_CMD
15810 ;;
15811 esac ;;
15812 esac
15813 fi
15814
15815 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
15816 if test -n "$MAGIC_CMD"; then
15817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
15818 printf "%s\n" "$MAGIC_CMD" >&6; }
15819 else
15820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15821 printf "%s\n" "no" >&6; }
15822 fi
15823
15824
15825
15826
15827
15828 if test -z "$lt_cv_path_MAGIC_CMD"; then
15829 if test -n "$ac_tool_prefix"; then
15830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
15831 printf %s "checking for file... " >&6; }
15832 if test ${lt_cv_path_MAGIC_CMD+y}
15833 then :
15834 printf %s "(cached) " >&6
15835 else case e in #(
15836 e) case $MAGIC_CMD in
15837 [\\/*] | ?:[\\/]*)
15838 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
15839 ;;
15840 *)
15841 lt_save_MAGIC_CMD=$MAGIC_CMD
15842 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
15843 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
15844 for ac_dir in $ac_dummy; do
15845 IFS=$lt_save_ifs
15846 test -z "$ac_dir" && ac_dir=.
15847 if test -f "$ac_dir/file"; then
15848 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
15849 if test -n "$file_magic_test_file"; then
15850 case $deplibs_check_method in
15851 "file_magic "*)
15852 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
15853 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
15854 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15855 $EGREP "$file_magic_regex" > /dev/null; then
15856 :
15857 else
15858 cat <<_LT_EOF 1>&2
15859
15860 *** Warning: the command libtool uses to detect shared libraries,
15861 *** $file_magic_cmd, produces output that libtool cannot recognize.
15862 *** The result is that libtool may fail to recognize shared libraries
15863 *** as such. This will affect the creation of libtool libraries that
15864 *** depend on shared libraries, but programs linked with such libtool
15865 *** libraries will work regardless of this problem. Nevertheless, you
15866 *** may want to report the problem to your system manager and/or to
15867 *** bug-libtool@gnu.org
15868
15869 _LT_EOF
15870 fi ;;
15871 esac
15872 fi
15873 break
15874 fi
15875 done
15876 IFS=$lt_save_ifs
15877 MAGIC_CMD=$lt_save_MAGIC_CMD
15878 ;;
15879 esac ;;
15880 esac
15881 fi
15882
15883 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
15884 if test -n "$MAGIC_CMD"; then
15885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
15886 printf "%s\n" "$MAGIC_CMD" >&6; }
15887 else
15888 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15889 printf "%s\n" "no" >&6; }
15890 fi
15891
15892
15893 else
15894 MAGIC_CMD=:
15895 fi
15896 fi
15897
15898 fi
15899 ;;
15900 esac
15901
15902 # Use C for the default configuration in the libtool script
15903
15904 lt_save_CC=$CC
15905 ac_ext=c
15906 ac_cpp='$CPP $CPPFLAGS'
15907 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15908 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15909 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15910
15911
15912 # Source file extension for C test sources.
15913 ac_ext=c
15914
15915 # Object file extension for compiled C test sources.
15916 objext=o
15917 objext=$objext
15918
15919 # Code to be used in simple compile tests
15920 lt_simple_compile_test_code="int some_variable = 0;"
15921
15922 # Code to be used in simple link tests
15923 lt_simple_link_test_code='int main(void){return(0);}'
15924
15925
15926
15927
15928
15929
15930
15931 # If no C compiler was specified, use CC.
15932 LTCC=${LTCC-"$CC"}
15933
15934 # If no C compiler flags were specified, use CFLAGS.
15935 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15936
15937 # Allow CC to be a program name with arguments.
15938 compiler=$CC
15939
15940 # Save the default compiler, since it gets overwritten when the other
15941 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
15942 compiler_DEFAULT=$CC
15943
15944 # save warnings/boilerplate of simple test code
15945 ac_outfile=conftest.$ac_objext
15946 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15947 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15948 _lt_compiler_boilerplate=`cat conftest.err`
15949 $RM conftest*
15950
15951 ac_outfile=conftest.$ac_objext
15952 echo "$lt_simple_link_test_code" >conftest.$ac_ext
15953 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15954 _lt_linker_boilerplate=`cat conftest.err`
15955 $RM -r conftest*
15956
15957
15958 if test -n "$compiler"; then
15959
15960 lt_prog_compiler_no_builtin_flag=
15961
15962 if test yes = "$GCC"; then
15963 case $cc_basename in
15964 nvcc*)
15965 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
15966 *)
15967 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
15968 esac
15969
15970 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15971 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
15972 if test ${lt_cv_prog_compiler_rtti_exceptions+y}
15973 then :
15974 printf %s "(cached) " >&6
15975 else case e in #(
15976 e) lt_cv_prog_compiler_rtti_exceptions=no
15977 ac_outfile=conftest.$ac_objext
15978 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15979 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
15980 # Insert the option either (1) after the last *FLAGS variable, or
15981 # (2) before a word containing "conftest.", or (3) at the end.
15982 # Note that $ac_compile itself does not contain backslashes and begins
15983 # with a dollar sign (not a hyphen), so the echo should work correctly.
15984 # The option is referenced via a variable to avoid confusing sed.
15985 lt_compile=`echo "$ac_compile" | $SED \
15986 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15987 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15988 -e 's:$: $lt_compiler_flag:'`
15989 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15990 (eval "$lt_compile" 2>conftest.err)
15991 ac_status=$?
15992 cat conftest.err >&5
15993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15994 if (exit $ac_status) && test -s "$ac_outfile"; then
15995 # The compiler can only warn and ignore the option if not recognized
15996 # So say no if there are warnings other than the usual output.
15997 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15998 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15999 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16000 lt_cv_prog_compiler_rtti_exceptions=yes
16001 fi
16002 fi
16003 $RM conftest*
16004 ;;
16005 esac
16006 fi
16007 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16008 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16009
16010 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
16011 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
16012 else
16013 :
16014 fi
16015
16016 fi
16017
16018
16019
16020
16021
16022
16023 lt_prog_compiler_wl=
16024 lt_prog_compiler_pic=
16025 lt_prog_compiler_static=
16026
16027
16028 if test yes = "$GCC"; then
16029 lt_prog_compiler_wl='-Wl,'
16030 lt_prog_compiler_static='-static'
16031
16032 case $host_os in
16033 aix*)
16034 # All AIX code is PIC.
16035 if test ia64 = "$host_cpu"; then
16036 # AIX 5 now supports IA64 processor
16037 lt_prog_compiler_static='-Bstatic'
16038 fi
16039 lt_prog_compiler_pic='-fPIC'
16040 ;;
16041
16042 amigaos*)
16043 case $host_cpu in
16044 powerpc)
16045 # see comment about AmigaOS4 .so support
16046 lt_prog_compiler_pic='-fPIC'
16047 ;;
16048 m68k)
16049 # FIXME: we need at least 68020 code to build shared libraries, but
16050 # adding the '-m68020' flag to GCC prevents building anything better,
16051 # like '-m68040'.
16052 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
16053 ;;
16054 esac
16055 ;;
16056
16057 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16058 # PIC is the default for these OSes.
16059 ;;
16060
16061 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
16062 # This hack is so that the source file can tell whether it is being
16063 # built for inclusion in a dll (and should export symbols for example).
16064 # Although the cygwin gcc ignores -fPIC, still need this for old-style
16065 # (--disable-auto-import) libraries
16066 lt_prog_compiler_pic='-DDLL_EXPORT'
16067 case $host_os in
16068 os2*)
16069 lt_prog_compiler_static='$wl-static'
16070 ;;
16071 esac
16072 ;;
16073
16074 darwin* | rhapsody*)
16075 # PIC is the default on this platform
16076 # Common symbols not allowed in MH_DYLIB files
16077 lt_prog_compiler_pic='-fno-common'
16078 ;;
16079
16080 haiku*)
16081 # PIC is the default for Haiku.
16082 # The "-static" flag exists, but is broken.
16083 lt_prog_compiler_static=
16084 ;;
16085
16086 hpux*)
16087 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
16088 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
16089 # sets the default TLS model and affects inlining.
16090 case $host_cpu in
16091 hppa*64*)
16092 # +Z the default
16093 ;;
16094 *)
16095 lt_prog_compiler_pic='-fPIC'
16096 ;;
16097 esac
16098 ;;
16099
16100 interix[3-9]*)
16101 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16102 # Instead, we relocate shared libraries at runtime.
16103 ;;
16104
16105 msdosdjgpp*)
16106 # Just because we use GCC doesn't mean we suddenly get shared libraries
16107 # on systems that don't support them.
16108 lt_prog_compiler_can_build_shared=no
16109 enable_shared=no
16110 ;;
16111
16112 *nto* | *qnx*)
16113 # QNX uses GNU C++, but need to define -shared option too, otherwise
16114 # it will coredump.
16115 lt_prog_compiler_pic='-fPIC -shared'
16116 ;;
16117
16118 sysv4*MP*)
16119 if test -d /usr/nec; then
16120 lt_prog_compiler_pic=-Kconform_pic
16121 fi
16122 ;;
16123
16124 *)
16125 lt_prog_compiler_pic='-fPIC'
16126 ;;
16127 esac
16128
16129 case $cc_basename in
16130 nvcc*) # Cuda Compiler Driver 2.2
16131 lt_prog_compiler_wl='-Xlinker '
16132 if test -n "$lt_prog_compiler_pic"; then
16133 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
16134 fi
16135 ;;
16136 esac
16137 else
16138 # PORTME Check for flag to pass linker flags through the system compiler.
16139 case $host_os in
16140 aix*)
16141 lt_prog_compiler_wl='-Wl,'
16142 if test ia64 = "$host_cpu"; then
16143 # AIX 5 now supports IA64 processor
16144 lt_prog_compiler_static='-Bstatic'
16145 else
16146 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
16147 fi
16148 ;;
16149
16150 darwin* | rhapsody*)
16151 # PIC is the default on this platform
16152 # Common symbols not allowed in MH_DYLIB files
16153 lt_prog_compiler_pic='-fno-common'
16154 case $cc_basename in
16155 nagfor*)
16156 # NAG Fortran compiler
16157 lt_prog_compiler_wl='-Wl,-Wl,,'
16158 lt_prog_compiler_pic='-PIC'
16159 lt_prog_compiler_static='-Bstatic'
16160 ;;
16161 esac
16162 ;;
16163
16164 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
16165 # This hack is so that the source file can tell whether it is being
16166 # built for inclusion in a dll (and should export symbols for example).
16167 lt_prog_compiler_pic='-DDLL_EXPORT'
16168 case $host_os in
16169 os2*)
16170 lt_prog_compiler_static='$wl-static'
16171 ;;
16172 esac
16173 ;;
16174
16175 hpux9* | hpux10* | hpux11*)
16176 lt_prog_compiler_wl='-Wl,'
16177 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16178 # not for PA HP-UX.
16179 case $host_cpu in
16180 hppa*64*|ia64*)
16181 # +Z the default
16182 ;;
16183 *)
16184 lt_prog_compiler_pic='+Z'
16185 ;;
16186 esac
16187 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16188 lt_prog_compiler_static='$wl-a ${wl}archive'
16189 ;;
16190
16191 irix5* | irix6* | nonstopux*)
16192 lt_prog_compiler_wl='-Wl,'
16193 # PIC (with -KPIC) is the default.
16194 lt_prog_compiler_static='-non_shared'
16195 ;;
16196
16197 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
16198 case $cc_basename in
16199 # old Intel for x86_64, which still supported -KPIC.
16200 ecc*)
16201 lt_prog_compiler_wl='-Wl,'
16202 lt_prog_compiler_pic='-KPIC'
16203 lt_prog_compiler_static='-static'
16204 ;;
16205 *flang* | ftn)
16206 # Flang compiler.
16207 lt_prog_compiler_wl='-Wl,'
16208 lt_prog_compiler_pic='-fPIC'
16209 lt_prog_compiler_static='-static'
16210 ;;
16211 # icc used to be incompatible with GCC.
16212 # ICC 10 doesn't accept -KPIC any more.
16213 icc* | ifort*)
16214 lt_prog_compiler_wl='-Wl,'
16215 lt_prog_compiler_pic='-fPIC'
16216 lt_prog_compiler_static='-static'
16217 ;;
16218 # Lahey Fortran 8.1.
16219 lf95*)
16220 lt_prog_compiler_wl='-Wl,'
16221 lt_prog_compiler_pic='--shared'
16222 lt_prog_compiler_static='--static'
16223 ;;
16224 nagfor*)
16225 # NAG Fortran compiler
16226 lt_prog_compiler_wl='-Wl,-Wl,,'
16227 lt_prog_compiler_pic='-PIC'
16228 lt_prog_compiler_static='-Bstatic'
16229 ;;
16230 tcc*)
16231 # Fabrice Bellard et al's Tiny C Compiler
16232 lt_prog_compiler_wl='-Wl,'
16233 lt_prog_compiler_pic='-fPIC'
16234 lt_prog_compiler_static='-static'
16235 ;;
16236 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
16237 # Portland Group compilers (*not* the Pentium gcc compiler,
16238 # which looks to be a dead project)
16239 lt_prog_compiler_wl='-Wl,'
16240 lt_prog_compiler_pic='-fpic'
16241 lt_prog_compiler_static='-Bstatic'
16242 ;;
16243 ccc*)
16244 lt_prog_compiler_wl='-Wl,'
16245 # All Alpha code is PIC.
16246 lt_prog_compiler_static='-non_shared'
16247 ;;
16248 xl* | bgxl* | bgf* | mpixl*)
16249 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
16250 lt_prog_compiler_wl='-Wl,'
16251 lt_prog_compiler_pic='-qpic'
16252 lt_prog_compiler_static='-qstaticlink'
16253 ;;
16254 *)
16255 case `$CC -V 2>&1 | $SED 5q` in
16256 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
16257 # Sun Fortran 8.3 passes all unrecognized flags to the linker
16258 lt_prog_compiler_pic='-KPIC'
16259 lt_prog_compiler_static='-Bstatic'
16260 lt_prog_compiler_wl=''
16261 ;;
16262 *Sun\ F* | *Sun*Fortran*)
16263 lt_prog_compiler_pic='-KPIC'
16264 lt_prog_compiler_static='-Bstatic'
16265 lt_prog_compiler_wl='-Qoption ld '
16266 ;;
16267 *Sun\ C*)
16268 # Sun C 5.9
16269 lt_prog_compiler_pic='-KPIC'
16270 lt_prog_compiler_static='-Bstatic'
16271 lt_prog_compiler_wl='-Wl,'
16272 ;;
16273 *Intel*\ [CF]*Compiler*)
16274 lt_prog_compiler_wl='-Wl,'
16275 lt_prog_compiler_pic='-fPIC'
16276 lt_prog_compiler_static='-static'
16277 ;;
16278 *Portland\ Group*)
16279 lt_prog_compiler_wl='-Wl,'
16280 lt_prog_compiler_pic='-fpic'
16281 lt_prog_compiler_static='-Bstatic'
16282 ;;
16283 esac
16284 ;;
16285 esac
16286 ;;
16287
16288 newsos6)
16289 lt_prog_compiler_pic='-KPIC'
16290 lt_prog_compiler_static='-Bstatic'
16291 ;;
16292
16293 *nto* | *qnx*)
16294 # QNX uses GNU C++, but need to define -shared option too, otherwise
16295 # it will coredump.
16296 lt_prog_compiler_pic='-fPIC -shared'
16297 ;;
16298
16299 osf3* | osf4* | osf5*)
16300 lt_prog_compiler_wl='-Wl,'
16301 # All OSF/1 code is PIC.
16302 lt_prog_compiler_static='-non_shared'
16303 ;;
16304
16305 rdos*)
16306 lt_prog_compiler_static='-non_shared'
16307 ;;
16308
16309 solaris*)
16310 lt_prog_compiler_pic='-KPIC'
16311 lt_prog_compiler_static='-Bstatic'
16312 case $cc_basename in
16313 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
16314 lt_prog_compiler_wl='-Qoption ld ';;
16315 *)
16316 lt_prog_compiler_wl='-Wl,';;
16317 esac
16318 ;;
16319
16320 sunos4*)
16321 lt_prog_compiler_wl='-Qoption ld '
16322 lt_prog_compiler_pic='-PIC'
16323 lt_prog_compiler_static='-Bstatic'
16324 ;;
16325
16326 sysv4 | sysv4.2uw2* | sysv4.3*)
16327 lt_prog_compiler_wl='-Wl,'
16328 lt_prog_compiler_pic='-KPIC'
16329 lt_prog_compiler_static='-Bstatic'
16330 ;;
16331
16332 sysv4*MP*)
16333 if test -d /usr/nec; then
16334 lt_prog_compiler_pic='-Kconform_pic'
16335 lt_prog_compiler_static='-Bstatic'
16336 fi
16337 ;;
16338
16339 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16340 lt_prog_compiler_wl='-Wl,'
16341 lt_prog_compiler_pic='-KPIC'
16342 lt_prog_compiler_static='-Bstatic'
16343 ;;
16344
16345 unicos*)
16346 lt_prog_compiler_wl='-Wl,'
16347 lt_prog_compiler_can_build_shared=no
16348 ;;
16349
16350 uts4*)
16351 lt_prog_compiler_pic='-pic'
16352 lt_prog_compiler_static='-Bstatic'
16353 ;;
16354
16355 *)
16356 lt_prog_compiler_can_build_shared=no
16357 ;;
16358 esac
16359 fi
16360
16361 case $host_os in
16362 # For platforms that do not support PIC, -DPIC is meaningless:
16363 *djgpp*)
16364 lt_prog_compiler_pic=
16365 ;;
16366 *)
16367 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
16368 ;;
16369 esac
16370
16371 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
16372 printf %s "checking for $compiler option to produce PIC... " >&6; }
16373 if test ${lt_cv_prog_compiler_pic+y}
16374 then :
16375 printf %s "(cached) " >&6
16376 else case e in #(
16377 e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;;
16378 esac
16379 fi
16380 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
16381 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
16382 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
16383
16384 #
16385 # Check to make sure the PIC flag actually works.
16386 #
16387 if test -n "$lt_prog_compiler_pic"; then
16388 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
16389 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
16390 if test ${lt_cv_prog_compiler_pic_works+y}
16391 then :
16392 printf %s "(cached) " >&6
16393 else case e in #(
16394 e) lt_cv_prog_compiler_pic_works=no
16395 ac_outfile=conftest.$ac_objext
16396 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16397 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
16398 # Insert the option either (1) after the last *FLAGS variable, or
16399 # (2) before a word containing "conftest.", or (3) at the end.
16400 # Note that $ac_compile itself does not contain backslashes and begins
16401 # with a dollar sign (not a hyphen), so the echo should work correctly.
16402 # The option is referenced via a variable to avoid confusing sed.
16403 lt_compile=`echo "$ac_compile" | $SED \
16404 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16405 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16406 -e 's:$: $lt_compiler_flag:'`
16407 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16408 (eval "$lt_compile" 2>conftest.err)
16409 ac_status=$?
16410 cat conftest.err >&5
16411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16412 if (exit $ac_status) && test -s "$ac_outfile"; then
16413 # The compiler can only warn and ignore the option if not recognized
16414 # So say no if there are warnings other than the usual output.
16415 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
16416 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16417 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16418 lt_cv_prog_compiler_pic_works=yes
16419 fi
16420 fi
16421 $RM conftest*
16422 ;;
16423 esac
16424 fi
16425 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
16426 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
16427
16428 if test yes = "$lt_cv_prog_compiler_pic_works"; then
16429 case $lt_prog_compiler_pic in
16430 "" | " "*) ;;
16431 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
16432 esac
16433 else
16434 lt_prog_compiler_pic=
16435 lt_prog_compiler_can_build_shared=no
16436 fi
16437
16438 fi
16439
16440
16441
16442
16443
16444
16445
16446
16447
16448
16449
16450 #
16451 # Check to make sure the static flag actually works.
16452 #
16453 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
16454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16455 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
16456 if test ${lt_cv_prog_compiler_static_works+y}
16457 then :
16458 printf %s "(cached) " >&6
16459 else case e in #(
16460 e) lt_cv_prog_compiler_static_works=no
16461 save_LDFLAGS=$LDFLAGS
16462 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16463 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16464 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16465 # The linker can only warn and ignore the option if not recognized
16466 # So say no if there are warnings
16467 if test -s conftest.err; then
16468 # Append any errors to the config.log.
16469 cat conftest.err 1>&5
16470 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16471 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16472 if diff conftest.exp conftest.er2 >/dev/null; then
16473 lt_cv_prog_compiler_static_works=yes
16474 fi
16475 else
16476 lt_cv_prog_compiler_static_works=yes
16477 fi
16478 fi
16479 $RM -r conftest*
16480 LDFLAGS=$save_LDFLAGS
16481 ;;
16482 esac
16483 fi
16484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
16485 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
16486
16487 if test yes = "$lt_cv_prog_compiler_static_works"; then
16488 :
16489 else
16490 lt_prog_compiler_static=
16491 fi
16492
16493
16494
16495
16496
16497
16498
16499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16500 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16501 if test ${lt_cv_prog_compiler_c_o+y}
16502 then :
16503 printf %s "(cached) " >&6
16504 else case e in #(
16505 e) lt_cv_prog_compiler_c_o=no
16506 $RM -r conftest 2>/dev/null
16507 mkdir conftest
16508 cd conftest
16509 mkdir out
16510 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16511
16512 lt_compiler_flag="-o out/conftest2.$ac_objext"
16513 # Insert the option either (1) after the last *FLAGS variable, or
16514 # (2) before a word containing "conftest.", or (3) at the end.
16515 # Note that $ac_compile itself does not contain backslashes and begins
16516 # with a dollar sign (not a hyphen), so the echo should work correctly.
16517 lt_compile=`echo "$ac_compile" | $SED \
16518 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16519 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16520 -e 's:$: $lt_compiler_flag:'`
16521 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16522 (eval "$lt_compile" 2>out/conftest.err)
16523 ac_status=$?
16524 cat out/conftest.err >&5
16525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16526 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16527 then
16528 # The compiler can only warn and ignore the option if not recognized
16529 # So say no if there are warnings
16530 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16531 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16532 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16533 lt_cv_prog_compiler_c_o=yes
16534 fi
16535 fi
16536 chmod u+w . 2>&5
16537 $RM conftest*
16538 # SGI C++ compiler will create directory out/ii_files/ for
16539 # template instantiation
16540 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16541 $RM out/* && rmdir out
16542 cd ..
16543 $RM -r conftest
16544 $RM conftest*
16545 ;;
16546 esac
16547 fi
16548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
16549 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
16550
16551
16552
16553
16554
16555
16556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16557 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16558 if test ${lt_cv_prog_compiler_c_o+y}
16559 then :
16560 printf %s "(cached) " >&6
16561 else case e in #(
16562 e) lt_cv_prog_compiler_c_o=no
16563 $RM -r conftest 2>/dev/null
16564 mkdir conftest
16565 cd conftest
16566 mkdir out
16567 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16568
16569 lt_compiler_flag="-o out/conftest2.$ac_objext"
16570 # Insert the option either (1) after the last *FLAGS variable, or
16571 # (2) before a word containing "conftest.", or (3) at the end.
16572 # Note that $ac_compile itself does not contain backslashes and begins
16573 # with a dollar sign (not a hyphen), so the echo should work correctly.
16574 lt_compile=`echo "$ac_compile" | $SED \
16575 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16576 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16577 -e 's:$: $lt_compiler_flag:'`
16578 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16579 (eval "$lt_compile" 2>out/conftest.err)
16580 ac_status=$?
16581 cat out/conftest.err >&5
16582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16583 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16584 then
16585 # The compiler can only warn and ignore the option if not recognized
16586 # So say no if there are warnings
16587 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16588 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16589 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16590 lt_cv_prog_compiler_c_o=yes
16591 fi
16592 fi
16593 chmod u+w . 2>&5
16594 $RM conftest*
16595 # SGI C++ compiler will create directory out/ii_files/ for
16596 # template instantiation
16597 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16598 $RM out/* && rmdir out
16599 cd ..
16600 $RM -r conftest
16601 $RM conftest*
16602 ;;
16603 esac
16604 fi
16605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
16606 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
16607
16608
16609
16610
16611 hard_links=nottested
16612 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
16613 # do not overwrite the value of need_locks provided by the user
16614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
16615 printf %s "checking if we can lock with hard links... " >&6; }
16616 hard_links=yes
16617 $RM conftest*
16618 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16619 touch conftest.a
16620 ln conftest.a conftest.b 2>&5 || hard_links=no
16621 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
16623 printf "%s\n" "$hard_links" >&6; }
16624 if test no = "$hard_links"; then
16625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
16626 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
16627 need_locks=warn
16628 fi
16629 else
16630 need_locks=no
16631 fi
16632
16633
16634
16635
16636
16637
16638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16639 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16640
16641 runpath_var=
16642 allow_undefined_flag=
16643 always_export_symbols=no
16644 archive_cmds=
16645 archive_expsym_cmds=
16646 compiler_needs_object=no
16647 enable_shared_with_static_runtimes=no
16648 export_dynamic_flag_spec=
16649 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16650 hardcode_automatic=no
16651 hardcode_direct=no
16652 hardcode_direct_absolute=no
16653 hardcode_libdir_flag_spec=
16654 hardcode_libdir_separator=
16655 hardcode_minus_L=no
16656 hardcode_shlibpath_var=unsupported
16657 inherit_rpath=no
16658 link_all_deplibs=unknown
16659 module_cmds=
16660 module_expsym_cmds=
16661 old_archive_from_new_cmds=
16662 old_archive_from_expsyms_cmds=
16663 thread_safe_flag_spec=
16664 whole_archive_flag_spec=
16665 # include_expsyms should be a list of space-separated symbols to be *always*
16666 # included in the symbol list
16667 include_expsyms=
16668 # exclude_expsyms can be an extended regexp of symbols to exclude
16669 # it will be wrapped by ' (' and ')$', so one must not match beginning or
16670 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
16671 # as well as any symbol that contains 'd'.
16672 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16673 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16674 # platforms (ab)use it in PIC code, but their linkers get confused if
16675 # the symbol is explicitly referenced. Since portable code cannot
16676 # rely on this symbol name, it's probably fine to never include it in
16677 # preloaded symbol tables.
16678 # Exclude shared library initialization/finalization symbols.
16679 extract_expsyms_cmds=
16680
16681 case $host_os in
16682 cygwin* | mingw* | windows* | pw32* | cegcc*)
16683 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
16684 # When not using gcc, we currently assume that we are using
16685 # Microsoft Visual C++ or Intel C++ Compiler.
16686 if test yes != "$GCC"; then
16687 with_gnu_ld=no
16688 fi
16689 ;;
16690 interix*)
16691 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
16692 with_gnu_ld=yes
16693 ;;
16694 openbsd*)
16695 with_gnu_ld=no
16696 ;;
16697 esac
16698
16699 ld_shlibs=yes
16700
16701 # On some targets, GNU ld is compatible enough with the native linker
16702 # that we're better off using the native interface for both.
16703 lt_use_gnu_ld_interface=no
16704 if test yes = "$with_gnu_ld"; then
16705 case $host_os in
16706 aix*)
16707 # The AIX port of GNU ld has always aspired to compatibility
16708 # with the native linker. However, as the warning in the GNU ld
16709 # block says, versions before 2.19.5* couldn't really create working
16710 # shared libraries, regardless of the interface used.
16711 case `$LD -v 2>&1` in
16712 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
16713 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
16714 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
16715 *)
16716 lt_use_gnu_ld_interface=yes
16717 ;;
16718 esac
16719 ;;
16720 *)
16721 lt_use_gnu_ld_interface=yes
16722 ;;
16723 esac
16724 fi
16725
16726 if test yes = "$lt_use_gnu_ld_interface"; then
16727 # If archive_cmds runs LD, not CC, wlarc should be empty
16728 wlarc='$wl'
16729
16730 # Set some defaults for GNU ld with shared library support. These
16731 # are reset later if shared libraries are not supported. Putting them
16732 # here allows them to be overridden if necessary.
16733 runpath_var=LD_RUN_PATH
16734 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
16735 export_dynamic_flag_spec='$wl--export-dynamic'
16736 # ancient GNU ld didn't support --whole-archive et. al.
16737 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
16738 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
16739 else
16740 whole_archive_flag_spec=
16741 fi
16742 supports_anon_versioning=no
16743 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
16744 *GNU\ gold*) supports_anon_versioning=yes ;;
16745 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16746 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16747 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16748 *\ 2.11.*) ;; # other 2.11 versions
16749 *) supports_anon_versioning=yes ;;
16750 esac
16751
16752 # See if GNU ld supports shared libraries.
16753 case $host_os in
16754 aix[3-9]*)
16755 # On AIX/PPC, the GNU linker is very broken
16756 if test ia64 != "$host_cpu"; then
16757 ld_shlibs=no
16758 cat <<_LT_EOF 1>&2
16759
16760 *** Warning: the GNU linker, at least up to release 2.19, is reported
16761 *** to be unable to reliably create shared libraries on AIX.
16762 *** Therefore, libtool is disabling shared libraries support. If you
16763 *** really care for shared libraries, you may want to install binutils
16764 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
16765 *** You will then need to restart the configuration process.
16766
16767 _LT_EOF
16768 fi
16769 ;;
16770
16771 amigaos*)
16772 case $host_cpu in
16773 powerpc)
16774 # see comment about AmigaOS4 .so support
16775 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16776 archive_expsym_cmds=''
16777 ;;
16778 m68k)
16779 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)'
16780 hardcode_libdir_flag_spec='-L$libdir'
16781 hardcode_minus_L=yes
16782 ;;
16783 esac
16784 ;;
16785
16786 beos*)
16787 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16788 allow_undefined_flag=unsupported
16789 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
16790 # support --undefined. This deserves some investigation. FIXME
16791 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16792 else
16793 ld_shlibs=no
16794 fi
16795 ;;
16796
16797 cygwin* | mingw* | windows* | pw32* | cegcc*)
16798 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
16799 # as there is no search path for DLLs.
16800 hardcode_libdir_flag_spec='-L$libdir'
16801 export_dynamic_flag_spec='$wl--export-all-symbols'
16802 allow_undefined_flag=unsupported
16803 always_export_symbols=no
16804 enable_shared_with_static_runtimes=yes
16805 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'
16806 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
16807
16808 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
16809 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16810 # If the export-symbols file already is a .def file, use it as
16811 # is; otherwise, prepend EXPORTS...
16812 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
16813 cp $export_symbols $output_objdir/$soname.def;
16814 else
16815 echo EXPORTS > $output_objdir/$soname.def;
16816 cat $export_symbols >> $output_objdir/$soname.def;
16817 fi~
16818 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16819 else
16820 ld_shlibs=no
16821 fi
16822 ;;
16823
16824 haiku*)
16825 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16826 link_all_deplibs=yes
16827 ;;
16828
16829 os2*)
16830 hardcode_libdir_flag_spec='-L$libdir'
16831 hardcode_minus_L=yes
16832 allow_undefined_flag=unsupported
16833 shrext_cmds=.dll
16834 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
16835 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
16836 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
16837 $ECHO EXPORTS >> $output_objdir/$libname.def~
16838 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
16839 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
16840 emximp -o $lib $output_objdir/$libname.def'
16841 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
16842 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
16843 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
16844 $ECHO EXPORTS >> $output_objdir/$libname.def~
16845 prefix_cmds="$SED"~
16846 if test EXPORTS = "`$SED 1q $export_symbols`"; then
16847 prefix_cmds="$prefix_cmds -e 1d";
16848 fi~
16849 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
16850 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
16851 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
16852 emximp -o $lib $output_objdir/$libname.def'
16853 old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
16854 enable_shared_with_static_runtimes=yes
16855 file_list_spec='@'
16856 ;;
16857
16858 interix[3-9]*)
16859 hardcode_direct=no
16860 hardcode_shlibpath_var=no
16861 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
16862 export_dynamic_flag_spec='$wl-E'
16863 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16864 # Instead, shared libraries are loaded at an image base (0x10000000 by
16865 # default) and relocated if they conflict, which is a slow very memory
16866 # consuming and fragmenting process. To avoid this, we pick a random,
16867 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16868 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16869 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16870 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'
16871 ;;
16872
16873 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
16874 tmp_diet=no
16875 if test linux-dietlibc = "$host_os"; then
16876 case $cc_basename in
16877 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
16878 esac
16879 fi
16880 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
16881 && test no = "$tmp_diet"
16882 then
16883 tmp_addflag=' $pic_flag'
16884 tmp_sharedflag='-shared'
16885 case $cc_basename,$host_cpu in
16886 pgcc*) # Portland Group C compiler
16887 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'
16888 tmp_addflag=' $pic_flag'
16889 ;;
16890 pgf77* | pgf90* | pgf95* | pgfortran*)
16891 # Portland Group f77 and f90 compilers
16892 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'
16893 tmp_addflag=' $pic_flag -Mnomain' ;;
16894 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16895 tmp_addflag=' -i_dynamic' ;;
16896 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16897 tmp_addflag=' -i_dynamic -nofor_main' ;;
16898 ifc* | ifort*) # Intel Fortran compiler
16899 tmp_addflag=' -nofor_main' ;;
16900 lf95*) # Lahey Fortran 8.1
16901 whole_archive_flag_spec=
16902 tmp_sharedflag='--shared' ;;
16903 nagfor*) # NAGFOR 5.3
16904 tmp_sharedflag='-Wl,-shared' ;;
16905 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
16906 tmp_sharedflag='-qmkshrobj'
16907 tmp_addflag= ;;
16908 nvcc*) # Cuda Compiler Driver 2.2
16909 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'
16910 compiler_needs_object=yes
16911 ;;
16912 esac
16913 case `$CC -V 2>&1 | $SED 5q` in
16914 *Sun\ C*) # Sun C 5.9
16915 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'
16916 compiler_needs_object=yes
16917 tmp_sharedflag='-G' ;;
16918 *Sun\ F*) # Sun Fortran 8.3
16919 tmp_sharedflag='-G' ;;
16920 esac
16921 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16922
16923 if test yes = "$supports_anon_versioning"; then
16924 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
16925 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16926 echo "local: *; };" >> $output_objdir/$libname.ver~
16927 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
16928 fi
16929
16930 case $cc_basename in
16931 tcc*)
16932 export_dynamic_flag_spec='-rdynamic'
16933 ;;
16934 xlf* | bgf* | bgxlf* | mpixlf*)
16935 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
16936 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
16937 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
16938 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
16939 if test yes = "$supports_anon_versioning"; then
16940 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
16941 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16942 echo "local: *; };" >> $output_objdir/$libname.ver~
16943 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
16944 fi
16945 ;;
16946 esac
16947 else
16948 ld_shlibs=no
16949 fi
16950 ;;
16951
16952 netbsd*)
16953 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16954 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16955 wlarc=
16956 else
16957 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16958 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
16959 fi
16960 ;;
16961
16962 solaris*)
16963 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
16964 ld_shlibs=no
16965 cat <<_LT_EOF 1>&2
16966
16967 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16968 *** create shared libraries on Solaris systems. Therefore, libtool
16969 *** is disabling shared libraries support. We urge you to upgrade GNU
16970 *** binutils to release 2.9.1 or newer. Another option is to modify
16971 *** your PATH or compiler configuration so that the native linker is
16972 *** used, and then restart.
16973
16974 _LT_EOF
16975 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16976 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16977 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
16978 else
16979 ld_shlibs=no
16980 fi
16981 ;;
16982
16983 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16984 case `$LD -v 2>&1` in
16985 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16986 ld_shlibs=no
16987 cat <<_LT_EOF 1>&2
16988
16989 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
16990 *** reliably create shared libraries on SCO systems. Therefore, libtool
16991 *** is disabling shared libraries support. We urge you to upgrade GNU
16992 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16993 *** your PATH or compiler configuration so that the native linker is
16994 *** used, and then restart.
16995
16996 _LT_EOF
16997 ;;
16998 *)
16999 # For security reasons, it is highly recommended that you always
17000 # use absolute paths for naming shared libraries, and exclude the
17001 # DT_RUNPATH tag from executables and libraries. But doing so
17002 # requires that you compile everything twice, which is a pain.
17003 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17004 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
17005 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
17006 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
17007 else
17008 ld_shlibs=no
17009 fi
17010 ;;
17011 esac
17012 ;;
17013
17014 sunos4*)
17015 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17016 wlarc=
17017 hardcode_direct=yes
17018 hardcode_shlibpath_var=no
17019 ;;
17020
17021 *)
17022 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17023 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
17024 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
17025 else
17026 ld_shlibs=no
17027 fi
17028 ;;
17029 esac
17030
17031 if test no = "$ld_shlibs"; then
17032 runpath_var=
17033 hardcode_libdir_flag_spec=
17034 export_dynamic_flag_spec=
17035 whole_archive_flag_spec=
17036 fi
17037 else
17038 # PORTME fill in a description of your system's linker (not GNU ld)
17039 case $host_os in
17040 aix3*)
17041 allow_undefined_flag=unsupported
17042 always_export_symbols=yes
17043 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'
17044 # Note: this linker hardcodes the directories in LIBPATH if there
17045 # are no directories specified by -L.
17046 hardcode_minus_L=yes
17047 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
17048 # Neither direct hardcoding nor static linking is supported with a
17049 # broken collect2.
17050 hardcode_direct=unsupported
17051 fi
17052 ;;
17053
17054 aix[4-9]*)
17055 if test ia64 = "$host_cpu"; then
17056 # On IA64, the linker does run time linking by default, so we don't
17057 # have to do anything special.
17058 aix_use_runtimelinking=no
17059 exp_sym_flag='-Bexport'
17060 no_entry_flag=
17061 else
17062 # If we're using GNU nm, then we don't want the "-C" option.
17063 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
17064 # Without the "-l" option, or with the "-B" option, AIX nm treats
17065 # weak defined symbols like other global defined symbols, whereas
17066 # GNU nm marks them as "W".
17067 # While the 'weak' keyword is ignored in the Export File, we need
17068 # it in the Import File for the 'aix-soname' feature, so we have
17069 # to replace the "-B" option with "-P" for AIX nm.
17070 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
17071 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
17072 else
17073 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
17074 fi
17075 aix_use_runtimelinking=no
17076
17077 # Test if we are trying to use run time linking or normal
17078 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17079 # have runtime linking enabled, and use it for executables.
17080 # For shared libraries, we enable/disable runtime linking
17081 # depending on the kind of the shared library created -
17082 # when "with_aix_soname,aix_use_runtimelinking" is:
17083 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
17084 # "aix,yes" lib.so shared, rtl:yes, for executables
17085 # lib.a static archive
17086 # "both,no" lib.so.V(shr.o) shared, rtl:yes
17087 # lib.a(lib.so.V) shared, rtl:no, for executables
17088 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
17089 # lib.a(lib.so.V) shared, rtl:no
17090 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
17091 # lib.a static archive
17092 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17093 for ld_flag in $LDFLAGS; do
17094 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
17095 aix_use_runtimelinking=yes
17096 break
17097 fi
17098 done
17099 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
17100 # With aix-soname=svr4, we create the lib.so.V shared archives only,
17101 # so we don't have lib.a shared libs to link our executables.
17102 # We have to force runtime linking in this case.
17103 aix_use_runtimelinking=yes
17104 LDFLAGS="$LDFLAGS -Wl,-brtl"
17105 fi
17106 ;;
17107 esac
17108
17109 exp_sym_flag='-bexport'
17110 no_entry_flag='-bnoentry'
17111 fi
17112
17113 # When large executables or shared objects are built, AIX ld can
17114 # have problems creating the table of contents. If linking a library
17115 # or program results in "error TOC overflow" add -mminimal-toc to
17116 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17117 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17118
17119 archive_cmds=''
17120 hardcode_direct=yes
17121 hardcode_direct_absolute=yes
17122 hardcode_libdir_separator=':'
17123 link_all_deplibs=yes
17124 file_list_spec='$wl-f,'
17125 case $with_aix_soname,$aix_use_runtimelinking in
17126 aix,*) ;; # traditional, no import file
17127 svr4,* | *,yes) # use import file
17128 # The Import File defines what to hardcode.
17129 hardcode_direct=no
17130 hardcode_direct_absolute=no
17131 ;;
17132 esac
17133
17134 if test yes = "$GCC"; then
17135 case $host_os in aix4.[012]|aix4.[012].*)
17136 # We only want to do this on AIX 4.2 and lower, the check
17137 # below for broken collect2 doesn't work under 4.3+
17138 collect2name=`$CC -print-prog-name=collect2`
17139 if test -f "$collect2name" &&
17140 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
17141 then
17142 # We have reworked collect2
17143 :
17144 else
17145 # We have old collect2
17146 hardcode_direct=unsupported
17147 # It fails to find uninstalled libraries when the uninstalled
17148 # path is not listed in the libpath. Setting hardcode_minus_L
17149 # to unsupported forces relinking
17150 hardcode_minus_L=yes
17151 hardcode_libdir_flag_spec='-L$libdir'
17152 hardcode_libdir_separator=
17153 fi
17154 ;;
17155 esac
17156 shared_flag='-shared'
17157 if test yes = "$aix_use_runtimelinking"; then
17158 shared_flag="$shared_flag "'$wl-G'
17159 fi
17160 # Need to ensure runtime linking is disabled for the traditional
17161 # shared library, or the linker may eventually find shared libraries
17162 # /with/ Import File - we do not want to mix them.
17163 shared_flag_aix='-shared'
17164 shared_flag_svr4='-shared $wl-G'
17165 else
17166 # not using gcc
17167 if test ia64 = "$host_cpu"; then
17168 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17169 # chokes on -Wl,-G. The following line is correct:
17170 shared_flag='-G'
17171 else
17172 if test yes = "$aix_use_runtimelinking"; then
17173 shared_flag='$wl-G'
17174 else
17175 shared_flag='$wl-bM:SRE'
17176 fi
17177 shared_flag_aix='$wl-bM:SRE'
17178 shared_flag_svr4='$wl-G'
17179 fi
17180 fi
17181
17182 export_dynamic_flag_spec='$wl-bexpall'
17183 # It seems that -bexpall does not export symbols beginning with
17184 # underscore (_), so it is better to generate a list of symbols to export.
17185 always_export_symbols=yes
17186 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
17187 # Warning - without using the other runtime loading flags (-brtl),
17188 # -berok will link without error, but may produce a broken library.
17189 allow_undefined_flag='-berok'
17190 # Determine the default libpath from the value encoded in an
17191 # empty executable.
17192 if test set = "${lt_cv_aix_libpath+set}"; then
17193 aix_libpath=$lt_cv_aix_libpath
17194 else
17195 if test ${lt_cv_aix_libpath_+y}
17196 then :
17197 printf %s "(cached) " >&6
17198 else case e in #(
17199 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17200 /* end confdefs.h. */
17201
17202 int
17203 main (void)
17204 {
17205
17206 ;
17207 return 0;
17208 }
17209 _ACEOF
17210 if ac_fn_c_try_link "$LINENO"
17211 then :
17212
17213 lt_aix_libpath_sed='
17214 /Import File Strings/,/^$/ {
17215 /^0/ {
17216 s/^0 *\([^ ]*\) *$/\1/
17217 p
17218 }
17219 }'
17220 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17221 # Check for a 64-bit object if we didn't find anything.
17222 if test -z "$lt_cv_aix_libpath_"; then
17223 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17224 fi
17225 fi
17226 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17227 conftest$ac_exeext conftest.$ac_ext
17228 if test -z "$lt_cv_aix_libpath_"; then
17229 lt_cv_aix_libpath_=/usr/lib:/lib
17230 fi
17231 ;;
17232 esac
17233 fi
17234
17235 aix_libpath=$lt_cv_aix_libpath_
17236 fi
17237
17238 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
17239 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
17240 else
17241 if test ia64 = "$host_cpu"; then
17242 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
17243 allow_undefined_flag="-z nodefs"
17244 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"
17245 else
17246 # Determine the default libpath from the value encoded in an
17247 # empty executable.
17248 if test set = "${lt_cv_aix_libpath+set}"; then
17249 aix_libpath=$lt_cv_aix_libpath
17250 else
17251 if test ${lt_cv_aix_libpath_+y}
17252 then :
17253 printf %s "(cached) " >&6
17254 else case e in #(
17255 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17256 /* end confdefs.h. */
17257
17258 int
17259 main (void)
17260 {
17261
17262 ;
17263 return 0;
17264 }
17265 _ACEOF
17266 if ac_fn_c_try_link "$LINENO"
17267 then :
17268
17269 lt_aix_libpath_sed='
17270 /Import File Strings/,/^$/ {
17271 /^0/ {
17272 s/^0 *\([^ ]*\) *$/\1/
17273 p
17274 }
17275 }'
17276 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17277 # Check for a 64-bit object if we didn't find anything.
17278 if test -z "$lt_cv_aix_libpath_"; then
17279 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17280 fi
17281 fi
17282 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17283 conftest$ac_exeext conftest.$ac_ext
17284 if test -z "$lt_cv_aix_libpath_"; then
17285 lt_cv_aix_libpath_=/usr/lib:/lib
17286 fi
17287 ;;
17288 esac
17289 fi
17290
17291 aix_libpath=$lt_cv_aix_libpath_
17292 fi
17293
17294 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
17295 # Warning - without using the other run time loading flags,
17296 # -berok will link without error, but may produce a broken library.
17297 no_undefined_flag=' $wl-bernotok'
17298 allow_undefined_flag=' $wl-berok'
17299 if test yes = "$with_gnu_ld"; then
17300 # We only use this code for GNU lds that support --whole-archive.
17301 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
17302 else
17303 # Exported symbols can be pulled into shared objects from archives
17304 whole_archive_flag_spec='$convenience'
17305 fi
17306 archive_cmds_need_lc=yes
17307 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
17308 # -brtl affects multiple linker settings, -berok does not and is overridden later
17309 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
17310 if test svr4 != "$with_aix_soname"; then
17311 # This is similar to how AIX traditionally builds its shared libraries.
17312 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
17313 fi
17314 if test aix != "$with_aix_soname"; then
17315 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
17316 else
17317 # used by -dlpreopen to get the symbols
17318 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
17319 fi
17320 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
17321 fi
17322 fi
17323 ;;
17324
17325 amigaos*)
17326 case $host_cpu in
17327 powerpc)
17328 # see comment about AmigaOS4 .so support
17329 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
17330 archive_expsym_cmds=''
17331 ;;
17332 m68k)
17333 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)'
17334 hardcode_libdir_flag_spec='-L$libdir'
17335 hardcode_minus_L=yes
17336 ;;
17337 esac
17338 ;;
17339
17340 bsdi[45]*)
17341 export_dynamic_flag_spec=-rdynamic
17342 ;;
17343
17344 cygwin* | mingw* | windows* | pw32* | cegcc*)
17345 # When not using gcc, we currently assume that we are using
17346 # Microsoft Visual C++ or Intel C++ Compiler.
17347 # hardcode_libdir_flag_spec is actually meaningless, as there is
17348 # no search path for DLLs.
17349 case $cc_basename in
17350 cl* | icl*)
17351 # Native MSVC or ICC
17352 hardcode_libdir_flag_spec=' '
17353 allow_undefined_flag=unsupported
17354 always_export_symbols=yes
17355 file_list_spec='@'
17356 # Tell ltmain to make .lib files, not .a files.
17357 libext=lib
17358 # Tell ltmain to make .dll files, not .so files.
17359 shrext_cmds=.dll
17360 # FIXME: Setting linknames here is a bad hack.
17361 archive_cmds='$CC -Fe $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
17362 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
17363 cp "$export_symbols" "$output_objdir/$soname.def";
17364 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
17365 else
17366 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
17367 fi~
17368 $CC -Fe $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
17369 linknames='
17370 # The linker will not automatically build a static lib if we build a DLL.
17371 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
17372 enable_shared_with_static_runtimes=yes
17373 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
17374 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17375 # Don't use ranlib
17376 old_postinstall_cmds='chmod 644 $oldlib'
17377 postlink_cmds='lt_outputfile="@OUTPUT@"~
17378 lt_tool_outputfile="@TOOL_OUTPUT@"~
17379 case $lt_outputfile in
17380 *.exe|*.EXE) ;;
17381 *)
17382 lt_outputfile=$lt_outputfile.exe
17383 lt_tool_outputfile=$lt_tool_outputfile.exe
17384 ;;
17385 esac~
17386 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
17387 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
17388 $RM "$lt_outputfile.manifest";
17389 fi'
17390 ;;
17391 *)
17392 # Assume MSVC and ICC wrapper
17393 hardcode_libdir_flag_spec=' '
17394 allow_undefined_flag=unsupported
17395 # Tell ltmain to make .lib files, not .a files.
17396 libext=lib
17397 # Tell ltmain to make .dll files, not .so files.
17398 shrext_cmds=.dll
17399 # FIXME: Setting linknames here is a bad hack.
17400 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
17401 # The linker will automatically build a .lib file if we build a DLL.
17402 old_archive_from_new_cmds='true'
17403 # FIXME: Should let the user specify the lib program.
17404 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
17405 enable_shared_with_static_runtimes=yes
17406 ;;
17407 esac
17408 ;;
17409
17410 darwin* | rhapsody*)
17411
17412
17413 archive_cmds_need_lc=no
17414 hardcode_direct=no
17415 hardcode_automatic=yes
17416 hardcode_shlibpath_var=unsupported
17417 if test yes = "$lt_cv_ld_force_load"; then
17418 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\"`'
17419
17420 else
17421 whole_archive_flag_spec=''
17422 fi
17423 link_all_deplibs=yes
17424 allow_undefined_flag=$_lt_dar_allow_undefined
17425 case $cc_basename in
17426 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
17427 *) _lt_dar_can_shared=$GCC ;;
17428 esac
17429 if test yes = "$_lt_dar_can_shared"; then
17430 output_verbose_link_cmd=func_echo_all
17431 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
17432 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
17433 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"
17434 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"
17435
17436 else
17437 ld_shlibs=no
17438 fi
17439
17440 ;;
17441
17442 dgux*)
17443 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17444 hardcode_libdir_flag_spec='-L$libdir'
17445 hardcode_shlibpath_var=no
17446 ;;
17447
17448 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17449 # support. Future versions do this automatically, but an explicit c++rt0.o
17450 # does not break anything, and helps significantly (at the cost of a little
17451 # extra space).
17452 freebsd2.2*)
17453 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17454 hardcode_libdir_flag_spec='-R$libdir'
17455 hardcode_direct=yes
17456 hardcode_shlibpath_var=no
17457 ;;
17458
17459 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17460 freebsd2.*)
17461 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17462 hardcode_direct=yes
17463 hardcode_minus_L=yes
17464 hardcode_shlibpath_var=no
17465 ;;
17466
17467 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17468 freebsd* | dragonfly* | midnightbsd*)
17469 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17470 hardcode_libdir_flag_spec='-R$libdir'
17471 hardcode_direct=yes
17472 hardcode_shlibpath_var=no
17473 ;;
17474
17475 hpux9*)
17476 if test yes = "$GCC"; then
17477 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
17478 else
17479 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
17480 fi
17481 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
17482 hardcode_libdir_separator=:
17483 hardcode_direct=yes
17484
17485 # hardcode_minus_L: Not really in the search PATH,
17486 # but as the default location of the library.
17487 hardcode_minus_L=yes
17488 export_dynamic_flag_spec='$wl-E'
17489 ;;
17490
17491 hpux10*)
17492 if test yes,no = "$GCC,$with_gnu_ld"; then
17493 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17494 else
17495 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17496 fi
17497 if test no = "$with_gnu_ld"; then
17498 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
17499 hardcode_libdir_separator=:
17500 hardcode_direct=yes
17501 hardcode_direct_absolute=yes
17502 export_dynamic_flag_spec='$wl-E'
17503 # hardcode_minus_L: Not really in the search PATH,
17504 # but as the default location of the library.
17505 hardcode_minus_L=yes
17506 fi
17507 ;;
17508
17509 hpux11*)
17510 if test yes,no = "$GCC,$with_gnu_ld"; then
17511 case $host_cpu in
17512 hppa*64*)
17513 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
17514 ;;
17515 ia64*)
17516 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17517 ;;
17518 *)
17519 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17520 ;;
17521 esac
17522 else
17523 case $host_cpu in
17524 hppa*64*)
17525 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
17526 ;;
17527 ia64*)
17528 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17529 ;;
17530 *)
17531
17532 # Older versions of the 11.00 compiler do not understand -b yet
17533 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
17534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
17535 printf %s "checking if $CC understands -b... " >&6; }
17536 if test ${lt_cv_prog_compiler__b+y}
17537 then :
17538 printf %s "(cached) " >&6
17539 else case e in #(
17540 e) lt_cv_prog_compiler__b=no
17541 save_LDFLAGS=$LDFLAGS
17542 LDFLAGS="$LDFLAGS -b"
17543 echo "$lt_simple_link_test_code" > conftest.$ac_ext
17544 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17545 # The linker can only warn and ignore the option if not recognized
17546 # So say no if there are warnings
17547 if test -s conftest.err; then
17548 # Append any errors to the config.log.
17549 cat conftest.err 1>&5
17550 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
17551 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17552 if diff conftest.exp conftest.er2 >/dev/null; then
17553 lt_cv_prog_compiler__b=yes
17554 fi
17555 else
17556 lt_cv_prog_compiler__b=yes
17557 fi
17558 fi
17559 $RM -r conftest*
17560 LDFLAGS=$save_LDFLAGS
17561 ;;
17562 esac
17563 fi
17564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
17565 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
17566
17567 if test yes = "$lt_cv_prog_compiler__b"; then
17568 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17569 else
17570 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17571 fi
17572
17573 ;;
17574 esac
17575 fi
17576 if test no = "$with_gnu_ld"; then
17577 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
17578 hardcode_libdir_separator=:
17579
17580 case $host_cpu in
17581 hppa*64*|ia64*)
17582 hardcode_direct=no
17583 hardcode_shlibpath_var=no
17584 ;;
17585 *)
17586 hardcode_direct=yes
17587 hardcode_direct_absolute=yes
17588 export_dynamic_flag_spec='$wl-E'
17589
17590 # hardcode_minus_L: Not really in the search PATH,
17591 # but as the default location of the library.
17592 hardcode_minus_L=yes
17593 ;;
17594 esac
17595 fi
17596 ;;
17597
17598 irix5* | irix6* | nonstopux*)
17599 if test yes = "$GCC"; then
17600 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'
17601 # Try to use the -exported_symbol ld option, if it does not
17602 # work, assume that -exports_file does not work either and
17603 # implicitly export all symbols.
17604 # This should be the same for all languages, so no per-tag cache variable.
17605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
17606 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
17607 if test ${lt_cv_irix_exported_symbol+y}
17608 then :
17609 printf %s "(cached) " >&6
17610 else case e in #(
17611 e) save_LDFLAGS=$LDFLAGS
17612 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
17613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17614 /* end confdefs.h. */
17615 int foo (void) { return 0; }
17616 _ACEOF
17617 if ac_fn_c_try_link "$LINENO"
17618 then :
17619 lt_cv_irix_exported_symbol=yes
17620 else case e in #(
17621 e) lt_cv_irix_exported_symbol=no ;;
17622 esac
17623 fi
17624 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17625 conftest$ac_exeext conftest.$ac_ext
17626 LDFLAGS=$save_LDFLAGS ;;
17627 esac
17628 fi
17629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
17630 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
17631 if test yes = "$lt_cv_irix_exported_symbol"; then
17632 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'
17633 fi
17634 else
17635 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'
17636 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'
17637 fi
17638 archive_cmds_need_lc='no'
17639 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
17640 hardcode_libdir_separator=:
17641 inherit_rpath=yes
17642 link_all_deplibs=yes
17643 ;;
17644
17645 linux*)
17646 case $cc_basename in
17647 tcc*)
17648 # Fabrice Bellard et al's Tiny C Compiler
17649 ld_shlibs=yes
17650 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17651 ;;
17652 esac
17653 ;;
17654
17655 netbsd*)
17656 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17657 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17658 else
17659 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17660 fi
17661 hardcode_libdir_flag_spec='-R$libdir'
17662 hardcode_direct=yes
17663 hardcode_shlibpath_var=no
17664 ;;
17665
17666 newsos6)
17667 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17668 hardcode_direct=yes
17669 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
17670 hardcode_libdir_separator=:
17671 hardcode_shlibpath_var=no
17672 ;;
17673
17674 *nto* | *qnx*)
17675 ;;
17676
17677 openbsd*)
17678 if test -f /usr/libexec/ld.so; then
17679 hardcode_direct=yes
17680 hardcode_shlibpath_var=no
17681 hardcode_direct_absolute=yes
17682 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
17683 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17684 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
17685 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
17686 export_dynamic_flag_spec='$wl-E'
17687 else
17688 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17689 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
17690 fi
17691 else
17692 ld_shlibs=no
17693 fi
17694 ;;
17695
17696 os2*)
17697 hardcode_libdir_flag_spec='-L$libdir'
17698 hardcode_minus_L=yes
17699 allow_undefined_flag=unsupported
17700 shrext_cmds=.dll
17701 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
17702 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
17703 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
17704 $ECHO EXPORTS >> $output_objdir/$libname.def~
17705 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
17706 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
17707 emximp -o $lib $output_objdir/$libname.def'
17708 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
17709 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
17710 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
17711 $ECHO EXPORTS >> $output_objdir/$libname.def~
17712 prefix_cmds="$SED"~
17713 if test EXPORTS = "`$SED 1q $export_symbols`"; then
17714 prefix_cmds="$prefix_cmds -e 1d";
17715 fi~
17716 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
17717 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
17718 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
17719 emximp -o $lib $output_objdir/$libname.def'
17720 old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
17721 enable_shared_with_static_runtimes=yes
17722 file_list_spec='@'
17723 ;;
17724
17725 osf3*)
17726 if test yes = "$GCC"; then
17727 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
17728 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'
17729 else
17730 allow_undefined_flag=' -expect_unresolved \*'
17731 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'
17732 fi
17733 archive_cmds_need_lc='no'
17734 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
17735 hardcode_libdir_separator=:
17736 ;;
17737
17738 osf4* | osf5*) # as osf3* with the addition of -msym flag
17739 if test yes = "$GCC"; then
17740 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
17741 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'
17742 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
17743 else
17744 allow_undefined_flag=' -expect_unresolved \*'
17745 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'
17746 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~
17747 $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'
17748
17749 # Both c and cxx compiler support -rpath directly
17750 hardcode_libdir_flag_spec='-rpath $libdir'
17751 fi
17752 archive_cmds_need_lc='no'
17753 hardcode_libdir_separator=:
17754 ;;
17755
17756 solaris*)
17757 no_undefined_flag=' -z defs'
17758 if test yes = "$GCC"; then
17759 wlarc='$wl'
17760 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
17761 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17762 $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'
17763 else
17764 case `$CC -V 2>&1` in
17765 *"Compilers 5.0"*)
17766 wlarc=''
17767 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
17768 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17769 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
17770 ;;
17771 *)
17772 wlarc='$wl'
17773 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
17774 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17775 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
17776 ;;
17777 esac
17778 fi
17779 hardcode_libdir_flag_spec='-R$libdir'
17780 hardcode_shlibpath_var=no
17781 case $host_os in
17782 solaris2.[0-5] | solaris2.[0-5].*) ;;
17783 *)
17784 # The compiler driver will combine and reorder linker options,
17785 # but understands '-z linker_flag'. GCC discards it without '$wl',
17786 # but is careful enough not to reorder.
17787 # Supported since Solaris 2.6 (maybe 2.5.1?)
17788 if test yes = "$GCC"; then
17789 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
17790 else
17791 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
17792 fi
17793 ;;
17794 esac
17795 link_all_deplibs=yes
17796 ;;
17797
17798 sunos4*)
17799 if test sequent = "$host_vendor"; then
17800 # Use $CC to link under sequent, because it throws in some extra .o
17801 # files that make .init and .fini sections work.
17802 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17803 else
17804 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17805 fi
17806 hardcode_libdir_flag_spec='-L$libdir'
17807 hardcode_direct=yes
17808 hardcode_minus_L=yes
17809 hardcode_shlibpath_var=no
17810 ;;
17811
17812 sysv4)
17813 case $host_vendor in
17814 sni)
17815 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17816 hardcode_direct=yes # is this really true???
17817 ;;
17818 siemens)
17819 ## LD is ld it makes a PLAMLIB
17820 ## CC just makes a GrossModule.
17821 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17822 reload_cmds='$CC -r -o $output$reload_objs'
17823 hardcode_direct=no
17824 ;;
17825 motorola)
17826 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17827 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
17828 ;;
17829 esac
17830 runpath_var='LD_RUN_PATH'
17831 hardcode_shlibpath_var=no
17832 ;;
17833
17834 sysv4.3*)
17835 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17836 hardcode_shlibpath_var=no
17837 export_dynamic_flag_spec='-Bexport'
17838 ;;
17839
17840 sysv4*MP*)
17841 if test -d /usr/nec; then
17842 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17843 hardcode_shlibpath_var=no
17844 runpath_var=LD_RUN_PATH
17845 hardcode_runpath_var=yes
17846 ld_shlibs=yes
17847 fi
17848 ;;
17849
17850 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17851 no_undefined_flag='$wl-z,text'
17852 archive_cmds_need_lc=no
17853 hardcode_shlibpath_var=no
17854 runpath_var='LD_RUN_PATH'
17855
17856 if test yes = "$GCC"; then
17857 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17858 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17859 else
17860 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17861 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17862 fi
17863 ;;
17864
17865 sysv5* | sco3.2v5* | sco5v6*)
17866 # Note: We CANNOT use -z defs as we might desire, because we do not
17867 # link with -lc, and that would cause any symbols used from libc to
17868 # always be unresolved, which means just about no library would
17869 # ever link correctly. If we're not using GNU ld we use -z text
17870 # though, which does catch some bad symbols but isn't as heavy-handed
17871 # as -z defs.
17872 no_undefined_flag='$wl-z,text'
17873 allow_undefined_flag='$wl-z,nodefs'
17874 archive_cmds_need_lc=no
17875 hardcode_shlibpath_var=no
17876 hardcode_libdir_flag_spec='$wl-R,$libdir'
17877 hardcode_libdir_separator=':'
17878 link_all_deplibs=yes
17879 export_dynamic_flag_spec='$wl-Bexport'
17880 runpath_var='LD_RUN_PATH'
17881
17882 if test yes = "$GCC"; then
17883 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17884 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17885 else
17886 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17887 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17888 fi
17889 ;;
17890
17891 uts4*)
17892 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17893 hardcode_libdir_flag_spec='-L$libdir'
17894 hardcode_shlibpath_var=no
17895 ;;
17896
17897 *)
17898 ld_shlibs=no
17899 ;;
17900 esac
17901
17902 if test sni = "$host_vendor"; then
17903 case $host in
17904 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17905 export_dynamic_flag_spec='$wl-Blargedynsym'
17906 ;;
17907 esac
17908 fi
17909 fi
17910
17911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
17912 printf "%s\n" "$ld_shlibs" >&6; }
17913 test no = "$ld_shlibs" && can_build_shared=no
17914
17915 with_gnu_ld=$with_gnu_ld
17916
17917
17918
17919
17920
17921
17922
17923
17924
17925
17926
17927
17928
17929
17930
17931 #
17932 # Do we need to explicitly link libc?
17933 #
17934 case "x$archive_cmds_need_lc" in
17935 x|xyes)
17936 # Assume -lc should be added
17937 archive_cmds_need_lc=yes
17938
17939 if test yes,yes = "$GCC,$enable_shared"; then
17940 case $archive_cmds in
17941 *'~'*)
17942 # FIXME: we may have to deal with multi-command sequences.
17943 ;;
17944 '$CC '*)
17945 # Test whether the compiler implicitly links with -lc since on some
17946 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17947 # to ld, don't add -lc before -lgcc.
17948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
17949 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
17950 if test ${lt_cv_archive_cmds_need_lc+y}
17951 then :
17952 printf %s "(cached) " >&6
17953 else case e in #(
17954 e) $RM conftest*
17955 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17956
17957 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17958 (eval $ac_compile) 2>&5
17959 ac_status=$?
17960 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17961 test $ac_status = 0; } 2>conftest.err; then
17962 soname=conftest
17963 lib=conftest
17964 libobjs=conftest.$ac_objext
17965 deplibs=
17966 wl=$lt_prog_compiler_wl
17967 pic_flag=$lt_prog_compiler_pic
17968 compiler_flags=-v
17969 linker_flags=-v
17970 verstring=
17971 output_objdir=.
17972 libname=conftest
17973 lt_save_allow_undefined_flag=$allow_undefined_flag
17974 allow_undefined_flag=
17975 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
17976 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
17977 ac_status=$?
17978 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17979 test $ac_status = 0; }
17980 then
17981 lt_cv_archive_cmds_need_lc=no
17982 else
17983 lt_cv_archive_cmds_need_lc=yes
17984 fi
17985 allow_undefined_flag=$lt_save_allow_undefined_flag
17986 else
17987 cat conftest.err 1>&5
17988 fi
17989 $RM conftest*
17990 ;;
17991 esac
17992 fi
17993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
17994 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
17995 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
17996 ;;
17997 esac
17998 fi
17999 ;;
18000 esac
18001
18002
18003
18004
18005
18006
18007
18008
18009
18010
18011
18012
18013
18014
18015
18016
18017
18018
18019
18020
18021
18022
18023
18024
18025
18026
18027
18028
18029
18030
18031
18032
18033
18034
18035
18036
18037
18038
18039
18040
18041
18042
18043
18044
18045
18046
18047
18048
18049
18050
18051
18052
18053
18054
18055
18056
18057
18058
18059
18060
18061
18062
18063
18064
18065
18066
18067
18068
18069
18070
18071
18072
18073
18074
18075
18076
18077
18078
18079
18080
18081
18082
18083
18084
18085
18086
18087
18088
18089
18090
18091
18092
18093
18094
18095
18096
18097
18098
18099
18100
18101
18102
18103
18104
18105
18106
18107
18108
18109
18110
18111
18112
18113
18114
18115
18116
18117
18118
18119
18120
18121
18122
18123
18124
18125
18126
18127
18128
18129
18130
18131
18132
18133
18134
18135
18136
18137
18138
18139
18140
18141
18142
18143
18144
18145
18146
18147
18148
18149
18150
18151
18152
18153 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
18154 printf %s "checking dynamic linker characteristics... " >&6; }
18155
18156 if test yes = "$GCC"; then
18157 case $host_os in
18158 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
18159 *) lt_awk_arg='/^libraries:/' ;;
18160 esac
18161 case $host_os in
18162 mingw* | windows* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
18163 *) lt_sed_strip_eq='s|=/|/|g' ;;
18164 esac
18165 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
18166 case $lt_search_path_spec in
18167 *\;*)
18168 # if the path contains ";" then we assume it to be the separator
18169 # otherwise default to the standard path separator (i.e. ":") - it is
18170 # assumed that no part of a normal pathname contains ";" but that should
18171 # okay in the real world where ";" in dirpaths is itself problematic.
18172 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
18173 ;;
18174 *)
18175 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
18176 ;;
18177 esac
18178 # Ok, now we have the path, separated by spaces, we can step through it
18179 # and add multilib dir if necessary...
18180 lt_tmp_lt_search_path_spec=
18181 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
18182 # ...but if some path component already ends with the multilib dir we assume
18183 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
18184 case "$lt_multi_os_dir; $lt_search_path_spec " in
18185 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
18186 lt_multi_os_dir=
18187 ;;
18188 esac
18189 for lt_sys_path in $lt_search_path_spec; do
18190 if test -d "$lt_sys_path$lt_multi_os_dir"; then
18191 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
18192 elif test -n "$lt_multi_os_dir"; then
18193 test -d "$lt_sys_path" && \
18194 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
18195 fi
18196 done
18197 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
18198 BEGIN {RS = " "; FS = "/|\n";} {
18199 lt_foo = "";
18200 lt_count = 0;
18201 for (lt_i = NF; lt_i > 0; lt_i--) {
18202 if ($lt_i != "" && $lt_i != ".") {
18203 if ($lt_i == "..") {
18204 lt_count++;
18205 } else {
18206 if (lt_count == 0) {
18207 lt_foo = "/" $lt_i lt_foo;
18208 } else {
18209 lt_count--;
18210 }
18211 }
18212 }
18213 }
18214 if (lt_foo != "") { lt_freq[lt_foo]++; }
18215 if (lt_freq[lt_foo] == 1) { print lt_foo; }
18216 }'`
18217 # AWK program above erroneously prepends '/' to C:/dos/paths
18218 # for these hosts.
18219 case $host_os in
18220 mingw* | windows* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
18221 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
18222 esac
18223 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
18224 else
18225 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18226 fi
18227 library_names_spec=
18228 libname_spec='lib$name'
18229 soname_spec=
18230 shrext_cmds=.so
18231 postinstall_cmds=
18232 postuninstall_cmds=
18233 finish_cmds=
18234 finish_eval=
18235 shlibpath_var=
18236 shlibpath_overrides_runpath=unknown
18237 version_type=none
18238 dynamic_linker="$host_os ld.so"
18239 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18240 need_lib_prefix=unknown
18241 hardcode_into_libs=no
18242
18243 # when you set need_version to no, make sure it does not cause -set_version
18244 # flags to be left without arguments
18245 need_version=unknown
18246
18247
18248
18249 case $host_os in
18250 aix3*)
18251 version_type=linux # correct to gnu/linux during the next big refactor
18252 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
18253 shlibpath_var=LIBPATH
18254
18255 # AIX 3 has no versioning support, so we append a major version to the name.
18256 soname_spec='$libname$release$shared_ext$major'
18257 ;;
18258
18259 aix[4-9]*)
18260 version_type=linux # correct to gnu/linux during the next big refactor
18261 need_lib_prefix=no
18262 need_version=no
18263 hardcode_into_libs=yes
18264 if test ia64 = "$host_cpu"; then
18265 # AIX 5 supports IA64
18266 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
18267 shlibpath_var=LD_LIBRARY_PATH
18268 else
18269 # With GCC up to 2.95.x, collect2 would create an import file
18270 # for dependence libraries. The import file would start with
18271 # the line '#! .'. This would cause the generated library to
18272 # depend on '.', always an invalid library. This was fixed in
18273 # development snapshots of GCC prior to 3.0.
18274 case $host_os in
18275 aix4 | aix4.[01] | aix4.[01].*)
18276 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18277 echo ' yes '
18278 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
18279 :
18280 else
18281 can_build_shared=no
18282 fi
18283 ;;
18284 esac
18285 # Using Import Files as archive members, it is possible to support
18286 # filename-based versioning of shared library archives on AIX. While
18287 # this would work for both with and without runtime linking, it will
18288 # prevent static linking of such archives. So we do filename-based
18289 # shared library versioning with .so extension only, which is used
18290 # when both runtime linking and shared linking is enabled.
18291 # Unfortunately, runtime linking may impact performance, so we do
18292 # not want this to be the default eventually. Also, we use the
18293 # versioned .so libs for executables only if there is the -brtl
18294 # linker flag in LDFLAGS as well, or --enable-aix-soname=svr4 only.
18295 # To allow for filename-based versioning support, we need to create
18296 # libNAME.so.V as an archive file, containing:
18297 # *) an Import File, referring to the versioned filename of the
18298 # archive as well as the shared archive member, telling the
18299 # bitwidth (32 or 64) of that shared object, and providing the
18300 # list of exported symbols of that shared object, eventually
18301 # decorated with the 'weak' keyword
18302 # *) the shared object with the F_LOADONLY flag set, to really avoid
18303 # it being seen by the linker.
18304 # At run time we better use the real file rather than another symlink,
18305 # but for link time we create the symlink libNAME.so -> libNAME.so.V
18306
18307 case $with_aix_soname,$aix_use_runtimelinking in
18308 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
18309 # soname into executable. Probably we can add versioning support to
18310 # collect2, so additional links can be useful in future.
18311 aix,yes) # traditional libtool
18312 dynamic_linker='AIX unversionable lib.so'
18313 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18314 # instead of lib<name>.a to let people know that these are not
18315 # typical AIX shared libraries.
18316 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18317 ;;
18318 aix,no) # traditional AIX only
18319 dynamic_linker='AIX lib.a(lib.so.V)'
18320 # We preserve .a as extension for shared libraries through AIX4.2
18321 # and later when we are not doing run time linking.
18322 library_names_spec='$libname$release.a $libname.a'
18323 soname_spec='$libname$release$shared_ext$major'
18324 ;;
18325 svr4,*) # full svr4 only
18326 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
18327 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
18328 # We do not specify a path in Import Files, so LIBPATH fires.
18329 shlibpath_overrides_runpath=yes
18330 ;;
18331 *,yes) # both, prefer svr4
18332 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
18333 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
18334 # unpreferred sharedlib libNAME.a needs extra handling
18335 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
18336 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
18337 # We do not specify a path in Import Files, so LIBPATH fires.
18338 shlibpath_overrides_runpath=yes
18339 ;;
18340 *,no) # both, prefer aix
18341 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
18342 library_names_spec='$libname$release.a $libname.a'
18343 soname_spec='$libname$release$shared_ext$major'
18344 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
18345 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
18346 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
18347 ;;
18348 esac
18349 shlibpath_var=LIBPATH
18350 fi
18351 ;;
18352
18353 amigaos*)
18354 case $host_cpu in
18355 powerpc)
18356 # Since July 2007 AmigaOS4 officially supports .so libraries.
18357 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
18358 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18359 ;;
18360 m68k)
18361 library_names_spec='$libname.ixlibrary $libname.a'
18362 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18363 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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'
18364 ;;
18365 esac
18366 ;;
18367
18368 beos*)
18369 library_names_spec='$libname$shared_ext'
18370 dynamic_linker="$host_os ld.so"
18371 shlibpath_var=LIBRARY_PATH
18372 ;;
18373
18374 bsdi[45]*)
18375 version_type=linux # correct to gnu/linux during the next big refactor
18376 need_version=no
18377 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18378 soname_spec='$libname$release$shared_ext$major'
18379 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18380 shlibpath_var=LD_LIBRARY_PATH
18381 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18382 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18383 # the default ld.so.conf also contains /usr/contrib/lib and
18384 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18385 # libtool to hard-code these into programs
18386 ;;
18387
18388 cygwin* | mingw* | windows* | pw32* | cegcc*)
18389 version_type=windows
18390 shrext_cmds=.dll
18391 need_version=no
18392 need_lib_prefix=no
18393
18394 case $GCC,$cc_basename in
18395 yes,*)
18396 # gcc
18397 library_names_spec='$libname.dll.a'
18398 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18399 # If user builds GCC with mulitlibs enabled,
18400 # it should just install on $(libdir)
18401 # not on $(libdir)/../bin or 32 bits dlls would override 64 bit ones.
18402 if test yes = $multilib; then
18403 postinstall_cmds='base_file=`basename \$file`~
18404 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
18405 dldir=$destdir/`dirname \$dlpath`~
18406 $install_prog $dir/$dlname $destdir/$dlname~
18407 chmod a+x $destdir/$dlname~
18408 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
18409 eval '\''$striplib $destdir/$dlname'\'' || exit \$?;
18410 fi'
18411 else
18412 postinstall_cmds='base_file=`basename \$file`~
18413 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
18414 dldir=$destdir/`dirname \$dlpath`~
18415 test -d \$dldir || mkdir -p \$dldir~
18416 $install_prog $dir/$dlname \$dldir/$dlname~
18417 chmod a+x \$dldir/$dlname~
18418 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
18419 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
18420 fi'
18421 fi
18422 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18423 dlpath=$dir/\$dldll~
18424 $RM \$dlpath'
18425 shlibpath_overrides_runpath=yes
18426
18427 case $host_os in
18428 cygwin*)
18429 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18430 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
18431
18432 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
18433 ;;
18434 mingw* | windows* | cegcc*)
18435 # MinGW DLLs use traditional 'lib' prefix
18436 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
18437 ;;
18438 pw32*)
18439 # pw32 DLLs use 'pw' prefix rather than 'lib'
18440 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
18441 ;;
18442 esac
18443 dynamic_linker='Win32 ld.exe'
18444 ;;
18445
18446 *,cl* | *,icl*)
18447 # Native MSVC or ICC
18448 libname_spec='$name'
18449 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
18450 library_names_spec='$libname.dll.lib'
18451
18452 case $build_os in
18453 mingw* | windows*)
18454 sys_lib_search_path_spec=
18455 lt_save_ifs=$IFS
18456 IFS=';'
18457 for lt_path in $LIB
18458 do
18459 IFS=$lt_save_ifs
18460 # Let DOS variable expansion print the short 8.3 style file name.
18461 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
18462 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
18463 done
18464 IFS=$lt_save_ifs
18465 # Convert to MSYS style.
18466 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
18467 ;;
18468 cygwin*)
18469 # Convert to unix form, then to dos form, then back to unix form
18470 # but this time dos style (no spaces!) so that the unix form looks
18471 # like /cygdrive/c/PROGRA~1:/cygdr...
18472 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
18473 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
18474 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18475 ;;
18476 *)
18477 sys_lib_search_path_spec=$LIB
18478 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
18479 # It is most probably a Windows format PATH.
18480 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18481 else
18482 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18483 fi
18484 # FIXME: find the short name or the path components, as spaces are
18485 # common. (e.g. "Program Files" -> "PROGRA~1")
18486 ;;
18487 esac
18488
18489 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18490 postinstall_cmds='base_file=`basename \$file`~
18491 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
18492 dldir=$destdir/`dirname \$dlpath`~
18493 test -d \$dldir || mkdir -p \$dldir~
18494 $install_prog $dir/$dlname \$dldir/$dlname'
18495 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18496 dlpath=$dir/\$dldll~
18497 $RM \$dlpath'
18498 shlibpath_overrides_runpath=yes
18499 dynamic_linker='Win32 link.exe'
18500 ;;
18501
18502 *)
18503 # Assume MSVC and ICC wrapper
18504 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
18505 dynamic_linker='Win32 ld.exe'
18506 ;;
18507 esac
18508 # FIXME: first we should search . and the directory the executable is in
18509 shlibpath_var=PATH
18510 ;;
18511
18512 darwin* | rhapsody*)
18513 dynamic_linker="$host_os dyld"
18514 version_type=darwin
18515 need_lib_prefix=no
18516 need_version=no
18517 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
18518 soname_spec='$libname$release$major$shared_ext'
18519 shlibpath_overrides_runpath=yes
18520 shlibpath_var=DYLD_LIBRARY_PATH
18521 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18522
18523 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
18524 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18525 ;;
18526
18527 dgux*)
18528 version_type=linux # correct to gnu/linux during the next big refactor
18529 need_lib_prefix=no
18530 need_version=no
18531 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18532 soname_spec='$libname$release$shared_ext$major'
18533 shlibpath_var=LD_LIBRARY_PATH
18534 ;;
18535
18536 freebsd* | dragonfly* | midnightbsd*)
18537 # DragonFly does not have aout. When/if they implement a new
18538 # versioning mechanism, adjust this.
18539 if test -x /usr/bin/objformat; then
18540 objformat=`/usr/bin/objformat`
18541 else
18542 case $host_os in
18543 freebsd[23].*) objformat=aout ;;
18544 *) objformat=elf ;;
18545 esac
18546 fi
18547 version_type=freebsd-$objformat
18548 case $version_type in
18549 freebsd-elf*)
18550 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18551 soname_spec='$libname$release$shared_ext$major'
18552 need_version=no
18553 need_lib_prefix=no
18554 ;;
18555 freebsd-*)
18556 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
18557 need_version=yes
18558 ;;
18559 esac
18560 case $host_cpu in
18561 powerpc64)
18562 # On FreeBSD bi-arch platforms, a different variable is used for 32-bit
18563 # binaries. See <https://man.freebsd.org/cgi/man.cgi?query=ld.so>.
18564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18565 /* end confdefs.h. */
18566 int test_pointer_size[sizeof (void *) - 5];
18567
18568 _ACEOF
18569 if ac_fn_c_try_compile "$LINENO"
18570 then :
18571 shlibpath_var=LD_LIBRARY_PATH
18572 else case e in #(
18573 e) shlibpath_var=LD_32_LIBRARY_PATH ;;
18574 esac
18575 fi
18576 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18577 ;;
18578 *)
18579 shlibpath_var=LD_LIBRARY_PATH
18580 ;;
18581 esac
18582 case $host_os in
18583 freebsd2.*)
18584 shlibpath_overrides_runpath=yes
18585 ;;
18586 freebsd3.[01]* | freebsdelf3.[01]*)
18587 shlibpath_overrides_runpath=yes
18588 hardcode_into_libs=yes
18589 ;;
18590 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18591 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18592 shlibpath_overrides_runpath=no
18593 hardcode_into_libs=yes
18594 ;;
18595 *) # from 4.6 on, and DragonFly
18596 shlibpath_overrides_runpath=yes
18597 hardcode_into_libs=yes
18598 ;;
18599 esac
18600 ;;
18601
18602 haiku*)
18603 version_type=linux # correct to gnu/linux during the next big refactor
18604 need_lib_prefix=no
18605 need_version=no
18606 dynamic_linker="$host_os runtime_loader"
18607 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18608 soname_spec='$libname$release$shared_ext$major'
18609 shlibpath_var=LIBRARY_PATH
18610 shlibpath_overrides_runpath=no
18611 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
18612 hardcode_into_libs=yes
18613 ;;
18614
18615 hpux9* | hpux10* | hpux11*)
18616 # Give a soname corresponding to the major version so that dld.sl refuses to
18617 # link against other versions.
18618 version_type=sunos
18619 need_lib_prefix=no
18620 need_version=no
18621 case $host_cpu in
18622 ia64*)
18623 shrext_cmds='.so'
18624 hardcode_into_libs=yes
18625 dynamic_linker="$host_os dld.so"
18626 shlibpath_var=LD_LIBRARY_PATH
18627 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18628 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18629 soname_spec='$libname$release$shared_ext$major'
18630 if test 32 = "$HPUX_IA64_MODE"; then
18631 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18632 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
18633 else
18634 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18635 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
18636 fi
18637 ;;
18638 hppa*64*)
18639 shrext_cmds='.sl'
18640 hardcode_into_libs=yes
18641 dynamic_linker="$host_os dld.sl"
18642 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18643 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18644 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18645 soname_spec='$libname$release$shared_ext$major'
18646 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18647 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18648 ;;
18649 *)
18650 shrext_cmds='.sl'
18651 dynamic_linker="$host_os dld.sl"
18652 shlibpath_var=SHLIB_PATH
18653 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18654 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18655 soname_spec='$libname$release$shared_ext$major'
18656 ;;
18657 esac
18658 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
18659 postinstall_cmds='chmod 555 $lib'
18660 # or fails outright, so override atomically:
18661 install_override_mode=555
18662 ;;
18663
18664 interix[3-9]*)
18665 version_type=linux # correct to gnu/linux during the next big refactor
18666 need_lib_prefix=no
18667 need_version=no
18668 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18669 soname_spec='$libname$release$shared_ext$major'
18670 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18671 shlibpath_var=LD_LIBRARY_PATH
18672 shlibpath_overrides_runpath=no
18673 hardcode_into_libs=yes
18674 ;;
18675
18676 irix5* | irix6* | nonstopux*)
18677 case $host_os in
18678 nonstopux*) version_type=nonstopux ;;
18679 *)
18680 if test yes = "$lt_cv_prog_gnu_ld"; then
18681 version_type=linux # correct to gnu/linux during the next big refactor
18682 else
18683 version_type=irix
18684 fi ;;
18685 esac
18686 need_lib_prefix=no
18687 need_version=no
18688 soname_spec='$libname$release$shared_ext$major'
18689 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
18690 case $host_os in
18691 irix5* | nonstopux*)
18692 libsuff= shlibsuff=
18693 ;;
18694 *)
18695 case $LD in # libtool.m4 will add one of these switches to LD
18696 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18697 libsuff= shlibsuff= libmagic=32-bit;;
18698 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18699 libsuff=32 shlibsuff=N32 libmagic=N32;;
18700 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18701 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18702 *) libsuff= shlibsuff= libmagic=never-match;;
18703 esac
18704 ;;
18705 esac
18706 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18707 shlibpath_overrides_runpath=no
18708 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
18709 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
18710 hardcode_into_libs=yes
18711 ;;
18712
18713 # No shared lib support for Linux oldld, aout, or coff.
18714 linux*oldld* | linux*aout* | linux*coff*)
18715 dynamic_linker=no
18716 ;;
18717
18718 linux*android*)
18719 version_type=none # Android doesn't support versioned libraries.
18720 need_lib_prefix=no
18721 need_version=no
18722 library_names_spec='$libname$release$shared_ext $libname$shared_ext'
18723 soname_spec='$libname$release$shared_ext'
18724 finish_cmds=
18725 shlibpath_var=LD_LIBRARY_PATH
18726 shlibpath_overrides_runpath=yes
18727
18728 # This implies no fast_install, which is unacceptable.
18729 # Some rework will be needed to allow for fast_install
18730 # before this can be enabled.
18731 hardcode_into_libs=yes
18732
18733 dynamic_linker='Android linker'
18734 # -rpath works at least for libraries that are not overridden by
18735 # libraries installed in system locations.
18736 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
18737 ;;
18738
18739 # This must be glibc/ELF.
18740 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
18741 version_type=linux # correct to gnu/linux during the next big refactor
18742 need_lib_prefix=no
18743 need_version=no
18744 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18745 soname_spec='$libname$release$shared_ext$major'
18746 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18747 shlibpath_var=LD_LIBRARY_PATH
18748 shlibpath_overrides_runpath=no
18749
18750 # Some binutils ld are patched to set DT_RUNPATH
18751 if test ${lt_cv_shlibpath_overrides_runpath+y}
18752 then :
18753 printf %s "(cached) " >&6
18754 else case e in #(
18755 e) lt_cv_shlibpath_overrides_runpath=no
18756 save_LDFLAGS=$LDFLAGS
18757 save_libdir=$libdir
18758 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
18759 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
18760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18761 /* end confdefs.h. */
18762
18763 int
18764 main (void)
18765 {
18766
18767 ;
18768 return 0;
18769 }
18770 _ACEOF
18771 if ac_fn_c_try_link "$LINENO"
18772 then :
18773 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
18774 then :
18775 lt_cv_shlibpath_overrides_runpath=yes
18776 fi
18777 fi
18778 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18779 conftest$ac_exeext conftest.$ac_ext
18780 LDFLAGS=$save_LDFLAGS
18781 libdir=$save_libdir
18782 ;;
18783 esac
18784 fi
18785
18786 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
18787
18788 # This implies no fast_install, which is unacceptable.
18789 # Some rework will be needed to allow for fast_install
18790 # before this can be enabled.
18791 hardcode_into_libs=yes
18792
18793 # Ideally, we could use ldconfig to report *all* directories which are
18794 # searched for libraries, however this is still not possible. Aside from not
18795 # being certain /sbin/ldconfig is available, command
18796 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
18797 # even though it is searched at run-time. Try to do the best guess by
18798 # appending ld.so.conf contents (and includes) to the search path.
18799 if test -f /etc/ld.so.conf; then
18800 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' ' '`
18801 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18802 fi
18803
18804 # We used to test for /lib/ld.so.1 and disable shared libraries on
18805 # powerpc, because MkLinux only supported shared libraries with the
18806 # GNU dynamic linker. Since this was broken with cross compilers,
18807 # most powerpc-linux boxes support dynamic linking these days and
18808 # people can always --disable-shared, the test was removed, and we
18809 # assume the GNU/Linux dynamic linker is in use.
18810 dynamic_linker='GNU/Linux ld.so'
18811 ;;
18812
18813 netbsd*)
18814 version_type=sunos
18815 need_lib_prefix=no
18816 need_version=no
18817 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18818 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
18819 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18820 dynamic_linker='NetBSD (a.out) ld.so'
18821 else
18822 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18823 soname_spec='$libname$release$shared_ext$major'
18824 dynamic_linker='NetBSD ld.elf_so'
18825 fi
18826 shlibpath_var=LD_LIBRARY_PATH
18827 shlibpath_overrides_runpath=yes
18828 hardcode_into_libs=yes
18829 ;;
18830
18831 newsos6)
18832 version_type=linux # correct to gnu/linux during the next big refactor
18833 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18834 shlibpath_var=LD_LIBRARY_PATH
18835 shlibpath_overrides_runpath=yes
18836 ;;
18837
18838 *nto* | *qnx*)
18839 version_type=qnx
18840 need_lib_prefix=no
18841 need_version=no
18842 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18843 soname_spec='$libname$release$shared_ext$major'
18844 shlibpath_var=LD_LIBRARY_PATH
18845 shlibpath_overrides_runpath=no
18846 hardcode_into_libs=yes
18847 dynamic_linker='ldqnx.so'
18848 ;;
18849
18850 openbsd*)
18851 version_type=sunos
18852 sys_lib_dlsearch_path_spec=/usr/lib
18853 need_lib_prefix=no
18854 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
18855 need_version=no
18856 else
18857 need_version=yes
18858 fi
18859 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
18860 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18861 shlibpath_var=LD_LIBRARY_PATH
18862 shlibpath_overrides_runpath=yes
18863 ;;
18864
18865 os2*)
18866 libname_spec='$name'
18867 version_type=windows
18868 shrext_cmds=.dll
18869 need_version=no
18870 need_lib_prefix=no
18871 # OS/2 can only load a DLL with a base name of 8 characters or less.
18872 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
18873 v=$($ECHO $release$versuffix | tr -d .-);
18874 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
18875 $ECHO $n$v`$shared_ext'
18876 library_names_spec='${libname}_dll.$libext'
18877 dynamic_linker='OS/2 ld.exe'
18878 shlibpath_var=BEGINLIBPATH
18879 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18880 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18881 postinstall_cmds='base_file=`basename \$file`~
18882 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
18883 dldir=$destdir/`dirname \$dlpath`~
18884 test -d \$dldir || mkdir -p \$dldir~
18885 $install_prog $dir/$dlname \$dldir/$dlname~
18886 chmod a+x \$dldir/$dlname~
18887 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
18888 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
18889 fi'
18890 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
18891 dlpath=$dir/\$dldll~
18892 $RM \$dlpath'
18893 ;;
18894
18895 osf3* | osf4* | osf5*)
18896 version_type=osf
18897 need_lib_prefix=no
18898 need_version=no
18899 soname_spec='$libname$release$shared_ext$major'
18900 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18901 shlibpath_var=LD_LIBRARY_PATH
18902 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18903 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18904 ;;
18905
18906 rdos*)
18907 dynamic_linker=no
18908 ;;
18909
18910 solaris*)
18911 version_type=linux # correct to gnu/linux during the next big refactor
18912 need_lib_prefix=no
18913 need_version=no
18914 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18915 soname_spec='$libname$release$shared_ext$major'
18916 shlibpath_var=LD_LIBRARY_PATH
18917 shlibpath_overrides_runpath=yes
18918 hardcode_into_libs=yes
18919 # ldd complains unless libraries are executable
18920 postinstall_cmds='chmod +x $lib'
18921 ;;
18922
18923 sunos4*)
18924 version_type=sunos
18925 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
18926 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18927 shlibpath_var=LD_LIBRARY_PATH
18928 shlibpath_overrides_runpath=yes
18929 if test yes = "$with_gnu_ld"; then
18930 need_lib_prefix=no
18931 fi
18932 need_version=yes
18933 ;;
18934
18935 sysv4 | sysv4.3*)
18936 version_type=linux # correct to gnu/linux during the next big refactor
18937 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18938 soname_spec='$libname$release$shared_ext$major'
18939 shlibpath_var=LD_LIBRARY_PATH
18940 case $host_vendor in
18941 sni)
18942 shlibpath_overrides_runpath=no
18943 need_lib_prefix=no
18944 runpath_var=LD_RUN_PATH
18945 ;;
18946 siemens)
18947 need_lib_prefix=no
18948 ;;
18949 motorola)
18950 need_lib_prefix=no
18951 need_version=no
18952 shlibpath_overrides_runpath=no
18953 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18954 ;;
18955 esac
18956 ;;
18957
18958 sysv4*MP*)
18959 if test -d /usr/nec; then
18960 version_type=linux # correct to gnu/linux during the next big refactor
18961 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
18962 soname_spec='$libname$shared_ext.$major'
18963 shlibpath_var=LD_LIBRARY_PATH
18964 fi
18965 ;;
18966
18967 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18968 version_type=sco
18969 need_lib_prefix=no
18970 need_version=no
18971 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
18972 soname_spec='$libname$release$shared_ext$major'
18973 shlibpath_var=LD_LIBRARY_PATH
18974 shlibpath_overrides_runpath=yes
18975 hardcode_into_libs=yes
18976 if test yes = "$with_gnu_ld"; then
18977 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18978 else
18979 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18980 case $host_os in
18981 sco3.2v5*)
18982 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18983 ;;
18984 esac
18985 fi
18986 sys_lib_dlsearch_path_spec='/usr/lib'
18987 ;;
18988
18989 tpf*)
18990 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
18991 version_type=linux # correct to gnu/linux during the next big refactor
18992 need_lib_prefix=no
18993 need_version=no
18994 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18995 shlibpath_var=LD_LIBRARY_PATH
18996 shlibpath_overrides_runpath=no
18997 hardcode_into_libs=yes
18998 ;;
18999
19000 uts4*)
19001 version_type=linux # correct to gnu/linux during the next big refactor
19002 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19003 soname_spec='$libname$release$shared_ext$major'
19004 shlibpath_var=LD_LIBRARY_PATH
19005 ;;
19006
19007 *)
19008 dynamic_linker=no
19009 ;;
19010 esac
19011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
19012 printf "%s\n" "$dynamic_linker" >&6; }
19013 test no = "$dynamic_linker" && can_build_shared=no
19014
19015 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19016 if test yes = "$GCC"; then
19017 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19018 fi
19019
19020 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
19021 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
19022 fi
19023
19024 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
19025 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
19026 fi
19027
19028 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
19029 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
19030
19031 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
19032 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
19033
19034 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
19035 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
19036
19037
19038
19039
19040
19041
19042
19043
19044
19045
19046
19047
19048
19049
19050
19051
19052
19053
19054
19055
19056
19057
19058
19059
19060
19061
19062
19063
19064
19065
19066
19067
19068
19069
19070
19071
19072
19073
19074
19075
19076
19077
19078
19079
19080
19081
19082
19083
19084
19085
19086
19087
19088
19089
19090
19091
19092
19093
19094
19095
19096
19097
19098
19099
19100
19101
19102
19103
19104
19105
19106
19107
19108
19109
19110
19111
19112
19113
19114
19115
19116
19117
19118
19119
19120
19121
19122
19123
19124
19125
19126
19127
19128
19129
19130
19131
19132
19133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
19134 printf %s "checking how to hardcode library paths into programs... " >&6; }
19135 hardcode_action=
19136 if test -n "$hardcode_libdir_flag_spec" ||
19137 test -n "$runpath_var" ||
19138 test yes = "$hardcode_automatic"; then
19139
19140 # We can hardcode non-existent directories.
19141 if test no != "$hardcode_direct" &&
19142 # If the only mechanism to avoid hardcoding is shlibpath_var, we
19143 # have to relink, otherwise we might link with an installed library
19144 # when we should be linking with a yet-to-be-installed one
19145 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
19146 test no != "$hardcode_minus_L"; then
19147 # Linking always hardcodes the temporary library directory.
19148 hardcode_action=relink
19149 else
19150 # We can link without hardcoding, and we can hardcode nonexisting dirs.
19151 hardcode_action=immediate
19152 fi
19153 else
19154 # We cannot hardcode anything, or else we can only hardcode existing
19155 # directories.
19156 hardcode_action=unsupported
19157 fi
19158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
19159 printf "%s\n" "$hardcode_action" >&6; }
19160
19161 if test relink = "$hardcode_action" ||
19162 test yes = "$inherit_rpath"; then
19163 # Fast installation is not supported
19164 enable_fast_install=no
19165 elif test yes = "$shlibpath_overrides_runpath" ||
19166 test no = "$enable_shared"; then
19167 # Fast installation is not necessary
19168 enable_fast_install=needless
19169 fi
19170
19171
19172
19173
19174
19175
19176 if test yes != "$enable_dlopen"; then
19177 enable_dlopen=unknown
19178 enable_dlopen_self=unknown
19179 enable_dlopen_self_static=unknown
19180 else
19181 lt_cv_dlopen=no
19182 lt_cv_dlopen_libs=
19183
19184 case $host_os in
19185 beos*)
19186 lt_cv_dlopen=load_add_on
19187 lt_cv_dlopen_libs=
19188 lt_cv_dlopen_self=yes
19189 ;;
19190
19191 mingw* | windows* | pw32* | cegcc*)
19192 lt_cv_dlopen=LoadLibrary
19193 lt_cv_dlopen_libs=
19194 ;;
19195
19196 cygwin*)
19197 lt_cv_dlopen=dlopen
19198 lt_cv_dlopen_libs=
19199 ;;
19200
19201 darwin*)
19202 # if libdl is installed we need to link against it
19203 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
19204 printf %s "checking for dlopen in -ldl... " >&6; }
19205 if test ${ac_cv_lib_dl_dlopen+y}
19206 then :
19207 printf %s "(cached) " >&6
19208 else case e in #(
19209 e) ac_check_lib_save_LIBS=$LIBS
19210 LIBS="-ldl $LIBS"
19211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19212 /* end confdefs.h. */
19213
19214 /* Override any GCC internal prototype to avoid an error.
19215 Use char because int might match the return type of a GCC
19216 builtin and then its argument prototype would still apply.
19217 The 'extern "C"' is for builds by C++ compilers;
19218 although this is not generally supported in C code supporting it here
19219 has little cost and some practical benefit (sr 110532). */
19220 #ifdef __cplusplus
19221 extern "C"
19222 #endif
19223 char dlopen (void);
19224 int
19225 main (void)
19226 {
19227 return dlopen ();
19228 ;
19229 return 0;
19230 }
19231 _ACEOF
19232 if ac_fn_c_try_link "$LINENO"
19233 then :
19234 ac_cv_lib_dl_dlopen=yes
19235 else case e in #(
19236 e) ac_cv_lib_dl_dlopen=no ;;
19237 esac
19238 fi
19239 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19240 conftest$ac_exeext conftest.$ac_ext
19241 LIBS=$ac_check_lib_save_LIBS ;;
19242 esac
19243 fi
19244 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
19245 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
19246 if test "x$ac_cv_lib_dl_dlopen" = xyes
19247 then :
19248 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
19249 else case e in #(
19250 e)
19251 lt_cv_dlopen=dyld
19252 lt_cv_dlopen_libs=
19253 lt_cv_dlopen_self=yes
19254 ;;
19255 esac
19256 fi
19257
19258 ;;
19259
19260 tpf*)
19261 # Don't try to run any link tests for TPF. We know it's impossible
19262 # because TPF is a cross-compiler, and we know how we open DSOs.
19263 lt_cv_dlopen=dlopen
19264 lt_cv_dlopen_libs=
19265 lt_cv_dlopen_self=no
19266 ;;
19267
19268 *)
19269 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
19270 if test "x$ac_cv_func_shl_load" = xyes
19271 then :
19272 lt_cv_dlopen=shl_load
19273 else case e in #(
19274 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
19275 printf %s "checking for shl_load in -ldld... " >&6; }
19276 if test ${ac_cv_lib_dld_shl_load+y}
19277 then :
19278 printf %s "(cached) " >&6
19279 else case e in #(
19280 e) ac_check_lib_save_LIBS=$LIBS
19281 LIBS="-ldld $LIBS"
19282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19283 /* end confdefs.h. */
19284
19285 /* Override any GCC internal prototype to avoid an error.
19286 Use char because int might match the return type of a GCC
19287 builtin and then its argument prototype would still apply.
19288 The 'extern "C"' is for builds by C++ compilers;
19289 although this is not generally supported in C code supporting it here
19290 has little cost and some practical benefit (sr 110532). */
19291 #ifdef __cplusplus
19292 extern "C"
19293 #endif
19294 char shl_load (void);
19295 int
19296 main (void)
19297 {
19298 return shl_load ();
19299 ;
19300 return 0;
19301 }
19302 _ACEOF
19303 if ac_fn_c_try_link "$LINENO"
19304 then :
19305 ac_cv_lib_dld_shl_load=yes
19306 else case e in #(
19307 e) ac_cv_lib_dld_shl_load=no ;;
19308 esac
19309 fi
19310 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19311 conftest$ac_exeext conftest.$ac_ext
19312 LIBS=$ac_check_lib_save_LIBS ;;
19313 esac
19314 fi
19315 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
19316 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
19317 if test "x$ac_cv_lib_dld_shl_load" = xyes
19318 then :
19319 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
19320 else case e in #(
19321 e) ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
19322 if test "x$ac_cv_func_dlopen" = xyes
19323 then :
19324 lt_cv_dlopen=dlopen
19325 else case e in #(
19326 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
19327 printf %s "checking for dlopen in -ldl... " >&6; }
19328 if test ${ac_cv_lib_dl_dlopen+y}
19329 then :
19330 printf %s "(cached) " >&6
19331 else case e in #(
19332 e) ac_check_lib_save_LIBS=$LIBS
19333 LIBS="-ldl $LIBS"
19334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19335 /* end confdefs.h. */
19336
19337 /* Override any GCC internal prototype to avoid an error.
19338 Use char because int might match the return type of a GCC
19339 builtin and then its argument prototype would still apply.
19340 The 'extern "C"' is for builds by C++ compilers;
19341 although this is not generally supported in C code supporting it here
19342 has little cost and some practical benefit (sr 110532). */
19343 #ifdef __cplusplus
19344 extern "C"
19345 #endif
19346 char dlopen (void);
19347 int
19348 main (void)
19349 {
19350 return dlopen ();
19351 ;
19352 return 0;
19353 }
19354 _ACEOF
19355 if ac_fn_c_try_link "$LINENO"
19356 then :
19357 ac_cv_lib_dl_dlopen=yes
19358 else case e in #(
19359 e) ac_cv_lib_dl_dlopen=no ;;
19360 esac
19361 fi
19362 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19363 conftest$ac_exeext conftest.$ac_ext
19364 LIBS=$ac_check_lib_save_LIBS ;;
19365 esac
19366 fi
19367 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
19368 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
19369 if test "x$ac_cv_lib_dl_dlopen" = xyes
19370 then :
19371 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
19372 else case e in #(
19373 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
19374 printf %s "checking for dlopen in -lsvld... " >&6; }
19375 if test ${ac_cv_lib_svld_dlopen+y}
19376 then :
19377 printf %s "(cached) " >&6
19378 else case e in #(
19379 e) ac_check_lib_save_LIBS=$LIBS
19380 LIBS="-lsvld $LIBS"
19381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19382 /* end confdefs.h. */
19383
19384 /* Override any GCC internal prototype to avoid an error.
19385 Use char because int might match the return type of a GCC
19386 builtin and then its argument prototype would still apply.
19387 The 'extern "C"' is for builds by C++ compilers;
19388 although this is not generally supported in C code supporting it here
19389 has little cost and some practical benefit (sr 110532). */
19390 #ifdef __cplusplus
19391 extern "C"
19392 #endif
19393 char dlopen (void);
19394 int
19395 main (void)
19396 {
19397 return dlopen ();
19398 ;
19399 return 0;
19400 }
19401 _ACEOF
19402 if ac_fn_c_try_link "$LINENO"
19403 then :
19404 ac_cv_lib_svld_dlopen=yes
19405 else case e in #(
19406 e) ac_cv_lib_svld_dlopen=no ;;
19407 esac
19408 fi
19409 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19410 conftest$ac_exeext conftest.$ac_ext
19411 LIBS=$ac_check_lib_save_LIBS ;;
19412 esac
19413 fi
19414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
19415 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
19416 if test "x$ac_cv_lib_svld_dlopen" = xyes
19417 then :
19418 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
19419 else case e in #(
19420 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
19421 printf %s "checking for dld_link in -ldld... " >&6; }
19422 if test ${ac_cv_lib_dld_dld_link+y}
19423 then :
19424 printf %s "(cached) " >&6
19425 else case e in #(
19426 e) ac_check_lib_save_LIBS=$LIBS
19427 LIBS="-ldld $LIBS"
19428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19429 /* end confdefs.h. */
19430
19431 /* Override any GCC internal prototype to avoid an error.
19432 Use char because int might match the return type of a GCC
19433 builtin and then its argument prototype would still apply.
19434 The 'extern "C"' is for builds by C++ compilers;
19435 although this is not generally supported in C code supporting it here
19436 has little cost and some practical benefit (sr 110532). */
19437 #ifdef __cplusplus
19438 extern "C"
19439 #endif
19440 char dld_link (void);
19441 int
19442 main (void)
19443 {
19444 return dld_link ();
19445 ;
19446 return 0;
19447 }
19448 _ACEOF
19449 if ac_fn_c_try_link "$LINENO"
19450 then :
19451 ac_cv_lib_dld_dld_link=yes
19452 else case e in #(
19453 e) ac_cv_lib_dld_dld_link=no ;;
19454 esac
19455 fi
19456 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19457 conftest$ac_exeext conftest.$ac_ext
19458 LIBS=$ac_check_lib_save_LIBS ;;
19459 esac
19460 fi
19461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
19462 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
19463 if test "x$ac_cv_lib_dld_dld_link" = xyes
19464 then :
19465 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
19466 fi
19467
19468 ;;
19469 esac
19470 fi
19471
19472 ;;
19473 esac
19474 fi
19475
19476 ;;
19477 esac
19478 fi
19479
19480 ;;
19481 esac
19482 fi
19483
19484 ;;
19485 esac
19486 fi
19487
19488 ;;
19489 esac
19490
19491 if test no = "$lt_cv_dlopen"; then
19492 enable_dlopen=no
19493 else
19494 enable_dlopen=yes
19495 fi
19496
19497 case $lt_cv_dlopen in
19498 dlopen)
19499 save_CPPFLAGS=$CPPFLAGS
19500 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
19501
19502 save_LDFLAGS=$LDFLAGS
19503 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
19504
19505 save_LIBS=$LIBS
19506 LIBS="$lt_cv_dlopen_libs $LIBS"
19507
19508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
19509 printf %s "checking whether a program can dlopen itself... " >&6; }
19510 if test ${lt_cv_dlopen_self+y}
19511 then :
19512 printf %s "(cached) " >&6
19513 else case e in #(
19514 e) if test yes = "$cross_compiling"; then :
19515 lt_cv_dlopen_self=cross
19516 else
19517 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19518 lt_status=$lt_dlunknown
19519 cat > conftest.$ac_ext <<_LT_EOF
19520 #line $LINENO "configure"
19521 #include "confdefs.h"
19522
19523 #if HAVE_DLFCN_H
19524 #include <dlfcn.h>
19525 #endif
19526
19527 #include <stdio.h>
19528
19529 #ifdef RTLD_GLOBAL
19530 # define LT_DLGLOBAL RTLD_GLOBAL
19531 #else
19532 # ifdef DL_GLOBAL
19533 # define LT_DLGLOBAL DL_GLOBAL
19534 # else
19535 # define LT_DLGLOBAL 0
19536 # endif
19537 #endif
19538
19539 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19540 find out it does not work in some platform. */
19541 #ifndef LT_DLLAZY_OR_NOW
19542 # ifdef RTLD_LAZY
19543 # define LT_DLLAZY_OR_NOW RTLD_LAZY
19544 # else
19545 # ifdef DL_LAZY
19546 # define LT_DLLAZY_OR_NOW DL_LAZY
19547 # else
19548 # ifdef RTLD_NOW
19549 # define LT_DLLAZY_OR_NOW RTLD_NOW
19550 # else
19551 # ifdef DL_NOW
19552 # define LT_DLLAZY_OR_NOW DL_NOW
19553 # else
19554 # define LT_DLLAZY_OR_NOW 0
19555 # endif
19556 # endif
19557 # endif
19558 # endif
19559 #endif
19560
19561 /* When -fvisibility=hidden is used, assume the code has been annotated
19562 correspondingly for the symbols needed. */
19563 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
19564 int fnord (void) __attribute__((visibility("default")));
19565 #endif
19566
19567 int fnord (void) { return 42; }
19568 int main (void)
19569 {
19570 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19571 int status = $lt_dlunknown;
19572
19573 if (self)
19574 {
19575 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
19576 else
19577 {
19578 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19579 else puts (dlerror ());
19580 }
19581 /* dlclose (self); */
19582 }
19583 else
19584 puts (dlerror ());
19585
19586 return status;
19587 }
19588 _LT_EOF
19589 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
19590 (eval $ac_link) 2>&5
19591 ac_status=$?
19592 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19593 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
19594 (./conftest; exit; ) >&5 2>/dev/null
19595 lt_status=$?
19596 case x$lt_status in
19597 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
19598 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
19599 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
19600 esac
19601 else :
19602 # compilation failed
19603 lt_cv_dlopen_self=no
19604 fi
19605 fi
19606 rm -fr conftest*
19607
19608 ;;
19609 esac
19610 fi
19611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
19612 printf "%s\n" "$lt_cv_dlopen_self" >&6; }
19613
19614 if test yes = "$lt_cv_dlopen_self"; then
19615 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
19616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
19617 printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
19618 if test ${lt_cv_dlopen_self_static+y}
19619 then :
19620 printf %s "(cached) " >&6
19621 else case e in #(
19622 e) if test yes = "$cross_compiling"; then :
19623 lt_cv_dlopen_self_static=cross
19624 else
19625 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19626 lt_status=$lt_dlunknown
19627 cat > conftest.$ac_ext <<_LT_EOF
19628 #line $LINENO "configure"
19629 #include "confdefs.h"
19630
19631 #if HAVE_DLFCN_H
19632 #include <dlfcn.h>
19633 #endif
19634
19635 #include <stdio.h>
19636
19637 #ifdef RTLD_GLOBAL
19638 # define LT_DLGLOBAL RTLD_GLOBAL
19639 #else
19640 # ifdef DL_GLOBAL
19641 # define LT_DLGLOBAL DL_GLOBAL
19642 # else
19643 # define LT_DLGLOBAL 0
19644 # endif
19645 #endif
19646
19647 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19648 find out it does not work in some platform. */
19649 #ifndef LT_DLLAZY_OR_NOW
19650 # ifdef RTLD_LAZY
19651 # define LT_DLLAZY_OR_NOW RTLD_LAZY
19652 # else
19653 # ifdef DL_LAZY
19654 # define LT_DLLAZY_OR_NOW DL_LAZY
19655 # else
19656 # ifdef RTLD_NOW
19657 # define LT_DLLAZY_OR_NOW RTLD_NOW
19658 # else
19659 # ifdef DL_NOW
19660 # define LT_DLLAZY_OR_NOW DL_NOW
19661 # else
19662 # define LT_DLLAZY_OR_NOW 0
19663 # endif
19664 # endif
19665 # endif
19666 # endif
19667 #endif
19668
19669 /* When -fvisibility=hidden is used, assume the code has been annotated
19670 correspondingly for the symbols needed. */
19671 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
19672 int fnord (void) __attribute__((visibility("default")));
19673 #endif
19674
19675 int fnord (void) { return 42; }
19676 int main (void)
19677 {
19678 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19679 int status = $lt_dlunknown;
19680
19681 if (self)
19682 {
19683 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
19684 else
19685 {
19686 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19687 else puts (dlerror ());
19688 }
19689 /* dlclose (self); */
19690 }
19691 else
19692 puts (dlerror ());
19693
19694 return status;
19695 }
19696 _LT_EOF
19697 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
19698 (eval $ac_link) 2>&5
19699 ac_status=$?
19700 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19701 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
19702 (./conftest; exit; ) >&5 2>/dev/null
19703 lt_status=$?
19704 case x$lt_status in
19705 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
19706 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
19707 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
19708 esac
19709 else :
19710 # compilation failed
19711 lt_cv_dlopen_self_static=no
19712 fi
19713 fi
19714 rm -fr conftest*
19715
19716 ;;
19717 esac
19718 fi
19719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
19720 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
19721 fi
19722
19723 CPPFLAGS=$save_CPPFLAGS
19724 LDFLAGS=$save_LDFLAGS
19725 LIBS=$save_LIBS
19726 ;;
19727 esac
19728
19729 case $lt_cv_dlopen_self in
19730 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
19731 *) enable_dlopen_self=unknown ;;
19732 esac
19733
19734 case $lt_cv_dlopen_self_static in
19735 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
19736 *) enable_dlopen_self_static=unknown ;;
19737 esac
19738 fi
19739
19740
19741
19742
19743
19744
19745
19746
19747
19748
19749
19750
19751
19752
19753
19754
19755
19756 striplib=
19757 old_striplib=
19758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
19759 printf %s "checking whether stripping libraries is possible... " >&6; }
19760 if test -z "$STRIP"; then
19761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19762 printf "%s\n" "no" >&6; }
19763 else
19764 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
19765 old_striplib="$STRIP --strip-debug"
19766 striplib="$STRIP --strip-unneeded"
19767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19768 printf "%s\n" "yes" >&6; }
19769 else
19770 case $host_os in
19771 darwin*)
19772 # FIXME - insert some real tests, host_os isn't really good enough
19773 striplib="$STRIP -x"
19774 old_striplib="$STRIP -S"
19775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19776 printf "%s\n" "yes" >&6; }
19777 ;;
19778 freebsd*)
19779 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
19780 old_striplib="$STRIP --strip-debug"
19781 striplib="$STRIP --strip-unneeded"
19782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19783 printf "%s\n" "yes" >&6; }
19784 else
19785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19786 printf "%s\n" "no" >&6; }
19787 fi
19788 ;;
19789 *)
19790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19791 printf "%s\n" "no" >&6; }
19792 ;;
19793 esac
19794 fi
19795 fi
19796
19797
19798
19799
19800
19801
19802
19803
19804
19805
19806
19807
19808 # Report what library types will actually be built
19809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
19810 printf %s "checking if libtool supports shared libraries... " >&6; }
19811 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
19812 printf "%s\n" "$can_build_shared" >&6; }
19813
19814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
19815 printf %s "checking whether to build shared libraries... " >&6; }
19816 test no = "$can_build_shared" && enable_shared=no
19817
19818 # On AIX, shared libraries and static libraries use the same namespace, and
19819 # are all built from PIC.
19820 case $host_os in
19821 aix3*)
19822 test yes = "$enable_shared" && enable_static=no
19823 if test -n "$RANLIB"; then
19824 archive_cmds="$archive_cmds~\$RANLIB \$lib"
19825 postinstall_cmds='$RANLIB $lib'
19826 fi
19827 ;;
19828
19829 aix[4-9]*)
19830 if test ia64 != "$host_cpu"; then
19831 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
19832 yes,aix,yes) ;; # shared object as lib.so file only
19833 yes,svr4,*) ;; # shared object as lib.so archive member only
19834 yes,*) enable_static=no ;; # shared object in lib.a archive as well
19835 esac
19836 fi
19837 ;;
19838 esac
19839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
19840 printf "%s\n" "$enable_shared" >&6; }
19841
19842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
19843 printf %s "checking whether to build static libraries... " >&6; }
19844 # Make sure either enable_shared or enable_static is yes.
19845 test yes = "$enable_shared" || enable_static=yes
19846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
19847 printf "%s\n" "$enable_static" >&6; }
19848
19849
19850
19851
19852 fi
19853 ac_ext=c
19854 ac_cpp='$CPP $CPPFLAGS'
19855 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19856 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19857 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19858
19859 CC=$lt_save_CC
19860
19861
19862
19863
19864
19865
19866
19867
19868
19869
19870
19871
19872
19873
19874
19875 ac_config_commands="$ac_config_commands libtool"
19876
19877
19878
19879
19880 # Only expand once:
19881
19882
19883
19884
19885
19886 # Define a configure option for an alternate module directory
19887
19888 # Check whether --with-xorg-module-dir was given.
19889 if test ${with_xorg_module_dir+y}
19890 then :
19891 withval=$with_xorg_module_dir; moduledir="$withval"
19892 else case e in #(
19893 e) moduledir="$libdir/xorg/modules" ;;
19894 esac
19895 fi
19896
19897
19898 # Check whether --enable-dri was given.
19899 if test ${enable_dri+y}
19900 then :
19901 enableval=$enable_dri; DRI="$enableval"
19902 else case e in #(
19903 e) DRI=auto ;;
19904 esac
19905 fi
19906
19907
19908 # Check whether --enable-exa was given.
19909 if test ${enable_exa+y}
19910 then :
19911 enableval=$enable_exa; EXA="$enableval"
19912 else case e in #(
19913 e) EXA=yes ;;
19914 esac
19915 fi
19916
19917
19918 # Store the list of server defined optional extensions in REQUIRED_MODULES
19919
19920
19921 SAVE_CFLAGS="$CFLAGS"
19922 CFLAGS="$CFLAGS `$PKG_CONFIG --cflags xorg-server`"
19923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19924 /* end confdefs.h. */
19925
19926 #include "xorg-server.h"
19927 #if !defined RANDR
19928 #error RANDR not defined
19929 #endif
19930
19931 int
19932 main (void)
19933 {
19934
19935 ;
19936 return 0;
19937 }
19938 _ACEOF
19939 if ac_fn_c_try_compile "$LINENO"
19940 then :
19941 _EXT_CHECK=yes
19942 else case e in #(
19943 e) _EXT_CHECK=no ;;
19944 esac
19945 fi
19946 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19947 CFLAGS="$SAVE_CFLAGS"
19948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if RANDR is defined" >&5
19949 printf %s "checking if RANDR is defined... " >&6; }
19950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
19951 printf "%s\n" "$_EXT_CHECK" >&6; }
19952 if test "$_EXT_CHECK" != no; then
19953 REQUIRED_MODULES="$REQUIRED_MODULES randrproto"
19954 fi
19955
19956
19957
19958 SAVE_CFLAGS="$CFLAGS"
19959 CFLAGS="$CFLAGS `$PKG_CONFIG --cflags xorg-server`"
19960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19961 /* end confdefs.h. */
19962
19963 #include "xorg-server.h"
19964 #if !defined RENDER
19965 #error RENDER not defined
19966 #endif
19967
19968 int
19969 main (void)
19970 {
19971
19972 ;
19973 return 0;
19974 }
19975 _ACEOF
19976 if ac_fn_c_try_compile "$LINENO"
19977 then :
19978 _EXT_CHECK=yes
19979 else case e in #(
19980 e) _EXT_CHECK=no ;;
19981 esac
19982 fi
19983 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19984 CFLAGS="$SAVE_CFLAGS"
19985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if RENDER is defined" >&5
19986 printf %s "checking if RENDER is defined... " >&6; }
19987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
19988 printf "%s\n" "$_EXT_CHECK" >&6; }
19989 if test "$_EXT_CHECK" != no; then
19990 REQUIRED_MODULES="$REQUIRED_MODULES renderproto"
19991 fi
19992
19993
19994
19995 SAVE_CFLAGS="$CFLAGS"
19996 CFLAGS="$CFLAGS `$PKG_CONFIG --cflags xorg-server`"
19997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19998 /* end confdefs.h. */
19999
20000 #include "xorg-server.h"
20001 #if !defined XV
20002 #error XV not defined
20003 #endif
20004
20005 int
20006 main (void)
20007 {
20008
20009 ;
20010 return 0;
20011 }
20012 _ACEOF
20013 if ac_fn_c_try_compile "$LINENO"
20014 then :
20015 _EXT_CHECK=yes
20016 else case e in #(
20017 e) _EXT_CHECK=no ;;
20018 esac
20019 fi
20020 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20021 CFLAGS="$SAVE_CFLAGS"
20022 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if XV is defined" >&5
20023 printf %s "checking if XV is defined... " >&6; }
20024 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
20025 printf "%s\n" "$_EXT_CHECK" >&6; }
20026 if test "$_EXT_CHECK" != no; then
20027 REQUIRED_MODULES="$REQUIRED_MODULES videoproto"
20028 fi
20029
20030
20031
20032 SAVE_CFLAGS="$CFLAGS"
20033 CFLAGS="$CFLAGS `$PKG_CONFIG --cflags xorg-server`"
20034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20035 /* end confdefs.h. */
20036
20037 #include "xorg-server.h"
20038 #if !defined DPMSExtension
20039 #error DPMSExtension not defined
20040 #endif
20041
20042 int
20043 main (void)
20044 {
20045
20046 ;
20047 return 0;
20048 }
20049 _ACEOF
20050 if ac_fn_c_try_compile "$LINENO"
20051 then :
20052 _EXT_CHECK=yes
20053 else case e in #(
20054 e) _EXT_CHECK=no ;;
20055 esac
20056 fi
20057 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20058 CFLAGS="$SAVE_CFLAGS"
20059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if DPMSExtension is defined" >&5
20060 printf %s "checking if DPMSExtension is defined... " >&6; }
20061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
20062 printf "%s\n" "$_EXT_CHECK" >&6; }
20063 if test "$_EXT_CHECK" != no; then
20064 REQUIRED_MODULES="$REQUIRED_MODULES xextproto"
20065 fi
20066
20067
20068 # Obtain compiler/linker options for the driver dependencies
20069
20070 pkg_failed=no
20071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XORG" >&5
20072 printf %s "checking for XORG... " >&6; }
20073
20074 if test -n "$XORG_CFLAGS"; then
20075 pkg_cv_XORG_CFLAGS="$XORG_CFLAGS"
20076 elif test -n "$PKG_CONFIG"; then
20077 if test -n "$PKG_CONFIG" && \
20078 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.18 xproto fontsproto \$REQUIRED_MODULES\""; } >&5
20079 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.18 xproto fontsproto $REQUIRED_MODULES") 2>&5
20080 ac_status=$?
20081 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20082 test $ac_status = 0; }; then
20083 pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.18 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
20084 test "x$?" != "x0" && pkg_failed=yes
20085 else
20086 pkg_failed=yes
20087 fi
20088 else
20089 pkg_failed=untried
20090 fi
20091 if test -n "$XORG_LIBS"; then
20092 pkg_cv_XORG_LIBS="$XORG_LIBS"
20093 elif test -n "$PKG_CONFIG"; then
20094 if test -n "$PKG_CONFIG" && \
20095 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.18 xproto fontsproto \$REQUIRED_MODULES\""; } >&5
20096 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.18 xproto fontsproto $REQUIRED_MODULES") 2>&5
20097 ac_status=$?
20098 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20099 test $ac_status = 0; }; then
20100 pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.18 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
20101 test "x$?" != "x0" && pkg_failed=yes
20102 else
20103 pkg_failed=yes
20104 fi
20105 else
20106 pkg_failed=untried
20107 fi
20108
20109
20110
20111 if test $pkg_failed = yes; then
20112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20113 printf "%s\n" "no" >&6; }
20114
20115 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20116 _pkg_short_errors_supported=yes
20117 else
20118 _pkg_short_errors_supported=no
20119 fi
20120 if test $_pkg_short_errors_supported = yes; then
20121 XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xorg-server >= 1.18 xproto fontsproto $REQUIRED_MODULES" 2>&1`
20122 else
20123 XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xorg-server >= 1.18 xproto fontsproto $REQUIRED_MODULES" 2>&1`
20124 fi
20125 # Put the nasty error message in config.log where it belongs
20126 echo "$XORG_PKG_ERRORS" >&5
20127
20128 as_fn_error $? "Package requirements (xorg-server >= 1.18 xproto fontsproto $REQUIRED_MODULES) were not met:
20129
20130 $XORG_PKG_ERRORS
20131
20132 Consider adjusting the PKG_CONFIG_PATH environment variable if you
20133 installed software in a non-standard prefix.
20134
20135 Alternatively, you may set the environment variables XORG_CFLAGS
20136 and XORG_LIBS to avoid the need to call pkg-config.
20137 See the pkg-config man page for more details." "$LINENO" 5
20138 elif test $pkg_failed = untried; then
20139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20140 printf "%s\n" "no" >&6; }
20141 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
20142 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
20143 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
20144 is in your PATH or set the PKG_CONFIG environment variable to the full
20145 path to pkg-config.
20146
20147 Alternatively, you may set the environment variables XORG_CFLAGS
20148 and XORG_LIBS to avoid the need to call pkg-config.
20149 See the pkg-config man page for more details.
20150
20151 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
20152 See 'config.log' for more details" "$LINENO" 5; }
20153 else
20154 XORG_CFLAGS=$pkg_cv_XORG_CFLAGS
20155 XORG_LIBS=$pkg_cv_XORG_LIBS
20156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20157 printf "%s\n" "yes" >&6; }
20158
20159 fi
20160
20161 pkg_failed=no
20162 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XEXT" >&5
20163 printf %s "checking for XEXT... " >&6; }
20164
20165 if test -n "$XEXT_CFLAGS"; then
20166 pkg_cv_XEXT_CFLAGS="$XEXT_CFLAGS"
20167 elif test -n "$PKG_CONFIG"; then
20168 if test -n "$PKG_CONFIG" && \
20169 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xextproto >= 7.0.99.1\""; } >&5
20170 ($PKG_CONFIG --exists --print-errors "xextproto >= 7.0.99.1") 2>&5
20171 ac_status=$?
20172 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20173 test $ac_status = 0; }; then
20174 pkg_cv_XEXT_CFLAGS=`$PKG_CONFIG --cflags "xextproto >= 7.0.99.1" 2>/dev/null`
20175 test "x$?" != "x0" && pkg_failed=yes
20176 else
20177 pkg_failed=yes
20178 fi
20179 else
20180 pkg_failed=untried
20181 fi
20182 if test -n "$XEXT_LIBS"; then
20183 pkg_cv_XEXT_LIBS="$XEXT_LIBS"
20184 elif test -n "$PKG_CONFIG"; then
20185 if test -n "$PKG_CONFIG" && \
20186 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xextproto >= 7.0.99.1\""; } >&5
20187 ($PKG_CONFIG --exists --print-errors "xextproto >= 7.0.99.1") 2>&5
20188 ac_status=$?
20189 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20190 test $ac_status = 0; }; then
20191 pkg_cv_XEXT_LIBS=`$PKG_CONFIG --libs "xextproto >= 7.0.99.1" 2>/dev/null`
20192 test "x$?" != "x0" && pkg_failed=yes
20193 else
20194 pkg_failed=yes
20195 fi
20196 else
20197 pkg_failed=untried
20198 fi
20199
20200
20201
20202 if test $pkg_failed = yes; then
20203 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20204 printf "%s\n" "no" >&6; }
20205
20206 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20207 _pkg_short_errors_supported=yes
20208 else
20209 _pkg_short_errors_supported=no
20210 fi
20211 if test $_pkg_short_errors_supported = yes; then
20212 XEXT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xextproto >= 7.0.99.1" 2>&1`
20213 else
20214 XEXT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xextproto >= 7.0.99.1" 2>&1`
20215 fi
20216 # Put the nasty error message in config.log where it belongs
20217 echo "$XEXT_PKG_ERRORS" >&5
20218
20219 HAVE_XEXTPROTO_71="no"
20220 elif test $pkg_failed = untried; then
20221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20222 printf "%s\n" "no" >&6; }
20223 HAVE_XEXTPROTO_71="no"
20224 else
20225 XEXT_CFLAGS=$pkg_cv_XEXT_CFLAGS
20226 XEXT_LIBS=$pkg_cv_XEXT_LIBS
20227 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20228 printf "%s\n" "yes" >&6; }
20229 HAVE_XEXTPROTO_71="yes";
20230 printf "%s\n" "#define HAVE_XEXTPROTO_71 1" >>confdefs.h
20231
20232 fi
20233 if test "$HAVE_XEXTPROTO_71" = "yes" ; then
20234 HAVE_XEXTPROTO_71_TRUE=
20235 HAVE_XEXTPROTO_71_FALSE='#'
20236 else
20237 HAVE_XEXTPROTO_71_TRUE='#'
20238 HAVE_XEXTPROTO_71_FALSE=
20239 fi
20240
20241 sdkdir=`$PKG_CONFIG --variable=sdkdir xorg-server`
20242
20243 # Checks for libraries.
20244
20245 if test "$DRI" != no; then
20246 as_ac_File=`printf "%s\n" "ac_cv_file_${sdkdir}/dri.h" | sed "$as_sed_sh"`
20247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${sdkdir}/dri.h" >&5
20248 printf %s "checking for ${sdkdir}/dri.h... " >&6; }
20249 if eval test \${$as_ac_File+y}
20250 then :
20251 printf %s "(cached) " >&6
20252 else case e in #(
20253 e) test "$cross_compiling" = yes &&
20254 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
20255 if test -r "${sdkdir}/dri.h"; then
20256 eval "$as_ac_File=yes"
20257 else
20258 eval "$as_ac_File=no"
20259 fi ;;
20260 esac
20261 fi
20262 eval ac_res=\$$as_ac_File
20263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20264 printf "%s\n" "$ac_res" >&6; }
20265 if eval test \"x\$"$as_ac_File"\" = x"yes"
20266 then :
20267 have_dri_h="yes"
20268 else case e in #(
20269 e) have_dri_h="no" ;;
20270 esac
20271 fi
20272
20273 as_ac_File=`printf "%s\n" "ac_cv_file_${sdkdir}/sarea.h" | sed "$as_sed_sh"`
20274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${sdkdir}/sarea.h" >&5
20275 printf %s "checking for ${sdkdir}/sarea.h... " >&6; }
20276 if eval test \${$as_ac_File+y}
20277 then :
20278 printf %s "(cached) " >&6
20279 else case e in #(
20280 e) test "$cross_compiling" = yes &&
20281 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
20282 if test -r "${sdkdir}/sarea.h"; then
20283 eval "$as_ac_File=yes"
20284 else
20285 eval "$as_ac_File=no"
20286 fi ;;
20287 esac
20288 fi
20289 eval ac_res=\$$as_ac_File
20290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20291 printf "%s\n" "$ac_res" >&6; }
20292 if eval test \"x\$"$as_ac_File"\" = x"yes"
20293 then :
20294 have_sarea_h="yes"
20295 else case e in #(
20296 e) have_sarea_h="no" ;;
20297 esac
20298 fi
20299
20300 as_ac_File=`printf "%s\n" "ac_cv_file_${sdkdir}/dristruct.h" | sed "$as_sed_sh"`
20301 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${sdkdir}/dristruct.h" >&5
20302 printf %s "checking for ${sdkdir}/dristruct.h... " >&6; }
20303 if eval test \${$as_ac_File+y}
20304 then :
20305 printf %s "(cached) " >&6
20306 else case e in #(
20307 e) test "$cross_compiling" = yes &&
20308 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
20309 if test -r "${sdkdir}/dristruct.h"; then
20310 eval "$as_ac_File=yes"
20311 else
20312 eval "$as_ac_File=no"
20313 fi ;;
20314 esac
20315 fi
20316 eval ac_res=\$$as_ac_File
20317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20318 printf "%s\n" "$ac_res" >&6; }
20319 if eval test \"x\$"$as_ac_File"\" = x"yes"
20320 then :
20321 have_dristruct_h="yes"
20322 else case e in #(
20323 e) have_dristruct_h="no" ;;
20324 esac
20325 fi
20326
20327 as_ac_File=`printf "%s\n" "ac_cv_file_${sdkdir}/damage.h" | sed "$as_sed_sh"`
20328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${sdkdir}/damage.h" >&5
20329 printf %s "checking for ${sdkdir}/damage.h... " >&6; }
20330 if eval test \${$as_ac_File+y}
20331 then :
20332 printf %s "(cached) " >&6
20333 else case e in #(
20334 e) test "$cross_compiling" = yes &&
20335 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
20336 if test -r "${sdkdir}/damage.h"; then
20337 eval "$as_ac_File=yes"
20338 else
20339 eval "$as_ac_File=no"
20340 fi ;;
20341 esac
20342 fi
20343 eval ac_res=\$$as_ac_File
20344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20345 printf "%s\n" "$ac_res" >&6; }
20346 if eval test \"x\$"$as_ac_File"\" = x"yes"
20347 then :
20348 have_damage_h="yes"
20349 else case e in #(
20350 e) have_damage_h="no" ;;
20351 esac
20352 fi
20353
20354 fi
20355
20356 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to include DRI support" >&5
20357 printf %s "checking whether to include DRI support... " >&6; }
20358 if test x$DRI = xauto; then
20359 if test "$have_dri_h" = yes -a \
20360 "$have_sarea_h" = yes -a \
20361 "$have_dristruct_h" = yes; then
20362 DRI="yes"
20363 else
20364 DRI="no"
20365 fi
20366 fi
20367 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DRI" >&5
20368 printf "%s\n" "$DRI" >&6; }
20369
20370 if test x$DRI = xyes; then
20371 DRI_TRUE=
20372 DRI_FALSE='#'
20373 else
20374 DRI_TRUE='#'
20375 DRI_FALSE=
20376 fi
20377
20378 if test "$DRI" = yes; then
20379
20380 pkg_failed=no
20381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for DRI" >&5
20382 printf %s "checking for DRI... " >&6; }
20383
20384 if test -n "$DRI_CFLAGS"; then
20385 pkg_cv_DRI_CFLAGS="$DRI_CFLAGS"
20386 elif test -n "$PKG_CONFIG"; then
20387 if test -n "$PKG_CONFIG" && \
20388 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 2.2 xf86driproto\""; } >&5
20389 ($PKG_CONFIG --exists --print-errors "libdrm >= 2.2 xf86driproto") 2>&5
20390 ac_status=$?
20391 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20392 test $ac_status = 0; }; then
20393 pkg_cv_DRI_CFLAGS=`$PKG_CONFIG --cflags "libdrm >= 2.2 xf86driproto" 2>/dev/null`
20394 test "x$?" != "x0" && pkg_failed=yes
20395 else
20396 pkg_failed=yes
20397 fi
20398 else
20399 pkg_failed=untried
20400 fi
20401 if test -n "$DRI_LIBS"; then
20402 pkg_cv_DRI_LIBS="$DRI_LIBS"
20403 elif test -n "$PKG_CONFIG"; then
20404 if test -n "$PKG_CONFIG" && \
20405 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 2.2 xf86driproto\""; } >&5
20406 ($PKG_CONFIG --exists --print-errors "libdrm >= 2.2 xf86driproto") 2>&5
20407 ac_status=$?
20408 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20409 test $ac_status = 0; }; then
20410 pkg_cv_DRI_LIBS=`$PKG_CONFIG --libs "libdrm >= 2.2 xf86driproto" 2>/dev/null`
20411 test "x$?" != "x0" && pkg_failed=yes
20412 else
20413 pkg_failed=yes
20414 fi
20415 else
20416 pkg_failed=untried
20417 fi
20418
20419
20420
20421 if test $pkg_failed = yes; then
20422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20423 printf "%s\n" "no" >&6; }
20424
20425 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20426 _pkg_short_errors_supported=yes
20427 else
20428 _pkg_short_errors_supported=no
20429 fi
20430 if test $_pkg_short_errors_supported = yes; then
20431 DRI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdrm >= 2.2 xf86driproto" 2>&1`
20432 else
20433 DRI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdrm >= 2.2 xf86driproto" 2>&1`
20434 fi
20435 # Put the nasty error message in config.log where it belongs
20436 echo "$DRI_PKG_ERRORS" >&5
20437
20438 as_fn_error $? "Package requirements (libdrm >= 2.2 xf86driproto) were not met:
20439
20440 $DRI_PKG_ERRORS
20441
20442 Consider adjusting the PKG_CONFIG_PATH environment variable if you
20443 installed software in a non-standard prefix.
20444
20445 Alternatively, you may set the environment variables DRI_CFLAGS
20446 and DRI_LIBS to avoid the need to call pkg-config.
20447 See the pkg-config man page for more details." "$LINENO" 5
20448 elif test $pkg_failed = untried; then
20449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20450 printf "%s\n" "no" >&6; }
20451 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
20452 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
20453 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
20454 is in your PATH or set the PKG_CONFIG environment variable to the full
20455 path to pkg-config.
20456
20457 Alternatively, you may set the environment variables DRI_CFLAGS
20458 and DRI_LIBS to avoid the need to call pkg-config.
20459 See the pkg-config man page for more details.
20460
20461 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
20462 See 'config.log' for more details" "$LINENO" 5; }
20463 else
20464 DRI_CFLAGS=$pkg_cv_DRI_CFLAGS
20465 DRI_LIBS=$pkg_cv_DRI_LIBS
20466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20467 printf "%s\n" "yes" >&6; }
20468
20469 fi
20470
20471 printf "%s\n" "#define XF86DRI 1" >>confdefs.h
20472
20473
20474 printf "%s\n" "#define XF86DRI_DEVEL 1" >>confdefs.h
20475
20476 fi
20477
20478 # Note that this is sort of inverted from drivers/ati/Imakefile in
20479 # the monolith. We test for foo, not for !foo (i.e. ATMISC_CPIO, not
20480 # ATIMISC_AVOID_CPIO), but the defines are negative. So beware. Oh yeah,
20481 # TV_OUT is the special case where it's a positive define, not AVOID_TV_OUT.
20482
20483 # AVOID_CPIO: Only x86, amd64, and alpha are cool with CPIO. It needs a
20484 # little-endian, undirected PIO space of at least 64kB.
20485 # AVOID_DGA: ???
20486 # ATI_TV_OUT: This only works on x86.
20487
20488 ATIMISC_CPIO=no
20489 ATIMISC_DGA=yes
20490 ATIMISC_TV_OUT=no
20491
20492 case $host_cpu in
20493 i*86)
20494 ATIMISC_TV_OUT=yes
20495 ATIMISC_CPIO=yes
20496 ;;
20497 x86_64|amd64|alpha|ia64)
20498 ATIMISC_CPIO=yes
20499 ;;
20500 sparc)
20501 ATIMISC_DGA=no
20502 ;;
20503 *)
20504 ;;
20505 esac
20506
20507 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to include PIO support" >&5
20508 printf %s "checking whether to include PIO support... " >&6; }
20509 if test "x$ATIMISC_CPIO" = xyes; then
20510 ATIMISC_CPIO_TRUE=
20511 ATIMISC_CPIO_FALSE='#'
20512 else
20513 ATIMISC_CPIO_TRUE='#'
20514 ATIMISC_CPIO_FALSE=
20515 fi
20516
20517 if test "x$ATIMISC_CPIO" = xyes; then
20518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes, PIO" >&5
20519 printf "%s\n" "yes, PIO" >&6; }
20520 else
20521
20522 printf "%s\n" "#define AVOID_CPIO 1" >>confdefs.h
20523
20524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, MMIO" >&5
20525 printf "%s\n" "no, MMIO" >&6; }
20526 fi
20527
20528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to include DGA support" >&5
20529 printf %s "checking whether to include DGA support... " >&6; }
20530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ATIMISC_DGA" >&5
20531 printf "%s\n" "$ATIMISC_DGA" >&6; }
20532 if test "x$ATIMISC_DGA" = xyes; then
20533 ATIMISC_DGA_TRUE=
20534 ATIMISC_DGA_FALSE='#'
20535 else
20536 ATIMISC_DGA_TRUE='#'
20537 ATIMISC_DGA_FALSE=
20538 fi
20539
20540 if ! test "x$ATIMISC_DGA" = xyes; then
20541
20542 printf "%s\n" "#define AVOID_DGA 1" >>confdefs.h
20543
20544 fi
20545
20546 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to include TV Out support" >&5
20547 printf %s "checking whether to include TV Out support... " >&6; }
20548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ATIMISC_TV_OUT" >&5
20549 printf "%s\n" "$ATIMISC_TV_OUT" >&6; }
20550 if test "x$ATIMISC_TV_OUT" = xyes; then
20551 ATIMISC_TV_OUT_TRUE=
20552 ATIMISC_TV_OUT_FALSE='#'
20553 else
20554 ATIMISC_TV_OUT_TRUE='#'
20555 ATIMISC_TV_OUT_FALSE=
20556 fi
20557
20558 if test "x$ATIMISC_TV_OUT" = xyes; then
20559
20560 printf "%s\n" "#define TV_OUT 1" >>confdefs.h
20561
20562 fi
20563
20564 # Properly handle EXA.
20565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable EXA support" >&5
20566 printf %s "checking whether to enable EXA support... " >&6; }
20567 if test "x$EXA" = xyes; then
20568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20569 printf "%s\n" "yes" >&6; }
20570
20571 SAVE_CPPFLAGS="$CPPFLAGS"
20572 CPPFLAGS="$CPPFLAGS $XORG_CFLAGS"
20573 ac_fn_c_check_header_compile "$LINENO" "exa.h" "ac_cv_header_exa_h" "#include <xorg-server.h>
20574 "
20575 if test "x$ac_cv_header_exa_h" = xyes
20576 then :
20577 have_exa_h="yes"
20578 else case e in #(
20579 e) have_exa_h="no" ;;
20580 esac
20581 fi
20582
20583 CPPFLAGS="$SAVE_CPPFLAGS"
20584 else
20585 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20586 printf "%s\n" "no" >&6; }
20587 fi
20588
20589 SAVE_CPPFLAGS="$CPPFLAGS"
20590 CPPFLAGS="$CPPFLAGS $XORG_CFLAGS"
20591 if test "x$have_exa_h" = xyes; then
20592 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether EXA version is at least 2.0.0" >&5
20593 printf %s "checking whether EXA version is at least 2.0.0... " >&6; }
20594 ac_ext=c
20595 ac_cpp='$CPP $CPPFLAGS'
20596 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20597 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20598 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20599 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
20600 printf %s "checking how to run the C preprocessor... " >&6; }
20601 # On Suns, sometimes $CPP names a directory.
20602 if test -n "$CPP" && test -d "$CPP"; then
20603 CPP=
20604 fi
20605 if test -z "$CPP"; then
20606 if test ${ac_cv_prog_CPP+y}
20607 then :
20608 printf %s "(cached) " >&6
20609 else case e in #(
20610 e) # Double quotes because $CC needs to be expanded
20611 for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
20612 do
20613 ac_preproc_ok=false
20614 for ac_c_preproc_warn_flag in '' yes
20615 do
20616 # Use a header file that comes with gcc, so configuring glibc
20617 # with a fresh cross-compiler works.
20618 # On the NeXT, cc -E runs the code through the compiler's parser,
20619 # not just through cpp. "Syntax error" is here to catch this case.
20620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20621 /* end confdefs.h. */
20622 #include <limits.h>
20623 Syntax error
20624 _ACEOF
20625 if ac_fn_c_try_cpp "$LINENO"
20626 then :
20627
20628 else case e in #(
20629 e) # Broken: fails on valid input.
20630 continue ;;
20631 esac
20632 fi
20633 rm -f conftest.err conftest.i conftest.$ac_ext
20634
20635 # OK, works on sane cases. Now check whether nonexistent headers
20636 # can be detected and how.
20637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20638 /* end confdefs.h. */
20639 #include <ac_nonexistent.h>
20640 _ACEOF
20641 if ac_fn_c_try_cpp "$LINENO"
20642 then :
20643 # Broken: success on invalid input.
20644 continue
20645 else case e in #(
20646 e) # Passes both tests.
20647 ac_preproc_ok=:
20648 break ;;
20649 esac
20650 fi
20651 rm -f conftest.err conftest.i conftest.$ac_ext
20652
20653 done
20654 # Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped.
20655 rm -f conftest.i conftest.err conftest.$ac_ext
20656 if $ac_preproc_ok
20657 then :
20658 break
20659 fi
20660
20661 done
20662 ac_cv_prog_CPP=$CPP
20663 ;;
20664 esac
20665 fi
20666 CPP=$ac_cv_prog_CPP
20667 else
20668 ac_cv_prog_CPP=$CPP
20669 fi
20670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
20671 printf "%s\n" "$CPP" >&6; }
20672 ac_preproc_ok=false
20673 for ac_c_preproc_warn_flag in '' yes
20674 do
20675 # Use a header file that comes with gcc, so configuring glibc
20676 # with a fresh cross-compiler works.
20677 # On the NeXT, cc -E runs the code through the compiler's parser,
20678 # not just through cpp. "Syntax error" is here to catch this case.
20679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20680 /* end confdefs.h. */
20681 #include <limits.h>
20682 Syntax error
20683 _ACEOF
20684 if ac_fn_c_try_cpp "$LINENO"
20685 then :
20686
20687 else case e in #(
20688 e) # Broken: fails on valid input.
20689 continue ;;
20690 esac
20691 fi
20692 rm -f conftest.err conftest.i conftest.$ac_ext
20693
20694 # OK, works on sane cases. Now check whether nonexistent headers
20695 # can be detected and how.
20696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20697 /* end confdefs.h. */
20698 #include <ac_nonexistent.h>
20699 _ACEOF
20700 if ac_fn_c_try_cpp "$LINENO"
20701 then :
20702 # Broken: success on invalid input.
20703 continue
20704 else case e in #(
20705 e) # Passes both tests.
20706 ac_preproc_ok=:
20707 break ;;
20708 esac
20709 fi
20710 rm -f conftest.err conftest.i conftest.$ac_ext
20711
20712 done
20713 # Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped.
20714 rm -f conftest.i conftest.err conftest.$ac_ext
20715 if $ac_preproc_ok
20716 then :
20717
20718 else case e in #(
20719 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
20720 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
20721 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
20722 See 'config.log' for more details" "$LINENO" 5; } ;;
20723 esac
20724 fi
20725
20726 ac_ext=c
20727 ac_cpp='$CPP $CPPFLAGS'
20728 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20729 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20730 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20731
20732
20733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20734 /* end confdefs.h. */
20735
20736 #include <xorg-server.h>
20737 #include <exa.h>
20738 #if EXA_VERSION_MAJOR < 2
20739 #error OLD EXA!
20740 #endif
20741
20742 int
20743 main (void)
20744 {
20745
20746 ;
20747 return 0;
20748 }
20749 _ACEOF
20750 if ac_fn_c_try_cpp "$LINENO"
20751 then :
20752 USE_EXA=yes
20753 else case e in #(
20754 e) USE_EXA=no ;;
20755 esac
20756 fi
20757 rm -f conftest.err conftest.i conftest.$ac_ext
20758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_EXA" >&5
20759 printf "%s\n" "$USE_EXA" >&6; }
20760
20761 if test "x$USE_EXA" = xyes; then
20762
20763 printf "%s\n" "#define USE_EXA 1" >>confdefs.h
20764
20765 fi
20766 fi
20767
20768 ac_fn_check_decl "$LINENO" "XSERVER_LIBPCIACCESS" "ac_cv_have_decl_XSERVER_LIBPCIACCESS" "#include \"xorg-server.h\"
20769 " "$ac_c_undeclared_builtin_options" "CFLAGS"
20770 if test "x$ac_cv_have_decl_XSERVER_LIBPCIACCESS" = xyes
20771 then :
20772 XSERVER_LIBPCIACCESS=yes
20773 else case e in #(
20774 e) XSERVER_LIBPCIACCESS=no ;;
20775 esac
20776 fi
20777
20778 CPPFLAGS="$SAVE_CPPFLAGS"
20779
20780 if test "x$USE_EXA" = xyes; then
20781 USE_EXA_TRUE=
20782 USE_EXA_FALSE='#'
20783 else
20784 USE_EXA_TRUE='#'
20785 USE_EXA_FALSE=
20786 fi
20787
20788
20789 if test "x$XSERVER_LIBPCIACCESS" = xyes; then
20790
20791 pkg_failed=no
20792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for PCIACCESS" >&5
20793 printf %s "checking for PCIACCESS... " >&6; }
20794
20795 if test -n "$PCIACCESS_CFLAGS"; then
20796 pkg_cv_PCIACCESS_CFLAGS="$PCIACCESS_CFLAGS"
20797 elif test -n "$PKG_CONFIG"; then
20798 if test -n "$PKG_CONFIG" && \
20799 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.12.901\""; } >&5
20800 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.12.901") 2>&5
20801 ac_status=$?
20802 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20803 test $ac_status = 0; }; then
20804 pkg_cv_PCIACCESS_CFLAGS=`$PKG_CONFIG --cflags "pciaccess >= 0.12.901" 2>/dev/null`
20805 test "x$?" != "x0" && pkg_failed=yes
20806 else
20807 pkg_failed=yes
20808 fi
20809 else
20810 pkg_failed=untried
20811 fi
20812 if test -n "$PCIACCESS_LIBS"; then
20813 pkg_cv_PCIACCESS_LIBS="$PCIACCESS_LIBS"
20814 elif test -n "$PKG_CONFIG"; then
20815 if test -n "$PKG_CONFIG" && \
20816 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.12.901\""; } >&5
20817 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.12.901") 2>&5
20818 ac_status=$?
20819 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20820 test $ac_status = 0; }; then
20821 pkg_cv_PCIACCESS_LIBS=`$PKG_CONFIG --libs "pciaccess >= 0.12.901" 2>/dev/null`
20822 test "x$?" != "x0" && pkg_failed=yes
20823 else
20824 pkg_failed=yes
20825 fi
20826 else
20827 pkg_failed=untried
20828 fi
20829
20830
20831
20832 if test $pkg_failed = yes; then
20833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20834 printf "%s\n" "no" >&6; }
20835
20836 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20837 _pkg_short_errors_supported=yes
20838 else
20839 _pkg_short_errors_supported=no
20840 fi
20841 if test $_pkg_short_errors_supported = yes; then
20842 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "pciaccess >= 0.12.901" 2>&1`
20843 else
20844 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "pciaccess >= 0.12.901" 2>&1`
20845 fi
20846 # Put the nasty error message in config.log where it belongs
20847 echo "$PCIACCESS_PKG_ERRORS" >&5
20848
20849 as_fn_error $? "Package requirements (pciaccess >= 0.12.901) were not met:
20850
20851 $PCIACCESS_PKG_ERRORS
20852
20853 Consider adjusting the PKG_CONFIG_PATH environment variable if you
20854 installed software in a non-standard prefix.
20855
20856 Alternatively, you may set the environment variables PCIACCESS_CFLAGS
20857 and PCIACCESS_LIBS to avoid the need to call pkg-config.
20858 See the pkg-config man page for more details." "$LINENO" 5
20859 elif test $pkg_failed = untried; then
20860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20861 printf "%s\n" "no" >&6; }
20862 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
20863 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
20864 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
20865 is in your PATH or set the PKG_CONFIG environment variable to the full
20866 path to pkg-config.
20867
20868 Alternatively, you may set the environment variables PCIACCESS_CFLAGS
20869 and PCIACCESS_LIBS to avoid the need to call pkg-config.
20870 See the pkg-config man page for more details.
20871
20872 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
20873 See 'config.log' for more details" "$LINENO" 5; }
20874 else
20875 PCIACCESS_CFLAGS=$pkg_cv_PCIACCESS_CFLAGS
20876 PCIACCESS_LIBS=$pkg_cv_PCIACCESS_LIBS
20877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20878 printf "%s\n" "yes" >&6; }
20879
20880 fi
20881 XORG_CFLAGS="$XORG_CFLAGS $PCIACCESS_CFLAGS"
20882 fi
20883 if test "x$XSERVER_LIBPCIACCESS" = xyes; then
20884 XSERVER_LIBPCIACCESS_TRUE=
20885 XSERVER_LIBPCIACCESS_FALSE='#'
20886 else
20887 XSERVER_LIBPCIACCESS_TRUE='#'
20888 XSERVER_LIBPCIACCESS_FALSE=
20889 fi
20890
20891
20892
20893
20894 # Checks for library functions
20895 # We don't use strlcat, strlcpy, or timingsafe_memcmp, but check to quiet
20896 # -Wredundant-decls warning from xorg/os.h which will otherwise redefine them.
20897 ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat"
20898 if test "x$ac_cv_func_strlcat" = xyes
20899 then :
20900 printf "%s\n" "#define HAVE_STRLCAT 1" >>confdefs.h
20901
20902 fi
20903 ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
20904 if test "x$ac_cv_func_strlcpy" = xyes
20905 then :
20906 printf "%s\n" "#define HAVE_STRLCPY 1" >>confdefs.h
20907
20908 fi
20909 ac_fn_c_check_func "$LINENO" "timingsafe_memcmp" "ac_cv_func_timingsafe_memcmp"
20910 if test "x$ac_cv_func_timingsafe_memcmp" = xyes
20911 then :
20912 printf "%s\n" "#define HAVE_TIMINGSAFE_MEMCMP 1" >>confdefs.h
20913
20914 fi
20915
20916
20917 DRIVER_NAME=mach64
20918
20919
20920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Please change the Driver line in xorg.conf from \"ati\" to \"mach64\"
20921 or install the ati wrapper as well:
20922 https://gitlab.freedesktop.org/xorg/driver/xf86-video-ati
20923 " >&5
20924 printf "%s\n" "$as_me: Please change the Driver line in xorg.conf from \"ati\" to \"mach64\"
20925 or install the ati wrapper as well:
20926 https://gitlab.freedesktop.org/xorg/driver/xf86-video-ati
20927 " >&6;}
20928
20929 ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile"
20930
20931 cat >confcache <<\_ACEOF
20932 # This file is a shell script that caches the results of configure
20933 # tests run on this system so they can be shared between configure
20934 # scripts and configure runs, see configure's option --config-cache.
20935 # It is not useful on other systems. If it contains results you don't
20936 # want to keep, you may remove or edit it.
20937 #
20938 # config.status only pays attention to the cache file if you give it
20939 # the --recheck option to rerun configure.
20940 #
20941 # 'ac_cv_env_foo' variables (set or unset) will be overridden when
20942 # loading this file, other *unset* 'ac_cv_foo' will be assigned the
20943 # following values.
20944
20945 _ACEOF
20946
20947 # The following way of writing the cache mishandles newlines in values,
20948 # but we know of no workaround that is simple, portable, and efficient.
20949 # So, we kill variables containing newlines.
20950 # Ultrix sh set writes to stderr and can't be redirected directly,
20951 # and sets the high bit in the cache file unless we assign to the vars.
20952 (
20953 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20954 eval ac_val=\$$ac_var
20955 case $ac_val in #(
20956 *${as_nl}*)
20957 case $ac_var in #(
20958 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
20959 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
20960 esac
20961 case $ac_var in #(
20962 _ | IFS | as_nl) ;; #(
20963 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
20964 *) { eval $ac_var=; unset $ac_var;} ;;
20965 esac ;;
20966 esac
20967 done
20968
20969 (set) 2>&1 |
20970 case $as_nl`(ac_space=' '; set) 2>&1` in #(
20971 *${as_nl}ac_space=\ *)
20972 # 'set' does not quote correctly, so add quotes: double-quote
20973 # substitution turns \\\\ into \\, and sed turns \\ into \.
20974 sed -n \
20975 "s/'/'\\\\''/g;
20976 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20977 ;; #(
20978 *)
20979 # 'set' quotes correctly as required by POSIX, so do not add quotes.
20980 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20981 ;;
20982 esac |
20983 sort
20984 ) |
20985 sed '
20986 /^ac_cv_env_/b end
20987 t clear
20988 :clear
20989 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
20990 t end
20991 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20992 :end' >>confcache
20993 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20994 if test -w "$cache_file"; then
20995 if test "x$cache_file" != "x/dev/null"; then
20996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
20997 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
20998 if test ! -f "$cache_file" || test -h "$cache_file"; then
20999 cat confcache >"$cache_file"
21000 else
21001 case $cache_file in #(
21002 */* | ?:*)
21003 mv -f confcache "$cache_file"$$ &&
21004 mv -f "$cache_file"$$ "$cache_file" ;; #(
21005 *)
21006 mv -f confcache "$cache_file" ;;
21007 esac
21008 fi
21009 fi
21010 else
21011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
21012 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
21013 fi
21014 fi
21015 rm -f confcache
21016
21017 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21018 # Let make expand exec_prefix.
21019 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21020
21021 DEFS=-DHAVE_CONFIG_H
21022
21023 ac_libobjs=
21024 ac_ltlibobjs=
21025 U=
21026 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21027 # 1. Remove the extension, and $U if already installed.
21028 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21029 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
21030 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21031 # will be set to the directory where LIBOBJS objects are built.
21032 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21033 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
21034 done
21035 LIBOBJS=$ac_libobjs
21036
21037 LTLIBOBJS=$ac_ltlibobjs
21038
21039
21040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
21041 printf %s "checking that generated files are newer than configure... " >&6; }
21042 if test -n "$am_sleep_pid"; then
21043 # Hide warnings about reused PIDs.
21044 wait $am_sleep_pid 2>/dev/null
21045 fi
21046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
21047 printf "%s\n" "done" >&6; }
21048 case $enable_silent_rules in # (((
21049 yes) AM_DEFAULT_VERBOSITY=0;;
21050 no) AM_DEFAULT_VERBOSITY=1;;
21051 esac
21052 if test $am_cv_make_support_nested_variables = yes; then
21053 AM_V='$(V)'
21054 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
21055 else
21056 AM_V=$AM_DEFAULT_VERBOSITY
21057 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
21058 fi
21059
21060 if test -n "$EXEEXT"; then
21061 am__EXEEXT_TRUE=
21062 am__EXEEXT_FALSE='#'
21063 else
21064 am__EXEEXT_TRUE='#'
21065 am__EXEEXT_FALSE=
21066 fi
21067
21068 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
21069 as_fn_error $? "conditional \"AMDEP\" was never defined.
21070 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21071 fi
21072 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21073 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
21074 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21075 fi
21076 if test -z "${HAVE_XEXTPROTO_71_TRUE}" && test -z "${HAVE_XEXTPROTO_71_FALSE}"; then
21077 as_fn_error $? "conditional \"HAVE_XEXTPROTO_71\" was never defined.
21078 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21079 fi
21080 if test -z "${DRI_TRUE}" && test -z "${DRI_FALSE}"; then
21081 as_fn_error $? "conditional \"DRI\" was never defined.
21082 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21083 fi
21084 if test -z "${ATIMISC_CPIO_TRUE}" && test -z "${ATIMISC_CPIO_FALSE}"; then
21085 as_fn_error $? "conditional \"ATIMISC_CPIO\" was never defined.
21086 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21087 fi
21088 if test -z "${ATIMISC_DGA_TRUE}" && test -z "${ATIMISC_DGA_FALSE}"; then
21089 as_fn_error $? "conditional \"ATIMISC_DGA\" was never defined.
21090 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21091 fi
21092 if test -z "${ATIMISC_TV_OUT_TRUE}" && test -z "${ATIMISC_TV_OUT_FALSE}"; then
21093 as_fn_error $? "conditional \"ATIMISC_TV_OUT\" was never defined.
21094 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21095 fi
21096 if test -z "${USE_EXA_TRUE}" && test -z "${USE_EXA_FALSE}"; then
21097 as_fn_error $? "conditional \"USE_EXA\" was never defined.
21098 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21099 fi
21100 if test -z "${XSERVER_LIBPCIACCESS_TRUE}" && test -z "${XSERVER_LIBPCIACCESS_FALSE}"; then
21101 as_fn_error $? "conditional \"XSERVER_LIBPCIACCESS\" was never defined.
21102 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21103 fi
21104
21105 : "${CONFIG_STATUS=./config.status}"
21106 ac_write_fail=0
21107 ac_clean_files_save=$ac_clean_files
21108 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
21110 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
21111 as_write_fail=0
21112 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
21113 #! $SHELL
21114 # Generated by $as_me.
21115 # Run this file to recreate the current configuration.
21116 # Compiler output produced by configure, useful for debugging
21117 # configure, is in config.log if it exists.
21118
21119 debug=false
21120 ac_cs_recheck=false
21121 ac_cs_silent=false
21122
21123 SHELL=\${CONFIG_SHELL-$SHELL}
21124 export SHELL
21125 _ASEOF
21126 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
21127 ## -------------------- ##
21128 ## M4sh Initialization. ##
21129 ## -------------------- ##
21130
21131 # Be more Bourne compatible
21132 DUALCASE=1; export DUALCASE # for MKS sh
21133 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
21134 then :
21135 emulate sh
21136 NULLCMD=:
21137 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21138 # is contrary to our usage. Disable this feature.
21139 alias -g '${1+"$@"}'='"$@"'
21140 setopt NO_GLOB_SUBST
21141 else case e in #(
21142 e) case `(set -o) 2>/dev/null` in #(
21143 *posix*) :
21144 set -o posix ;; #(
21145 *) :
21146 ;;
21147 esac ;;
21148 esac
21149 fi
21150
21151
21152
21153 # Reset variables that may have inherited troublesome values from
21154 # the environment.
21155
21156 # IFS needs to be set, to space, tab, and newline, in precisely that order.
21157 # (If _AS_PATH_WALK were called with IFS unset, it would have the
21158 # side effect of setting IFS to empty, thus disabling word splitting.)
21159 # Quoting is to prevent editors from complaining about space-tab.
21160 as_nl='
21161 '
21162 export as_nl
21163 IFS=" "" $as_nl"
21164
21165 PS1='$ '
21166 PS2='> '
21167 PS4='+ '
21168
21169 # Ensure predictable behavior from utilities with locale-dependent output.
21170 LC_ALL=C
21171 export LC_ALL
21172 LANGUAGE=C
21173 export LANGUAGE
21174
21175 # We cannot yet rely on "unset" to work, but we need these variables
21176 # to be unset--not just set to an empty or harmless value--now, to
21177 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
21178 # also avoids known problems related to "unset" and subshell syntax
21179 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
21180 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
21181 do eval test \${$as_var+y} \
21182 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
21183 done
21184
21185 # Ensure that fds 0, 1, and 2 are open.
21186 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
21187 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
21188 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
21189
21190 # The user is always right.
21191 if ${PATH_SEPARATOR+false} :; then
21192 PATH_SEPARATOR=:
21193 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
21194 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
21195 PATH_SEPARATOR=';'
21196 }
21197 fi
21198
21199
21200 # Find who we are. Look in the path if we contain no directory separator.
21201 as_myself=
21202 case $0 in #((
21203 *[\\/]* ) as_myself=$0 ;;
21204 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21205 for as_dir in $PATH
21206 do
21207 IFS=$as_save_IFS
21208 case $as_dir in #(((
21209 '') as_dir=./ ;;
21210 */) ;;
21211 *) as_dir=$as_dir/ ;;
21212 esac
21213 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
21214 done
21215 IFS=$as_save_IFS
21216
21217 ;;
21218 esac
21219 # We did not find ourselves, most probably we were run as 'sh COMMAND'
21220 # in which case we are not to be found in the path.
21221 if test "x$as_myself" = x; then
21222 as_myself=$0
21223 fi
21224 if test ! -f "$as_myself"; then
21225 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21226 exit 1
21227 fi
21228
21229
21230
21231 # as_fn_error STATUS ERROR [LINENO LOG_FD]
21232 # ----------------------------------------
21233 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
21234 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
21235 # script with STATUS, using 1 if that was 0.
21236 as_fn_error ()
21237 {
21238 as_status=$1; test $as_status -eq 0 && as_status=1
21239 if test "$4"; then
21240 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
21241 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
21242 fi
21243 printf "%s\n" "$as_me: error: $2" >&2
21244 as_fn_exit $as_status
21245 } # as_fn_error
21246
21247
21248 # as_fn_set_status STATUS
21249 # -----------------------
21250 # Set $? to STATUS, without forking.
21251 as_fn_set_status ()
21252 {
21253 return $1
21254 } # as_fn_set_status
21255
21256 # as_fn_exit STATUS
21257 # -----------------
21258 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
21259 as_fn_exit ()
21260 {
21261 set +e
21262 as_fn_set_status $1
21263 exit $1
21264 } # as_fn_exit
21265
21266 # as_fn_unset VAR
21267 # ---------------
21268 # Portably unset VAR.
21269 as_fn_unset ()
21270 {
21271 { eval $1=; unset $1;}
21272 }
21273 as_unset=as_fn_unset
21274
21275 # as_fn_append VAR VALUE
21276 # ----------------------
21277 # Append the text in VALUE to the end of the definition contained in VAR. Take
21278 # advantage of any shell optimizations that allow amortized linear growth over
21279 # repeated appends, instead of the typical quadratic growth present in naive
21280 # implementations.
21281 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
21282 then :
21283 eval 'as_fn_append ()
21284 {
21285 eval $1+=\$2
21286 }'
21287 else case e in #(
21288 e) as_fn_append ()
21289 {
21290 eval $1=\$$1\$2
21291 } ;;
21292 esac
21293 fi # as_fn_append
21294
21295 # as_fn_arith ARG...
21296 # ------------------
21297 # Perform arithmetic evaluation on the ARGs, and store the result in the
21298 # global $as_val. Take advantage of shells that can avoid forks. The arguments
21299 # must be portable across $(()) and expr.
21300 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
21301 then :
21302 eval 'as_fn_arith ()
21303 {
21304 as_val=$(( $* ))
21305 }'
21306 else case e in #(
21307 e) as_fn_arith ()
21308 {
21309 as_val=`expr "$@" || test $? -eq 1`
21310 } ;;
21311 esac
21312 fi # as_fn_arith
21313
21314
21315 if expr a : '\(a\)' >/dev/null 2>&1 &&
21316 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21317 as_expr=expr
21318 else
21319 as_expr=false
21320 fi
21321
21322 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21323 as_basename=basename
21324 else
21325 as_basename=false
21326 fi
21327
21328 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21329 as_dirname=dirname
21330 else
21331 as_dirname=false
21332 fi
21333
21334 as_me=`$as_basename -- "$0" ||
21335 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21336 X"$0" : 'X\(//\)$' \| \
21337 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21338 printf "%s\n" X/"$0" |
21339 sed '/^.*\/\([^/][^/]*\)\/*$/{
21340 s//\1/
21341 q
21342 }
21343 /^X\/\(\/\/\)$/{
21344 s//\1/
21345 q
21346 }
21347 /^X\/\(\/\).*/{
21348 s//\1/
21349 q
21350 }
21351 s/.*/./; q'`
21352
21353 # Avoid depending upon Character Ranges.
21354 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21355 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21356 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21357 as_cr_digits='0123456789'
21358 as_cr_alnum=$as_cr_Letters$as_cr_digits
21359
21360
21361 # Determine whether it's possible to make 'echo' print without a newline.
21362 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
21363 # for compatibility with existing Makefiles.
21364 ECHO_C= ECHO_N= ECHO_T=
21365 case `echo -n x` in #(((((
21366 -n*)
21367 case `echo 'xy\c'` in
21368 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
21369 xy) ECHO_C='\c';;
21370 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
21371 ECHO_T=' ';;
21372 esac;;
21373 *)
21374 ECHO_N='-n';;
21375 esac
21376
21377 # For backward compatibility with old third-party macros, we provide
21378 # the shell variables $as_echo and $as_echo_n. New code should use
21379 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
21380 as_echo='printf %s\n'
21381 as_echo_n='printf %s'
21382
21383 rm -f conf$$ conf$$.exe conf$$.file
21384 if test -d conf$$.dir; then
21385 rm -f conf$$.dir/conf$$.file
21386 else
21387 rm -f conf$$.dir
21388 mkdir conf$$.dir 2>/dev/null
21389 fi
21390 if (echo >conf$$.file) 2>/dev/null; then
21391 if ln -s conf$$.file conf$$ 2>/dev/null; then
21392 as_ln_s='ln -s'
21393 # ... but there are two gotchas:
21394 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
21395 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
21396 # In both cases, we have to default to 'cp -pR'.
21397 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21398 as_ln_s='cp -pR'
21399 elif ln conf$$.file conf$$ 2>/dev/null; then
21400 as_ln_s=ln
21401 else
21402 as_ln_s='cp -pR'
21403 fi
21404 else
21405 as_ln_s='cp -pR'
21406 fi
21407 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21408 rmdir conf$$.dir 2>/dev/null
21409
21410
21411 # as_fn_mkdir_p
21412 # -------------
21413 # Create "$as_dir" as a directory, including parents if necessary.
21414 as_fn_mkdir_p ()
21415 {
21416
21417 case $as_dir in #(
21418 -*) as_dir=./$as_dir;;
21419 esac
21420 test -d "$as_dir" || eval $as_mkdir_p || {
21421 as_dirs=
21422 while :; do
21423 case $as_dir in #(
21424 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
21425 *) as_qdir=$as_dir;;
21426 esac
21427 as_dirs="'$as_qdir' $as_dirs"
21428 as_dir=`$as_dirname -- "$as_dir" ||
21429 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21430 X"$as_dir" : 'X\(//\)[^/]' \| \
21431 X"$as_dir" : 'X\(//\)$' \| \
21432 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21433 printf "%s\n" X"$as_dir" |
21434 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21435 s//\1/
21436 q
21437 }
21438 /^X\(\/\/\)[^/].*/{
21439 s//\1/
21440 q
21441 }
21442 /^X\(\/\/\)$/{
21443 s//\1/
21444 q
21445 }
21446 /^X\(\/\).*/{
21447 s//\1/
21448 q
21449 }
21450 s/.*/./; q'`
21451 test -d "$as_dir" && break
21452 done
21453 test -z "$as_dirs" || eval "mkdir $as_dirs"
21454 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
21455
21456
21457 } # as_fn_mkdir_p
21458 if mkdir -p . 2>/dev/null; then
21459 as_mkdir_p='mkdir -p "$as_dir"'
21460 else
21461 test -d ./-p && rmdir ./-p
21462 as_mkdir_p=false
21463 fi
21464
21465
21466 # as_fn_executable_p FILE
21467 # -----------------------
21468 # Test if FILE is an executable regular file.
21469 as_fn_executable_p ()
21470 {
21471 test -f "$1" && test -x "$1"
21472 } # as_fn_executable_p
21473 as_test_x='test -x'
21474 as_executable_p=as_fn_executable_p
21475
21476 # Sed expression to map a string onto a valid CPP name.
21477 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
21478 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
21479
21480 # Sed expression to map a string onto a valid variable name.
21481 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
21482 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
21483
21484
21485 exec 6>&1
21486 ## ----------------------------------- ##
21487 ## Main body of $CONFIG_STATUS script. ##
21488 ## ----------------------------------- ##
21489 _ASEOF
21490 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
21491
21492 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21493 # Save the log message, to keep $0 and so on meaningful, and to
21494 # report actual input values of CONFIG_FILES etc. instead of their
21495 # values after options handling.
21496 ac_log="
21497 This file was extended by xf86-video-mach64 $as_me 6.10.0, which was
21498 generated by GNU Autoconf 2.72. Invocation command line was
21499
21500 CONFIG_FILES = $CONFIG_FILES
21501 CONFIG_HEADERS = $CONFIG_HEADERS
21502 CONFIG_LINKS = $CONFIG_LINKS
21503 CONFIG_COMMANDS = $CONFIG_COMMANDS
21504 $ $0 $@
21505
21506 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21507 "
21508
21509 _ACEOF
21510
21511 case $ac_config_files in *"
21512 "*) set x $ac_config_files; shift; ac_config_files=$*;;
21513 esac
21514
21515 case $ac_config_headers in *"
21516 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
21517 esac
21518
21519
21520 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21521 # Files that config.status was made for.
21522 config_files="$ac_config_files"
21523 config_headers="$ac_config_headers"
21524 config_commands="$ac_config_commands"
21525
21526 _ACEOF
21527
21528 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21529 ac_cs_usage="\
21530 '$as_me' instantiates files and other configuration actions
21531 from templates according to the current configuration. Unless the files
21532 and actions are specified as TAGs, all are instantiated by default.
21533
21534 Usage: $0 [OPTION]... [TAG]...
21535
21536 -h, --help print this help, then exit
21537 -V, --version print version number and configuration settings, then exit
21538 --config print configuration, then exit
21539 -q, --quiet, --silent
21540 do not print progress messages
21541 -d, --debug don't remove temporary files
21542 --recheck update $as_me by reconfiguring in the same conditions
21543 --file=FILE[:TEMPLATE]
21544 instantiate the configuration file FILE
21545 --header=FILE[:TEMPLATE]
21546 instantiate the configuration header FILE
21547
21548 Configuration files:
21549 $config_files
21550
21551 Configuration headers:
21552 $config_headers
21553
21554 Configuration commands:
21555 $config_commands
21556
21557 Report bugs to <https://gitlab.freedesktop.org/xorg/driver/xf86-video-mach64/-/issues>."
21558
21559 _ACEOF
21560 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
21561 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
21562 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21563 ac_cs_config='$ac_cs_config_escaped'
21564 ac_cs_version="\\
21565 xf86-video-mach64 config.status 6.10.0
21566 configured by $0, generated by GNU Autoconf 2.72,
21567 with options \\"\$ac_cs_config\\"
21568
21569 Copyright (C) 2023 Free Software Foundation, Inc.
21570 This config.status script is free software; the Free Software Foundation
21571 gives unlimited permission to copy, distribute and modify it."
21572
21573 ac_pwd='$ac_pwd'
21574 srcdir='$srcdir'
21575 INSTALL='$INSTALL'
21576 MKDIR_P='$MKDIR_P'
21577 AWK='$AWK'
21578 test -n "\$AWK" || AWK=awk
21579 _ACEOF
21580
21581 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21582 # The default lists apply if the user does not specify any file.
21583 ac_need_defaults=:
21584 while test $# != 0
21585 do
21586 case $1 in
21587 --*=?*)
21588 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21589 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21590 ac_shift=:
21591 ;;
21592 --*=)
21593 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21594 ac_optarg=
21595 ac_shift=:
21596 ;;
21597 *)
21598 ac_option=$1
21599 ac_optarg=$2
21600 ac_shift=shift
21601 ;;
21602 esac
21603
21604 case $ac_option in
21605 # Handling of the options.
21606 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21607 ac_cs_recheck=: ;;
21608 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21609 printf "%s\n" "$ac_cs_version"; exit ;;
21610 --config | --confi | --conf | --con | --co | --c )
21611 printf "%s\n" "$ac_cs_config"; exit ;;
21612 --debug | --debu | --deb | --de | --d | -d )
21613 debug=: ;;
21614 --file | --fil | --fi | --f )
21615 $ac_shift
21616 case $ac_optarg in
21617 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21618 '') as_fn_error $? "missing file argument" ;;
21619 esac
21620 as_fn_append CONFIG_FILES " '$ac_optarg'"
21621 ac_need_defaults=false;;
21622 --header | --heade | --head | --hea )
21623 $ac_shift
21624 case $ac_optarg in
21625 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21626 esac
21627 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
21628 ac_need_defaults=false;;
21629 --he | --h)
21630 # Conflict between --help and --header
21631 as_fn_error $? "ambiguous option: '$1'
21632 Try '$0 --help' for more information.";;
21633 --help | --hel | -h )
21634 printf "%s\n" "$ac_cs_usage"; exit ;;
21635 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21636 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21637 ac_cs_silent=: ;;
21638
21639 # This is an error.
21640 -*) as_fn_error $? "unrecognized option: '$1'
21641 Try '$0 --help' for more information." ;;
21642
21643 *) as_fn_append ac_config_targets " $1"
21644 ac_need_defaults=false ;;
21645
21646 esac
21647 shift
21648 done
21649
21650 ac_configure_extra_args=
21651
21652 if $ac_cs_silent; then
21653 exec 6>/dev/null
21654 ac_configure_extra_args="$ac_configure_extra_args --silent"
21655 fi
21656
21657 _ACEOF
21658 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21659 if \$ac_cs_recheck; then
21660 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21661 shift
21662 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
21663 CONFIG_SHELL='$SHELL'
21664 export CONFIG_SHELL
21665 exec "\$@"
21666 fi
21667
21668 _ACEOF
21669 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21670 exec 5>>config.log
21671 {
21672 echo
21673 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21674 ## Running $as_me. ##
21675 _ASBOX
21676 printf "%s\n" "$ac_log"
21677 } >&5
21678
21679 _ACEOF
21680 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21681 #
21682 # INIT-COMMANDS
21683 #
21684 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
21685
21686
21687 # The HP-UX ksh and POSIX shell print the target directory to stdout
21688 # if CDPATH is set.
21689 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
21690
21691 sed_quote_subst='$sed_quote_subst'
21692 double_quote_subst='$double_quote_subst'
21693 delay_variable_subst='$delay_variable_subst'
21694 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
21695 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
21696 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
21697 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
21698 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
21699 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
21700 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
21701 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
21702 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
21703 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
21704 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
21705 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
21706 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
21707 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
21708 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
21709 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
21710 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
21711 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
21712 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
21713 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
21714 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
21715 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
21716 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
21717 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
21718 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
21719 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
21720 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
21721 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
21722 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
21723 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
21724 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
21725 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
21726 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
21727 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
21728 FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
21729 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
21730 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
21731 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
21732 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
21733 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
21734 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
21735 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
21736 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
21737 lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
21738 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
21739 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
21740 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
21741 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
21742 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
21743 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
21744 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
21745 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
21746 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
21747 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
21748 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
21749 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
21750 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
21751 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
21752 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
21753 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
21754 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"`'
21755 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
21756 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
21757 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
21758 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
21759 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
21760 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
21761 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
21762 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
21763 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
21764 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
21765 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
21766 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
21767 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
21768 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
21769 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
21770 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
21771 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
21772 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
21773 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
21774 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
21775 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
21776 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
21777 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
21778 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
21779 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
21780 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
21781 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
21782 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
21783 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
21784 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
21785 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
21786 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
21787 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
21788 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
21789 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
21790 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
21791 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
21792 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
21793 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
21794 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
21795 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
21796 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
21797 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
21798 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
21799 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
21800 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
21801 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
21802 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
21803 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
21804 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
21805 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
21806 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
21807 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
21808 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
21809 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
21810 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
21811 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
21812 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
21813 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
21814 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
21815 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
21816 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
21817 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
21818 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
21819 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
21820 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
21821 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
21822 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
21823 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
21824 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
21825 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
21826 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
21827 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
21828 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
21829 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
21830 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
21831
21832 LTCC='$LTCC'
21833 LTCFLAGS='$LTCFLAGS'
21834 compiler='$compiler_DEFAULT'
21835
21836 # A function that is used when there is no print builtin or printf.
21837 func_fallback_echo ()
21838 {
21839 eval 'cat <<_LTECHO_EOF
21840 \$1
21841 _LTECHO_EOF'
21842 }
21843
21844 # Quote evaled strings.
21845 for var in SHELL \
21846 ECHO \
21847 PATH_SEPARATOR \
21848 SED \
21849 GREP \
21850 EGREP \
21851 FGREP \
21852 LD \
21853 NM \
21854 LN_S \
21855 lt_SP2NL \
21856 lt_NL2SP \
21857 reload_flag \
21858 FILECMD \
21859 OBJDUMP \
21860 deplibs_check_method \
21861 file_magic_cmd \
21862 file_magic_glob \
21863 want_nocaseglob \
21864 DLLTOOL \
21865 sharedlib_from_linklib_cmd \
21866 AR \
21867 archiver_list_spec \
21868 STRIP \
21869 RANLIB \
21870 CC \
21871 CFLAGS \
21872 compiler \
21873 lt_cv_sys_global_symbol_pipe \
21874 lt_cv_sys_global_symbol_to_cdecl \
21875 lt_cv_sys_global_symbol_to_import \
21876 lt_cv_sys_global_symbol_to_c_name_address \
21877 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
21878 lt_cv_nm_interface \
21879 nm_file_list_spec \
21880 lt_cv_truncate_bin \
21881 lt_prog_compiler_no_builtin_flag \
21882 lt_prog_compiler_pic \
21883 lt_prog_compiler_wl \
21884 lt_prog_compiler_static \
21885 lt_cv_prog_compiler_c_o \
21886 need_locks \
21887 MANIFEST_TOOL \
21888 DSYMUTIL \
21889 NMEDIT \
21890 LIPO \
21891 OTOOL \
21892 OTOOL64 \
21893 shrext_cmds \
21894 export_dynamic_flag_spec \
21895 whole_archive_flag_spec \
21896 compiler_needs_object \
21897 with_gnu_ld \
21898 allow_undefined_flag \
21899 no_undefined_flag \
21900 hardcode_libdir_flag_spec \
21901 hardcode_libdir_separator \
21902 exclude_expsyms \
21903 include_expsyms \
21904 file_list_spec \
21905 variables_saved_for_relink \
21906 libname_spec \
21907 library_names_spec \
21908 soname_spec \
21909 install_override_mode \
21910 finish_eval \
21911 old_striplib \
21912 striplib; do
21913 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
21914 *[\\\\\\\`\\"\\\$]*)
21915 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
21916 ;;
21917 *)
21918 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21919 ;;
21920 esac
21921 done
21922
21923 # Double-quote double-evaled strings.
21924 for var in reload_cmds \
21925 old_postinstall_cmds \
21926 old_postuninstall_cmds \
21927 old_archive_cmds \
21928 extract_expsyms_cmds \
21929 old_archive_from_new_cmds \
21930 old_archive_from_expsyms_cmds \
21931 archive_cmds \
21932 archive_expsym_cmds \
21933 module_cmds \
21934 module_expsym_cmds \
21935 export_symbols_cmds \
21936 prelink_cmds \
21937 postlink_cmds \
21938 postinstall_cmds \
21939 postuninstall_cmds \
21940 finish_cmds \
21941 sys_lib_search_path_spec \
21942 configure_time_dlsearch_path \
21943 configure_time_lt_sys_library_path; do
21944 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
21945 *[\\\\\\\`\\"\\\$]*)
21946 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
21947 ;;
21948 *)
21949 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21950 ;;
21951 esac
21952 done
21953
21954 ac_aux_dir='$ac_aux_dir'
21955
21956 # See if we are running on zsh, and set the options that allow our
21957 # commands through without removal of \ escapes INIT.
21958 if test -n "\${ZSH_VERSION+set}"; then
21959 setopt NO_GLOB_SUBST
21960 fi
21961
21962
21963 PACKAGE='$PACKAGE'
21964 VERSION='$VERSION'
21965 RM='$RM'
21966 ofile='$ofile'
21967
21968
21969
21970
21971 _ACEOF
21972
21973 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21974
21975 # Handling of arguments.
21976 for ac_config_target in $ac_config_targets
21977 do
21978 case $ac_config_target in
21979 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
21980 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21981 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
21982 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21983 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
21984 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
21985
21986 *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;;
21987 esac
21988 done
21989
21990
21991 # If the user did not use the arguments to specify the items to instantiate,
21992 # then the envvar interface is used. Set only those that are not.
21993 # We use the long form for the default assignment because of an extremely
21994 # bizarre bug on SunOS 4.1.3.
21995 if $ac_need_defaults; then
21996 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
21997 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
21998 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
21999 fi
22000
22001 # Have a temporary directory for convenience. Make it in the build tree
22002 # simply because there is no reason against having it here, and in addition,
22003 # creating and moving files from /tmp can sometimes cause problems.
22004 # Hook for its removal unless debugging.
22005 # Note that there is a small window in which the directory will not be cleaned:
22006 # after its creation but before its name has been assigned to '$tmp'.
22007 $debug ||
22008 {
22009 tmp= ac_tmp=
22010 trap 'exit_status=$?
22011 : "${ac_tmp:=$tmp}"
22012 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
22013 ' 0
22014 trap 'as_fn_exit 1' 1 2 13 15
22015 }
22016 # Create a (secure) tmp directory for tmp files.
22017
22018 {
22019 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22020 test -d "$tmp"
22021 } ||
22022 {
22023 tmp=./conf$$-$RANDOM
22024 (umask 077 && mkdir "$tmp")
22025 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
22026 ac_tmp=$tmp
22027
22028 # Set up the scripts for CONFIG_FILES section.
22029 # No need to generate them if there are no CONFIG_FILES.
22030 # This happens for instance with './config.status config.h'.
22031 if test -n "$CONFIG_FILES"; then
22032
22033
22034 ac_cr=`echo X | tr X '\015'`
22035 # On cygwin, bash can eat \r inside `` if the user requested igncr.
22036 # But we know of no other shell where ac_cr would be empty at this
22037 # point, so we can use a bashism as a fallback.
22038 if test "x$ac_cr" = x; then
22039 eval ac_cr=\$\'\\r\'
22040 fi
22041 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
22042 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
22043 ac_cs_awk_cr='\\r'
22044 else
22045 ac_cs_awk_cr=$ac_cr
22046 fi
22047
22048 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
22049 _ACEOF
22050
22051
22052 {
22053 echo "cat >conf$$subs.awk <<_ACEOF" &&
22054 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
22055 echo "_ACEOF"
22056 } >conf$$subs.sh ||
22057 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22058 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
22059 ac_delim='%!_!# '
22060 for ac_last_try in false false false false false :; do
22061 . ./conf$$subs.sh ||
22062 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22063
22064 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
22065 if test $ac_delim_n = $ac_delim_num; then
22066 break
22067 elif $ac_last_try; then
22068 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22069 else
22070 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22071 fi
22072 done
22073 rm -f conf$$subs.sh
22074
22075 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22076 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
22077 _ACEOF
22078 sed -n '
22079 h
22080 s/^/S["/; s/!.*/"]=/
22081 p
22082 g
22083 s/^[^!]*!//
22084 :repl
22085 t repl
22086 s/'"$ac_delim"'$//
22087 t delim
22088 :nl
22089 h
22090 s/\(.\{148\}\)..*/\1/
22091 t more1
22092 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
22093 p
22094 n
22095 b repl
22096 :more1
22097 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22098 p
22099 g
22100 s/.\{148\}//
22101 t nl
22102 :delim
22103 h
22104 s/\(.\{148\}\)..*/\1/
22105 t more2
22106 s/["\\]/\\&/g; s/^/"/; s/$/"/
22107 p
22108 b
22109 :more2
22110 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22111 p
22112 g
22113 s/.\{148\}//
22114 t delim
22115 ' <conf$$subs.awk | sed '
22116 /^[^""]/{
22117 N
22118 s/\n//
22119 }
22120 ' >>$CONFIG_STATUS || ac_write_fail=1
22121 rm -f conf$$subs.awk
22122 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22123 _ACAWK
22124 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
22125 for (key in S) S_is_set[key] = 1
22126 FS = ""
22127
22128 }
22129 {
22130 line = $ 0
22131 nfields = split(line, field, "@")
22132 substed = 0
22133 len = length(field[1])
22134 for (i = 2; i < nfields; i++) {
22135 key = field[i]
22136 keylen = length(key)
22137 if (S_is_set[key]) {
22138 value = S[key]
22139 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
22140 len += length(value) + length(field[++i])
22141 substed = 1
22142 } else
22143 len += 1 + keylen
22144 }
22145
22146 print line
22147 }
22148
22149 _ACAWK
22150 _ACEOF
22151 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22152 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
22153 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
22154 else
22155 cat
22156 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
22157 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
22158 _ACEOF
22159
22160 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
22161 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
22162 # trailing colons and then remove the whole line if VPATH becomes empty
22163 # (actually we leave an empty line to preserve line numbers).
22164 if test "x$srcdir" = x.; then
22165 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
22166 h
22167 s///
22168 s/^/:/
22169 s/[ ]*$/:/
22170 s/:\$(srcdir):/:/g
22171 s/:\${srcdir}:/:/g
22172 s/:@srcdir@:/:/g
22173 s/^:*//
22174 s/:*$//
22175 x
22176 s/\(=[ ]*\).*/\1/
22177 G
22178 s/\n//
22179 s/^[^=]*=[ ]*$//
22180 }'
22181 fi
22182
22183 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22184 fi # test -n "$CONFIG_FILES"
22185
22186 # Set up the scripts for CONFIG_HEADERS section.
22187 # No need to generate them if there are no CONFIG_HEADERS.
22188 # This happens for instance with './config.status Makefile'.
22189 if test -n "$CONFIG_HEADERS"; then
22190 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
22191 BEGIN {
22192 _ACEOF
22193
22194 # Transform confdefs.h into an awk script 'defines.awk', embedded as
22195 # here-document in config.status, that substitutes the proper values into
22196 # config.h.in to produce config.h.
22197
22198 # Create a delimiter string that does not exist in confdefs.h, to ease
22199 # handling of long lines.
22200 ac_delim='%!_!# '
22201 for ac_last_try in false false :; do
22202 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
22203 if test -z "$ac_tt"; then
22204 break
22205 elif $ac_last_try; then
22206 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
22207 else
22208 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22209 fi
22210 done
22211
22212 # For the awk script, D is an array of macro values keyed by name,
22213 # likewise P contains macro parameters if any. Preserve backslash
22214 # newline sequences.
22215
22216 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22217 sed -n '
22218 s/.\{148\}/&'"$ac_delim"'/g
22219 t rset
22220 :rset
22221 s/^[ ]*#[ ]*define[ ][ ]*/ /
22222 t def
22223 d
22224 :def
22225 s/\\$//
22226 t bsnl
22227 s/["\\]/\\&/g
22228 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
22229 D["\1"]=" \3"/p
22230 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
22231 d
22232 :bsnl
22233 s/["\\]/\\&/g
22234 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
22235 D["\1"]=" \3\\\\\\n"\\/p
22236 t cont
22237 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
22238 t cont
22239 d
22240 :cont
22241 n
22242 s/.\{148\}/&'"$ac_delim"'/g
22243 t clear
22244 :clear
22245 s/\\$//
22246 t bsnlc
22247 s/["\\]/\\&/g; s/^/"/; s/$/"/p
22248 d
22249 :bsnlc
22250 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
22251 b cont
22252 ' <confdefs.h | sed '
22253 s/'"$ac_delim"'/"\\\
22254 "/g' >>$CONFIG_STATUS || ac_write_fail=1
22255
22256 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22257 for (key in D) D_is_set[key] = 1
22258 FS = ""
22259 }
22260 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
22261 line = \$ 0
22262 split(line, arg, " ")
22263 if (arg[1] == "#") {
22264 defundef = arg[2]
22265 mac1 = arg[3]
22266 } else {
22267 defundef = substr(arg[1], 2)
22268 mac1 = arg[2]
22269 }
22270 split(mac1, mac2, "(") #)
22271 macro = mac2[1]
22272 prefix = substr(line, 1, index(line, defundef) - 1)
22273 if (D_is_set[macro]) {
22274 # Preserve the white space surrounding the "#".
22275 print prefix "define", macro P[macro] D[macro]
22276 next
22277 } else {
22278 # Replace #undef with comments. This is necessary, for example,
22279 # in the case of _POSIX_SOURCE, which is predefined and required
22280 # on some systems where configure will not decide to define it.
22281 if (defundef == "undef") {
22282 print "/*", prefix defundef, macro, "*/"
22283 next
22284 }
22285 }
22286 }
22287 { print }
22288 _ACAWK
22289 _ACEOF
22290 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22291 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
22292 fi # test -n "$CONFIG_HEADERS"
22293
22294
22295 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
22296 shift
22297 for ac_tag
22298 do
22299 case $ac_tag in
22300 :[FHLC]) ac_mode=$ac_tag; continue;;
22301 esac
22302 case $ac_mode$ac_tag in
22303 :[FHL]*:*);;
22304 :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;;
22305 :[FH]-) ac_tag=-:-;;
22306 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22307 esac
22308 ac_save_IFS=$IFS
22309 IFS=:
22310 set x $ac_tag
22311 IFS=$ac_save_IFS
22312 shift
22313 ac_file=$1
22314 shift
22315
22316 case $ac_mode in
22317 :L) ac_source=$1;;
22318 :[FH])
22319 ac_file_inputs=
22320 for ac_f
22321 do
22322 case $ac_f in
22323 -) ac_f="$ac_tmp/stdin";;
22324 *) # Look for the file first in the build tree, then in the source tree
22325 # (if the path is not absolute). The absolute path cannot be DOS-style,
22326 # because $ac_f cannot contain ':'.
22327 test -f "$ac_f" ||
22328 case $ac_f in
22329 [\\/$]*) false;;
22330 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22331 esac ||
22332 as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;;
22333 esac
22334 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
22335 as_fn_append ac_file_inputs " '$ac_f'"
22336 done
22337
22338 # Let's still pretend it is 'configure' which instantiates (i.e., don't
22339 # use $as_me), people would be surprised to read:
22340 # /* config.h. Generated by config.status. */
22341 configure_input='Generated from '`
22342 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
22343 `' by configure.'
22344 if test x"$ac_file" != x-; then
22345 configure_input="$ac_file. $configure_input"
22346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
22347 printf "%s\n" "$as_me: creating $ac_file" >&6;}
22348 fi
22349 # Neutralize special characters interpreted by sed in replacement strings.
22350 case $configure_input in #(
22351 *\&* | *\|* | *\\* )
22352 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
22353 sed 's/[\\\\&|]/\\\\&/g'`;; #(
22354 *) ac_sed_conf_input=$configure_input;;
22355 esac
22356
22357 case $ac_tag in
22358 *:-:* | *:-) cat >"$ac_tmp/stdin" \
22359 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
22360 esac
22361 ;;
22362 esac
22363
22364 ac_dir=`$as_dirname -- "$ac_file" ||
22365 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22366 X"$ac_file" : 'X\(//\)[^/]' \| \
22367 X"$ac_file" : 'X\(//\)$' \| \
22368 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22369 printf "%s\n" X"$ac_file" |
22370 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22371 s//\1/
22372 q
22373 }
22374 /^X\(\/\/\)[^/].*/{
22375 s//\1/
22376 q
22377 }
22378 /^X\(\/\/\)$/{
22379 s//\1/
22380 q
22381 }
22382 /^X\(\/\).*/{
22383 s//\1/
22384 q
22385 }
22386 s/.*/./; q'`
22387 as_dir="$ac_dir"; as_fn_mkdir_p
22388 ac_builddir=.
22389
22390 case "$ac_dir" in
22391 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22392 *)
22393 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
22394 # A ".." for each directory in $ac_dir_suffix.
22395 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
22396 case $ac_top_builddir_sub in
22397 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22398 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22399 esac ;;
22400 esac
22401 ac_abs_top_builddir=$ac_pwd
22402 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22403 # for backward compatibility:
22404 ac_top_builddir=$ac_top_build_prefix
22405
22406 case $srcdir in
22407 .) # We are building in place.
22408 ac_srcdir=.
22409 ac_top_srcdir=$ac_top_builddir_sub
22410 ac_abs_top_srcdir=$ac_pwd ;;
22411 [\\/]* | ?:[\\/]* ) # Absolute name.
22412 ac_srcdir=$srcdir$ac_dir_suffix;
22413 ac_top_srcdir=$srcdir
22414 ac_abs_top_srcdir=$srcdir ;;
22415 *) # Relative name.
22416 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22417 ac_top_srcdir=$ac_top_build_prefix$srcdir
22418 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22419 esac
22420 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22421
22422
22423 case $ac_mode in
22424 :F)
22425 #
22426 # CONFIG_FILE
22427 #
22428
22429 case $INSTALL in
22430 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22431 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22432 esac
22433 ac_MKDIR_P=$MKDIR_P
22434 case $MKDIR_P in
22435 [\\/$]* | ?:[\\/]* ) ;;
22436 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
22437 esac
22438 _ACEOF
22439
22440 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22441 # If the template does not know about datarootdir, expand it.
22442 # FIXME: This hack should be removed a few years after 2.60.
22443 ac_datarootdir_hack=; ac_datarootdir_seen=
22444 ac_sed_dataroot='
22445 /datarootdir/ {
22446 p
22447 q
22448 }
22449 /@datadir@/p
22450 /@docdir@/p
22451 /@infodir@/p
22452 /@localedir@/p
22453 /@mandir@/p'
22454 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
22455 *datarootdir*) ac_datarootdir_seen=yes;;
22456 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22457 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22458 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22459 _ACEOF
22460 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22461 ac_datarootdir_hack='
22462 s&@datadir@&$datadir&g
22463 s&@docdir@&$docdir&g
22464 s&@infodir@&$infodir&g
22465 s&@localedir@&$localedir&g
22466 s&@mandir@&$mandir&g
22467 s&\\\${datarootdir}&$datarootdir&g' ;;
22468 esac
22469 _ACEOF
22470
22471 # Neutralize VPATH when '$srcdir' = '.'.
22472 # Shell code in configure.ac might set extrasub.
22473 # FIXME: do we really want to maintain this feature?
22474 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22475 ac_sed_extra="$ac_vpsub
22476 $extrasub
22477 _ACEOF
22478 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22479 :t
22480 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22481 s|@configure_input@|$ac_sed_conf_input|;t t
22482 s&@top_builddir@&$ac_top_builddir_sub&;t t
22483 s&@top_build_prefix@&$ac_top_build_prefix&;t t
22484 s&@srcdir@&$ac_srcdir&;t t
22485 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22486 s&@top_srcdir@&$ac_top_srcdir&;t t
22487 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22488 s&@builddir@&$ac_builddir&;t t
22489 s&@abs_builddir@&$ac_abs_builddir&;t t
22490 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22491 s&@INSTALL@&$ac_INSTALL&;t t
22492 s&@MKDIR_P@&$ac_MKDIR_P&;t t
22493 $ac_datarootdir_hack
22494 "
22495 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
22496 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22497
22498 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22499 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
22500 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
22501 "$ac_tmp/out"`; test -z "$ac_out"; } &&
22502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir'
22503 which seems to be undefined. Please make sure it is defined" >&5
22504 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir'
22505 which seems to be undefined. Please make sure it is defined" >&2;}
22506
22507 rm -f "$ac_tmp/stdin"
22508 case $ac_file in
22509 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
22510 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
22511 esac \
22512 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22513 ;;
22514 :H)
22515 #
22516 # CONFIG_HEADER
22517 #
22518 if test x"$ac_file" != x-; then
22519 {
22520 printf "%s\n" "/* $configure_input */" >&1 \
22521 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
22522 } >"$ac_tmp/config.h" \
22523 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22524 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
22525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
22526 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
22527 else
22528 rm -f "$ac_file"
22529 mv "$ac_tmp/config.h" "$ac_file" \
22530 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22531 fi
22532 else
22533 printf "%s\n" "/* $configure_input */" >&1 \
22534 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
22535 || as_fn_error $? "could not create -" "$LINENO" 5
22536 fi
22537 # Compute "$ac_file"'s index in $config_headers.
22538 _am_arg="$ac_file"
22539 _am_stamp_count=1
22540 for _am_header in $config_headers :; do
22541 case $_am_header in
22542 $_am_arg | $_am_arg:* )
22543 break ;;
22544 * )
22545 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
22546 esac
22547 done
22548 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
22549 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22550 X"$_am_arg" : 'X\(//\)[^/]' \| \
22551 X"$_am_arg" : 'X\(//\)$' \| \
22552 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
22553 printf "%s\n" X"$_am_arg" |
22554 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22555 s//\1/
22556 q
22557 }
22558 /^X\(\/\/\)[^/].*/{
22559 s//\1/
22560 q
22561 }
22562 /^X\(\/\/\)$/{
22563 s//\1/
22564 q
22565 }
22566 /^X\(\/\).*/{
22567 s//\1/
22568 q
22569 }
22570 s/.*/./; q'`/stamp-h$_am_stamp_count
22571 ;;
22572
22573 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
22574 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
22575 ;;
22576 esac
22577
22578
22579 case $ac_file$ac_mode in
22580 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
22581 # Older Autoconf quotes --file arguments for eval, but not when files
22582 # are listed without --file. Let's play safe and only enable the eval
22583 # if we detect the quoting.
22584 # TODO: see whether this extra hack can be removed once we start
22585 # requiring Autoconf 2.70 or later.
22586 case $CONFIG_FILES in #(
22587 *\'*) :
22588 eval set x "$CONFIG_FILES" ;; #(
22589 *) :
22590 set x $CONFIG_FILES ;; #(
22591 *) :
22592 ;;
22593 esac
22594 shift
22595 # Used to flag and report bootstrapping failures.
22596 am_rc=0
22597 for am_mf
22598 do
22599 # Strip MF so we end up with the name of the file.
22600 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
22601 # Check whether this is an Automake generated Makefile which includes
22602 # dependency-tracking related rules and includes.
22603 # Grep'ing the whole file directly is not great: AIX grep has a line
22604 # limit of 2048, but all sed's we know have understand at least 4000.
22605 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
22606 || continue
22607 am_dirpart=`$as_dirname -- "$am_mf" ||
22608 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22609 X"$am_mf" : 'X\(//\)[^/]' \| \
22610 X"$am_mf" : 'X\(//\)$' \| \
22611 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
22612 printf "%s\n" X"$am_mf" |
22613 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22614 s//\1/
22615 q
22616 }
22617 /^X\(\/\/\)[^/].*/{
22618 s//\1/
22619 q
22620 }
22621 /^X\(\/\/\)$/{
22622 s//\1/
22623 q
22624 }
22625 /^X\(\/\).*/{
22626 s//\1/
22627 q
22628 }
22629 s/.*/./; q'`
22630 am_filepart=`$as_basename -- "$am_mf" ||
22631 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
22632 X"$am_mf" : 'X\(//\)$' \| \
22633 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
22634 printf "%s\n" X/"$am_mf" |
22635 sed '/^.*\/\([^/][^/]*\)\/*$/{
22636 s//\1/
22637 q
22638 }
22639 /^X\/\(\/\/\)$/{
22640 s//\1/
22641 q
22642 }
22643 /^X\/\(\/\).*/{
22644 s//\1/
22645 q
22646 }
22647 s/.*/./; q'`
22648 { echo "$as_me:$LINENO: cd "$am_dirpart" \
22649 && sed -e '/# am--include-marker/d' "$am_filepart" \
22650 | $MAKE -f - am--depfiles" >&5
22651 (cd "$am_dirpart" \
22652 && sed -e '/# am--include-marker/d' "$am_filepart" \
22653 | $MAKE -f - am--depfiles) >&5 2>&5
22654 ac_status=$?
22655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22656 (exit $ac_status); } || am_rc=$?
22657 done
22658 if test $am_rc -ne 0; then
22659 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
22660 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
22661 as_fn_error $? "Something went wrong bootstrapping makefile fragments
22662 for automatic dependency tracking. If GNU make was not used, consider
22663 re-running the configure script with MAKE=\"gmake\" (or whatever is
22664 necessary). You can also try re-running configure with the
22665 '--disable-dependency-tracking' option to at least be able to build
22666 the package (albeit without support for automatic dependency tracking).
22667 See 'config.log' for more details" "$LINENO" 5; }
22668 fi
22669 { am_dirpart=; unset am_dirpart;}
22670 { am_filepart=; unset am_filepart;}
22671 { am_mf=; unset am_mf;}
22672 { am_rc=; unset am_rc;}
22673 rm -f conftest-deps.mk
22674 }
22675 ;;
22676 "libtool":C)
22677
22678 # See if we are running on zsh, and set the options that allow our
22679 # commands through without removal of \ escapes.
22680 if test -n "${ZSH_VERSION+set}"; then
22681 setopt NO_GLOB_SUBST
22682 fi
22683
22684 cfgfile=${ofile}T
22685 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
22686 $RM "$cfgfile"
22687
22688 cat <<_LT_EOF >> "$cfgfile"
22689 #! $SHELL
22690 # Generated automatically by $as_me ($PACKAGE) $VERSION
22691 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
22692
22693 # Provide generalized library-building support services.
22694 # Written by Gordon Matzigkeit, 1996
22695
22696 # Copyright (C) 2024 Free Software Foundation, Inc.
22697 # This is free software; see the source for copying conditions. There is NO
22698 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
22699
22700 # GNU Libtool is free software; you can redistribute it and/or modify
22701 # it under the terms of the GNU General Public License as published by
22702 # the Free Software Foundation; either version 2 of the License, or
22703 # (at your option) any later version.
22704 #
22705 # As a special exception to the GNU General Public License, if you
22706 # distribute this file as part of a program or library that is built
22707 # using GNU Libtool, you may include this file under the same
22708 # distribution terms that you use for the rest of that program.
22709 #
22710 # GNU Libtool is distributed in the hope that it will be useful, but
22711 # WITHOUT ANY WARRANTY; without even the implied warranty of
22712 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22713 # GNU General Public License for more details.
22714 #
22715 # You should have received a copy of the GNU General Public License
22716 # along with this program. If not, see <http://www.gnu.org/licenses/>.
22717
22718
22719 # The names of the tagged configurations supported by this script.
22720 available_tags=''
22721
22722 # Configured defaults for sys_lib_dlsearch_path munging.
22723 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
22724
22725 # ### BEGIN LIBTOOL CONFIG
22726
22727 # Which release of libtool.m4 was used?
22728 macro_version=$macro_version
22729 macro_revision=$macro_revision
22730
22731 # Whether or not to build static libraries.
22732 build_old_libs=$enable_static
22733
22734 # Whether or not to build shared libraries.
22735 build_libtool_libs=$enable_shared
22736
22737 # What type of objects to build.
22738 pic_mode=$pic_mode
22739
22740 # Whether or not to optimize for fast installation.
22741 fast_install=$enable_fast_install
22742
22743 # Shared archive member basename,for filename based shared library versioning on AIX.
22744 shared_archive_member_spec=$shared_archive_member_spec
22745
22746 # Shell to use when invoking shell scripts.
22747 SHELL=$lt_SHELL
22748
22749 # An echo program that protects backslashes.
22750 ECHO=$lt_ECHO
22751
22752 # The PATH separator for the build system.
22753 PATH_SEPARATOR=$lt_PATH_SEPARATOR
22754
22755 # The host system.
22756 host_alias=$host_alias
22757 host=$host
22758 host_os=$host_os
22759
22760 # The build system.
22761 build_alias=$build_alias
22762 build=$build
22763 build_os=$build_os
22764
22765 # A sed program that does not truncate output.
22766 SED=$lt_SED
22767
22768 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
22769 Xsed="\$SED -e 1s/^X//"
22770
22771 # A grep program that handles long lines.
22772 GREP=$lt_GREP
22773
22774 # An ERE matcher.
22775 EGREP=$lt_EGREP
22776
22777 # A literal string matcher.
22778 FGREP=$lt_FGREP
22779
22780 # A BSD- or MS-compatible name lister.
22781 NM=$lt_NM
22782
22783 # Whether we need soft or hard links.
22784 LN_S=$lt_LN_S
22785
22786 # What is the maximum length of a command?
22787 max_cmd_len=$max_cmd_len
22788
22789 # Object file suffix (normally "o").
22790 objext=$ac_objext
22791
22792 # Executable file suffix (normally "").
22793 exeext=$exeext
22794
22795 # whether the shell understands "unset".
22796 lt_unset=$lt_unset
22797
22798 # turn spaces into newlines.
22799 SP2NL=$lt_lt_SP2NL
22800
22801 # turn newlines into spaces.
22802 NL2SP=$lt_lt_NL2SP
22803
22804 # convert \$build file names to \$host format.
22805 to_host_file_cmd=$lt_cv_to_host_file_cmd
22806
22807 # convert \$build files to toolchain format.
22808 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
22809
22810 # A file(cmd) program that detects file types.
22811 FILECMD=$lt_FILECMD
22812
22813 # An object symbol dumper.
22814 OBJDUMP=$lt_OBJDUMP
22815
22816 # Method to check whether dependent libraries are shared objects.
22817 deplibs_check_method=$lt_deplibs_check_method
22818
22819 # Command to use when deplibs_check_method = "file_magic".
22820 file_magic_cmd=$lt_file_magic_cmd
22821
22822 # How to find potential files when deplibs_check_method = "file_magic".
22823 file_magic_glob=$lt_file_magic_glob
22824
22825 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
22826 want_nocaseglob=$lt_want_nocaseglob
22827
22828 # DLL creation program.
22829 DLLTOOL=$lt_DLLTOOL
22830
22831 # Command to associate shared and link libraries.
22832 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
22833
22834 # The archiver.
22835 AR=$lt_AR
22836
22837 # Flags to create an archive (by configure).
22838 lt_ar_flags=$lt_ar_flags
22839
22840 # Flags to create an archive.
22841 AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
22842
22843 # How to feed a file listing to the archiver.
22844 archiver_list_spec=$lt_archiver_list_spec
22845
22846 # A symbol stripping program.
22847 STRIP=$lt_STRIP
22848
22849 # Commands used to install an old-style archive.
22850 RANLIB=$lt_RANLIB
22851 old_postinstall_cmds=$lt_old_postinstall_cmds
22852 old_postuninstall_cmds=$lt_old_postuninstall_cmds
22853
22854 # Whether to use a lock for old archive extraction.
22855 lock_old_archive_extraction=$lock_old_archive_extraction
22856
22857 # A C compiler.
22858 LTCC=$lt_CC
22859
22860 # LTCC compiler flags.
22861 LTCFLAGS=$lt_CFLAGS
22862
22863 # Take the output of nm and produce a listing of raw symbols and C names.
22864 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
22865
22866 # Transform the output of nm in a proper C declaration.
22867 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
22868
22869 # Transform the output of nm into a list of symbols to manually relocate.
22870 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
22871
22872 # Transform the output of nm in a C name address pair.
22873 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
22874
22875 # Transform the output of nm in a C name address pair when lib prefix is needed.
22876 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
22877
22878 # The name lister interface.
22879 nm_interface=$lt_lt_cv_nm_interface
22880
22881 # Specify filename containing input files for \$NM.
22882 nm_file_list_spec=$lt_nm_file_list_spec
22883
22884 # The root where to search for dependent libraries,and where our libraries should be installed.
22885 lt_sysroot=$lt_sysroot
22886
22887 # Command to truncate a binary pipe.
22888 lt_truncate_bin=$lt_lt_cv_truncate_bin
22889
22890 # The name of the directory that contains temporary libtool files.
22891 objdir=$objdir
22892
22893 # Used to examine libraries when file_magic_cmd begins with "file".
22894 MAGIC_CMD=$MAGIC_CMD
22895
22896 # Must we lock files when doing compilation?
22897 need_locks=$lt_need_locks
22898
22899 # Manifest tool.
22900 MANIFEST_TOOL=$lt_MANIFEST_TOOL
22901
22902 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
22903 DSYMUTIL=$lt_DSYMUTIL
22904
22905 # Tool to change global to local symbols on Mac OS X.
22906 NMEDIT=$lt_NMEDIT
22907
22908 # Tool to manipulate fat objects and archives on Mac OS X.
22909 LIPO=$lt_LIPO
22910
22911 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
22912 OTOOL=$lt_OTOOL
22913
22914 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
22915 OTOOL64=$lt_OTOOL64
22916
22917 # Old archive suffix (normally "a").
22918 libext=$libext
22919
22920 # Shared library suffix (normally ".so").
22921 shrext_cmds=$lt_shrext_cmds
22922
22923 # The commands to extract the exported symbol list from a shared archive.
22924 extract_expsyms_cmds=$lt_extract_expsyms_cmds
22925
22926 # Variables whose values should be saved in libtool wrapper scripts and
22927 # restored at link time.
22928 variables_saved_for_relink=$lt_variables_saved_for_relink
22929
22930 # Do we need the "lib" prefix for modules?
22931 need_lib_prefix=$need_lib_prefix
22932
22933 # Do we need a version for libraries?
22934 need_version=$need_version
22935
22936 # Library versioning type.
22937 version_type=$version_type
22938
22939 # Shared library runtime path variable.
22940 runpath_var=$runpath_var
22941
22942 # Shared library path variable.
22943 shlibpath_var=$shlibpath_var
22944
22945 # Is shlibpath searched before the hard-coded library search path?
22946 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
22947
22948 # Format of library name prefix.
22949 libname_spec=$lt_libname_spec
22950
22951 # List of archive names. First name is the real one, the rest are links.
22952 # The last name is the one that the linker finds with -lNAME
22953 library_names_spec=$lt_library_names_spec
22954
22955 # The coded name of the library, if different from the real name.
22956 soname_spec=$lt_soname_spec
22957
22958 # Permission mode override for installation of shared libraries.
22959 install_override_mode=$lt_install_override_mode
22960
22961 # Command to use after installation of a shared archive.
22962 postinstall_cmds=$lt_postinstall_cmds
22963
22964 # Command to use after uninstallation of a shared archive.
22965 postuninstall_cmds=$lt_postuninstall_cmds
22966
22967 # Commands used to finish a libtool library installation in a directory.
22968 finish_cmds=$lt_finish_cmds
22969
22970 # As "finish_cmds", except a single script fragment to be evaled but
22971 # not shown.
22972 finish_eval=$lt_finish_eval
22973
22974 # Whether we should hardcode library paths into libraries.
22975 hardcode_into_libs=$hardcode_into_libs
22976
22977 # Compile-time system search path for libraries.
22978 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
22979
22980 # Detected run-time system search path for libraries.
22981 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
22982
22983 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
22984 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
22985
22986 # Whether dlopen is supported.
22987 dlopen_support=$enable_dlopen
22988
22989 # Whether dlopen of programs is supported.
22990 dlopen_self=$enable_dlopen_self
22991
22992 # Whether dlopen of statically linked programs is supported.
22993 dlopen_self_static=$enable_dlopen_self_static
22994
22995 # Commands to strip libraries.
22996 old_striplib=$lt_old_striplib
22997 striplib=$lt_striplib
22998
22999
23000 # The linker used to build libraries.
23001 LD=$lt_LD
23002
23003 # How to create reloadable object files.
23004 reload_flag=$lt_reload_flag
23005 reload_cmds=$lt_reload_cmds
23006
23007 # Commands used to build an old-style archive.
23008 old_archive_cmds=$lt_old_archive_cmds
23009
23010 # A language specific compiler.
23011 CC=$lt_compiler
23012
23013 # Is the compiler the GNU compiler?
23014 with_gcc=$GCC
23015
23016 # Compiler flag to turn off builtin functions.
23017 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
23018
23019 # Additional compiler flags for building library objects.
23020 pic_flag=$lt_lt_prog_compiler_pic
23021
23022 # How to pass a linker flag through the compiler.
23023 wl=$lt_lt_prog_compiler_wl
23024
23025 # Compiler flag to prevent dynamic linking.
23026 link_static_flag=$lt_lt_prog_compiler_static
23027
23028 # Does compiler simultaneously support -c and -o options?
23029 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
23030
23031 # Whether or not to add -lc for building shared libraries.
23032 build_libtool_need_lc=$archive_cmds_need_lc
23033
23034 # Whether or not to disallow shared libs when runtime libs are static.
23035 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
23036
23037 # Compiler flag to allow reflexive dlopens.
23038 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
23039
23040 # Compiler flag to generate shared objects directly from archives.
23041 whole_archive_flag_spec=$lt_whole_archive_flag_spec
23042
23043 # Whether the compiler copes with passing no objects directly.
23044 compiler_needs_object=$lt_compiler_needs_object
23045
23046 # Create an old-style archive from a shared archive.
23047 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
23048
23049 # Create a temporary old-style archive to link instead of a shared archive.
23050 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
23051
23052 # Commands used to build a shared archive.
23053 archive_cmds=$lt_archive_cmds
23054 archive_expsym_cmds=$lt_archive_expsym_cmds
23055
23056 # Commands used to build a loadable module if different from building
23057 # a shared archive.
23058 module_cmds=$lt_module_cmds
23059 module_expsym_cmds=$lt_module_expsym_cmds
23060
23061 # Whether we are building with GNU ld or not.
23062 with_gnu_ld=$lt_with_gnu_ld
23063
23064 # Flag that allows shared libraries with undefined symbols to be built.
23065 allow_undefined_flag=$lt_allow_undefined_flag
23066
23067 # Flag that enforces no undefined symbols.
23068 no_undefined_flag=$lt_no_undefined_flag
23069
23070 # Flag to hardcode \$libdir into a binary during linking.
23071 # This must work even if \$libdir does not exist
23072 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
23073
23074 # Whether we need a single "-rpath" flag with a separated argument.
23075 hardcode_libdir_separator=$lt_hardcode_libdir_separator
23076
23077 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
23078 # DIR into the resulting binary.
23079 hardcode_direct=$hardcode_direct
23080
23081 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
23082 # DIR into the resulting binary and the resulting library dependency is
23083 # "absolute",i.e. impossible to change by setting \$shlibpath_var if the
23084 # library is relocated.
23085 hardcode_direct_absolute=$hardcode_direct_absolute
23086
23087 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
23088 # into the resulting binary.
23089 hardcode_minus_L=$hardcode_minus_L
23090
23091 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
23092 # into the resulting binary.
23093 hardcode_shlibpath_var=$hardcode_shlibpath_var
23094
23095 # Set to "yes" if building a shared library automatically hardcodes DIR
23096 # into the library and all subsequent libraries and executables linked
23097 # against it.
23098 hardcode_automatic=$hardcode_automatic
23099
23100 # Set to yes if linker adds runtime paths of dependent libraries
23101 # to runtime path list.
23102 inherit_rpath=$inherit_rpath
23103
23104 # Whether libtool must link a program against all its dependency libraries.
23105 link_all_deplibs=$link_all_deplibs
23106
23107 # Set to "yes" if exported symbols are required.
23108 always_export_symbols=$always_export_symbols
23109
23110 # The commands to list exported symbols.
23111 export_symbols_cmds=$lt_export_symbols_cmds
23112
23113 # Symbols that should not be listed in the preloaded symbols.
23114 exclude_expsyms=$lt_exclude_expsyms
23115
23116 # Symbols that must always be exported.
23117 include_expsyms=$lt_include_expsyms
23118
23119 # Commands necessary for linking programs (against libraries) with templates.
23120 prelink_cmds=$lt_prelink_cmds
23121
23122 # Commands necessary for finishing linking programs.
23123 postlink_cmds=$lt_postlink_cmds
23124
23125 # Specify filename containing input files.
23126 file_list_spec=$lt_file_list_spec
23127
23128 # How to hardcode a shared library path into an executable.
23129 hardcode_action=$hardcode_action
23130
23131 # ### END LIBTOOL CONFIG
23132
23133 _LT_EOF
23134
23135 cat <<'_LT_EOF' >> "$cfgfile"
23136
23137 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
23138
23139 # func_munge_path_list VARIABLE PATH
23140 # -----------------------------------
23141 # VARIABLE is name of variable containing _space_ separated list of
23142 # directories to be munged by the contents of PATH, which is string
23143 # having a format:
23144 # "DIR[:DIR]:"
23145 # string "DIR[ DIR]" will be prepended to VARIABLE
23146 # ":DIR[:DIR]"
23147 # string "DIR[ DIR]" will be appended to VARIABLE
23148 # "DIRP[:DIRP]::[DIRA:]DIRA"
23149 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
23150 # "DIRA[ DIRA]" will be appended to VARIABLE
23151 # "DIR[:DIR]"
23152 # VARIABLE will be replaced by "DIR[ DIR]"
23153 func_munge_path_list ()
23154 {
23155 case x$2 in
23156 x)
23157 ;;
23158 *:)
23159 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
23160 ;;
23161 x:*)
23162 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
23163 ;;
23164 *::*)
23165 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
23166 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
23167 ;;
23168 *)
23169 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
23170 ;;
23171 esac
23172 }
23173
23174
23175 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
23176 func_cc_basename ()
23177 {
23178 for cc_temp in $*""; do
23179 case $cc_temp in
23180 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23181 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23182 \-*) ;;
23183 *) break;;
23184 esac
23185 done
23186 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
23187 }
23188
23189
23190 # ### END FUNCTIONS SHARED WITH CONFIGURE
23191
23192 _LT_EOF
23193
23194 case $host_os in
23195 aix3*)
23196 cat <<\_LT_EOF >> "$cfgfile"
23197 # AIX sometimes has problems with the GCC collect2 program. For some
23198 # reason, if we set the COLLECT_NAMES environment variable, the problems
23199 # vanish in a puff of smoke.
23200 if test set != "${COLLECT_NAMES+set}"; then
23201 COLLECT_NAMES=
23202 export COLLECT_NAMES
23203 fi
23204 _LT_EOF
23205 ;;
23206 esac
23207
23208
23209
23210 ltmain=$ac_aux_dir/ltmain.sh
23211
23212
23213 # We use sed instead of cat because bash on DJGPP gets confused if
23214 # if finds mixed CR/LF and LF-only lines. Since sed operates in
23215 # text mode, it properly converts lines to CR/LF. This bash problem
23216 # is reportedly fixed, but why not run on old versions too?
23217 $SED '$q' "$ltmain" >> "$cfgfile" \
23218 || (rm -f "$cfgfile"; exit 1)
23219
23220 mv -f "$cfgfile" "$ofile" ||
23221 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
23222 chmod +x "$ofile"
23223
23224 ;;
23225
23226 esac
23227 done # for ac_tag
23228
23229
23230 as_fn_exit 0
23231 _ACEOF
23232 ac_clean_files=$ac_clean_files_save
23233
23234 test $ac_write_fail = 0 ||
23235 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
23236
23237
23238 # configure is writing to config.log, and then calls config.status.
23239 # config.status does its own redirection, appending to config.log.
23240 # Unfortunately, on DOS this fails, as config.log is still kept open
23241 # by configure, so config.status won't be able to write to it; its
23242 # output is simply discarded. So we exec the FD to /dev/null,
23243 # effectively closing config.log, so it can be properly (re)opened and
23244 # appended to by config.status. When coming back to configure, we
23245 # need to make the FD available again.
23246 if test "$no_create" != yes; then
23247 ac_cs_success=:
23248 ac_config_status_args=
23249 test "$silent" = yes &&
23250 ac_config_status_args="$ac_config_status_args --quiet"
23251 exec 5>/dev/null
23252 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23253 exec 5>>config.log
23254 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23255 # would make configure fail if this is the last instruction.
23256 $ac_cs_success || as_fn_exit 1
23257 fi
23258 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
23259 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
23260 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
23261 fi
23262
23263
23264