configure revision 1.1.1.10 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.71 for xf86-video-savage 2.4.0.
4 #
5 # Report bugs to <https://gitlab.freedesktop.org/xorg/driver/xf86-video-savage/-/issues>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2017, 2020-2021 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 as_nop=:
21 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
22 then :
23 emulate sh
24 NULLCMD=:
25 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26 # is contrary to our usage. Disable this feature.
27 alias -g '${1+"$@"}'='"$@"'
28 setopt NO_GLOB_SUBST
29 else $as_nop
30 case `(set -o) 2>/dev/null` in #(
31 *posix*) :
32 set -o posix ;; #(
33 *) :
34 ;;
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="as_nop=:
144 if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
145 then :
146 emulate sh
147 NULLCMD=:
148 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
149 # is contrary to our usage. Disable this feature.
150 alias -g '\${1+\"\$@\"}'='\"\$@\"'
151 setopt NO_GLOB_SUBST
152 else \$as_nop
153 case \`(set -o) 2>/dev/null\` in #(
154 *posix*) :
155 set -o posix ;; #(
156 *) :
157 ;;
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 \$as_nop
176 exitcode=1; echo positional parameters were not saved.
177 fi
178 test x\$exitcode = x0 || exit 1
179 blah=\$(echo \$(echo blah))
180 test x\"\$blah\" = xblah || exit 1
181 test -x / || exit 1"
182 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
183 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
184 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
185 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
186 test \$(( 1 + 1 )) = 2 || exit 1
187
188 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
189 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
190 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
191 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
192 PATH=/empty FPATH=/empty; export PATH FPATH
193 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
194 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
195 if (eval "$as_required") 2>/dev/null
196 then :
197 as_have_required=yes
198 else $as_nop
199 as_have_required=no
200 fi
201 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
202 then :
203
204 else $as_nop
205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
206 as_found=false
207 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
208 do
209 IFS=$as_save_IFS
210 case $as_dir in #(((
211 '') as_dir=./ ;;
212 */) ;;
213 *) as_dir=$as_dir/ ;;
214 esac
215 as_found=:
216 case $as_dir in #(
217 /*)
218 for as_base in sh bash ksh sh5; do
219 # Try only shells that exist, to save several forks.
220 as_shell=$as_dir$as_base
221 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
222 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
223 then :
224 CONFIG_SHELL=$as_shell as_have_required=yes
225 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
226 then :
227 break 2
228 fi
229 fi
230 done;;
231 esac
232 as_found=false
233 done
234 IFS=$as_save_IFS
235 if $as_found
236 then :
237
238 else $as_nop
239 if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
241 then :
242 CONFIG_SHELL=$SHELL as_have_required=yes
243 fi
244 fi
245
246
247 if test "x$CONFIG_SHELL" != x
248 then :
249 export CONFIG_SHELL
250 # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
254 BASH_ENV=/dev/null
255 ENV=/dev/null
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257 case $- in # ((((
258 *v*x* | *x*v* ) as_opts=-vx ;;
259 *v* ) as_opts=-v ;;
260 *x* ) as_opts=-x ;;
261 * ) as_opts= ;;
262 esac
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
267 exit 255
268 fi
269
270 if test x$as_have_required = xno
271 then :
272 printf "%s\n" "$0: This script requires a shell more modern than all"
273 printf "%s\n" "$0: the shells that I found on your system."
274 if test ${ZSH_VERSION+y} ; then
275 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
276 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
277 else
278 printf "%s\n" "$0: Please tell bug-autoconf (at] gnu.org and
279 $0: https://gitlab.freedesktop.org/xorg/driver/xf86-video-savage/-/issues
280 $0: about your system, including any error possibly output
281 $0: before this message. Then install a modern shell, or
282 $0: manually run the script under such a shell if you do
283 $0: have one."
284 fi
285 exit 1
286 fi
287 fi
288 fi
289 SHELL=${CONFIG_SHELL-/bin/sh}
290 export SHELL
291 # Unset more variables known to interfere with behavior of common tools.
292 CLICOLOR_FORCE= GREP_OPTIONS=
293 unset CLICOLOR_FORCE GREP_OPTIONS
294
295 ## --------------------- ##
296 ## M4sh Shell Functions. ##
297 ## --------------------- ##
298 # as_fn_unset VAR
299 # ---------------
300 # Portably unset VAR.
301 as_fn_unset ()
302 {
303 { eval $1=; unset $1;}
304 }
305 as_unset=as_fn_unset
306
307
308 # as_fn_set_status STATUS
309 # -----------------------
310 # Set $? to STATUS, without forking.
311 as_fn_set_status ()
312 {
313 return $1
314 } # as_fn_set_status
315
316 # as_fn_exit STATUS
317 # -----------------
318 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
319 as_fn_exit ()
320 {
321 set +e
322 as_fn_set_status $1
323 exit $1
324 } # as_fn_exit
325 # as_fn_nop
326 # ---------
327 # Do nothing but, unlike ":", preserve the value of $?.
328 as_fn_nop ()
329 {
330 return $?
331 }
332 as_nop=as_fn_nop
333
334 # as_fn_mkdir_p
335 # -------------
336 # Create "$as_dir" as a directory, including parents if necessary.
337 as_fn_mkdir_p ()
338 {
339
340 case $as_dir in #(
341 -*) as_dir=./$as_dir;;
342 esac
343 test -d "$as_dir" || eval $as_mkdir_p || {
344 as_dirs=
345 while :; do
346 case $as_dir in #(
347 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
348 *) as_qdir=$as_dir;;
349 esac
350 as_dirs="'$as_qdir' $as_dirs"
351 as_dir=`$as_dirname -- "$as_dir" ||
352 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
353 X"$as_dir" : 'X\(//\)[^/]' \| \
354 X"$as_dir" : 'X\(//\)$' \| \
355 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
356 printf "%s\n" X"$as_dir" |
357 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
358 s//\1/
359 q
360 }
361 /^X\(\/\/\)[^/].*/{
362 s//\1/
363 q
364 }
365 /^X\(\/\/\)$/{
366 s//\1/
367 q
368 }
369 /^X\(\/\).*/{
370 s//\1/
371 q
372 }
373 s/.*/./; q'`
374 test -d "$as_dir" && break
375 done
376 test -z "$as_dirs" || eval "mkdir $as_dirs"
377 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
378
379
380 } # as_fn_mkdir_p
381
382 # as_fn_executable_p FILE
383 # -----------------------
384 # Test if FILE is an executable regular file.
385 as_fn_executable_p ()
386 {
387 test -f "$1" && test -x "$1"
388 } # as_fn_executable_p
389 # as_fn_append VAR VALUE
390 # ----------------------
391 # Append the text in VALUE to the end of the definition contained in VAR. Take
392 # advantage of any shell optimizations that allow amortized linear growth over
393 # repeated appends, instead of the typical quadratic growth present in naive
394 # implementations.
395 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
396 then :
397 eval 'as_fn_append ()
398 {
399 eval $1+=\$2
400 }'
401 else $as_nop
402 as_fn_append ()
403 {
404 eval $1=\$$1\$2
405 }
406 fi # as_fn_append
407
408 # as_fn_arith ARG...
409 # ------------------
410 # Perform arithmetic evaluation on the ARGs, and store the result in the
411 # global $as_val. Take advantage of shells that can avoid forks. The arguments
412 # must be portable across $(()) and expr.
413 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
414 then :
415 eval 'as_fn_arith ()
416 {
417 as_val=$(( $* ))
418 }'
419 else $as_nop
420 as_fn_arith ()
421 {
422 as_val=`expr "$@" || test $? -eq 1`
423 }
424 fi # as_fn_arith
425
426 # as_fn_nop
427 # ---------
428 # Do nothing but, unlike ":", preserve the value of $?.
429 as_fn_nop ()
430 {
431 return $?
432 }
433 as_nop=as_fn_nop
434
435 # as_fn_error STATUS ERROR [LINENO LOG_FD]
436 # ----------------------------------------
437 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
438 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
439 # script with STATUS, using 1 if that was 0.
440 as_fn_error ()
441 {
442 as_status=$1; test $as_status -eq 0 && as_status=1
443 if test "$4"; then
444 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
445 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
446 fi
447 printf "%s\n" "$as_me: error: $2" >&2
448 as_fn_exit $as_status
449 } # as_fn_error
450
451 if expr a : '\(a\)' >/dev/null 2>&1 &&
452 test "X`expr 00001 : '.*\(...\)'`" = X001; then
453 as_expr=expr
454 else
455 as_expr=false
456 fi
457
458 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
459 as_basename=basename
460 else
461 as_basename=false
462 fi
463
464 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
465 as_dirname=dirname
466 else
467 as_dirname=false
468 fi
469
470 as_me=`$as_basename -- "$0" ||
471 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
472 X"$0" : 'X\(//\)$' \| \
473 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
474 printf "%s\n" X/"$0" |
475 sed '/^.*\/\([^/][^/]*\)\/*$/{
476 s//\1/
477 q
478 }
479 /^X\/\(\/\/\)$/{
480 s//\1/
481 q
482 }
483 /^X\/\(\/\).*/{
484 s//\1/
485 q
486 }
487 s/.*/./; q'`
488
489 # Avoid depending upon Character Ranges.
490 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
491 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
492 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
493 as_cr_digits='0123456789'
494 as_cr_alnum=$as_cr_Letters$as_cr_digits
495
496
497 as_lineno_1=$LINENO as_lineno_1a=$LINENO
498 as_lineno_2=$LINENO as_lineno_2a=$LINENO
499 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
500 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
501 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
502 sed -n '
503 p
504 /[$]LINENO/=
505 ' <$as_myself |
506 sed '
507 s/[$]LINENO.*/&-/
508 t lineno
509 b
510 :lineno
511 N
512 :loop
513 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
514 t loop
515 s/-\n.*//
516 ' >$as_me.lineno &&
517 chmod +x "$as_me.lineno" ||
518 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
519
520 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
521 # already done that, so ensure we don't try to do so again and fall
522 # in an infinite loop. This has already happened in practice.
523 _as_can_reexec=no; export _as_can_reexec
524 # Don't try to exec as it changes $[0], causing all sort of problems
525 # (the dirname of $[0] is not the place where we might find the
526 # original and so on. Autoconf is especially sensitive to this).
527 . "./$as_me.lineno"
528 # Exit status is that of the last command.
529 exit
530 }
531
532
533 # Determine whether it's possible to make 'echo' print without a newline.
534 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
535 # for compatibility with existing Makefiles.
536 ECHO_C= ECHO_N= ECHO_T=
537 case `echo -n x` in #(((((
538 -n*)
539 case `echo 'xy\c'` in
540 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
541 xy) ECHO_C='\c';;
542 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
543 ECHO_T=' ';;
544 esac;;
545 *)
546 ECHO_N='-n';;
547 esac
548
549 # For backward compatibility with old third-party macros, we provide
550 # the shell variables $as_echo and $as_echo_n. New code should use
551 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
552 as_echo='printf %s\n'
553 as_echo_n='printf %s'
554
555
556 rm -f conf$$ conf$$.exe conf$$.file
557 if test -d conf$$.dir; then
558 rm -f conf$$.dir/conf$$.file
559 else
560 rm -f conf$$.dir
561 mkdir conf$$.dir 2>/dev/null
562 fi
563 if (echo >conf$$.file) 2>/dev/null; then
564 if ln -s conf$$.file conf$$ 2>/dev/null; then
565 as_ln_s='ln -s'
566 # ... but there are two gotchas:
567 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
568 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
569 # In both cases, we have to default to `cp -pR'.
570 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
571 as_ln_s='cp -pR'
572 elif ln conf$$.file conf$$ 2>/dev/null; then
573 as_ln_s=ln
574 else
575 as_ln_s='cp -pR'
576 fi
577 else
578 as_ln_s='cp -pR'
579 fi
580 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
581 rmdir conf$$.dir 2>/dev/null
582
583 if mkdir -p . 2>/dev/null; then
584 as_mkdir_p='mkdir -p "$as_dir"'
585 else
586 test -d ./-p && rmdir ./-p
587 as_mkdir_p=false
588 fi
589
590 as_test_x='test -x'
591 as_executable_p=as_fn_executable_p
592
593 # Sed expression to map a string onto a valid CPP name.
594 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
595
596 # Sed expression to map a string onto a valid variable name.
597 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
598
599 SHELL=${CONFIG_SHELL-/bin/sh}
600
601
602 test -n "$DJDIR" || exec 7<&0 </dev/null
603 exec 6>&1
604
605 # Name of the host.
606 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
607 # so uname gets run too.
608 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
609
610 #
611 # Initializations.
612 #
613 ac_default_prefix=/usr/local
614 ac_clean_files=
615 ac_config_libobj_dir=.
616 LIBOBJS=
617 cross_compiling=no
618 subdirs=
619 MFLAGS=
620 MAKEFLAGS=
621
622 # Identity of this package.
623 PACKAGE_NAME='xf86-video-savage'
624 PACKAGE_TARNAME='xf86-video-savage'
625 PACKAGE_VERSION='2.4.0'
626 PACKAGE_STRING='xf86-video-savage 2.4.0'
627 PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/driver/xf86-video-savage/-/issues'
628 PACKAGE_URL=''
629
630 ac_unique_file="Makefile.am"
631 # Factoring default headers for most tests.
632 ac_includes_default="\
633 #include <stddef.h>
634 #ifdef HAVE_STDIO_H
635 # include <stdio.h>
636 #endif
637 #ifdef HAVE_STDLIB_H
638 # include <stdlib.h>
639 #endif
640 #ifdef HAVE_STRING_H
641 # include <string.h>
642 #endif
643 #ifdef HAVE_INTTYPES_H
644 # include <inttypes.h>
645 #endif
646 #ifdef HAVE_STDINT_H
647 # include <stdint.h>
648 #endif
649 #ifdef HAVE_STRINGS_H
650 # include <strings.h>
651 #endif
652 #ifdef HAVE_SYS_TYPES_H
653 # include <sys/types.h>
654 #endif
655 #ifdef HAVE_SYS_STAT_H
656 # include <sys/stat.h>
657 #endif
658 #ifdef HAVE_UNISTD_H
659 # include <unistd.h>
660 #endif"
661
662 ac_header_c_list=
663 ac_subst_vars='am__EXEEXT_FALSE
664 am__EXEEXT_TRUE
665 LTLIBOBJS
666 LIBOBJS
667 DRIVER_NAME
668 moduledir
669 XSERVER_LIBPCIACCESS_FALSE
670 XSERVER_LIBPCIACCESS_TRUE
671 PCIACCESS_LIBS
672 PCIACCESS_CFLAGS
673 XAA_FALSE
674 XAA_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_BACKSLASH
755 AM_DEFAULT_VERBOSITY
756 AM_DEFAULT_V
757 AM_V
758 CSCOPE
759 ETAGS
760 CTAGS
761 am__untar
762 am__tar
763 AMTAR
764 am__leading_dot
765 SET_MAKE
766 AWK
767 mkdir_p
768 MKDIR_P
769 INSTALL_STRIP_PROGRAM
770 STRIP
771 install_sh
772 MAKEINFO
773 AUTOHEADER
774 AUTOMAKE
775 AUTOCONF
776 ACLOCAL
777 VERSION
778 PACKAGE
779 CYGPATH_W
780 am__isrc
781 INSTALL_DATA
782 INSTALL_SCRIPT
783 INSTALL_PROGRAM
784 target_alias
785 host_alias
786 build_alias
787 LIBS
788 ECHO_T
789 ECHO_N
790 ECHO_C
791 DEFS
792 mandir
793 localedir
794 libdir
795 psdir
796 pdfdir
797 dvidir
798 htmldir
799 infodir
800 docdir
801 oldincludedir
802 includedir
803 runstatedir
804 localstatedir
805 sharedstatedir
806 sysconfdir
807 datadir
808 datarootdir
809 libexecdir
810 sbindir
811 bindir
812 program_transform_name
813 prefix
814 exec_prefix
815 PACKAGE_URL
816 PACKAGE_BUGREPORT
817 PACKAGE_STRING
818 PACKAGE_VERSION
819 PACKAGE_TARNAME
820 PACKAGE_NAME
821 PATH_SEPARATOR
822 SHELL
823 am__quote'
824 ac_subst_files=''
825 ac_user_opts='
826 enable_option_checking
827 enable_silent_rules
828 enable_dependency_tracking
829 enable_selective_werror
830 enable_strict_compilation
831 enable_static
832 enable_shared
833 with_pic
834 enable_fast_install
835 with_aix_soname
836 with_gnu_ld
837 with_sysroot
838 enable_libtool_lock
839 with_xorg_module_dir
840 enable_dri
841 enable_xaa
842 '
843 ac_precious_vars='build_alias
844 host_alias
845 target_alias
846 CC
847 CFLAGS
848 LDFLAGS
849 LIBS
850 CPPFLAGS
851 PKG_CONFIG
852 PKG_CONFIG_PATH
853 PKG_CONFIG_LIBDIR
854 LT_SYS_LIBRARY_PATH
855 XORG_CFLAGS
856 XORG_LIBS
857 XEXT_CFLAGS
858 XEXT_LIBS
859 DRI_CFLAGS
860 DRI_LIBS
861 PCIACCESS_CFLAGS
862 PCIACCESS_LIBS'
863
864
865 # Initialize some variables set by options.
866 ac_init_help=
867 ac_init_version=false
868 ac_unrecognized_opts=
869 ac_unrecognized_sep=
870 # The variables have the same names as the options, with
871 # dashes changed to underlines.
872 cache_file=/dev/null
873 exec_prefix=NONE
874 no_create=
875 no_recursion=
876 prefix=NONE
877 program_prefix=NONE
878 program_suffix=NONE
879 program_transform_name=s,x,x,
880 silent=
881 site=
882 srcdir=
883 verbose=
884 x_includes=NONE
885 x_libraries=NONE
886
887 # Installation directory options.
888 # These are left unexpanded so users can "make install exec_prefix=/foo"
889 # and all the variables that are supposed to be based on exec_prefix
890 # by default will actually change.
891 # Use braces instead of parens because sh, perl, etc. also accept them.
892 # (The list follows the same order as the GNU Coding Standards.)
893 bindir='${exec_prefix}/bin'
894 sbindir='${exec_prefix}/sbin'
895 libexecdir='${exec_prefix}/libexec'
896 datarootdir='${prefix}/share'
897 datadir='${datarootdir}'
898 sysconfdir='${prefix}/etc'
899 sharedstatedir='${prefix}/com'
900 localstatedir='${prefix}/var'
901 runstatedir='${localstatedir}/run'
902 includedir='${prefix}/include'
903 oldincludedir='/usr/include'
904 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
905 infodir='${datarootdir}/info'
906 htmldir='${docdir}'
907 dvidir='${docdir}'
908 pdfdir='${docdir}'
909 psdir='${docdir}'
910 libdir='${exec_prefix}/lib'
911 localedir='${datarootdir}/locale'
912 mandir='${datarootdir}/man'
913
914 ac_prev=
915 ac_dashdash=
916 for ac_option
917 do
918 # If the previous option needs an argument, assign it.
919 if test -n "$ac_prev"; then
920 eval $ac_prev=\$ac_option
921 ac_prev=
922 continue
923 fi
924
925 case $ac_option in
926 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
927 *=) ac_optarg= ;;
928 *) ac_optarg=yes ;;
929 esac
930
931 case $ac_dashdash$ac_option in
932 --)
933 ac_dashdash=yes ;;
934
935 -bindir | --bindir | --bindi | --bind | --bin | --bi)
936 ac_prev=bindir ;;
937 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
938 bindir=$ac_optarg ;;
939
940 -build | --build | --buil | --bui | --bu)
941 ac_prev=build_alias ;;
942 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
943 build_alias=$ac_optarg ;;
944
945 -cache-file | --cache-file | --cache-fil | --cache-fi \
946 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
947 ac_prev=cache_file ;;
948 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
949 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
950 cache_file=$ac_optarg ;;
951
952 --config-cache | -C)
953 cache_file=config.cache ;;
954
955 -datadir | --datadir | --datadi | --datad)
956 ac_prev=datadir ;;
957 -datadir=* | --datadir=* | --datadi=* | --datad=*)
958 datadir=$ac_optarg ;;
959
960 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
961 | --dataroo | --dataro | --datar)
962 ac_prev=datarootdir ;;
963 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
964 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
965 datarootdir=$ac_optarg ;;
966
967 -disable-* | --disable-*)
968 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
969 # Reject names that are not valid shell variable names.
970 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
971 as_fn_error $? "invalid feature name: \`$ac_useropt'"
972 ac_useropt_orig=$ac_useropt
973 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
974 case $ac_user_opts in
975 *"
976 "enable_$ac_useropt"
977 "*) ;;
978 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
979 ac_unrecognized_sep=', ';;
980 esac
981 eval enable_$ac_useropt=no ;;
982
983 -docdir | --docdir | --docdi | --doc | --do)
984 ac_prev=docdir ;;
985 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
986 docdir=$ac_optarg ;;
987
988 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
989 ac_prev=dvidir ;;
990 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
991 dvidir=$ac_optarg ;;
992
993 -enable-* | --enable-*)
994 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
995 # Reject names that are not valid shell variable names.
996 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
997 as_fn_error $? "invalid feature name: \`$ac_useropt'"
998 ac_useropt_orig=$ac_useropt
999 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1000 case $ac_user_opts in
1001 *"
1002 "enable_$ac_useropt"
1003 "*) ;;
1004 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1005 ac_unrecognized_sep=', ';;
1006 esac
1007 eval enable_$ac_useropt=\$ac_optarg ;;
1008
1009 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1010 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1011 | --exec | --exe | --ex)
1012 ac_prev=exec_prefix ;;
1013 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1014 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1015 | --exec=* | --exe=* | --ex=*)
1016 exec_prefix=$ac_optarg ;;
1017
1018 -gas | --gas | --ga | --g)
1019 # Obsolete; use --with-gas.
1020 with_gas=yes ;;
1021
1022 -help | --help | --hel | --he | -h)
1023 ac_init_help=long ;;
1024 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1025 ac_init_help=recursive ;;
1026 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1027 ac_init_help=short ;;
1028
1029 -host | --host | --hos | --ho)
1030 ac_prev=host_alias ;;
1031 -host=* | --host=* | --hos=* | --ho=*)
1032 host_alias=$ac_optarg ;;
1033
1034 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1035 ac_prev=htmldir ;;
1036 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1037 | --ht=*)
1038 htmldir=$ac_optarg ;;
1039
1040 -includedir | --includedir | --includedi | --included | --include \
1041 | --includ | --inclu | --incl | --inc)
1042 ac_prev=includedir ;;
1043 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1044 | --includ=* | --inclu=* | --incl=* | --inc=*)
1045 includedir=$ac_optarg ;;
1046
1047 -infodir | --infodir | --infodi | --infod | --info | --inf)
1048 ac_prev=infodir ;;
1049 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1050 infodir=$ac_optarg ;;
1051
1052 -libdir | --libdir | --libdi | --libd)
1053 ac_prev=libdir ;;
1054 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1055 libdir=$ac_optarg ;;
1056
1057 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1058 | --libexe | --libex | --libe)
1059 ac_prev=libexecdir ;;
1060 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1061 | --libexe=* | --libex=* | --libe=*)
1062 libexecdir=$ac_optarg ;;
1063
1064 -localedir | --localedir | --localedi | --localed | --locale)
1065 ac_prev=localedir ;;
1066 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1067 localedir=$ac_optarg ;;
1068
1069 -localstatedir | --localstatedir | --localstatedi | --localstated \
1070 | --localstate | --localstat | --localsta | --localst | --locals)
1071 ac_prev=localstatedir ;;
1072 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1073 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1074 localstatedir=$ac_optarg ;;
1075
1076 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1077 ac_prev=mandir ;;
1078 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1079 mandir=$ac_optarg ;;
1080
1081 -nfp | --nfp | --nf)
1082 # Obsolete; use --without-fp.
1083 with_fp=no ;;
1084
1085 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1086 | --no-cr | --no-c | -n)
1087 no_create=yes ;;
1088
1089 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1090 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1091 no_recursion=yes ;;
1092
1093 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1094 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1095 | --oldin | --oldi | --old | --ol | --o)
1096 ac_prev=oldincludedir ;;
1097 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1098 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1099 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1100 oldincludedir=$ac_optarg ;;
1101
1102 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1103 ac_prev=prefix ;;
1104 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1105 prefix=$ac_optarg ;;
1106
1107 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1108 | --program-pre | --program-pr | --program-p)
1109 ac_prev=program_prefix ;;
1110 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1111 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1112 program_prefix=$ac_optarg ;;
1113
1114 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1115 | --program-suf | --program-su | --program-s)
1116 ac_prev=program_suffix ;;
1117 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1118 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1119 program_suffix=$ac_optarg ;;
1120
1121 -program-transform-name | --program-transform-name \
1122 | --program-transform-nam | --program-transform-na \
1123 | --program-transform-n | --program-transform- \
1124 | --program-transform | --program-transfor \
1125 | --program-transfo | --program-transf \
1126 | --program-trans | --program-tran \
1127 | --progr-tra | --program-tr | --program-t)
1128 ac_prev=program_transform_name ;;
1129 -program-transform-name=* | --program-transform-name=* \
1130 | --program-transform-nam=* | --program-transform-na=* \
1131 | --program-transform-n=* | --program-transform-=* \
1132 | --program-transform=* | --program-transfor=* \
1133 | --program-transfo=* | --program-transf=* \
1134 | --program-trans=* | --program-tran=* \
1135 | --progr-tra=* | --program-tr=* | --program-t=*)
1136 program_transform_name=$ac_optarg ;;
1137
1138 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1139 ac_prev=pdfdir ;;
1140 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1141 pdfdir=$ac_optarg ;;
1142
1143 -psdir | --psdir | --psdi | --psd | --ps)
1144 ac_prev=psdir ;;
1145 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1146 psdir=$ac_optarg ;;
1147
1148 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1149 | -silent | --silent | --silen | --sile | --sil)
1150 silent=yes ;;
1151
1152 -runstatedir | --runstatedir | --runstatedi | --runstated \
1153 | --runstate | --runstat | --runsta | --runst | --runs \
1154 | --run | --ru | --r)
1155 ac_prev=runstatedir ;;
1156 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1157 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1158 | --run=* | --ru=* | --r=*)
1159 runstatedir=$ac_optarg ;;
1160
1161 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1162 ac_prev=sbindir ;;
1163 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1164 | --sbi=* | --sb=*)
1165 sbindir=$ac_optarg ;;
1166
1167 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1168 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1169 | --sharedst | --shareds | --shared | --share | --shar \
1170 | --sha | --sh)
1171 ac_prev=sharedstatedir ;;
1172 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1173 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1174 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1175 | --sha=* | --sh=*)
1176 sharedstatedir=$ac_optarg ;;
1177
1178 -site | --site | --sit)
1179 ac_prev=site ;;
1180 -site=* | --site=* | --sit=*)
1181 site=$ac_optarg ;;
1182
1183 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1184 ac_prev=srcdir ;;
1185 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1186 srcdir=$ac_optarg ;;
1187
1188 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1189 | --syscon | --sysco | --sysc | --sys | --sy)
1190 ac_prev=sysconfdir ;;
1191 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1192 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1193 sysconfdir=$ac_optarg ;;
1194
1195 -target | --target | --targe | --targ | --tar | --ta | --t)
1196 ac_prev=target_alias ;;
1197 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1198 target_alias=$ac_optarg ;;
1199
1200 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1201 verbose=yes ;;
1202
1203 -version | --version | --versio | --versi | --vers | -V)
1204 ac_init_version=: ;;
1205
1206 -with-* | --with-*)
1207 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1208 # Reject names that are not valid shell variable names.
1209 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1210 as_fn_error $? "invalid package name: \`$ac_useropt'"
1211 ac_useropt_orig=$ac_useropt
1212 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1213 case $ac_user_opts in
1214 *"
1215 "with_$ac_useropt"
1216 "*) ;;
1217 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1218 ac_unrecognized_sep=', ';;
1219 esac
1220 eval with_$ac_useropt=\$ac_optarg ;;
1221
1222 -without-* | --without-*)
1223 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1224 # Reject names that are not valid shell variable names.
1225 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1226 as_fn_error $? "invalid package name: \`$ac_useropt'"
1227 ac_useropt_orig=$ac_useropt
1228 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1229 case $ac_user_opts in
1230 *"
1231 "with_$ac_useropt"
1232 "*) ;;
1233 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1234 ac_unrecognized_sep=', ';;
1235 esac
1236 eval with_$ac_useropt=no ;;
1237
1238 --x)
1239 # Obsolete; use --with-x.
1240 with_x=yes ;;
1241
1242 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1243 | --x-incl | --x-inc | --x-in | --x-i)
1244 ac_prev=x_includes ;;
1245 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1246 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1247 x_includes=$ac_optarg ;;
1248
1249 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1250 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1251 ac_prev=x_libraries ;;
1252 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1253 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1254 x_libraries=$ac_optarg ;;
1255
1256 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1257 Try \`$0 --help' for more information"
1258 ;;
1259
1260 *=*)
1261 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1262 # Reject names that are not valid shell variable names.
1263 case $ac_envvar in #(
1264 '' | [0-9]* | *[!_$as_cr_alnum]* )
1265 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1266 esac
1267 eval $ac_envvar=\$ac_optarg
1268 export $ac_envvar ;;
1269
1270 *)
1271 # FIXME: should be removed in autoconf 3.0.
1272 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1273 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1274 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1275 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1276 ;;
1277
1278 esac
1279 done
1280
1281 if test -n "$ac_prev"; then
1282 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1283 as_fn_error $? "missing argument to $ac_option"
1284 fi
1285
1286 if test -n "$ac_unrecognized_opts"; then
1287 case $enable_option_checking in
1288 no) ;;
1289 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1290 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1291 esac
1292 fi
1293
1294 # Check all directory arguments for consistency.
1295 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1296 datadir sysconfdir sharedstatedir localstatedir includedir \
1297 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1298 libdir localedir mandir runstatedir
1299 do
1300 eval ac_val=\$$ac_var
1301 # Remove trailing slashes.
1302 case $ac_val in
1303 */ )
1304 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1305 eval $ac_var=\$ac_val;;
1306 esac
1307 # Be sure to have absolute directory names.
1308 case $ac_val in
1309 [\\/$]* | ?:[\\/]* ) continue;;
1310 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1311 esac
1312 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1313 done
1314
1315 # There might be people who depend on the old broken behavior: `$host'
1316 # used to hold the argument of --host etc.
1317 # FIXME: To remove some day.
1318 build=$build_alias
1319 host=$host_alias
1320 target=$target_alias
1321
1322 # FIXME: To remove some day.
1323 if test "x$host_alias" != x; then
1324 if test "x$build_alias" = x; then
1325 cross_compiling=maybe
1326 elif test "x$build_alias" != "x$host_alias"; then
1327 cross_compiling=yes
1328 fi
1329 fi
1330
1331 ac_tool_prefix=
1332 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1333
1334 test "$silent" = yes && exec 6>/dev/null
1335
1336
1337 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1338 ac_ls_di=`ls -di .` &&
1339 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1340 as_fn_error $? "working directory cannot be determined"
1341 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1342 as_fn_error $? "pwd does not report name of working directory"
1343
1344
1345 # Find the source files, if location was not specified.
1346 if test -z "$srcdir"; then
1347 ac_srcdir_defaulted=yes
1348 # Try the directory containing this script, then the parent directory.
1349 ac_confdir=`$as_dirname -- "$as_myself" ||
1350 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1351 X"$as_myself" : 'X\(//\)[^/]' \| \
1352 X"$as_myself" : 'X\(//\)$' \| \
1353 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1354 printf "%s\n" X"$as_myself" |
1355 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1356 s//\1/
1357 q
1358 }
1359 /^X\(\/\/\)[^/].*/{
1360 s//\1/
1361 q
1362 }
1363 /^X\(\/\/\)$/{
1364 s//\1/
1365 q
1366 }
1367 /^X\(\/\).*/{
1368 s//\1/
1369 q
1370 }
1371 s/.*/./; q'`
1372 srcdir=$ac_confdir
1373 if test ! -r "$srcdir/$ac_unique_file"; then
1374 srcdir=..
1375 fi
1376 else
1377 ac_srcdir_defaulted=no
1378 fi
1379 if test ! -r "$srcdir/$ac_unique_file"; then
1380 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1381 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1382 fi
1383 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1384 ac_abs_confdir=`(
1385 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1386 pwd)`
1387 # When building in place, set srcdir=.
1388 if test "$ac_abs_confdir" = "$ac_pwd"; then
1389 srcdir=.
1390 fi
1391 # Remove unnecessary trailing slashes from srcdir.
1392 # Double slashes in file names in object file debugging info
1393 # mess up M-x gdb in Emacs.
1394 case $srcdir in
1395 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1396 esac
1397 for ac_var in $ac_precious_vars; do
1398 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1399 eval ac_env_${ac_var}_value=\$${ac_var}
1400 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1401 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1402 done
1403
1404 #
1405 # Report the --help message.
1406 #
1407 if test "$ac_init_help" = "long"; then
1408 # Omit some internal or obsolete options to make the list less imposing.
1409 # This message is too long to be a string in the A/UX 3.1 sh.
1410 cat <<_ACEOF
1411 \`configure' configures xf86-video-savage 2.4.0 to adapt to many kinds of systems.
1412
1413 Usage: $0 [OPTION]... [VAR=VALUE]...
1414
1415 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1416 VAR=VALUE. See below for descriptions of some of the useful variables.
1417
1418 Defaults for the options are specified in brackets.
1419
1420 Configuration:
1421 -h, --help display this help and exit
1422 --help=short display options specific to this package
1423 --help=recursive display the short help of all the included packages
1424 -V, --version display version information and exit
1425 -q, --quiet, --silent do not print \`checking ...' messages
1426 --cache-file=FILE cache test results in FILE [disabled]
1427 -C, --config-cache alias for \`--cache-file=config.cache'
1428 -n, --no-create do not create output files
1429 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1430
1431 Installation directories:
1432 --prefix=PREFIX install architecture-independent files in PREFIX
1433 [$ac_default_prefix]
1434 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1435 [PREFIX]
1436
1437 By default, \`make install' will install all the files in
1438 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1439 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1440 for instance \`--prefix=\$HOME'.
1441
1442 For better control, use the options below.
1443
1444 Fine tuning of the installation directories:
1445 --bindir=DIR user executables [EPREFIX/bin]
1446 --sbindir=DIR system admin executables [EPREFIX/sbin]
1447 --libexecdir=DIR program executables [EPREFIX/libexec]
1448 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1449 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1450 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1451 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1452 --libdir=DIR object code libraries [EPREFIX/lib]
1453 --includedir=DIR C header files [PREFIX/include]
1454 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1455 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1456 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1457 --infodir=DIR info documentation [DATAROOTDIR/info]
1458 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1459 --mandir=DIR man documentation [DATAROOTDIR/man]
1460 --docdir=DIR documentation root
1461 [DATAROOTDIR/doc/xf86-video-savage]
1462 --htmldir=DIR html documentation [DOCDIR]
1463 --dvidir=DIR dvi documentation [DOCDIR]
1464 --pdfdir=DIR pdf documentation [DOCDIR]
1465 --psdir=DIR ps documentation [DOCDIR]
1466 _ACEOF
1467
1468 cat <<\_ACEOF
1469
1470 Program names:
1471 --program-prefix=PREFIX prepend PREFIX to installed program names
1472 --program-suffix=SUFFIX append SUFFIX to installed program names
1473 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1474
1475 System types:
1476 --build=BUILD configure for building on BUILD [guessed]
1477 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1478 _ACEOF
1479 fi
1480
1481 if test -n "$ac_init_help"; then
1482 case $ac_init_help in
1483 short | recursive ) echo "Configuration of xf86-video-savage 2.4.0:";;
1484 esac
1485 cat <<\_ACEOF
1486
1487 Optional Features:
1488 --disable-option-checking ignore unrecognized --enable/--with options
1489 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1490 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1491 --enable-silent-rules less verbose build output (undo: "make V=1")
1492 --disable-silent-rules verbose build output (undo: "make V=0")
1493 --enable-dependency-tracking
1494 do not reject slow dependency extractors
1495 --disable-dependency-tracking
1496 speeds up one-time build
1497 --disable-selective-werror
1498 Turn off selective compiler errors. (default:
1499 enabled)
1500 --enable-strict-compilation
1501 Enable all warnings from compiler and make them
1502 errors (default: disabled)
1503 --enable-static[=PKGS] build static libraries [default=no]
1504 --enable-shared[=PKGS] build shared libraries [default=yes]
1505 --enable-fast-install[=PKGS]
1506 optimize for fast installation [default=yes]
1507 --disable-libtool-lock avoid locking (might break parallel builds)
1508 --disable-dri Disable DRI support [[default=auto]]
1509 --enable-xaa Enable legacy X Acceleration Architecture (XAA)
1510 [default=auto]
1511
1512 Optional Packages:
1513 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1514 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1515 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1516 both]
1517 --with-aix-soname=aix|svr4|both
1518 shared library versioning (aka "SONAME") variant to
1519 provide on AIX, [default=aix].
1520 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1521 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1522 compiler's sysroot if not specified).
1523 --with-xorg-module-dir=DIR
1524 Default xorg module directory
1525 [[default=$libdir/xorg/modules]]
1526
1527 Some influential environment variables:
1528 CC C compiler command
1529 CFLAGS C compiler flags
1530 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1531 nonstandard directory <lib dir>
1532 LIBS libraries to pass to the linker, e.g. -l<library>
1533 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1534 you have headers in a nonstandard directory <include dir>
1535 PKG_CONFIG path to pkg-config utility
1536 PKG_CONFIG_PATH
1537 directories to add to pkg-config's search path
1538 PKG_CONFIG_LIBDIR
1539 path overriding pkg-config's built-in search path
1540 LT_SYS_LIBRARY_PATH
1541 User-defined run-time library search path.
1542 XORG_CFLAGS C compiler flags for XORG, overriding pkg-config
1543 XORG_LIBS linker flags for XORG, overriding pkg-config
1544 XEXT_CFLAGS C compiler flags for XEXT, overriding pkg-config
1545 XEXT_LIBS linker flags for XEXT, overriding pkg-config
1546 DRI_CFLAGS C compiler flags for DRI, overriding pkg-config
1547 DRI_LIBS linker flags for DRI, overriding pkg-config
1548 PCIACCESS_CFLAGS
1549 C compiler flags for PCIACCESS, overriding pkg-config
1550 PCIACCESS_LIBS
1551 linker flags for PCIACCESS, overriding pkg-config
1552
1553 Use these variables to override the choices made by `configure' or to help
1554 it to find libraries and programs with nonstandard names/locations.
1555
1556 Report bugs to <https://gitlab.freedesktop.org/xorg/driver/xf86-video-savage/-/issues>.
1557 _ACEOF
1558 ac_status=$?
1559 fi
1560
1561 if test "$ac_init_help" = "recursive"; then
1562 # If there are subdirs, report their specific --help.
1563 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1564 test -d "$ac_dir" ||
1565 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1566 continue
1567 ac_builddir=.
1568
1569 case "$ac_dir" in
1570 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1571 *)
1572 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1573 # A ".." for each directory in $ac_dir_suffix.
1574 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1575 case $ac_top_builddir_sub in
1576 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1577 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1578 esac ;;
1579 esac
1580 ac_abs_top_builddir=$ac_pwd
1581 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1582 # for backward compatibility:
1583 ac_top_builddir=$ac_top_build_prefix
1584
1585 case $srcdir in
1586 .) # We are building in place.
1587 ac_srcdir=.
1588 ac_top_srcdir=$ac_top_builddir_sub
1589 ac_abs_top_srcdir=$ac_pwd ;;
1590 [\\/]* | ?:[\\/]* ) # Absolute name.
1591 ac_srcdir=$srcdir$ac_dir_suffix;
1592 ac_top_srcdir=$srcdir
1593 ac_abs_top_srcdir=$srcdir ;;
1594 *) # Relative name.
1595 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1596 ac_top_srcdir=$ac_top_build_prefix$srcdir
1597 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1598 esac
1599 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1600
1601 cd "$ac_dir" || { ac_status=$?; continue; }
1602 # Check for configure.gnu first; this name is used for a wrapper for
1603 # Metaconfig's "Configure" on case-insensitive file systems.
1604 if test -f "$ac_srcdir/configure.gnu"; then
1605 echo &&
1606 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1607 elif test -f "$ac_srcdir/configure"; then
1608 echo &&
1609 $SHELL "$ac_srcdir/configure" --help=recursive
1610 else
1611 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1612 fi || ac_status=$?
1613 cd "$ac_pwd" || { ac_status=$?; break; }
1614 done
1615 fi
1616
1617 test -n "$ac_init_help" && exit $ac_status
1618 if $ac_init_version; then
1619 cat <<\_ACEOF
1620 xf86-video-savage configure 2.4.0
1621 generated by GNU Autoconf 2.71
1622
1623 Copyright (C) 2021 Free Software Foundation, Inc.
1624 This configure script is free software; the Free Software Foundation
1625 gives unlimited permission to copy, distribute and modify it.
1626 _ACEOF
1627 exit
1628 fi
1629
1630 ## ------------------------ ##
1631 ## Autoconf initialization. ##
1632 ## ------------------------ ##
1633
1634 # ac_fn_c_try_compile LINENO
1635 # --------------------------
1636 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1637 ac_fn_c_try_compile ()
1638 {
1639 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1640 rm -f conftest.$ac_objext conftest.beam
1641 if { { ac_try="$ac_compile"
1642 case "(($ac_try" in
1643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1644 *) ac_try_echo=$ac_try;;
1645 esac
1646 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1647 printf "%s\n" "$ac_try_echo"; } >&5
1648 (eval "$ac_compile") 2>conftest.err
1649 ac_status=$?
1650 if test -s conftest.err; then
1651 grep -v '^ *+' conftest.err >conftest.er1
1652 cat conftest.er1 >&5
1653 mv -f conftest.er1 conftest.err
1654 fi
1655 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1656 test $ac_status = 0; } && {
1657 test -z "$ac_c_werror_flag" ||
1658 test ! -s conftest.err
1659 } && test -s conftest.$ac_objext
1660 then :
1661 ac_retval=0
1662 else $as_nop
1663 printf "%s\n" "$as_me: failed program was:" >&5
1664 sed 's/^/| /' conftest.$ac_ext >&5
1665
1666 ac_retval=1
1667 fi
1668 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1669 as_fn_set_status $ac_retval
1670
1671 } # ac_fn_c_try_compile
1672
1673 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
1674 # ------------------------------------------------------------------
1675 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1676 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
1677 ac_fn_check_decl ()
1678 {
1679 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1680 as_decl_name=`echo $2|sed 's/ *(.*//'`
1681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1682 printf %s "checking whether $as_decl_name is declared... " >&6; }
1683 if eval test \${$3+y}
1684 then :
1685 printf %s "(cached) " >&6
1686 else $as_nop
1687 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1688 eval ac_save_FLAGS=\$$6
1689 as_fn_append $6 " $5"
1690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1691 /* end confdefs.h. */
1692 $4
1693 int
1694 main (void)
1695 {
1696 #ifndef $as_decl_name
1697 #ifdef __cplusplus
1698 (void) $as_decl_use;
1699 #else
1700 (void) $as_decl_name;
1701 #endif
1702 #endif
1703
1704 ;
1705 return 0;
1706 }
1707 _ACEOF
1708 if ac_fn_c_try_compile "$LINENO"
1709 then :
1710 eval "$3=yes"
1711 else $as_nop
1712 eval "$3=no"
1713 fi
1714 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1715 eval $6=\$ac_save_FLAGS
1716
1717 fi
1718 eval ac_res=\$$3
1719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1720 printf "%s\n" "$ac_res" >&6; }
1721 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1722
1723 } # ac_fn_check_decl
1724
1725 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1726 # -------------------------------------------------------
1727 # Tests whether HEADER exists and can be compiled using the include files in
1728 # INCLUDES, setting the cache variable VAR accordingly.
1729 ac_fn_c_check_header_compile ()
1730 {
1731 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1733 printf %s "checking for $2... " >&6; }
1734 if eval test \${$3+y}
1735 then :
1736 printf %s "(cached) " >&6
1737 else $as_nop
1738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1739 /* end confdefs.h. */
1740 $4
1741 #include <$2>
1742 _ACEOF
1743 if ac_fn_c_try_compile "$LINENO"
1744 then :
1745 eval "$3=yes"
1746 else $as_nop
1747 eval "$3=no"
1748 fi
1749 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1750 fi
1751 eval ac_res=\$$3
1752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1753 printf "%s\n" "$ac_res" >&6; }
1754 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1755
1756 } # ac_fn_c_check_header_compile
1757
1758 # ac_fn_c_try_link LINENO
1759 # -----------------------
1760 # Try to link conftest.$ac_ext, and return whether this succeeded.
1761 ac_fn_c_try_link ()
1762 {
1763 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1764 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1765 if { { ac_try="$ac_link"
1766 case "(($ac_try" in
1767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1768 *) ac_try_echo=$ac_try;;
1769 esac
1770 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1771 printf "%s\n" "$ac_try_echo"; } >&5
1772 (eval "$ac_link") 2>conftest.err
1773 ac_status=$?
1774 if test -s conftest.err; then
1775 grep -v '^ *+' conftest.err >conftest.er1
1776 cat conftest.er1 >&5
1777 mv -f conftest.er1 conftest.err
1778 fi
1779 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1780 test $ac_status = 0; } && {
1781 test -z "$ac_c_werror_flag" ||
1782 test ! -s conftest.err
1783 } && test -s conftest$ac_exeext && {
1784 test "$cross_compiling" = yes ||
1785 test -x conftest$ac_exeext
1786 }
1787 then :
1788 ac_retval=0
1789 else $as_nop
1790 printf "%s\n" "$as_me: failed program was:" >&5
1791 sed 's/^/| /' conftest.$ac_ext >&5
1792
1793 ac_retval=1
1794 fi
1795 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1796 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1797 # interfere with the next link command; also delete a directory that is
1798 # left behind by Apple's compiler. We do this before executing the actions.
1799 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1800 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1801 as_fn_set_status $ac_retval
1802
1803 } # ac_fn_c_try_link
1804
1805 # ac_fn_c_check_func LINENO FUNC VAR
1806 # ----------------------------------
1807 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1808 ac_fn_c_check_func ()
1809 {
1810 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1811 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1812 printf %s "checking for $2... " >&6; }
1813 if eval test \${$3+y}
1814 then :
1815 printf %s "(cached) " >&6
1816 else $as_nop
1817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1818 /* end confdefs.h. */
1819 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1820 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1821 #define $2 innocuous_$2
1822
1823 /* System header to define __stub macros and hopefully few prototypes,
1824 which can conflict with char $2 (); below. */
1825
1826 #include <limits.h>
1827 #undef $2
1828
1829 /* Override any GCC internal prototype to avoid an error.
1830 Use char because int might match the return type of a GCC
1831 builtin and then its argument prototype would still apply. */
1832 #ifdef __cplusplus
1833 extern "C"
1834 #endif
1835 char $2 ();
1836 /* The GNU C library defines this for functions which it implements
1837 to always fail with ENOSYS. Some functions are actually named
1838 something starting with __ and the normal name is an alias. */
1839 #if defined __stub_$2 || defined __stub___$2
1840 choke me
1841 #endif
1842
1843 int
1844 main (void)
1845 {
1846 return $2 ();
1847 ;
1848 return 0;
1849 }
1850 _ACEOF
1851 if ac_fn_c_try_link "$LINENO"
1852 then :
1853 eval "$3=yes"
1854 else $as_nop
1855 eval "$3=no"
1856 fi
1857 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1858 conftest$ac_exeext conftest.$ac_ext
1859 fi
1860 eval ac_res=\$$3
1861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1862 printf "%s\n" "$ac_res" >&6; }
1863 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1864
1865 } # ac_fn_c_check_func
1866 ac_configure_args_raw=
1867 for ac_arg
1868 do
1869 case $ac_arg in
1870 *\'*)
1871 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1872 esac
1873 as_fn_append ac_configure_args_raw " '$ac_arg'"
1874 done
1875
1876 case $ac_configure_args_raw in
1877 *$as_nl*)
1878 ac_safe_unquote= ;;
1879 *)
1880 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
1881 ac_unsafe_a="$ac_unsafe_z#~"
1882 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1883 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1884 esac
1885
1886 cat >config.log <<_ACEOF
1887 This file contains any messages produced by compilers while
1888 running configure, to aid debugging if configure makes a mistake.
1889
1890 It was created by xf86-video-savage $as_me 2.4.0, which was
1891 generated by GNU Autoconf 2.71. Invocation command line was
1892
1893 $ $0$ac_configure_args_raw
1894
1895 _ACEOF
1896 exec 5>>config.log
1897 {
1898 cat <<_ASUNAME
1899 ## --------- ##
1900 ## Platform. ##
1901 ## --------- ##
1902
1903 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1904 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1905 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1906 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1907 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1908
1909 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1910 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1911
1912 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1913 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1914 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1915 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1916 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1917 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1918 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1919
1920 _ASUNAME
1921
1922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1923 for as_dir in $PATH
1924 do
1925 IFS=$as_save_IFS
1926 case $as_dir in #(((
1927 '') as_dir=./ ;;
1928 */) ;;
1929 *) as_dir=$as_dir/ ;;
1930 esac
1931 printf "%s\n" "PATH: $as_dir"
1932 done
1933 IFS=$as_save_IFS
1934
1935 } >&5
1936
1937 cat >&5 <<_ACEOF
1938
1939
1940 ## ----------- ##
1941 ## Core tests. ##
1942 ## ----------- ##
1943
1944 _ACEOF
1945
1946
1947 # Keep a trace of the command line.
1948 # Strip out --no-create and --no-recursion so they do not pile up.
1949 # Strip out --silent because we don't want to record it for future runs.
1950 # Also quote any args containing shell meta-characters.
1951 # Make two passes to allow for proper duplicate-argument suppression.
1952 ac_configure_args=
1953 ac_configure_args0=
1954 ac_configure_args1=
1955 ac_must_keep_next=false
1956 for ac_pass in 1 2
1957 do
1958 for ac_arg
1959 do
1960 case $ac_arg in
1961 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1962 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1963 | -silent | --silent | --silen | --sile | --sil)
1964 continue ;;
1965 *\'*)
1966 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1967 esac
1968 case $ac_pass in
1969 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1970 2)
1971 as_fn_append ac_configure_args1 " '$ac_arg'"
1972 if test $ac_must_keep_next = true; then
1973 ac_must_keep_next=false # Got value, back to normal.
1974 else
1975 case $ac_arg in
1976 *=* | --config-cache | -C | -disable-* | --disable-* \
1977 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1978 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1979 | -with-* | --with-* | -without-* | --without-* | --x)
1980 case "$ac_configure_args0 " in
1981 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1982 esac
1983 ;;
1984 -* ) ac_must_keep_next=true ;;
1985 esac
1986 fi
1987 as_fn_append ac_configure_args " '$ac_arg'"
1988 ;;
1989 esac
1990 done
1991 done
1992 { ac_configure_args0=; unset ac_configure_args0;}
1993 { ac_configure_args1=; unset ac_configure_args1;}
1994
1995 # When interrupted or exit'd, cleanup temporary files, and complete
1996 # config.log. We remove comments because anyway the quotes in there
1997 # would cause problems or look ugly.
1998 # WARNING: Use '\'' to represent an apostrophe within the trap.
1999 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2000 trap 'exit_status=$?
2001 # Sanitize IFS.
2002 IFS=" "" $as_nl"
2003 # Save into config.log some information that might help in debugging.
2004 {
2005 echo
2006
2007 printf "%s\n" "## ---------------- ##
2008 ## Cache variables. ##
2009 ## ---------------- ##"
2010 echo
2011 # The following way of writing the cache mishandles newlines in values,
2012 (
2013 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2014 eval ac_val=\$$ac_var
2015 case $ac_val in #(
2016 *${as_nl}*)
2017 case $ac_var in #(
2018 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2019 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2020 esac
2021 case $ac_var in #(
2022 _ | IFS | as_nl) ;; #(
2023 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2024 *) { eval $ac_var=; unset $ac_var;} ;;
2025 esac ;;
2026 esac
2027 done
2028 (set) 2>&1 |
2029 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2030 *${as_nl}ac_space=\ *)
2031 sed -n \
2032 "s/'\''/'\''\\\\'\'''\''/g;
2033 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2034 ;; #(
2035 *)
2036 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2037 ;;
2038 esac |
2039 sort
2040 )
2041 echo
2042
2043 printf "%s\n" "## ----------------- ##
2044 ## Output variables. ##
2045 ## ----------------- ##"
2046 echo
2047 for ac_var in $ac_subst_vars
2048 do
2049 eval ac_val=\$$ac_var
2050 case $ac_val in
2051 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2052 esac
2053 printf "%s\n" "$ac_var='\''$ac_val'\''"
2054 done | sort
2055 echo
2056
2057 if test -n "$ac_subst_files"; then
2058 printf "%s\n" "## ------------------- ##
2059 ## File substitutions. ##
2060 ## ------------------- ##"
2061 echo
2062 for ac_var in $ac_subst_files
2063 do
2064 eval ac_val=\$$ac_var
2065 case $ac_val in
2066 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2067 esac
2068 printf "%s\n" "$ac_var='\''$ac_val'\''"
2069 done | sort
2070 echo
2071 fi
2072
2073 if test -s confdefs.h; then
2074 printf "%s\n" "## ----------- ##
2075 ## confdefs.h. ##
2076 ## ----------- ##"
2077 echo
2078 cat confdefs.h
2079 echo
2080 fi
2081 test "$ac_signal" != 0 &&
2082 printf "%s\n" "$as_me: caught signal $ac_signal"
2083 printf "%s\n" "$as_me: exit $exit_status"
2084 } >&5
2085 rm -f core *.core core.conftest.* &&
2086 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2087 exit $exit_status
2088 ' 0
2089 for ac_signal in 1 2 13 15; do
2090 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2091 done
2092 ac_signal=0
2093
2094 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2095 rm -f -r conftest* confdefs.h
2096
2097 printf "%s\n" "/* confdefs.h */" > confdefs.h
2098
2099 # Predefined preprocessor variables.
2100
2101 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2102
2103 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2104
2105 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2106
2107 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2108
2109 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2110
2111 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2112
2113
2114 # Let the site file select an alternate cache file if it wants to.
2115 # Prefer an explicitly selected file to automatically selected ones.
2116 if test -n "$CONFIG_SITE"; then
2117 ac_site_files="$CONFIG_SITE"
2118 elif test "x$prefix" != xNONE; then
2119 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2120 else
2121 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2122 fi
2123
2124 for ac_site_file in $ac_site_files
2125 do
2126 case $ac_site_file in #(
2127 */*) :
2128 ;; #(
2129 *) :
2130 ac_site_file=./$ac_site_file ;;
2131 esac
2132 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2134 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2135 sed 's/^/| /' "$ac_site_file" >&5
2136 . "$ac_site_file" \
2137 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2138 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2139 as_fn_error $? "failed to load site script $ac_site_file
2140 See \`config.log' for more details" "$LINENO" 5; }
2141 fi
2142 done
2143
2144 if test -r "$cache_file"; then
2145 # Some versions of bash will fail to source /dev/null (special files
2146 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2147 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2149 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2150 case $cache_file in
2151 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2152 *) . "./$cache_file";;
2153 esac
2154 fi
2155 else
2156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2157 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2158 >$cache_file
2159 fi
2160
2161 # Test code for whether the C compiler supports C89 (global declarations)
2162 ac_c_conftest_c89_globals='
2163 /* Does the compiler advertise C89 conformance?
2164 Do not test the value of __STDC__, because some compilers set it to 0
2165 while being otherwise adequately conformant. */
2166 #if !defined __STDC__
2167 # error "Compiler does not advertise C89 conformance"
2168 #endif
2169
2170 #include <stddef.h>
2171 #include <stdarg.h>
2172 struct stat;
2173 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2174 struct buf { int x; };
2175 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2176 static char *e (p, i)
2177 char **p;
2178 int i;
2179 {
2180 return p[i];
2181 }
2182 static char *f (char * (*g) (char **, int), char **p, ...)
2183 {
2184 char *s;
2185 va_list v;
2186 va_start (v,p);
2187 s = g (p, va_arg (v,int));
2188 va_end (v);
2189 return s;
2190 }
2191
2192 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2193 function prototypes and stuff, but not \xHH hex character constants.
2194 These do not provoke an error unfortunately, instead are silently treated
2195 as an "x". The following induces an error, until -std is added to get
2196 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2197 array size at least. It is necessary to write \x00 == 0 to get something
2198 that is true only with -std. */
2199 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2200
2201 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2202 inside strings and character constants. */
2203 #define FOO(x) '\''x'\''
2204 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2205
2206 int test (int i, double x);
2207 struct s1 {int (*f) (int a);};
2208 struct s2 {int (*f) (double a);};
2209 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2210 int, int);'
2211
2212 # Test code for whether the C compiler supports C89 (body of main).
2213 ac_c_conftest_c89_main='
2214 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2215 '
2216
2217 # Test code for whether the C compiler supports C99 (global declarations)
2218 ac_c_conftest_c99_globals='
2219 // Does the compiler advertise C99 conformance?
2220 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2221 # error "Compiler does not advertise C99 conformance"
2222 #endif
2223
2224 #include <stdbool.h>
2225 extern int puts (const char *);
2226 extern int printf (const char *, ...);
2227 extern int dprintf (int, const char *, ...);
2228 extern void *malloc (size_t);
2229
2230 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2231 // dprintf is used instead of fprintf to avoid needing to declare
2232 // FILE and stderr.
2233 #define debug(...) dprintf (2, __VA_ARGS__)
2234 #define showlist(...) puts (#__VA_ARGS__)
2235 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2236 static void
2237 test_varargs_macros (void)
2238 {
2239 int x = 1234;
2240 int y = 5678;
2241 debug ("Flag");
2242 debug ("X = %d\n", x);
2243 showlist (The first, second, and third items.);
2244 report (x>y, "x is %d but y is %d", x, y);
2245 }
2246
2247 // Check long long types.
2248 #define BIG64 18446744073709551615ull
2249 #define BIG32 4294967295ul
2250 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2251 #if !BIG_OK
2252 #error "your preprocessor is broken"
2253 #endif
2254 #if BIG_OK
2255 #else
2256 #error "your preprocessor is broken"
2257 #endif
2258 static long long int bignum = -9223372036854775807LL;
2259 static unsigned long long int ubignum = BIG64;
2260
2261 struct incomplete_array
2262 {
2263 int datasize;
2264 double data[];
2265 };
2266
2267 struct named_init {
2268 int number;
2269 const wchar_t *name;
2270 double average;
2271 };
2272
2273 typedef const char *ccp;
2274
2275 static inline int
2276 test_restrict (ccp restrict text)
2277 {
2278 // See if C++-style comments work.
2279 // Iterate through items via the restricted pointer.
2280 // Also check for declarations in for loops.
2281 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2282 continue;
2283 return 0;
2284 }
2285
2286 // Check varargs and va_copy.
2287 static bool
2288 test_varargs (const char *format, ...)
2289 {
2290 va_list args;
2291 va_start (args, format);
2292 va_list args_copy;
2293 va_copy (args_copy, args);
2294
2295 const char *str = "";
2296 int number = 0;
2297 float fnumber = 0;
2298
2299 while (*format)
2300 {
2301 switch (*format++)
2302 {
2303 case '\''s'\'': // string
2304 str = va_arg (args_copy, const char *);
2305 break;
2306 case '\''d'\'': // int
2307 number = va_arg (args_copy, int);
2308 break;
2309 case '\''f'\'': // float
2310 fnumber = va_arg (args_copy, double);
2311 break;
2312 default:
2313 break;
2314 }
2315 }
2316 va_end (args_copy);
2317 va_end (args);
2318
2319 return *str && number && fnumber;
2320 }
2321 '
2322
2323 # Test code for whether the C compiler supports C99 (body of main).
2324 ac_c_conftest_c99_main='
2325 // Check bool.
2326 _Bool success = false;
2327 success |= (argc != 0);
2328
2329 // Check restrict.
2330 if (test_restrict ("String literal") == 0)
2331 success = true;
2332 char *restrict newvar = "Another string";
2333
2334 // Check varargs.
2335 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2336 test_varargs_macros ();
2337
2338 // Check flexible array members.
2339 struct incomplete_array *ia =
2340 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2341 ia->datasize = 10;
2342 for (int i = 0; i < ia->datasize; ++i)
2343 ia->data[i] = i * 1.234;
2344
2345 // Check named initializers.
2346 struct named_init ni = {
2347 .number = 34,
2348 .name = L"Test wide string",
2349 .average = 543.34343,
2350 };
2351
2352 ni.number = 58;
2353
2354 int dynamic_array[ni.number];
2355 dynamic_array[0] = argv[0][0];
2356 dynamic_array[ni.number - 1] = 543;
2357
2358 // work around unused variable warnings
2359 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2360 || dynamic_array[ni.number - 1] != 543);
2361 '
2362
2363 # Test code for whether the C compiler supports C11 (global declarations)
2364 ac_c_conftest_c11_globals='
2365 // Does the compiler advertise C11 conformance?
2366 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2367 # error "Compiler does not advertise C11 conformance"
2368 #endif
2369
2370 // Check _Alignas.
2371 char _Alignas (double) aligned_as_double;
2372 char _Alignas (0) no_special_alignment;
2373 extern char aligned_as_int;
2374 char _Alignas (0) _Alignas (int) aligned_as_int;
2375
2376 // Check _Alignof.
2377 enum
2378 {
2379 int_alignment = _Alignof (int),
2380 int_array_alignment = _Alignof (int[100]),
2381 char_alignment = _Alignof (char)
2382 };
2383 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2384
2385 // Check _Noreturn.
2386 int _Noreturn does_not_return (void) { for (;;) continue; }
2387
2388 // Check _Static_assert.
2389 struct test_static_assert
2390 {
2391 int x;
2392 _Static_assert (sizeof (int) <= sizeof (long int),
2393 "_Static_assert does not work in struct");
2394 long int y;
2395 };
2396
2397 // Check UTF-8 literals.
2398 #define u8 syntax error!
2399 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2400
2401 // Check duplicate typedefs.
2402 typedef long *long_ptr;
2403 typedef long int *long_ptr;
2404 typedef long_ptr long_ptr;
2405
2406 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2407 struct anonymous
2408 {
2409 union {
2410 struct { int i; int j; };
2411 struct { int k; long int l; } w;
2412 };
2413 int m;
2414 } v1;
2415 '
2416
2417 # Test code for whether the C compiler supports C11 (body of main).
2418 ac_c_conftest_c11_main='
2419 _Static_assert ((offsetof (struct anonymous, i)
2420 == offsetof (struct anonymous, w.k)),
2421 "Anonymous union alignment botch");
2422 v1.i = 2;
2423 v1.w.k = 5;
2424 ok |= v1.i != 5;
2425 '
2426
2427 # Test code for whether the C compiler supports C11 (complete).
2428 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2429 ${ac_c_conftest_c99_globals}
2430 ${ac_c_conftest_c11_globals}
2431
2432 int
2433 main (int argc, char **argv)
2434 {
2435 int ok = 0;
2436 ${ac_c_conftest_c89_main}
2437 ${ac_c_conftest_c99_main}
2438 ${ac_c_conftest_c11_main}
2439 return ok;
2440 }
2441 "
2442
2443 # Test code for whether the C compiler supports C99 (complete).
2444 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2445 ${ac_c_conftest_c99_globals}
2446
2447 int
2448 main (int argc, char **argv)
2449 {
2450 int ok = 0;
2451 ${ac_c_conftest_c89_main}
2452 ${ac_c_conftest_c99_main}
2453 return ok;
2454 }
2455 "
2456
2457 # Test code for whether the C compiler supports C89 (complete).
2458 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2459
2460 int
2461 main (int argc, char **argv)
2462 {
2463 int ok = 0;
2464 ${ac_c_conftest_c89_main}
2465 return ok;
2466 }
2467 "
2468
2469 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2470 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2471 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2472 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2473 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2474 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2475 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2476 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2477 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2478
2479 # Auxiliary files required by this configure script.
2480 ac_aux_files="ltmain.sh config.guess config.sub compile missing install-sh"
2481
2482 # Locations in which to look for auxiliary files.
2483 ac_aux_dir_candidates="${srcdir}/."
2484
2485 # Search for a directory containing all of the required auxiliary files,
2486 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2487 # If we don't find one directory that contains all the files we need,
2488 # we report the set of missing files from the *first* directory in
2489 # $ac_aux_dir_candidates and give up.
2490 ac_missing_aux_files=""
2491 ac_first_candidate=:
2492 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2494 as_found=false
2495 for as_dir in $ac_aux_dir_candidates
2496 do
2497 IFS=$as_save_IFS
2498 case $as_dir in #(((
2499 '') as_dir=./ ;;
2500 */) ;;
2501 *) as_dir=$as_dir/ ;;
2502 esac
2503 as_found=:
2504
2505 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2506 ac_aux_dir_found=yes
2507 ac_install_sh=
2508 for ac_aux in $ac_aux_files
2509 do
2510 # As a special case, if "install-sh" is required, that requirement
2511 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2512 # and $ac_install_sh is set appropriately for whichever one is found.
2513 if test x"$ac_aux" = x"install-sh"
2514 then
2515 if test -f "${as_dir}install-sh"; then
2516 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2517 ac_install_sh="${as_dir}install-sh -c"
2518 elif test -f "${as_dir}install.sh"; then
2519 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2520 ac_install_sh="${as_dir}install.sh -c"
2521 elif test -f "${as_dir}shtool"; then
2522 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2523 ac_install_sh="${as_dir}shtool install -c"
2524 else
2525 ac_aux_dir_found=no
2526 if $ac_first_candidate; then
2527 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2528 else
2529 break
2530 fi
2531 fi
2532 else
2533 if test -f "${as_dir}${ac_aux}"; then
2534 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2535 else
2536 ac_aux_dir_found=no
2537 if $ac_first_candidate; then
2538 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2539 else
2540 break
2541 fi
2542 fi
2543 fi
2544 done
2545 if test "$ac_aux_dir_found" = yes; then
2546 ac_aux_dir="$as_dir"
2547 break
2548 fi
2549 ac_first_candidate=false
2550
2551 as_found=false
2552 done
2553 IFS=$as_save_IFS
2554 if $as_found
2555 then :
2556
2557 else $as_nop
2558 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2559 fi
2560
2561
2562 # These three variables are undocumented and unsupported,
2563 # and are intended to be withdrawn in a future Autoconf release.
2564 # They can cause serious problems if a builder's source tree is in a directory
2565 # whose full name contains unusual characters.
2566 if test -f "${ac_aux_dir}config.guess"; then
2567 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2568 fi
2569 if test -f "${ac_aux_dir}config.sub"; then
2570 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2571 fi
2572 if test -f "$ac_aux_dir/configure"; then
2573 ac_configure="$SHELL ${ac_aux_dir}configure"
2574 fi
2575
2576 # Check that the precious variables saved in the cache have kept the same
2577 # value.
2578 ac_cache_corrupted=false
2579 for ac_var in $ac_precious_vars; do
2580 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2581 eval ac_new_set=\$ac_env_${ac_var}_set
2582 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2583 eval ac_new_val=\$ac_env_${ac_var}_value
2584 case $ac_old_set,$ac_new_set in
2585 set,)
2586 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2587 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2588 ac_cache_corrupted=: ;;
2589 ,set)
2590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2591 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2592 ac_cache_corrupted=: ;;
2593 ,);;
2594 *)
2595 if test "x$ac_old_val" != "x$ac_new_val"; then
2596 # differences in whitespace do not lead to failure.
2597 ac_old_val_w=`echo x $ac_old_val`
2598 ac_new_val_w=`echo x $ac_new_val`
2599 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2600 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2601 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2602 ac_cache_corrupted=:
2603 else
2604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2605 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2606 eval $ac_var=\$ac_old_val
2607 fi
2608 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2609 printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
2610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2611 printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
2612 fi;;
2613 esac
2614 # Pass precious variables to config.status.
2615 if test "$ac_new_set" = set; then
2616 case $ac_new_val in
2617 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2618 *) ac_arg=$ac_var=$ac_new_val ;;
2619 esac
2620 case " $ac_configure_args " in
2621 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2622 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2623 esac
2624 fi
2625 done
2626 if $ac_cache_corrupted; then
2627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2628 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2630 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2631 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2632 and start over" "$LINENO" 5
2633 fi
2634 ## -------------------- ##
2635 ## Main body of script. ##
2636 ## -------------------- ##
2637
2638 ac_ext=c
2639 ac_cpp='$CPP $CPPFLAGS'
2640 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2641 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2642 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2643
2644
2645
2646 ac_config_headers="$ac_config_headers config.h"
2647
2648
2649
2650 # Initialize Automake
2651 am__api_version='1.16'
2652
2653
2654
2655 # Find a good install program. We prefer a C program (faster),
2656 # so one script is as good as another. But avoid the broken or
2657 # incompatible versions:
2658 # SysV /etc/install, /usr/sbin/install
2659 # SunOS /usr/etc/install
2660 # IRIX /sbin/install
2661 # AIX /bin/install
2662 # AmigaOS /C/install, which installs bootblocks on floppy discs
2663 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2664 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2665 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2666 # OS/2's system install, which has a completely different semantic
2667 # ./install, which can be erroneously created by make from ./install.sh.
2668 # Reject install programs that cannot install multiple files.
2669 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2670 printf %s "checking for a BSD-compatible install... " >&6; }
2671 if test -z "$INSTALL"; then
2672 if test ${ac_cv_path_install+y}
2673 then :
2674 printf %s "(cached) " >&6
2675 else $as_nop
2676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2677 for as_dir in $PATH
2678 do
2679 IFS=$as_save_IFS
2680 case $as_dir in #(((
2681 '') as_dir=./ ;;
2682 */) ;;
2683 *) as_dir=$as_dir/ ;;
2684 esac
2685 # Account for fact that we put trailing slashes in our PATH walk.
2686 case $as_dir in #((
2687 ./ | /[cC]/* | \
2688 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2689 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2690 /usr/ucb/* ) ;;
2691 *)
2692 # OSF1 and SCO ODT 3.0 have their own names for install.
2693 # Don't use installbsd from OSF since it installs stuff as root
2694 # by default.
2695 for ac_prog in ginstall scoinst install; do
2696 for ac_exec_ext in '' $ac_executable_extensions; do
2697 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
2698 if test $ac_prog = install &&
2699 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2700 # AIX install. It has an incompatible calling convention.
2701 :
2702 elif test $ac_prog = install &&
2703 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2704 # program-specific install script used by HP pwplus--don't use.
2705 :
2706 else
2707 rm -rf conftest.one conftest.two conftest.dir
2708 echo one > conftest.one
2709 echo two > conftest.two
2710 mkdir conftest.dir
2711 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
2712 test -s conftest.one && test -s conftest.two &&
2713 test -s conftest.dir/conftest.one &&
2714 test -s conftest.dir/conftest.two
2715 then
2716 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
2717 break 3
2718 fi
2719 fi
2720 fi
2721 done
2722 done
2723 ;;
2724 esac
2725
2726 done
2727 IFS=$as_save_IFS
2728
2729 rm -rf conftest.one conftest.two conftest.dir
2730
2731 fi
2732 if test ${ac_cv_path_install+y}; then
2733 INSTALL=$ac_cv_path_install
2734 else
2735 # As a last resort, use the slow shell script. Don't cache a
2736 # value for INSTALL within a source directory, because that will
2737 # break other packages using the cache if that directory is
2738 # removed, or if the value is a relative name.
2739 INSTALL=$ac_install_sh
2740 fi
2741 fi
2742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2743 printf "%s\n" "$INSTALL" >&6; }
2744
2745 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2746 # It thinks the first close brace ends the variable substitution.
2747 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2748
2749 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2750
2751 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2752
2753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2754 printf %s "checking whether build environment is sane... " >&6; }
2755 # Reject unsafe characters in $srcdir or the absolute working directory
2756 # name. Accept space and tab only in the latter.
2757 am_lf='
2758 '
2759 case `pwd` in
2760 *[\\\"\#\$\&\'\`$am_lf]*)
2761 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2762 esac
2763 case $srcdir in
2764 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2765 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2766 esac
2767
2768 # Do 'set' in a subshell so we don't clobber the current shell's
2769 # arguments. Must try -L first in case configure is actually a
2770 # symlink; some systems play weird games with the mod time of symlinks
2771 # (eg FreeBSD returns the mod time of the symlink's containing
2772 # directory).
2773 if (
2774 am_has_slept=no
2775 for am_try in 1 2; do
2776 echo "timestamp, slept: $am_has_slept" > conftest.file
2777 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2778 if test "$*" = "X"; then
2779 # -L didn't work.
2780 set X `ls -t "$srcdir/configure" conftest.file`
2781 fi
2782 if test "$*" != "X $srcdir/configure conftest.file" \
2783 && test "$*" != "X conftest.file $srcdir/configure"; then
2784
2785 # If neither matched, then we have a broken ls. This can happen
2786 # if, for instance, CONFIG_SHELL is bash and it inherits a
2787 # broken ls alias from the environment. This has actually
2788 # happened. Such a system could not be considered "sane".
2789 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2790 alias in your environment" "$LINENO" 5
2791 fi
2792 if test "$2" = conftest.file || test $am_try -eq 2; then
2793 break
2794 fi
2795 # Just in case.
2796 sleep 1
2797 am_has_slept=yes
2798 done
2799 test "$2" = conftest.file
2800 )
2801 then
2802 # Ok.
2803 :
2804 else
2805 as_fn_error $? "newly created file is older than distributed files!
2806 Check your system clock" "$LINENO" 5
2807 fi
2808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2809 printf "%s\n" "yes" >&6; }
2810 # If we didn't sleep, we still need to ensure time stamps of config.status and
2811 # generated files are strictly newer.
2812 am_sleep_pid=
2813 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2814 ( sleep 1 ) &
2815 am_sleep_pid=$!
2816 fi
2817
2818 rm -f conftest.file
2819
2820 test "$program_prefix" != NONE &&
2821 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2822 # Use a double $ so make ignores it.
2823 test "$program_suffix" != NONE &&
2824 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2825 # Double any \ or $.
2826 # By default was `s,x,x', remove it if useless.
2827 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2828 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
2829
2830
2831 # Expand $ac_aux_dir to an absolute path.
2832 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2833
2834
2835 if test x"${MISSING+set}" != xset; then
2836 MISSING="\${SHELL} '$am_aux_dir/missing'"
2837 fi
2838 # Use eval to expand $SHELL
2839 if eval "$MISSING --is-lightweight"; then
2840 am_missing_run="$MISSING "
2841 else
2842 am_missing_run=
2843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2844 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2845 fi
2846
2847 if test x"${install_sh+set}" != xset; then
2848 case $am_aux_dir in
2849 *\ * | *\ *)
2850 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2851 *)
2852 install_sh="\${SHELL} $am_aux_dir/install-sh"
2853 esac
2854 fi
2855
2856 # Installed binaries are usually stripped using 'strip' when the user
2857 # run "make install-strip". However 'strip' might not be the right
2858 # tool to use in cross-compilation environments, therefore Automake
2859 # will honor the 'STRIP' environment variable to overrule this program.
2860 if test "$cross_compiling" != no; then
2861 if test -n "$ac_tool_prefix"; then
2862 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2863 set dummy ${ac_tool_prefix}strip; ac_word=$2
2864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2865 printf %s "checking for $ac_word... " >&6; }
2866 if test ${ac_cv_prog_STRIP+y}
2867 then :
2868 printf %s "(cached) " >&6
2869 else $as_nop
2870 if test -n "$STRIP"; then
2871 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2872 else
2873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2874 for as_dir in $PATH
2875 do
2876 IFS=$as_save_IFS
2877 case $as_dir in #(((
2878 '') as_dir=./ ;;
2879 */) ;;
2880 *) as_dir=$as_dir/ ;;
2881 esac
2882 for ac_exec_ext in '' $ac_executable_extensions; do
2883 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2884 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2885 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2886 break 2
2887 fi
2888 done
2889 done
2890 IFS=$as_save_IFS
2891
2892 fi
2893 fi
2894 STRIP=$ac_cv_prog_STRIP
2895 if test -n "$STRIP"; then
2896 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2897 printf "%s\n" "$STRIP" >&6; }
2898 else
2899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2900 printf "%s\n" "no" >&6; }
2901 fi
2902
2903
2904 fi
2905 if test -z "$ac_cv_prog_STRIP"; then
2906 ac_ct_STRIP=$STRIP
2907 # Extract the first word of "strip", so it can be a program name with args.
2908 set dummy strip; ac_word=$2
2909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2910 printf %s "checking for $ac_word... " >&6; }
2911 if test ${ac_cv_prog_ac_ct_STRIP+y}
2912 then :
2913 printf %s "(cached) " >&6
2914 else $as_nop
2915 if test -n "$ac_ct_STRIP"; then
2916 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2917 else
2918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2919 for as_dir in $PATH
2920 do
2921 IFS=$as_save_IFS
2922 case $as_dir in #(((
2923 '') as_dir=./ ;;
2924 */) ;;
2925 *) as_dir=$as_dir/ ;;
2926 esac
2927 for ac_exec_ext in '' $ac_executable_extensions; do
2928 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2929 ac_cv_prog_ac_ct_STRIP="strip"
2930 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2931 break 2
2932 fi
2933 done
2934 done
2935 IFS=$as_save_IFS
2936
2937 fi
2938 fi
2939 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2940 if test -n "$ac_ct_STRIP"; then
2941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2942 printf "%s\n" "$ac_ct_STRIP" >&6; }
2943 else
2944 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2945 printf "%s\n" "no" >&6; }
2946 fi
2947
2948 if test "x$ac_ct_STRIP" = x; then
2949 STRIP=":"
2950 else
2951 case $cross_compiling:$ac_tool_warned in
2952 yes:)
2953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2954 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2955 ac_tool_warned=yes ;;
2956 esac
2957 STRIP=$ac_ct_STRIP
2958 fi
2959 else
2960 STRIP="$ac_cv_prog_STRIP"
2961 fi
2962
2963 fi
2964 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2965
2966
2967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
2968 printf %s "checking for a race-free mkdir -p... " >&6; }
2969 if test -z "$MKDIR_P"; then
2970 if test ${ac_cv_path_mkdir+y}
2971 then :
2972 printf %s "(cached) " >&6
2973 else $as_nop
2974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2975 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2976 do
2977 IFS=$as_save_IFS
2978 case $as_dir in #(((
2979 '') as_dir=./ ;;
2980 */) ;;
2981 *) as_dir=$as_dir/ ;;
2982 esac
2983 for ac_prog in mkdir gmkdir; do
2984 for ac_exec_ext in '' $ac_executable_extensions; do
2985 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
2986 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
2987 'mkdir ('*'coreutils) '* | \
2988 'BusyBox '* | \
2989 'mkdir (fileutils) '4.1*)
2990 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
2991 break 3;;
2992 esac
2993 done
2994 done
2995 done
2996 IFS=$as_save_IFS
2997
2998 fi
2999
3000 test -d ./--version && rmdir ./--version
3001 if test ${ac_cv_path_mkdir+y}; then
3002 MKDIR_P="$ac_cv_path_mkdir -p"
3003 else
3004 # As a last resort, use the slow shell script. Don't cache a
3005 # value for MKDIR_P within a source directory, because that will
3006 # break other packages using the cache if that directory is
3007 # removed, or if the value is a relative name.
3008 MKDIR_P="$ac_install_sh -d"
3009 fi
3010 fi
3011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3012 printf "%s\n" "$MKDIR_P" >&6; }
3013
3014 for ac_prog in gawk mawk nawk awk
3015 do
3016 # Extract the first word of "$ac_prog", so it can be a program name with args.
3017 set dummy $ac_prog; ac_word=$2
3018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3019 printf %s "checking for $ac_word... " >&6; }
3020 if test ${ac_cv_prog_AWK+y}
3021 then :
3022 printf %s "(cached) " >&6
3023 else $as_nop
3024 if test -n "$AWK"; then
3025 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3026 else
3027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3028 for as_dir in $PATH
3029 do
3030 IFS=$as_save_IFS
3031 case $as_dir in #(((
3032 '') as_dir=./ ;;
3033 */) ;;
3034 *) as_dir=$as_dir/ ;;
3035 esac
3036 for ac_exec_ext in '' $ac_executable_extensions; do
3037 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3038 ac_cv_prog_AWK="$ac_prog"
3039 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3040 break 2
3041 fi
3042 done
3043 done
3044 IFS=$as_save_IFS
3045
3046 fi
3047 fi
3048 AWK=$ac_cv_prog_AWK
3049 if test -n "$AWK"; then
3050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3051 printf "%s\n" "$AWK" >&6; }
3052 else
3053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3054 printf "%s\n" "no" >&6; }
3055 fi
3056
3057
3058 test -n "$AWK" && break
3059 done
3060
3061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3062 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3063 set x ${MAKE-make}
3064 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3065 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3066 then :
3067 printf %s "(cached) " >&6
3068 else $as_nop
3069 cat >conftest.make <<\_ACEOF
3070 SHELL = /bin/sh
3071 all:
3072 @echo '@@@%%%=$(MAKE)=@@@%%%'
3073 _ACEOF
3074 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3075 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3076 *@@@%%%=?*=@@@%%%*)
3077 eval ac_cv_prog_make_${ac_make}_set=yes;;
3078 *)
3079 eval ac_cv_prog_make_${ac_make}_set=no;;
3080 esac
3081 rm -f conftest.make
3082 fi
3083 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3084 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3085 printf "%s\n" "yes" >&6; }
3086 SET_MAKE=
3087 else
3088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3089 printf "%s\n" "no" >&6; }
3090 SET_MAKE="MAKE=${MAKE-make}"
3091 fi
3092
3093 rm -rf .tst 2>/dev/null
3094 mkdir .tst 2>/dev/null
3095 if test -d .tst; then
3096 am__leading_dot=.
3097 else
3098 am__leading_dot=_
3099 fi
3100 rmdir .tst 2>/dev/null
3101
3102 # Check whether --enable-silent-rules was given.
3103 if test ${enable_silent_rules+y}
3104 then :
3105 enableval=$enable_silent_rules;
3106 fi
3107
3108 case $enable_silent_rules in # (((
3109 yes) AM_DEFAULT_VERBOSITY=0;;
3110 no) AM_DEFAULT_VERBOSITY=1;;
3111 *) AM_DEFAULT_VERBOSITY=1;;
3112 esac
3113 am_make=${MAKE-make}
3114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3115 printf %s "checking whether $am_make supports nested variables... " >&6; }
3116 if test ${am_cv_make_support_nested_variables+y}
3117 then :
3118 printf %s "(cached) " >&6
3119 else $as_nop
3120 if printf "%s\n" 'TRUE=$(BAR$(V))
3121 BAR0=false
3122 BAR1=true
3123 V=1
3124 am__doit:
3125 @$(TRUE)
3126 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3127 am_cv_make_support_nested_variables=yes
3128 else
3129 am_cv_make_support_nested_variables=no
3130 fi
3131 fi
3132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3133 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3134 if test $am_cv_make_support_nested_variables = yes; then
3135 AM_V='$(V)'
3136 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3137 else
3138 AM_V=$AM_DEFAULT_VERBOSITY
3139 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3140 fi
3141 AM_BACKSLASH='\'
3142
3143 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3144 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3145 # is not polluted with repeated "-I."
3146 am__isrc=' -I$(srcdir)'
3147 # test to see if srcdir already configured
3148 if test -f $srcdir/config.status; then
3149 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3150 fi
3151 fi
3152
3153 # test whether we have cygpath
3154 if test -z "$CYGPATH_W"; then
3155 if (cygpath --version) >/dev/null 2>/dev/null; then
3156 CYGPATH_W='cygpath -w'
3157 else
3158 CYGPATH_W=echo
3159 fi
3160 fi
3161
3162
3163 # Define the identity of the package.
3164 PACKAGE='xf86-video-savage'
3165 VERSION='2.4.0'
3166
3167
3168 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3169
3170
3171 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3172
3173 # Some tools Automake needs.
3174
3175 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3176
3177
3178 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3179
3180
3181 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3182
3183
3184 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3185
3186
3187 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3188
3189 # For better backward compatibility. To be removed once Automake 1.9.x
3190 # dies out for good. For more background, see:
3191 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3192 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3193 mkdir_p='$(MKDIR_P)'
3194
3195 # We need awk for the "check" target (and possibly the TAP driver). The
3196 # system "awk" is bad on some platforms.
3197 # Always define AMTAR for backward compatibility. Yes, it's still used
3198 # in the wild :-( We should find a proper way to deprecate it ...
3199 AMTAR='$${TAR-tar}'
3200
3201
3202 # We'll loop over all known methods to create a tar archive until one works.
3203 _am_tools='gnutar pax cpio none'
3204
3205 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3206
3207
3208
3209
3210
3211 # Variables for tags utilities; see am/tags.am
3212 if test -z "$CTAGS"; then
3213 CTAGS=ctags
3214 fi
3215
3216 if test -z "$ETAGS"; then
3217 ETAGS=etags
3218 fi
3219
3220 if test -z "$CSCOPE"; then
3221 CSCOPE=cscope
3222 fi
3223
3224
3225
3226 # POSIX will say in a future version that running "rm -f" with no argument
3227 # is OK; and we want to be able to make that assumption in our Makefile
3228 # recipes. So use an aggressive probe to check that the usage we want is
3229 # actually supported "in the wild" to an acceptable degree.
3230 # See automake bug#10828.
3231 # To make any issue more visible, cause the running configure to be aborted
3232 # by default if the 'rm' program in use doesn't match our expectations; the
3233 # user can still override this though.
3234 if rm -f && rm -fr && rm -rf; then : OK; else
3235 cat >&2 <<'END'
3236 Oops!
3237
3238 Your 'rm' program seems unable to run without file operands specified
3239 on the command line, even when the '-f' option is present. This is contrary
3240 to the behaviour of most rm programs out there, and not conforming with
3241 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3242
3243 Please tell bug-automake@gnu.org about your system, including the value
3244 of your $PATH and any error possibly output before this message. This
3245 can help us improve future automake versions.
3246
3247 END
3248 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3249 echo 'Configuration will proceed anyway, since you have set the' >&2
3250 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3251 echo >&2
3252 else
3253 cat >&2 <<'END'
3254 Aborting the configuration process, to ensure you take notice of the issue.
3255
3256 You can download and install GNU coreutils to get an 'rm' implementation
3257 that behaves properly: <https://www.gnu.org/software/coreutils/>.
3258
3259 If you want to complete the configuration process using your problematic
3260 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3261 to "yes", and re-run configure.
3262
3263 END
3264 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3265 fi
3266 fi
3267
3268
3269 # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
3270
3271
3272
3273
3274
3275
3276
3277
3278
3279
3280
3281
3282
3283
3284
3285
3286
3287
3288
3289
3290 DEPDIR="${am__leading_dot}deps"
3291
3292 ac_config_commands="$ac_config_commands depfiles"
3293
3294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3295 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
3296 cat > confinc.mk << 'END'
3297 am__doit:
3298 @echo this is the am__doit target >confinc.out
3299 .PHONY: am__doit
3300 END
3301 am__include="#"
3302 am__quote=
3303 # BSD make does it like this.
3304 echo '.include "confinc.mk" # ignored' > confmf.BSD
3305 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
3306 echo 'include confinc.mk # ignored' > confmf.GNU
3307 _am_result=no
3308 for s in GNU BSD; do
3309 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3310 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3311 ac_status=$?
3312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3313 (exit $ac_status); }
3314 case $?:`cat confinc.out 2>/dev/null` in #(
3315 '0:this is the am__doit target') :
3316 case $s in #(
3317 BSD) :
3318 am__include='.include' am__quote='"' ;; #(
3319 *) :
3320 am__include='include' am__quote='' ;;
3321 esac ;; #(
3322 *) :
3323 ;;
3324 esac
3325 if test "$am__include" != "#"; then
3326 _am_result="yes ($s style)"
3327 break
3328 fi
3329 done
3330 rm -f confinc.* confmf.*
3331 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3332 printf "%s\n" "${_am_result}" >&6; }
3333
3334 # Check whether --enable-dependency-tracking was given.
3335 if test ${enable_dependency_tracking+y}
3336 then :
3337 enableval=$enable_dependency_tracking;
3338 fi
3339
3340 if test "x$enable_dependency_tracking" != xno; then
3341 am_depcomp="$ac_aux_dir/depcomp"
3342 AMDEPBACKSLASH='\'
3343 am__nodep='_no'
3344 fi
3345 if test "x$enable_dependency_tracking" != xno; then
3346 AMDEP_TRUE=
3347 AMDEP_FALSE='#'
3348 else
3349 AMDEP_TRUE='#'
3350 AMDEP_FALSE=
3351 fi
3352
3353
3354 ac_ext=c
3355 ac_cpp='$CPP $CPPFLAGS'
3356 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3357 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3358 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3359 if test -n "$ac_tool_prefix"; then
3360 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3361 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3363 printf %s "checking for $ac_word... " >&6; }
3364 if test ${ac_cv_prog_CC+y}
3365 then :
3366 printf %s "(cached) " >&6
3367 else $as_nop
3368 if test -n "$CC"; then
3369 ac_cv_prog_CC="$CC" # Let the user override the test.
3370 else
3371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3372 for as_dir in $PATH
3373 do
3374 IFS=$as_save_IFS
3375 case $as_dir in #(((
3376 '') as_dir=./ ;;
3377 */) ;;
3378 *) as_dir=$as_dir/ ;;
3379 esac
3380 for ac_exec_ext in '' $ac_executable_extensions; do
3381 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3382 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3383 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3384 break 2
3385 fi
3386 done
3387 done
3388 IFS=$as_save_IFS
3389
3390 fi
3391 fi
3392 CC=$ac_cv_prog_CC
3393 if test -n "$CC"; then
3394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3395 printf "%s\n" "$CC" >&6; }
3396 else
3397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3398 printf "%s\n" "no" >&6; }
3399 fi
3400
3401
3402 fi
3403 if test -z "$ac_cv_prog_CC"; then
3404 ac_ct_CC=$CC
3405 # Extract the first word of "gcc", so it can be a program name with args.
3406 set dummy gcc; ac_word=$2
3407 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3408 printf %s "checking for $ac_word... " >&6; }
3409 if test ${ac_cv_prog_ac_ct_CC+y}
3410 then :
3411 printf %s "(cached) " >&6
3412 else $as_nop
3413 if test -n "$ac_ct_CC"; then
3414 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3415 else
3416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3417 for as_dir in $PATH
3418 do
3419 IFS=$as_save_IFS
3420 case $as_dir in #(((
3421 '') as_dir=./ ;;
3422 */) ;;
3423 *) as_dir=$as_dir/ ;;
3424 esac
3425 for ac_exec_ext in '' $ac_executable_extensions; do
3426 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3427 ac_cv_prog_ac_ct_CC="gcc"
3428 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3429 break 2
3430 fi
3431 done
3432 done
3433 IFS=$as_save_IFS
3434
3435 fi
3436 fi
3437 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3438 if test -n "$ac_ct_CC"; then
3439 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3440 printf "%s\n" "$ac_ct_CC" >&6; }
3441 else
3442 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3443 printf "%s\n" "no" >&6; }
3444 fi
3445
3446 if test "x$ac_ct_CC" = x; then
3447 CC=""
3448 else
3449 case $cross_compiling:$ac_tool_warned in
3450 yes:)
3451 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3452 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3453 ac_tool_warned=yes ;;
3454 esac
3455 CC=$ac_ct_CC
3456 fi
3457 else
3458 CC="$ac_cv_prog_CC"
3459 fi
3460
3461 if test -z "$CC"; then
3462 if test -n "$ac_tool_prefix"; then
3463 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3464 set dummy ${ac_tool_prefix}cc; ac_word=$2
3465 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3466 printf %s "checking for $ac_word... " >&6; }
3467 if test ${ac_cv_prog_CC+y}
3468 then :
3469 printf %s "(cached) " >&6
3470 else $as_nop
3471 if test -n "$CC"; then
3472 ac_cv_prog_CC="$CC" # Let the user override the test.
3473 else
3474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3475 for as_dir in $PATH
3476 do
3477 IFS=$as_save_IFS
3478 case $as_dir in #(((
3479 '') as_dir=./ ;;
3480 */) ;;
3481 *) as_dir=$as_dir/ ;;
3482 esac
3483 for ac_exec_ext in '' $ac_executable_extensions; do
3484 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3485 ac_cv_prog_CC="${ac_tool_prefix}cc"
3486 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3487 break 2
3488 fi
3489 done
3490 done
3491 IFS=$as_save_IFS
3492
3493 fi
3494 fi
3495 CC=$ac_cv_prog_CC
3496 if test -n "$CC"; then
3497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3498 printf "%s\n" "$CC" >&6; }
3499 else
3500 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3501 printf "%s\n" "no" >&6; }
3502 fi
3503
3504
3505 fi
3506 fi
3507 if test -z "$CC"; then
3508 # Extract the first word of "cc", so it can be a program name with args.
3509 set dummy cc; ac_word=$2
3510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3511 printf %s "checking for $ac_word... " >&6; }
3512 if test ${ac_cv_prog_CC+y}
3513 then :
3514 printf %s "(cached) " >&6
3515 else $as_nop
3516 if test -n "$CC"; then
3517 ac_cv_prog_CC="$CC" # Let the user override the test.
3518 else
3519 ac_prog_rejected=no
3520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3521 for as_dir in $PATH
3522 do
3523 IFS=$as_save_IFS
3524 case $as_dir in #(((
3525 '') as_dir=./ ;;
3526 */) ;;
3527 *) as_dir=$as_dir/ ;;
3528 esac
3529 for ac_exec_ext in '' $ac_executable_extensions; do
3530 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3531 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3532 ac_prog_rejected=yes
3533 continue
3534 fi
3535 ac_cv_prog_CC="cc"
3536 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3537 break 2
3538 fi
3539 done
3540 done
3541 IFS=$as_save_IFS
3542
3543 if test $ac_prog_rejected = yes; then
3544 # We found a bogon in the path, so make sure we never use it.
3545 set dummy $ac_cv_prog_CC
3546 shift
3547 if test $# != 0; then
3548 # We chose a different compiler from the bogus one.
3549 # However, it has the same basename, so the bogon will be chosen
3550 # first if we set CC to just the basename; use the full file name.
3551 shift
3552 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3553 fi
3554 fi
3555 fi
3556 fi
3557 CC=$ac_cv_prog_CC
3558 if test -n "$CC"; then
3559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3560 printf "%s\n" "$CC" >&6; }
3561 else
3562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3563 printf "%s\n" "no" >&6; }
3564 fi
3565
3566
3567 fi
3568 if test -z "$CC"; then
3569 if test -n "$ac_tool_prefix"; then
3570 for ac_prog in cl.exe
3571 do
3572 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3573 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3574 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3575 printf %s "checking for $ac_word... " >&6; }
3576 if test ${ac_cv_prog_CC+y}
3577 then :
3578 printf %s "(cached) " >&6
3579 else $as_nop
3580 if test -n "$CC"; then
3581 ac_cv_prog_CC="$CC" # Let the user override the test.
3582 else
3583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3584 for as_dir in $PATH
3585 do
3586 IFS=$as_save_IFS
3587 case $as_dir in #(((
3588 '') as_dir=./ ;;
3589 */) ;;
3590 *) as_dir=$as_dir/ ;;
3591 esac
3592 for ac_exec_ext in '' $ac_executable_extensions; do
3593 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3594 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3595 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3596 break 2
3597 fi
3598 done
3599 done
3600 IFS=$as_save_IFS
3601
3602 fi
3603 fi
3604 CC=$ac_cv_prog_CC
3605 if test -n "$CC"; then
3606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3607 printf "%s\n" "$CC" >&6; }
3608 else
3609 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3610 printf "%s\n" "no" >&6; }
3611 fi
3612
3613
3614 test -n "$CC" && break
3615 done
3616 fi
3617 if test -z "$CC"; then
3618 ac_ct_CC=$CC
3619 for ac_prog in cl.exe
3620 do
3621 # Extract the first word of "$ac_prog", so it can be a program name with args.
3622 set dummy $ac_prog; ac_word=$2
3623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3624 printf %s "checking for $ac_word... " >&6; }
3625 if test ${ac_cv_prog_ac_ct_CC+y}
3626 then :
3627 printf %s "(cached) " >&6
3628 else $as_nop
3629 if test -n "$ac_ct_CC"; then
3630 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3631 else
3632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3633 for as_dir in $PATH
3634 do
3635 IFS=$as_save_IFS
3636 case $as_dir in #(((
3637 '') as_dir=./ ;;
3638 */) ;;
3639 *) as_dir=$as_dir/ ;;
3640 esac
3641 for ac_exec_ext in '' $ac_executable_extensions; do
3642 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3643 ac_cv_prog_ac_ct_CC="$ac_prog"
3644 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3645 break 2
3646 fi
3647 done
3648 done
3649 IFS=$as_save_IFS
3650
3651 fi
3652 fi
3653 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3654 if test -n "$ac_ct_CC"; then
3655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3656 printf "%s\n" "$ac_ct_CC" >&6; }
3657 else
3658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3659 printf "%s\n" "no" >&6; }
3660 fi
3661
3662
3663 test -n "$ac_ct_CC" && break
3664 done
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 fi
3678
3679 fi
3680 if test -z "$CC"; then
3681 if test -n "$ac_tool_prefix"; then
3682 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3683 set dummy ${ac_tool_prefix}clang; ac_word=$2
3684 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3685 printf %s "checking for $ac_word... " >&6; }
3686 if test ${ac_cv_prog_CC+y}
3687 then :
3688 printf %s "(cached) " >&6
3689 else $as_nop
3690 if test -n "$CC"; then
3691 ac_cv_prog_CC="$CC" # Let the user override the test.
3692 else
3693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3694 for as_dir in $PATH
3695 do
3696 IFS=$as_save_IFS
3697 case $as_dir in #(((
3698 '') as_dir=./ ;;
3699 */) ;;
3700 *) as_dir=$as_dir/ ;;
3701 esac
3702 for ac_exec_ext in '' $ac_executable_extensions; do
3703 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3704 ac_cv_prog_CC="${ac_tool_prefix}clang"
3705 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3706 break 2
3707 fi
3708 done
3709 done
3710 IFS=$as_save_IFS
3711
3712 fi
3713 fi
3714 CC=$ac_cv_prog_CC
3715 if test -n "$CC"; then
3716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3717 printf "%s\n" "$CC" >&6; }
3718 else
3719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3720 printf "%s\n" "no" >&6; }
3721 fi
3722
3723
3724 fi
3725 if test -z "$ac_cv_prog_CC"; then
3726 ac_ct_CC=$CC
3727 # Extract the first word of "clang", so it can be a program name with args.
3728 set dummy clang; ac_word=$2
3729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3730 printf %s "checking for $ac_word... " >&6; }
3731 if test ${ac_cv_prog_ac_ct_CC+y}
3732 then :
3733 printf %s "(cached) " >&6
3734 else $as_nop
3735 if test -n "$ac_ct_CC"; then
3736 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3737 else
3738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3739 for as_dir in $PATH
3740 do
3741 IFS=$as_save_IFS
3742 case $as_dir in #(((
3743 '') as_dir=./ ;;
3744 */) ;;
3745 *) as_dir=$as_dir/ ;;
3746 esac
3747 for ac_exec_ext in '' $ac_executable_extensions; do
3748 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3749 ac_cv_prog_ac_ct_CC="clang"
3750 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3751 break 2
3752 fi
3753 done
3754 done
3755 IFS=$as_save_IFS
3756
3757 fi
3758 fi
3759 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3760 if test -n "$ac_ct_CC"; then
3761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3762 printf "%s\n" "$ac_ct_CC" >&6; }
3763 else
3764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3765 printf "%s\n" "no" >&6; }
3766 fi
3767
3768 if test "x$ac_ct_CC" = x; then
3769 CC=""
3770 else
3771 case $cross_compiling:$ac_tool_warned in
3772 yes:)
3773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3774 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3775 ac_tool_warned=yes ;;
3776 esac
3777 CC=$ac_ct_CC
3778 fi
3779 else
3780 CC="$ac_cv_prog_CC"
3781 fi
3782
3783 fi
3784
3785
3786 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3787 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3788 as_fn_error $? "no acceptable C compiler found in \$PATH
3789 See \`config.log' for more details" "$LINENO" 5; }
3790
3791 # Provide some information about the compiler.
3792 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3793 set X $ac_compile
3794 ac_compiler=$2
3795 for ac_option in --version -v -V -qversion -version; do
3796 { { ac_try="$ac_compiler $ac_option >&5"
3797 case "(($ac_try" in
3798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3799 *) ac_try_echo=$ac_try;;
3800 esac
3801 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3802 printf "%s\n" "$ac_try_echo"; } >&5
3803 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3804 ac_status=$?
3805 if test -s conftest.err; then
3806 sed '10a\
3807 ... rest of stderr output deleted ...
3808 10q' conftest.err >conftest.er1
3809 cat conftest.er1 >&5
3810 fi
3811 rm -f conftest.er1 conftest.err
3812 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3813 test $ac_status = 0; }
3814 done
3815
3816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3817 /* end confdefs.h. */
3818
3819 int
3820 main (void)
3821 {
3822
3823 ;
3824 return 0;
3825 }
3826 _ACEOF
3827 ac_clean_files_save=$ac_clean_files
3828 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3829 # Try to create an executable without -o first, disregard a.out.
3830 # It will help us diagnose broken compilers, and finding out an intuition
3831 # of exeext.
3832 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3833 printf %s "checking whether the C compiler works... " >&6; }
3834 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3835
3836 # The possible output files:
3837 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3838
3839 ac_rmfiles=
3840 for ac_file in $ac_files
3841 do
3842 case $ac_file in
3843 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3844 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3845 esac
3846 done
3847 rm -f $ac_rmfiles
3848
3849 if { { ac_try="$ac_link_default"
3850 case "(($ac_try" in
3851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3852 *) ac_try_echo=$ac_try;;
3853 esac
3854 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3855 printf "%s\n" "$ac_try_echo"; } >&5
3856 (eval "$ac_link_default") 2>&5
3857 ac_status=$?
3858 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3859 test $ac_status = 0; }
3860 then :
3861 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3862 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3863 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3864 # so that the user can short-circuit this test for compilers unknown to
3865 # Autoconf.
3866 for ac_file in $ac_files ''
3867 do
3868 test -f "$ac_file" || continue
3869 case $ac_file in
3870 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3871 ;;
3872 [ab].out )
3873 # We found the default executable, but exeext='' is most
3874 # certainly right.
3875 break;;
3876 *.* )
3877 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3878 then :; else
3879 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3880 fi
3881 # We set ac_cv_exeext here because the later test for it is not
3882 # safe: cross compilers may not add the suffix if given an `-o'
3883 # argument, so we may need to know it at that point already.
3884 # Even if this section looks crufty: it has the advantage of
3885 # actually working.
3886 break;;
3887 * )
3888 break;;
3889 esac
3890 done
3891 test "$ac_cv_exeext" = no && ac_cv_exeext=
3892
3893 else $as_nop
3894 ac_file=''
3895 fi
3896 if test -z "$ac_file"
3897 then :
3898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3899 printf "%s\n" "no" >&6; }
3900 printf "%s\n" "$as_me: failed program was:" >&5
3901 sed 's/^/| /' conftest.$ac_ext >&5
3902
3903 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3904 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3905 as_fn_error 77 "C compiler cannot create executables
3906 See \`config.log' for more details" "$LINENO" 5; }
3907 else $as_nop
3908 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3909 printf "%s\n" "yes" >&6; }
3910 fi
3911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3912 printf %s "checking for C compiler default output file name... " >&6; }
3913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3914 printf "%s\n" "$ac_file" >&6; }
3915 ac_exeext=$ac_cv_exeext
3916
3917 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3918 ac_clean_files=$ac_clean_files_save
3919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3920 printf %s "checking for suffix of executables... " >&6; }
3921 if { { ac_try="$ac_link"
3922 case "(($ac_try" in
3923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3924 *) ac_try_echo=$ac_try;;
3925 esac
3926 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3927 printf "%s\n" "$ac_try_echo"; } >&5
3928 (eval "$ac_link") 2>&5
3929 ac_status=$?
3930 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3931 test $ac_status = 0; }
3932 then :
3933 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3934 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3935 # work properly (i.e., refer to `conftest.exe'), while it won't with
3936 # `rm'.
3937 for ac_file in conftest.exe conftest conftest.*; do
3938 test -f "$ac_file" || continue
3939 case $ac_file in
3940 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3941 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3942 break;;
3943 * ) break;;
3944 esac
3945 done
3946 else $as_nop
3947 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3948 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3949 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3950 See \`config.log' for more details" "$LINENO" 5; }
3951 fi
3952 rm -f conftest conftest$ac_cv_exeext
3953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3954 printf "%s\n" "$ac_cv_exeext" >&6; }
3955
3956 rm -f conftest.$ac_ext
3957 EXEEXT=$ac_cv_exeext
3958 ac_exeext=$EXEEXT
3959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3960 /* end confdefs.h. */
3961 #include <stdio.h>
3962 int
3963 main (void)
3964 {
3965 FILE *f = fopen ("conftest.out", "w");
3966 return ferror (f) || fclose (f) != 0;
3967
3968 ;
3969 return 0;
3970 }
3971 _ACEOF
3972 ac_clean_files="$ac_clean_files conftest.out"
3973 # Check that the compiler produces executables we can run. If not, either
3974 # the compiler is broken, or we cross compile.
3975 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3976 printf %s "checking whether we are cross compiling... " >&6; }
3977 if test "$cross_compiling" != yes; then
3978 { { ac_try="$ac_link"
3979 case "(($ac_try" in
3980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3981 *) ac_try_echo=$ac_try;;
3982 esac
3983 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3984 printf "%s\n" "$ac_try_echo"; } >&5
3985 (eval "$ac_link") 2>&5
3986 ac_status=$?
3987 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3988 test $ac_status = 0; }
3989 if { ac_try='./conftest$ac_cv_exeext'
3990 { { case "(($ac_try" in
3991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3992 *) ac_try_echo=$ac_try;;
3993 esac
3994 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3995 printf "%s\n" "$ac_try_echo"; } >&5
3996 (eval "$ac_try") 2>&5
3997 ac_status=$?
3998 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3999 test $ac_status = 0; }; }; then
4000 cross_compiling=no
4001 else
4002 if test "$cross_compiling" = maybe; then
4003 cross_compiling=yes
4004 else
4005 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4006 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4007 as_fn_error 77 "cannot run C compiled programs.
4008 If you meant to cross compile, use \`--host'.
4009 See \`config.log' for more details" "$LINENO" 5; }
4010 fi
4011 fi
4012 fi
4013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4014 printf "%s\n" "$cross_compiling" >&6; }
4015
4016 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4017 ac_clean_files=$ac_clean_files_save
4018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4019 printf %s "checking for suffix of object files... " >&6; }
4020 if test ${ac_cv_objext+y}
4021 then :
4022 printf %s "(cached) " >&6
4023 else $as_nop
4024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4025 /* end confdefs.h. */
4026
4027 int
4028 main (void)
4029 {
4030
4031 ;
4032 return 0;
4033 }
4034 _ACEOF
4035 rm -f conftest.o conftest.obj
4036 if { { ac_try="$ac_compile"
4037 case "(($ac_try" in
4038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4039 *) ac_try_echo=$ac_try;;
4040 esac
4041 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4042 printf "%s\n" "$ac_try_echo"; } >&5
4043 (eval "$ac_compile") 2>&5
4044 ac_status=$?
4045 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4046 test $ac_status = 0; }
4047 then :
4048 for ac_file in conftest.o conftest.obj conftest.*; do
4049 test -f "$ac_file" || continue;
4050 case $ac_file in
4051 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4052 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4053 break;;
4054 esac
4055 done
4056 else $as_nop
4057 printf "%s\n" "$as_me: failed program was:" >&5
4058 sed 's/^/| /' conftest.$ac_ext >&5
4059
4060 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4061 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4062 as_fn_error $? "cannot compute suffix of object files: cannot compile
4063 See \`config.log' for more details" "$LINENO" 5; }
4064 fi
4065 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4066 fi
4067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4068 printf "%s\n" "$ac_cv_objext" >&6; }
4069 OBJEXT=$ac_cv_objext
4070 ac_objext=$OBJEXT
4071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4072 printf %s "checking whether the compiler supports GNU C... " >&6; }
4073 if test ${ac_cv_c_compiler_gnu+y}
4074 then :
4075 printf %s "(cached) " >&6
4076 else $as_nop
4077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4078 /* end confdefs.h. */
4079
4080 int
4081 main (void)
4082 {
4083 #ifndef __GNUC__
4084 choke me
4085 #endif
4086
4087 ;
4088 return 0;
4089 }
4090 _ACEOF
4091 if ac_fn_c_try_compile "$LINENO"
4092 then :
4093 ac_compiler_gnu=yes
4094 else $as_nop
4095 ac_compiler_gnu=no
4096 fi
4097 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4098 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4099
4100 fi
4101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4102 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4103 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4104
4105 if test $ac_compiler_gnu = yes; then
4106 GCC=yes
4107 else
4108 GCC=
4109 fi
4110 ac_test_CFLAGS=${CFLAGS+y}
4111 ac_save_CFLAGS=$CFLAGS
4112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4113 printf %s "checking whether $CC accepts -g... " >&6; }
4114 if test ${ac_cv_prog_cc_g+y}
4115 then :
4116 printf %s "(cached) " >&6
4117 else $as_nop
4118 ac_save_c_werror_flag=$ac_c_werror_flag
4119 ac_c_werror_flag=yes
4120 ac_cv_prog_cc_g=no
4121 CFLAGS="-g"
4122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4123 /* end confdefs.h. */
4124
4125 int
4126 main (void)
4127 {
4128
4129 ;
4130 return 0;
4131 }
4132 _ACEOF
4133 if ac_fn_c_try_compile "$LINENO"
4134 then :
4135 ac_cv_prog_cc_g=yes
4136 else $as_nop
4137 CFLAGS=""
4138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4139 /* end confdefs.h. */
4140
4141 int
4142 main (void)
4143 {
4144
4145 ;
4146 return 0;
4147 }
4148 _ACEOF
4149 if ac_fn_c_try_compile "$LINENO"
4150 then :
4151
4152 else $as_nop
4153 ac_c_werror_flag=$ac_save_c_werror_flag
4154 CFLAGS="-g"
4155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4156 /* end confdefs.h. */
4157
4158 int
4159 main (void)
4160 {
4161
4162 ;
4163 return 0;
4164 }
4165 _ACEOF
4166 if ac_fn_c_try_compile "$LINENO"
4167 then :
4168 ac_cv_prog_cc_g=yes
4169 fi
4170 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4171 fi
4172 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4173 fi
4174 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4175 ac_c_werror_flag=$ac_save_c_werror_flag
4176 fi
4177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4178 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4179 if test $ac_test_CFLAGS; then
4180 CFLAGS=$ac_save_CFLAGS
4181 elif test $ac_cv_prog_cc_g = yes; then
4182 if test "$GCC" = yes; then
4183 CFLAGS="-g -O2"
4184 else
4185 CFLAGS="-g"
4186 fi
4187 else
4188 if test "$GCC" = yes; then
4189 CFLAGS="-O2"
4190 else
4191 CFLAGS=
4192 fi
4193 fi
4194 ac_prog_cc_stdc=no
4195 if test x$ac_prog_cc_stdc = xno
4196 then :
4197 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4198 printf %s "checking for $CC option to enable C11 features... " >&6; }
4199 if test ${ac_cv_prog_cc_c11+y}
4200 then :
4201 printf %s "(cached) " >&6
4202 else $as_nop
4203 ac_cv_prog_cc_c11=no
4204 ac_save_CC=$CC
4205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4206 /* end confdefs.h. */
4207 $ac_c_conftest_c11_program
4208 _ACEOF
4209 for ac_arg in '' -std=gnu11
4210 do
4211 CC="$ac_save_CC $ac_arg"
4212 if ac_fn_c_try_compile "$LINENO"
4213 then :
4214 ac_cv_prog_cc_c11=$ac_arg
4215 fi
4216 rm -f core conftest.err conftest.$ac_objext conftest.beam
4217 test "x$ac_cv_prog_cc_c11" != "xno" && break
4218 done
4219 rm -f conftest.$ac_ext
4220 CC=$ac_save_CC
4221 fi
4222
4223 if test "x$ac_cv_prog_cc_c11" = xno
4224 then :
4225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4226 printf "%s\n" "unsupported" >&6; }
4227 else $as_nop
4228 if test "x$ac_cv_prog_cc_c11" = x
4229 then :
4230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4231 printf "%s\n" "none needed" >&6; }
4232 else $as_nop
4233 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4234 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4235 CC="$CC $ac_cv_prog_cc_c11"
4236 fi
4237 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4238 ac_prog_cc_stdc=c11
4239 fi
4240 fi
4241 if test x$ac_prog_cc_stdc = xno
4242 then :
4243 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4244 printf %s "checking for $CC option to enable C99 features... " >&6; }
4245 if test ${ac_cv_prog_cc_c99+y}
4246 then :
4247 printf %s "(cached) " >&6
4248 else $as_nop
4249 ac_cv_prog_cc_c99=no
4250 ac_save_CC=$CC
4251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4252 /* end confdefs.h. */
4253 $ac_c_conftest_c99_program
4254 _ACEOF
4255 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4256 do
4257 CC="$ac_save_CC $ac_arg"
4258 if ac_fn_c_try_compile "$LINENO"
4259 then :
4260 ac_cv_prog_cc_c99=$ac_arg
4261 fi
4262 rm -f core conftest.err conftest.$ac_objext conftest.beam
4263 test "x$ac_cv_prog_cc_c99" != "xno" && break
4264 done
4265 rm -f conftest.$ac_ext
4266 CC=$ac_save_CC
4267 fi
4268
4269 if test "x$ac_cv_prog_cc_c99" = xno
4270 then :
4271 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4272 printf "%s\n" "unsupported" >&6; }
4273 else $as_nop
4274 if test "x$ac_cv_prog_cc_c99" = x
4275 then :
4276 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4277 printf "%s\n" "none needed" >&6; }
4278 else $as_nop
4279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4280 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4281 CC="$CC $ac_cv_prog_cc_c99"
4282 fi
4283 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4284 ac_prog_cc_stdc=c99
4285 fi
4286 fi
4287 if test x$ac_prog_cc_stdc = xno
4288 then :
4289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4290 printf %s "checking for $CC option to enable C89 features... " >&6; }
4291 if test ${ac_cv_prog_cc_c89+y}
4292 then :
4293 printf %s "(cached) " >&6
4294 else $as_nop
4295 ac_cv_prog_cc_c89=no
4296 ac_save_CC=$CC
4297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4298 /* end confdefs.h. */
4299 $ac_c_conftest_c89_program
4300 _ACEOF
4301 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4302 do
4303 CC="$ac_save_CC $ac_arg"
4304 if ac_fn_c_try_compile "$LINENO"
4305 then :
4306 ac_cv_prog_cc_c89=$ac_arg
4307 fi
4308 rm -f core conftest.err conftest.$ac_objext conftest.beam
4309 test "x$ac_cv_prog_cc_c89" != "xno" && break
4310 done
4311 rm -f conftest.$ac_ext
4312 CC=$ac_save_CC
4313 fi
4314
4315 if test "x$ac_cv_prog_cc_c89" = xno
4316 then :
4317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4318 printf "%s\n" "unsupported" >&6; }
4319 else $as_nop
4320 if test "x$ac_cv_prog_cc_c89" = x
4321 then :
4322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4323 printf "%s\n" "none needed" >&6; }
4324 else $as_nop
4325 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4326 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4327 CC="$CC $ac_cv_prog_cc_c89"
4328 fi
4329 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4330 ac_prog_cc_stdc=c89
4331 fi
4332 fi
4333
4334 ac_ext=c
4335 ac_cpp='$CPP $CPPFLAGS'
4336 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4337 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4338 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4339
4340
4341 ac_ext=c
4342 ac_cpp='$CPP $CPPFLAGS'
4343 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4344 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4345 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4347 printf %s "checking whether $CC understands -c and -o together... " >&6; }
4348 if test ${am_cv_prog_cc_c_o+y}
4349 then :
4350 printf %s "(cached) " >&6
4351 else $as_nop
4352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4353 /* end confdefs.h. */
4354
4355 int
4356 main (void)
4357 {
4358
4359 ;
4360 return 0;
4361 }
4362 _ACEOF
4363 # Make sure it works both with $CC and with simple cc.
4364 # Following AC_PROG_CC_C_O, we do the test twice because some
4365 # compilers refuse to overwrite an existing .o file with -o,
4366 # though they will create one.
4367 am_cv_prog_cc_c_o=yes
4368 for am_i in 1 2; do
4369 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4370 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4371 ac_status=$?
4372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4373 (exit $ac_status); } \
4374 && test -f conftest2.$ac_objext; then
4375 : OK
4376 else
4377 am_cv_prog_cc_c_o=no
4378 break
4379 fi
4380 done
4381 rm -f core conftest*
4382 unset am_i
4383 fi
4384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4385 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4386 if test "$am_cv_prog_cc_c_o" != yes; then
4387 # Losing compiler, so override with the script.
4388 # FIXME: It is wrong to rewrite CC.
4389 # But if we don't then we get into trouble of one sort or another.
4390 # A longer-term fix would be to have automake use am__CC in this case,
4391 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4392 CC="$am_aux_dir/compile $CC"
4393 fi
4394 ac_ext=c
4395 ac_cpp='$CPP $CPPFLAGS'
4396 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4397 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4398 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4399
4400
4401 depcc="$CC" am_compiler_list=
4402
4403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4404 printf %s "checking dependency style of $depcc... " >&6; }
4405 if test ${am_cv_CC_dependencies_compiler_type+y}
4406 then :
4407 printf %s "(cached) " >&6
4408 else $as_nop
4409 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4410 # We make a subdir and do the tests there. Otherwise we can end up
4411 # making bogus files that we don't know about and never remove. For
4412 # instance it was reported that on HP-UX the gcc test will end up
4413 # making a dummy file named 'D' -- because '-MD' means "put the output
4414 # in D".
4415 rm -rf conftest.dir
4416 mkdir conftest.dir
4417 # Copy depcomp to subdir because otherwise we won't find it if we're
4418 # using a relative directory.
4419 cp "$am_depcomp" conftest.dir
4420 cd conftest.dir
4421 # We will build objects and dependencies in a subdirectory because
4422 # it helps to detect inapplicable dependency modes. For instance
4423 # both Tru64's cc and ICC support -MD to output dependencies as a
4424 # side effect of compilation, but ICC will put the dependencies in
4425 # the current directory while Tru64 will put them in the object
4426 # directory.
4427 mkdir sub
4428
4429 am_cv_CC_dependencies_compiler_type=none
4430 if test "$am_compiler_list" = ""; then
4431 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4432 fi
4433 am__universal=false
4434 case " $depcc " in #(
4435 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4436 esac
4437
4438 for depmode in $am_compiler_list; do
4439 # Setup a source with many dependencies, because some compilers
4440 # like to wrap large dependency lists on column 80 (with \), and
4441 # we should not choose a depcomp mode which is confused by this.
4442 #
4443 # We need to recreate these files for each test, as the compiler may
4444 # overwrite some of them when testing with obscure command lines.
4445 # This happens at least with the AIX C compiler.
4446 : > sub/conftest.c
4447 for i in 1 2 3 4 5 6; do
4448 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4449 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4450 # Solaris 10 /bin/sh.
4451 echo '/* dummy */' > sub/conftst$i.h
4452 done
4453 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4454
4455 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4456 # mode. It turns out that the SunPro C++ compiler does not properly
4457 # handle '-M -o', and we need to detect this. Also, some Intel
4458 # versions had trouble with output in subdirs.
4459 am__obj=sub/conftest.${OBJEXT-o}
4460 am__minus_obj="-o $am__obj"
4461 case $depmode in
4462 gcc)
4463 # This depmode causes a compiler race in universal mode.
4464 test "$am__universal" = false || continue
4465 ;;
4466 nosideeffect)
4467 # After this tag, mechanisms are not by side-effect, so they'll
4468 # only be used when explicitly requested.
4469 if test "x$enable_dependency_tracking" = xyes; then
4470 continue
4471 else
4472 break
4473 fi
4474 ;;
4475 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4476 # This compiler won't grok '-c -o', but also, the minuso test has
4477 # not run yet. These depmodes are late enough in the game, and
4478 # so weak that their functioning should not be impacted.
4479 am__obj=conftest.${OBJEXT-o}
4480 am__minus_obj=
4481 ;;
4482 none) break ;;
4483 esac
4484 if depmode=$depmode \
4485 source=sub/conftest.c object=$am__obj \
4486 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4487 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4488 >/dev/null 2>conftest.err &&
4489 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4490 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4491 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4492 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4493 # icc doesn't choke on unknown options, it will just issue warnings
4494 # or remarks (even with -Werror). So we grep stderr for any message
4495 # that says an option was ignored or not supported.
4496 # When given -MP, icc 7.0 and 7.1 complain thusly:
4497 # icc: Command line warning: ignoring option '-M'; no argument required
4498 # The diagnosis changed in icc 8.0:
4499 # icc: Command line remark: option '-MP' not supported
4500 if (grep 'ignoring option' conftest.err ||
4501 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4502 am_cv_CC_dependencies_compiler_type=$depmode
4503 break
4504 fi
4505 fi
4506 done
4507
4508 cd ..
4509 rm -rf conftest.dir
4510 else
4511 am_cv_CC_dependencies_compiler_type=none
4512 fi
4513
4514 fi
4515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4516 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4517 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4518
4519 if
4520 test "x$enable_dependency_tracking" != xno \
4521 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4522 am__fastdepCC_TRUE=
4523 am__fastdepCC_FALSE='#'
4524 else
4525 am__fastdepCC_TRUE='#'
4526 am__fastdepCC_FALSE=
4527 fi
4528
4529
4530
4531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
4532 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
4533 if test ${ac_cv_c_undeclared_builtin_options+y}
4534 then :
4535 printf %s "(cached) " >&6
4536 else $as_nop
4537 ac_save_CFLAGS=$CFLAGS
4538 ac_cv_c_undeclared_builtin_options='cannot detect'
4539 for ac_arg in '' -fno-builtin; do
4540 CFLAGS="$ac_save_CFLAGS $ac_arg"
4541 # This test program should *not* compile successfully.
4542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4543 /* end confdefs.h. */
4544
4545 int
4546 main (void)
4547 {
4548 (void) strchr;
4549 ;
4550 return 0;
4551 }
4552 _ACEOF
4553 if ac_fn_c_try_compile "$LINENO"
4554 then :
4555
4556 else $as_nop
4557 # This test program should compile successfully.
4558 # No library function is consistently available on
4559 # freestanding implementations, so test against a dummy
4560 # declaration. Include always-available headers on the
4561 # off chance that they somehow elicit warnings.
4562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4563 /* end confdefs.h. */
4564 #include <float.h>
4565 #include <limits.h>
4566 #include <stdarg.h>
4567 #include <stddef.h>
4568 extern void ac_decl (int, char *);
4569
4570 int
4571 main (void)
4572 {
4573 (void) ac_decl (0, (char *) 0);
4574 (void) ac_decl;
4575
4576 ;
4577 return 0;
4578 }
4579 _ACEOF
4580 if ac_fn_c_try_compile "$LINENO"
4581 then :
4582 if test x"$ac_arg" = x
4583 then :
4584 ac_cv_c_undeclared_builtin_options='none needed'
4585 else $as_nop
4586 ac_cv_c_undeclared_builtin_options=$ac_arg
4587 fi
4588 break
4589 fi
4590 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4591 fi
4592 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4593 done
4594 CFLAGS=$ac_save_CFLAGS
4595
4596 fi
4597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
4598 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
4599 case $ac_cv_c_undeclared_builtin_options in #(
4600 'cannot detect') :
4601 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4602 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4603 as_fn_error $? "cannot make $CC report undeclared builtins
4604 See \`config.log' for more details" "$LINENO" 5; } ;; #(
4605 'none needed') :
4606 ac_c_undeclared_builtin_options='' ;; #(
4607 *) :
4608 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
4609 esac
4610
4611 ac_header= ac_cache=
4612 for ac_item in $ac_header_c_list
4613 do
4614 if test $ac_cache; then
4615 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
4616 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
4617 printf "%s\n" "#define $ac_item 1" >> confdefs.h
4618 fi
4619 ac_header= ac_cache=
4620 elif test $ac_header; then
4621 ac_cache=$ac_item
4622 else
4623 ac_header=$ac_item
4624 fi
4625 done
4626
4627
4628
4629
4630
4631
4632
4633
4634 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
4635 then :
4636
4637 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
4638
4639 fi
4640
4641
4642
4643
4644 ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4645 if test "x$ac_cv_have_decl___clang__" = xyes
4646 then :
4647 CLANGCC="yes"
4648 else $as_nop
4649 CLANGCC="no"
4650 fi
4651 ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4652 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes
4653 then :
4654 INTELCC="yes"
4655 else $as_nop
4656 INTELCC="no"
4657 fi
4658 ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4659 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes
4660 then :
4661 SUNCC="yes"
4662 else $as_nop
4663 SUNCC="no"
4664 fi
4665
4666
4667
4668
4669
4670
4671
4672
4673 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4674 if test -n "$ac_tool_prefix"; then
4675 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4676 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4678 printf %s "checking for $ac_word... " >&6; }
4679 if test ${ac_cv_path_PKG_CONFIG+y}
4680 then :
4681 printf %s "(cached) " >&6
4682 else $as_nop
4683 case $PKG_CONFIG in
4684 [\\/]* | ?:[\\/]*)
4685 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4686 ;;
4687 *)
4688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4689 for as_dir in $PATH
4690 do
4691 IFS=$as_save_IFS
4692 case $as_dir in #(((
4693 '') as_dir=./ ;;
4694 */) ;;
4695 *) as_dir=$as_dir/ ;;
4696 esac
4697 for ac_exec_ext in '' $ac_executable_extensions; do
4698 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4699 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
4700 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4701 break 2
4702 fi
4703 done
4704 done
4705 IFS=$as_save_IFS
4706
4707 ;;
4708 esac
4709 fi
4710 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4711 if test -n "$PKG_CONFIG"; then
4712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4713 printf "%s\n" "$PKG_CONFIG" >&6; }
4714 else
4715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4716 printf "%s\n" "no" >&6; }
4717 fi
4718
4719
4720 fi
4721 if test -z "$ac_cv_path_PKG_CONFIG"; then
4722 ac_pt_PKG_CONFIG=$PKG_CONFIG
4723 # Extract the first word of "pkg-config", so it can be a program name with args.
4724 set dummy pkg-config; ac_word=$2
4725 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4726 printf %s "checking for $ac_word... " >&6; }
4727 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
4728 then :
4729 printf %s "(cached) " >&6
4730 else $as_nop
4731 case $ac_pt_PKG_CONFIG in
4732 [\\/]* | ?:[\\/]*)
4733 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4734 ;;
4735 *)
4736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4737 for as_dir in $PATH
4738 do
4739 IFS=$as_save_IFS
4740 case $as_dir in #(((
4741 '') as_dir=./ ;;
4742 */) ;;
4743 *) as_dir=$as_dir/ ;;
4744 esac
4745 for ac_exec_ext in '' $ac_executable_extensions; do
4746 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4747 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
4748 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4749 break 2
4750 fi
4751 done
4752 done
4753 IFS=$as_save_IFS
4754
4755 ;;
4756 esac
4757 fi
4758 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4759 if test -n "$ac_pt_PKG_CONFIG"; then
4760 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4761 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
4762 else
4763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4764 printf "%s\n" "no" >&6; }
4765 fi
4766
4767 if test "x$ac_pt_PKG_CONFIG" = x; then
4768 PKG_CONFIG=""
4769 else
4770 case $cross_compiling:$ac_tool_warned in
4771 yes:)
4772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4773 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4774 ac_tool_warned=yes ;;
4775 esac
4776 PKG_CONFIG=$ac_pt_PKG_CONFIG
4777 fi
4778 else
4779 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4780 fi
4781
4782 fi
4783 if test -n "$PKG_CONFIG"; then
4784 _pkg_min_version=0.9.0
4785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4786 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4787 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4789 printf "%s\n" "yes" >&6; }
4790 else
4791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4792 printf "%s\n" "no" >&6; }
4793 PKG_CONFIG=""
4794 fi
4795 fi
4796
4797
4798 # Make sure we can run config.sub.
4799 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
4800 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
4801
4802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4803 printf %s "checking build system type... " >&6; }
4804 if test ${ac_cv_build+y}
4805 then :
4806 printf %s "(cached) " >&6
4807 else $as_nop
4808 ac_build_alias=$build_alias
4809 test "x$ac_build_alias" = x &&
4810 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
4811 test "x$ac_build_alias" = x &&
4812 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4813 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
4814 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
4815
4816 fi
4817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4818 printf "%s\n" "$ac_cv_build" >&6; }
4819 case $ac_cv_build in
4820 *-*-*) ;;
4821 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4822 esac
4823 build=$ac_cv_build
4824 ac_save_IFS=$IFS; IFS='-'
4825 set x $ac_cv_build
4826 shift
4827 build_cpu=$1
4828 build_vendor=$2
4829 shift; shift
4830 # Remember, the first character of IFS is used to create $*,
4831 # except with old shells:
4832 build_os=$*
4833 IFS=$ac_save_IFS
4834 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4835
4836
4837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4838 printf %s "checking host system type... " >&6; }
4839 if test ${ac_cv_host+y}
4840 then :
4841 printf %s "(cached) " >&6
4842 else $as_nop
4843 if test "x$host_alias" = x; then
4844 ac_cv_host=$ac_cv_build
4845 else
4846 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
4847 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
4848 fi
4849
4850 fi
4851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4852 printf "%s\n" "$ac_cv_host" >&6; }
4853 case $ac_cv_host in
4854 *-*-*) ;;
4855 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4856 esac
4857 host=$ac_cv_host
4858 ac_save_IFS=$IFS; IFS='-'
4859 set x $ac_cv_host
4860 shift
4861 host_cpu=$1
4862 host_vendor=$2
4863 shift; shift
4864 # Remember, the first character of IFS is used to create $*,
4865 # except with old shells:
4866 host_os=$*
4867 IFS=$ac_save_IFS
4868 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4869
4870
4871 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4872 printf %s "checking for a sed that does not truncate output... " >&6; }
4873 if test ${ac_cv_path_SED+y}
4874 then :
4875 printf %s "(cached) " >&6
4876 else $as_nop
4877 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4878 for ac_i in 1 2 3 4 5 6 7; do
4879 ac_script="$ac_script$as_nl$ac_script"
4880 done
4881 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4882 { ac_script=; unset ac_script;}
4883 if test -z "$SED"; then
4884 ac_path_SED_found=false
4885 # Loop through the user's path and test for each of PROGNAME-LIST
4886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4887 for as_dir in $PATH
4888 do
4889 IFS=$as_save_IFS
4890 case $as_dir in #(((
4891 '') as_dir=./ ;;
4892 */) ;;
4893 *) as_dir=$as_dir/ ;;
4894 esac
4895 for ac_prog in sed gsed
4896 do
4897 for ac_exec_ext in '' $ac_executable_extensions; do
4898 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
4899 as_fn_executable_p "$ac_path_SED" || continue
4900 # Check for GNU ac_path_SED and select it if it is found.
4901 # Check for GNU $ac_path_SED
4902 case `"$ac_path_SED" --version 2>&1` in
4903 *GNU*)
4904 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4905 *)
4906 ac_count=0
4907 printf %s 0123456789 >"conftest.in"
4908 while :
4909 do
4910 cat "conftest.in" "conftest.in" >"conftest.tmp"
4911 mv "conftest.tmp" "conftest.in"
4912 cp "conftest.in" "conftest.nl"
4913 printf "%s\n" '' >> "conftest.nl"
4914 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4915 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4916 as_fn_arith $ac_count + 1 && ac_count=$as_val
4917 if test $ac_count -gt ${ac_path_SED_max-0}; then
4918 # Best one so far, save it but keep looking for a better one
4919 ac_cv_path_SED="$ac_path_SED"
4920 ac_path_SED_max=$ac_count
4921 fi
4922 # 10*(2^10) chars as input seems more than enough
4923 test $ac_count -gt 10 && break
4924 done
4925 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4926 esac
4927
4928 $ac_path_SED_found && break 3
4929 done
4930 done
4931 done
4932 IFS=$as_save_IFS
4933 if test -z "$ac_cv_path_SED"; then
4934 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4935 fi
4936 else
4937 ac_cv_path_SED=$SED
4938 fi
4939
4940 fi
4941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4942 printf "%s\n" "$ac_cv_path_SED" >&6; }
4943 SED="$ac_cv_path_SED"
4944 rm -f conftest.sed
4945
4946
4947
4948
4949
4950
4951 # Check whether --enable-selective-werror was given.
4952 if test ${enable_selective_werror+y}
4953 then :
4954 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4955 else $as_nop
4956 SELECTIVE_WERROR=yes
4957 fi
4958
4959
4960
4961
4962
4963 # -v is too short to test reliably with XORG_TESTSET_CFLAG
4964 if test "x$SUNCC" = "xyes"; then
4965 BASE_CFLAGS="-v"
4966 else
4967 BASE_CFLAGS=""
4968 fi
4969
4970 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
4971
4972
4973
4974
4975
4976
4977
4978
4979
4980
4981
4982
4983
4984 xorg_testset_save_CFLAGS="$CFLAGS"
4985
4986 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4987 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4989 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4990 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
4991 then :
4992 printf %s "(cached) " >&6
4993 else $as_nop
4994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4995 /* end confdefs.h. */
4996 int i;
4997 _ACEOF
4998 if ac_fn_c_try_compile "$LINENO"
4999 then :
5000 xorg_cv_cc_flag_unknown_warning_option=yes
5001 else $as_nop
5002 xorg_cv_cc_flag_unknown_warning_option=no
5003 fi
5004 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5005 fi
5006 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5007 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5008 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5009 CFLAGS="$xorg_testset_save_CFLAGS"
5010 fi
5011
5012 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5013 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5014 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5015 fi
5016 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5018 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5019 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5020 then :
5021 printf %s "(cached) " >&6
5022 else $as_nop
5023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5024 /* end confdefs.h. */
5025 int i;
5026 _ACEOF
5027 if ac_fn_c_try_compile "$LINENO"
5028 then :
5029 xorg_cv_cc_flag_unused_command_line_argument=yes
5030 else $as_nop
5031 xorg_cv_cc_flag_unused_command_line_argument=no
5032 fi
5033 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5034 fi
5035 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5036 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5037 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5038 CFLAGS="$xorg_testset_save_CFLAGS"
5039 fi
5040
5041 found="no"
5042
5043 if test $found = "no" ; then
5044 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5045 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5046 fi
5047
5048 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5049 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5050 fi
5051
5052 CFLAGS="$CFLAGS -Wall"
5053
5054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
5055 printf %s "checking if $CC supports -Wall... " >&6; }
5056 cacheid=xorg_cv_cc_flag__Wall
5057 if eval test \${$cacheid+y}
5058 then :
5059 printf %s "(cached) " >&6
5060 else $as_nop
5061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5062 /* end confdefs.h. */
5063 int i;
5064 int
5065 main (void)
5066 {
5067
5068 ;
5069 return 0;
5070 }
5071 _ACEOF
5072 if ac_fn_c_try_link "$LINENO"
5073 then :
5074 eval $cacheid=yes
5075 else $as_nop
5076 eval $cacheid=no
5077 fi
5078 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5079 conftest$ac_exeext conftest.$ac_ext
5080 fi
5081
5082
5083 CFLAGS="$xorg_testset_save_CFLAGS"
5084
5085 eval supported=\$$cacheid
5086 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5087 printf "%s\n" "$supported" >&6; }
5088 if test "$supported" = "yes" ; then
5089 BASE_CFLAGS="$BASE_CFLAGS -Wall"
5090 found="yes"
5091 fi
5092 fi
5093
5094
5095
5096
5097
5098
5099
5100
5101
5102
5103
5104
5105
5106
5107
5108 xorg_testset_save_CFLAGS="$CFLAGS"
5109
5110 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5111 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5113 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5114 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5115 then :
5116 printf %s "(cached) " >&6
5117 else $as_nop
5118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5119 /* end confdefs.h. */
5120 int i;
5121 _ACEOF
5122 if ac_fn_c_try_compile "$LINENO"
5123 then :
5124 xorg_cv_cc_flag_unknown_warning_option=yes
5125 else $as_nop
5126 xorg_cv_cc_flag_unknown_warning_option=no
5127 fi
5128 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5129 fi
5130 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5131 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5132 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5133 CFLAGS="$xorg_testset_save_CFLAGS"
5134 fi
5135
5136 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5137 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5138 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5139 fi
5140 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5142 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5143 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5144 then :
5145 printf %s "(cached) " >&6
5146 else $as_nop
5147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5148 /* end confdefs.h. */
5149 int i;
5150 _ACEOF
5151 if ac_fn_c_try_compile "$LINENO"
5152 then :
5153 xorg_cv_cc_flag_unused_command_line_argument=yes
5154 else $as_nop
5155 xorg_cv_cc_flag_unused_command_line_argument=no
5156 fi
5157 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5158 fi
5159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5160 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5161 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5162 CFLAGS="$xorg_testset_save_CFLAGS"
5163 fi
5164
5165 found="no"
5166
5167 if test $found = "no" ; then
5168 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5169 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5170 fi
5171
5172 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5173 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5174 fi
5175
5176 CFLAGS="$CFLAGS -Wpointer-arith"
5177
5178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
5179 printf %s "checking if $CC supports -Wpointer-arith... " >&6; }
5180 cacheid=xorg_cv_cc_flag__Wpointer_arith
5181 if eval test \${$cacheid+y}
5182 then :
5183 printf %s "(cached) " >&6
5184 else $as_nop
5185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5186 /* end confdefs.h. */
5187 int i;
5188 int
5189 main (void)
5190 {
5191
5192 ;
5193 return 0;
5194 }
5195 _ACEOF
5196 if ac_fn_c_try_link "$LINENO"
5197 then :
5198 eval $cacheid=yes
5199 else $as_nop
5200 eval $cacheid=no
5201 fi
5202 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5203 conftest$ac_exeext conftest.$ac_ext
5204 fi
5205
5206
5207 CFLAGS="$xorg_testset_save_CFLAGS"
5208
5209 eval supported=\$$cacheid
5210 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5211 printf "%s\n" "$supported" >&6; }
5212 if test "$supported" = "yes" ; then
5213 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
5214 found="yes"
5215 fi
5216 fi
5217
5218
5219
5220
5221
5222
5223
5224
5225
5226
5227
5228
5229
5230
5231
5232 xorg_testset_save_CFLAGS="$CFLAGS"
5233
5234 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5235 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5237 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5238 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5239 then :
5240 printf %s "(cached) " >&6
5241 else $as_nop
5242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5243 /* end confdefs.h. */
5244 int i;
5245 _ACEOF
5246 if ac_fn_c_try_compile "$LINENO"
5247 then :
5248 xorg_cv_cc_flag_unknown_warning_option=yes
5249 else $as_nop
5250 xorg_cv_cc_flag_unknown_warning_option=no
5251 fi
5252 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5253 fi
5254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5255 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5256 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5257 CFLAGS="$xorg_testset_save_CFLAGS"
5258 fi
5259
5260 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5261 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5262 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5263 fi
5264 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5266 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5267 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5268 then :
5269 printf %s "(cached) " >&6
5270 else $as_nop
5271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5272 /* end confdefs.h. */
5273 int i;
5274 _ACEOF
5275 if ac_fn_c_try_compile "$LINENO"
5276 then :
5277 xorg_cv_cc_flag_unused_command_line_argument=yes
5278 else $as_nop
5279 xorg_cv_cc_flag_unused_command_line_argument=no
5280 fi
5281 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5282 fi
5283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5284 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5285 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5286 CFLAGS="$xorg_testset_save_CFLAGS"
5287 fi
5288
5289 found="no"
5290
5291 if test $found = "no" ; then
5292 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5293 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5294 fi
5295
5296 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5297 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5298 fi
5299
5300 CFLAGS="$CFLAGS -Wmissing-declarations"
5301
5302 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
5303 printf %s "checking if $CC supports -Wmissing-declarations... " >&6; }
5304 cacheid=xorg_cv_cc_flag__Wmissing_declarations
5305 if eval test \${$cacheid+y}
5306 then :
5307 printf %s "(cached) " >&6
5308 else $as_nop
5309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5310 /* end confdefs.h. */
5311 int i;
5312 int
5313 main (void)
5314 {
5315
5316 ;
5317 return 0;
5318 }
5319 _ACEOF
5320 if ac_fn_c_try_link "$LINENO"
5321 then :
5322 eval $cacheid=yes
5323 else $as_nop
5324 eval $cacheid=no
5325 fi
5326 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5327 conftest$ac_exeext conftest.$ac_ext
5328 fi
5329
5330
5331 CFLAGS="$xorg_testset_save_CFLAGS"
5332
5333 eval supported=\$$cacheid
5334 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5335 printf "%s\n" "$supported" >&6; }
5336 if test "$supported" = "yes" ; then
5337 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5338 found="yes"
5339 fi
5340 fi
5341
5342
5343
5344
5345
5346
5347
5348
5349
5350
5351
5352
5353
5354
5355
5356 xorg_testset_save_CFLAGS="$CFLAGS"
5357
5358 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5359 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5361 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5362 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5363 then :
5364 printf %s "(cached) " >&6
5365 else $as_nop
5366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5367 /* end confdefs.h. */
5368 int i;
5369 _ACEOF
5370 if ac_fn_c_try_compile "$LINENO"
5371 then :
5372 xorg_cv_cc_flag_unknown_warning_option=yes
5373 else $as_nop
5374 xorg_cv_cc_flag_unknown_warning_option=no
5375 fi
5376 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5377 fi
5378 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5379 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5380 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5381 CFLAGS="$xorg_testset_save_CFLAGS"
5382 fi
5383
5384 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5385 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5386 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5387 fi
5388 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5390 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5391 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5392 then :
5393 printf %s "(cached) " >&6
5394 else $as_nop
5395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5396 /* end confdefs.h. */
5397 int i;
5398 _ACEOF
5399 if ac_fn_c_try_compile "$LINENO"
5400 then :
5401 xorg_cv_cc_flag_unused_command_line_argument=yes
5402 else $as_nop
5403 xorg_cv_cc_flag_unused_command_line_argument=no
5404 fi
5405 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5406 fi
5407 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5408 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5409 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5410 CFLAGS="$xorg_testset_save_CFLAGS"
5411 fi
5412
5413 found="no"
5414
5415 if test $found = "no" ; then
5416 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5417 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5418 fi
5419
5420 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5421 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5422 fi
5423
5424 CFLAGS="$CFLAGS -Wformat=2"
5425
5426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5427 printf %s "checking if $CC supports -Wformat=2... " >&6; }
5428 cacheid=xorg_cv_cc_flag__Wformat_2
5429 if eval test \${$cacheid+y}
5430 then :
5431 printf %s "(cached) " >&6
5432 else $as_nop
5433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5434 /* end confdefs.h. */
5435 int i;
5436 int
5437 main (void)
5438 {
5439
5440 ;
5441 return 0;
5442 }
5443 _ACEOF
5444 if ac_fn_c_try_link "$LINENO"
5445 then :
5446 eval $cacheid=yes
5447 else $as_nop
5448 eval $cacheid=no
5449 fi
5450 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5451 conftest$ac_exeext conftest.$ac_ext
5452 fi
5453
5454
5455 CFLAGS="$xorg_testset_save_CFLAGS"
5456
5457 eval supported=\$$cacheid
5458 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5459 printf "%s\n" "$supported" >&6; }
5460 if test "$supported" = "yes" ; then
5461 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5462 found="yes"
5463 fi
5464 fi
5465
5466 if test $found = "no" ; then
5467 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5468 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5469 fi
5470
5471 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5472 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5473 fi
5474
5475 CFLAGS="$CFLAGS -Wformat"
5476
5477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5478 printf %s "checking if $CC supports -Wformat... " >&6; }
5479 cacheid=xorg_cv_cc_flag__Wformat
5480 if eval test \${$cacheid+y}
5481 then :
5482 printf %s "(cached) " >&6
5483 else $as_nop
5484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5485 /* end confdefs.h. */
5486 int i;
5487 int
5488 main (void)
5489 {
5490
5491 ;
5492 return 0;
5493 }
5494 _ACEOF
5495 if ac_fn_c_try_link "$LINENO"
5496 then :
5497 eval $cacheid=yes
5498 else $as_nop
5499 eval $cacheid=no
5500 fi
5501 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5502 conftest$ac_exeext conftest.$ac_ext
5503 fi
5504
5505
5506 CFLAGS="$xorg_testset_save_CFLAGS"
5507
5508 eval supported=\$$cacheid
5509 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5510 printf "%s\n" "$supported" >&6; }
5511 if test "$supported" = "yes" ; then
5512 BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5513 found="yes"
5514 fi
5515 fi
5516
5517
5518
5519
5520
5521
5522
5523
5524
5525
5526
5527
5528
5529
5530
5531
5532
5533 xorg_testset_save_CFLAGS="$CFLAGS"
5534
5535 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5536 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5538 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5539 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5540 then :
5541 printf %s "(cached) " >&6
5542 else $as_nop
5543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5544 /* end confdefs.h. */
5545 int i;
5546 _ACEOF
5547 if ac_fn_c_try_compile "$LINENO"
5548 then :
5549 xorg_cv_cc_flag_unknown_warning_option=yes
5550 else $as_nop
5551 xorg_cv_cc_flag_unknown_warning_option=no
5552 fi
5553 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5554 fi
5555 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5556 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5557 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5558 CFLAGS="$xorg_testset_save_CFLAGS"
5559 fi
5560
5561 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5562 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5563 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5564 fi
5565 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5567 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5568 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5569 then :
5570 printf %s "(cached) " >&6
5571 else $as_nop
5572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5573 /* end confdefs.h. */
5574 int i;
5575 _ACEOF
5576 if ac_fn_c_try_compile "$LINENO"
5577 then :
5578 xorg_cv_cc_flag_unused_command_line_argument=yes
5579 else $as_nop
5580 xorg_cv_cc_flag_unused_command_line_argument=no
5581 fi
5582 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5583 fi
5584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5585 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5586 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5587 CFLAGS="$xorg_testset_save_CFLAGS"
5588 fi
5589
5590 found="no"
5591
5592 if test $found = "no" ; then
5593 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5594 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5595 fi
5596
5597 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5598 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5599 fi
5600
5601 CFLAGS="$CFLAGS -Wstrict-prototypes"
5602
5603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5604 printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; }
5605 cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5606 if eval test \${$cacheid+y}
5607 then :
5608 printf %s "(cached) " >&6
5609 else $as_nop
5610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5611 /* end confdefs.h. */
5612 int i;
5613 int
5614 main (void)
5615 {
5616
5617 ;
5618 return 0;
5619 }
5620 _ACEOF
5621 if ac_fn_c_try_link "$LINENO"
5622 then :
5623 eval $cacheid=yes
5624 else $as_nop
5625 eval $cacheid=no
5626 fi
5627 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5628 conftest$ac_exeext conftest.$ac_ext
5629 fi
5630
5631
5632 CFLAGS="$xorg_testset_save_CFLAGS"
5633
5634 eval supported=\$$cacheid
5635 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5636 printf "%s\n" "$supported" >&6; }
5637 if test "$supported" = "yes" ; then
5638 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5639 found="yes"
5640 fi
5641 fi
5642
5643
5644
5645
5646
5647
5648
5649
5650
5651
5652
5653
5654
5655
5656
5657 xorg_testset_save_CFLAGS="$CFLAGS"
5658
5659 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5660 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5662 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5663 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5664 then :
5665 printf %s "(cached) " >&6
5666 else $as_nop
5667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5668 /* end confdefs.h. */
5669 int i;
5670 _ACEOF
5671 if ac_fn_c_try_compile "$LINENO"
5672 then :
5673 xorg_cv_cc_flag_unknown_warning_option=yes
5674 else $as_nop
5675 xorg_cv_cc_flag_unknown_warning_option=no
5676 fi
5677 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5678 fi
5679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5680 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5681 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5682 CFLAGS="$xorg_testset_save_CFLAGS"
5683 fi
5684
5685 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5686 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5687 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5688 fi
5689 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5690 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5691 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5692 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5693 then :
5694 printf %s "(cached) " >&6
5695 else $as_nop
5696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5697 /* end confdefs.h. */
5698 int i;
5699 _ACEOF
5700 if ac_fn_c_try_compile "$LINENO"
5701 then :
5702 xorg_cv_cc_flag_unused_command_line_argument=yes
5703 else $as_nop
5704 xorg_cv_cc_flag_unused_command_line_argument=no
5705 fi
5706 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5707 fi
5708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5709 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5710 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5711 CFLAGS="$xorg_testset_save_CFLAGS"
5712 fi
5713
5714 found="no"
5715
5716 if test $found = "no" ; then
5717 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5718 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5719 fi
5720
5721 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5722 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5723 fi
5724
5725 CFLAGS="$CFLAGS -Wmissing-prototypes"
5726
5727 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5728 printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; }
5729 cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5730 if eval test \${$cacheid+y}
5731 then :
5732 printf %s "(cached) " >&6
5733 else $as_nop
5734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5735 /* end confdefs.h. */
5736 int i;
5737 int
5738 main (void)
5739 {
5740
5741 ;
5742 return 0;
5743 }
5744 _ACEOF
5745 if ac_fn_c_try_link "$LINENO"
5746 then :
5747 eval $cacheid=yes
5748 else $as_nop
5749 eval $cacheid=no
5750 fi
5751 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5752 conftest$ac_exeext conftest.$ac_ext
5753 fi
5754
5755
5756 CFLAGS="$xorg_testset_save_CFLAGS"
5757
5758 eval supported=\$$cacheid
5759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5760 printf "%s\n" "$supported" >&6; }
5761 if test "$supported" = "yes" ; then
5762 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5763 found="yes"
5764 fi
5765 fi
5766
5767
5768
5769
5770
5771
5772
5773
5774
5775
5776
5777
5778
5779
5780
5781 xorg_testset_save_CFLAGS="$CFLAGS"
5782
5783 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5784 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5786 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5787 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5788 then :
5789 printf %s "(cached) " >&6
5790 else $as_nop
5791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5792 /* end confdefs.h. */
5793 int i;
5794 _ACEOF
5795 if ac_fn_c_try_compile "$LINENO"
5796 then :
5797 xorg_cv_cc_flag_unknown_warning_option=yes
5798 else $as_nop
5799 xorg_cv_cc_flag_unknown_warning_option=no
5800 fi
5801 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5802 fi
5803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5804 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5805 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5806 CFLAGS="$xorg_testset_save_CFLAGS"
5807 fi
5808
5809 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5810 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5811 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5812 fi
5813 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5815 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5816 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5817 then :
5818 printf %s "(cached) " >&6
5819 else $as_nop
5820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5821 /* end confdefs.h. */
5822 int i;
5823 _ACEOF
5824 if ac_fn_c_try_compile "$LINENO"
5825 then :
5826 xorg_cv_cc_flag_unused_command_line_argument=yes
5827 else $as_nop
5828 xorg_cv_cc_flag_unused_command_line_argument=no
5829 fi
5830 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5831 fi
5832 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5833 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5834 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5835 CFLAGS="$xorg_testset_save_CFLAGS"
5836 fi
5837
5838 found="no"
5839
5840 if test $found = "no" ; then
5841 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5842 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5843 fi
5844
5845 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5846 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5847 fi
5848
5849 CFLAGS="$CFLAGS -Wnested-externs"
5850
5851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5852 printf %s "checking if $CC supports -Wnested-externs... " >&6; }
5853 cacheid=xorg_cv_cc_flag__Wnested_externs
5854 if eval test \${$cacheid+y}
5855 then :
5856 printf %s "(cached) " >&6
5857 else $as_nop
5858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5859 /* end confdefs.h. */
5860 int i;
5861 int
5862 main (void)
5863 {
5864
5865 ;
5866 return 0;
5867 }
5868 _ACEOF
5869 if ac_fn_c_try_link "$LINENO"
5870 then :
5871 eval $cacheid=yes
5872 else $as_nop
5873 eval $cacheid=no
5874 fi
5875 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5876 conftest$ac_exeext conftest.$ac_ext
5877 fi
5878
5879
5880 CFLAGS="$xorg_testset_save_CFLAGS"
5881
5882 eval supported=\$$cacheid
5883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5884 printf "%s\n" "$supported" >&6; }
5885 if test "$supported" = "yes" ; then
5886 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5887 found="yes"
5888 fi
5889 fi
5890
5891
5892
5893
5894
5895
5896
5897
5898
5899
5900
5901
5902
5903
5904
5905 xorg_testset_save_CFLAGS="$CFLAGS"
5906
5907 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5908 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5910 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5911 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5912 then :
5913 printf %s "(cached) " >&6
5914 else $as_nop
5915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5916 /* end confdefs.h. */
5917 int i;
5918 _ACEOF
5919 if ac_fn_c_try_compile "$LINENO"
5920 then :
5921 xorg_cv_cc_flag_unknown_warning_option=yes
5922 else $as_nop
5923 xorg_cv_cc_flag_unknown_warning_option=no
5924 fi
5925 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5926 fi
5927 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5928 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5929 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5930 CFLAGS="$xorg_testset_save_CFLAGS"
5931 fi
5932
5933 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5934 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5935 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5936 fi
5937 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5939 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5940 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5941 then :
5942 printf %s "(cached) " >&6
5943 else $as_nop
5944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5945 /* end confdefs.h. */
5946 int i;
5947 _ACEOF
5948 if ac_fn_c_try_compile "$LINENO"
5949 then :
5950 xorg_cv_cc_flag_unused_command_line_argument=yes
5951 else $as_nop
5952 xorg_cv_cc_flag_unused_command_line_argument=no
5953 fi
5954 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5955 fi
5956 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5957 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5958 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5959 CFLAGS="$xorg_testset_save_CFLAGS"
5960 fi
5961
5962 found="no"
5963
5964 if test $found = "no" ; then
5965 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5966 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5967 fi
5968
5969 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5970 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5971 fi
5972
5973 CFLAGS="$CFLAGS -Wbad-function-cast"
5974
5975 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
5976 printf %s "checking if $CC supports -Wbad-function-cast... " >&6; }
5977 cacheid=xorg_cv_cc_flag__Wbad_function_cast
5978 if eval test \${$cacheid+y}
5979 then :
5980 printf %s "(cached) " >&6
5981 else $as_nop
5982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5983 /* end confdefs.h. */
5984 int i;
5985 int
5986 main (void)
5987 {
5988
5989 ;
5990 return 0;
5991 }
5992 _ACEOF
5993 if ac_fn_c_try_link "$LINENO"
5994 then :
5995 eval $cacheid=yes
5996 else $as_nop
5997 eval $cacheid=no
5998 fi
5999 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6000 conftest$ac_exeext conftest.$ac_ext
6001 fi
6002
6003
6004 CFLAGS="$xorg_testset_save_CFLAGS"
6005
6006 eval supported=\$$cacheid
6007 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6008 printf "%s\n" "$supported" >&6; }
6009 if test "$supported" = "yes" ; then
6010 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
6011 found="yes"
6012 fi
6013 fi
6014
6015
6016
6017
6018
6019
6020
6021
6022
6023
6024
6025
6026
6027
6028
6029 xorg_testset_save_CFLAGS="$CFLAGS"
6030
6031 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6032 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6034 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6035 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6036 then :
6037 printf %s "(cached) " >&6
6038 else $as_nop
6039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6040 /* end confdefs.h. */
6041 int i;
6042 _ACEOF
6043 if ac_fn_c_try_compile "$LINENO"
6044 then :
6045 xorg_cv_cc_flag_unknown_warning_option=yes
6046 else $as_nop
6047 xorg_cv_cc_flag_unknown_warning_option=no
6048 fi
6049 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6050 fi
6051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6052 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6053 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6054 CFLAGS="$xorg_testset_save_CFLAGS"
6055 fi
6056
6057 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6058 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6059 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6060 fi
6061 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6063 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6064 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6065 then :
6066 printf %s "(cached) " >&6
6067 else $as_nop
6068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6069 /* end confdefs.h. */
6070 int i;
6071 _ACEOF
6072 if ac_fn_c_try_compile "$LINENO"
6073 then :
6074 xorg_cv_cc_flag_unused_command_line_argument=yes
6075 else $as_nop
6076 xorg_cv_cc_flag_unused_command_line_argument=no
6077 fi
6078 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6079 fi
6080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6081 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6082 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6083 CFLAGS="$xorg_testset_save_CFLAGS"
6084 fi
6085
6086 found="no"
6087
6088 if test $found = "no" ; then
6089 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6090 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6091 fi
6092
6093 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6094 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6095 fi
6096
6097 CFLAGS="$CFLAGS -Wold-style-definition"
6098
6099 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
6100 printf %s "checking if $CC supports -Wold-style-definition... " >&6; }
6101 cacheid=xorg_cv_cc_flag__Wold_style_definition
6102 if eval test \${$cacheid+y}
6103 then :
6104 printf %s "(cached) " >&6
6105 else $as_nop
6106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6107 /* end confdefs.h. */
6108 int i;
6109 int
6110 main (void)
6111 {
6112
6113 ;
6114 return 0;
6115 }
6116 _ACEOF
6117 if ac_fn_c_try_link "$LINENO"
6118 then :
6119 eval $cacheid=yes
6120 else $as_nop
6121 eval $cacheid=no
6122 fi
6123 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6124 conftest$ac_exeext conftest.$ac_ext
6125 fi
6126
6127
6128 CFLAGS="$xorg_testset_save_CFLAGS"
6129
6130 eval supported=\$$cacheid
6131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6132 printf "%s\n" "$supported" >&6; }
6133 if test "$supported" = "yes" ; then
6134 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
6135 found="yes"
6136 fi
6137 fi
6138
6139 if test $found = "no" ; then
6140 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6141 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6142 fi
6143
6144 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6145 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6146 fi
6147
6148 CFLAGS="$CFLAGS -fd"
6149
6150 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
6151 printf %s "checking if $CC supports -fd... " >&6; }
6152 cacheid=xorg_cv_cc_flag__fd
6153 if eval test \${$cacheid+y}
6154 then :
6155 printf %s "(cached) " >&6
6156 else $as_nop
6157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6158 /* end confdefs.h. */
6159 int i;
6160 int
6161 main (void)
6162 {
6163
6164 ;
6165 return 0;
6166 }
6167 _ACEOF
6168 if ac_fn_c_try_link "$LINENO"
6169 then :
6170 eval $cacheid=yes
6171 else $as_nop
6172 eval $cacheid=no
6173 fi
6174 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6175 conftest$ac_exeext conftest.$ac_ext
6176 fi
6177
6178
6179 CFLAGS="$xorg_testset_save_CFLAGS"
6180
6181 eval supported=\$$cacheid
6182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6183 printf "%s\n" "$supported" >&6; }
6184 if test "$supported" = "yes" ; then
6185 BASE_CFLAGS="$BASE_CFLAGS -fd"
6186 found="yes"
6187 fi
6188 fi
6189
6190
6191
6192
6193
6194
6195
6196
6197
6198
6199
6200
6201
6202
6203
6204 xorg_testset_save_CFLAGS="$CFLAGS"
6205
6206 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6207 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6209 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6210 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6211 then :
6212 printf %s "(cached) " >&6
6213 else $as_nop
6214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6215 /* end confdefs.h. */
6216 int i;
6217 _ACEOF
6218 if ac_fn_c_try_compile "$LINENO"
6219 then :
6220 xorg_cv_cc_flag_unknown_warning_option=yes
6221 else $as_nop
6222 xorg_cv_cc_flag_unknown_warning_option=no
6223 fi
6224 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6225 fi
6226 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6227 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6228 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6229 CFLAGS="$xorg_testset_save_CFLAGS"
6230 fi
6231
6232 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6233 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6234 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6235 fi
6236 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6238 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6239 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6240 then :
6241 printf %s "(cached) " >&6
6242 else $as_nop
6243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6244 /* end confdefs.h. */
6245 int i;
6246 _ACEOF
6247 if ac_fn_c_try_compile "$LINENO"
6248 then :
6249 xorg_cv_cc_flag_unused_command_line_argument=yes
6250 else $as_nop
6251 xorg_cv_cc_flag_unused_command_line_argument=no
6252 fi
6253 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6254 fi
6255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6256 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6257 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6258 CFLAGS="$xorg_testset_save_CFLAGS"
6259 fi
6260
6261 found="no"
6262
6263 if test $found = "no" ; then
6264 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6265 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6266 fi
6267
6268 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6269 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6270 fi
6271
6272 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
6273
6274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
6275 printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
6276 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
6277 if eval test \${$cacheid+y}
6278 then :
6279 printf %s "(cached) " >&6
6280 else $as_nop
6281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6282 /* end confdefs.h. */
6283 int i;
6284 int
6285 main (void)
6286 {
6287
6288 ;
6289 return 0;
6290 }
6291 _ACEOF
6292 if ac_fn_c_try_link "$LINENO"
6293 then :
6294 eval $cacheid=yes
6295 else $as_nop
6296 eval $cacheid=no
6297 fi
6298 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6299 conftest$ac_exeext conftest.$ac_ext
6300 fi
6301
6302
6303 CFLAGS="$xorg_testset_save_CFLAGS"
6304
6305 eval supported=\$$cacheid
6306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6307 printf "%s\n" "$supported" >&6; }
6308 if test "$supported" = "yes" ; then
6309 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
6310 found="yes"
6311 fi
6312 fi
6313
6314
6315
6316
6317
6318 # This chunk adds additional warnings that could catch undesired effects.
6319
6320
6321
6322
6323
6324
6325
6326
6327
6328
6329
6330
6331
6332 xorg_testset_save_CFLAGS="$CFLAGS"
6333
6334 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6335 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6337 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6338 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6339 then :
6340 printf %s "(cached) " >&6
6341 else $as_nop
6342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6343 /* end confdefs.h. */
6344 int i;
6345 _ACEOF
6346 if ac_fn_c_try_compile "$LINENO"
6347 then :
6348 xorg_cv_cc_flag_unknown_warning_option=yes
6349 else $as_nop
6350 xorg_cv_cc_flag_unknown_warning_option=no
6351 fi
6352 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6353 fi
6354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6355 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6356 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6357 CFLAGS="$xorg_testset_save_CFLAGS"
6358 fi
6359
6360 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6361 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6362 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6363 fi
6364 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6366 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6367 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6368 then :
6369 printf %s "(cached) " >&6
6370 else $as_nop
6371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6372 /* end confdefs.h. */
6373 int i;
6374 _ACEOF
6375 if ac_fn_c_try_compile "$LINENO"
6376 then :
6377 xorg_cv_cc_flag_unused_command_line_argument=yes
6378 else $as_nop
6379 xorg_cv_cc_flag_unused_command_line_argument=no
6380 fi
6381 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6382 fi
6383 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6384 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6385 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6386 CFLAGS="$xorg_testset_save_CFLAGS"
6387 fi
6388
6389 found="no"
6390
6391 if test $found = "no" ; then
6392 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6393 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6394 fi
6395
6396 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6397 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6398 fi
6399
6400 CFLAGS="$CFLAGS -Wunused"
6401
6402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
6403 printf %s "checking if $CC supports -Wunused... " >&6; }
6404 cacheid=xorg_cv_cc_flag__Wunused
6405 if eval test \${$cacheid+y}
6406 then :
6407 printf %s "(cached) " >&6
6408 else $as_nop
6409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6410 /* end confdefs.h. */
6411 int i;
6412 int
6413 main (void)
6414 {
6415
6416 ;
6417 return 0;
6418 }
6419 _ACEOF
6420 if ac_fn_c_try_link "$LINENO"
6421 then :
6422 eval $cacheid=yes
6423 else $as_nop
6424 eval $cacheid=no
6425 fi
6426 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6427 conftest$ac_exeext conftest.$ac_ext
6428 fi
6429
6430
6431 CFLAGS="$xorg_testset_save_CFLAGS"
6432
6433 eval supported=\$$cacheid
6434 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6435 printf "%s\n" "$supported" >&6; }
6436 if test "$supported" = "yes" ; then
6437 BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6438 found="yes"
6439 fi
6440 fi
6441
6442
6443
6444
6445
6446
6447
6448
6449
6450
6451
6452
6453
6454
6455
6456 xorg_testset_save_CFLAGS="$CFLAGS"
6457
6458 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6459 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6461 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6462 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6463 then :
6464 printf %s "(cached) " >&6
6465 else $as_nop
6466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6467 /* end confdefs.h. */
6468 int i;
6469 _ACEOF
6470 if ac_fn_c_try_compile "$LINENO"
6471 then :
6472 xorg_cv_cc_flag_unknown_warning_option=yes
6473 else $as_nop
6474 xorg_cv_cc_flag_unknown_warning_option=no
6475 fi
6476 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6477 fi
6478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6479 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6480 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6481 CFLAGS="$xorg_testset_save_CFLAGS"
6482 fi
6483
6484 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6485 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6486 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6487 fi
6488 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6490 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6491 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6492 then :
6493 printf %s "(cached) " >&6
6494 else $as_nop
6495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6496 /* end confdefs.h. */
6497 int i;
6498 _ACEOF
6499 if ac_fn_c_try_compile "$LINENO"
6500 then :
6501 xorg_cv_cc_flag_unused_command_line_argument=yes
6502 else $as_nop
6503 xorg_cv_cc_flag_unused_command_line_argument=no
6504 fi
6505 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6506 fi
6507 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6508 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6509 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6510 CFLAGS="$xorg_testset_save_CFLAGS"
6511 fi
6512
6513 found="no"
6514
6515 if test $found = "no" ; then
6516 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6517 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6518 fi
6519
6520 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6521 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6522 fi
6523
6524 CFLAGS="$CFLAGS -Wuninitialized"
6525
6526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6527 printf %s "checking if $CC supports -Wuninitialized... " >&6; }
6528 cacheid=xorg_cv_cc_flag__Wuninitialized
6529 if eval test \${$cacheid+y}
6530 then :
6531 printf %s "(cached) " >&6
6532 else $as_nop
6533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6534 /* end confdefs.h. */
6535 int i;
6536 int
6537 main (void)
6538 {
6539
6540 ;
6541 return 0;
6542 }
6543 _ACEOF
6544 if ac_fn_c_try_link "$LINENO"
6545 then :
6546 eval $cacheid=yes
6547 else $as_nop
6548 eval $cacheid=no
6549 fi
6550 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6551 conftest$ac_exeext conftest.$ac_ext
6552 fi
6553
6554
6555 CFLAGS="$xorg_testset_save_CFLAGS"
6556
6557 eval supported=\$$cacheid
6558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6559 printf "%s\n" "$supported" >&6; }
6560 if test "$supported" = "yes" ; then
6561 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6562 found="yes"
6563 fi
6564 fi
6565
6566
6567
6568
6569
6570
6571
6572
6573
6574
6575
6576
6577
6578
6579
6580 xorg_testset_save_CFLAGS="$CFLAGS"
6581
6582 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6583 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6585 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6586 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6587 then :
6588 printf %s "(cached) " >&6
6589 else $as_nop
6590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6591 /* end confdefs.h. */
6592 int i;
6593 _ACEOF
6594 if ac_fn_c_try_compile "$LINENO"
6595 then :
6596 xorg_cv_cc_flag_unknown_warning_option=yes
6597 else $as_nop
6598 xorg_cv_cc_flag_unknown_warning_option=no
6599 fi
6600 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6601 fi
6602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6603 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6604 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6605 CFLAGS="$xorg_testset_save_CFLAGS"
6606 fi
6607
6608 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6609 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6610 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6611 fi
6612 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6614 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6615 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6616 then :
6617 printf %s "(cached) " >&6
6618 else $as_nop
6619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6620 /* end confdefs.h. */
6621 int i;
6622 _ACEOF
6623 if ac_fn_c_try_compile "$LINENO"
6624 then :
6625 xorg_cv_cc_flag_unused_command_line_argument=yes
6626 else $as_nop
6627 xorg_cv_cc_flag_unused_command_line_argument=no
6628 fi
6629 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6630 fi
6631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6632 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6633 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6634 CFLAGS="$xorg_testset_save_CFLAGS"
6635 fi
6636
6637 found="no"
6638
6639 if test $found = "no" ; then
6640 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6641 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6642 fi
6643
6644 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6645 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6646 fi
6647
6648 CFLAGS="$CFLAGS -Wshadow"
6649
6650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6651 printf %s "checking if $CC supports -Wshadow... " >&6; }
6652 cacheid=xorg_cv_cc_flag__Wshadow
6653 if eval test \${$cacheid+y}
6654 then :
6655 printf %s "(cached) " >&6
6656 else $as_nop
6657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6658 /* end confdefs.h. */
6659 int i;
6660 int
6661 main (void)
6662 {
6663
6664 ;
6665 return 0;
6666 }
6667 _ACEOF
6668 if ac_fn_c_try_link "$LINENO"
6669 then :
6670 eval $cacheid=yes
6671 else $as_nop
6672 eval $cacheid=no
6673 fi
6674 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6675 conftest$ac_exeext conftest.$ac_ext
6676 fi
6677
6678
6679 CFLAGS="$xorg_testset_save_CFLAGS"
6680
6681 eval supported=\$$cacheid
6682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6683 printf "%s\n" "$supported" >&6; }
6684 if test "$supported" = "yes" ; then
6685 BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6686 found="yes"
6687 fi
6688 fi
6689
6690
6691
6692
6693
6694
6695
6696
6697
6698
6699
6700
6701
6702
6703
6704 xorg_testset_save_CFLAGS="$CFLAGS"
6705
6706 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6707 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6709 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6710 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6711 then :
6712 printf %s "(cached) " >&6
6713 else $as_nop
6714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6715 /* end confdefs.h. */
6716 int i;
6717 _ACEOF
6718 if ac_fn_c_try_compile "$LINENO"
6719 then :
6720 xorg_cv_cc_flag_unknown_warning_option=yes
6721 else $as_nop
6722 xorg_cv_cc_flag_unknown_warning_option=no
6723 fi
6724 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6725 fi
6726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6727 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6728 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6729 CFLAGS="$xorg_testset_save_CFLAGS"
6730 fi
6731
6732 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6733 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6734 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6735 fi
6736 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6738 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6739 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6740 then :
6741 printf %s "(cached) " >&6
6742 else $as_nop
6743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6744 /* end confdefs.h. */
6745 int i;
6746 _ACEOF
6747 if ac_fn_c_try_compile "$LINENO"
6748 then :
6749 xorg_cv_cc_flag_unused_command_line_argument=yes
6750 else $as_nop
6751 xorg_cv_cc_flag_unused_command_line_argument=no
6752 fi
6753 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6754 fi
6755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6756 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6757 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6758 CFLAGS="$xorg_testset_save_CFLAGS"
6759 fi
6760
6761 found="no"
6762
6763 if test $found = "no" ; then
6764 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6765 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6766 fi
6767
6768 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6769 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6770 fi
6771
6772 CFLAGS="$CFLAGS -Wmissing-noreturn"
6773
6774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6775 printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; }
6776 cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6777 if eval test \${$cacheid+y}
6778 then :
6779 printf %s "(cached) " >&6
6780 else $as_nop
6781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6782 /* end confdefs.h. */
6783 int i;
6784 int
6785 main (void)
6786 {
6787
6788 ;
6789 return 0;
6790 }
6791 _ACEOF
6792 if ac_fn_c_try_link "$LINENO"
6793 then :
6794 eval $cacheid=yes
6795 else $as_nop
6796 eval $cacheid=no
6797 fi
6798 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6799 conftest$ac_exeext conftest.$ac_ext
6800 fi
6801
6802
6803 CFLAGS="$xorg_testset_save_CFLAGS"
6804
6805 eval supported=\$$cacheid
6806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6807 printf "%s\n" "$supported" >&6; }
6808 if test "$supported" = "yes" ; then
6809 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6810 found="yes"
6811 fi
6812 fi
6813
6814
6815
6816
6817
6818
6819
6820
6821
6822
6823
6824
6825
6826
6827
6828 xorg_testset_save_CFLAGS="$CFLAGS"
6829
6830 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6831 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6832 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6833 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6834 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6835 then :
6836 printf %s "(cached) " >&6
6837 else $as_nop
6838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6839 /* end confdefs.h. */
6840 int i;
6841 _ACEOF
6842 if ac_fn_c_try_compile "$LINENO"
6843 then :
6844 xorg_cv_cc_flag_unknown_warning_option=yes
6845 else $as_nop
6846 xorg_cv_cc_flag_unknown_warning_option=no
6847 fi
6848 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6849 fi
6850 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6851 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6852 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6853 CFLAGS="$xorg_testset_save_CFLAGS"
6854 fi
6855
6856 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6857 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6858 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6859 fi
6860 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6862 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6863 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6864 then :
6865 printf %s "(cached) " >&6
6866 else $as_nop
6867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6868 /* end confdefs.h. */
6869 int i;
6870 _ACEOF
6871 if ac_fn_c_try_compile "$LINENO"
6872 then :
6873 xorg_cv_cc_flag_unused_command_line_argument=yes
6874 else $as_nop
6875 xorg_cv_cc_flag_unused_command_line_argument=no
6876 fi
6877 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6878 fi
6879 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6880 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6881 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6882 CFLAGS="$xorg_testset_save_CFLAGS"
6883 fi
6884
6885 found="no"
6886
6887 if test $found = "no" ; then
6888 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6889 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6890 fi
6891
6892 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6893 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6894 fi
6895
6896 CFLAGS="$CFLAGS -Wmissing-format-attribute"
6897
6898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6899 printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6900 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6901 if eval test \${$cacheid+y}
6902 then :
6903 printf %s "(cached) " >&6
6904 else $as_nop
6905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6906 /* end confdefs.h. */
6907 int i;
6908 int
6909 main (void)
6910 {
6911
6912 ;
6913 return 0;
6914 }
6915 _ACEOF
6916 if ac_fn_c_try_link "$LINENO"
6917 then :
6918 eval $cacheid=yes
6919 else $as_nop
6920 eval $cacheid=no
6921 fi
6922 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6923 conftest$ac_exeext conftest.$ac_ext
6924 fi
6925
6926
6927 CFLAGS="$xorg_testset_save_CFLAGS"
6928
6929 eval supported=\$$cacheid
6930 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6931 printf "%s\n" "$supported" >&6; }
6932 if test "$supported" = "yes" ; then
6933 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6934 found="yes"
6935 fi
6936 fi
6937
6938
6939
6940
6941
6942
6943
6944
6945
6946
6947
6948
6949
6950
6951
6952 xorg_testset_save_CFLAGS="$CFLAGS"
6953
6954 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6955 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6956 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6957 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6958 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6959 then :
6960 printf %s "(cached) " >&6
6961 else $as_nop
6962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6963 /* end confdefs.h. */
6964 int i;
6965 _ACEOF
6966 if ac_fn_c_try_compile "$LINENO"
6967 then :
6968 xorg_cv_cc_flag_unknown_warning_option=yes
6969 else $as_nop
6970 xorg_cv_cc_flag_unknown_warning_option=no
6971 fi
6972 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6973 fi
6974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6975 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6976 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6977 CFLAGS="$xorg_testset_save_CFLAGS"
6978 fi
6979
6980 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6981 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6982 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6983 fi
6984 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6986 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6987 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6988 then :
6989 printf %s "(cached) " >&6
6990 else $as_nop
6991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6992 /* end confdefs.h. */
6993 int i;
6994 _ACEOF
6995 if ac_fn_c_try_compile "$LINENO"
6996 then :
6997 xorg_cv_cc_flag_unused_command_line_argument=yes
6998 else $as_nop
6999 xorg_cv_cc_flag_unused_command_line_argument=no
7000 fi
7001 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7002 fi
7003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7004 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7005 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7006 CFLAGS="$xorg_testset_save_CFLAGS"
7007 fi
7008
7009 found="no"
7010
7011 if test $found = "no" ; then
7012 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7013 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7014 fi
7015
7016 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7017 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7018 fi
7019
7020 CFLAGS="$CFLAGS -Wredundant-decls"
7021
7022 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
7023 printf %s "checking if $CC supports -Wredundant-decls... " >&6; }
7024 cacheid=xorg_cv_cc_flag__Wredundant_decls
7025 if eval test \${$cacheid+y}
7026 then :
7027 printf %s "(cached) " >&6
7028 else $as_nop
7029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7030 /* end confdefs.h. */
7031 int i;
7032 int
7033 main (void)
7034 {
7035
7036 ;
7037 return 0;
7038 }
7039 _ACEOF
7040 if ac_fn_c_try_link "$LINENO"
7041 then :
7042 eval $cacheid=yes
7043 else $as_nop
7044 eval $cacheid=no
7045 fi
7046 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7047 conftest$ac_exeext conftest.$ac_ext
7048 fi
7049
7050
7051 CFLAGS="$xorg_testset_save_CFLAGS"
7052
7053 eval supported=\$$cacheid
7054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7055 printf "%s\n" "$supported" >&6; }
7056 if test "$supported" = "yes" ; then
7057 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
7058 found="yes"
7059 fi
7060 fi
7061
7062
7063
7064
7065
7066
7067
7068
7069
7070
7071
7072
7073
7074
7075
7076 xorg_testset_save_CFLAGS="$CFLAGS"
7077
7078 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7079 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7081 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7082 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7083 then :
7084 printf %s "(cached) " >&6
7085 else $as_nop
7086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7087 /* end confdefs.h. */
7088 int i;
7089 _ACEOF
7090 if ac_fn_c_try_compile "$LINENO"
7091 then :
7092 xorg_cv_cc_flag_unknown_warning_option=yes
7093 else $as_nop
7094 xorg_cv_cc_flag_unknown_warning_option=no
7095 fi
7096 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7097 fi
7098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7099 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7100 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7101 CFLAGS="$xorg_testset_save_CFLAGS"
7102 fi
7103
7104 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7105 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7106 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7107 fi
7108 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7110 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7111 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7112 then :
7113 printf %s "(cached) " >&6
7114 else $as_nop
7115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7116 /* end confdefs.h. */
7117 int i;
7118 _ACEOF
7119 if ac_fn_c_try_compile "$LINENO"
7120 then :
7121 xorg_cv_cc_flag_unused_command_line_argument=yes
7122 else $as_nop
7123 xorg_cv_cc_flag_unused_command_line_argument=no
7124 fi
7125 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7126 fi
7127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7128 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7129 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7130 CFLAGS="$xorg_testset_save_CFLAGS"
7131 fi
7132
7133 found="no"
7134
7135 if test $found = "no" ; then
7136 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7137 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7138 fi
7139
7140 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7141 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7142 fi
7143
7144 CFLAGS="$CFLAGS -Wlogical-op"
7145
7146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
7147 printf %s "checking if $CC supports -Wlogical-op... " >&6; }
7148 cacheid=xorg_cv_cc_flag__Wlogical_op
7149 if eval test \${$cacheid+y}
7150 then :
7151 printf %s "(cached) " >&6
7152 else $as_nop
7153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7154 /* end confdefs.h. */
7155 int i;
7156 int
7157 main (void)
7158 {
7159
7160 ;
7161 return 0;
7162 }
7163 _ACEOF
7164 if ac_fn_c_try_link "$LINENO"
7165 then :
7166 eval $cacheid=yes
7167 else $as_nop
7168 eval $cacheid=no
7169 fi
7170 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7171 conftest$ac_exeext conftest.$ac_ext
7172 fi
7173
7174
7175 CFLAGS="$xorg_testset_save_CFLAGS"
7176
7177 eval supported=\$$cacheid
7178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7179 printf "%s\n" "$supported" >&6; }
7180 if test "$supported" = "yes" ; then
7181 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
7182 found="yes"
7183 fi
7184 fi
7185
7186
7187
7188 # These are currently disabled because they are noisy. They will be enabled
7189 # in the future once the codebase is sufficiently modernized to silence
7190 # them. For now, I don't want them to drown out the other warnings.
7191 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
7192 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
7193 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
7194
7195 # Turn some warnings into errors, so we don't accidentally get successful builds
7196 # when there are problems that should be fixed.
7197
7198 if test "x$SELECTIVE_WERROR" = "xyes" ; then
7199
7200
7201
7202
7203
7204
7205
7206
7207
7208
7209
7210
7211
7212 xorg_testset_save_CFLAGS="$CFLAGS"
7213
7214 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7215 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7217 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7218 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7219 then :
7220 printf %s "(cached) " >&6
7221 else $as_nop
7222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7223 /* end confdefs.h. */
7224 int i;
7225 _ACEOF
7226 if ac_fn_c_try_compile "$LINENO"
7227 then :
7228 xorg_cv_cc_flag_unknown_warning_option=yes
7229 else $as_nop
7230 xorg_cv_cc_flag_unknown_warning_option=no
7231 fi
7232 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7233 fi
7234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7235 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7236 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7237 CFLAGS="$xorg_testset_save_CFLAGS"
7238 fi
7239
7240 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7241 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7242 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7243 fi
7244 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7245 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7246 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7247 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7248 then :
7249 printf %s "(cached) " >&6
7250 else $as_nop
7251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7252 /* end confdefs.h. */
7253 int i;
7254 _ACEOF
7255 if ac_fn_c_try_compile "$LINENO"
7256 then :
7257 xorg_cv_cc_flag_unused_command_line_argument=yes
7258 else $as_nop
7259 xorg_cv_cc_flag_unused_command_line_argument=no
7260 fi
7261 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7262 fi
7263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7264 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7265 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7266 CFLAGS="$xorg_testset_save_CFLAGS"
7267 fi
7268
7269 found="no"
7270
7271 if test $found = "no" ; then
7272 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7273 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7274 fi
7275
7276 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7277 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7278 fi
7279
7280 CFLAGS="$CFLAGS -Werror=implicit"
7281
7282 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
7283 printf %s "checking if $CC supports -Werror=implicit... " >&6; }
7284 cacheid=xorg_cv_cc_flag__Werror_implicit
7285 if eval test \${$cacheid+y}
7286 then :
7287 printf %s "(cached) " >&6
7288 else $as_nop
7289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7290 /* end confdefs.h. */
7291 int i;
7292 int
7293 main (void)
7294 {
7295
7296 ;
7297 return 0;
7298 }
7299 _ACEOF
7300 if ac_fn_c_try_link "$LINENO"
7301 then :
7302 eval $cacheid=yes
7303 else $as_nop
7304 eval $cacheid=no
7305 fi
7306 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7307 conftest$ac_exeext conftest.$ac_ext
7308 fi
7309
7310
7311 CFLAGS="$xorg_testset_save_CFLAGS"
7312
7313 eval supported=\$$cacheid
7314 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7315 printf "%s\n" "$supported" >&6; }
7316 if test "$supported" = "yes" ; then
7317 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
7318 found="yes"
7319 fi
7320 fi
7321
7322 if test $found = "no" ; then
7323 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7324 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7325 fi
7326
7327 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7328 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7329 fi
7330
7331 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7332
7333 { 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
7334 printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
7335 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
7336 if eval test \${$cacheid+y}
7337 then :
7338 printf %s "(cached) " >&6
7339 else $as_nop
7340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7341 /* end confdefs.h. */
7342 int i;
7343 int
7344 main (void)
7345 {
7346
7347 ;
7348 return 0;
7349 }
7350 _ACEOF
7351 if ac_fn_c_try_link "$LINENO"
7352 then :
7353 eval $cacheid=yes
7354 else $as_nop
7355 eval $cacheid=no
7356 fi
7357 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7358 conftest$ac_exeext conftest.$ac_ext
7359 fi
7360
7361
7362 CFLAGS="$xorg_testset_save_CFLAGS"
7363
7364 eval supported=\$$cacheid
7365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7366 printf "%s\n" "$supported" >&6; }
7367 if test "$supported" = "yes" ; then
7368 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7369 found="yes"
7370 fi
7371 fi
7372
7373
7374
7375
7376
7377
7378
7379
7380
7381
7382
7383
7384
7385
7386
7387 xorg_testset_save_CFLAGS="$CFLAGS"
7388
7389 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7390 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7391 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7392 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7393 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7394 then :
7395 printf %s "(cached) " >&6
7396 else $as_nop
7397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7398 /* end confdefs.h. */
7399 int i;
7400 _ACEOF
7401 if ac_fn_c_try_compile "$LINENO"
7402 then :
7403 xorg_cv_cc_flag_unknown_warning_option=yes
7404 else $as_nop
7405 xorg_cv_cc_flag_unknown_warning_option=no
7406 fi
7407 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7408 fi
7409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7410 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7411 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7412 CFLAGS="$xorg_testset_save_CFLAGS"
7413 fi
7414
7415 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7416 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7417 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7418 fi
7419 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7421 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7422 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7423 then :
7424 printf %s "(cached) " >&6
7425 else $as_nop
7426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7427 /* end confdefs.h. */
7428 int i;
7429 _ACEOF
7430 if ac_fn_c_try_compile "$LINENO"
7431 then :
7432 xorg_cv_cc_flag_unused_command_line_argument=yes
7433 else $as_nop
7434 xorg_cv_cc_flag_unused_command_line_argument=no
7435 fi
7436 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7437 fi
7438 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7439 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7440 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7441 CFLAGS="$xorg_testset_save_CFLAGS"
7442 fi
7443
7444 found="no"
7445
7446 if test $found = "no" ; then
7447 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7448 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7449 fi
7450
7451 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7452 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7453 fi
7454
7455 CFLAGS="$CFLAGS -Werror=nonnull"
7456
7457 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
7458 printf %s "checking if $CC supports -Werror=nonnull... " >&6; }
7459 cacheid=xorg_cv_cc_flag__Werror_nonnull
7460 if eval test \${$cacheid+y}
7461 then :
7462 printf %s "(cached) " >&6
7463 else $as_nop
7464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7465 /* end confdefs.h. */
7466 int i;
7467 int
7468 main (void)
7469 {
7470
7471 ;
7472 return 0;
7473 }
7474 _ACEOF
7475 if ac_fn_c_try_link "$LINENO"
7476 then :
7477 eval $cacheid=yes
7478 else $as_nop
7479 eval $cacheid=no
7480 fi
7481 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7482 conftest$ac_exeext conftest.$ac_ext
7483 fi
7484
7485
7486 CFLAGS="$xorg_testset_save_CFLAGS"
7487
7488 eval supported=\$$cacheid
7489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7490 printf "%s\n" "$supported" >&6; }
7491 if test "$supported" = "yes" ; then
7492 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7493 found="yes"
7494 fi
7495 fi
7496
7497
7498
7499
7500
7501
7502
7503
7504
7505
7506
7507
7508
7509
7510
7511 xorg_testset_save_CFLAGS="$CFLAGS"
7512
7513 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7514 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7516 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7517 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7518 then :
7519 printf %s "(cached) " >&6
7520 else $as_nop
7521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7522 /* end confdefs.h. */
7523 int i;
7524 _ACEOF
7525 if ac_fn_c_try_compile "$LINENO"
7526 then :
7527 xorg_cv_cc_flag_unknown_warning_option=yes
7528 else $as_nop
7529 xorg_cv_cc_flag_unknown_warning_option=no
7530 fi
7531 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7532 fi
7533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7534 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7535 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7536 CFLAGS="$xorg_testset_save_CFLAGS"
7537 fi
7538
7539 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7540 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7541 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7542 fi
7543 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7544 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7545 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7546 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7547 then :
7548 printf %s "(cached) " >&6
7549 else $as_nop
7550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7551 /* end confdefs.h. */
7552 int i;
7553 _ACEOF
7554 if ac_fn_c_try_compile "$LINENO"
7555 then :
7556 xorg_cv_cc_flag_unused_command_line_argument=yes
7557 else $as_nop
7558 xorg_cv_cc_flag_unused_command_line_argument=no
7559 fi
7560 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7561 fi
7562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7563 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7564 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7565 CFLAGS="$xorg_testset_save_CFLAGS"
7566 fi
7567
7568 found="no"
7569
7570 if test $found = "no" ; then
7571 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7572 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7573 fi
7574
7575 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7576 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7577 fi
7578
7579 CFLAGS="$CFLAGS -Werror=init-self"
7580
7581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7582 printf %s "checking if $CC supports -Werror=init-self... " >&6; }
7583 cacheid=xorg_cv_cc_flag__Werror_init_self
7584 if eval test \${$cacheid+y}
7585 then :
7586 printf %s "(cached) " >&6
7587 else $as_nop
7588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7589 /* end confdefs.h. */
7590 int i;
7591 int
7592 main (void)
7593 {
7594
7595 ;
7596 return 0;
7597 }
7598 _ACEOF
7599 if ac_fn_c_try_link "$LINENO"
7600 then :
7601 eval $cacheid=yes
7602 else $as_nop
7603 eval $cacheid=no
7604 fi
7605 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7606 conftest$ac_exeext conftest.$ac_ext
7607 fi
7608
7609
7610 CFLAGS="$xorg_testset_save_CFLAGS"
7611
7612 eval supported=\$$cacheid
7613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7614 printf "%s\n" "$supported" >&6; }
7615 if test "$supported" = "yes" ; then
7616 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7617 found="yes"
7618 fi
7619 fi
7620
7621
7622
7623
7624
7625
7626
7627
7628
7629
7630
7631
7632
7633
7634
7635 xorg_testset_save_CFLAGS="$CFLAGS"
7636
7637 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7638 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7640 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7641 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7642 then :
7643 printf %s "(cached) " >&6
7644 else $as_nop
7645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7646 /* end confdefs.h. */
7647 int i;
7648 _ACEOF
7649 if ac_fn_c_try_compile "$LINENO"
7650 then :
7651 xorg_cv_cc_flag_unknown_warning_option=yes
7652 else $as_nop
7653 xorg_cv_cc_flag_unknown_warning_option=no
7654 fi
7655 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7656 fi
7657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7658 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7659 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7660 CFLAGS="$xorg_testset_save_CFLAGS"
7661 fi
7662
7663 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7664 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7665 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7666 fi
7667 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7669 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7670 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7671 then :
7672 printf %s "(cached) " >&6
7673 else $as_nop
7674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7675 /* end confdefs.h. */
7676 int i;
7677 _ACEOF
7678 if ac_fn_c_try_compile "$LINENO"
7679 then :
7680 xorg_cv_cc_flag_unused_command_line_argument=yes
7681 else $as_nop
7682 xorg_cv_cc_flag_unused_command_line_argument=no
7683 fi
7684 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7685 fi
7686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7687 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7688 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7689 CFLAGS="$xorg_testset_save_CFLAGS"
7690 fi
7691
7692 found="no"
7693
7694 if test $found = "no" ; then
7695 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7696 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7697 fi
7698
7699 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7700 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7701 fi
7702
7703 CFLAGS="$CFLAGS -Werror=main"
7704
7705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7706 printf %s "checking if $CC supports -Werror=main... " >&6; }
7707 cacheid=xorg_cv_cc_flag__Werror_main
7708 if eval test \${$cacheid+y}
7709 then :
7710 printf %s "(cached) " >&6
7711 else $as_nop
7712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7713 /* end confdefs.h. */
7714 int i;
7715 int
7716 main (void)
7717 {
7718
7719 ;
7720 return 0;
7721 }
7722 _ACEOF
7723 if ac_fn_c_try_link "$LINENO"
7724 then :
7725 eval $cacheid=yes
7726 else $as_nop
7727 eval $cacheid=no
7728 fi
7729 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7730 conftest$ac_exeext conftest.$ac_ext
7731 fi
7732
7733
7734 CFLAGS="$xorg_testset_save_CFLAGS"
7735
7736 eval supported=\$$cacheid
7737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7738 printf "%s\n" "$supported" >&6; }
7739 if test "$supported" = "yes" ; then
7740 BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7741 found="yes"
7742 fi
7743 fi
7744
7745
7746
7747
7748
7749
7750
7751
7752
7753
7754
7755
7756
7757
7758
7759 xorg_testset_save_CFLAGS="$CFLAGS"
7760
7761 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7762 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7764 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7765 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7766 then :
7767 printf %s "(cached) " >&6
7768 else $as_nop
7769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7770 /* end confdefs.h. */
7771 int i;
7772 _ACEOF
7773 if ac_fn_c_try_compile "$LINENO"
7774 then :
7775 xorg_cv_cc_flag_unknown_warning_option=yes
7776 else $as_nop
7777 xorg_cv_cc_flag_unknown_warning_option=no
7778 fi
7779 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7780 fi
7781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7782 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7783 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7784 CFLAGS="$xorg_testset_save_CFLAGS"
7785 fi
7786
7787 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7788 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7789 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7790 fi
7791 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7793 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7794 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7795 then :
7796 printf %s "(cached) " >&6
7797 else $as_nop
7798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7799 /* end confdefs.h. */
7800 int i;
7801 _ACEOF
7802 if ac_fn_c_try_compile "$LINENO"
7803 then :
7804 xorg_cv_cc_flag_unused_command_line_argument=yes
7805 else $as_nop
7806 xorg_cv_cc_flag_unused_command_line_argument=no
7807 fi
7808 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7809 fi
7810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7811 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7812 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7813 CFLAGS="$xorg_testset_save_CFLAGS"
7814 fi
7815
7816 found="no"
7817
7818 if test $found = "no" ; then
7819 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7820 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7821 fi
7822
7823 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7824 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7825 fi
7826
7827 CFLAGS="$CFLAGS -Werror=missing-braces"
7828
7829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
7830 printf %s "checking if $CC supports -Werror=missing-braces... " >&6; }
7831 cacheid=xorg_cv_cc_flag__Werror_missing_braces
7832 if eval test \${$cacheid+y}
7833 then :
7834 printf %s "(cached) " >&6
7835 else $as_nop
7836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7837 /* end confdefs.h. */
7838 int i;
7839 int
7840 main (void)
7841 {
7842
7843 ;
7844 return 0;
7845 }
7846 _ACEOF
7847 if ac_fn_c_try_link "$LINENO"
7848 then :
7849 eval $cacheid=yes
7850 else $as_nop
7851 eval $cacheid=no
7852 fi
7853 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7854 conftest$ac_exeext conftest.$ac_ext
7855 fi
7856
7857
7858 CFLAGS="$xorg_testset_save_CFLAGS"
7859
7860 eval supported=\$$cacheid
7861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7862 printf "%s\n" "$supported" >&6; }
7863 if test "$supported" = "yes" ; then
7864 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7865 found="yes"
7866 fi
7867 fi
7868
7869
7870
7871
7872
7873
7874
7875
7876
7877
7878
7879
7880
7881
7882
7883 xorg_testset_save_CFLAGS="$CFLAGS"
7884
7885 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7886 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7888 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7889 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7890 then :
7891 printf %s "(cached) " >&6
7892 else $as_nop
7893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7894 /* end confdefs.h. */
7895 int i;
7896 _ACEOF
7897 if ac_fn_c_try_compile "$LINENO"
7898 then :
7899 xorg_cv_cc_flag_unknown_warning_option=yes
7900 else $as_nop
7901 xorg_cv_cc_flag_unknown_warning_option=no
7902 fi
7903 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7904 fi
7905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7906 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7907 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7908 CFLAGS="$xorg_testset_save_CFLAGS"
7909 fi
7910
7911 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7912 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7913 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7914 fi
7915 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7917 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7918 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7919 then :
7920 printf %s "(cached) " >&6
7921 else $as_nop
7922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7923 /* end confdefs.h. */
7924 int i;
7925 _ACEOF
7926 if ac_fn_c_try_compile "$LINENO"
7927 then :
7928 xorg_cv_cc_flag_unused_command_line_argument=yes
7929 else $as_nop
7930 xorg_cv_cc_flag_unused_command_line_argument=no
7931 fi
7932 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7933 fi
7934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7935 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7936 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7937 CFLAGS="$xorg_testset_save_CFLAGS"
7938 fi
7939
7940 found="no"
7941
7942 if test $found = "no" ; then
7943 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7944 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7945 fi
7946
7947 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7948 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7949 fi
7950
7951 CFLAGS="$CFLAGS -Werror=sequence-point"
7952
7953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
7954 printf %s "checking if $CC supports -Werror=sequence-point... " >&6; }
7955 cacheid=xorg_cv_cc_flag__Werror_sequence_point
7956 if eval test \${$cacheid+y}
7957 then :
7958 printf %s "(cached) " >&6
7959 else $as_nop
7960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7961 /* end confdefs.h. */
7962 int i;
7963 int
7964 main (void)
7965 {
7966
7967 ;
7968 return 0;
7969 }
7970 _ACEOF
7971 if ac_fn_c_try_link "$LINENO"
7972 then :
7973 eval $cacheid=yes
7974 else $as_nop
7975 eval $cacheid=no
7976 fi
7977 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7978 conftest$ac_exeext conftest.$ac_ext
7979 fi
7980
7981
7982 CFLAGS="$xorg_testset_save_CFLAGS"
7983
7984 eval supported=\$$cacheid
7985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7986 printf "%s\n" "$supported" >&6; }
7987 if test "$supported" = "yes" ; then
7988 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
7989 found="yes"
7990 fi
7991 fi
7992
7993
7994
7995
7996
7997
7998
7999
8000
8001
8002
8003
8004
8005
8006
8007 xorg_testset_save_CFLAGS="$CFLAGS"
8008
8009 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8010 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8012 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8013 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8014 then :
8015 printf %s "(cached) " >&6
8016 else $as_nop
8017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8018 /* end confdefs.h. */
8019 int i;
8020 _ACEOF
8021 if ac_fn_c_try_compile "$LINENO"
8022 then :
8023 xorg_cv_cc_flag_unknown_warning_option=yes
8024 else $as_nop
8025 xorg_cv_cc_flag_unknown_warning_option=no
8026 fi
8027 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8028 fi
8029 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8030 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8031 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8032 CFLAGS="$xorg_testset_save_CFLAGS"
8033 fi
8034
8035 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8036 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8037 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8038 fi
8039 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8041 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8042 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8043 then :
8044 printf %s "(cached) " >&6
8045 else $as_nop
8046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8047 /* end confdefs.h. */
8048 int i;
8049 _ACEOF
8050 if ac_fn_c_try_compile "$LINENO"
8051 then :
8052 xorg_cv_cc_flag_unused_command_line_argument=yes
8053 else $as_nop
8054 xorg_cv_cc_flag_unused_command_line_argument=no
8055 fi
8056 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8057 fi
8058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8059 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8060 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8061 CFLAGS="$xorg_testset_save_CFLAGS"
8062 fi
8063
8064 found="no"
8065
8066 if test $found = "no" ; then
8067 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8068 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8069 fi
8070
8071 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8072 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8073 fi
8074
8075 CFLAGS="$CFLAGS -Werror=return-type"
8076
8077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
8078 printf %s "checking if $CC supports -Werror=return-type... " >&6; }
8079 cacheid=xorg_cv_cc_flag__Werror_return_type
8080 if eval test \${$cacheid+y}
8081 then :
8082 printf %s "(cached) " >&6
8083 else $as_nop
8084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8085 /* end confdefs.h. */
8086 int i;
8087 int
8088 main (void)
8089 {
8090
8091 ;
8092 return 0;
8093 }
8094 _ACEOF
8095 if ac_fn_c_try_link "$LINENO"
8096 then :
8097 eval $cacheid=yes
8098 else $as_nop
8099 eval $cacheid=no
8100 fi
8101 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8102 conftest$ac_exeext conftest.$ac_ext
8103 fi
8104
8105
8106 CFLAGS="$xorg_testset_save_CFLAGS"
8107
8108 eval supported=\$$cacheid
8109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8110 printf "%s\n" "$supported" >&6; }
8111 if test "$supported" = "yes" ; then
8112 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
8113 found="yes"
8114 fi
8115 fi
8116
8117 if test $found = "no" ; then
8118 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8119 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8120 fi
8121
8122 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8123 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8124 fi
8125
8126 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8127
8128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
8129 printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
8130 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
8131 if eval test \${$cacheid+y}
8132 then :
8133 printf %s "(cached) " >&6
8134 else $as_nop
8135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8136 /* end confdefs.h. */
8137 int i;
8138 int
8139 main (void)
8140 {
8141
8142 ;
8143 return 0;
8144 }
8145 _ACEOF
8146 if ac_fn_c_try_link "$LINENO"
8147 then :
8148 eval $cacheid=yes
8149 else $as_nop
8150 eval $cacheid=no
8151 fi
8152 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8153 conftest$ac_exeext conftest.$ac_ext
8154 fi
8155
8156
8157 CFLAGS="$xorg_testset_save_CFLAGS"
8158
8159 eval supported=\$$cacheid
8160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8161 printf "%s\n" "$supported" >&6; }
8162 if test "$supported" = "yes" ; then
8163 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8164 found="yes"
8165 fi
8166 fi
8167
8168
8169
8170
8171
8172
8173
8174
8175
8176
8177
8178
8179
8180
8181
8182 xorg_testset_save_CFLAGS="$CFLAGS"
8183
8184 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8185 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8187 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8188 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8189 then :
8190 printf %s "(cached) " >&6
8191 else $as_nop
8192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8193 /* end confdefs.h. */
8194 int i;
8195 _ACEOF
8196 if ac_fn_c_try_compile "$LINENO"
8197 then :
8198 xorg_cv_cc_flag_unknown_warning_option=yes
8199 else $as_nop
8200 xorg_cv_cc_flag_unknown_warning_option=no
8201 fi
8202 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8203 fi
8204 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8205 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8206 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8207 CFLAGS="$xorg_testset_save_CFLAGS"
8208 fi
8209
8210 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8211 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8212 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8213 fi
8214 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8215 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8216 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8217 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8218 then :
8219 printf %s "(cached) " >&6
8220 else $as_nop
8221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8222 /* end confdefs.h. */
8223 int i;
8224 _ACEOF
8225 if ac_fn_c_try_compile "$LINENO"
8226 then :
8227 xorg_cv_cc_flag_unused_command_line_argument=yes
8228 else $as_nop
8229 xorg_cv_cc_flag_unused_command_line_argument=no
8230 fi
8231 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8232 fi
8233 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8234 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8235 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8236 CFLAGS="$xorg_testset_save_CFLAGS"
8237 fi
8238
8239 found="no"
8240
8241 if test $found = "no" ; then
8242 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8243 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8244 fi
8245
8246 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8247 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8248 fi
8249
8250 CFLAGS="$CFLAGS -Werror=trigraphs"
8251
8252 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
8253 printf %s "checking if $CC supports -Werror=trigraphs... " >&6; }
8254 cacheid=xorg_cv_cc_flag__Werror_trigraphs
8255 if eval test \${$cacheid+y}
8256 then :
8257 printf %s "(cached) " >&6
8258 else $as_nop
8259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8260 /* end confdefs.h. */
8261 int i;
8262 int
8263 main (void)
8264 {
8265
8266 ;
8267 return 0;
8268 }
8269 _ACEOF
8270 if ac_fn_c_try_link "$LINENO"
8271 then :
8272 eval $cacheid=yes
8273 else $as_nop
8274 eval $cacheid=no
8275 fi
8276 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8277 conftest$ac_exeext conftest.$ac_ext
8278 fi
8279
8280
8281 CFLAGS="$xorg_testset_save_CFLAGS"
8282
8283 eval supported=\$$cacheid
8284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8285 printf "%s\n" "$supported" >&6; }
8286 if test "$supported" = "yes" ; then
8287 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
8288 found="yes"
8289 fi
8290 fi
8291
8292
8293
8294
8295
8296
8297
8298
8299
8300
8301
8302
8303
8304
8305
8306 xorg_testset_save_CFLAGS="$CFLAGS"
8307
8308 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8309 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8311 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8312 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8313 then :
8314 printf %s "(cached) " >&6
8315 else $as_nop
8316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8317 /* end confdefs.h. */
8318 int i;
8319 _ACEOF
8320 if ac_fn_c_try_compile "$LINENO"
8321 then :
8322 xorg_cv_cc_flag_unknown_warning_option=yes
8323 else $as_nop
8324 xorg_cv_cc_flag_unknown_warning_option=no
8325 fi
8326 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8327 fi
8328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8329 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8330 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8331 CFLAGS="$xorg_testset_save_CFLAGS"
8332 fi
8333
8334 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8335 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8336 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8337 fi
8338 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8339 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8340 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8341 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8342 then :
8343 printf %s "(cached) " >&6
8344 else $as_nop
8345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8346 /* end confdefs.h. */
8347 int i;
8348 _ACEOF
8349 if ac_fn_c_try_compile "$LINENO"
8350 then :
8351 xorg_cv_cc_flag_unused_command_line_argument=yes
8352 else $as_nop
8353 xorg_cv_cc_flag_unused_command_line_argument=no
8354 fi
8355 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8356 fi
8357 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8358 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8359 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8360 CFLAGS="$xorg_testset_save_CFLAGS"
8361 fi
8362
8363 found="no"
8364
8365 if test $found = "no" ; then
8366 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8367 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8368 fi
8369
8370 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8371 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8372 fi
8373
8374 CFLAGS="$CFLAGS -Werror=array-bounds"
8375
8376 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
8377 printf %s "checking if $CC supports -Werror=array-bounds... " >&6; }
8378 cacheid=xorg_cv_cc_flag__Werror_array_bounds
8379 if eval test \${$cacheid+y}
8380 then :
8381 printf %s "(cached) " >&6
8382 else $as_nop
8383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8384 /* end confdefs.h. */
8385 int i;
8386 int
8387 main (void)
8388 {
8389
8390 ;
8391 return 0;
8392 }
8393 _ACEOF
8394 if ac_fn_c_try_link "$LINENO"
8395 then :
8396 eval $cacheid=yes
8397 else $as_nop
8398 eval $cacheid=no
8399 fi
8400 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8401 conftest$ac_exeext conftest.$ac_ext
8402 fi
8403
8404
8405 CFLAGS="$xorg_testset_save_CFLAGS"
8406
8407 eval supported=\$$cacheid
8408 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8409 printf "%s\n" "$supported" >&6; }
8410 if test "$supported" = "yes" ; then
8411 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
8412 found="yes"
8413 fi
8414 fi
8415
8416
8417
8418
8419
8420
8421
8422
8423
8424
8425
8426
8427
8428
8429
8430 xorg_testset_save_CFLAGS="$CFLAGS"
8431
8432 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8433 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8434 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8435 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8436 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8437 then :
8438 printf %s "(cached) " >&6
8439 else $as_nop
8440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8441 /* end confdefs.h. */
8442 int i;
8443 _ACEOF
8444 if ac_fn_c_try_compile "$LINENO"
8445 then :
8446 xorg_cv_cc_flag_unknown_warning_option=yes
8447 else $as_nop
8448 xorg_cv_cc_flag_unknown_warning_option=no
8449 fi
8450 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8451 fi
8452 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8453 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8454 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8455 CFLAGS="$xorg_testset_save_CFLAGS"
8456 fi
8457
8458 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8459 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8460 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8461 fi
8462 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8464 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8465 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8466 then :
8467 printf %s "(cached) " >&6
8468 else $as_nop
8469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8470 /* end confdefs.h. */
8471 int i;
8472 _ACEOF
8473 if ac_fn_c_try_compile "$LINENO"
8474 then :
8475 xorg_cv_cc_flag_unused_command_line_argument=yes
8476 else $as_nop
8477 xorg_cv_cc_flag_unused_command_line_argument=no
8478 fi
8479 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8480 fi
8481 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8482 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8483 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8484 CFLAGS="$xorg_testset_save_CFLAGS"
8485 fi
8486
8487 found="no"
8488
8489 if test $found = "no" ; then
8490 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8491 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8492 fi
8493
8494 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8495 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8496 fi
8497
8498 CFLAGS="$CFLAGS -Werror=write-strings"
8499
8500 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
8501 printf %s "checking if $CC supports -Werror=write-strings... " >&6; }
8502 cacheid=xorg_cv_cc_flag__Werror_write_strings
8503 if eval test \${$cacheid+y}
8504 then :
8505 printf %s "(cached) " >&6
8506 else $as_nop
8507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8508 /* end confdefs.h. */
8509 int i;
8510 int
8511 main (void)
8512 {
8513
8514 ;
8515 return 0;
8516 }
8517 _ACEOF
8518 if ac_fn_c_try_link "$LINENO"
8519 then :
8520 eval $cacheid=yes
8521 else $as_nop
8522 eval $cacheid=no
8523 fi
8524 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8525 conftest$ac_exeext conftest.$ac_ext
8526 fi
8527
8528
8529 CFLAGS="$xorg_testset_save_CFLAGS"
8530
8531 eval supported=\$$cacheid
8532 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8533 printf "%s\n" "$supported" >&6; }
8534 if test "$supported" = "yes" ; then
8535 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
8536 found="yes"
8537 fi
8538 fi
8539
8540
8541
8542
8543
8544
8545
8546
8547
8548
8549
8550
8551
8552
8553
8554 xorg_testset_save_CFLAGS="$CFLAGS"
8555
8556 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8557 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8559 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8560 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8561 then :
8562 printf %s "(cached) " >&6
8563 else $as_nop
8564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8565 /* end confdefs.h. */
8566 int i;
8567 _ACEOF
8568 if ac_fn_c_try_compile "$LINENO"
8569 then :
8570 xorg_cv_cc_flag_unknown_warning_option=yes
8571 else $as_nop
8572 xorg_cv_cc_flag_unknown_warning_option=no
8573 fi
8574 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8575 fi
8576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8577 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8578 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8579 CFLAGS="$xorg_testset_save_CFLAGS"
8580 fi
8581
8582 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8583 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8584 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8585 fi
8586 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8588 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8589 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8590 then :
8591 printf %s "(cached) " >&6
8592 else $as_nop
8593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8594 /* end confdefs.h. */
8595 int i;
8596 _ACEOF
8597 if ac_fn_c_try_compile "$LINENO"
8598 then :
8599 xorg_cv_cc_flag_unused_command_line_argument=yes
8600 else $as_nop
8601 xorg_cv_cc_flag_unused_command_line_argument=no
8602 fi
8603 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8604 fi
8605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8606 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8607 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8608 CFLAGS="$xorg_testset_save_CFLAGS"
8609 fi
8610
8611 found="no"
8612
8613 if test $found = "no" ; then
8614 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8615 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8616 fi
8617
8618 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8619 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8620 fi
8621
8622 CFLAGS="$CFLAGS -Werror=address"
8623
8624 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
8625 printf %s "checking if $CC supports -Werror=address... " >&6; }
8626 cacheid=xorg_cv_cc_flag__Werror_address
8627 if eval test \${$cacheid+y}
8628 then :
8629 printf %s "(cached) " >&6
8630 else $as_nop
8631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8632 /* end confdefs.h. */
8633 int i;
8634 int
8635 main (void)
8636 {
8637
8638 ;
8639 return 0;
8640 }
8641 _ACEOF
8642 if ac_fn_c_try_link "$LINENO"
8643 then :
8644 eval $cacheid=yes
8645 else $as_nop
8646 eval $cacheid=no
8647 fi
8648 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8649 conftest$ac_exeext conftest.$ac_ext
8650 fi
8651
8652
8653 CFLAGS="$xorg_testset_save_CFLAGS"
8654
8655 eval supported=\$$cacheid
8656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8657 printf "%s\n" "$supported" >&6; }
8658 if test "$supported" = "yes" ; then
8659 BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8660 found="yes"
8661 fi
8662 fi
8663
8664
8665
8666
8667
8668
8669
8670
8671
8672
8673
8674
8675
8676
8677
8678 xorg_testset_save_CFLAGS="$CFLAGS"
8679
8680 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8681 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8683 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8684 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8685 then :
8686 printf %s "(cached) " >&6
8687 else $as_nop
8688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8689 /* end confdefs.h. */
8690 int i;
8691 _ACEOF
8692 if ac_fn_c_try_compile "$LINENO"
8693 then :
8694 xorg_cv_cc_flag_unknown_warning_option=yes
8695 else $as_nop
8696 xorg_cv_cc_flag_unknown_warning_option=no
8697 fi
8698 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8699 fi
8700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8701 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8702 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8703 CFLAGS="$xorg_testset_save_CFLAGS"
8704 fi
8705
8706 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8707 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8708 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8709 fi
8710 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8712 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8713 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8714 then :
8715 printf %s "(cached) " >&6
8716 else $as_nop
8717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8718 /* end confdefs.h. */
8719 int i;
8720 _ACEOF
8721 if ac_fn_c_try_compile "$LINENO"
8722 then :
8723 xorg_cv_cc_flag_unused_command_line_argument=yes
8724 else $as_nop
8725 xorg_cv_cc_flag_unused_command_line_argument=no
8726 fi
8727 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8728 fi
8729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8730 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8731 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8732 CFLAGS="$xorg_testset_save_CFLAGS"
8733 fi
8734
8735 found="no"
8736
8737 if test $found = "no" ; then
8738 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8739 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8740 fi
8741
8742 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8743 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8744 fi
8745
8746 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8747
8748 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
8749 printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
8750 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
8751 if eval test \${$cacheid+y}
8752 then :
8753 printf %s "(cached) " >&6
8754 else $as_nop
8755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8756 /* end confdefs.h. */
8757 int i;
8758 int
8759 main (void)
8760 {
8761
8762 ;
8763 return 0;
8764 }
8765 _ACEOF
8766 if ac_fn_c_try_link "$LINENO"
8767 then :
8768 eval $cacheid=yes
8769 else $as_nop
8770 eval $cacheid=no
8771 fi
8772 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8773 conftest$ac_exeext conftest.$ac_ext
8774 fi
8775
8776
8777 CFLAGS="$xorg_testset_save_CFLAGS"
8778
8779 eval supported=\$$cacheid
8780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8781 printf "%s\n" "$supported" >&6; }
8782 if test "$supported" = "yes" ; then
8783 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8784 found="yes"
8785 fi
8786 fi
8787
8788 if test $found = "no" ; then
8789 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8790 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8791 fi
8792
8793 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8794 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8795 fi
8796
8797 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8798
8799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8800 printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8801 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
8802 if eval test \${$cacheid+y}
8803 then :
8804 printf %s "(cached) " >&6
8805 else $as_nop
8806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8807 /* end confdefs.h. */
8808 int i;
8809 int
8810 main (void)
8811 {
8812
8813 ;
8814 return 0;
8815 }
8816 _ACEOF
8817 if ac_fn_c_try_link "$LINENO"
8818 then :
8819 eval $cacheid=yes
8820 else $as_nop
8821 eval $cacheid=no
8822 fi
8823 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8824 conftest$ac_exeext conftest.$ac_ext
8825 fi
8826
8827
8828 CFLAGS="$xorg_testset_save_CFLAGS"
8829
8830 eval supported=\$$cacheid
8831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8832 printf "%s\n" "$supported" >&6; }
8833 if test "$supported" = "yes" ; then
8834 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8835 found="yes"
8836 fi
8837 fi
8838
8839
8840
8841
8842
8843
8844
8845
8846
8847
8848
8849
8850
8851
8852
8853 xorg_testset_save_CFLAGS="$CFLAGS"
8854
8855 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8856 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8858 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8859 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8860 then :
8861 printf %s "(cached) " >&6
8862 else $as_nop
8863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8864 /* end confdefs.h. */
8865 int i;
8866 _ACEOF
8867 if ac_fn_c_try_compile "$LINENO"
8868 then :
8869 xorg_cv_cc_flag_unknown_warning_option=yes
8870 else $as_nop
8871 xorg_cv_cc_flag_unknown_warning_option=no
8872 fi
8873 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8874 fi
8875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8876 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8877 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8878 CFLAGS="$xorg_testset_save_CFLAGS"
8879 fi
8880
8881 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8882 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8883 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8884 fi
8885 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8887 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8888 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8889 then :
8890 printf %s "(cached) " >&6
8891 else $as_nop
8892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8893 /* end confdefs.h. */
8894 int i;
8895 _ACEOF
8896 if ac_fn_c_try_compile "$LINENO"
8897 then :
8898 xorg_cv_cc_flag_unused_command_line_argument=yes
8899 else $as_nop
8900 xorg_cv_cc_flag_unused_command_line_argument=no
8901 fi
8902 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8903 fi
8904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8905 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8906 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8907 CFLAGS="$xorg_testset_save_CFLAGS"
8908 fi
8909
8910 found="no"
8911
8912 if test $found = "no" ; then
8913 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8914 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8915 fi
8916
8917 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8918 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8919 fi
8920
8921 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
8922
8923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
8924 printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
8925 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
8926 if eval test \${$cacheid+y}
8927 then :
8928 printf %s "(cached) " >&6
8929 else $as_nop
8930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8931 /* end confdefs.h. */
8932 int i;
8933 int
8934 main (void)
8935 {
8936
8937 ;
8938 return 0;
8939 }
8940 _ACEOF
8941 if ac_fn_c_try_link "$LINENO"
8942 then :
8943 eval $cacheid=yes
8944 else $as_nop
8945 eval $cacheid=no
8946 fi
8947 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8948 conftest$ac_exeext conftest.$ac_ext
8949 fi
8950
8951
8952 CFLAGS="$xorg_testset_save_CFLAGS"
8953
8954 eval supported=\$$cacheid
8955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8956 printf "%s\n" "$supported" >&6; }
8957 if test "$supported" = "yes" ; then
8958 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
8959 found="yes"
8960 fi
8961 fi
8962
8963 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
8964 else
8965 { 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
8966 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;}
8967
8968
8969
8970
8971
8972
8973
8974
8975
8976
8977
8978
8979
8980 xorg_testset_save_CFLAGS="$CFLAGS"
8981
8982 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8983 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8985 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8986 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8987 then :
8988 printf %s "(cached) " >&6
8989 else $as_nop
8990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8991 /* end confdefs.h. */
8992 int i;
8993 _ACEOF
8994 if ac_fn_c_try_compile "$LINENO"
8995 then :
8996 xorg_cv_cc_flag_unknown_warning_option=yes
8997 else $as_nop
8998 xorg_cv_cc_flag_unknown_warning_option=no
8999 fi
9000 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9001 fi
9002 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9003 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9004 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9005 CFLAGS="$xorg_testset_save_CFLAGS"
9006 fi
9007
9008 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9009 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9010 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9011 fi
9012 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9014 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9015 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9016 then :
9017 printf %s "(cached) " >&6
9018 else $as_nop
9019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9020 /* end confdefs.h. */
9021 int i;
9022 _ACEOF
9023 if ac_fn_c_try_compile "$LINENO"
9024 then :
9025 xorg_cv_cc_flag_unused_command_line_argument=yes
9026 else $as_nop
9027 xorg_cv_cc_flag_unused_command_line_argument=no
9028 fi
9029 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9030 fi
9031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9032 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9033 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9034 CFLAGS="$xorg_testset_save_CFLAGS"
9035 fi
9036
9037 found="no"
9038
9039 if test $found = "no" ; then
9040 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9041 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9042 fi
9043
9044 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9045 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9046 fi
9047
9048 CFLAGS="$CFLAGS -Wimplicit"
9049
9050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
9051 printf %s "checking if $CC supports -Wimplicit... " >&6; }
9052 cacheid=xorg_cv_cc_flag__Wimplicit
9053 if eval test \${$cacheid+y}
9054 then :
9055 printf %s "(cached) " >&6
9056 else $as_nop
9057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9058 /* end confdefs.h. */
9059 int i;
9060 int
9061 main (void)
9062 {
9063
9064 ;
9065 return 0;
9066 }
9067 _ACEOF
9068 if ac_fn_c_try_link "$LINENO"
9069 then :
9070 eval $cacheid=yes
9071 else $as_nop
9072 eval $cacheid=no
9073 fi
9074 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9075 conftest$ac_exeext conftest.$ac_ext
9076 fi
9077
9078
9079 CFLAGS="$xorg_testset_save_CFLAGS"
9080
9081 eval supported=\$$cacheid
9082 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9083 printf "%s\n" "$supported" >&6; }
9084 if test "$supported" = "yes" ; then
9085 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
9086 found="yes"
9087 fi
9088 fi
9089
9090
9091
9092
9093
9094
9095
9096
9097
9098
9099
9100
9101
9102
9103
9104 xorg_testset_save_CFLAGS="$CFLAGS"
9105
9106 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9107 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9108 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9109 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9110 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9111 then :
9112 printf %s "(cached) " >&6
9113 else $as_nop
9114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9115 /* end confdefs.h. */
9116 int i;
9117 _ACEOF
9118 if ac_fn_c_try_compile "$LINENO"
9119 then :
9120 xorg_cv_cc_flag_unknown_warning_option=yes
9121 else $as_nop
9122 xorg_cv_cc_flag_unknown_warning_option=no
9123 fi
9124 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9125 fi
9126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9127 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9128 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9129 CFLAGS="$xorg_testset_save_CFLAGS"
9130 fi
9131
9132 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9133 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9134 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9135 fi
9136 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9137 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9138 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9139 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9140 then :
9141 printf %s "(cached) " >&6
9142 else $as_nop
9143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9144 /* end confdefs.h. */
9145 int i;
9146 _ACEOF
9147 if ac_fn_c_try_compile "$LINENO"
9148 then :
9149 xorg_cv_cc_flag_unused_command_line_argument=yes
9150 else $as_nop
9151 xorg_cv_cc_flag_unused_command_line_argument=no
9152 fi
9153 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9154 fi
9155 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9156 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9157 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9158 CFLAGS="$xorg_testset_save_CFLAGS"
9159 fi
9160
9161 found="no"
9162
9163 if test $found = "no" ; then
9164 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9165 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9166 fi
9167
9168 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9169 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9170 fi
9171
9172 CFLAGS="$CFLAGS -Wnonnull"
9173
9174 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
9175 printf %s "checking if $CC supports -Wnonnull... " >&6; }
9176 cacheid=xorg_cv_cc_flag__Wnonnull
9177 if eval test \${$cacheid+y}
9178 then :
9179 printf %s "(cached) " >&6
9180 else $as_nop
9181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9182 /* end confdefs.h. */
9183 int i;
9184 int
9185 main (void)
9186 {
9187
9188 ;
9189 return 0;
9190 }
9191 _ACEOF
9192 if ac_fn_c_try_link "$LINENO"
9193 then :
9194 eval $cacheid=yes
9195 else $as_nop
9196 eval $cacheid=no
9197 fi
9198 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9199 conftest$ac_exeext conftest.$ac_ext
9200 fi
9201
9202
9203 CFLAGS="$xorg_testset_save_CFLAGS"
9204
9205 eval supported=\$$cacheid
9206 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9207 printf "%s\n" "$supported" >&6; }
9208 if test "$supported" = "yes" ; then
9209 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
9210 found="yes"
9211 fi
9212 fi
9213
9214
9215
9216
9217
9218
9219
9220
9221
9222
9223
9224
9225
9226
9227
9228 xorg_testset_save_CFLAGS="$CFLAGS"
9229
9230 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9231 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9232 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9233 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9234 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9235 then :
9236 printf %s "(cached) " >&6
9237 else $as_nop
9238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9239 /* end confdefs.h. */
9240 int i;
9241 _ACEOF
9242 if ac_fn_c_try_compile "$LINENO"
9243 then :
9244 xorg_cv_cc_flag_unknown_warning_option=yes
9245 else $as_nop
9246 xorg_cv_cc_flag_unknown_warning_option=no
9247 fi
9248 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9249 fi
9250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9251 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9252 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9253 CFLAGS="$xorg_testset_save_CFLAGS"
9254 fi
9255
9256 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9257 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9258 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9259 fi
9260 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9261 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9262 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9263 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9264 then :
9265 printf %s "(cached) " >&6
9266 else $as_nop
9267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9268 /* end confdefs.h. */
9269 int i;
9270 _ACEOF
9271 if ac_fn_c_try_compile "$LINENO"
9272 then :
9273 xorg_cv_cc_flag_unused_command_line_argument=yes
9274 else $as_nop
9275 xorg_cv_cc_flag_unused_command_line_argument=no
9276 fi
9277 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9278 fi
9279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9280 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9281 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9282 CFLAGS="$xorg_testset_save_CFLAGS"
9283 fi
9284
9285 found="no"
9286
9287 if test $found = "no" ; then
9288 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9289 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9290 fi
9291
9292 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9293 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9294 fi
9295
9296 CFLAGS="$CFLAGS -Winit-self"
9297
9298 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
9299 printf %s "checking if $CC supports -Winit-self... " >&6; }
9300 cacheid=xorg_cv_cc_flag__Winit_self
9301 if eval test \${$cacheid+y}
9302 then :
9303 printf %s "(cached) " >&6
9304 else $as_nop
9305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9306 /* end confdefs.h. */
9307 int i;
9308 int
9309 main (void)
9310 {
9311
9312 ;
9313 return 0;
9314 }
9315 _ACEOF
9316 if ac_fn_c_try_link "$LINENO"
9317 then :
9318 eval $cacheid=yes
9319 else $as_nop
9320 eval $cacheid=no
9321 fi
9322 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9323 conftest$ac_exeext conftest.$ac_ext
9324 fi
9325
9326
9327 CFLAGS="$xorg_testset_save_CFLAGS"
9328
9329 eval supported=\$$cacheid
9330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9331 printf "%s\n" "$supported" >&6; }
9332 if test "$supported" = "yes" ; then
9333 BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
9334 found="yes"
9335 fi
9336 fi
9337
9338
9339
9340
9341
9342
9343
9344
9345
9346
9347
9348
9349
9350
9351
9352 xorg_testset_save_CFLAGS="$CFLAGS"
9353
9354 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9355 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9356 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9357 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9358 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9359 then :
9360 printf %s "(cached) " >&6
9361 else $as_nop
9362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9363 /* end confdefs.h. */
9364 int i;
9365 _ACEOF
9366 if ac_fn_c_try_compile "$LINENO"
9367 then :
9368 xorg_cv_cc_flag_unknown_warning_option=yes
9369 else $as_nop
9370 xorg_cv_cc_flag_unknown_warning_option=no
9371 fi
9372 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9373 fi
9374 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9375 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9376 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9377 CFLAGS="$xorg_testset_save_CFLAGS"
9378 fi
9379
9380 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9381 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9382 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9383 fi
9384 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9385 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9386 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9387 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9388 then :
9389 printf %s "(cached) " >&6
9390 else $as_nop
9391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9392 /* end confdefs.h. */
9393 int i;
9394 _ACEOF
9395 if ac_fn_c_try_compile "$LINENO"
9396 then :
9397 xorg_cv_cc_flag_unused_command_line_argument=yes
9398 else $as_nop
9399 xorg_cv_cc_flag_unused_command_line_argument=no
9400 fi
9401 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9402 fi
9403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9404 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9405 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9406 CFLAGS="$xorg_testset_save_CFLAGS"
9407 fi
9408
9409 found="no"
9410
9411 if test $found = "no" ; then
9412 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9413 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9414 fi
9415
9416 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9417 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9418 fi
9419
9420 CFLAGS="$CFLAGS -Wmain"
9421
9422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
9423 printf %s "checking if $CC supports -Wmain... " >&6; }
9424 cacheid=xorg_cv_cc_flag__Wmain
9425 if eval test \${$cacheid+y}
9426 then :
9427 printf %s "(cached) " >&6
9428 else $as_nop
9429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9430 /* end confdefs.h. */
9431 int i;
9432 int
9433 main (void)
9434 {
9435
9436 ;
9437 return 0;
9438 }
9439 _ACEOF
9440 if ac_fn_c_try_link "$LINENO"
9441 then :
9442 eval $cacheid=yes
9443 else $as_nop
9444 eval $cacheid=no
9445 fi
9446 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9447 conftest$ac_exeext conftest.$ac_ext
9448 fi
9449
9450
9451 CFLAGS="$xorg_testset_save_CFLAGS"
9452
9453 eval supported=\$$cacheid
9454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9455 printf "%s\n" "$supported" >&6; }
9456 if test "$supported" = "yes" ; then
9457 BASE_CFLAGS="$BASE_CFLAGS -Wmain"
9458 found="yes"
9459 fi
9460 fi
9461
9462
9463
9464
9465
9466
9467
9468
9469
9470
9471
9472
9473
9474
9475
9476 xorg_testset_save_CFLAGS="$CFLAGS"
9477
9478 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9479 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9481 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9482 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9483 then :
9484 printf %s "(cached) " >&6
9485 else $as_nop
9486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9487 /* end confdefs.h. */
9488 int i;
9489 _ACEOF
9490 if ac_fn_c_try_compile "$LINENO"
9491 then :
9492 xorg_cv_cc_flag_unknown_warning_option=yes
9493 else $as_nop
9494 xorg_cv_cc_flag_unknown_warning_option=no
9495 fi
9496 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9497 fi
9498 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9499 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9500 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9501 CFLAGS="$xorg_testset_save_CFLAGS"
9502 fi
9503
9504 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9505 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9506 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9507 fi
9508 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9509 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9510 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9511 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9512 then :
9513 printf %s "(cached) " >&6
9514 else $as_nop
9515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9516 /* end confdefs.h. */
9517 int i;
9518 _ACEOF
9519 if ac_fn_c_try_compile "$LINENO"
9520 then :
9521 xorg_cv_cc_flag_unused_command_line_argument=yes
9522 else $as_nop
9523 xorg_cv_cc_flag_unused_command_line_argument=no
9524 fi
9525 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9526 fi
9527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9528 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9529 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9530 CFLAGS="$xorg_testset_save_CFLAGS"
9531 fi
9532
9533 found="no"
9534
9535 if test $found = "no" ; then
9536 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9537 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9538 fi
9539
9540 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9541 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9542 fi
9543
9544 CFLAGS="$CFLAGS -Wmissing-braces"
9545
9546 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
9547 printf %s "checking if $CC supports -Wmissing-braces... " >&6; }
9548 cacheid=xorg_cv_cc_flag__Wmissing_braces
9549 if eval test \${$cacheid+y}
9550 then :
9551 printf %s "(cached) " >&6
9552 else $as_nop
9553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9554 /* end confdefs.h. */
9555 int i;
9556 int
9557 main (void)
9558 {
9559
9560 ;
9561 return 0;
9562 }
9563 _ACEOF
9564 if ac_fn_c_try_link "$LINENO"
9565 then :
9566 eval $cacheid=yes
9567 else $as_nop
9568 eval $cacheid=no
9569 fi
9570 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9571 conftest$ac_exeext conftest.$ac_ext
9572 fi
9573
9574
9575 CFLAGS="$xorg_testset_save_CFLAGS"
9576
9577 eval supported=\$$cacheid
9578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9579 printf "%s\n" "$supported" >&6; }
9580 if test "$supported" = "yes" ; then
9581 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
9582 found="yes"
9583 fi
9584 fi
9585
9586
9587
9588
9589
9590
9591
9592
9593
9594
9595
9596
9597
9598
9599
9600 xorg_testset_save_CFLAGS="$CFLAGS"
9601
9602 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9603 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9605 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9606 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9607 then :
9608 printf %s "(cached) " >&6
9609 else $as_nop
9610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9611 /* end confdefs.h. */
9612 int i;
9613 _ACEOF
9614 if ac_fn_c_try_compile "$LINENO"
9615 then :
9616 xorg_cv_cc_flag_unknown_warning_option=yes
9617 else $as_nop
9618 xorg_cv_cc_flag_unknown_warning_option=no
9619 fi
9620 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9621 fi
9622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9623 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9624 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9625 CFLAGS="$xorg_testset_save_CFLAGS"
9626 fi
9627
9628 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9629 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9630 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9631 fi
9632 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9634 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9635 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9636 then :
9637 printf %s "(cached) " >&6
9638 else $as_nop
9639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9640 /* end confdefs.h. */
9641 int i;
9642 _ACEOF
9643 if ac_fn_c_try_compile "$LINENO"
9644 then :
9645 xorg_cv_cc_flag_unused_command_line_argument=yes
9646 else $as_nop
9647 xorg_cv_cc_flag_unused_command_line_argument=no
9648 fi
9649 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9650 fi
9651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9652 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9653 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9654 CFLAGS="$xorg_testset_save_CFLAGS"
9655 fi
9656
9657 found="no"
9658
9659 if test $found = "no" ; then
9660 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9661 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9662 fi
9663
9664 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9665 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9666 fi
9667
9668 CFLAGS="$CFLAGS -Wsequence-point"
9669
9670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
9671 printf %s "checking if $CC supports -Wsequence-point... " >&6; }
9672 cacheid=xorg_cv_cc_flag__Wsequence_point
9673 if eval test \${$cacheid+y}
9674 then :
9675 printf %s "(cached) " >&6
9676 else $as_nop
9677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9678 /* end confdefs.h. */
9679 int i;
9680 int
9681 main (void)
9682 {
9683
9684 ;
9685 return 0;
9686 }
9687 _ACEOF
9688 if ac_fn_c_try_link "$LINENO"
9689 then :
9690 eval $cacheid=yes
9691 else $as_nop
9692 eval $cacheid=no
9693 fi
9694 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9695 conftest$ac_exeext conftest.$ac_ext
9696 fi
9697
9698
9699 CFLAGS="$xorg_testset_save_CFLAGS"
9700
9701 eval supported=\$$cacheid
9702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9703 printf "%s\n" "$supported" >&6; }
9704 if test "$supported" = "yes" ; then
9705 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9706 found="yes"
9707 fi
9708 fi
9709
9710
9711
9712
9713
9714
9715
9716
9717
9718
9719
9720
9721
9722
9723
9724 xorg_testset_save_CFLAGS="$CFLAGS"
9725
9726 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9727 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9728 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9729 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9730 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9731 then :
9732 printf %s "(cached) " >&6
9733 else $as_nop
9734 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_unknown_warning_option=yes
9741 else $as_nop
9742 xorg_cv_cc_flag_unknown_warning_option=no
9743 fi
9744 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9745 fi
9746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9747 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9748 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9749 CFLAGS="$xorg_testset_save_CFLAGS"
9750 fi
9751
9752 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9753 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9754 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9755 fi
9756 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9758 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9759 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9760 then :
9761 printf %s "(cached) " >&6
9762 else $as_nop
9763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9764 /* end confdefs.h. */
9765 int i;
9766 _ACEOF
9767 if ac_fn_c_try_compile "$LINENO"
9768 then :
9769 xorg_cv_cc_flag_unused_command_line_argument=yes
9770 else $as_nop
9771 xorg_cv_cc_flag_unused_command_line_argument=no
9772 fi
9773 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9774 fi
9775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9776 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9777 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9778 CFLAGS="$xorg_testset_save_CFLAGS"
9779 fi
9780
9781 found="no"
9782
9783 if test $found = "no" ; then
9784 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9785 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9786 fi
9787
9788 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9789 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9790 fi
9791
9792 CFLAGS="$CFLAGS -Wreturn-type"
9793
9794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
9795 printf %s "checking if $CC supports -Wreturn-type... " >&6; }
9796 cacheid=xorg_cv_cc_flag__Wreturn_type
9797 if eval test \${$cacheid+y}
9798 then :
9799 printf %s "(cached) " >&6
9800 else $as_nop
9801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9802 /* end confdefs.h. */
9803 int i;
9804 int
9805 main (void)
9806 {
9807
9808 ;
9809 return 0;
9810 }
9811 _ACEOF
9812 if ac_fn_c_try_link "$LINENO"
9813 then :
9814 eval $cacheid=yes
9815 else $as_nop
9816 eval $cacheid=no
9817 fi
9818 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9819 conftest$ac_exeext conftest.$ac_ext
9820 fi
9821
9822
9823 CFLAGS="$xorg_testset_save_CFLAGS"
9824
9825 eval supported=\$$cacheid
9826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9827 printf "%s\n" "$supported" >&6; }
9828 if test "$supported" = "yes" ; then
9829 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9830 found="yes"
9831 fi
9832 fi
9833
9834
9835
9836
9837
9838
9839
9840
9841
9842
9843
9844
9845
9846
9847
9848 xorg_testset_save_CFLAGS="$CFLAGS"
9849
9850 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9851 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9852 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9853 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9854 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9855 then :
9856 printf %s "(cached) " >&6
9857 else $as_nop
9858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9859 /* end confdefs.h. */
9860 int i;
9861 _ACEOF
9862 if ac_fn_c_try_compile "$LINENO"
9863 then :
9864 xorg_cv_cc_flag_unknown_warning_option=yes
9865 else $as_nop
9866 xorg_cv_cc_flag_unknown_warning_option=no
9867 fi
9868 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9869 fi
9870 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9871 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9872 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9873 CFLAGS="$xorg_testset_save_CFLAGS"
9874 fi
9875
9876 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9877 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9878 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9879 fi
9880 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9882 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9883 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9884 then :
9885 printf %s "(cached) " >&6
9886 else $as_nop
9887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9888 /* end confdefs.h. */
9889 int i;
9890 _ACEOF
9891 if ac_fn_c_try_compile "$LINENO"
9892 then :
9893 xorg_cv_cc_flag_unused_command_line_argument=yes
9894 else $as_nop
9895 xorg_cv_cc_flag_unused_command_line_argument=no
9896 fi
9897 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9898 fi
9899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9900 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9901 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9902 CFLAGS="$xorg_testset_save_CFLAGS"
9903 fi
9904
9905 found="no"
9906
9907 if test $found = "no" ; then
9908 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9909 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9910 fi
9911
9912 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9913 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9914 fi
9915
9916 CFLAGS="$CFLAGS -Wtrigraphs"
9917
9918 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
9919 printf %s "checking if $CC supports -Wtrigraphs... " >&6; }
9920 cacheid=xorg_cv_cc_flag__Wtrigraphs
9921 if eval test \${$cacheid+y}
9922 then :
9923 printf %s "(cached) " >&6
9924 else $as_nop
9925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9926 /* end confdefs.h. */
9927 int i;
9928 int
9929 main (void)
9930 {
9931
9932 ;
9933 return 0;
9934 }
9935 _ACEOF
9936 if ac_fn_c_try_link "$LINENO"
9937 then :
9938 eval $cacheid=yes
9939 else $as_nop
9940 eval $cacheid=no
9941 fi
9942 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9943 conftest$ac_exeext conftest.$ac_ext
9944 fi
9945
9946
9947 CFLAGS="$xorg_testset_save_CFLAGS"
9948
9949 eval supported=\$$cacheid
9950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9951 printf "%s\n" "$supported" >&6; }
9952 if test "$supported" = "yes" ; then
9953 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
9954 found="yes"
9955 fi
9956 fi
9957
9958
9959
9960
9961
9962
9963
9964
9965
9966
9967
9968
9969
9970
9971
9972 xorg_testset_save_CFLAGS="$CFLAGS"
9973
9974 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9975 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9976 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9977 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9978 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9979 then :
9980 printf %s "(cached) " >&6
9981 else $as_nop
9982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9983 /* end confdefs.h. */
9984 int i;
9985 _ACEOF
9986 if ac_fn_c_try_compile "$LINENO"
9987 then :
9988 xorg_cv_cc_flag_unknown_warning_option=yes
9989 else $as_nop
9990 xorg_cv_cc_flag_unknown_warning_option=no
9991 fi
9992 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9993 fi
9994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9995 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9996 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9997 CFLAGS="$xorg_testset_save_CFLAGS"
9998 fi
9999
10000 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10001 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10002 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10003 fi
10004 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10005 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10006 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10007 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10008 then :
10009 printf %s "(cached) " >&6
10010 else $as_nop
10011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10012 /* end confdefs.h. */
10013 int i;
10014 _ACEOF
10015 if ac_fn_c_try_compile "$LINENO"
10016 then :
10017 xorg_cv_cc_flag_unused_command_line_argument=yes
10018 else $as_nop
10019 xorg_cv_cc_flag_unused_command_line_argument=no
10020 fi
10021 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10022 fi
10023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10024 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10025 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10026 CFLAGS="$xorg_testset_save_CFLAGS"
10027 fi
10028
10029 found="no"
10030
10031 if test $found = "no" ; then
10032 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10033 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10034 fi
10035
10036 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10037 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10038 fi
10039
10040 CFLAGS="$CFLAGS -Warray-bounds"
10041
10042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
10043 printf %s "checking if $CC supports -Warray-bounds... " >&6; }
10044 cacheid=xorg_cv_cc_flag__Warray_bounds
10045 if eval test \${$cacheid+y}
10046 then :
10047 printf %s "(cached) " >&6
10048 else $as_nop
10049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10050 /* end confdefs.h. */
10051 int i;
10052 int
10053 main (void)
10054 {
10055
10056 ;
10057 return 0;
10058 }
10059 _ACEOF
10060 if ac_fn_c_try_link "$LINENO"
10061 then :
10062 eval $cacheid=yes
10063 else $as_nop
10064 eval $cacheid=no
10065 fi
10066 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10067 conftest$ac_exeext conftest.$ac_ext
10068 fi
10069
10070
10071 CFLAGS="$xorg_testset_save_CFLAGS"
10072
10073 eval supported=\$$cacheid
10074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10075 printf "%s\n" "$supported" >&6; }
10076 if test "$supported" = "yes" ; then
10077 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
10078 found="yes"
10079 fi
10080 fi
10081
10082
10083
10084
10085
10086
10087
10088
10089
10090
10091
10092
10093
10094
10095
10096 xorg_testset_save_CFLAGS="$CFLAGS"
10097
10098 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10099 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10101 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10102 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10103 then :
10104 printf %s "(cached) " >&6
10105 else $as_nop
10106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10107 /* end confdefs.h. */
10108 int i;
10109 _ACEOF
10110 if ac_fn_c_try_compile "$LINENO"
10111 then :
10112 xorg_cv_cc_flag_unknown_warning_option=yes
10113 else $as_nop
10114 xorg_cv_cc_flag_unknown_warning_option=no
10115 fi
10116 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10117 fi
10118 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10119 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10120 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10121 CFLAGS="$xorg_testset_save_CFLAGS"
10122 fi
10123
10124 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10125 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10126 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10127 fi
10128 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10130 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10131 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10132 then :
10133 printf %s "(cached) " >&6
10134 else $as_nop
10135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10136 /* end confdefs.h. */
10137 int i;
10138 _ACEOF
10139 if ac_fn_c_try_compile "$LINENO"
10140 then :
10141 xorg_cv_cc_flag_unused_command_line_argument=yes
10142 else $as_nop
10143 xorg_cv_cc_flag_unused_command_line_argument=no
10144 fi
10145 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10146 fi
10147 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10148 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10149 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10150 CFLAGS="$xorg_testset_save_CFLAGS"
10151 fi
10152
10153 found="no"
10154
10155 if test $found = "no" ; then
10156 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10157 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10158 fi
10159
10160 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10161 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10162 fi
10163
10164 CFLAGS="$CFLAGS -Wwrite-strings"
10165
10166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
10167 printf %s "checking if $CC supports -Wwrite-strings... " >&6; }
10168 cacheid=xorg_cv_cc_flag__Wwrite_strings
10169 if eval test \${$cacheid+y}
10170 then :
10171 printf %s "(cached) " >&6
10172 else $as_nop
10173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10174 /* end confdefs.h. */
10175 int i;
10176 int
10177 main (void)
10178 {
10179
10180 ;
10181 return 0;
10182 }
10183 _ACEOF
10184 if ac_fn_c_try_link "$LINENO"
10185 then :
10186 eval $cacheid=yes
10187 else $as_nop
10188 eval $cacheid=no
10189 fi
10190 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10191 conftest$ac_exeext conftest.$ac_ext
10192 fi
10193
10194
10195 CFLAGS="$xorg_testset_save_CFLAGS"
10196
10197 eval supported=\$$cacheid
10198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10199 printf "%s\n" "$supported" >&6; }
10200 if test "$supported" = "yes" ; then
10201 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
10202 found="yes"
10203 fi
10204 fi
10205
10206
10207
10208
10209
10210
10211
10212
10213
10214
10215
10216
10217
10218
10219
10220 xorg_testset_save_CFLAGS="$CFLAGS"
10221
10222 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10223 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10224 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10225 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10226 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10227 then :
10228 printf %s "(cached) " >&6
10229 else $as_nop
10230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10231 /* end confdefs.h. */
10232 int i;
10233 _ACEOF
10234 if ac_fn_c_try_compile "$LINENO"
10235 then :
10236 xorg_cv_cc_flag_unknown_warning_option=yes
10237 else $as_nop
10238 xorg_cv_cc_flag_unknown_warning_option=no
10239 fi
10240 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10241 fi
10242 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10243 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10244 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10245 CFLAGS="$xorg_testset_save_CFLAGS"
10246 fi
10247
10248 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10249 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10250 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10251 fi
10252 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10254 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10255 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10256 then :
10257 printf %s "(cached) " >&6
10258 else $as_nop
10259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10260 /* end confdefs.h. */
10261 int i;
10262 _ACEOF
10263 if ac_fn_c_try_compile "$LINENO"
10264 then :
10265 xorg_cv_cc_flag_unused_command_line_argument=yes
10266 else $as_nop
10267 xorg_cv_cc_flag_unused_command_line_argument=no
10268 fi
10269 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10270 fi
10271 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10272 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10273 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10274 CFLAGS="$xorg_testset_save_CFLAGS"
10275 fi
10276
10277 found="no"
10278
10279 if test $found = "no" ; then
10280 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10281 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10282 fi
10283
10284 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10285 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10286 fi
10287
10288 CFLAGS="$CFLAGS -Waddress"
10289
10290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
10291 printf %s "checking if $CC supports -Waddress... " >&6; }
10292 cacheid=xorg_cv_cc_flag__Waddress
10293 if eval test \${$cacheid+y}
10294 then :
10295 printf %s "(cached) " >&6
10296 else $as_nop
10297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10298 /* end confdefs.h. */
10299 int i;
10300 int
10301 main (void)
10302 {
10303
10304 ;
10305 return 0;
10306 }
10307 _ACEOF
10308 if ac_fn_c_try_link "$LINENO"
10309 then :
10310 eval $cacheid=yes
10311 else $as_nop
10312 eval $cacheid=no
10313 fi
10314 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10315 conftest$ac_exeext conftest.$ac_ext
10316 fi
10317
10318
10319 CFLAGS="$xorg_testset_save_CFLAGS"
10320
10321 eval supported=\$$cacheid
10322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10323 printf "%s\n" "$supported" >&6; }
10324 if test "$supported" = "yes" ; then
10325 BASE_CFLAGS="$BASE_CFLAGS -Waddress"
10326 found="yes"
10327 fi
10328 fi
10329
10330
10331
10332
10333
10334
10335
10336
10337
10338
10339
10340
10341
10342
10343
10344 xorg_testset_save_CFLAGS="$CFLAGS"
10345
10346 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10347 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10348 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10349 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10350 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10351 then :
10352 printf %s "(cached) " >&6
10353 else $as_nop
10354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10355 /* end confdefs.h. */
10356 int i;
10357 _ACEOF
10358 if ac_fn_c_try_compile "$LINENO"
10359 then :
10360 xorg_cv_cc_flag_unknown_warning_option=yes
10361 else $as_nop
10362 xorg_cv_cc_flag_unknown_warning_option=no
10363 fi
10364 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10365 fi
10366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10367 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10368 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10369 CFLAGS="$xorg_testset_save_CFLAGS"
10370 fi
10371
10372 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10373 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10374 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10375 fi
10376 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10378 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10379 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10380 then :
10381 printf %s "(cached) " >&6
10382 else $as_nop
10383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10384 /* end confdefs.h. */
10385 int i;
10386 _ACEOF
10387 if ac_fn_c_try_compile "$LINENO"
10388 then :
10389 xorg_cv_cc_flag_unused_command_line_argument=yes
10390 else $as_nop
10391 xorg_cv_cc_flag_unused_command_line_argument=no
10392 fi
10393 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10394 fi
10395 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10396 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10397 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10398 CFLAGS="$xorg_testset_save_CFLAGS"
10399 fi
10400
10401 found="no"
10402
10403 if test $found = "no" ; then
10404 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10405 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10406 fi
10407
10408 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10409 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10410 fi
10411
10412 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
10413
10414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
10415 printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
10416 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
10417 if eval test \${$cacheid+y}
10418 then :
10419 printf %s "(cached) " >&6
10420 else $as_nop
10421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10422 /* end confdefs.h. */
10423 int i;
10424 int
10425 main (void)
10426 {
10427
10428 ;
10429 return 0;
10430 }
10431 _ACEOF
10432 if ac_fn_c_try_link "$LINENO"
10433 then :
10434 eval $cacheid=yes
10435 else $as_nop
10436 eval $cacheid=no
10437 fi
10438 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10439 conftest$ac_exeext conftest.$ac_ext
10440 fi
10441
10442
10443 CFLAGS="$xorg_testset_save_CFLAGS"
10444
10445 eval supported=\$$cacheid
10446 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10447 printf "%s\n" "$supported" >&6; }
10448 if test "$supported" = "yes" ; then
10449 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
10450 found="yes"
10451 fi
10452 fi
10453
10454
10455
10456
10457
10458
10459
10460
10461
10462
10463
10464
10465
10466
10467
10468 xorg_testset_save_CFLAGS="$CFLAGS"
10469
10470 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10471 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10473 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10474 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10475 then :
10476 printf %s "(cached) " >&6
10477 else $as_nop
10478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10479 /* end confdefs.h. */
10480 int i;
10481 _ACEOF
10482 if ac_fn_c_try_compile "$LINENO"
10483 then :
10484 xorg_cv_cc_flag_unknown_warning_option=yes
10485 else $as_nop
10486 xorg_cv_cc_flag_unknown_warning_option=no
10487 fi
10488 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10489 fi
10490 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10491 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10492 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10493 CFLAGS="$xorg_testset_save_CFLAGS"
10494 fi
10495
10496 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10497 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10498 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10499 fi
10500 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10501 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10502 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10503 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10504 then :
10505 printf %s "(cached) " >&6
10506 else $as_nop
10507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10508 /* end confdefs.h. */
10509 int i;
10510 _ACEOF
10511 if ac_fn_c_try_compile "$LINENO"
10512 then :
10513 xorg_cv_cc_flag_unused_command_line_argument=yes
10514 else $as_nop
10515 xorg_cv_cc_flag_unused_command_line_argument=no
10516 fi
10517 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10518 fi
10519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10520 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10521 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10522 CFLAGS="$xorg_testset_save_CFLAGS"
10523 fi
10524
10525 found="no"
10526
10527 if test $found = "no" ; then
10528 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10529 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10530 fi
10531
10532 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10533 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10534 fi
10535
10536 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
10537
10538 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
10539 printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
10540 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
10541 if eval test \${$cacheid+y}
10542 then :
10543 printf %s "(cached) " >&6
10544 else $as_nop
10545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10546 /* end confdefs.h. */
10547 int i;
10548 int
10549 main (void)
10550 {
10551
10552 ;
10553 return 0;
10554 }
10555 _ACEOF
10556 if ac_fn_c_try_link "$LINENO"
10557 then :
10558 eval $cacheid=yes
10559 else $as_nop
10560 eval $cacheid=no
10561 fi
10562 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10563 conftest$ac_exeext conftest.$ac_ext
10564 fi
10565
10566
10567 CFLAGS="$xorg_testset_save_CFLAGS"
10568
10569 eval supported=\$$cacheid
10570 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10571 printf "%s\n" "$supported" >&6; }
10572 if test "$supported" = "yes" ; then
10573 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
10574 found="yes"
10575 fi
10576 fi
10577
10578
10579 fi
10580
10581
10582
10583
10584
10585
10586
10587 CWARNFLAGS="$BASE_CFLAGS"
10588 if test "x$GCC" = xyes ; then
10589 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
10590 fi
10591
10592
10593
10594
10595
10596
10597
10598
10599 # Check whether --enable-strict-compilation was given.
10600 if test ${enable_strict_compilation+y}
10601 then :
10602 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
10603 else $as_nop
10604 STRICT_COMPILE=no
10605 fi
10606
10607
10608
10609
10610
10611
10612 STRICT_CFLAGS=""
10613
10614
10615
10616
10617
10618
10619
10620
10621
10622
10623
10624
10625
10626 xorg_testset_save_CFLAGS="$CFLAGS"
10627
10628 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10629 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10631 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10632 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10633 then :
10634 printf %s "(cached) " >&6
10635 else $as_nop
10636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10637 /* end confdefs.h. */
10638 int i;
10639 _ACEOF
10640 if ac_fn_c_try_compile "$LINENO"
10641 then :
10642 xorg_cv_cc_flag_unknown_warning_option=yes
10643 else $as_nop
10644 xorg_cv_cc_flag_unknown_warning_option=no
10645 fi
10646 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10647 fi
10648 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10649 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10650 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10651 CFLAGS="$xorg_testset_save_CFLAGS"
10652 fi
10653
10654 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10655 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10656 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10657 fi
10658 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10660 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10661 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10662 then :
10663 printf %s "(cached) " >&6
10664 else $as_nop
10665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10666 /* end confdefs.h. */
10667 int i;
10668 _ACEOF
10669 if ac_fn_c_try_compile "$LINENO"
10670 then :
10671 xorg_cv_cc_flag_unused_command_line_argument=yes
10672 else $as_nop
10673 xorg_cv_cc_flag_unused_command_line_argument=no
10674 fi
10675 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10676 fi
10677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10678 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10679 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10680 CFLAGS="$xorg_testset_save_CFLAGS"
10681 fi
10682
10683 found="no"
10684
10685 if test $found = "no" ; then
10686 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10687 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10688 fi
10689
10690 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10691 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10692 fi
10693
10694 CFLAGS="$CFLAGS -pedantic"
10695
10696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
10697 printf %s "checking if $CC supports -pedantic... " >&6; }
10698 cacheid=xorg_cv_cc_flag__pedantic
10699 if eval test \${$cacheid+y}
10700 then :
10701 printf %s "(cached) " >&6
10702 else $as_nop
10703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10704 /* end confdefs.h. */
10705 int i;
10706 int
10707 main (void)
10708 {
10709
10710 ;
10711 return 0;
10712 }
10713 _ACEOF
10714 if ac_fn_c_try_link "$LINENO"
10715 then :
10716 eval $cacheid=yes
10717 else $as_nop
10718 eval $cacheid=no
10719 fi
10720 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10721 conftest$ac_exeext conftest.$ac_ext
10722 fi
10723
10724
10725 CFLAGS="$xorg_testset_save_CFLAGS"
10726
10727 eval supported=\$$cacheid
10728 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10729 printf "%s\n" "$supported" >&6; }
10730 if test "$supported" = "yes" ; then
10731 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
10732 found="yes"
10733 fi
10734 fi
10735
10736
10737
10738
10739
10740
10741
10742
10743
10744
10745
10746
10747
10748
10749
10750 xorg_testset_save_CFLAGS="$CFLAGS"
10751
10752 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10753 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10754 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10755 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10756 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10757 then :
10758 printf %s "(cached) " >&6
10759 else $as_nop
10760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10761 /* end confdefs.h. */
10762 int i;
10763 _ACEOF
10764 if ac_fn_c_try_compile "$LINENO"
10765 then :
10766 xorg_cv_cc_flag_unknown_warning_option=yes
10767 else $as_nop
10768 xorg_cv_cc_flag_unknown_warning_option=no
10769 fi
10770 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10771 fi
10772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10773 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10774 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10775 CFLAGS="$xorg_testset_save_CFLAGS"
10776 fi
10777
10778 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10779 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10780 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10781 fi
10782 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10783 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10784 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10785 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10786 then :
10787 printf %s "(cached) " >&6
10788 else $as_nop
10789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10790 /* end confdefs.h. */
10791 int i;
10792 _ACEOF
10793 if ac_fn_c_try_compile "$LINENO"
10794 then :
10795 xorg_cv_cc_flag_unused_command_line_argument=yes
10796 else $as_nop
10797 xorg_cv_cc_flag_unused_command_line_argument=no
10798 fi
10799 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10800 fi
10801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10802 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10803 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10804 CFLAGS="$xorg_testset_save_CFLAGS"
10805 fi
10806
10807 found="no"
10808
10809 if test $found = "no" ; then
10810 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10811 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10812 fi
10813
10814 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10815 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10816 fi
10817
10818 CFLAGS="$CFLAGS -Werror"
10819
10820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
10821 printf %s "checking if $CC supports -Werror... " >&6; }
10822 cacheid=xorg_cv_cc_flag__Werror
10823 if eval test \${$cacheid+y}
10824 then :
10825 printf %s "(cached) " >&6
10826 else $as_nop
10827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10828 /* end confdefs.h. */
10829 int i;
10830 int
10831 main (void)
10832 {
10833
10834 ;
10835 return 0;
10836 }
10837 _ACEOF
10838 if ac_fn_c_try_link "$LINENO"
10839 then :
10840 eval $cacheid=yes
10841 else $as_nop
10842 eval $cacheid=no
10843 fi
10844 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10845 conftest$ac_exeext conftest.$ac_ext
10846 fi
10847
10848
10849 CFLAGS="$xorg_testset_save_CFLAGS"
10850
10851 eval supported=\$$cacheid
10852 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10853 printf "%s\n" "$supported" >&6; }
10854 if test "$supported" = "yes" ; then
10855 STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
10856 found="yes"
10857 fi
10858 fi
10859
10860 if test $found = "no" ; then
10861 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10862 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10863 fi
10864
10865 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10866 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10867 fi
10868
10869 CFLAGS="$CFLAGS -errwarn"
10870
10871 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
10872 printf %s "checking if $CC supports -errwarn... " >&6; }
10873 cacheid=xorg_cv_cc_flag__errwarn
10874 if eval test \${$cacheid+y}
10875 then :
10876 printf %s "(cached) " >&6
10877 else $as_nop
10878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10879 /* end confdefs.h. */
10880 int i;
10881 int
10882 main (void)
10883 {
10884
10885 ;
10886 return 0;
10887 }
10888 _ACEOF
10889 if ac_fn_c_try_link "$LINENO"
10890 then :
10891 eval $cacheid=yes
10892 else $as_nop
10893 eval $cacheid=no
10894 fi
10895 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10896 conftest$ac_exeext conftest.$ac_ext
10897 fi
10898
10899
10900 CFLAGS="$xorg_testset_save_CFLAGS"
10901
10902 eval supported=\$$cacheid
10903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10904 printf "%s\n" "$supported" >&6; }
10905 if test "$supported" = "yes" ; then
10906 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
10907 found="yes"
10908 fi
10909 fi
10910
10911
10912
10913 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
10914 # activate it with -Werror, so we add it here explicitly.
10915
10916
10917
10918
10919
10920
10921
10922
10923
10924
10925
10926
10927
10928 xorg_testset_save_CFLAGS="$CFLAGS"
10929
10930 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10931 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10933 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10934 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10935 then :
10936 printf %s "(cached) " >&6
10937 else $as_nop
10938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10939 /* end confdefs.h. */
10940 int i;
10941 _ACEOF
10942 if ac_fn_c_try_compile "$LINENO"
10943 then :
10944 xorg_cv_cc_flag_unknown_warning_option=yes
10945 else $as_nop
10946 xorg_cv_cc_flag_unknown_warning_option=no
10947 fi
10948 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10949 fi
10950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10951 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10952 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10953 CFLAGS="$xorg_testset_save_CFLAGS"
10954 fi
10955
10956 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10957 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10958 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10959 fi
10960 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10962 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10963 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10964 then :
10965 printf %s "(cached) " >&6
10966 else $as_nop
10967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10968 /* end confdefs.h. */
10969 int i;
10970 _ACEOF
10971 if ac_fn_c_try_compile "$LINENO"
10972 then :
10973 xorg_cv_cc_flag_unused_command_line_argument=yes
10974 else $as_nop
10975 xorg_cv_cc_flag_unused_command_line_argument=no
10976 fi
10977 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10978 fi
10979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10980 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10981 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10982 CFLAGS="$xorg_testset_save_CFLAGS"
10983 fi
10984
10985 found="no"
10986
10987 if test $found = "no" ; then
10988 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10989 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10990 fi
10991
10992 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10993 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10994 fi
10995
10996 CFLAGS="$CFLAGS -Werror=attributes"
10997
10998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
10999 printf %s "checking if $CC supports -Werror=attributes... " >&6; }
11000 cacheid=xorg_cv_cc_flag__Werror_attributes
11001 if eval test \${$cacheid+y}
11002 then :
11003 printf %s "(cached) " >&6
11004 else $as_nop
11005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11006 /* end confdefs.h. */
11007 int i;
11008 int
11009 main (void)
11010 {
11011
11012 ;
11013 return 0;
11014 }
11015 _ACEOF
11016 if ac_fn_c_try_link "$LINENO"
11017 then :
11018 eval $cacheid=yes
11019 else $as_nop
11020 eval $cacheid=no
11021 fi
11022 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11023 conftest$ac_exeext conftest.$ac_ext
11024 fi
11025
11026
11027 CFLAGS="$xorg_testset_save_CFLAGS"
11028
11029 eval supported=\$$cacheid
11030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11031 printf "%s\n" "$supported" >&6; }
11032 if test "$supported" = "yes" ; then
11033 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
11034 found="yes"
11035 fi
11036 fi
11037
11038
11039
11040 if test "x$STRICT_COMPILE" = "xyes"; then
11041 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
11042 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
11043 fi
11044
11045
11046
11047
11048
11049
11050
11051
11052 cat >>confdefs.h <<_ACEOF
11053 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
11054 _ACEOF
11055
11056 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
11057 if test "x$PVM" = "x"; then
11058 PVM="0"
11059 fi
11060
11061 printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h
11062
11063 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
11064 if test "x$PVP" = "x"; then
11065 PVP="0"
11066 fi
11067
11068 printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h
11069
11070
11071
11072 CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \
11073 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
11074 || (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \
11075 touch \$(top_srcdir)/ChangeLog; \
11076 echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))"
11077
11078
11079
11080
11081 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
11082 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
11083 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
11084 || (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \
11085 touch \$(top_srcdir)/INSTALL; \
11086 echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))"
11087
11088
11089
11090
11091
11092
11093 case $host_os in
11094 solaris*)
11095 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we
11096 # check for a man page file found in later versions that use
11097 # traditional section numbers instead
11098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5
11099 printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; }
11100 if test ${ac_cv_file__usr_share_man_man7_attributes_7+y}
11101 then :
11102 printf %s "(cached) " >&6
11103 else $as_nop
11104 test "$cross_compiling" = yes &&
11105 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
11106 if test -r "/usr/share/man/man7/attributes.7"; then
11107 ac_cv_file__usr_share_man_man7_attributes_7=yes
11108 else
11109 ac_cv_file__usr_share_man_man7_attributes_7=no
11110 fi
11111 fi
11112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5
11113 printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; }
11114 if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes
11115 then :
11116 SYSV_MAN_SECTIONS=false
11117 else $as_nop
11118 SYSV_MAN_SECTIONS=true
11119 fi
11120
11121 ;;
11122 *) SYSV_MAN_SECTIONS=false ;;
11123 esac
11124
11125 if test x$APP_MAN_SUFFIX = x ; then
11126 APP_MAN_SUFFIX=1
11127 fi
11128 if test x$APP_MAN_DIR = x ; then
11129 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
11130 fi
11131
11132 if test x$LIB_MAN_SUFFIX = x ; then
11133 LIB_MAN_SUFFIX=3
11134 fi
11135 if test x$LIB_MAN_DIR = x ; then
11136 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
11137 fi
11138
11139 if test x$FILE_MAN_SUFFIX = x ; then
11140 case $SYSV_MAN_SECTIONS in
11141 true) FILE_MAN_SUFFIX=4 ;;
11142 *) FILE_MAN_SUFFIX=5 ;;
11143 esac
11144 fi
11145 if test x$FILE_MAN_DIR = x ; then
11146 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
11147 fi
11148
11149 if test x$MISC_MAN_SUFFIX = x ; then
11150 case $SYSV_MAN_SECTIONS in
11151 true) MISC_MAN_SUFFIX=5 ;;
11152 *) MISC_MAN_SUFFIX=7 ;;
11153 esac
11154 fi
11155 if test x$MISC_MAN_DIR = x ; then
11156 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
11157 fi
11158
11159 if test x$DRIVER_MAN_SUFFIX = x ; then
11160 case $SYSV_MAN_SECTIONS in
11161 true) DRIVER_MAN_SUFFIX=7 ;;
11162 *) DRIVER_MAN_SUFFIX=4 ;;
11163 esac
11164 fi
11165 if test x$DRIVER_MAN_DIR = x ; then
11166 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
11167 fi
11168
11169 if test x$ADMIN_MAN_SUFFIX = x ; then
11170 case $SYSV_MAN_SECTIONS in
11171 true) ADMIN_MAN_SUFFIX=1m ;;
11172 *) ADMIN_MAN_SUFFIX=8 ;;
11173 esac
11174 fi
11175 if test x$ADMIN_MAN_DIR = x ; then
11176 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
11177 fi
11178
11179
11180
11181
11182
11183
11184
11185
11186
11187
11188
11189
11190
11191
11192
11193 XORG_MAN_PAGE="X Version 11"
11194
11195 MAN_SUBSTS="\
11196 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11197 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11198 -e 's|__xservername__|Xorg|g' \
11199 -e 's|__xconfigfile__|xorg.conf|g' \
11200 -e 's|__projectroot__|\$(prefix)|g' \
11201 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
11202 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
11203 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
11204 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
11205 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
11206 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
11207 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
11208
11209
11210
11211 # Check whether --enable-silent-rules was given.
11212 if test ${enable_silent_rules+y}
11213 then :
11214 enableval=$enable_silent_rules;
11215 fi
11216
11217 case $enable_silent_rules in # (((
11218 yes) AM_DEFAULT_VERBOSITY=0;;
11219 no) AM_DEFAULT_VERBOSITY=1;;
11220 *) AM_DEFAULT_VERBOSITY=0;;
11221 esac
11222 am_make=${MAKE-make}
11223 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
11224 printf %s "checking whether $am_make supports nested variables... " >&6; }
11225 if test ${am_cv_make_support_nested_variables+y}
11226 then :
11227 printf %s "(cached) " >&6
11228 else $as_nop
11229 if printf "%s\n" 'TRUE=$(BAR$(V))
11230 BAR0=false
11231 BAR1=true
11232 V=1
11233 am__doit:
11234 @$(TRUE)
11235 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
11236 am_cv_make_support_nested_variables=yes
11237 else
11238 am_cv_make_support_nested_variables=no
11239 fi
11240 fi
11241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
11242 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
11243 if test $am_cv_make_support_nested_variables = yes; then
11244 AM_V='$(V)'
11245 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
11246 else
11247 AM_V=$AM_DEFAULT_VERBOSITY
11248 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
11249 fi
11250 AM_BACKSLASH='\'
11251
11252
11253
11254
11255 # Initialize libtool
11256 # Check whether --enable-static was given.
11257 if test ${enable_static+y}
11258 then :
11259 enableval=$enable_static; p=${PACKAGE-default}
11260 case $enableval in
11261 yes) enable_static=yes ;;
11262 no) enable_static=no ;;
11263 *)
11264 enable_static=no
11265 # Look at the argument we got. We use all the common list separators.
11266 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11267 for pkg in $enableval; do
11268 IFS=$lt_save_ifs
11269 if test "X$pkg" = "X$p"; then
11270 enable_static=yes
11271 fi
11272 done
11273 IFS=$lt_save_ifs
11274 ;;
11275 esac
11276 else $as_nop
11277 enable_static=no
11278 fi
11279
11280
11281
11282
11283
11284
11285
11286
11287
11288 case `pwd` in
11289 *\ * | *\ *)
11290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
11291 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
11292 esac
11293
11294
11295
11296 macro_version='2.4.7'
11297 macro_revision='2.4.7'
11298
11299
11300
11301
11302
11303
11304
11305
11306
11307
11308
11309
11310
11311
11312 ltmain=$ac_aux_dir/ltmain.sh
11313
11314 # Backslashify metacharacters that are still active within
11315 # double-quoted strings.
11316 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
11317
11318 # Same as above, but do not quote variable references.
11319 double_quote_subst='s/\(["`\\]\)/\\\1/g'
11320
11321 # Sed substitution to delay expansion of an escaped shell variable in a
11322 # double_quote_subst'ed string.
11323 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11324
11325 # Sed substitution to delay expansion of an escaped single quote.
11326 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
11327
11328 # Sed substitution to avoid accidental globbing in evaled expressions
11329 no_glob_subst='s/\*/\\\*/g'
11330
11331 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11332 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
11333 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
11334
11335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
11336 printf %s "checking how to print strings... " >&6; }
11337 # Test print first, because it will be a builtin if present.
11338 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
11339 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
11340 ECHO='print -r --'
11341 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
11342 ECHO='printf %s\n'
11343 else
11344 # Use this function as a fallback that always works.
11345 func_fallback_echo ()
11346 {
11347 eval 'cat <<_LTECHO_EOF
11348 $1
11349 _LTECHO_EOF'
11350 }
11351 ECHO='func_fallback_echo'
11352 fi
11353
11354 # func_echo_all arg...
11355 # Invoke $ECHO with all args, space-separated.
11356 func_echo_all ()
11357 {
11358 $ECHO ""
11359 }
11360
11361 case $ECHO in
11362 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
11363 printf "%s\n" "printf" >&6; } ;;
11364 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
11365 printf "%s\n" "print -r" >&6; } ;;
11366 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
11367 printf "%s\n" "cat" >&6; } ;;
11368 esac
11369
11370
11371
11372
11373
11374
11375
11376
11377
11378
11379
11380
11381
11382
11383 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
11384 printf %s "checking for a sed that does not truncate output... " >&6; }
11385 if test ${ac_cv_path_SED+y}
11386 then :
11387 printf %s "(cached) " >&6
11388 else $as_nop
11389 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
11390 for ac_i in 1 2 3 4 5 6 7; do
11391 ac_script="$ac_script$as_nl$ac_script"
11392 done
11393 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
11394 { ac_script=; unset ac_script;}
11395 if test -z "$SED"; then
11396 ac_path_SED_found=false
11397 # Loop through the user's path and test for each of PROGNAME-LIST
11398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11399 for as_dir in $PATH
11400 do
11401 IFS=$as_save_IFS
11402 case $as_dir in #(((
11403 '') as_dir=./ ;;
11404 */) ;;
11405 *) as_dir=$as_dir/ ;;
11406 esac
11407 for ac_prog in sed gsed
11408 do
11409 for ac_exec_ext in '' $ac_executable_extensions; do
11410 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
11411 as_fn_executable_p "$ac_path_SED" || continue
11412 # Check for GNU ac_path_SED and select it if it is found.
11413 # Check for GNU $ac_path_SED
11414 case `"$ac_path_SED" --version 2>&1` in
11415 *GNU*)
11416 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
11417 *)
11418 ac_count=0
11419 printf %s 0123456789 >"conftest.in"
11420 while :
11421 do
11422 cat "conftest.in" "conftest.in" >"conftest.tmp"
11423 mv "conftest.tmp" "conftest.in"
11424 cp "conftest.in" "conftest.nl"
11425 printf "%s\n" '' >> "conftest.nl"
11426 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
11427 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11428 as_fn_arith $ac_count + 1 && ac_count=$as_val
11429 if test $ac_count -gt ${ac_path_SED_max-0}; then
11430 # Best one so far, save it but keep looking for a better one
11431 ac_cv_path_SED="$ac_path_SED"
11432 ac_path_SED_max=$ac_count
11433 fi
11434 # 10*(2^10) chars as input seems more than enough
11435 test $ac_count -gt 10 && break
11436 done
11437 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11438 esac
11439
11440 $ac_path_SED_found && break 3
11441 done
11442 done
11443 done
11444 IFS=$as_save_IFS
11445 if test -z "$ac_cv_path_SED"; then
11446 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
11447 fi
11448 else
11449 ac_cv_path_SED=$SED
11450 fi
11451
11452 fi
11453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
11454 printf "%s\n" "$ac_cv_path_SED" >&6; }
11455 SED="$ac_cv_path_SED"
11456 rm -f conftest.sed
11457
11458 test -z "$SED" && SED=sed
11459 Xsed="$SED -e 1s/^X//"
11460
11461
11462
11463
11464
11465
11466
11467
11468
11469
11470
11471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
11472 printf %s "checking for grep that handles long lines and -e... " >&6; }
11473 if test ${ac_cv_path_GREP+y}
11474 then :
11475 printf %s "(cached) " >&6
11476 else $as_nop
11477 if test -z "$GREP"; then
11478 ac_path_GREP_found=false
11479 # Loop through the user's path and test for each of PROGNAME-LIST
11480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11481 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11482 do
11483 IFS=$as_save_IFS
11484 case $as_dir in #(((
11485 '') as_dir=./ ;;
11486 */) ;;
11487 *) as_dir=$as_dir/ ;;
11488 esac
11489 for ac_prog in grep ggrep
11490 do
11491 for ac_exec_ext in '' $ac_executable_extensions; do
11492 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
11493 as_fn_executable_p "$ac_path_GREP" || continue
11494 # Check for GNU ac_path_GREP and select it if it is found.
11495 # Check for GNU $ac_path_GREP
11496 case `"$ac_path_GREP" --version 2>&1` in
11497 *GNU*)
11498 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
11499 *)
11500 ac_count=0
11501 printf %s 0123456789 >"conftest.in"
11502 while :
11503 do
11504 cat "conftest.in" "conftest.in" >"conftest.tmp"
11505 mv "conftest.tmp" "conftest.in"
11506 cp "conftest.in" "conftest.nl"
11507 printf "%s\n" 'GREP' >> "conftest.nl"
11508 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11509 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11510 as_fn_arith $ac_count + 1 && ac_count=$as_val
11511 if test $ac_count -gt ${ac_path_GREP_max-0}; then
11512 # Best one so far, save it but keep looking for a better one
11513 ac_cv_path_GREP="$ac_path_GREP"
11514 ac_path_GREP_max=$ac_count
11515 fi
11516 # 10*(2^10) chars as input seems more than enough
11517 test $ac_count -gt 10 && break
11518 done
11519 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11520 esac
11521
11522 $ac_path_GREP_found && break 3
11523 done
11524 done
11525 done
11526 IFS=$as_save_IFS
11527 if test -z "$ac_cv_path_GREP"; then
11528 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11529 fi
11530 else
11531 ac_cv_path_GREP=$GREP
11532 fi
11533
11534 fi
11535 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
11536 printf "%s\n" "$ac_cv_path_GREP" >&6; }
11537 GREP="$ac_cv_path_GREP"
11538
11539
11540 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
11541 printf %s "checking for egrep... " >&6; }
11542 if test ${ac_cv_path_EGREP+y}
11543 then :
11544 printf %s "(cached) " >&6
11545 else $as_nop
11546 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
11547 then ac_cv_path_EGREP="$GREP -E"
11548 else
11549 if test -z "$EGREP"; then
11550 ac_path_EGREP_found=false
11551 # Loop through the user's path and test for each of PROGNAME-LIST
11552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11553 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11554 do
11555 IFS=$as_save_IFS
11556 case $as_dir in #(((
11557 '') as_dir=./ ;;
11558 */) ;;
11559 *) as_dir=$as_dir/ ;;
11560 esac
11561 for ac_prog in egrep
11562 do
11563 for ac_exec_ext in '' $ac_executable_extensions; do
11564 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
11565 as_fn_executable_p "$ac_path_EGREP" || continue
11566 # Check for GNU ac_path_EGREP and select it if it is found.
11567 # Check for GNU $ac_path_EGREP
11568 case `"$ac_path_EGREP" --version 2>&1` in
11569 *GNU*)
11570 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
11571 *)
11572 ac_count=0
11573 printf %s 0123456789 >"conftest.in"
11574 while :
11575 do
11576 cat "conftest.in" "conftest.in" >"conftest.tmp"
11577 mv "conftest.tmp" "conftest.in"
11578 cp "conftest.in" "conftest.nl"
11579 printf "%s\n" 'EGREP' >> "conftest.nl"
11580 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11581 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11582 as_fn_arith $ac_count + 1 && ac_count=$as_val
11583 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
11584 # Best one so far, save it but keep looking for a better one
11585 ac_cv_path_EGREP="$ac_path_EGREP"
11586 ac_path_EGREP_max=$ac_count
11587 fi
11588 # 10*(2^10) chars as input seems more than enough
11589 test $ac_count -gt 10 && break
11590 done
11591 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11592 esac
11593
11594 $ac_path_EGREP_found && break 3
11595 done
11596 done
11597 done
11598 IFS=$as_save_IFS
11599 if test -z "$ac_cv_path_EGREP"; then
11600 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11601 fi
11602 else
11603 ac_cv_path_EGREP=$EGREP
11604 fi
11605
11606 fi
11607 fi
11608 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
11609 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
11610 EGREP="$ac_cv_path_EGREP"
11611
11612
11613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
11614 printf %s "checking for fgrep... " >&6; }
11615 if test ${ac_cv_path_FGREP+y}
11616 then :
11617 printf %s "(cached) " >&6
11618 else $as_nop
11619 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
11620 then ac_cv_path_FGREP="$GREP -F"
11621 else
11622 if test -z "$FGREP"; then
11623 ac_path_FGREP_found=false
11624 # Loop through the user's path and test for each of PROGNAME-LIST
11625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11626 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11627 do
11628 IFS=$as_save_IFS
11629 case $as_dir in #(((
11630 '') as_dir=./ ;;
11631 */) ;;
11632 *) as_dir=$as_dir/ ;;
11633 esac
11634 for ac_prog in fgrep
11635 do
11636 for ac_exec_ext in '' $ac_executable_extensions; do
11637 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
11638 as_fn_executable_p "$ac_path_FGREP" || continue
11639 # Check for GNU ac_path_FGREP and select it if it is found.
11640 # Check for GNU $ac_path_FGREP
11641 case `"$ac_path_FGREP" --version 2>&1` in
11642 *GNU*)
11643 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
11644 *)
11645 ac_count=0
11646 printf %s 0123456789 >"conftest.in"
11647 while :
11648 do
11649 cat "conftest.in" "conftest.in" >"conftest.tmp"
11650 mv "conftest.tmp" "conftest.in"
11651 cp "conftest.in" "conftest.nl"
11652 printf "%s\n" 'FGREP' >> "conftest.nl"
11653 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
11654 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11655 as_fn_arith $ac_count + 1 && ac_count=$as_val
11656 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
11657 # Best one so far, save it but keep looking for a better one
11658 ac_cv_path_FGREP="$ac_path_FGREP"
11659 ac_path_FGREP_max=$ac_count
11660 fi
11661 # 10*(2^10) chars as input seems more than enough
11662 test $ac_count -gt 10 && break
11663 done
11664 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11665 esac
11666
11667 $ac_path_FGREP_found && break 3
11668 done
11669 done
11670 done
11671 IFS=$as_save_IFS
11672 if test -z "$ac_cv_path_FGREP"; then
11673 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11674 fi
11675 else
11676 ac_cv_path_FGREP=$FGREP
11677 fi
11678
11679 fi
11680 fi
11681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
11682 printf "%s\n" "$ac_cv_path_FGREP" >&6; }
11683 FGREP="$ac_cv_path_FGREP"
11684
11685
11686 test -z "$GREP" && GREP=grep
11687
11688
11689
11690
11691
11692
11693
11694
11695
11696
11697
11698
11699
11700
11701
11702
11703
11704
11705
11706 # Check whether --with-gnu-ld was given.
11707 if test ${with_gnu_ld+y}
11708 then :
11709 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
11710 else $as_nop
11711 with_gnu_ld=no
11712 fi
11713
11714 ac_prog=ld
11715 if test yes = "$GCC"; then
11716 # Check if gcc -print-prog-name=ld gives a path.
11717 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
11718 printf %s "checking for ld used by $CC... " >&6; }
11719 case $host in
11720 *-*-mingw*)
11721 # gcc leaves a trailing carriage return, which upsets mingw
11722 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11723 *)
11724 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11725 esac
11726 case $ac_prog in
11727 # Accept absolute paths.
11728 [\\/]* | ?:[\\/]*)
11729 re_direlt='/[^/][^/]*/\.\./'
11730 # Canonicalize the pathname of ld
11731 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
11732 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
11733 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
11734 done
11735 test -z "$LD" && LD=$ac_prog
11736 ;;
11737 "")
11738 # If it fails, then pretend we aren't using GCC.
11739 ac_prog=ld
11740 ;;
11741 *)
11742 # If it is relative, then search for the first ld in PATH.
11743 with_gnu_ld=unknown
11744 ;;
11745 esac
11746 elif test yes = "$with_gnu_ld"; then
11747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11748 printf %s "checking for GNU ld... " >&6; }
11749 else
11750 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11751 printf %s "checking for non-GNU ld... " >&6; }
11752 fi
11753 if test ${lt_cv_path_LD+y}
11754 then :
11755 printf %s "(cached) " >&6
11756 else $as_nop
11757 if test -z "$LD"; then
11758 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11759 for ac_dir in $PATH; do
11760 IFS=$lt_save_ifs
11761 test -z "$ac_dir" && ac_dir=.
11762 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11763 lt_cv_path_LD=$ac_dir/$ac_prog
11764 # Check to see if the program is GNU ld. I'd rather use --version,
11765 # but apparently some variants of GNU ld only accept -v.
11766 # Break only if it was the GNU/non-GNU ld that we prefer.
11767 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11768 *GNU* | *'with BFD'*)
11769 test no != "$with_gnu_ld" && break
11770 ;;
11771 *)
11772 test yes != "$with_gnu_ld" && break
11773 ;;
11774 esac
11775 fi
11776 done
11777 IFS=$lt_save_ifs
11778 else
11779 lt_cv_path_LD=$LD # Let the user override the test with a path.
11780 fi
11781 fi
11782
11783 LD=$lt_cv_path_LD
11784 if test -n "$LD"; then
11785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11786 printf "%s\n" "$LD" >&6; }
11787 else
11788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11789 printf "%s\n" "no" >&6; }
11790 fi
11791 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
11792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11793 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
11794 if test ${lt_cv_prog_gnu_ld+y}
11795 then :
11796 printf %s "(cached) " >&6
11797 else $as_nop
11798 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11799 case `$LD -v 2>&1 </dev/null` in
11800 *GNU* | *'with BFD'*)
11801 lt_cv_prog_gnu_ld=yes
11802 ;;
11803 *)
11804 lt_cv_prog_gnu_ld=no
11805 ;;
11806 esac
11807 fi
11808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
11809 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
11810 with_gnu_ld=$lt_cv_prog_gnu_ld
11811
11812
11813
11814
11815
11816
11817
11818
11819
11820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
11821 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
11822 if test ${lt_cv_path_NM+y}
11823 then :
11824 printf %s "(cached) " >&6
11825 else $as_nop
11826 if test -n "$NM"; then
11827 # Let the user override the test.
11828 lt_cv_path_NM=$NM
11829 else
11830 lt_nm_to_check=${ac_tool_prefix}nm
11831 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
11832 lt_nm_to_check="$lt_nm_to_check nm"
11833 fi
11834 for lt_tmp_nm in $lt_nm_to_check; do
11835 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11836 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
11837 IFS=$lt_save_ifs
11838 test -z "$ac_dir" && ac_dir=.
11839 tmp_nm=$ac_dir/$lt_tmp_nm
11840 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
11841 # Check to see if the nm accepts a BSD-compat flag.
11842 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
11843 # nm: unknown option "B" ignored
11844 # Tru64's nm complains that /dev/null is an invalid object file
11845 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
11846 case $build_os in
11847 mingw*) lt_bad_file=conftest.nm/nofile ;;
11848 *) lt_bad_file=/dev/null ;;
11849 esac
11850 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
11851 *$lt_bad_file* | *'Invalid file or object type'*)
11852 lt_cv_path_NM="$tmp_nm -B"
11853 break 2
11854 ;;
11855 *)
11856 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
11857 */dev/null*)
11858 lt_cv_path_NM="$tmp_nm -p"
11859 break 2
11860 ;;
11861 *)
11862 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
11863 continue # so that we can try to find one that supports BSD flags
11864 ;;
11865 esac
11866 ;;
11867 esac
11868 fi
11869 done
11870 IFS=$lt_save_ifs
11871 done
11872 : ${lt_cv_path_NM=no}
11873 fi
11874 fi
11875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
11876 printf "%s\n" "$lt_cv_path_NM" >&6; }
11877 if test no != "$lt_cv_path_NM"; then
11878 NM=$lt_cv_path_NM
11879 else
11880 # Didn't find any BSD compatible name lister, look for dumpbin.
11881 if test -n "$DUMPBIN"; then :
11882 # Let the user override the test.
11883 else
11884 if test -n "$ac_tool_prefix"; then
11885 for ac_prog in dumpbin "link -dump"
11886 do
11887 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11888 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11890 printf %s "checking for $ac_word... " >&6; }
11891 if test ${ac_cv_prog_DUMPBIN+y}
11892 then :
11893 printf %s "(cached) " >&6
11894 else $as_nop
11895 if test -n "$DUMPBIN"; then
11896 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
11897 else
11898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11899 for as_dir in $PATH
11900 do
11901 IFS=$as_save_IFS
11902 case $as_dir in #(((
11903 '') as_dir=./ ;;
11904 */) ;;
11905 *) as_dir=$as_dir/ ;;
11906 esac
11907 for ac_exec_ext in '' $ac_executable_extensions; do
11908 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11909 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
11910 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11911 break 2
11912 fi
11913 done
11914 done
11915 IFS=$as_save_IFS
11916
11917 fi
11918 fi
11919 DUMPBIN=$ac_cv_prog_DUMPBIN
11920 if test -n "$DUMPBIN"; then
11921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
11922 printf "%s\n" "$DUMPBIN" >&6; }
11923 else
11924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11925 printf "%s\n" "no" >&6; }
11926 fi
11927
11928
11929 test -n "$DUMPBIN" && break
11930 done
11931 fi
11932 if test -z "$DUMPBIN"; then
11933 ac_ct_DUMPBIN=$DUMPBIN
11934 for ac_prog in dumpbin "link -dump"
11935 do
11936 # Extract the first word of "$ac_prog", so it can be a program name with args.
11937 set dummy $ac_prog; ac_word=$2
11938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11939 printf %s "checking for $ac_word... " >&6; }
11940 if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
11941 then :
11942 printf %s "(cached) " >&6
11943 else $as_nop
11944 if test -n "$ac_ct_DUMPBIN"; then
11945 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
11946 else
11947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11948 for as_dir in $PATH
11949 do
11950 IFS=$as_save_IFS
11951 case $as_dir in #(((
11952 '') as_dir=./ ;;
11953 */) ;;
11954 *) as_dir=$as_dir/ ;;
11955 esac
11956 for ac_exec_ext in '' $ac_executable_extensions; do
11957 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11958 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
11959 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11960 break 2
11961 fi
11962 done
11963 done
11964 IFS=$as_save_IFS
11965
11966 fi
11967 fi
11968 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
11969 if test -n "$ac_ct_DUMPBIN"; then
11970 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
11971 printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
11972 else
11973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11974 printf "%s\n" "no" >&6; }
11975 fi
11976
11977
11978 test -n "$ac_ct_DUMPBIN" && break
11979 done
11980
11981 if test "x$ac_ct_DUMPBIN" = x; then
11982 DUMPBIN=":"
11983 else
11984 case $cross_compiling:$ac_tool_warned in
11985 yes:)
11986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11987 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11988 ac_tool_warned=yes ;;
11989 esac
11990 DUMPBIN=$ac_ct_DUMPBIN
11991 fi
11992 fi
11993
11994 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
11995 *COFF*)
11996 DUMPBIN="$DUMPBIN -symbols -headers"
11997 ;;
11998 *)
11999 DUMPBIN=:
12000 ;;
12001 esac
12002 fi
12003
12004 if test : != "$DUMPBIN"; then
12005 NM=$DUMPBIN
12006 fi
12007 fi
12008 test -z "$NM" && NM=nm
12009
12010
12011
12012
12013
12014
12015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
12016 printf %s "checking the name lister ($NM) interface... " >&6; }
12017 if test ${lt_cv_nm_interface+y}
12018 then :
12019 printf %s "(cached) " >&6
12020 else $as_nop
12021 lt_cv_nm_interface="BSD nm"
12022 echo "int some_variable = 0;" > conftest.$ac_ext
12023 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
12024 (eval "$ac_compile" 2>conftest.err)
12025 cat conftest.err >&5
12026 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
12027 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
12028 cat conftest.err >&5
12029 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
12030 cat conftest.out >&5
12031 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
12032 lt_cv_nm_interface="MS dumpbin"
12033 fi
12034 rm -f conftest*
12035 fi
12036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
12037 printf "%s\n" "$lt_cv_nm_interface" >&6; }
12038
12039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
12040 printf %s "checking whether ln -s works... " >&6; }
12041 LN_S=$as_ln_s
12042 if test "$LN_S" = "ln -s"; then
12043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12044 printf "%s\n" "yes" >&6; }
12045 else
12046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
12047 printf "%s\n" "no, using $LN_S" >&6; }
12048 fi
12049
12050 # find the maximum length of command line arguments
12051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
12052 printf %s "checking the maximum length of command line arguments... " >&6; }
12053 if test ${lt_cv_sys_max_cmd_len+y}
12054 then :
12055 printf %s "(cached) " >&6
12056 else $as_nop
12057 i=0
12058 teststring=ABCD
12059
12060 case $build_os in
12061 msdosdjgpp*)
12062 # On DJGPP, this test can blow up pretty badly due to problems in libc
12063 # (any single argument exceeding 2000 bytes causes a buffer overrun
12064 # during glob expansion). Even if it were fixed, the result of this
12065 # check would be larger than it should be.
12066 lt_cv_sys_max_cmd_len=12288; # 12K is about right
12067 ;;
12068
12069 gnu*)
12070 # Under GNU Hurd, this test is not required because there is
12071 # no limit to the length of command line arguments.
12072 # Libtool will interpret -1 as no limit whatsoever
12073 lt_cv_sys_max_cmd_len=-1;
12074 ;;
12075
12076 cygwin* | mingw* | cegcc*)
12077 # On Win9x/ME, this test blows up -- it succeeds, but takes
12078 # about 5 minutes as the teststring grows exponentially.
12079 # Worse, since 9x/ME are not pre-emptively multitasking,
12080 # you end up with a "frozen" computer, even though with patience
12081 # the test eventually succeeds (with a max line length of 256k).
12082 # Instead, let's just punt: use the minimum linelength reported by
12083 # all of the supported platforms: 8192 (on NT/2K/XP).
12084 lt_cv_sys_max_cmd_len=8192;
12085 ;;
12086
12087 mint*)
12088 # On MiNT this can take a long time and run out of memory.
12089 lt_cv_sys_max_cmd_len=8192;
12090 ;;
12091
12092 amigaos*)
12093 # On AmigaOS with pdksh, this test takes hours, literally.
12094 # So we just punt and use a minimum line length of 8192.
12095 lt_cv_sys_max_cmd_len=8192;
12096 ;;
12097
12098 bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
12099 # This has been around since 386BSD, at least. Likely further.
12100 if test -x /sbin/sysctl; then
12101 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
12102 elif test -x /usr/sbin/sysctl; then
12103 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
12104 else
12105 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
12106 fi
12107 # And add a safety zone
12108 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12109 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12110 ;;
12111
12112 interix*)
12113 # We know the value 262144 and hardcode it with a safety zone (like BSD)
12114 lt_cv_sys_max_cmd_len=196608
12115 ;;
12116
12117 os2*)
12118 # The test takes a long time on OS/2.
12119 lt_cv_sys_max_cmd_len=8192
12120 ;;
12121
12122 osf*)
12123 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
12124 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
12125 # nice to cause kernel panics so lets avoid the loop below.
12126 # First set a reasonable default.
12127 lt_cv_sys_max_cmd_len=16384
12128 #
12129 if test -x /sbin/sysconfig; then
12130 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
12131 *1*) lt_cv_sys_max_cmd_len=-1 ;;
12132 esac
12133 fi
12134 ;;
12135 sco3.2v5*)
12136 lt_cv_sys_max_cmd_len=102400
12137 ;;
12138 sysv5* | sco5v6* | sysv4.2uw2*)
12139 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
12140 if test -n "$kargmax"; then
12141 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'`
12142 else
12143 lt_cv_sys_max_cmd_len=32768
12144 fi
12145 ;;
12146 *)
12147 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
12148 if test -n "$lt_cv_sys_max_cmd_len" && \
12149 test undefined != "$lt_cv_sys_max_cmd_len"; then
12150 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12151 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12152 else
12153 # Make teststring a little bigger before we do anything with it.
12154 # a 1K string should be a reasonable start.
12155 for i in 1 2 3 4 5 6 7 8; do
12156 teststring=$teststring$teststring
12157 done
12158 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
12159 # If test is not a shell built-in, we'll probably end up computing a
12160 # maximum length that is only half of the actual maximum length, but
12161 # we can't tell.
12162 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
12163 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
12164 test 17 != "$i" # 1/2 MB should be enough
12165 do
12166 i=`expr $i + 1`
12167 teststring=$teststring$teststring
12168 done
12169 # Only check the string length outside the loop.
12170 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
12171 teststring=
12172 # Add a significant safety factor because C++ compilers can tack on
12173 # massive amounts of additional arguments before passing them to the
12174 # linker. It appears as though 1/2 is a usable value.
12175 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
12176 fi
12177 ;;
12178 esac
12179
12180 fi
12181
12182 if test -n "$lt_cv_sys_max_cmd_len"; then
12183 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
12184 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
12185 else
12186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
12187 printf "%s\n" "none" >&6; }
12188 fi
12189 max_cmd_len=$lt_cv_sys_max_cmd_len
12190
12191
12192
12193
12194
12195
12196 : ${CP="cp -f"}
12197 : ${MV="mv -f"}
12198 : ${RM="rm -f"}
12199
12200 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12201 lt_unset=unset
12202 else
12203 lt_unset=false
12204 fi
12205
12206
12207
12208
12209
12210 # test EBCDIC or ASCII
12211 case `echo X|tr X '\101'` in
12212 A) # ASCII based system
12213 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
12214 lt_SP2NL='tr \040 \012'
12215 lt_NL2SP='tr \015\012 \040\040'
12216 ;;
12217 *) # EBCDIC based system
12218 lt_SP2NL='tr \100 \n'
12219 lt_NL2SP='tr \r\n \100\100'
12220 ;;
12221 esac
12222
12223
12224
12225
12226
12227
12228
12229
12230
12231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
12232 printf %s "checking how to convert $build file names to $host format... " >&6; }
12233 if test ${lt_cv_to_host_file_cmd+y}
12234 then :
12235 printf %s "(cached) " >&6
12236 else $as_nop
12237 case $host in
12238 *-*-mingw* )
12239 case $build in
12240 *-*-mingw* ) # actually msys
12241 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
12242 ;;
12243 *-*-cygwin* )
12244 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
12245 ;;
12246 * ) # otherwise, assume *nix
12247 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
12248 ;;
12249 esac
12250 ;;
12251 *-*-cygwin* )
12252 case $build in
12253 *-*-mingw* ) # actually msys
12254 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
12255 ;;
12256 *-*-cygwin* )
12257 lt_cv_to_host_file_cmd=func_convert_file_noop
12258 ;;
12259 * ) # otherwise, assume *nix
12260 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
12261 ;;
12262 esac
12263 ;;
12264 * ) # unhandled hosts (and "normal" native builds)
12265 lt_cv_to_host_file_cmd=func_convert_file_noop
12266 ;;
12267 esac
12268
12269 fi
12270
12271 to_host_file_cmd=$lt_cv_to_host_file_cmd
12272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
12273 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
12274
12275
12276
12277
12278
12279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
12280 printf %s "checking how to convert $build file names to toolchain format... " >&6; }
12281 if test ${lt_cv_to_tool_file_cmd+y}
12282 then :
12283 printf %s "(cached) " >&6
12284 else $as_nop
12285 #assume ordinary cross tools, or native build.
12286 lt_cv_to_tool_file_cmd=func_convert_file_noop
12287 case $host in
12288 *-*-mingw* )
12289 case $build in
12290 *-*-mingw* ) # actually msys
12291 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
12292 ;;
12293 esac
12294 ;;
12295 esac
12296
12297 fi
12298
12299 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
12300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
12301 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
12302
12303
12304
12305
12306
12307 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
12308 printf %s "checking for $LD option to reload object files... " >&6; }
12309 if test ${lt_cv_ld_reload_flag+y}
12310 then :
12311 printf %s "(cached) " >&6
12312 else $as_nop
12313 lt_cv_ld_reload_flag='-r'
12314 fi
12315 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
12316 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
12317 reload_flag=$lt_cv_ld_reload_flag
12318 case $reload_flag in
12319 "" | " "*) ;;
12320 *) reload_flag=" $reload_flag" ;;
12321 esac
12322 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12323 case $host_os in
12324 cygwin* | mingw* | pw32* | cegcc*)
12325 if test yes != "$GCC"; then
12326 reload_cmds=false
12327 fi
12328 ;;
12329 darwin*)
12330 if test yes = "$GCC"; then
12331 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
12332 else
12333 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12334 fi
12335 ;;
12336 esac
12337
12338
12339
12340
12341
12342
12343
12344
12345
12346 if test -n "$ac_tool_prefix"; then
12347 # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args.
12348 set dummy ${ac_tool_prefix}file; ac_word=$2
12349 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12350 printf %s "checking for $ac_word... " >&6; }
12351 if test ${ac_cv_prog_FILECMD+y}
12352 then :
12353 printf %s "(cached) " >&6
12354 else $as_nop
12355 if test -n "$FILECMD"; then
12356 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
12357 else
12358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12359 for as_dir in $PATH
12360 do
12361 IFS=$as_save_IFS
12362 case $as_dir in #(((
12363 '') as_dir=./ ;;
12364 */) ;;
12365 *) as_dir=$as_dir/ ;;
12366 esac
12367 for ac_exec_ext in '' $ac_executable_extensions; do
12368 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12369 ac_cv_prog_FILECMD="${ac_tool_prefix}file"
12370 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12371 break 2
12372 fi
12373 done
12374 done
12375 IFS=$as_save_IFS
12376
12377 fi
12378 fi
12379 FILECMD=$ac_cv_prog_FILECMD
12380 if test -n "$FILECMD"; then
12381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
12382 printf "%s\n" "$FILECMD" >&6; }
12383 else
12384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12385 printf "%s\n" "no" >&6; }
12386 fi
12387
12388
12389 fi
12390 if test -z "$ac_cv_prog_FILECMD"; then
12391 ac_ct_FILECMD=$FILECMD
12392 # Extract the first word of "file", so it can be a program name with args.
12393 set dummy file; ac_word=$2
12394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12395 printf %s "checking for $ac_word... " >&6; }
12396 if test ${ac_cv_prog_ac_ct_FILECMD+y}
12397 then :
12398 printf %s "(cached) " >&6
12399 else $as_nop
12400 if test -n "$ac_ct_FILECMD"; then
12401 ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test.
12402 else
12403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12404 for as_dir in $PATH
12405 do
12406 IFS=$as_save_IFS
12407 case $as_dir in #(((
12408 '') as_dir=./ ;;
12409 */) ;;
12410 *) as_dir=$as_dir/ ;;
12411 esac
12412 for ac_exec_ext in '' $ac_executable_extensions; do
12413 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12414 ac_cv_prog_ac_ct_FILECMD="file"
12415 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12416 break 2
12417 fi
12418 done
12419 done
12420 IFS=$as_save_IFS
12421
12422 fi
12423 fi
12424 ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD
12425 if test -n "$ac_ct_FILECMD"; then
12426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5
12427 printf "%s\n" "$ac_ct_FILECMD" >&6; }
12428 else
12429 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12430 printf "%s\n" "no" >&6; }
12431 fi
12432
12433 if test "x$ac_ct_FILECMD" = x; then
12434 FILECMD=":"
12435 else
12436 case $cross_compiling:$ac_tool_warned in
12437 yes:)
12438 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12439 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12440 ac_tool_warned=yes ;;
12441 esac
12442 FILECMD=$ac_ct_FILECMD
12443 fi
12444 else
12445 FILECMD="$ac_cv_prog_FILECMD"
12446 fi
12447
12448
12449
12450
12451
12452
12453
12454 if test -n "$ac_tool_prefix"; then
12455 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
12456 set dummy ${ac_tool_prefix}objdump; ac_word=$2
12457 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12458 printf %s "checking for $ac_word... " >&6; }
12459 if test ${ac_cv_prog_OBJDUMP+y}
12460 then :
12461 printf %s "(cached) " >&6
12462 else $as_nop
12463 if test -n "$OBJDUMP"; then
12464 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12465 else
12466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12467 for as_dir in $PATH
12468 do
12469 IFS=$as_save_IFS
12470 case $as_dir in #(((
12471 '') as_dir=./ ;;
12472 */) ;;
12473 *) as_dir=$as_dir/ ;;
12474 esac
12475 for ac_exec_ext in '' $ac_executable_extensions; do
12476 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12477 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
12478 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12479 break 2
12480 fi
12481 done
12482 done
12483 IFS=$as_save_IFS
12484
12485 fi
12486 fi
12487 OBJDUMP=$ac_cv_prog_OBJDUMP
12488 if test -n "$OBJDUMP"; then
12489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12490 printf "%s\n" "$OBJDUMP" >&6; }
12491 else
12492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12493 printf "%s\n" "no" >&6; }
12494 fi
12495
12496
12497 fi
12498 if test -z "$ac_cv_prog_OBJDUMP"; then
12499 ac_ct_OBJDUMP=$OBJDUMP
12500 # Extract the first word of "objdump", so it can be a program name with args.
12501 set dummy objdump; ac_word=$2
12502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12503 printf %s "checking for $ac_word... " >&6; }
12504 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
12505 then :
12506 printf %s "(cached) " >&6
12507 else $as_nop
12508 if test -n "$ac_ct_OBJDUMP"; then
12509 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
12510 else
12511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12512 for as_dir in $PATH
12513 do
12514 IFS=$as_save_IFS
12515 case $as_dir in #(((
12516 '') as_dir=./ ;;
12517 */) ;;
12518 *) as_dir=$as_dir/ ;;
12519 esac
12520 for ac_exec_ext in '' $ac_executable_extensions; do
12521 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12522 ac_cv_prog_ac_ct_OBJDUMP="objdump"
12523 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12524 break 2
12525 fi
12526 done
12527 done
12528 IFS=$as_save_IFS
12529
12530 fi
12531 fi
12532 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
12533 if test -n "$ac_ct_OBJDUMP"; then
12534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
12535 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
12536 else
12537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12538 printf "%s\n" "no" >&6; }
12539 fi
12540
12541 if test "x$ac_ct_OBJDUMP" = x; then
12542 OBJDUMP="false"
12543 else
12544 case $cross_compiling:$ac_tool_warned in
12545 yes:)
12546 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12547 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12548 ac_tool_warned=yes ;;
12549 esac
12550 OBJDUMP=$ac_ct_OBJDUMP
12551 fi
12552 else
12553 OBJDUMP="$ac_cv_prog_OBJDUMP"
12554 fi
12555
12556 test -z "$OBJDUMP" && OBJDUMP=objdump
12557
12558
12559
12560
12561
12562
12563
12564
12565
12566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
12567 printf %s "checking how to recognize dependent libraries... " >&6; }
12568 if test ${lt_cv_deplibs_check_method+y}
12569 then :
12570 printf %s "(cached) " >&6
12571 else $as_nop
12572 lt_cv_file_magic_cmd='$MAGIC_CMD'
12573 lt_cv_file_magic_test_file=
12574 lt_cv_deplibs_check_method='unknown'
12575 # Need to set the preceding variable on all platforms that support
12576 # interlibrary dependencies.
12577 # 'none' -- dependencies not supported.
12578 # 'unknown' -- same as none, but documents that we really don't know.
12579 # 'pass_all' -- all dependencies passed with no checks.
12580 # 'test_compile' -- check by making test program.
12581 # 'file_magic [[regex]]' -- check by looking for files in library path
12582 # that responds to the $file_magic_cmd with a given extended regex.
12583 # If you have 'file' or equivalent on your system and you're not sure
12584 # whether 'pass_all' will *always* work, you probably want this one.
12585
12586 case $host_os in
12587 aix[4-9]*)
12588 lt_cv_deplibs_check_method=pass_all
12589 ;;
12590
12591 beos*)
12592 lt_cv_deplibs_check_method=pass_all
12593 ;;
12594
12595 bsdi[45]*)
12596 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12597 lt_cv_file_magic_cmd='$FILECMD -L'
12598 lt_cv_file_magic_test_file=/shlib/libc.so
12599 ;;
12600
12601 cygwin*)
12602 # func_win32_libid is a shell function defined in ltmain.sh
12603 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12604 lt_cv_file_magic_cmd='func_win32_libid'
12605 ;;
12606
12607 mingw* | pw32*)
12608 # Base MSYS/MinGW do not provide the 'file' command needed by
12609 # func_win32_libid shell function, so use a weaker test based on 'objdump',
12610 # unless we find 'file', for example because we are cross-compiling.
12611 if ( file / ) >/dev/null 2>&1; then
12612 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12613 lt_cv_file_magic_cmd='func_win32_libid'
12614 else
12615 # Keep this pattern in sync with the one in func_win32_libid.
12616 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
12617 lt_cv_file_magic_cmd='$OBJDUMP -f'
12618 fi
12619 ;;
12620
12621 cegcc*)
12622 # use the weaker test based on 'objdump'. See mingw*.
12623 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
12624 lt_cv_file_magic_cmd='$OBJDUMP -f'
12625 ;;
12626
12627 darwin* | rhapsody*)
12628 lt_cv_deplibs_check_method=pass_all
12629 ;;
12630
12631 freebsd* | dragonfly* | midnightbsd*)
12632 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12633 case $host_cpu in
12634 i*86 )
12635 # Not sure whether the presence of OpenBSD here was a mistake.
12636 # Let's accept both of them until this is cleared up.
12637 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12638 lt_cv_file_magic_cmd=$FILECMD
12639 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12640 ;;
12641 esac
12642 else
12643 lt_cv_deplibs_check_method=pass_all
12644 fi
12645 ;;
12646
12647 haiku*)
12648 lt_cv_deplibs_check_method=pass_all
12649 ;;
12650
12651 hpux10.20* | hpux11*)
12652 lt_cv_file_magic_cmd=$FILECMD
12653 case $host_cpu in
12654 ia64*)
12655 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12656 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12657 ;;
12658 hppa*64*)
12659 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]'
12660 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12661 ;;
12662 *)
12663 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
12664 lt_cv_file_magic_test_file=/usr/lib/libc.sl
12665 ;;
12666 esac
12667 ;;
12668
12669 interix[3-9]*)
12670 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12671 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12672 ;;
12673
12674 irix5* | irix6* | nonstopux*)
12675 case $LD in
12676 *-32|*"-32 ") libmagic=32-bit;;
12677 *-n32|*"-n32 ") libmagic=N32;;
12678 *-64|*"-64 ") libmagic=64-bit;;
12679 *) libmagic=never-match;;
12680 esac
12681 lt_cv_deplibs_check_method=pass_all
12682 ;;
12683
12684 # This must be glibc/ELF.
12685 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12686 lt_cv_deplibs_check_method=pass_all
12687 ;;
12688
12689 netbsd*)
12690 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12691 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12692 else
12693 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12694 fi
12695 ;;
12696
12697 newos6*)
12698 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12699 lt_cv_file_magic_cmd=$FILECMD
12700 lt_cv_file_magic_test_file=/usr/lib/libnls.so
12701 ;;
12702
12703 *nto* | *qnx*)
12704 lt_cv_deplibs_check_method=pass_all
12705 ;;
12706
12707 openbsd* | bitrig*)
12708 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12709 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12710 else
12711 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12712 fi
12713 ;;
12714
12715 osf3* | osf4* | osf5*)
12716 lt_cv_deplibs_check_method=pass_all
12717 ;;
12718
12719 rdos*)
12720 lt_cv_deplibs_check_method=pass_all
12721 ;;
12722
12723 solaris*)
12724 lt_cv_deplibs_check_method=pass_all
12725 ;;
12726
12727 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12728 lt_cv_deplibs_check_method=pass_all
12729 ;;
12730
12731 sysv4 | sysv4.3*)
12732 case $host_vendor in
12733 motorola)
12734 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]'
12735 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12736 ;;
12737 ncr)
12738 lt_cv_deplibs_check_method=pass_all
12739 ;;
12740 sequent)
12741 lt_cv_file_magic_cmd='/bin/file'
12742 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12743 ;;
12744 sni)
12745 lt_cv_file_magic_cmd='/bin/file'
12746 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12747 lt_cv_file_magic_test_file=/lib/libc.so
12748 ;;
12749 siemens)
12750 lt_cv_deplibs_check_method=pass_all
12751 ;;
12752 pc)
12753 lt_cv_deplibs_check_method=pass_all
12754 ;;
12755 esac
12756 ;;
12757
12758 tpf*)
12759 lt_cv_deplibs_check_method=pass_all
12760 ;;
12761 os2*)
12762 lt_cv_deplibs_check_method=pass_all
12763 ;;
12764 esac
12765
12766 fi
12767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
12768 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
12769
12770 file_magic_glob=
12771 want_nocaseglob=no
12772 if test "$build" = "$host"; then
12773 case $host_os in
12774 mingw* | pw32*)
12775 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
12776 want_nocaseglob=yes
12777 else
12778 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
12779 fi
12780 ;;
12781 esac
12782 fi
12783
12784 file_magic_cmd=$lt_cv_file_magic_cmd
12785 deplibs_check_method=$lt_cv_deplibs_check_method
12786 test -z "$deplibs_check_method" && deplibs_check_method=unknown
12787
12788
12789
12790
12791
12792
12793
12794
12795
12796
12797
12798
12799
12800
12801
12802
12803
12804
12805
12806
12807
12808
12809 if test -n "$ac_tool_prefix"; then
12810 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
12811 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
12812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12813 printf %s "checking for $ac_word... " >&6; }
12814 if test ${ac_cv_prog_DLLTOOL+y}
12815 then :
12816 printf %s "(cached) " >&6
12817 else $as_nop
12818 if test -n "$DLLTOOL"; then
12819 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
12820 else
12821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12822 for as_dir in $PATH
12823 do
12824 IFS=$as_save_IFS
12825 case $as_dir in #(((
12826 '') as_dir=./ ;;
12827 */) ;;
12828 *) as_dir=$as_dir/ ;;
12829 esac
12830 for ac_exec_ext in '' $ac_executable_extensions; do
12831 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12832 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
12833 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12834 break 2
12835 fi
12836 done
12837 done
12838 IFS=$as_save_IFS
12839
12840 fi
12841 fi
12842 DLLTOOL=$ac_cv_prog_DLLTOOL
12843 if test -n "$DLLTOOL"; then
12844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
12845 printf "%s\n" "$DLLTOOL" >&6; }
12846 else
12847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12848 printf "%s\n" "no" >&6; }
12849 fi
12850
12851
12852 fi
12853 if test -z "$ac_cv_prog_DLLTOOL"; then
12854 ac_ct_DLLTOOL=$DLLTOOL
12855 # Extract the first word of "dlltool", so it can be a program name with args.
12856 set dummy dlltool; ac_word=$2
12857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12858 printf %s "checking for $ac_word... " >&6; }
12859 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
12860 then :
12861 printf %s "(cached) " >&6
12862 else $as_nop
12863 if test -n "$ac_ct_DLLTOOL"; then
12864 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
12865 else
12866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12867 for as_dir in $PATH
12868 do
12869 IFS=$as_save_IFS
12870 case $as_dir in #(((
12871 '') as_dir=./ ;;
12872 */) ;;
12873 *) as_dir=$as_dir/ ;;
12874 esac
12875 for ac_exec_ext in '' $ac_executable_extensions; do
12876 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12877 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
12878 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12879 break 2
12880 fi
12881 done
12882 done
12883 IFS=$as_save_IFS
12884
12885 fi
12886 fi
12887 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
12888 if test -n "$ac_ct_DLLTOOL"; then
12889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
12890 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
12891 else
12892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12893 printf "%s\n" "no" >&6; }
12894 fi
12895
12896 if test "x$ac_ct_DLLTOOL" = x; then
12897 DLLTOOL="false"
12898 else
12899 case $cross_compiling:$ac_tool_warned in
12900 yes:)
12901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12902 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12903 ac_tool_warned=yes ;;
12904 esac
12905 DLLTOOL=$ac_ct_DLLTOOL
12906 fi
12907 else
12908 DLLTOOL="$ac_cv_prog_DLLTOOL"
12909 fi
12910
12911 test -z "$DLLTOOL" && DLLTOOL=dlltool
12912
12913
12914
12915
12916
12917
12918
12919
12920
12921
12922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
12923 printf %s "checking how to associate runtime and link libraries... " >&6; }
12924 if test ${lt_cv_sharedlib_from_linklib_cmd+y}
12925 then :
12926 printf %s "(cached) " >&6
12927 else $as_nop
12928 lt_cv_sharedlib_from_linklib_cmd='unknown'
12929
12930 case $host_os in
12931 cygwin* | mingw* | pw32* | cegcc*)
12932 # two different shell functions defined in ltmain.sh;
12933 # decide which one to use based on capabilities of $DLLTOOL
12934 case `$DLLTOOL --help 2>&1` in
12935 *--identify-strict*)
12936 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
12937 ;;
12938 *)
12939 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
12940 ;;
12941 esac
12942 ;;
12943 *)
12944 # fallback: assume linklib IS sharedlib
12945 lt_cv_sharedlib_from_linklib_cmd=$ECHO
12946 ;;
12947 esac
12948
12949 fi
12950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
12951 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
12952 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
12953 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
12954
12955
12956
12957
12958
12959
12960
12961 if test -n "$ac_tool_prefix"; then
12962 for ac_prog in ar
12963 do
12964 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12965 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12967 printf %s "checking for $ac_word... " >&6; }
12968 if test ${ac_cv_prog_AR+y}
12969 then :
12970 printf %s "(cached) " >&6
12971 else $as_nop
12972 if test -n "$AR"; then
12973 ac_cv_prog_AR="$AR" # Let the user override the test.
12974 else
12975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12976 for as_dir in $PATH
12977 do
12978 IFS=$as_save_IFS
12979 case $as_dir in #(((
12980 '') as_dir=./ ;;
12981 */) ;;
12982 *) as_dir=$as_dir/ ;;
12983 esac
12984 for ac_exec_ext in '' $ac_executable_extensions; do
12985 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12986 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
12987 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12988 break 2
12989 fi
12990 done
12991 done
12992 IFS=$as_save_IFS
12993
12994 fi
12995 fi
12996 AR=$ac_cv_prog_AR
12997 if test -n "$AR"; then
12998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
12999 printf "%s\n" "$AR" >&6; }
13000 else
13001 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13002 printf "%s\n" "no" >&6; }
13003 fi
13004
13005
13006 test -n "$AR" && break
13007 done
13008 fi
13009 if test -z "$AR"; then
13010 ac_ct_AR=$AR
13011 for ac_prog in ar
13012 do
13013 # Extract the first word of "$ac_prog", so it can be a program name with args.
13014 set dummy $ac_prog; ac_word=$2
13015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13016 printf %s "checking for $ac_word... " >&6; }
13017 if test ${ac_cv_prog_ac_ct_AR+y}
13018 then :
13019 printf %s "(cached) " >&6
13020 else $as_nop
13021 if test -n "$ac_ct_AR"; then
13022 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13023 else
13024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13025 for as_dir in $PATH
13026 do
13027 IFS=$as_save_IFS
13028 case $as_dir in #(((
13029 '') as_dir=./ ;;
13030 */) ;;
13031 *) as_dir=$as_dir/ ;;
13032 esac
13033 for ac_exec_ext in '' $ac_executable_extensions; do
13034 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13035 ac_cv_prog_ac_ct_AR="$ac_prog"
13036 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13037 break 2
13038 fi
13039 done
13040 done
13041 IFS=$as_save_IFS
13042
13043 fi
13044 fi
13045 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13046 if test -n "$ac_ct_AR"; then
13047 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
13048 printf "%s\n" "$ac_ct_AR" >&6; }
13049 else
13050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13051 printf "%s\n" "no" >&6; }
13052 fi
13053
13054
13055 test -n "$ac_ct_AR" && break
13056 done
13057
13058 if test "x$ac_ct_AR" = x; then
13059 AR="false"
13060 else
13061 case $cross_compiling:$ac_tool_warned in
13062 yes:)
13063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13064 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13065 ac_tool_warned=yes ;;
13066 esac
13067 AR=$ac_ct_AR
13068 fi
13069 fi
13070
13071 : ${AR=ar}
13072
13073
13074
13075
13076
13077
13078 # Use ARFLAGS variable as AR's operation code to sync the variable naming with
13079 # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
13080 # higher priority because thats what people were doing historically (setting
13081 # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS
13082 # variable obsoleted/removed.
13083
13084 test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
13085 lt_ar_flags=$AR_FLAGS
13086
13087
13088
13089
13090
13091
13092 # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override
13093 # by AR_FLAGS because that was never working and AR_FLAGS is about to die.
13094
13095
13096
13097
13098
13099
13100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
13101 printf %s "checking for archiver @FILE support... " >&6; }
13102 if test ${lt_cv_ar_at_file+y}
13103 then :
13104 printf %s "(cached) " >&6
13105 else $as_nop
13106 lt_cv_ar_at_file=no
13107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13108 /* end confdefs.h. */
13109
13110 int
13111 main (void)
13112 {
13113
13114 ;
13115 return 0;
13116 }
13117 _ACEOF
13118 if ac_fn_c_try_compile "$LINENO"
13119 then :
13120 echo conftest.$ac_objext > conftest.lst
13121 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
13122 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
13123 (eval $lt_ar_try) 2>&5
13124 ac_status=$?
13125 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13126 test $ac_status = 0; }
13127 if test 0 -eq "$ac_status"; then
13128 # Ensure the archiver fails upon bogus file names.
13129 rm -f conftest.$ac_objext libconftest.a
13130 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
13131 (eval $lt_ar_try) 2>&5
13132 ac_status=$?
13133 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13134 test $ac_status = 0; }
13135 if test 0 -ne "$ac_status"; then
13136 lt_cv_ar_at_file=@
13137 fi
13138 fi
13139 rm -f conftest.* libconftest.a
13140
13141 fi
13142 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13143
13144 fi
13145 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
13146 printf "%s\n" "$lt_cv_ar_at_file" >&6; }
13147
13148 if test no = "$lt_cv_ar_at_file"; then
13149 archiver_list_spec=
13150 else
13151 archiver_list_spec=$lt_cv_ar_at_file
13152 fi
13153
13154
13155
13156
13157
13158
13159
13160 if test -n "$ac_tool_prefix"; then
13161 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13162 set dummy ${ac_tool_prefix}strip; ac_word=$2
13163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13164 printf %s "checking for $ac_word... " >&6; }
13165 if test ${ac_cv_prog_STRIP+y}
13166 then :
13167 printf %s "(cached) " >&6
13168 else $as_nop
13169 if test -n "$STRIP"; then
13170 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13171 else
13172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13173 for as_dir in $PATH
13174 do
13175 IFS=$as_save_IFS
13176 case $as_dir in #(((
13177 '') as_dir=./ ;;
13178 */) ;;
13179 *) as_dir=$as_dir/ ;;
13180 esac
13181 for ac_exec_ext in '' $ac_executable_extensions; do
13182 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13183 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
13184 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13185 break 2
13186 fi
13187 done
13188 done
13189 IFS=$as_save_IFS
13190
13191 fi
13192 fi
13193 STRIP=$ac_cv_prog_STRIP
13194 if test -n "$STRIP"; then
13195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
13196 printf "%s\n" "$STRIP" >&6; }
13197 else
13198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13199 printf "%s\n" "no" >&6; }
13200 fi
13201
13202
13203 fi
13204 if test -z "$ac_cv_prog_STRIP"; then
13205 ac_ct_STRIP=$STRIP
13206 # Extract the first word of "strip", so it can be a program name with args.
13207 set dummy strip; ac_word=$2
13208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13209 printf %s "checking for $ac_word... " >&6; }
13210 if test ${ac_cv_prog_ac_ct_STRIP+y}
13211 then :
13212 printf %s "(cached) " >&6
13213 else $as_nop
13214 if test -n "$ac_ct_STRIP"; then
13215 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13216 else
13217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13218 for as_dir in $PATH
13219 do
13220 IFS=$as_save_IFS
13221 case $as_dir in #(((
13222 '') as_dir=./ ;;
13223 */) ;;
13224 *) as_dir=$as_dir/ ;;
13225 esac
13226 for ac_exec_ext in '' $ac_executable_extensions; do
13227 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13228 ac_cv_prog_ac_ct_STRIP="strip"
13229 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13230 break 2
13231 fi
13232 done
13233 done
13234 IFS=$as_save_IFS
13235
13236 fi
13237 fi
13238 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13239 if test -n "$ac_ct_STRIP"; then
13240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
13241 printf "%s\n" "$ac_ct_STRIP" >&6; }
13242 else
13243 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13244 printf "%s\n" "no" >&6; }
13245 fi
13246
13247 if test "x$ac_ct_STRIP" = x; then
13248 STRIP=":"
13249 else
13250 case $cross_compiling:$ac_tool_warned in
13251 yes:)
13252 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13253 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13254 ac_tool_warned=yes ;;
13255 esac
13256 STRIP=$ac_ct_STRIP
13257 fi
13258 else
13259 STRIP="$ac_cv_prog_STRIP"
13260 fi
13261
13262 test -z "$STRIP" && STRIP=:
13263
13264
13265
13266
13267
13268
13269 if test -n "$ac_tool_prefix"; then
13270 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13271 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13273 printf %s "checking for $ac_word... " >&6; }
13274 if test ${ac_cv_prog_RANLIB+y}
13275 then :
13276 printf %s "(cached) " >&6
13277 else $as_nop
13278 if test -n "$RANLIB"; then
13279 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13280 else
13281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13282 for as_dir in $PATH
13283 do
13284 IFS=$as_save_IFS
13285 case $as_dir in #(((
13286 '') as_dir=./ ;;
13287 */) ;;
13288 *) as_dir=$as_dir/ ;;
13289 esac
13290 for ac_exec_ext in '' $ac_executable_extensions; do
13291 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13292 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13293 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13294 break 2
13295 fi
13296 done
13297 done
13298 IFS=$as_save_IFS
13299
13300 fi
13301 fi
13302 RANLIB=$ac_cv_prog_RANLIB
13303 if test -n "$RANLIB"; then
13304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
13305 printf "%s\n" "$RANLIB" >&6; }
13306 else
13307 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13308 printf "%s\n" "no" >&6; }
13309 fi
13310
13311
13312 fi
13313 if test -z "$ac_cv_prog_RANLIB"; then
13314 ac_ct_RANLIB=$RANLIB
13315 # Extract the first word of "ranlib", so it can be a program name with args.
13316 set dummy ranlib; ac_word=$2
13317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13318 printf %s "checking for $ac_word... " >&6; }
13319 if test ${ac_cv_prog_ac_ct_RANLIB+y}
13320 then :
13321 printf %s "(cached) " >&6
13322 else $as_nop
13323 if test -n "$ac_ct_RANLIB"; then
13324 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13325 else
13326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13327 for as_dir in $PATH
13328 do
13329 IFS=$as_save_IFS
13330 case $as_dir in #(((
13331 '') as_dir=./ ;;
13332 */) ;;
13333 *) as_dir=$as_dir/ ;;
13334 esac
13335 for ac_exec_ext in '' $ac_executable_extensions; do
13336 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13337 ac_cv_prog_ac_ct_RANLIB="ranlib"
13338 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13339 break 2
13340 fi
13341 done
13342 done
13343 IFS=$as_save_IFS
13344
13345 fi
13346 fi
13347 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13348 if test -n "$ac_ct_RANLIB"; then
13349 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
13350 printf "%s\n" "$ac_ct_RANLIB" >&6; }
13351 else
13352 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13353 printf "%s\n" "no" >&6; }
13354 fi
13355
13356 if test "x$ac_ct_RANLIB" = x; then
13357 RANLIB=":"
13358 else
13359 case $cross_compiling:$ac_tool_warned in
13360 yes:)
13361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13362 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13363 ac_tool_warned=yes ;;
13364 esac
13365 RANLIB=$ac_ct_RANLIB
13366 fi
13367 else
13368 RANLIB="$ac_cv_prog_RANLIB"
13369 fi
13370
13371 test -z "$RANLIB" && RANLIB=:
13372
13373
13374
13375
13376
13377
13378 # Determine commands to create old-style static archives.
13379 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
13380 old_postinstall_cmds='chmod 644 $oldlib'
13381 old_postuninstall_cmds=
13382
13383 if test -n "$RANLIB"; then
13384 case $host_os in
13385 bitrig* | openbsd*)
13386 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
13387 ;;
13388 *)
13389 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
13390 ;;
13391 esac
13392 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
13393 fi
13394
13395 case $host_os in
13396 darwin*)
13397 lock_old_archive_extraction=yes ;;
13398 *)
13399 lock_old_archive_extraction=no ;;
13400 esac
13401
13402
13403
13404
13405
13406
13407
13408
13409
13410
13411
13412
13413
13414
13415
13416
13417
13418
13419
13420
13421
13422
13423
13424
13425
13426
13427
13428
13429
13430
13431
13432
13433
13434
13435
13436
13437
13438
13439
13440 # If no C compiler was specified, use CC.
13441 LTCC=${LTCC-"$CC"}
13442
13443 # If no C compiler flags were specified, use CFLAGS.
13444 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13445
13446 # Allow CC to be a program name with arguments.
13447 compiler=$CC
13448
13449
13450 # Check for command to grab the raw symbol name followed by C symbol from nm.
13451 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
13452 printf %s "checking command to parse $NM output from $compiler object... " >&6; }
13453 if test ${lt_cv_sys_global_symbol_pipe+y}
13454 then :
13455 printf %s "(cached) " >&6
13456 else $as_nop
13457
13458 # These are sane defaults that work on at least a few old systems.
13459 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
13460
13461 # Character class describing NM global symbol codes.
13462 symcode='[BCDEGRST]'
13463
13464 # Regexp to match symbols that can be accessed directly from C.
13465 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13466
13467 # Define system-specific variables.
13468 case $host_os in
13469 aix*)
13470 symcode='[BCDT]'
13471 ;;
13472 cygwin* | mingw* | pw32* | cegcc*)
13473 symcode='[ABCDGISTW]'
13474 ;;
13475 hpux*)
13476 if test ia64 = "$host_cpu"; then
13477 symcode='[ABCDEGRST]'
13478 fi
13479 ;;
13480 irix* | nonstopux*)
13481 symcode='[BCDEGRST]'
13482 ;;
13483 osf*)
13484 symcode='[BCDEGQRST]'
13485 ;;
13486 solaris*)
13487 symcode='[BDRT]'
13488 ;;
13489 sco3.2v5*)
13490 symcode='[DT]'
13491 ;;
13492 sysv4.2uw2*)
13493 symcode='[DT]'
13494 ;;
13495 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13496 symcode='[ABDT]'
13497 ;;
13498 sysv4)
13499 symcode='[DFNSTU]'
13500 ;;
13501 esac
13502
13503 # If we're using GNU nm, then use its standard symbol codes.
13504 case `$NM -V 2>&1` in
13505 *GNU* | *'with BFD'*)
13506 symcode='[ABCDGIRSTW]' ;;
13507 esac
13508
13509 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
13510 # Gets list of data symbols to import.
13511 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
13512 # Adjust the below global symbol transforms to fixup imported variables.
13513 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
13514 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
13515 lt_c_name_lib_hook="\
13516 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
13517 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
13518 else
13519 # Disable hooks by default.
13520 lt_cv_sys_global_symbol_to_import=
13521 lt_cdecl_hook=
13522 lt_c_name_hook=
13523 lt_c_name_lib_hook=
13524 fi
13525
13526 # Transform an extracted symbol line into a proper C declaration.
13527 # Some systems (esp. on ia64) link data and code symbols differently,
13528 # so use this general approach.
13529 lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
13530 $lt_cdecl_hook\
13531 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
13532 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
13533
13534 # Transform an extracted symbol line into symbol name and symbol address
13535 lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
13536 $lt_c_name_hook\
13537 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
13538 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
13539
13540 # Transform an extracted symbol line into symbol name with lib prefix and
13541 # symbol address.
13542 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
13543 $lt_c_name_lib_hook\
13544 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
13545 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
13546 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
13547
13548 # Handle CRLF in mingw tool chain
13549 opt_cr=
13550 case $build_os in
13551 mingw*)
13552 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13553 ;;
13554 esac
13555
13556 # Try without a prefix underscore, then with it.
13557 for ac_symprfx in "" "_"; do
13558
13559 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13560 symxfrm="\\1 $ac_symprfx\\2 \\2"
13561
13562 # Write the raw and C identifiers.
13563 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
13564 # Fake it for dumpbin and say T for any non-static function,
13565 # D for any global variable and I for any imported variable.
13566 # Also find C++ and __fastcall symbols from MSVC++ or ICC,
13567 # which start with @ or ?.
13568 lt_cv_sys_global_symbol_pipe="$AWK '"\
13569 " {last_section=section; section=\$ 3};"\
13570 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
13571 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
13572 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
13573 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
13574 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
13575 " \$ 0!~/External *\|/{next};"\
13576 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
13577 " {if(hide[section]) next};"\
13578 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
13579 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
13580 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
13581 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
13582 " ' prfx=^$ac_symprfx"
13583 else
13584 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13585 fi
13586 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
13587
13588 # Check to see that the pipe works correctly.
13589 pipe_works=no
13590
13591 rm -f conftest*
13592 cat > conftest.$ac_ext <<_LT_EOF
13593 #ifdef __cplusplus
13594 extern "C" {
13595 #endif
13596 char nm_test_var;
13597 void nm_test_func(void);
13598 void nm_test_func(void){}
13599 #ifdef __cplusplus
13600 }
13601 #endif
13602 int main(){nm_test_var='a';nm_test_func();return(0);}
13603 _LT_EOF
13604
13605 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13606 (eval $ac_compile) 2>&5
13607 ac_status=$?
13608 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13609 test $ac_status = 0; }; then
13610 # Now try to grab the symbols.
13611 nlist=conftest.nm
13612 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
13613 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
13614 ac_status=$?
13615 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13616 test $ac_status = 0; } && test -s "$nlist"; then
13617 # Try sorting and uniquifying the output.
13618 if sort "$nlist" | uniq > "$nlist"T; then
13619 mv -f "$nlist"T "$nlist"
13620 else
13621 rm -f "$nlist"T
13622 fi
13623
13624 # Make sure that we snagged all the symbols we need.
13625 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
13626 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
13627 cat <<_LT_EOF > conftest.$ac_ext
13628 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
13629 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
13630 /* DATA imports from DLLs on WIN32 can't be const, because runtime
13631 relocations are performed -- see ld's documentation on pseudo-relocs. */
13632 # define LT_DLSYM_CONST
13633 #elif defined __osf__
13634 /* This system does not cope well with relocations in const data. */
13635 # define LT_DLSYM_CONST
13636 #else
13637 # define LT_DLSYM_CONST const
13638 #endif
13639
13640 #ifdef __cplusplus
13641 extern "C" {
13642 #endif
13643
13644 _LT_EOF
13645 # Now generate the symbol file.
13646 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
13647
13648 cat <<_LT_EOF >> conftest.$ac_ext
13649
13650 /* The mapping between symbol names and symbols. */
13651 LT_DLSYM_CONST struct {
13652 const char *name;
13653 void *address;
13654 }
13655 lt__PROGRAM__LTX_preloaded_symbols[] =
13656 {
13657 { "@PROGRAM@", (void *) 0 },
13658 _LT_EOF
13659 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
13660 cat <<\_LT_EOF >> conftest.$ac_ext
13661 {0, (void *) 0}
13662 };
13663
13664 /* This works around a problem in FreeBSD linker */
13665 #ifdef FREEBSD_WORKAROUND
13666 static const void *lt_preloaded_setup() {
13667 return lt__PROGRAM__LTX_preloaded_symbols;
13668 }
13669 #endif
13670
13671 #ifdef __cplusplus
13672 }
13673 #endif
13674 _LT_EOF
13675 # Now try linking the two files.
13676 mv conftest.$ac_objext conftstm.$ac_objext
13677 lt_globsym_save_LIBS=$LIBS
13678 lt_globsym_save_CFLAGS=$CFLAGS
13679 LIBS=conftstm.$ac_objext
13680 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13681 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13682 (eval $ac_link) 2>&5
13683 ac_status=$?
13684 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13685 test $ac_status = 0; } && test -s conftest$ac_exeext; then
13686 pipe_works=yes
13687 fi
13688 LIBS=$lt_globsym_save_LIBS
13689 CFLAGS=$lt_globsym_save_CFLAGS
13690 else
13691 echo "cannot find nm_test_func in $nlist" >&5
13692 fi
13693 else
13694 echo "cannot find nm_test_var in $nlist" >&5
13695 fi
13696 else
13697 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13698 fi
13699 else
13700 echo "$progname: failed program was:" >&5
13701 cat conftest.$ac_ext >&5
13702 fi
13703 rm -rf conftest* conftst*
13704
13705 # Do not use the global_symbol_pipe unless it works.
13706 if test yes = "$pipe_works"; then
13707 break
13708 else
13709 lt_cv_sys_global_symbol_pipe=
13710 fi
13711 done
13712
13713 fi
13714
13715 if test -z "$lt_cv_sys_global_symbol_pipe"; then
13716 lt_cv_sys_global_symbol_to_cdecl=
13717 fi
13718 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
13720 printf "%s\n" "failed" >&6; }
13721 else
13722 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
13723 printf "%s\n" "ok" >&6; }
13724 fi
13725
13726 # Response file support.
13727 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
13728 nm_file_list_spec='@'
13729 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
13730 nm_file_list_spec='@'
13731 fi
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
13763
13764
13765
13766
13767
13768
13769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
13770 printf %s "checking for sysroot... " >&6; }
13771
13772 # Check whether --with-sysroot was given.
13773 if test ${with_sysroot+y}
13774 then :
13775 withval=$with_sysroot;
13776 else $as_nop
13777 with_sysroot=no
13778 fi
13779
13780
13781 lt_sysroot=
13782 case $with_sysroot in #(
13783 yes)
13784 if test yes = "$GCC"; then
13785 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
13786 fi
13787 ;; #(
13788 /*)
13789 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
13790 ;; #(
13791 no|'')
13792 ;; #(
13793 *)
13794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
13795 printf "%s\n" "$with_sysroot" >&6; }
13796 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
13797 ;;
13798 esac
13799
13800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
13801 printf "%s\n" "${lt_sysroot:-no}" >&6; }
13802
13803
13804
13805
13806
13807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
13808 printf %s "checking for a working dd... " >&6; }
13809 if test ${ac_cv_path_lt_DD+y}
13810 then :
13811 printf %s "(cached) " >&6
13812 else $as_nop
13813 printf 0123456789abcdef0123456789abcdef >conftest.i
13814 cat conftest.i conftest.i >conftest2.i
13815 : ${lt_DD:=$DD}
13816 if test -z "$lt_DD"; then
13817 ac_path_lt_DD_found=false
13818 # Loop through the user's path and test for each of PROGNAME-LIST
13819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13820 for as_dir in $PATH
13821 do
13822 IFS=$as_save_IFS
13823 case $as_dir in #(((
13824 '') as_dir=./ ;;
13825 */) ;;
13826 *) as_dir=$as_dir/ ;;
13827 esac
13828 for ac_prog in dd
13829 do
13830 for ac_exec_ext in '' $ac_executable_extensions; do
13831 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
13832 as_fn_executable_p "$ac_path_lt_DD" || continue
13833 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
13834 cmp -s conftest.i conftest.out \
13835 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
13836 fi
13837 $ac_path_lt_DD_found && break 3
13838 done
13839 done
13840 done
13841 IFS=$as_save_IFS
13842 if test -z "$ac_cv_path_lt_DD"; then
13843 :
13844 fi
13845 else
13846 ac_cv_path_lt_DD=$lt_DD
13847 fi
13848
13849 rm -f conftest.i conftest2.i conftest.out
13850 fi
13851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
13852 printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
13853
13854
13855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
13856 printf %s "checking how to truncate binary pipes... " >&6; }
13857 if test ${lt_cv_truncate_bin+y}
13858 then :
13859 printf %s "(cached) " >&6
13860 else $as_nop
13861 printf 0123456789abcdef0123456789abcdef >conftest.i
13862 cat conftest.i conftest.i >conftest2.i
13863 lt_cv_truncate_bin=
13864 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
13865 cmp -s conftest.i conftest.out \
13866 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
13867 fi
13868 rm -f conftest.i conftest2.i conftest.out
13869 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
13870 fi
13871 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
13872 printf "%s\n" "$lt_cv_truncate_bin" >&6; }
13873
13874
13875
13876
13877
13878
13879
13880 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
13881 func_cc_basename ()
13882 {
13883 for cc_temp in $*""; do
13884 case $cc_temp in
13885 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13886 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13887 \-*) ;;
13888 *) break;;
13889 esac
13890 done
13891 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13892 }
13893
13894 # Check whether --enable-libtool-lock was given.
13895 if test ${enable_libtool_lock+y}
13896 then :
13897 enableval=$enable_libtool_lock;
13898 fi
13899
13900 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
13901
13902 # Some flags need to be propagated to the compiler or linker for good
13903 # libtool support.
13904 case $host in
13905 ia64-*-hpux*)
13906 # Find out what ABI is being produced by ac_compile, and set mode
13907 # options accordingly.
13908 echo 'int i;' > conftest.$ac_ext
13909 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13910 (eval $ac_compile) 2>&5
13911 ac_status=$?
13912 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13913 test $ac_status = 0; }; then
13914 case `$FILECMD conftest.$ac_objext` in
13915 *ELF-32*)
13916 HPUX_IA64_MODE=32
13917 ;;
13918 *ELF-64*)
13919 HPUX_IA64_MODE=64
13920 ;;
13921 esac
13922 fi
13923 rm -rf conftest*
13924 ;;
13925 *-*-irix6*)
13926 # Find out what ABI is being produced by ac_compile, and set linker
13927 # options accordingly.
13928 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
13929 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13930 (eval $ac_compile) 2>&5
13931 ac_status=$?
13932 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13933 test $ac_status = 0; }; then
13934 if test yes = "$lt_cv_prog_gnu_ld"; then
13935 case `$FILECMD conftest.$ac_objext` in
13936 *32-bit*)
13937 LD="${LD-ld} -melf32bsmip"
13938 ;;
13939 *N32*)
13940 LD="${LD-ld} -melf32bmipn32"
13941 ;;
13942 *64-bit*)
13943 LD="${LD-ld} -melf64bmip"
13944 ;;
13945 esac
13946 else
13947 case `$FILECMD conftest.$ac_objext` in
13948 *32-bit*)
13949 LD="${LD-ld} -32"
13950 ;;
13951 *N32*)
13952 LD="${LD-ld} -n32"
13953 ;;
13954 *64-bit*)
13955 LD="${LD-ld} -64"
13956 ;;
13957 esac
13958 fi
13959 fi
13960 rm -rf conftest*
13961 ;;
13962
13963 mips64*-*linux*)
13964 # Find out what ABI is being produced by ac_compile, and set linker
13965 # options accordingly.
13966 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
13967 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13968 (eval $ac_compile) 2>&5
13969 ac_status=$?
13970 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13971 test $ac_status = 0; }; then
13972 emul=elf
13973 case `$FILECMD conftest.$ac_objext` in
13974 *32-bit*)
13975 emul="${emul}32"
13976 ;;
13977 *64-bit*)
13978 emul="${emul}64"
13979 ;;
13980 esac
13981 case `$FILECMD conftest.$ac_objext` in
13982 *MSB*)
13983 emul="${emul}btsmip"
13984 ;;
13985 *LSB*)
13986 emul="${emul}ltsmip"
13987 ;;
13988 esac
13989 case `$FILECMD conftest.$ac_objext` in
13990 *N32*)
13991 emul="${emul}n32"
13992 ;;
13993 esac
13994 LD="${LD-ld} -m $emul"
13995 fi
13996 rm -rf conftest*
13997 ;;
13998
13999 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
14000 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
14001 # Find out what ABI is being produced by ac_compile, and set linker
14002 # options accordingly. Note that the listed cases only cover the
14003 # situations where additional linker options are needed (such as when
14004 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
14005 # vice versa); the common cases where no linker options are needed do
14006 # not appear in the list.
14007 echo 'int i;' > conftest.$ac_ext
14008 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14009 (eval $ac_compile) 2>&5
14010 ac_status=$?
14011 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14012 test $ac_status = 0; }; then
14013 case `$FILECMD conftest.o` in
14014 *32-bit*)
14015 case $host in
14016 x86_64-*kfreebsd*-gnu)
14017 LD="${LD-ld} -m elf_i386_fbsd"
14018 ;;
14019 x86_64-*linux*)
14020 case `$FILECMD conftest.o` in
14021 *x86-64*)
14022 LD="${LD-ld} -m elf32_x86_64"
14023 ;;
14024 *)
14025 LD="${LD-ld} -m elf_i386"
14026 ;;
14027 esac
14028 ;;
14029 powerpc64le-*linux*)
14030 LD="${LD-ld} -m elf32lppclinux"
14031 ;;
14032 powerpc64-*linux*)
14033 LD="${LD-ld} -m elf32ppclinux"
14034 ;;
14035 s390x-*linux*)
14036 LD="${LD-ld} -m elf_s390"
14037 ;;
14038 sparc64-*linux*)
14039 LD="${LD-ld} -m elf32_sparc"
14040 ;;
14041 esac
14042 ;;
14043 *64-bit*)
14044 case $host in
14045 x86_64-*kfreebsd*-gnu)
14046 LD="${LD-ld} -m elf_x86_64_fbsd"
14047 ;;
14048 x86_64-*linux*)
14049 LD="${LD-ld} -m elf_x86_64"
14050 ;;
14051 powerpcle-*linux*)
14052 LD="${LD-ld} -m elf64lppc"
14053 ;;
14054 powerpc-*linux*)
14055 LD="${LD-ld} -m elf64ppc"
14056 ;;
14057 s390*-*linux*|s390*-*tpf*)
14058 LD="${LD-ld} -m elf64_s390"
14059 ;;
14060 sparc*-*linux*)
14061 LD="${LD-ld} -m elf64_sparc"
14062 ;;
14063 esac
14064 ;;
14065 esac
14066 fi
14067 rm -rf conftest*
14068 ;;
14069
14070 *-*-sco3.2v5*)
14071 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
14072 SAVE_CFLAGS=$CFLAGS
14073 CFLAGS="$CFLAGS -belf"
14074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
14075 printf %s "checking whether the C compiler needs -belf... " >&6; }
14076 if test ${lt_cv_cc_needs_belf+y}
14077 then :
14078 printf %s "(cached) " >&6
14079 else $as_nop
14080 ac_ext=c
14081 ac_cpp='$CPP $CPPFLAGS'
14082 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14083 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14084 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14085
14086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14087 /* end confdefs.h. */
14088
14089 int
14090 main (void)
14091 {
14092
14093 ;
14094 return 0;
14095 }
14096 _ACEOF
14097 if ac_fn_c_try_link "$LINENO"
14098 then :
14099 lt_cv_cc_needs_belf=yes
14100 else $as_nop
14101 lt_cv_cc_needs_belf=no
14102 fi
14103 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14104 conftest$ac_exeext conftest.$ac_ext
14105 ac_ext=c
14106 ac_cpp='$CPP $CPPFLAGS'
14107 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14108 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14109 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14110
14111 fi
14112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
14113 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
14114 if test yes != "$lt_cv_cc_needs_belf"; then
14115 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
14116 CFLAGS=$SAVE_CFLAGS
14117 fi
14118 ;;
14119 *-*solaris*)
14120 # Find out what ABI is being produced by ac_compile, and set linker
14121 # options accordingly.
14122 echo 'int i;' > conftest.$ac_ext
14123 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14124 (eval $ac_compile) 2>&5
14125 ac_status=$?
14126 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14127 test $ac_status = 0; }; then
14128 case `$FILECMD conftest.o` in
14129 *64-bit*)
14130 case $lt_cv_prog_gnu_ld in
14131 yes*)
14132 case $host in
14133 i?86-*-solaris*|x86_64-*-solaris*)
14134 LD="${LD-ld} -m elf_x86_64"
14135 ;;
14136 sparc*-*-solaris*)
14137 LD="${LD-ld} -m elf64_sparc"
14138 ;;
14139 esac
14140 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
14141 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
14142 LD=${LD-ld}_sol2
14143 fi
14144 ;;
14145 *)
14146 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
14147 LD="${LD-ld} -64"
14148 fi
14149 ;;
14150 esac
14151 ;;
14152 esac
14153 fi
14154 rm -rf conftest*
14155 ;;
14156 esac
14157
14158 need_locks=$enable_libtool_lock
14159
14160 if test -n "$ac_tool_prefix"; then
14161 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
14162 set dummy ${ac_tool_prefix}mt; ac_word=$2
14163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14164 printf %s "checking for $ac_word... " >&6; }
14165 if test ${ac_cv_prog_MANIFEST_TOOL+y}
14166 then :
14167 printf %s "(cached) " >&6
14168 else $as_nop
14169 if test -n "$MANIFEST_TOOL"; then
14170 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
14171 else
14172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14173 for as_dir in $PATH
14174 do
14175 IFS=$as_save_IFS
14176 case $as_dir in #(((
14177 '') as_dir=./ ;;
14178 */) ;;
14179 *) as_dir=$as_dir/ ;;
14180 esac
14181 for ac_exec_ext in '' $ac_executable_extensions; do
14182 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14183 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
14184 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14185 break 2
14186 fi
14187 done
14188 done
14189 IFS=$as_save_IFS
14190
14191 fi
14192 fi
14193 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
14194 if test -n "$MANIFEST_TOOL"; then
14195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
14196 printf "%s\n" "$MANIFEST_TOOL" >&6; }
14197 else
14198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14199 printf "%s\n" "no" >&6; }
14200 fi
14201
14202
14203 fi
14204 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
14205 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
14206 # Extract the first word of "mt", so it can be a program name with args.
14207 set dummy mt; ac_word=$2
14208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14209 printf %s "checking for $ac_word... " >&6; }
14210 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
14211 then :
14212 printf %s "(cached) " >&6
14213 else $as_nop
14214 if test -n "$ac_ct_MANIFEST_TOOL"; then
14215 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
14216 else
14217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14218 for as_dir in $PATH
14219 do
14220 IFS=$as_save_IFS
14221 case $as_dir in #(((
14222 '') as_dir=./ ;;
14223 */) ;;
14224 *) as_dir=$as_dir/ ;;
14225 esac
14226 for ac_exec_ext in '' $ac_executable_extensions; do
14227 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14228 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
14229 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14230 break 2
14231 fi
14232 done
14233 done
14234 IFS=$as_save_IFS
14235
14236 fi
14237 fi
14238 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
14239 if test -n "$ac_ct_MANIFEST_TOOL"; then
14240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
14241 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
14242 else
14243 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14244 printf "%s\n" "no" >&6; }
14245 fi
14246
14247 if test "x$ac_ct_MANIFEST_TOOL" = x; then
14248 MANIFEST_TOOL=":"
14249 else
14250 case $cross_compiling:$ac_tool_warned in
14251 yes:)
14252 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14253 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14254 ac_tool_warned=yes ;;
14255 esac
14256 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
14257 fi
14258 else
14259 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
14260 fi
14261
14262 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
14263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
14264 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
14265 if test ${lt_cv_path_mainfest_tool+y}
14266 then :
14267 printf %s "(cached) " >&6
14268 else $as_nop
14269 lt_cv_path_mainfest_tool=no
14270 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
14271 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
14272 cat conftest.err >&5
14273 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
14274 lt_cv_path_mainfest_tool=yes
14275 fi
14276 rm -f conftest*
14277 fi
14278 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
14279 printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
14280 if test yes != "$lt_cv_path_mainfest_tool"; then
14281 MANIFEST_TOOL=:
14282 fi
14283
14284
14285
14286
14287
14288
14289 case $host_os in
14290 rhapsody* | darwin*)
14291 if test -n "$ac_tool_prefix"; then
14292 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
14293 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
14294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14295 printf %s "checking for $ac_word... " >&6; }
14296 if test ${ac_cv_prog_DSYMUTIL+y}
14297 then :
14298 printf %s "(cached) " >&6
14299 else $as_nop
14300 if test -n "$DSYMUTIL"; then
14301 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
14302 else
14303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14304 for as_dir in $PATH
14305 do
14306 IFS=$as_save_IFS
14307 case $as_dir in #(((
14308 '') as_dir=./ ;;
14309 */) ;;
14310 *) as_dir=$as_dir/ ;;
14311 esac
14312 for ac_exec_ext in '' $ac_executable_extensions; do
14313 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14314 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
14315 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14316 break 2
14317 fi
14318 done
14319 done
14320 IFS=$as_save_IFS
14321
14322 fi
14323 fi
14324 DSYMUTIL=$ac_cv_prog_DSYMUTIL
14325 if test -n "$DSYMUTIL"; then
14326 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
14327 printf "%s\n" "$DSYMUTIL" >&6; }
14328 else
14329 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14330 printf "%s\n" "no" >&6; }
14331 fi
14332
14333
14334 fi
14335 if test -z "$ac_cv_prog_DSYMUTIL"; then
14336 ac_ct_DSYMUTIL=$DSYMUTIL
14337 # Extract the first word of "dsymutil", so it can be a program name with args.
14338 set dummy dsymutil; ac_word=$2
14339 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14340 printf %s "checking for $ac_word... " >&6; }
14341 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
14342 then :
14343 printf %s "(cached) " >&6
14344 else $as_nop
14345 if test -n "$ac_ct_DSYMUTIL"; then
14346 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
14347 else
14348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14349 for as_dir in $PATH
14350 do
14351 IFS=$as_save_IFS
14352 case $as_dir in #(((
14353 '') as_dir=./ ;;
14354 */) ;;
14355 *) as_dir=$as_dir/ ;;
14356 esac
14357 for ac_exec_ext in '' $ac_executable_extensions; do
14358 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14359 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
14360 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14361 break 2
14362 fi
14363 done
14364 done
14365 IFS=$as_save_IFS
14366
14367 fi
14368 fi
14369 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
14370 if test -n "$ac_ct_DSYMUTIL"; then
14371 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
14372 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
14373 else
14374 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14375 printf "%s\n" "no" >&6; }
14376 fi
14377
14378 if test "x$ac_ct_DSYMUTIL" = x; then
14379 DSYMUTIL=":"
14380 else
14381 case $cross_compiling:$ac_tool_warned in
14382 yes:)
14383 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14384 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14385 ac_tool_warned=yes ;;
14386 esac
14387 DSYMUTIL=$ac_ct_DSYMUTIL
14388 fi
14389 else
14390 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
14391 fi
14392
14393 if test -n "$ac_tool_prefix"; then
14394 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
14395 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
14396 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14397 printf %s "checking for $ac_word... " >&6; }
14398 if test ${ac_cv_prog_NMEDIT+y}
14399 then :
14400 printf %s "(cached) " >&6
14401 else $as_nop
14402 if test -n "$NMEDIT"; then
14403 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
14404 else
14405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14406 for as_dir in $PATH
14407 do
14408 IFS=$as_save_IFS
14409 case $as_dir in #(((
14410 '') as_dir=./ ;;
14411 */) ;;
14412 *) as_dir=$as_dir/ ;;
14413 esac
14414 for ac_exec_ext in '' $ac_executable_extensions; do
14415 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14416 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
14417 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14418 break 2
14419 fi
14420 done
14421 done
14422 IFS=$as_save_IFS
14423
14424 fi
14425 fi
14426 NMEDIT=$ac_cv_prog_NMEDIT
14427 if test -n "$NMEDIT"; then
14428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
14429 printf "%s\n" "$NMEDIT" >&6; }
14430 else
14431 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14432 printf "%s\n" "no" >&6; }
14433 fi
14434
14435
14436 fi
14437 if test -z "$ac_cv_prog_NMEDIT"; then
14438 ac_ct_NMEDIT=$NMEDIT
14439 # Extract the first word of "nmedit", so it can be a program name with args.
14440 set dummy nmedit; ac_word=$2
14441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14442 printf %s "checking for $ac_word... " >&6; }
14443 if test ${ac_cv_prog_ac_ct_NMEDIT+y}
14444 then :
14445 printf %s "(cached) " >&6
14446 else $as_nop
14447 if test -n "$ac_ct_NMEDIT"; then
14448 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
14449 else
14450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14451 for as_dir in $PATH
14452 do
14453 IFS=$as_save_IFS
14454 case $as_dir in #(((
14455 '') as_dir=./ ;;
14456 */) ;;
14457 *) as_dir=$as_dir/ ;;
14458 esac
14459 for ac_exec_ext in '' $ac_executable_extensions; do
14460 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14461 ac_cv_prog_ac_ct_NMEDIT="nmedit"
14462 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14463 break 2
14464 fi
14465 done
14466 done
14467 IFS=$as_save_IFS
14468
14469 fi
14470 fi
14471 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
14472 if test -n "$ac_ct_NMEDIT"; then
14473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
14474 printf "%s\n" "$ac_ct_NMEDIT" >&6; }
14475 else
14476 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14477 printf "%s\n" "no" >&6; }
14478 fi
14479
14480 if test "x$ac_ct_NMEDIT" = x; then
14481 NMEDIT=":"
14482 else
14483 case $cross_compiling:$ac_tool_warned in
14484 yes:)
14485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14486 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14487 ac_tool_warned=yes ;;
14488 esac
14489 NMEDIT=$ac_ct_NMEDIT
14490 fi
14491 else
14492 NMEDIT="$ac_cv_prog_NMEDIT"
14493 fi
14494
14495 if test -n "$ac_tool_prefix"; then
14496 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
14497 set dummy ${ac_tool_prefix}lipo; ac_word=$2
14498 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14499 printf %s "checking for $ac_word... " >&6; }
14500 if test ${ac_cv_prog_LIPO+y}
14501 then :
14502 printf %s "(cached) " >&6
14503 else $as_nop
14504 if test -n "$LIPO"; then
14505 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
14506 else
14507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14508 for as_dir in $PATH
14509 do
14510 IFS=$as_save_IFS
14511 case $as_dir in #(((
14512 '') as_dir=./ ;;
14513 */) ;;
14514 *) as_dir=$as_dir/ ;;
14515 esac
14516 for ac_exec_ext in '' $ac_executable_extensions; do
14517 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14518 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
14519 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14520 break 2
14521 fi
14522 done
14523 done
14524 IFS=$as_save_IFS
14525
14526 fi
14527 fi
14528 LIPO=$ac_cv_prog_LIPO
14529 if test -n "$LIPO"; then
14530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
14531 printf "%s\n" "$LIPO" >&6; }
14532 else
14533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14534 printf "%s\n" "no" >&6; }
14535 fi
14536
14537
14538 fi
14539 if test -z "$ac_cv_prog_LIPO"; then
14540 ac_ct_LIPO=$LIPO
14541 # Extract the first word of "lipo", so it can be a program name with args.
14542 set dummy lipo; ac_word=$2
14543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14544 printf %s "checking for $ac_word... " >&6; }
14545 if test ${ac_cv_prog_ac_ct_LIPO+y}
14546 then :
14547 printf %s "(cached) " >&6
14548 else $as_nop
14549 if test -n "$ac_ct_LIPO"; then
14550 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
14551 else
14552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14553 for as_dir in $PATH
14554 do
14555 IFS=$as_save_IFS
14556 case $as_dir in #(((
14557 '') as_dir=./ ;;
14558 */) ;;
14559 *) as_dir=$as_dir/ ;;
14560 esac
14561 for ac_exec_ext in '' $ac_executable_extensions; do
14562 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14563 ac_cv_prog_ac_ct_LIPO="lipo"
14564 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14565 break 2
14566 fi
14567 done
14568 done
14569 IFS=$as_save_IFS
14570
14571 fi
14572 fi
14573 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
14574 if test -n "$ac_ct_LIPO"; then
14575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
14576 printf "%s\n" "$ac_ct_LIPO" >&6; }
14577 else
14578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14579 printf "%s\n" "no" >&6; }
14580 fi
14581
14582 if test "x$ac_ct_LIPO" = x; then
14583 LIPO=":"
14584 else
14585 case $cross_compiling:$ac_tool_warned in
14586 yes:)
14587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14588 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14589 ac_tool_warned=yes ;;
14590 esac
14591 LIPO=$ac_ct_LIPO
14592 fi
14593 else
14594 LIPO="$ac_cv_prog_LIPO"
14595 fi
14596
14597 if test -n "$ac_tool_prefix"; then
14598 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
14599 set dummy ${ac_tool_prefix}otool; ac_word=$2
14600 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14601 printf %s "checking for $ac_word... " >&6; }
14602 if test ${ac_cv_prog_OTOOL+y}
14603 then :
14604 printf %s "(cached) " >&6
14605 else $as_nop
14606 if test -n "$OTOOL"; then
14607 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
14608 else
14609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14610 for as_dir in $PATH
14611 do
14612 IFS=$as_save_IFS
14613 case $as_dir in #(((
14614 '') as_dir=./ ;;
14615 */) ;;
14616 *) as_dir=$as_dir/ ;;
14617 esac
14618 for ac_exec_ext in '' $ac_executable_extensions; do
14619 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14620 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
14621 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14622 break 2
14623 fi
14624 done
14625 done
14626 IFS=$as_save_IFS
14627
14628 fi
14629 fi
14630 OTOOL=$ac_cv_prog_OTOOL
14631 if test -n "$OTOOL"; then
14632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
14633 printf "%s\n" "$OTOOL" >&6; }
14634 else
14635 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14636 printf "%s\n" "no" >&6; }
14637 fi
14638
14639
14640 fi
14641 if test -z "$ac_cv_prog_OTOOL"; then
14642 ac_ct_OTOOL=$OTOOL
14643 # Extract the first word of "otool", so it can be a program name with args.
14644 set dummy otool; ac_word=$2
14645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14646 printf %s "checking for $ac_word... " >&6; }
14647 if test ${ac_cv_prog_ac_ct_OTOOL+y}
14648 then :
14649 printf %s "(cached) " >&6
14650 else $as_nop
14651 if test -n "$ac_ct_OTOOL"; then
14652 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
14653 else
14654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14655 for as_dir in $PATH
14656 do
14657 IFS=$as_save_IFS
14658 case $as_dir in #(((
14659 '') as_dir=./ ;;
14660 */) ;;
14661 *) as_dir=$as_dir/ ;;
14662 esac
14663 for ac_exec_ext in '' $ac_executable_extensions; do
14664 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14665 ac_cv_prog_ac_ct_OTOOL="otool"
14666 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14667 break 2
14668 fi
14669 done
14670 done
14671 IFS=$as_save_IFS
14672
14673 fi
14674 fi
14675 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
14676 if test -n "$ac_ct_OTOOL"; then
14677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
14678 printf "%s\n" "$ac_ct_OTOOL" >&6; }
14679 else
14680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14681 printf "%s\n" "no" >&6; }
14682 fi
14683
14684 if test "x$ac_ct_OTOOL" = x; then
14685 OTOOL=":"
14686 else
14687 case $cross_compiling:$ac_tool_warned in
14688 yes:)
14689 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14690 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14691 ac_tool_warned=yes ;;
14692 esac
14693 OTOOL=$ac_ct_OTOOL
14694 fi
14695 else
14696 OTOOL="$ac_cv_prog_OTOOL"
14697 fi
14698
14699 if test -n "$ac_tool_prefix"; then
14700 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
14701 set dummy ${ac_tool_prefix}otool64; ac_word=$2
14702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14703 printf %s "checking for $ac_word... " >&6; }
14704 if test ${ac_cv_prog_OTOOL64+y}
14705 then :
14706 printf %s "(cached) " >&6
14707 else $as_nop
14708 if test -n "$OTOOL64"; then
14709 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
14710 else
14711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14712 for as_dir in $PATH
14713 do
14714 IFS=$as_save_IFS
14715 case $as_dir in #(((
14716 '') as_dir=./ ;;
14717 */) ;;
14718 *) as_dir=$as_dir/ ;;
14719 esac
14720 for ac_exec_ext in '' $ac_executable_extensions; do
14721 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14722 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
14723 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14724 break 2
14725 fi
14726 done
14727 done
14728 IFS=$as_save_IFS
14729
14730 fi
14731 fi
14732 OTOOL64=$ac_cv_prog_OTOOL64
14733 if test -n "$OTOOL64"; then
14734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
14735 printf "%s\n" "$OTOOL64" >&6; }
14736 else
14737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14738 printf "%s\n" "no" >&6; }
14739 fi
14740
14741
14742 fi
14743 if test -z "$ac_cv_prog_OTOOL64"; then
14744 ac_ct_OTOOL64=$OTOOL64
14745 # Extract the first word of "otool64", so it can be a program name with args.
14746 set dummy otool64; ac_word=$2
14747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14748 printf %s "checking for $ac_word... " >&6; }
14749 if test ${ac_cv_prog_ac_ct_OTOOL64+y}
14750 then :
14751 printf %s "(cached) " >&6
14752 else $as_nop
14753 if test -n "$ac_ct_OTOOL64"; then
14754 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
14755 else
14756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14757 for as_dir in $PATH
14758 do
14759 IFS=$as_save_IFS
14760 case $as_dir in #(((
14761 '') as_dir=./ ;;
14762 */) ;;
14763 *) as_dir=$as_dir/ ;;
14764 esac
14765 for ac_exec_ext in '' $ac_executable_extensions; do
14766 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14767 ac_cv_prog_ac_ct_OTOOL64="otool64"
14768 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14769 break 2
14770 fi
14771 done
14772 done
14773 IFS=$as_save_IFS
14774
14775 fi
14776 fi
14777 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
14778 if test -n "$ac_ct_OTOOL64"; then
14779 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
14780 printf "%s\n" "$ac_ct_OTOOL64" >&6; }
14781 else
14782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14783 printf "%s\n" "no" >&6; }
14784 fi
14785
14786 if test "x$ac_ct_OTOOL64" = x; then
14787 OTOOL64=":"
14788 else
14789 case $cross_compiling:$ac_tool_warned in
14790 yes:)
14791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14792 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14793 ac_tool_warned=yes ;;
14794 esac
14795 OTOOL64=$ac_ct_OTOOL64
14796 fi
14797 else
14798 OTOOL64="$ac_cv_prog_OTOOL64"
14799 fi
14800
14801
14802
14803
14804
14805
14806
14807
14808
14809
14810
14811
14812
14813
14814
14815
14816
14817
14818
14819
14820
14821
14822
14823
14824
14825
14826
14827 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
14828 printf %s "checking for -single_module linker flag... " >&6; }
14829 if test ${lt_cv_apple_cc_single_mod+y}
14830 then :
14831 printf %s "(cached) " >&6
14832 else $as_nop
14833 lt_cv_apple_cc_single_mod=no
14834 if test -z "$LT_MULTI_MODULE"; then
14835 # By default we will add the -single_module flag. You can override
14836 # by either setting the environment variable LT_MULTI_MODULE
14837 # non-empty at configure time, or by adding -multi_module to the
14838 # link flags.
14839 rm -rf libconftest.dylib*
14840 echo "int foo(void){return 1;}" > conftest.c
14841 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14842 -dynamiclib -Wl,-single_module conftest.c" >&5
14843 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14844 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
14845 _lt_result=$?
14846 # If there is a non-empty error log, and "single_module"
14847 # appears in it, assume the flag caused a linker warning
14848 if test -s conftest.err && $GREP single_module conftest.err; then
14849 cat conftest.err >&5
14850 # Otherwise, if the output was created with a 0 exit code from
14851 # the compiler, it worked.
14852 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
14853 lt_cv_apple_cc_single_mod=yes
14854 else
14855 cat conftest.err >&5
14856 fi
14857 rm -rf libconftest.dylib*
14858 rm -f conftest.*
14859 fi
14860 fi
14861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
14862 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
14863
14864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
14865 printf %s "checking for -exported_symbols_list linker flag... " >&6; }
14866 if test ${lt_cv_ld_exported_symbols_list+y}
14867 then :
14868 printf %s "(cached) " >&6
14869 else $as_nop
14870 lt_cv_ld_exported_symbols_list=no
14871 save_LDFLAGS=$LDFLAGS
14872 echo "_main" > conftest.sym
14873 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
14874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14875 /* end confdefs.h. */
14876
14877 int
14878 main (void)
14879 {
14880
14881 ;
14882 return 0;
14883 }
14884 _ACEOF
14885 if ac_fn_c_try_link "$LINENO"
14886 then :
14887 lt_cv_ld_exported_symbols_list=yes
14888 else $as_nop
14889 lt_cv_ld_exported_symbols_list=no
14890 fi
14891 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14892 conftest$ac_exeext conftest.$ac_ext
14893 LDFLAGS=$save_LDFLAGS
14894
14895 fi
14896 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
14897 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
14898
14899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
14900 printf %s "checking for -force_load linker flag... " >&6; }
14901 if test ${lt_cv_ld_force_load+y}
14902 then :
14903 printf %s "(cached) " >&6
14904 else $as_nop
14905 lt_cv_ld_force_load=no
14906 cat > conftest.c << _LT_EOF
14907 int forced_loaded() { return 2;}
14908 _LT_EOF
14909 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
14910 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
14911 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
14912 $AR $AR_FLAGS libconftest.a conftest.o 2>&5
14913 echo "$RANLIB libconftest.a" >&5
14914 $RANLIB libconftest.a 2>&5
14915 cat > conftest.c << _LT_EOF
14916 int main() { return 0;}
14917 _LT_EOF
14918 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
14919 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
14920 _lt_result=$?
14921 if test -s conftest.err && $GREP force_load conftest.err; then
14922 cat conftest.err >&5
14923 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
14924 lt_cv_ld_force_load=yes
14925 else
14926 cat conftest.err >&5
14927 fi
14928 rm -f conftest.err libconftest.a conftest conftest.c
14929 rm -rf conftest.dSYM
14930
14931 fi
14932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
14933 printf "%s\n" "$lt_cv_ld_force_load" >&6; }
14934 case $host_os in
14935 rhapsody* | darwin1.[012])
14936 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
14937 darwin1.*)
14938 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
14939 darwin*)
14940 case $MACOSX_DEPLOYMENT_TARGET,$host in
14941 10.[012],*|,*powerpc*-darwin[5-8]*)
14942 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
14943 *)
14944 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
14945 esac
14946 ;;
14947 esac
14948 if test yes = "$lt_cv_apple_cc_single_mod"; then
14949 _lt_dar_single_mod='$single_module'
14950 fi
14951 if test yes = "$lt_cv_ld_exported_symbols_list"; then
14952 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
14953 else
14954 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
14955 fi
14956 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
14957 _lt_dsymutil='~$DSYMUTIL $lib || :'
14958 else
14959 _lt_dsymutil=
14960 fi
14961 ;;
14962 esac
14963
14964 # func_munge_path_list VARIABLE PATH
14965 # -----------------------------------
14966 # VARIABLE is name of variable containing _space_ separated list of
14967 # directories to be munged by the contents of PATH, which is string
14968 # having a format:
14969 # "DIR[:DIR]:"
14970 # string "DIR[ DIR]" will be prepended to VARIABLE
14971 # ":DIR[:DIR]"
14972 # string "DIR[ DIR]" will be appended to VARIABLE
14973 # "DIRP[:DIRP]::[DIRA:]DIRA"
14974 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
14975 # "DIRA[ DIRA]" will be appended to VARIABLE
14976 # "DIR[:DIR]"
14977 # VARIABLE will be replaced by "DIR[ DIR]"
14978 func_munge_path_list ()
14979 {
14980 case x$2 in
14981 x)
14982 ;;
14983 *:)
14984 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
14985 ;;
14986 x:*)
14987 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
14988 ;;
14989 *::*)
14990 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
14991 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
14992 ;;
14993 *)
14994 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
14995 ;;
14996 esac
14997 }
14998
14999 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
15000 "
15001 if test "x$ac_cv_header_dlfcn_h" = xyes
15002 then :
15003 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
15004
15005 fi
15006
15007
15008
15009
15010
15011 # Set options
15012
15013
15014
15015 enable_dlopen=no
15016
15017
15018 enable_win32_dll=no
15019
15020
15021 # Check whether --enable-shared was given.
15022 if test ${enable_shared+y}
15023 then :
15024 enableval=$enable_shared; p=${PACKAGE-default}
15025 case $enableval in
15026 yes) enable_shared=yes ;;
15027 no) enable_shared=no ;;
15028 *)
15029 enable_shared=no
15030 # Look at the argument we got. We use all the common list separators.
15031 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
15032 for pkg in $enableval; do
15033 IFS=$lt_save_ifs
15034 if test "X$pkg" = "X$p"; then
15035 enable_shared=yes
15036 fi
15037 done
15038 IFS=$lt_save_ifs
15039 ;;
15040 esac
15041 else $as_nop
15042 enable_shared=yes
15043 fi
15044
15045
15046
15047
15048
15049
15050
15051
15052
15053
15054
15055 # Check whether --with-pic was given.
15056 if test ${with_pic+y}
15057 then :
15058 withval=$with_pic; lt_p=${PACKAGE-default}
15059 case $withval in
15060 yes|no) pic_mode=$withval ;;
15061 *)
15062 pic_mode=default
15063 # Look at the argument we got. We use all the common list separators.
15064 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
15065 for lt_pkg in $withval; do
15066 IFS=$lt_save_ifs
15067 if test "X$lt_pkg" = "X$lt_p"; then
15068 pic_mode=yes
15069 fi
15070 done
15071 IFS=$lt_save_ifs
15072 ;;
15073 esac
15074 else $as_nop
15075 pic_mode=default
15076 fi
15077
15078
15079
15080
15081
15082
15083
15084
15085 # Check whether --enable-fast-install was given.
15086 if test ${enable_fast_install+y}
15087 then :
15088 enableval=$enable_fast_install; p=${PACKAGE-default}
15089 case $enableval in
15090 yes) enable_fast_install=yes ;;
15091 no) enable_fast_install=no ;;
15092 *)
15093 enable_fast_install=no
15094 # Look at the argument we got. We use all the common list separators.
15095 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
15096 for pkg in $enableval; do
15097 IFS=$lt_save_ifs
15098 if test "X$pkg" = "X$p"; then
15099 enable_fast_install=yes
15100 fi
15101 done
15102 IFS=$lt_save_ifs
15103 ;;
15104 esac
15105 else $as_nop
15106 enable_fast_install=yes
15107 fi
15108
15109
15110
15111
15112
15113
15114
15115
15116 shared_archive_member_spec=
15117 case $host,$enable_shared in
15118 power*-*-aix[5-9]*,yes)
15119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
15120 printf %s "checking which variant of shared library versioning to provide... " >&6; }
15121
15122 # Check whether --with-aix-soname was given.
15123 if test ${with_aix_soname+y}
15124 then :
15125 withval=$with_aix_soname; case $withval in
15126 aix|svr4|both)
15127 ;;
15128 *)
15129 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
15130 ;;
15131 esac
15132 lt_cv_with_aix_soname=$with_aix_soname
15133 else $as_nop
15134 if test ${lt_cv_with_aix_soname+y}
15135 then :
15136 printf %s "(cached) " >&6
15137 else $as_nop
15138 lt_cv_with_aix_soname=aix
15139 fi
15140
15141 with_aix_soname=$lt_cv_with_aix_soname
15142 fi
15143
15144 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
15145 printf "%s\n" "$with_aix_soname" >&6; }
15146 if test aix != "$with_aix_soname"; then
15147 # For the AIX way of multilib, we name the shared archive member
15148 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
15149 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
15150 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
15151 # the AIX toolchain works better with OBJECT_MODE set (default 32).
15152 if test 64 = "${OBJECT_MODE-32}"; then
15153 shared_archive_member_spec=shr_64
15154 else
15155 shared_archive_member_spec=shr
15156 fi
15157 fi
15158 ;;
15159 *)
15160 with_aix_soname=aix
15161 ;;
15162 esac
15163
15164
15165
15166
15167
15168
15169
15170
15171
15172
15173 # This can be used to rebuild libtool when needed
15174 LIBTOOL_DEPS=$ltmain
15175
15176 # Always use our own libtool.
15177 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
15178
15179
15180
15181
15182
15183
15184
15185
15186
15187
15188
15189
15190
15191
15192
15193
15194
15195
15196
15197
15198
15199
15200
15201
15202
15203
15204
15205
15206
15207
15208 test -z "$LN_S" && LN_S="ln -s"
15209
15210
15211
15212
15213
15214
15215
15216
15217
15218
15219
15220
15221
15222
15223 if test -n "${ZSH_VERSION+set}"; then
15224 setopt NO_GLOB_SUBST
15225 fi
15226
15227 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
15228 printf %s "checking for objdir... " >&6; }
15229 if test ${lt_cv_objdir+y}
15230 then :
15231 printf %s "(cached) " >&6
15232 else $as_nop
15233 rm -f .libs 2>/dev/null
15234 mkdir .libs 2>/dev/null
15235 if test -d .libs; then
15236 lt_cv_objdir=.libs
15237 else
15238 # MS-DOS does not allow filenames that begin with a dot.
15239 lt_cv_objdir=_libs
15240 fi
15241 rmdir .libs 2>/dev/null
15242 fi
15243 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
15244 printf "%s\n" "$lt_cv_objdir" >&6; }
15245 objdir=$lt_cv_objdir
15246
15247
15248
15249
15250
15251 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
15252
15253
15254
15255
15256 case $host_os in
15257 aix3*)
15258 # AIX sometimes has problems with the GCC collect2 program. For some
15259 # reason, if we set the COLLECT_NAMES environment variable, the problems
15260 # vanish in a puff of smoke.
15261 if test set != "${COLLECT_NAMES+set}"; then
15262 COLLECT_NAMES=
15263 export COLLECT_NAMES
15264 fi
15265 ;;
15266 esac
15267
15268 # Global variables:
15269 ofile=libtool
15270 can_build_shared=yes
15271
15272 # All known linkers require a '.a' archive for static linking (except MSVC and
15273 # ICC, which need '.lib').
15274 libext=a
15275
15276 with_gnu_ld=$lt_cv_prog_gnu_ld
15277
15278 old_CC=$CC
15279 old_CFLAGS=$CFLAGS
15280
15281 # Set sane defaults for various variables
15282 test -z "$CC" && CC=cc
15283 test -z "$LTCC" && LTCC=$CC
15284 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
15285 test -z "$LD" && LD=ld
15286 test -z "$ac_objext" && ac_objext=o
15287
15288 func_cc_basename $compiler
15289 cc_basename=$func_cc_basename_result
15290
15291
15292 # Only perform the check for file, if the check method requires it
15293 test -z "$MAGIC_CMD" && MAGIC_CMD=file
15294 case $deplibs_check_method in
15295 file_magic*)
15296 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
15297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
15298 printf %s "checking for ${ac_tool_prefix}file... " >&6; }
15299 if test ${lt_cv_path_MAGIC_CMD+y}
15300 then :
15301 printf %s "(cached) " >&6
15302 else $as_nop
15303 case $MAGIC_CMD in
15304 [\\/*] | ?:[\\/]*)
15305 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
15306 ;;
15307 *)
15308 lt_save_MAGIC_CMD=$MAGIC_CMD
15309 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
15310 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
15311 for ac_dir in $ac_dummy; do
15312 IFS=$lt_save_ifs
15313 test -z "$ac_dir" && ac_dir=.
15314 if test -f "$ac_dir/${ac_tool_prefix}file"; then
15315 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
15316 if test -n "$file_magic_test_file"; then
15317 case $deplibs_check_method in
15318 "file_magic "*)
15319 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
15320 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
15321 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15322 $EGREP "$file_magic_regex" > /dev/null; then
15323 :
15324 else
15325 cat <<_LT_EOF 1>&2
15326
15327 *** Warning: the command libtool uses to detect shared libraries,
15328 *** $file_magic_cmd, produces output that libtool cannot recognize.
15329 *** The result is that libtool may fail to recognize shared libraries
15330 *** as such. This will affect the creation of libtool libraries that
15331 *** depend on shared libraries, but programs linked with such libtool
15332 *** libraries will work regardless of this problem. Nevertheless, you
15333 *** may want to report the problem to your system manager and/or to
15334 *** bug-libtool@gnu.org
15335
15336 _LT_EOF
15337 fi ;;
15338 esac
15339 fi
15340 break
15341 fi
15342 done
15343 IFS=$lt_save_ifs
15344 MAGIC_CMD=$lt_save_MAGIC_CMD
15345 ;;
15346 esac
15347 fi
15348
15349 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
15350 if test -n "$MAGIC_CMD"; then
15351 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
15352 printf "%s\n" "$MAGIC_CMD" >&6; }
15353 else
15354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15355 printf "%s\n" "no" >&6; }
15356 fi
15357
15358
15359
15360
15361
15362 if test -z "$lt_cv_path_MAGIC_CMD"; then
15363 if test -n "$ac_tool_prefix"; then
15364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
15365 printf %s "checking for file... " >&6; }
15366 if test ${lt_cv_path_MAGIC_CMD+y}
15367 then :
15368 printf %s "(cached) " >&6
15369 else $as_nop
15370 case $MAGIC_CMD in
15371 [\\/*] | ?:[\\/]*)
15372 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
15373 ;;
15374 *)
15375 lt_save_MAGIC_CMD=$MAGIC_CMD
15376 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
15377 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
15378 for ac_dir in $ac_dummy; do
15379 IFS=$lt_save_ifs
15380 test -z "$ac_dir" && ac_dir=.
15381 if test -f "$ac_dir/file"; then
15382 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
15383 if test -n "$file_magic_test_file"; then
15384 case $deplibs_check_method in
15385 "file_magic "*)
15386 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
15387 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
15388 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15389 $EGREP "$file_magic_regex" > /dev/null; then
15390 :
15391 else
15392 cat <<_LT_EOF 1>&2
15393
15394 *** Warning: the command libtool uses to detect shared libraries,
15395 *** $file_magic_cmd, produces output that libtool cannot recognize.
15396 *** The result is that libtool may fail to recognize shared libraries
15397 *** as such. This will affect the creation of libtool libraries that
15398 *** depend on shared libraries, but programs linked with such libtool
15399 *** libraries will work regardless of this problem. Nevertheless, you
15400 *** may want to report the problem to your system manager and/or to
15401 *** bug-libtool@gnu.org
15402
15403 _LT_EOF
15404 fi ;;
15405 esac
15406 fi
15407 break
15408 fi
15409 done
15410 IFS=$lt_save_ifs
15411 MAGIC_CMD=$lt_save_MAGIC_CMD
15412 ;;
15413 esac
15414 fi
15415
15416 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
15417 if test -n "$MAGIC_CMD"; then
15418 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
15419 printf "%s\n" "$MAGIC_CMD" >&6; }
15420 else
15421 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15422 printf "%s\n" "no" >&6; }
15423 fi
15424
15425
15426 else
15427 MAGIC_CMD=:
15428 fi
15429 fi
15430
15431 fi
15432 ;;
15433 esac
15434
15435 # Use C for the default configuration in the libtool script
15436
15437 lt_save_CC=$CC
15438 ac_ext=c
15439 ac_cpp='$CPP $CPPFLAGS'
15440 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15441 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15442 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15443
15444
15445 # Source file extension for C test sources.
15446 ac_ext=c
15447
15448 # Object file extension for compiled C test sources.
15449 objext=o
15450 objext=$objext
15451
15452 # Code to be used in simple compile tests
15453 lt_simple_compile_test_code="int some_variable = 0;"
15454
15455 # Code to be used in simple link tests
15456 lt_simple_link_test_code='int main(){return(0);}'
15457
15458
15459
15460
15461
15462
15463
15464 # If no C compiler was specified, use CC.
15465 LTCC=${LTCC-"$CC"}
15466
15467 # If no C compiler flags were specified, use CFLAGS.
15468 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15469
15470 # Allow CC to be a program name with arguments.
15471 compiler=$CC
15472
15473 # Save the default compiler, since it gets overwritten when the other
15474 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
15475 compiler_DEFAULT=$CC
15476
15477 # save warnings/boilerplate of simple test code
15478 ac_outfile=conftest.$ac_objext
15479 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15480 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15481 _lt_compiler_boilerplate=`cat conftest.err`
15482 $RM conftest*
15483
15484 ac_outfile=conftest.$ac_objext
15485 echo "$lt_simple_link_test_code" >conftest.$ac_ext
15486 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15487 _lt_linker_boilerplate=`cat conftest.err`
15488 $RM -r conftest*
15489
15490
15491 if test -n "$compiler"; then
15492
15493 lt_prog_compiler_no_builtin_flag=
15494
15495 if test yes = "$GCC"; then
15496 case $cc_basename in
15497 nvcc*)
15498 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
15499 *)
15500 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
15501 esac
15502
15503 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15504 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
15505 if test ${lt_cv_prog_compiler_rtti_exceptions+y}
15506 then :
15507 printf %s "(cached) " >&6
15508 else $as_nop
15509 lt_cv_prog_compiler_rtti_exceptions=no
15510 ac_outfile=conftest.$ac_objext
15511 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15512 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
15513 # Insert the option either (1) after the last *FLAGS variable, or
15514 # (2) before a word containing "conftest.", or (3) at the end.
15515 # Note that $ac_compile itself does not contain backslashes and begins
15516 # with a dollar sign (not a hyphen), so the echo should work correctly.
15517 # The option is referenced via a variable to avoid confusing sed.
15518 lt_compile=`echo "$ac_compile" | $SED \
15519 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15520 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15521 -e 's:$: $lt_compiler_flag:'`
15522 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15523 (eval "$lt_compile" 2>conftest.err)
15524 ac_status=$?
15525 cat conftest.err >&5
15526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15527 if (exit $ac_status) && test -s "$ac_outfile"; then
15528 # The compiler can only warn and ignore the option if not recognized
15529 # So say no if there are warnings other than the usual output.
15530 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15531 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15532 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15533 lt_cv_prog_compiler_rtti_exceptions=yes
15534 fi
15535 fi
15536 $RM conftest*
15537
15538 fi
15539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15540 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
15541
15542 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
15543 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
15544 else
15545 :
15546 fi
15547
15548 fi
15549
15550
15551
15552
15553
15554
15555 lt_prog_compiler_wl=
15556 lt_prog_compiler_pic=
15557 lt_prog_compiler_static=
15558
15559
15560 if test yes = "$GCC"; then
15561 lt_prog_compiler_wl='-Wl,'
15562 lt_prog_compiler_static='-static'
15563
15564 case $host_os in
15565 aix*)
15566 # All AIX code is PIC.
15567 if test ia64 = "$host_cpu"; then
15568 # AIX 5 now supports IA64 processor
15569 lt_prog_compiler_static='-Bstatic'
15570 fi
15571 lt_prog_compiler_pic='-fPIC'
15572 ;;
15573
15574 amigaos*)
15575 case $host_cpu in
15576 powerpc)
15577 # see comment about AmigaOS4 .so support
15578 lt_prog_compiler_pic='-fPIC'
15579 ;;
15580 m68k)
15581 # FIXME: we need at least 68020 code to build shared libraries, but
15582 # adding the '-m68020' flag to GCC prevents building anything better,
15583 # like '-m68040'.
15584 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
15585 ;;
15586 esac
15587 ;;
15588
15589 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15590 # PIC is the default for these OSes.
15591 ;;
15592
15593 mingw* | cygwin* | pw32* | os2* | cegcc*)
15594 # This hack is so that the source file can tell whether it is being
15595 # built for inclusion in a dll (and should export symbols for example).
15596 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15597 # (--disable-auto-import) libraries
15598 lt_prog_compiler_pic='-DDLL_EXPORT'
15599 case $host_os in
15600 os2*)
15601 lt_prog_compiler_static='$wl-static'
15602 ;;
15603 esac
15604 ;;
15605
15606 darwin* | rhapsody*)
15607 # PIC is the default on this platform
15608 # Common symbols not allowed in MH_DYLIB files
15609 lt_prog_compiler_pic='-fno-common'
15610 ;;
15611
15612 haiku*)
15613 # PIC is the default for Haiku.
15614 # The "-static" flag exists, but is broken.
15615 lt_prog_compiler_static=
15616 ;;
15617
15618 hpux*)
15619 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15620 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
15621 # sets the default TLS model and affects inlining.
15622 case $host_cpu in
15623 hppa*64*)
15624 # +Z the default
15625 ;;
15626 *)
15627 lt_prog_compiler_pic='-fPIC'
15628 ;;
15629 esac
15630 ;;
15631
15632 interix[3-9]*)
15633 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15634 # Instead, we relocate shared libraries at runtime.
15635 ;;
15636
15637 msdosdjgpp*)
15638 # Just because we use GCC doesn't mean we suddenly get shared libraries
15639 # on systems that don't support them.
15640 lt_prog_compiler_can_build_shared=no
15641 enable_shared=no
15642 ;;
15643
15644 *nto* | *qnx*)
15645 # QNX uses GNU C++, but need to define -shared option too, otherwise
15646 # it will coredump.
15647 lt_prog_compiler_pic='-fPIC -shared'
15648 ;;
15649
15650 sysv4*MP*)
15651 if test -d /usr/nec; then
15652 lt_prog_compiler_pic=-Kconform_pic
15653 fi
15654 ;;
15655
15656 *)
15657 lt_prog_compiler_pic='-fPIC'
15658 ;;
15659 esac
15660
15661 case $cc_basename in
15662 nvcc*) # Cuda Compiler Driver 2.2
15663 lt_prog_compiler_wl='-Xlinker '
15664 if test -n "$lt_prog_compiler_pic"; then
15665 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
15666 fi
15667 ;;
15668 esac
15669 else
15670 # PORTME Check for flag to pass linker flags through the system compiler.
15671 case $host_os in
15672 aix*)
15673 lt_prog_compiler_wl='-Wl,'
15674 if test ia64 = "$host_cpu"; then
15675 # AIX 5 now supports IA64 processor
15676 lt_prog_compiler_static='-Bstatic'
15677 else
15678 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
15679 fi
15680 ;;
15681
15682 darwin* | rhapsody*)
15683 # PIC is the default on this platform
15684 # Common symbols not allowed in MH_DYLIB files
15685 lt_prog_compiler_pic='-fno-common'
15686 case $cc_basename in
15687 nagfor*)
15688 # NAG Fortran compiler
15689 lt_prog_compiler_wl='-Wl,-Wl,,'
15690 lt_prog_compiler_pic='-PIC'
15691 lt_prog_compiler_static='-Bstatic'
15692 ;;
15693 esac
15694 ;;
15695
15696 mingw* | cygwin* | pw32* | os2* | cegcc*)
15697 # This hack is so that the source file can tell whether it is being
15698 # built for inclusion in a dll (and should export symbols for example).
15699 lt_prog_compiler_pic='-DDLL_EXPORT'
15700 case $host_os in
15701 os2*)
15702 lt_prog_compiler_static='$wl-static'
15703 ;;
15704 esac
15705 ;;
15706
15707 hpux9* | hpux10* | hpux11*)
15708 lt_prog_compiler_wl='-Wl,'
15709 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15710 # not for PA HP-UX.
15711 case $host_cpu in
15712 hppa*64*|ia64*)
15713 # +Z the default
15714 ;;
15715 *)
15716 lt_prog_compiler_pic='+Z'
15717 ;;
15718 esac
15719 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15720 lt_prog_compiler_static='$wl-a ${wl}archive'
15721 ;;
15722
15723 irix5* | irix6* | nonstopux*)
15724 lt_prog_compiler_wl='-Wl,'
15725 # PIC (with -KPIC) is the default.
15726 lt_prog_compiler_static='-non_shared'
15727 ;;
15728
15729 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15730 case $cc_basename in
15731 # old Intel for x86_64, which still supported -KPIC.
15732 ecc*)
15733 lt_prog_compiler_wl='-Wl,'
15734 lt_prog_compiler_pic='-KPIC'
15735 lt_prog_compiler_static='-static'
15736 ;;
15737 # icc used to be incompatible with GCC.
15738 # ICC 10 doesn't accept -KPIC any more.
15739 icc* | ifort*)
15740 lt_prog_compiler_wl='-Wl,'
15741 lt_prog_compiler_pic='-fPIC'
15742 lt_prog_compiler_static='-static'
15743 ;;
15744 # Lahey Fortran 8.1.
15745 lf95*)
15746 lt_prog_compiler_wl='-Wl,'
15747 lt_prog_compiler_pic='--shared'
15748 lt_prog_compiler_static='--static'
15749 ;;
15750 nagfor*)
15751 # NAG Fortran compiler
15752 lt_prog_compiler_wl='-Wl,-Wl,,'
15753 lt_prog_compiler_pic='-PIC'
15754 lt_prog_compiler_static='-Bstatic'
15755 ;;
15756 tcc*)
15757 # Fabrice Bellard et al's Tiny C Compiler
15758 lt_prog_compiler_wl='-Wl,'
15759 lt_prog_compiler_pic='-fPIC'
15760 lt_prog_compiler_static='-static'
15761 ;;
15762 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
15763 # Portland Group compilers (*not* the Pentium gcc compiler,
15764 # which looks to be a dead project)
15765 lt_prog_compiler_wl='-Wl,'
15766 lt_prog_compiler_pic='-fpic'
15767 lt_prog_compiler_static='-Bstatic'
15768 ;;
15769 ccc*)
15770 lt_prog_compiler_wl='-Wl,'
15771 # All Alpha code is PIC.
15772 lt_prog_compiler_static='-non_shared'
15773 ;;
15774 xl* | bgxl* | bgf* | mpixl*)
15775 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
15776 lt_prog_compiler_wl='-Wl,'
15777 lt_prog_compiler_pic='-qpic'
15778 lt_prog_compiler_static='-qstaticlink'
15779 ;;
15780 *)
15781 case `$CC -V 2>&1 | $SED 5q` in
15782 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
15783 # Sun Fortran 8.3 passes all unrecognized flags to the linker
15784 lt_prog_compiler_pic='-KPIC'
15785 lt_prog_compiler_static='-Bstatic'
15786 lt_prog_compiler_wl=''
15787 ;;
15788 *Sun\ F* | *Sun*Fortran*)
15789 lt_prog_compiler_pic='-KPIC'
15790 lt_prog_compiler_static='-Bstatic'
15791 lt_prog_compiler_wl='-Qoption ld '
15792 ;;
15793 *Sun\ C*)
15794 # Sun C 5.9
15795 lt_prog_compiler_pic='-KPIC'
15796 lt_prog_compiler_static='-Bstatic'
15797 lt_prog_compiler_wl='-Wl,'
15798 ;;
15799 *Intel*\ [CF]*Compiler*)
15800 lt_prog_compiler_wl='-Wl,'
15801 lt_prog_compiler_pic='-fPIC'
15802 lt_prog_compiler_static='-static'
15803 ;;
15804 *Portland\ Group*)
15805 lt_prog_compiler_wl='-Wl,'
15806 lt_prog_compiler_pic='-fpic'
15807 lt_prog_compiler_static='-Bstatic'
15808 ;;
15809 esac
15810 ;;
15811 esac
15812 ;;
15813
15814 newsos6)
15815 lt_prog_compiler_pic='-KPIC'
15816 lt_prog_compiler_static='-Bstatic'
15817 ;;
15818
15819 *nto* | *qnx*)
15820 # QNX uses GNU C++, but need to define -shared option too, otherwise
15821 # it will coredump.
15822 lt_prog_compiler_pic='-fPIC -shared'
15823 ;;
15824
15825 osf3* | osf4* | osf5*)
15826 lt_prog_compiler_wl='-Wl,'
15827 # All OSF/1 code is PIC.
15828 lt_prog_compiler_static='-non_shared'
15829 ;;
15830
15831 rdos*)
15832 lt_prog_compiler_static='-non_shared'
15833 ;;
15834
15835 solaris*)
15836 lt_prog_compiler_pic='-KPIC'
15837 lt_prog_compiler_static='-Bstatic'
15838 case $cc_basename in
15839 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
15840 lt_prog_compiler_wl='-Qoption ld ';;
15841 *)
15842 lt_prog_compiler_wl='-Wl,';;
15843 esac
15844 ;;
15845
15846 sunos4*)
15847 lt_prog_compiler_wl='-Qoption ld '
15848 lt_prog_compiler_pic='-PIC'
15849 lt_prog_compiler_static='-Bstatic'
15850 ;;
15851
15852 sysv4 | sysv4.2uw2* | sysv4.3*)
15853 lt_prog_compiler_wl='-Wl,'
15854 lt_prog_compiler_pic='-KPIC'
15855 lt_prog_compiler_static='-Bstatic'
15856 ;;
15857
15858 sysv4*MP*)
15859 if test -d /usr/nec; then
15860 lt_prog_compiler_pic='-Kconform_pic'
15861 lt_prog_compiler_static='-Bstatic'
15862 fi
15863 ;;
15864
15865 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15866 lt_prog_compiler_wl='-Wl,'
15867 lt_prog_compiler_pic='-KPIC'
15868 lt_prog_compiler_static='-Bstatic'
15869 ;;
15870
15871 unicos*)
15872 lt_prog_compiler_wl='-Wl,'
15873 lt_prog_compiler_can_build_shared=no
15874 ;;
15875
15876 uts4*)
15877 lt_prog_compiler_pic='-pic'
15878 lt_prog_compiler_static='-Bstatic'
15879 ;;
15880
15881 *)
15882 lt_prog_compiler_can_build_shared=no
15883 ;;
15884 esac
15885 fi
15886
15887 case $host_os in
15888 # For platforms that do not support PIC, -DPIC is meaningless:
15889 *djgpp*)
15890 lt_prog_compiler_pic=
15891 ;;
15892 *)
15893 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15894 ;;
15895 esac
15896
15897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15898 printf %s "checking for $compiler option to produce PIC... " >&6; }
15899 if test ${lt_cv_prog_compiler_pic+y}
15900 then :
15901 printf %s "(cached) " >&6
15902 else $as_nop
15903 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
15904 fi
15905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
15906 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
15907 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
15908
15909 #
15910 # Check to make sure the PIC flag actually works.
15911 #
15912 if test -n "$lt_prog_compiler_pic"; then
15913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
15914 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
15915 if test ${lt_cv_prog_compiler_pic_works+y}
15916 then :
15917 printf %s "(cached) " >&6
15918 else $as_nop
15919 lt_cv_prog_compiler_pic_works=no
15920 ac_outfile=conftest.$ac_objext
15921 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15922 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
15923 # Insert the option either (1) after the last *FLAGS variable, or
15924 # (2) before a word containing "conftest.", or (3) at the end.
15925 # Note that $ac_compile itself does not contain backslashes and begins
15926 # with a dollar sign (not a hyphen), so the echo should work correctly.
15927 # The option is referenced via a variable to avoid confusing sed.
15928 lt_compile=`echo "$ac_compile" | $SED \
15929 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15930 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15931 -e 's:$: $lt_compiler_flag:'`
15932 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15933 (eval "$lt_compile" 2>conftest.err)
15934 ac_status=$?
15935 cat conftest.err >&5
15936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15937 if (exit $ac_status) && test -s "$ac_outfile"; then
15938 # The compiler can only warn and ignore the option if not recognized
15939 # So say no if there are warnings other than the usual output.
15940 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15941 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15942 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15943 lt_cv_prog_compiler_pic_works=yes
15944 fi
15945 fi
15946 $RM conftest*
15947
15948 fi
15949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
15950 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
15951
15952 if test yes = "$lt_cv_prog_compiler_pic_works"; then
15953 case $lt_prog_compiler_pic in
15954 "" | " "*) ;;
15955 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15956 esac
15957 else
15958 lt_prog_compiler_pic=
15959 lt_prog_compiler_can_build_shared=no
15960 fi
15961
15962 fi
15963
15964
15965
15966
15967
15968
15969
15970
15971
15972
15973
15974 #
15975 # Check to make sure the static flag actually works.
15976 #
15977 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15979 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15980 if test ${lt_cv_prog_compiler_static_works+y}
15981 then :
15982 printf %s "(cached) " >&6
15983 else $as_nop
15984 lt_cv_prog_compiler_static_works=no
15985 save_LDFLAGS=$LDFLAGS
15986 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15987 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15988 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15989 # The linker can only warn and ignore the option if not recognized
15990 # So say no if there are warnings
15991 if test -s conftest.err; then
15992 # Append any errors to the config.log.
15993 cat conftest.err 1>&5
15994 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15995 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15996 if diff conftest.exp conftest.er2 >/dev/null; then
15997 lt_cv_prog_compiler_static_works=yes
15998 fi
15999 else
16000 lt_cv_prog_compiler_static_works=yes
16001 fi
16002 fi
16003 $RM -r conftest*
16004 LDFLAGS=$save_LDFLAGS
16005
16006 fi
16007 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
16008 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
16009
16010 if test yes = "$lt_cv_prog_compiler_static_works"; then
16011 :
16012 else
16013 lt_prog_compiler_static=
16014 fi
16015
16016
16017
16018
16019
16020
16021
16022 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16023 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16024 if test ${lt_cv_prog_compiler_c_o+y}
16025 then :
16026 printf %s "(cached) " >&6
16027 else $as_nop
16028 lt_cv_prog_compiler_c_o=no
16029 $RM -r conftest 2>/dev/null
16030 mkdir conftest
16031 cd conftest
16032 mkdir out
16033 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16034
16035 lt_compiler_flag="-o out/conftest2.$ac_objext"
16036 # Insert the option either (1) after the last *FLAGS variable, or
16037 # (2) before a word containing "conftest.", or (3) at the end.
16038 # Note that $ac_compile itself does not contain backslashes and begins
16039 # with a dollar sign (not a hyphen), so the echo should work correctly.
16040 lt_compile=`echo "$ac_compile" | $SED \
16041 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16042 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16043 -e 's:$: $lt_compiler_flag:'`
16044 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16045 (eval "$lt_compile" 2>out/conftest.err)
16046 ac_status=$?
16047 cat out/conftest.err >&5
16048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16049 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16050 then
16051 # The compiler can only warn and ignore the option if not recognized
16052 # So say no if there are warnings
16053 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16054 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16055 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16056 lt_cv_prog_compiler_c_o=yes
16057 fi
16058 fi
16059 chmod u+w . 2>&5
16060 $RM conftest*
16061 # SGI C++ compiler will create directory out/ii_files/ for
16062 # template instantiation
16063 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16064 $RM out/* && rmdir out
16065 cd ..
16066 $RM -r conftest
16067 $RM conftest*
16068
16069 fi
16070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
16071 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
16072
16073
16074
16075
16076
16077
16078 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16079 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16080 if test ${lt_cv_prog_compiler_c_o+y}
16081 then :
16082 printf %s "(cached) " >&6
16083 else $as_nop
16084 lt_cv_prog_compiler_c_o=no
16085 $RM -r conftest 2>/dev/null
16086 mkdir conftest
16087 cd conftest
16088 mkdir out
16089 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16090
16091 lt_compiler_flag="-o out/conftest2.$ac_objext"
16092 # Insert the option either (1) after the last *FLAGS variable, or
16093 # (2) before a word containing "conftest.", or (3) at the end.
16094 # Note that $ac_compile itself does not contain backslashes and begins
16095 # with a dollar sign (not a hyphen), so the echo should work correctly.
16096 lt_compile=`echo "$ac_compile" | $SED \
16097 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16098 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16099 -e 's:$: $lt_compiler_flag:'`
16100 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16101 (eval "$lt_compile" 2>out/conftest.err)
16102 ac_status=$?
16103 cat out/conftest.err >&5
16104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16105 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16106 then
16107 # The compiler can only warn and ignore the option if not recognized
16108 # So say no if there are warnings
16109 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16110 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16111 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16112 lt_cv_prog_compiler_c_o=yes
16113 fi
16114 fi
16115 chmod u+w . 2>&5
16116 $RM conftest*
16117 # SGI C++ compiler will create directory out/ii_files/ for
16118 # template instantiation
16119 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16120 $RM out/* && rmdir out
16121 cd ..
16122 $RM -r conftest
16123 $RM conftest*
16124
16125 fi
16126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
16127 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
16128
16129
16130
16131
16132 hard_links=nottested
16133 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
16134 # do not overwrite the value of need_locks provided by the user
16135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
16136 printf %s "checking if we can lock with hard links... " >&6; }
16137 hard_links=yes
16138 $RM conftest*
16139 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16140 touch conftest.a
16141 ln conftest.a conftest.b 2>&5 || hard_links=no
16142 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
16144 printf "%s\n" "$hard_links" >&6; }
16145 if test no = "$hard_links"; then
16146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
16147 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
16148 need_locks=warn
16149 fi
16150 else
16151 need_locks=no
16152 fi
16153
16154
16155
16156
16157
16158
16159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16160 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16161
16162 runpath_var=
16163 allow_undefined_flag=
16164 always_export_symbols=no
16165 archive_cmds=
16166 archive_expsym_cmds=
16167 compiler_needs_object=no
16168 enable_shared_with_static_runtimes=no
16169 export_dynamic_flag_spec=
16170 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16171 hardcode_automatic=no
16172 hardcode_direct=no
16173 hardcode_direct_absolute=no
16174 hardcode_libdir_flag_spec=
16175 hardcode_libdir_separator=
16176 hardcode_minus_L=no
16177 hardcode_shlibpath_var=unsupported
16178 inherit_rpath=no
16179 link_all_deplibs=unknown
16180 module_cmds=
16181 module_expsym_cmds=
16182 old_archive_from_new_cmds=
16183 old_archive_from_expsyms_cmds=
16184 thread_safe_flag_spec=
16185 whole_archive_flag_spec=
16186 # include_expsyms should be a list of space-separated symbols to be *always*
16187 # included in the symbol list
16188 include_expsyms=
16189 # exclude_expsyms can be an extended regexp of symbols to exclude
16190 # it will be wrapped by ' (' and ')$', so one must not match beginning or
16191 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
16192 # as well as any symbol that contains 'd'.
16193 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16194 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16195 # platforms (ab)use it in PIC code, but their linkers get confused if
16196 # the symbol is explicitly referenced. Since portable code cannot
16197 # rely on this symbol name, it's probably fine to never include it in
16198 # preloaded symbol tables.
16199 # Exclude shared library initialization/finalization symbols.
16200 extract_expsyms_cmds=
16201
16202 case $host_os in
16203 cygwin* | mingw* | pw32* | cegcc*)
16204 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
16205 # When not using gcc, we currently assume that we are using
16206 # Microsoft Visual C++ or Intel C++ Compiler.
16207 if test yes != "$GCC"; then
16208 with_gnu_ld=no
16209 fi
16210 ;;
16211 interix*)
16212 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
16213 with_gnu_ld=yes
16214 ;;
16215 openbsd* | bitrig*)
16216 with_gnu_ld=no
16217 ;;
16218 esac
16219
16220 ld_shlibs=yes
16221
16222 # On some targets, GNU ld is compatible enough with the native linker
16223 # that we're better off using the native interface for both.
16224 lt_use_gnu_ld_interface=no
16225 if test yes = "$with_gnu_ld"; then
16226 case $host_os in
16227 aix*)
16228 # The AIX port of GNU ld has always aspired to compatibility
16229 # with the native linker. However, as the warning in the GNU ld
16230 # block says, versions before 2.19.5* couldn't really create working
16231 # shared libraries, regardless of the interface used.
16232 case `$LD -v 2>&1` in
16233 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
16234 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
16235 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
16236 *)
16237 lt_use_gnu_ld_interface=yes
16238 ;;
16239 esac
16240 ;;
16241 *)
16242 lt_use_gnu_ld_interface=yes
16243 ;;
16244 esac
16245 fi
16246
16247 if test yes = "$lt_use_gnu_ld_interface"; then
16248 # If archive_cmds runs LD, not CC, wlarc should be empty
16249 wlarc='$wl'
16250
16251 # Set some defaults for GNU ld with shared library support. These
16252 # are reset later if shared libraries are not supported. Putting them
16253 # here allows them to be overridden if necessary.
16254 runpath_var=LD_RUN_PATH
16255 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
16256 export_dynamic_flag_spec='$wl--export-dynamic'
16257 # ancient GNU ld didn't support --whole-archive et. al.
16258 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
16259 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
16260 else
16261 whole_archive_flag_spec=
16262 fi
16263 supports_anon_versioning=no
16264 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
16265 *GNU\ gold*) supports_anon_versioning=yes ;;
16266 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16267 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16268 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16269 *\ 2.11.*) ;; # other 2.11 versions
16270 *) supports_anon_versioning=yes ;;
16271 esac
16272
16273 # See if GNU ld supports shared libraries.
16274 case $host_os in
16275 aix[3-9]*)
16276 # On AIX/PPC, the GNU linker is very broken
16277 if test ia64 != "$host_cpu"; then
16278 ld_shlibs=no
16279 cat <<_LT_EOF 1>&2
16280
16281 *** Warning: the GNU linker, at least up to release 2.19, is reported
16282 *** to be unable to reliably create shared libraries on AIX.
16283 *** Therefore, libtool is disabling shared libraries support. If you
16284 *** really care for shared libraries, you may want to install binutils
16285 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
16286 *** You will then need to restart the configuration process.
16287
16288 _LT_EOF
16289 fi
16290 ;;
16291
16292 amigaos*)
16293 case $host_cpu in
16294 powerpc)
16295 # see comment about AmigaOS4 .so support
16296 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16297 archive_expsym_cmds=''
16298 ;;
16299 m68k)
16300 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)'
16301 hardcode_libdir_flag_spec='-L$libdir'
16302 hardcode_minus_L=yes
16303 ;;
16304 esac
16305 ;;
16306
16307 beos*)
16308 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16309 allow_undefined_flag=unsupported
16310 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
16311 # support --undefined. This deserves some investigation. FIXME
16312 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16313 else
16314 ld_shlibs=no
16315 fi
16316 ;;
16317
16318 cygwin* | mingw* | pw32* | cegcc*)
16319 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
16320 # as there is no search path for DLLs.
16321 hardcode_libdir_flag_spec='-L$libdir'
16322 export_dynamic_flag_spec='$wl--export-all-symbols'
16323 allow_undefined_flag=unsupported
16324 always_export_symbols=no
16325 enable_shared_with_static_runtimes=yes
16326 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'
16327 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
16328
16329 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
16330 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16331 # If the export-symbols file already is a .def file, use it as
16332 # is; otherwise, prepend EXPORTS...
16333 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
16334 cp $export_symbols $output_objdir/$soname.def;
16335 else
16336 echo EXPORTS > $output_objdir/$soname.def;
16337 cat $export_symbols >> $output_objdir/$soname.def;
16338 fi~
16339 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16340 else
16341 ld_shlibs=no
16342 fi
16343 ;;
16344
16345 haiku*)
16346 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16347 link_all_deplibs=yes
16348 ;;
16349
16350 os2*)
16351 hardcode_libdir_flag_spec='-L$libdir'
16352 hardcode_minus_L=yes
16353 allow_undefined_flag=unsupported
16354 shrext_cmds=.dll
16355 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
16356 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
16357 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
16358 $ECHO EXPORTS >> $output_objdir/$libname.def~
16359 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
16360 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
16361 emximp -o $lib $output_objdir/$libname.def'
16362 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
16363 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
16364 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
16365 $ECHO EXPORTS >> $output_objdir/$libname.def~
16366 prefix_cmds="$SED"~
16367 if test EXPORTS = "`$SED 1q $export_symbols`"; then
16368 prefix_cmds="$prefix_cmds -e 1d";
16369 fi~
16370 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
16371 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
16372 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
16373 emximp -o $lib $output_objdir/$libname.def'
16374 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
16375 enable_shared_with_static_runtimes=yes
16376 file_list_spec='@'
16377 ;;
16378
16379 interix[3-9]*)
16380 hardcode_direct=no
16381 hardcode_shlibpath_var=no
16382 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
16383 export_dynamic_flag_spec='$wl-E'
16384 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16385 # Instead, shared libraries are loaded at an image base (0x10000000 by
16386 # default) and relocated if they conflict, which is a slow very memory
16387 # consuming and fragmenting process. To avoid this, we pick a random,
16388 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16389 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16390 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16391 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'
16392 ;;
16393
16394 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
16395 tmp_diet=no
16396 if test linux-dietlibc = "$host_os"; then
16397 case $cc_basename in
16398 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
16399 esac
16400 fi
16401 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
16402 && test no = "$tmp_diet"
16403 then
16404 tmp_addflag=' $pic_flag'
16405 tmp_sharedflag='-shared'
16406 case $cc_basename,$host_cpu in
16407 pgcc*) # Portland Group C compiler
16408 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'
16409 tmp_addflag=' $pic_flag'
16410 ;;
16411 pgf77* | pgf90* | pgf95* | pgfortran*)
16412 # Portland Group f77 and f90 compilers
16413 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'
16414 tmp_addflag=' $pic_flag -Mnomain' ;;
16415 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16416 tmp_addflag=' -i_dynamic' ;;
16417 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16418 tmp_addflag=' -i_dynamic -nofor_main' ;;
16419 ifc* | ifort*) # Intel Fortran compiler
16420 tmp_addflag=' -nofor_main' ;;
16421 lf95*) # Lahey Fortran 8.1
16422 whole_archive_flag_spec=
16423 tmp_sharedflag='--shared' ;;
16424 nagfor*) # NAGFOR 5.3
16425 tmp_sharedflag='-Wl,-shared' ;;
16426 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
16427 tmp_sharedflag='-qmkshrobj'
16428 tmp_addflag= ;;
16429 nvcc*) # Cuda Compiler Driver 2.2
16430 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'
16431 compiler_needs_object=yes
16432 ;;
16433 esac
16434 case `$CC -V 2>&1 | $SED 5q` in
16435 *Sun\ C*) # Sun C 5.9
16436 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'
16437 compiler_needs_object=yes
16438 tmp_sharedflag='-G' ;;
16439 *Sun\ F*) # Sun Fortran 8.3
16440 tmp_sharedflag='-G' ;;
16441 esac
16442 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16443
16444 if test yes = "$supports_anon_versioning"; then
16445 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
16446 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16447 echo "local: *; };" >> $output_objdir/$libname.ver~
16448 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
16449 fi
16450
16451 case $cc_basename in
16452 tcc*)
16453 export_dynamic_flag_spec='-rdynamic'
16454 ;;
16455 xlf* | bgf* | bgxlf* | mpixlf*)
16456 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
16457 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
16458 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
16459 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
16460 if test yes = "$supports_anon_versioning"; then
16461 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
16462 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16463 echo "local: *; };" >> $output_objdir/$libname.ver~
16464 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
16465 fi
16466 ;;
16467 esac
16468 else
16469 ld_shlibs=no
16470 fi
16471 ;;
16472
16473 netbsd*)
16474 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16475 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16476 wlarc=
16477 else
16478 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16479 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
16480 fi
16481 ;;
16482
16483 solaris*)
16484 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
16485 ld_shlibs=no
16486 cat <<_LT_EOF 1>&2
16487
16488 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16489 *** create shared libraries on Solaris systems. Therefore, libtool
16490 *** is disabling shared libraries support. We urge you to upgrade GNU
16491 *** binutils to release 2.9.1 or newer. Another option is to modify
16492 *** your PATH or compiler configuration so that the native linker is
16493 *** used, and then restart.
16494
16495 _LT_EOF
16496 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16497 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16498 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
16499 else
16500 ld_shlibs=no
16501 fi
16502 ;;
16503
16504 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16505 case `$LD -v 2>&1` in
16506 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16507 ld_shlibs=no
16508 cat <<_LT_EOF 1>&2
16509
16510 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
16511 *** reliably create shared libraries on SCO systems. Therefore, libtool
16512 *** is disabling shared libraries support. We urge you to upgrade GNU
16513 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16514 *** your PATH or compiler configuration so that the native linker is
16515 *** used, and then restart.
16516
16517 _LT_EOF
16518 ;;
16519 *)
16520 # For security reasons, it is highly recommended that you always
16521 # use absolute paths for naming shared libraries, and exclude the
16522 # DT_RUNPATH tag from executables and libraries. But doing so
16523 # requires that you compile everything twice, which is a pain.
16524 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16525 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
16526 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16527 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
16528 else
16529 ld_shlibs=no
16530 fi
16531 ;;
16532 esac
16533 ;;
16534
16535 sunos4*)
16536 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16537 wlarc=
16538 hardcode_direct=yes
16539 hardcode_shlibpath_var=no
16540 ;;
16541
16542 *)
16543 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16544 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16545 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
16546 else
16547 ld_shlibs=no
16548 fi
16549 ;;
16550 esac
16551
16552 if test no = "$ld_shlibs"; then
16553 runpath_var=
16554 hardcode_libdir_flag_spec=
16555 export_dynamic_flag_spec=
16556 whole_archive_flag_spec=
16557 fi
16558 else
16559 # PORTME fill in a description of your system's linker (not GNU ld)
16560 case $host_os in
16561 aix3*)
16562 allow_undefined_flag=unsupported
16563 always_export_symbols=yes
16564 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'
16565 # Note: this linker hardcodes the directories in LIBPATH if there
16566 # are no directories specified by -L.
16567 hardcode_minus_L=yes
16568 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
16569 # Neither direct hardcoding nor static linking is supported with a
16570 # broken collect2.
16571 hardcode_direct=unsupported
16572 fi
16573 ;;
16574
16575 aix[4-9]*)
16576 if test ia64 = "$host_cpu"; then
16577 # On IA64, the linker does run time linking by default, so we don't
16578 # have to do anything special.
16579 aix_use_runtimelinking=no
16580 exp_sym_flag='-Bexport'
16581 no_entry_flag=
16582 else
16583 # If we're using GNU nm, then we don't want the "-C" option.
16584 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
16585 # Without the "-l" option, or with the "-B" option, AIX nm treats
16586 # weak defined symbols like other global defined symbols, whereas
16587 # GNU nm marks them as "W".
16588 # While the 'weak' keyword is ignored in the Export File, we need
16589 # it in the Import File for the 'aix-soname' feature, so we have
16590 # to replace the "-B" option with "-P" for AIX nm.
16591 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
16592 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'
16593 else
16594 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'
16595 fi
16596 aix_use_runtimelinking=no
16597
16598 # Test if we are trying to use run time linking or normal
16599 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16600 # have runtime linking enabled, and use it for executables.
16601 # For shared libraries, we enable/disable runtime linking
16602 # depending on the kind of the shared library created -
16603 # when "with_aix_soname,aix_use_runtimelinking" is:
16604 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
16605 # "aix,yes" lib.so shared, rtl:yes, for executables
16606 # lib.a static archive
16607 # "both,no" lib.so.V(shr.o) shared, rtl:yes
16608 # lib.a(lib.so.V) shared, rtl:no, for executables
16609 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
16610 # lib.a(lib.so.V) shared, rtl:no
16611 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
16612 # lib.a static archive
16613 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
16614 for ld_flag in $LDFLAGS; do
16615 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
16616 aix_use_runtimelinking=yes
16617 break
16618 fi
16619 done
16620 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
16621 # With aix-soname=svr4, we create the lib.so.V shared archives only,
16622 # so we don't have lib.a shared libs to link our executables.
16623 # We have to force runtime linking in this case.
16624 aix_use_runtimelinking=yes
16625 LDFLAGS="$LDFLAGS -Wl,-brtl"
16626 fi
16627 ;;
16628 esac
16629
16630 exp_sym_flag='-bexport'
16631 no_entry_flag='-bnoentry'
16632 fi
16633
16634 # When large executables or shared objects are built, AIX ld can
16635 # have problems creating the table of contents. If linking a library
16636 # or program results in "error TOC overflow" add -mminimal-toc to
16637 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16638 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16639
16640 archive_cmds=''
16641 hardcode_direct=yes
16642 hardcode_direct_absolute=yes
16643 hardcode_libdir_separator=':'
16644 link_all_deplibs=yes
16645 file_list_spec='$wl-f,'
16646 case $with_aix_soname,$aix_use_runtimelinking in
16647 aix,*) ;; # traditional, no import file
16648 svr4,* | *,yes) # use import file
16649 # The Import File defines what to hardcode.
16650 hardcode_direct=no
16651 hardcode_direct_absolute=no
16652 ;;
16653 esac
16654
16655 if test yes = "$GCC"; then
16656 case $host_os in aix4.[012]|aix4.[012].*)
16657 # We only want to do this on AIX 4.2 and lower, the check
16658 # below for broken collect2 doesn't work under 4.3+
16659 collect2name=`$CC -print-prog-name=collect2`
16660 if test -f "$collect2name" &&
16661 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
16662 then
16663 # We have reworked collect2
16664 :
16665 else
16666 # We have old collect2
16667 hardcode_direct=unsupported
16668 # It fails to find uninstalled libraries when the uninstalled
16669 # path is not listed in the libpath. Setting hardcode_minus_L
16670 # to unsupported forces relinking
16671 hardcode_minus_L=yes
16672 hardcode_libdir_flag_spec='-L$libdir'
16673 hardcode_libdir_separator=
16674 fi
16675 ;;
16676 esac
16677 shared_flag='-shared'
16678 if test yes = "$aix_use_runtimelinking"; then
16679 shared_flag="$shared_flag "'$wl-G'
16680 fi
16681 # Need to ensure runtime linking is disabled for the traditional
16682 # shared library, or the linker may eventually find shared libraries
16683 # /with/ Import File - we do not want to mix them.
16684 shared_flag_aix='-shared'
16685 shared_flag_svr4='-shared $wl-G'
16686 else
16687 # not using gcc
16688 if test ia64 = "$host_cpu"; then
16689 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16690 # chokes on -Wl,-G. The following line is correct:
16691 shared_flag='-G'
16692 else
16693 if test yes = "$aix_use_runtimelinking"; then
16694 shared_flag='$wl-G'
16695 else
16696 shared_flag='$wl-bM:SRE'
16697 fi
16698 shared_flag_aix='$wl-bM:SRE'
16699 shared_flag_svr4='$wl-G'
16700 fi
16701 fi
16702
16703 export_dynamic_flag_spec='$wl-bexpall'
16704 # It seems that -bexpall does not export symbols beginning with
16705 # underscore (_), so it is better to generate a list of symbols to export.
16706 always_export_symbols=yes
16707 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
16708 # Warning - without using the other runtime loading flags (-brtl),
16709 # -berok will link without error, but may produce a broken library.
16710 allow_undefined_flag='-berok'
16711 # Determine the default libpath from the value encoded in an
16712 # empty executable.
16713 if test set = "${lt_cv_aix_libpath+set}"; then
16714 aix_libpath=$lt_cv_aix_libpath
16715 else
16716 if test ${lt_cv_aix_libpath_+y}
16717 then :
16718 printf %s "(cached) " >&6
16719 else $as_nop
16720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16721 /* end confdefs.h. */
16722
16723 int
16724 main (void)
16725 {
16726
16727 ;
16728 return 0;
16729 }
16730 _ACEOF
16731 if ac_fn_c_try_link "$LINENO"
16732 then :
16733
16734 lt_aix_libpath_sed='
16735 /Import File Strings/,/^$/ {
16736 /^0/ {
16737 s/^0 *\([^ ]*\) *$/\1/
16738 p
16739 }
16740 }'
16741 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16742 # Check for a 64-bit object if we didn't find anything.
16743 if test -z "$lt_cv_aix_libpath_"; then
16744 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16745 fi
16746 fi
16747 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16748 conftest$ac_exeext conftest.$ac_ext
16749 if test -z "$lt_cv_aix_libpath_"; then
16750 lt_cv_aix_libpath_=/usr/lib:/lib
16751 fi
16752
16753 fi
16754
16755 aix_libpath=$lt_cv_aix_libpath_
16756 fi
16757
16758 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
16759 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
16760 else
16761 if test ia64 = "$host_cpu"; then
16762 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
16763 allow_undefined_flag="-z nodefs"
16764 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"
16765 else
16766 # Determine the default libpath from the value encoded in an
16767 # empty executable.
16768 if test set = "${lt_cv_aix_libpath+set}"; then
16769 aix_libpath=$lt_cv_aix_libpath
16770 else
16771 if test ${lt_cv_aix_libpath_+y}
16772 then :
16773 printf %s "(cached) " >&6
16774 else $as_nop
16775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16776 /* end confdefs.h. */
16777
16778 int
16779 main (void)
16780 {
16781
16782 ;
16783 return 0;
16784 }
16785 _ACEOF
16786 if ac_fn_c_try_link "$LINENO"
16787 then :
16788
16789 lt_aix_libpath_sed='
16790 /Import File Strings/,/^$/ {
16791 /^0/ {
16792 s/^0 *\([^ ]*\) *$/\1/
16793 p
16794 }
16795 }'
16796 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16797 # Check for a 64-bit object if we didn't find anything.
16798 if test -z "$lt_cv_aix_libpath_"; then
16799 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16800 fi
16801 fi
16802 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16803 conftest$ac_exeext conftest.$ac_ext
16804 if test -z "$lt_cv_aix_libpath_"; then
16805 lt_cv_aix_libpath_=/usr/lib:/lib
16806 fi
16807
16808 fi
16809
16810 aix_libpath=$lt_cv_aix_libpath_
16811 fi
16812
16813 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
16814 # Warning - without using the other run time loading flags,
16815 # -berok will link without error, but may produce a broken library.
16816 no_undefined_flag=' $wl-bernotok'
16817 allow_undefined_flag=' $wl-berok'
16818 if test yes = "$with_gnu_ld"; then
16819 # We only use this code for GNU lds that support --whole-archive.
16820 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
16821 else
16822 # Exported symbols can be pulled into shared objects from archives
16823 whole_archive_flag_spec='$convenience'
16824 fi
16825 archive_cmds_need_lc=yes
16826 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
16827 # -brtl affects multiple linker settings, -berok does not and is overridden later
16828 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
16829 if test svr4 != "$with_aix_soname"; then
16830 # This is similar to how AIX traditionally builds its shared libraries.
16831 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'
16832 fi
16833 if test aix != "$with_aix_soname"; then
16834 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'
16835 else
16836 # used by -dlpreopen to get the symbols
16837 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
16838 fi
16839 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
16840 fi
16841 fi
16842 ;;
16843
16844 amigaos*)
16845 case $host_cpu in
16846 powerpc)
16847 # see comment about AmigaOS4 .so support
16848 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16849 archive_expsym_cmds=''
16850 ;;
16851 m68k)
16852 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)'
16853 hardcode_libdir_flag_spec='-L$libdir'
16854 hardcode_minus_L=yes
16855 ;;
16856 esac
16857 ;;
16858
16859 bsdi[45]*)
16860 export_dynamic_flag_spec=-rdynamic
16861 ;;
16862
16863 cygwin* | mingw* | pw32* | cegcc*)
16864 # When not using gcc, we currently assume that we are using
16865 # Microsoft Visual C++ or Intel C++ Compiler.
16866 # hardcode_libdir_flag_spec is actually meaningless, as there is
16867 # no search path for DLLs.
16868 case $cc_basename in
16869 cl* | icl*)
16870 # Native MSVC or ICC
16871 hardcode_libdir_flag_spec=' '
16872 allow_undefined_flag=unsupported
16873 always_export_symbols=yes
16874 file_list_spec='@'
16875 # Tell ltmain to make .lib files, not .a files.
16876 libext=lib
16877 # Tell ltmain to make .dll files, not .so files.
16878 shrext_cmds=.dll
16879 # FIXME: Setting linknames here is a bad hack.
16880 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
16881 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
16882 cp "$export_symbols" "$output_objdir/$soname.def";
16883 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
16884 else
16885 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
16886 fi~
16887 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
16888 linknames='
16889 # The linker will not automatically build a static lib if we build a DLL.
16890 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
16891 enable_shared_with_static_runtimes=yes
16892 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
16893 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16894 # Don't use ranlib
16895 old_postinstall_cmds='chmod 644 $oldlib'
16896 postlink_cmds='lt_outputfile="@OUTPUT@"~
16897 lt_tool_outputfile="@TOOL_OUTPUT@"~
16898 case $lt_outputfile in
16899 *.exe|*.EXE) ;;
16900 *)
16901 lt_outputfile=$lt_outputfile.exe
16902 lt_tool_outputfile=$lt_tool_outputfile.exe
16903 ;;
16904 esac~
16905 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
16906 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
16907 $RM "$lt_outputfile.manifest";
16908 fi'
16909 ;;
16910 *)
16911 # Assume MSVC and ICC wrapper
16912 hardcode_libdir_flag_spec=' '
16913 allow_undefined_flag=unsupported
16914 # Tell ltmain to make .lib files, not .a files.
16915 libext=lib
16916 # Tell ltmain to make .dll files, not .so files.
16917 shrext_cmds=.dll
16918 # FIXME: Setting linknames here is a bad hack.
16919 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
16920 # The linker will automatically build a .lib file if we build a DLL.
16921 old_archive_from_new_cmds='true'
16922 # FIXME: Should let the user specify the lib program.
16923 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
16924 enable_shared_with_static_runtimes=yes
16925 ;;
16926 esac
16927 ;;
16928
16929 darwin* | rhapsody*)
16930
16931
16932 archive_cmds_need_lc=no
16933 hardcode_direct=no
16934 hardcode_automatic=yes
16935 hardcode_shlibpath_var=unsupported
16936 if test yes = "$lt_cv_ld_force_load"; then
16937 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\"`'
16938
16939 else
16940 whole_archive_flag_spec=''
16941 fi
16942 link_all_deplibs=yes
16943 allow_undefined_flag=$_lt_dar_allow_undefined
16944 case $cc_basename in
16945 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
16946 *) _lt_dar_can_shared=$GCC ;;
16947 esac
16948 if test yes = "$_lt_dar_can_shared"; then
16949 output_verbose_link_cmd=func_echo_all
16950 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
16951 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
16952 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"
16953 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"
16954
16955 else
16956 ld_shlibs=no
16957 fi
16958
16959 ;;
16960
16961 dgux*)
16962 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16963 hardcode_libdir_flag_spec='-L$libdir'
16964 hardcode_shlibpath_var=no
16965 ;;
16966
16967 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16968 # support. Future versions do this automatically, but an explicit c++rt0.o
16969 # does not break anything, and helps significantly (at the cost of a little
16970 # extra space).
16971 freebsd2.2*)
16972 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16973 hardcode_libdir_flag_spec='-R$libdir'
16974 hardcode_direct=yes
16975 hardcode_shlibpath_var=no
16976 ;;
16977
16978 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16979 freebsd2.*)
16980 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16981 hardcode_direct=yes
16982 hardcode_minus_L=yes
16983 hardcode_shlibpath_var=no
16984 ;;
16985
16986 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16987 freebsd* | dragonfly* | midnightbsd*)
16988 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16989 hardcode_libdir_flag_spec='-R$libdir'
16990 hardcode_direct=yes
16991 hardcode_shlibpath_var=no
16992 ;;
16993
16994 hpux9*)
16995 if test yes = "$GCC"; then
16996 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'
16997 else
16998 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'
16999 fi
17000 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
17001 hardcode_libdir_separator=:
17002 hardcode_direct=yes
17003
17004 # hardcode_minus_L: Not really in the search PATH,
17005 # but as the default location of the library.
17006 hardcode_minus_L=yes
17007 export_dynamic_flag_spec='$wl-E'
17008 ;;
17009
17010 hpux10*)
17011 if test yes,no = "$GCC,$with_gnu_ld"; then
17012 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17013 else
17014 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17015 fi
17016 if test no = "$with_gnu_ld"; then
17017 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
17018 hardcode_libdir_separator=:
17019 hardcode_direct=yes
17020 hardcode_direct_absolute=yes
17021 export_dynamic_flag_spec='$wl-E'
17022 # hardcode_minus_L: Not really in the search PATH,
17023 # but as the default location of the library.
17024 hardcode_minus_L=yes
17025 fi
17026 ;;
17027
17028 hpux11*)
17029 if test yes,no = "$GCC,$with_gnu_ld"; then
17030 case $host_cpu in
17031 hppa*64*)
17032 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
17033 ;;
17034 ia64*)
17035 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17036 ;;
17037 *)
17038 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17039 ;;
17040 esac
17041 else
17042 case $host_cpu in
17043 hppa*64*)
17044 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
17045 ;;
17046 ia64*)
17047 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17048 ;;
17049 *)
17050
17051 # Older versions of the 11.00 compiler do not understand -b yet
17052 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
17053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
17054 printf %s "checking if $CC understands -b... " >&6; }
17055 if test ${lt_cv_prog_compiler__b+y}
17056 then :
17057 printf %s "(cached) " >&6
17058 else $as_nop
17059 lt_cv_prog_compiler__b=no
17060 save_LDFLAGS=$LDFLAGS
17061 LDFLAGS="$LDFLAGS -b"
17062 echo "$lt_simple_link_test_code" > conftest.$ac_ext
17063 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17064 # The linker can only warn and ignore the option if not recognized
17065 # So say no if there are warnings
17066 if test -s conftest.err; then
17067 # Append any errors to the config.log.
17068 cat conftest.err 1>&5
17069 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
17070 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17071 if diff conftest.exp conftest.er2 >/dev/null; then
17072 lt_cv_prog_compiler__b=yes
17073 fi
17074 else
17075 lt_cv_prog_compiler__b=yes
17076 fi
17077 fi
17078 $RM -r conftest*
17079 LDFLAGS=$save_LDFLAGS
17080
17081 fi
17082 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
17083 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
17084
17085 if test yes = "$lt_cv_prog_compiler__b"; then
17086 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17087 else
17088 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17089 fi
17090
17091 ;;
17092 esac
17093 fi
17094 if test no = "$with_gnu_ld"; then
17095 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
17096 hardcode_libdir_separator=:
17097
17098 case $host_cpu in
17099 hppa*64*|ia64*)
17100 hardcode_direct=no
17101 hardcode_shlibpath_var=no
17102 ;;
17103 *)
17104 hardcode_direct=yes
17105 hardcode_direct_absolute=yes
17106 export_dynamic_flag_spec='$wl-E'
17107
17108 # hardcode_minus_L: Not really in the search PATH,
17109 # but as the default location of the library.
17110 hardcode_minus_L=yes
17111 ;;
17112 esac
17113 fi
17114 ;;
17115
17116 irix5* | irix6* | nonstopux*)
17117 if test yes = "$GCC"; then
17118 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'
17119 # Try to use the -exported_symbol ld option, if it does not
17120 # work, assume that -exports_file does not work either and
17121 # implicitly export all symbols.
17122 # This should be the same for all languages, so no per-tag cache variable.
17123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
17124 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
17125 if test ${lt_cv_irix_exported_symbol+y}
17126 then :
17127 printf %s "(cached) " >&6
17128 else $as_nop
17129 save_LDFLAGS=$LDFLAGS
17130 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
17131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17132 /* end confdefs.h. */
17133 int foo (void) { return 0; }
17134 _ACEOF
17135 if ac_fn_c_try_link "$LINENO"
17136 then :
17137 lt_cv_irix_exported_symbol=yes
17138 else $as_nop
17139 lt_cv_irix_exported_symbol=no
17140 fi
17141 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17142 conftest$ac_exeext conftest.$ac_ext
17143 LDFLAGS=$save_LDFLAGS
17144 fi
17145 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
17146 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
17147 if test yes = "$lt_cv_irix_exported_symbol"; then
17148 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'
17149 fi
17150 else
17151 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'
17152 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'
17153 fi
17154 archive_cmds_need_lc='no'
17155 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
17156 hardcode_libdir_separator=:
17157 inherit_rpath=yes
17158 link_all_deplibs=yes
17159 ;;
17160
17161 linux*)
17162 case $cc_basename in
17163 tcc*)
17164 # Fabrice Bellard et al's Tiny C Compiler
17165 ld_shlibs=yes
17166 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17167 ;;
17168 esac
17169 ;;
17170
17171 netbsd*)
17172 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17173 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17174 else
17175 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17176 fi
17177 hardcode_libdir_flag_spec='-R$libdir'
17178 hardcode_direct=yes
17179 hardcode_shlibpath_var=no
17180 ;;
17181
17182 newsos6)
17183 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17184 hardcode_direct=yes
17185 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
17186 hardcode_libdir_separator=:
17187 hardcode_shlibpath_var=no
17188 ;;
17189
17190 *nto* | *qnx*)
17191 ;;
17192
17193 openbsd* | bitrig*)
17194 if test -f /usr/libexec/ld.so; then
17195 hardcode_direct=yes
17196 hardcode_shlibpath_var=no
17197 hardcode_direct_absolute=yes
17198 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
17199 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17200 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
17201 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
17202 export_dynamic_flag_spec='$wl-E'
17203 else
17204 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17205 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
17206 fi
17207 else
17208 ld_shlibs=no
17209 fi
17210 ;;
17211
17212 os2*)
17213 hardcode_libdir_flag_spec='-L$libdir'
17214 hardcode_minus_L=yes
17215 allow_undefined_flag=unsupported
17216 shrext_cmds=.dll
17217 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
17218 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
17219 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
17220 $ECHO EXPORTS >> $output_objdir/$libname.def~
17221 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
17222 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
17223 emximp -o $lib $output_objdir/$libname.def'
17224 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
17225 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
17226 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
17227 $ECHO EXPORTS >> $output_objdir/$libname.def~
17228 prefix_cmds="$SED"~
17229 if test EXPORTS = "`$SED 1q $export_symbols`"; then
17230 prefix_cmds="$prefix_cmds -e 1d";
17231 fi~
17232 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
17233 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
17234 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
17235 emximp -o $lib $output_objdir/$libname.def'
17236 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
17237 enable_shared_with_static_runtimes=yes
17238 file_list_spec='@'
17239 ;;
17240
17241 osf3*)
17242 if test yes = "$GCC"; then
17243 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
17244 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'
17245 else
17246 allow_undefined_flag=' -expect_unresolved \*'
17247 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'
17248 fi
17249 archive_cmds_need_lc='no'
17250 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
17251 hardcode_libdir_separator=:
17252 ;;
17253
17254 osf4* | osf5*) # as osf3* with the addition of -msym flag
17255 if test yes = "$GCC"; then
17256 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
17257 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'
17258 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
17259 else
17260 allow_undefined_flag=' -expect_unresolved \*'
17261 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'
17262 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~
17263 $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'
17264
17265 # Both c and cxx compiler support -rpath directly
17266 hardcode_libdir_flag_spec='-rpath $libdir'
17267 fi
17268 archive_cmds_need_lc='no'
17269 hardcode_libdir_separator=:
17270 ;;
17271
17272 solaris*)
17273 no_undefined_flag=' -z defs'
17274 if test yes = "$GCC"; then
17275 wlarc='$wl'
17276 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
17277 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17278 $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'
17279 else
17280 case `$CC -V 2>&1` in
17281 *"Compilers 5.0"*)
17282 wlarc=''
17283 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
17284 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17285 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
17286 ;;
17287 *)
17288 wlarc='$wl'
17289 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
17290 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17291 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
17292 ;;
17293 esac
17294 fi
17295 hardcode_libdir_flag_spec='-R$libdir'
17296 hardcode_shlibpath_var=no
17297 case $host_os in
17298 solaris2.[0-5] | solaris2.[0-5].*) ;;
17299 *)
17300 # The compiler driver will combine and reorder linker options,
17301 # but understands '-z linker_flag'. GCC discards it without '$wl',
17302 # but is careful enough not to reorder.
17303 # Supported since Solaris 2.6 (maybe 2.5.1?)
17304 if test yes = "$GCC"; then
17305 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
17306 else
17307 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
17308 fi
17309 ;;
17310 esac
17311 link_all_deplibs=yes
17312 ;;
17313
17314 sunos4*)
17315 if test sequent = "$host_vendor"; then
17316 # Use $CC to link under sequent, because it throws in some extra .o
17317 # files that make .init and .fini sections work.
17318 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17319 else
17320 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17321 fi
17322 hardcode_libdir_flag_spec='-L$libdir'
17323 hardcode_direct=yes
17324 hardcode_minus_L=yes
17325 hardcode_shlibpath_var=no
17326 ;;
17327
17328 sysv4)
17329 case $host_vendor in
17330 sni)
17331 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17332 hardcode_direct=yes # is this really true???
17333 ;;
17334 siemens)
17335 ## LD is ld it makes a PLAMLIB
17336 ## CC just makes a GrossModule.
17337 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17338 reload_cmds='$CC -r -o $output$reload_objs'
17339 hardcode_direct=no
17340 ;;
17341 motorola)
17342 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17343 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
17344 ;;
17345 esac
17346 runpath_var='LD_RUN_PATH'
17347 hardcode_shlibpath_var=no
17348 ;;
17349
17350 sysv4.3*)
17351 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17352 hardcode_shlibpath_var=no
17353 export_dynamic_flag_spec='-Bexport'
17354 ;;
17355
17356 sysv4*MP*)
17357 if test -d /usr/nec; then
17358 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17359 hardcode_shlibpath_var=no
17360 runpath_var=LD_RUN_PATH
17361 hardcode_runpath_var=yes
17362 ld_shlibs=yes
17363 fi
17364 ;;
17365
17366 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17367 no_undefined_flag='$wl-z,text'
17368 archive_cmds_need_lc=no
17369 hardcode_shlibpath_var=no
17370 runpath_var='LD_RUN_PATH'
17371
17372 if test yes = "$GCC"; then
17373 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17374 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17375 else
17376 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17377 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17378 fi
17379 ;;
17380
17381 sysv5* | sco3.2v5* | sco5v6*)
17382 # Note: We CANNOT use -z defs as we might desire, because we do not
17383 # link with -lc, and that would cause any symbols used from libc to
17384 # always be unresolved, which means just about no library would
17385 # ever link correctly. If we're not using GNU ld we use -z text
17386 # though, which does catch some bad symbols but isn't as heavy-handed
17387 # as -z defs.
17388 no_undefined_flag='$wl-z,text'
17389 allow_undefined_flag='$wl-z,nodefs'
17390 archive_cmds_need_lc=no
17391 hardcode_shlibpath_var=no
17392 hardcode_libdir_flag_spec='$wl-R,$libdir'
17393 hardcode_libdir_separator=':'
17394 link_all_deplibs=yes
17395 export_dynamic_flag_spec='$wl-Bexport'
17396 runpath_var='LD_RUN_PATH'
17397
17398 if test yes = "$GCC"; then
17399 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17400 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17401 else
17402 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17403 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17404 fi
17405 ;;
17406
17407 uts4*)
17408 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17409 hardcode_libdir_flag_spec='-L$libdir'
17410 hardcode_shlibpath_var=no
17411 ;;
17412
17413 *)
17414 ld_shlibs=no
17415 ;;
17416 esac
17417
17418 if test sni = "$host_vendor"; then
17419 case $host in
17420 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17421 export_dynamic_flag_spec='$wl-Blargedynsym'
17422 ;;
17423 esac
17424 fi
17425 fi
17426
17427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
17428 printf "%s\n" "$ld_shlibs" >&6; }
17429 test no = "$ld_shlibs" && can_build_shared=no
17430
17431 with_gnu_ld=$with_gnu_ld
17432
17433
17434
17435
17436
17437
17438
17439
17440
17441
17442
17443
17444
17445
17446
17447 #
17448 # Do we need to explicitly link libc?
17449 #
17450 case "x$archive_cmds_need_lc" in
17451 x|xyes)
17452 # Assume -lc should be added
17453 archive_cmds_need_lc=yes
17454
17455 if test yes,yes = "$GCC,$enable_shared"; then
17456 case $archive_cmds in
17457 *'~'*)
17458 # FIXME: we may have to deal with multi-command sequences.
17459 ;;
17460 '$CC '*)
17461 # Test whether the compiler implicitly links with -lc since on some
17462 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17463 # to ld, don't add -lc before -lgcc.
17464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
17465 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
17466 if test ${lt_cv_archive_cmds_need_lc+y}
17467 then :
17468 printf %s "(cached) " >&6
17469 else $as_nop
17470 $RM conftest*
17471 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17472
17473 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17474 (eval $ac_compile) 2>&5
17475 ac_status=$?
17476 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17477 test $ac_status = 0; } 2>conftest.err; then
17478 soname=conftest
17479 lib=conftest
17480 libobjs=conftest.$ac_objext
17481 deplibs=
17482 wl=$lt_prog_compiler_wl
17483 pic_flag=$lt_prog_compiler_pic
17484 compiler_flags=-v
17485 linker_flags=-v
17486 verstring=
17487 output_objdir=.
17488 libname=conftest
17489 lt_save_allow_undefined_flag=$allow_undefined_flag
17490 allow_undefined_flag=
17491 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
17492 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
17493 ac_status=$?
17494 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17495 test $ac_status = 0; }
17496 then
17497 lt_cv_archive_cmds_need_lc=no
17498 else
17499 lt_cv_archive_cmds_need_lc=yes
17500 fi
17501 allow_undefined_flag=$lt_save_allow_undefined_flag
17502 else
17503 cat conftest.err 1>&5
17504 fi
17505 $RM conftest*
17506
17507 fi
17508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
17509 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
17510 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
17511 ;;
17512 esac
17513 fi
17514 ;;
17515 esac
17516
17517
17518
17519
17520
17521
17522
17523
17524
17525
17526
17527
17528
17529
17530
17531
17532
17533
17534
17535
17536
17537
17538
17539
17540
17541
17542
17543
17544
17545
17546
17547
17548
17549
17550
17551
17552
17553
17554
17555
17556
17557
17558
17559
17560
17561
17562
17563
17564
17565
17566
17567
17568
17569
17570
17571
17572
17573
17574
17575
17576
17577
17578
17579
17580
17581
17582
17583
17584
17585
17586
17587
17588
17589
17590
17591
17592
17593
17594
17595
17596
17597
17598
17599
17600
17601
17602
17603
17604
17605
17606
17607
17608
17609
17610
17611
17612
17613
17614
17615
17616
17617
17618
17619
17620
17621
17622
17623
17624
17625
17626
17627
17628
17629
17630
17631
17632
17633
17634
17635
17636
17637
17638
17639
17640
17641
17642
17643
17644
17645
17646
17647
17648
17649
17650
17651
17652
17653
17654
17655
17656
17657
17658
17659
17660
17661
17662
17663
17664
17665
17666
17667
17668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17669 printf %s "checking dynamic linker characteristics... " >&6; }
17670
17671 if test yes = "$GCC"; then
17672 case $host_os in
17673 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
17674 *) lt_awk_arg='/^libraries:/' ;;
17675 esac
17676 case $host_os in
17677 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
17678 *) lt_sed_strip_eq='s|=/|/|g' ;;
17679 esac
17680 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
17681 case $lt_search_path_spec in
17682 *\;*)
17683 # if the path contains ";" then we assume it to be the separator
17684 # otherwise default to the standard path separator (i.e. ":") - it is
17685 # assumed that no part of a normal pathname contains ";" but that should
17686 # okay in the real world where ";" in dirpaths is itself problematic.
17687 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
17688 ;;
17689 *)
17690 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
17691 ;;
17692 esac
17693 # Ok, now we have the path, separated by spaces, we can step through it
17694 # and add multilib dir if necessary...
17695 lt_tmp_lt_search_path_spec=
17696 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
17697 # ...but if some path component already ends with the multilib dir we assume
17698 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
17699 case "$lt_multi_os_dir; $lt_search_path_spec " in
17700 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
17701 lt_multi_os_dir=
17702 ;;
17703 esac
17704 for lt_sys_path in $lt_search_path_spec; do
17705 if test -d "$lt_sys_path$lt_multi_os_dir"; then
17706 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
17707 elif test -n "$lt_multi_os_dir"; then
17708 test -d "$lt_sys_path" && \
17709 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
17710 fi
17711 done
17712 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
17713 BEGIN {RS = " "; FS = "/|\n";} {
17714 lt_foo = "";
17715 lt_count = 0;
17716 for (lt_i = NF; lt_i > 0; lt_i--) {
17717 if ($lt_i != "" && $lt_i != ".") {
17718 if ($lt_i == "..") {
17719 lt_count++;
17720 } else {
17721 if (lt_count == 0) {
17722 lt_foo = "/" $lt_i lt_foo;
17723 } else {
17724 lt_count--;
17725 }
17726 }
17727 }
17728 }
17729 if (lt_foo != "") { lt_freq[lt_foo]++; }
17730 if (lt_freq[lt_foo] == 1) { print lt_foo; }
17731 }'`
17732 # AWK program above erroneously prepends '/' to C:/dos/paths
17733 # for these hosts.
17734 case $host_os in
17735 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
17736 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
17737 esac
17738 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
17739 else
17740 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17741 fi
17742 library_names_spec=
17743 libname_spec='lib$name'
17744 soname_spec=
17745 shrext_cmds=.so
17746 postinstall_cmds=
17747 postuninstall_cmds=
17748 finish_cmds=
17749 finish_eval=
17750 shlibpath_var=
17751 shlibpath_overrides_runpath=unknown
17752 version_type=none
17753 dynamic_linker="$host_os ld.so"
17754 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17755 need_lib_prefix=unknown
17756 hardcode_into_libs=no
17757
17758 # when you set need_version to no, make sure it does not cause -set_version
17759 # flags to be left without arguments
17760 need_version=unknown
17761
17762
17763
17764 case $host_os in
17765 aix3*)
17766 version_type=linux # correct to gnu/linux during the next big refactor
17767 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
17768 shlibpath_var=LIBPATH
17769
17770 # AIX 3 has no versioning support, so we append a major version to the name.
17771 soname_spec='$libname$release$shared_ext$major'
17772 ;;
17773
17774 aix[4-9]*)
17775 version_type=linux # correct to gnu/linux during the next big refactor
17776 need_lib_prefix=no
17777 need_version=no
17778 hardcode_into_libs=yes
17779 if test ia64 = "$host_cpu"; then
17780 # AIX 5 supports IA64
17781 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
17782 shlibpath_var=LD_LIBRARY_PATH
17783 else
17784 # With GCC up to 2.95.x, collect2 would create an import file
17785 # for dependence libraries. The import file would start with
17786 # the line '#! .'. This would cause the generated library to
17787 # depend on '.', always an invalid library. This was fixed in
17788 # development snapshots of GCC prior to 3.0.
17789 case $host_os in
17790 aix4 | aix4.[01] | aix4.[01].*)
17791 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17792 echo ' yes '
17793 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
17794 :
17795 else
17796 can_build_shared=no
17797 fi
17798 ;;
17799 esac
17800 # Using Import Files as archive members, it is possible to support
17801 # filename-based versioning of shared library archives on AIX. While
17802 # this would work for both with and without runtime linking, it will
17803 # prevent static linking of such archives. So we do filename-based
17804 # shared library versioning with .so extension only, which is used
17805 # when both runtime linking and shared linking is enabled.
17806 # Unfortunately, runtime linking may impact performance, so we do
17807 # not want this to be the default eventually. Also, we use the
17808 # versioned .so libs for executables only if there is the -brtl
17809 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
17810 # To allow for filename-based versioning support, we need to create
17811 # libNAME.so.V as an archive file, containing:
17812 # *) an Import File, referring to the versioned filename of the
17813 # archive as well as the shared archive member, telling the
17814 # bitwidth (32 or 64) of that shared object, and providing the
17815 # list of exported symbols of that shared object, eventually
17816 # decorated with the 'weak' keyword
17817 # *) the shared object with the F_LOADONLY flag set, to really avoid
17818 # it being seen by the linker.
17819 # At run time we better use the real file rather than another symlink,
17820 # but for link time we create the symlink libNAME.so -> libNAME.so.V
17821
17822 case $with_aix_soname,$aix_use_runtimelinking in
17823 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
17824 # soname into executable. Probably we can add versioning support to
17825 # collect2, so additional links can be useful in future.
17826 aix,yes) # traditional libtool
17827 dynamic_linker='AIX unversionable lib.so'
17828 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17829 # instead of lib<name>.a to let people know that these are not
17830 # typical AIX shared libraries.
17831 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17832 ;;
17833 aix,no) # traditional AIX only
17834 dynamic_linker='AIX lib.a(lib.so.V)'
17835 # We preserve .a as extension for shared libraries through AIX4.2
17836 # and later when we are not doing run time linking.
17837 library_names_spec='$libname$release.a $libname.a'
17838 soname_spec='$libname$release$shared_ext$major'
17839 ;;
17840 svr4,*) # full svr4 only
17841 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
17842 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
17843 # We do not specify a path in Import Files, so LIBPATH fires.
17844 shlibpath_overrides_runpath=yes
17845 ;;
17846 *,yes) # both, prefer svr4
17847 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
17848 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
17849 # unpreferred sharedlib libNAME.a needs extra handling
17850 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"'
17851 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"'
17852 # We do not specify a path in Import Files, so LIBPATH fires.
17853 shlibpath_overrides_runpath=yes
17854 ;;
17855 *,no) # both, prefer aix
17856 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
17857 library_names_spec='$libname$release.a $libname.a'
17858 soname_spec='$libname$release$shared_ext$major'
17859 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
17860 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)'
17861 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"'
17862 ;;
17863 esac
17864 shlibpath_var=LIBPATH
17865 fi
17866 ;;
17867
17868 amigaos*)
17869 case $host_cpu in
17870 powerpc)
17871 # Since July 2007 AmigaOS4 officially supports .so libraries.
17872 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17873 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17874 ;;
17875 m68k)
17876 library_names_spec='$libname.ixlibrary $libname.a'
17877 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17878 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'
17879 ;;
17880 esac
17881 ;;
17882
17883 beos*)
17884 library_names_spec='$libname$shared_ext'
17885 dynamic_linker="$host_os ld.so"
17886 shlibpath_var=LIBRARY_PATH
17887 ;;
17888
17889 bsdi[45]*)
17890 version_type=linux # correct to gnu/linux during the next big refactor
17891 need_version=no
17892 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17893 soname_spec='$libname$release$shared_ext$major'
17894 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17895 shlibpath_var=LD_LIBRARY_PATH
17896 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17897 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17898 # the default ld.so.conf also contains /usr/contrib/lib and
17899 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17900 # libtool to hard-code these into programs
17901 ;;
17902
17903 cygwin* | mingw* | pw32* | cegcc*)
17904 version_type=windows
17905 shrext_cmds=.dll
17906 need_version=no
17907 need_lib_prefix=no
17908
17909 case $GCC,$cc_basename in
17910 yes,*)
17911 # gcc
17912 library_names_spec='$libname.dll.a'
17913 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17914 postinstall_cmds='base_file=`basename \$file`~
17915 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
17916 dldir=$destdir/`dirname \$dlpath`~
17917 test -d \$dldir || mkdir -p \$dldir~
17918 $install_prog $dir/$dlname \$dldir/$dlname~
17919 chmod a+x \$dldir/$dlname~
17920 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17921 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17922 fi'
17923 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17924 dlpath=$dir/\$dldll~
17925 $RM \$dlpath'
17926 shlibpath_overrides_runpath=yes
17927
17928 case $host_os in
17929 cygwin*)
17930 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17931 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17932
17933 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
17934 ;;
17935 mingw* | cegcc*)
17936 # MinGW DLLs use traditional 'lib' prefix
17937 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17938 ;;
17939 pw32*)
17940 # pw32 DLLs use 'pw' prefix rather than 'lib'
17941 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17942 ;;
17943 esac
17944 dynamic_linker='Win32 ld.exe'
17945 ;;
17946
17947 *,cl* | *,icl*)
17948 # Native MSVC or ICC
17949 libname_spec='$name'
17950 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17951 library_names_spec='$libname.dll.lib'
17952
17953 case $build_os in
17954 mingw*)
17955 sys_lib_search_path_spec=
17956 lt_save_ifs=$IFS
17957 IFS=';'
17958 for lt_path in $LIB
17959 do
17960 IFS=$lt_save_ifs
17961 # Let DOS variable expansion print the short 8.3 style file name.
17962 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
17963 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
17964 done
17965 IFS=$lt_save_ifs
17966 # Convert to MSYS style.
17967 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
17968 ;;
17969 cygwin*)
17970 # Convert to unix form, then to dos form, then back to unix form
17971 # but this time dos style (no spaces!) so that the unix form looks
17972 # like /cygdrive/c/PROGRA~1:/cygdr...
17973 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
17974 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
17975 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17976 ;;
17977 *)
17978 sys_lib_search_path_spec=$LIB
17979 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
17980 # It is most probably a Windows format PATH.
17981 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17982 else
17983 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17984 fi
17985 # FIXME: find the short name or the path components, as spaces are
17986 # common. (e.g. "Program Files" -> "PROGRA~1")
17987 ;;
17988 esac
17989
17990 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17991 postinstall_cmds='base_file=`basename \$file`~
17992 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
17993 dldir=$destdir/`dirname \$dlpath`~
17994 test -d \$dldir || mkdir -p \$dldir~
17995 $install_prog $dir/$dlname \$dldir/$dlname'
17996 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17997 dlpath=$dir/\$dldll~
17998 $RM \$dlpath'
17999 shlibpath_overrides_runpath=yes
18000 dynamic_linker='Win32 link.exe'
18001 ;;
18002
18003 *)
18004 # Assume MSVC and ICC wrapper
18005 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
18006 dynamic_linker='Win32 ld.exe'
18007 ;;
18008 esac
18009 # FIXME: first we should search . and the directory the executable is in
18010 shlibpath_var=PATH
18011 ;;
18012
18013 darwin* | rhapsody*)
18014 dynamic_linker="$host_os dyld"
18015 version_type=darwin
18016 need_lib_prefix=no
18017 need_version=no
18018 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
18019 soname_spec='$libname$release$major$shared_ext'
18020 shlibpath_overrides_runpath=yes
18021 shlibpath_var=DYLD_LIBRARY_PATH
18022 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18023
18024 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
18025 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18026 ;;
18027
18028 dgux*)
18029 version_type=linux # correct to gnu/linux during the next big refactor
18030 need_lib_prefix=no
18031 need_version=no
18032 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18033 soname_spec='$libname$release$shared_ext$major'
18034 shlibpath_var=LD_LIBRARY_PATH
18035 ;;
18036
18037 freebsd* | dragonfly* | midnightbsd*)
18038 # DragonFly does not have aout. When/if they implement a new
18039 # versioning mechanism, adjust this.
18040 if test -x /usr/bin/objformat; then
18041 objformat=`/usr/bin/objformat`
18042 else
18043 case $host_os in
18044 freebsd[23].*) objformat=aout ;;
18045 *) objformat=elf ;;
18046 esac
18047 fi
18048 version_type=freebsd-$objformat
18049 case $version_type in
18050 freebsd-elf*)
18051 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18052 soname_spec='$libname$release$shared_ext$major'
18053 need_version=no
18054 need_lib_prefix=no
18055 ;;
18056 freebsd-*)
18057 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
18058 need_version=yes
18059 ;;
18060 esac
18061 shlibpath_var=LD_LIBRARY_PATH
18062 case $host_os in
18063 freebsd2.*)
18064 shlibpath_overrides_runpath=yes
18065 ;;
18066 freebsd3.[01]* | freebsdelf3.[01]*)
18067 shlibpath_overrides_runpath=yes
18068 hardcode_into_libs=yes
18069 ;;
18070 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18071 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18072 shlibpath_overrides_runpath=no
18073 hardcode_into_libs=yes
18074 ;;
18075 *) # from 4.6 on, and DragonFly
18076 shlibpath_overrides_runpath=yes
18077 hardcode_into_libs=yes
18078 ;;
18079 esac
18080 ;;
18081
18082 haiku*)
18083 version_type=linux # correct to gnu/linux during the next big refactor
18084 need_lib_prefix=no
18085 need_version=no
18086 dynamic_linker="$host_os runtime_loader"
18087 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18088 soname_spec='$libname$release$shared_ext$major'
18089 shlibpath_var=LIBRARY_PATH
18090 shlibpath_overrides_runpath=no
18091 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
18092 hardcode_into_libs=yes
18093 ;;
18094
18095 hpux9* | hpux10* | hpux11*)
18096 # Give a soname corresponding to the major version so that dld.sl refuses to
18097 # link against other versions.
18098 version_type=sunos
18099 need_lib_prefix=no
18100 need_version=no
18101 case $host_cpu in
18102 ia64*)
18103 shrext_cmds='.so'
18104 hardcode_into_libs=yes
18105 dynamic_linker="$host_os dld.so"
18106 shlibpath_var=LD_LIBRARY_PATH
18107 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18108 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18109 soname_spec='$libname$release$shared_ext$major'
18110 if test 32 = "$HPUX_IA64_MODE"; then
18111 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18112 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
18113 else
18114 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18115 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
18116 fi
18117 ;;
18118 hppa*64*)
18119 shrext_cmds='.sl'
18120 hardcode_into_libs=yes
18121 dynamic_linker="$host_os dld.sl"
18122 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18123 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18124 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18125 soname_spec='$libname$release$shared_ext$major'
18126 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18127 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18128 ;;
18129 *)
18130 shrext_cmds='.sl'
18131 dynamic_linker="$host_os dld.sl"
18132 shlibpath_var=SHLIB_PATH
18133 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18134 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18135 soname_spec='$libname$release$shared_ext$major'
18136 ;;
18137 esac
18138 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
18139 postinstall_cmds='chmod 555 $lib'
18140 # or fails outright, so override atomically:
18141 install_override_mode=555
18142 ;;
18143
18144 interix[3-9]*)
18145 version_type=linux # correct to gnu/linux during the next big refactor
18146 need_lib_prefix=no
18147 need_version=no
18148 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18149 soname_spec='$libname$release$shared_ext$major'
18150 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18151 shlibpath_var=LD_LIBRARY_PATH
18152 shlibpath_overrides_runpath=no
18153 hardcode_into_libs=yes
18154 ;;
18155
18156 irix5* | irix6* | nonstopux*)
18157 case $host_os in
18158 nonstopux*) version_type=nonstopux ;;
18159 *)
18160 if test yes = "$lt_cv_prog_gnu_ld"; then
18161 version_type=linux # correct to gnu/linux during the next big refactor
18162 else
18163 version_type=irix
18164 fi ;;
18165 esac
18166 need_lib_prefix=no
18167 need_version=no
18168 soname_spec='$libname$release$shared_ext$major'
18169 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
18170 case $host_os in
18171 irix5* | nonstopux*)
18172 libsuff= shlibsuff=
18173 ;;
18174 *)
18175 case $LD in # libtool.m4 will add one of these switches to LD
18176 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18177 libsuff= shlibsuff= libmagic=32-bit;;
18178 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18179 libsuff=32 shlibsuff=N32 libmagic=N32;;
18180 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18181 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18182 *) libsuff= shlibsuff= libmagic=never-match;;
18183 esac
18184 ;;
18185 esac
18186 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18187 shlibpath_overrides_runpath=no
18188 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
18189 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
18190 hardcode_into_libs=yes
18191 ;;
18192
18193 # No shared lib support for Linux oldld, aout, or coff.
18194 linux*oldld* | linux*aout* | linux*coff*)
18195 dynamic_linker=no
18196 ;;
18197
18198 linux*android*)
18199 version_type=none # Android doesn't support versioned libraries.
18200 need_lib_prefix=no
18201 need_version=no
18202 library_names_spec='$libname$release$shared_ext'
18203 soname_spec='$libname$release$shared_ext'
18204 finish_cmds=
18205 shlibpath_var=LD_LIBRARY_PATH
18206 shlibpath_overrides_runpath=yes
18207
18208 # This implies no fast_install, which is unacceptable.
18209 # Some rework will be needed to allow for fast_install
18210 # before this can be enabled.
18211 hardcode_into_libs=yes
18212
18213 dynamic_linker='Android linker'
18214 # Don't embed -rpath directories since the linker doesn't support them.
18215 hardcode_libdir_flag_spec='-L$libdir'
18216 ;;
18217
18218 # This must be glibc/ELF.
18219 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
18220 version_type=linux # correct to gnu/linux during the next big refactor
18221 need_lib_prefix=no
18222 need_version=no
18223 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18224 soname_spec='$libname$release$shared_ext$major'
18225 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18226 shlibpath_var=LD_LIBRARY_PATH
18227 shlibpath_overrides_runpath=no
18228
18229 # Some binutils ld are patched to set DT_RUNPATH
18230 if test ${lt_cv_shlibpath_overrides_runpath+y}
18231 then :
18232 printf %s "(cached) " >&6
18233 else $as_nop
18234 lt_cv_shlibpath_overrides_runpath=no
18235 save_LDFLAGS=$LDFLAGS
18236 save_libdir=$libdir
18237 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
18238 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
18239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18240 /* end confdefs.h. */
18241
18242 int
18243 main (void)
18244 {
18245
18246 ;
18247 return 0;
18248 }
18249 _ACEOF
18250 if ac_fn_c_try_link "$LINENO"
18251 then :
18252 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
18253 then :
18254 lt_cv_shlibpath_overrides_runpath=yes
18255 fi
18256 fi
18257 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18258 conftest$ac_exeext conftest.$ac_ext
18259 LDFLAGS=$save_LDFLAGS
18260 libdir=$save_libdir
18261
18262 fi
18263
18264 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
18265
18266 # This implies no fast_install, which is unacceptable.
18267 # Some rework will be needed to allow for fast_install
18268 # before this can be enabled.
18269 hardcode_into_libs=yes
18270
18271 # Ideally, we could use ldconfig to report *all* directores which are
18272 # searched for libraries, however this is still not possible. Aside from not
18273 # being certain /sbin/ldconfig is available, command
18274 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
18275 # even though it is searched at run-time. Try to do the best guess by
18276 # appending ld.so.conf contents (and includes) to the search path.
18277 if test -f /etc/ld.so.conf; then
18278 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' ' '`
18279 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18280 fi
18281
18282 # We used to test for /lib/ld.so.1 and disable shared libraries on
18283 # powerpc, because MkLinux only supported shared libraries with the
18284 # GNU dynamic linker. Since this was broken with cross compilers,
18285 # most powerpc-linux boxes support dynamic linking these days and
18286 # people can always --disable-shared, the test was removed, and we
18287 # assume the GNU/Linux dynamic linker is in use.
18288 dynamic_linker='GNU/Linux ld.so'
18289 ;;
18290
18291 netbsd*)
18292 version_type=sunos
18293 need_lib_prefix=no
18294 need_version=no
18295 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18296 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
18297 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18298 dynamic_linker='NetBSD (a.out) ld.so'
18299 else
18300 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18301 soname_spec='$libname$release$shared_ext$major'
18302 dynamic_linker='NetBSD ld.elf_so'
18303 fi
18304 shlibpath_var=LD_LIBRARY_PATH
18305 shlibpath_overrides_runpath=yes
18306 hardcode_into_libs=yes
18307 ;;
18308
18309 newsos6)
18310 version_type=linux # correct to gnu/linux during the next big refactor
18311 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18312 shlibpath_var=LD_LIBRARY_PATH
18313 shlibpath_overrides_runpath=yes
18314 ;;
18315
18316 *nto* | *qnx*)
18317 version_type=qnx
18318 need_lib_prefix=no
18319 need_version=no
18320 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18321 soname_spec='$libname$release$shared_ext$major'
18322 shlibpath_var=LD_LIBRARY_PATH
18323 shlibpath_overrides_runpath=no
18324 hardcode_into_libs=yes
18325 dynamic_linker='ldqnx.so'
18326 ;;
18327
18328 openbsd* | bitrig*)
18329 version_type=sunos
18330 sys_lib_dlsearch_path_spec=/usr/lib
18331 need_lib_prefix=no
18332 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
18333 need_version=no
18334 else
18335 need_version=yes
18336 fi
18337 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
18338 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18339 shlibpath_var=LD_LIBRARY_PATH
18340 shlibpath_overrides_runpath=yes
18341 ;;
18342
18343 os2*)
18344 libname_spec='$name'
18345 version_type=windows
18346 shrext_cmds=.dll
18347 need_version=no
18348 need_lib_prefix=no
18349 # OS/2 can only load a DLL with a base name of 8 characters or less.
18350 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
18351 v=$($ECHO $release$versuffix | tr -d .-);
18352 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
18353 $ECHO $n$v`$shared_ext'
18354 library_names_spec='${libname}_dll.$libext'
18355 dynamic_linker='OS/2 ld.exe'
18356 shlibpath_var=BEGINLIBPATH
18357 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18358 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18359 postinstall_cmds='base_file=`basename \$file`~
18360 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
18361 dldir=$destdir/`dirname \$dlpath`~
18362 test -d \$dldir || mkdir -p \$dldir~
18363 $install_prog $dir/$dlname \$dldir/$dlname~
18364 chmod a+x \$dldir/$dlname~
18365 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
18366 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
18367 fi'
18368 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
18369 dlpath=$dir/\$dldll~
18370 $RM \$dlpath'
18371 ;;
18372
18373 osf3* | osf4* | osf5*)
18374 version_type=osf
18375 need_lib_prefix=no
18376 need_version=no
18377 soname_spec='$libname$release$shared_ext$major'
18378 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18379 shlibpath_var=LD_LIBRARY_PATH
18380 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18381 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18382 ;;
18383
18384 rdos*)
18385 dynamic_linker=no
18386 ;;
18387
18388 solaris*)
18389 version_type=linux # correct to gnu/linux during the next big refactor
18390 need_lib_prefix=no
18391 need_version=no
18392 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18393 soname_spec='$libname$release$shared_ext$major'
18394 shlibpath_var=LD_LIBRARY_PATH
18395 shlibpath_overrides_runpath=yes
18396 hardcode_into_libs=yes
18397 # ldd complains unless libraries are executable
18398 postinstall_cmds='chmod +x $lib'
18399 ;;
18400
18401 sunos4*)
18402 version_type=sunos
18403 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
18404 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18405 shlibpath_var=LD_LIBRARY_PATH
18406 shlibpath_overrides_runpath=yes
18407 if test yes = "$with_gnu_ld"; then
18408 need_lib_prefix=no
18409 fi
18410 need_version=yes
18411 ;;
18412
18413 sysv4 | sysv4.3*)
18414 version_type=linux # correct to gnu/linux during the next big refactor
18415 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18416 soname_spec='$libname$release$shared_ext$major'
18417 shlibpath_var=LD_LIBRARY_PATH
18418 case $host_vendor in
18419 sni)
18420 shlibpath_overrides_runpath=no
18421 need_lib_prefix=no
18422 runpath_var=LD_RUN_PATH
18423 ;;
18424 siemens)
18425 need_lib_prefix=no
18426 ;;
18427 motorola)
18428 need_lib_prefix=no
18429 need_version=no
18430 shlibpath_overrides_runpath=no
18431 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18432 ;;
18433 esac
18434 ;;
18435
18436 sysv4*MP*)
18437 if test -d /usr/nec; then
18438 version_type=linux # correct to gnu/linux during the next big refactor
18439 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
18440 soname_spec='$libname$shared_ext.$major'
18441 shlibpath_var=LD_LIBRARY_PATH
18442 fi
18443 ;;
18444
18445 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18446 version_type=sco
18447 need_lib_prefix=no
18448 need_version=no
18449 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
18450 soname_spec='$libname$release$shared_ext$major'
18451 shlibpath_var=LD_LIBRARY_PATH
18452 shlibpath_overrides_runpath=yes
18453 hardcode_into_libs=yes
18454 if test yes = "$with_gnu_ld"; then
18455 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18456 else
18457 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18458 case $host_os in
18459 sco3.2v5*)
18460 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18461 ;;
18462 esac
18463 fi
18464 sys_lib_dlsearch_path_spec='/usr/lib'
18465 ;;
18466
18467 tpf*)
18468 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
18469 version_type=linux # correct to gnu/linux during the next big refactor
18470 need_lib_prefix=no
18471 need_version=no
18472 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18473 shlibpath_var=LD_LIBRARY_PATH
18474 shlibpath_overrides_runpath=no
18475 hardcode_into_libs=yes
18476 ;;
18477
18478 uts4*)
18479 version_type=linux # correct to gnu/linux during the next big refactor
18480 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18481 soname_spec='$libname$release$shared_ext$major'
18482 shlibpath_var=LD_LIBRARY_PATH
18483 ;;
18484
18485 *)
18486 dynamic_linker=no
18487 ;;
18488 esac
18489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
18490 printf "%s\n" "$dynamic_linker" >&6; }
18491 test no = "$dynamic_linker" && can_build_shared=no
18492
18493 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18494 if test yes = "$GCC"; then
18495 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18496 fi
18497
18498 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
18499 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
18500 fi
18501
18502 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
18503 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
18504 fi
18505
18506 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
18507 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
18508
18509 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
18510 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
18511
18512 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
18513 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
18514
18515
18516
18517
18518
18519
18520
18521
18522
18523
18524
18525
18526
18527
18528
18529
18530
18531
18532
18533
18534
18535
18536
18537
18538
18539
18540
18541
18542
18543
18544
18545
18546
18547
18548
18549
18550
18551
18552
18553
18554
18555
18556
18557
18558
18559
18560
18561
18562
18563
18564
18565
18566
18567
18568
18569
18570
18571
18572
18573
18574
18575
18576
18577
18578
18579
18580
18581
18582
18583
18584
18585
18586
18587
18588
18589
18590
18591
18592
18593
18594
18595
18596
18597
18598
18599
18600
18601
18602
18603
18604
18605
18606
18607
18608
18609
18610
18611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
18612 printf %s "checking how to hardcode library paths into programs... " >&6; }
18613 hardcode_action=
18614 if test -n "$hardcode_libdir_flag_spec" ||
18615 test -n "$runpath_var" ||
18616 test yes = "$hardcode_automatic"; then
18617
18618 # We can hardcode non-existent directories.
18619 if test no != "$hardcode_direct" &&
18620 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18621 # have to relink, otherwise we might link with an installed library
18622 # when we should be linking with a yet-to-be-installed one
18623 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
18624 test no != "$hardcode_minus_L"; then
18625 # Linking always hardcodes the temporary library directory.
18626 hardcode_action=relink
18627 else
18628 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18629 hardcode_action=immediate
18630 fi
18631 else
18632 # We cannot hardcode anything, or else we can only hardcode existing
18633 # directories.
18634 hardcode_action=unsupported
18635 fi
18636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
18637 printf "%s\n" "$hardcode_action" >&6; }
18638
18639 if test relink = "$hardcode_action" ||
18640 test yes = "$inherit_rpath"; then
18641 # Fast installation is not supported
18642 enable_fast_install=no
18643 elif test yes = "$shlibpath_overrides_runpath" ||
18644 test no = "$enable_shared"; then
18645 # Fast installation is not necessary
18646 enable_fast_install=needless
18647 fi
18648
18649
18650
18651
18652
18653
18654 if test yes != "$enable_dlopen"; then
18655 enable_dlopen=unknown
18656 enable_dlopen_self=unknown
18657 enable_dlopen_self_static=unknown
18658 else
18659 lt_cv_dlopen=no
18660 lt_cv_dlopen_libs=
18661
18662 case $host_os in
18663 beos*)
18664 lt_cv_dlopen=load_add_on
18665 lt_cv_dlopen_libs=
18666 lt_cv_dlopen_self=yes
18667 ;;
18668
18669 mingw* | pw32* | cegcc*)
18670 lt_cv_dlopen=LoadLibrary
18671 lt_cv_dlopen_libs=
18672 ;;
18673
18674 cygwin*)
18675 lt_cv_dlopen=dlopen
18676 lt_cv_dlopen_libs=
18677 ;;
18678
18679 darwin*)
18680 # if libdl is installed we need to link against it
18681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
18682 printf %s "checking for dlopen in -ldl... " >&6; }
18683 if test ${ac_cv_lib_dl_dlopen+y}
18684 then :
18685 printf %s "(cached) " >&6
18686 else $as_nop
18687 ac_check_lib_save_LIBS=$LIBS
18688 LIBS="-ldl $LIBS"
18689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18690 /* end confdefs.h. */
18691
18692 /* Override any GCC internal prototype to avoid an error.
18693 Use char because int might match the return type of a GCC
18694 builtin and then its argument prototype would still apply. */
18695 char dlopen ();
18696 int
18697 main (void)
18698 {
18699 return dlopen ();
18700 ;
18701 return 0;
18702 }
18703 _ACEOF
18704 if ac_fn_c_try_link "$LINENO"
18705 then :
18706 ac_cv_lib_dl_dlopen=yes
18707 else $as_nop
18708 ac_cv_lib_dl_dlopen=no
18709 fi
18710 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18711 conftest$ac_exeext conftest.$ac_ext
18712 LIBS=$ac_check_lib_save_LIBS
18713 fi
18714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18715 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
18716 if test "x$ac_cv_lib_dl_dlopen" = xyes
18717 then :
18718 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
18719 else $as_nop
18720
18721 lt_cv_dlopen=dyld
18722 lt_cv_dlopen_libs=
18723 lt_cv_dlopen_self=yes
18724
18725 fi
18726
18727 ;;
18728
18729 tpf*)
18730 # Don't try to run any link tests for TPF. We know it's impossible
18731 # because TPF is a cross-compiler, and we know how we open DSOs.
18732 lt_cv_dlopen=dlopen
18733 lt_cv_dlopen_libs=
18734 lt_cv_dlopen_self=no
18735 ;;
18736
18737 *)
18738 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
18739 if test "x$ac_cv_func_shl_load" = xyes
18740 then :
18741 lt_cv_dlopen=shl_load
18742 else $as_nop
18743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
18744 printf %s "checking for shl_load in -ldld... " >&6; }
18745 if test ${ac_cv_lib_dld_shl_load+y}
18746 then :
18747 printf %s "(cached) " >&6
18748 else $as_nop
18749 ac_check_lib_save_LIBS=$LIBS
18750 LIBS="-ldld $LIBS"
18751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18752 /* end confdefs.h. */
18753
18754 /* Override any GCC internal prototype to avoid an error.
18755 Use char because int might match the return type of a GCC
18756 builtin and then its argument prototype would still apply. */
18757 char shl_load ();
18758 int
18759 main (void)
18760 {
18761 return shl_load ();
18762 ;
18763 return 0;
18764 }
18765 _ACEOF
18766 if ac_fn_c_try_link "$LINENO"
18767 then :
18768 ac_cv_lib_dld_shl_load=yes
18769 else $as_nop
18770 ac_cv_lib_dld_shl_load=no
18771 fi
18772 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18773 conftest$ac_exeext conftest.$ac_ext
18774 LIBS=$ac_check_lib_save_LIBS
18775 fi
18776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
18777 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
18778 if test "x$ac_cv_lib_dld_shl_load" = xyes
18779 then :
18780 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
18781 else $as_nop
18782 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
18783 if test "x$ac_cv_func_dlopen" = xyes
18784 then :
18785 lt_cv_dlopen=dlopen
18786 else $as_nop
18787 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
18788 printf %s "checking for dlopen in -ldl... " >&6; }
18789 if test ${ac_cv_lib_dl_dlopen+y}
18790 then :
18791 printf %s "(cached) " >&6
18792 else $as_nop
18793 ac_check_lib_save_LIBS=$LIBS
18794 LIBS="-ldl $LIBS"
18795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18796 /* end confdefs.h. */
18797
18798 /* Override any GCC internal prototype to avoid an error.
18799 Use char because int might match the return type of a GCC
18800 builtin and then its argument prototype would still apply. */
18801 char dlopen ();
18802 int
18803 main (void)
18804 {
18805 return dlopen ();
18806 ;
18807 return 0;
18808 }
18809 _ACEOF
18810 if ac_fn_c_try_link "$LINENO"
18811 then :
18812 ac_cv_lib_dl_dlopen=yes
18813 else $as_nop
18814 ac_cv_lib_dl_dlopen=no
18815 fi
18816 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18817 conftest$ac_exeext conftest.$ac_ext
18818 LIBS=$ac_check_lib_save_LIBS
18819 fi
18820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18821 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
18822 if test "x$ac_cv_lib_dl_dlopen" = xyes
18823 then :
18824 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
18825 else $as_nop
18826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
18827 printf %s "checking for dlopen in -lsvld... " >&6; }
18828 if test ${ac_cv_lib_svld_dlopen+y}
18829 then :
18830 printf %s "(cached) " >&6
18831 else $as_nop
18832 ac_check_lib_save_LIBS=$LIBS
18833 LIBS="-lsvld $LIBS"
18834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18835 /* end confdefs.h. */
18836
18837 /* Override any GCC internal prototype to avoid an error.
18838 Use char because int might match the return type of a GCC
18839 builtin and then its argument prototype would still apply. */
18840 char dlopen ();
18841 int
18842 main (void)
18843 {
18844 return dlopen ();
18845 ;
18846 return 0;
18847 }
18848 _ACEOF
18849 if ac_fn_c_try_link "$LINENO"
18850 then :
18851 ac_cv_lib_svld_dlopen=yes
18852 else $as_nop
18853 ac_cv_lib_svld_dlopen=no
18854 fi
18855 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18856 conftest$ac_exeext conftest.$ac_ext
18857 LIBS=$ac_check_lib_save_LIBS
18858 fi
18859 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
18860 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
18861 if test "x$ac_cv_lib_svld_dlopen" = xyes
18862 then :
18863 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
18864 else $as_nop
18865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
18866 printf %s "checking for dld_link in -ldld... " >&6; }
18867 if test ${ac_cv_lib_dld_dld_link+y}
18868 then :
18869 printf %s "(cached) " >&6
18870 else $as_nop
18871 ac_check_lib_save_LIBS=$LIBS
18872 LIBS="-ldld $LIBS"
18873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18874 /* end confdefs.h. */
18875
18876 /* Override any GCC internal prototype to avoid an error.
18877 Use char because int might match the return type of a GCC
18878 builtin and then its argument prototype would still apply. */
18879 char dld_link ();
18880 int
18881 main (void)
18882 {
18883 return dld_link ();
18884 ;
18885 return 0;
18886 }
18887 _ACEOF
18888 if ac_fn_c_try_link "$LINENO"
18889 then :
18890 ac_cv_lib_dld_dld_link=yes
18891 else $as_nop
18892 ac_cv_lib_dld_dld_link=no
18893 fi
18894 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18895 conftest$ac_exeext conftest.$ac_ext
18896 LIBS=$ac_check_lib_save_LIBS
18897 fi
18898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
18899 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
18900 if test "x$ac_cv_lib_dld_dld_link" = xyes
18901 then :
18902 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
18903 fi
18904
18905
18906 fi
18907
18908
18909 fi
18910
18911
18912 fi
18913
18914
18915 fi
18916
18917
18918 fi
18919
18920 ;;
18921 esac
18922
18923 if test no = "$lt_cv_dlopen"; then
18924 enable_dlopen=no
18925 else
18926 enable_dlopen=yes
18927 fi
18928
18929 case $lt_cv_dlopen in
18930 dlopen)
18931 save_CPPFLAGS=$CPPFLAGS
18932 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18933
18934 save_LDFLAGS=$LDFLAGS
18935 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18936
18937 save_LIBS=$LIBS
18938 LIBS="$lt_cv_dlopen_libs $LIBS"
18939
18940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
18941 printf %s "checking whether a program can dlopen itself... " >&6; }
18942 if test ${lt_cv_dlopen_self+y}
18943 then :
18944 printf %s "(cached) " >&6
18945 else $as_nop
18946 if test yes = "$cross_compiling"; then :
18947 lt_cv_dlopen_self=cross
18948 else
18949 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18950 lt_status=$lt_dlunknown
18951 cat > conftest.$ac_ext <<_LT_EOF
18952 #line $LINENO "configure"
18953 #include "confdefs.h"
18954
18955 #if HAVE_DLFCN_H
18956 #include <dlfcn.h>
18957 #endif
18958
18959 #include <stdio.h>
18960
18961 #ifdef RTLD_GLOBAL
18962 # define LT_DLGLOBAL RTLD_GLOBAL
18963 #else
18964 # ifdef DL_GLOBAL
18965 # define LT_DLGLOBAL DL_GLOBAL
18966 # else
18967 # define LT_DLGLOBAL 0
18968 # endif
18969 #endif
18970
18971 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18972 find out it does not work in some platform. */
18973 #ifndef LT_DLLAZY_OR_NOW
18974 # ifdef RTLD_LAZY
18975 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18976 # else
18977 # ifdef DL_LAZY
18978 # define LT_DLLAZY_OR_NOW DL_LAZY
18979 # else
18980 # ifdef RTLD_NOW
18981 # define LT_DLLAZY_OR_NOW RTLD_NOW
18982 # else
18983 # ifdef DL_NOW
18984 # define LT_DLLAZY_OR_NOW DL_NOW
18985 # else
18986 # define LT_DLLAZY_OR_NOW 0
18987 # endif
18988 # endif
18989 # endif
18990 # endif
18991 #endif
18992
18993 /* When -fvisibility=hidden is used, assume the code has been annotated
18994 correspondingly for the symbols needed. */
18995 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18996 int fnord () __attribute__((visibility("default")));
18997 #endif
18998
18999 int fnord () { return 42; }
19000 int main ()
19001 {
19002 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19003 int status = $lt_dlunknown;
19004
19005 if (self)
19006 {
19007 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
19008 else
19009 {
19010 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19011 else puts (dlerror ());
19012 }
19013 /* dlclose (self); */
19014 }
19015 else
19016 puts (dlerror ());
19017
19018 return status;
19019 }
19020 _LT_EOF
19021 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
19022 (eval $ac_link) 2>&5
19023 ac_status=$?
19024 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19025 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
19026 (./conftest; exit; ) >&5 2>/dev/null
19027 lt_status=$?
19028 case x$lt_status in
19029 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
19030 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
19031 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
19032 esac
19033 else :
19034 # compilation failed
19035 lt_cv_dlopen_self=no
19036 fi
19037 fi
19038 rm -fr conftest*
19039
19040
19041 fi
19042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
19043 printf "%s\n" "$lt_cv_dlopen_self" >&6; }
19044
19045 if test yes = "$lt_cv_dlopen_self"; then
19046 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
19047 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
19048 printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
19049 if test ${lt_cv_dlopen_self_static+y}
19050 then :
19051 printf %s "(cached) " >&6
19052 else $as_nop
19053 if test yes = "$cross_compiling"; then :
19054 lt_cv_dlopen_self_static=cross
19055 else
19056 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19057 lt_status=$lt_dlunknown
19058 cat > conftest.$ac_ext <<_LT_EOF
19059 #line $LINENO "configure"
19060 #include "confdefs.h"
19061
19062 #if HAVE_DLFCN_H
19063 #include <dlfcn.h>
19064 #endif
19065
19066 #include <stdio.h>
19067
19068 #ifdef RTLD_GLOBAL
19069 # define LT_DLGLOBAL RTLD_GLOBAL
19070 #else
19071 # ifdef DL_GLOBAL
19072 # define LT_DLGLOBAL DL_GLOBAL
19073 # else
19074 # define LT_DLGLOBAL 0
19075 # endif
19076 #endif
19077
19078 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19079 find out it does not work in some platform. */
19080 #ifndef LT_DLLAZY_OR_NOW
19081 # ifdef RTLD_LAZY
19082 # define LT_DLLAZY_OR_NOW RTLD_LAZY
19083 # else
19084 # ifdef DL_LAZY
19085 # define LT_DLLAZY_OR_NOW DL_LAZY
19086 # else
19087 # ifdef RTLD_NOW
19088 # define LT_DLLAZY_OR_NOW RTLD_NOW
19089 # else
19090 # ifdef DL_NOW
19091 # define LT_DLLAZY_OR_NOW DL_NOW
19092 # else
19093 # define LT_DLLAZY_OR_NOW 0
19094 # endif
19095 # endif
19096 # endif
19097 # endif
19098 #endif
19099
19100 /* When -fvisibility=hidden is used, assume the code has been annotated
19101 correspondingly for the symbols needed. */
19102 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
19103 int fnord () __attribute__((visibility("default")));
19104 #endif
19105
19106 int fnord () { return 42; }
19107 int main ()
19108 {
19109 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19110 int status = $lt_dlunknown;
19111
19112 if (self)
19113 {
19114 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
19115 else
19116 {
19117 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19118 else puts (dlerror ());
19119 }
19120 /* dlclose (self); */
19121 }
19122 else
19123 puts (dlerror ());
19124
19125 return status;
19126 }
19127 _LT_EOF
19128 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
19129 (eval $ac_link) 2>&5
19130 ac_status=$?
19131 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19132 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
19133 (./conftest; exit; ) >&5 2>/dev/null
19134 lt_status=$?
19135 case x$lt_status in
19136 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
19137 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
19138 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
19139 esac
19140 else :
19141 # compilation failed
19142 lt_cv_dlopen_self_static=no
19143 fi
19144 fi
19145 rm -fr conftest*
19146
19147
19148 fi
19149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
19150 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
19151 fi
19152
19153 CPPFLAGS=$save_CPPFLAGS
19154 LDFLAGS=$save_LDFLAGS
19155 LIBS=$save_LIBS
19156 ;;
19157 esac
19158
19159 case $lt_cv_dlopen_self in
19160 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
19161 *) enable_dlopen_self=unknown ;;
19162 esac
19163
19164 case $lt_cv_dlopen_self_static in
19165 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
19166 *) enable_dlopen_self_static=unknown ;;
19167 esac
19168 fi
19169
19170
19171
19172
19173
19174
19175
19176
19177
19178
19179
19180
19181
19182
19183
19184
19185
19186 striplib=
19187 old_striplib=
19188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
19189 printf %s "checking whether stripping libraries is possible... " >&6; }
19190 if test -z "$STRIP"; then
19191 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19192 printf "%s\n" "no" >&6; }
19193 else
19194 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
19195 old_striplib="$STRIP --strip-debug"
19196 striplib="$STRIP --strip-unneeded"
19197 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19198 printf "%s\n" "yes" >&6; }
19199 else
19200 case $host_os in
19201 darwin*)
19202 # FIXME - insert some real tests, host_os isn't really good enough
19203 striplib="$STRIP -x"
19204 old_striplib="$STRIP -S"
19205 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19206 printf "%s\n" "yes" >&6; }
19207 ;;
19208 freebsd*)
19209 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
19210 old_striplib="$STRIP --strip-debug"
19211 striplib="$STRIP --strip-unneeded"
19212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19213 printf "%s\n" "yes" >&6; }
19214 else
19215 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19216 printf "%s\n" "no" >&6; }
19217 fi
19218 ;;
19219 *)
19220 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19221 printf "%s\n" "no" >&6; }
19222 ;;
19223 esac
19224 fi
19225 fi
19226
19227
19228
19229
19230
19231
19232
19233
19234
19235
19236
19237
19238 # Report what library types will actually be built
19239 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
19240 printf %s "checking if libtool supports shared libraries... " >&6; }
19241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
19242 printf "%s\n" "$can_build_shared" >&6; }
19243
19244 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
19245 printf %s "checking whether to build shared libraries... " >&6; }
19246 test no = "$can_build_shared" && enable_shared=no
19247
19248 # On AIX, shared libraries and static libraries use the same namespace, and
19249 # are all built from PIC.
19250 case $host_os in
19251 aix3*)
19252 test yes = "$enable_shared" && enable_static=no
19253 if test -n "$RANLIB"; then
19254 archive_cmds="$archive_cmds~\$RANLIB \$lib"
19255 postinstall_cmds='$RANLIB $lib'
19256 fi
19257 ;;
19258
19259 aix[4-9]*)
19260 if test ia64 != "$host_cpu"; then
19261 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
19262 yes,aix,yes) ;; # shared object as lib.so file only
19263 yes,svr4,*) ;; # shared object as lib.so archive member only
19264 yes,*) enable_static=no ;; # shared object in lib.a archive as well
19265 esac
19266 fi
19267 ;;
19268 esac
19269 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
19270 printf "%s\n" "$enable_shared" >&6; }
19271
19272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
19273 printf %s "checking whether to build static libraries... " >&6; }
19274 # Make sure either enable_shared or enable_static is yes.
19275 test yes = "$enable_shared" || enable_static=yes
19276 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
19277 printf "%s\n" "$enable_static" >&6; }
19278
19279
19280
19281
19282 fi
19283 ac_ext=c
19284 ac_cpp='$CPP $CPPFLAGS'
19285 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19286 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19287 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19288
19289 CC=$lt_save_CC
19290
19291
19292
19293
19294
19295
19296
19297
19298
19299
19300
19301
19302
19303
19304
19305 ac_config_commands="$ac_config_commands libtool"
19306
19307
19308
19309
19310 # Only expand once:
19311
19312
19313
19314
19315
19316 # Define a configure option for an alternate module directory
19317
19318 # Check whether --with-xorg-module-dir was given.
19319 if test ${with_xorg_module_dir+y}
19320 then :
19321 withval=$with_xorg_module_dir; moduledir="$withval"
19322 else $as_nop
19323 moduledir="$libdir/xorg/modules"
19324 fi
19325
19326
19327 # Check whether --enable-dri was given.
19328 if test ${enable_dri+y}
19329 then :
19330 enableval=$enable_dri; DRI="$enableval"
19331 else $as_nop
19332 DRI=auto
19333 fi
19334
19335
19336 # Store the list of server defined optional extensions in REQUIRED_MODULES
19337
19338
19339 SAVE_CFLAGS="$CFLAGS"
19340 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
19341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19342 /* end confdefs.h. */
19343
19344 #include "xorg-server.h"
19345 #if !defined RANDR
19346 #error RANDR not defined
19347 #endif
19348
19349 int
19350 main (void)
19351 {
19352
19353 ;
19354 return 0;
19355 }
19356 _ACEOF
19357 if ac_fn_c_try_compile "$LINENO"
19358 then :
19359 _EXT_CHECK=yes
19360 else $as_nop
19361 _EXT_CHECK=no
19362 fi
19363 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19364 CFLAGS="$SAVE_CFLAGS"
19365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if RANDR is defined" >&5
19366 printf %s "checking if RANDR is defined... " >&6; }
19367 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
19368 printf "%s\n" "$_EXT_CHECK" >&6; }
19369 if test "$_EXT_CHECK" != no; then
19370 REQUIRED_MODULES="$REQUIRED_MODULES randrproto"
19371 fi
19372
19373
19374
19375 SAVE_CFLAGS="$CFLAGS"
19376 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
19377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19378 /* end confdefs.h. */
19379
19380 #include "xorg-server.h"
19381 #if !defined RENDER
19382 #error RENDER not defined
19383 #endif
19384
19385 int
19386 main (void)
19387 {
19388
19389 ;
19390 return 0;
19391 }
19392 _ACEOF
19393 if ac_fn_c_try_compile "$LINENO"
19394 then :
19395 _EXT_CHECK=yes
19396 else $as_nop
19397 _EXT_CHECK=no
19398 fi
19399 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19400 CFLAGS="$SAVE_CFLAGS"
19401 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if RENDER is defined" >&5
19402 printf %s "checking if RENDER is defined... " >&6; }
19403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
19404 printf "%s\n" "$_EXT_CHECK" >&6; }
19405 if test "$_EXT_CHECK" != no; then
19406 REQUIRED_MODULES="$REQUIRED_MODULES renderproto"
19407 fi
19408
19409
19410
19411 SAVE_CFLAGS="$CFLAGS"
19412 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
19413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19414 /* end confdefs.h. */
19415
19416 #include "xorg-server.h"
19417 #if !defined XV
19418 #error XV not defined
19419 #endif
19420
19421 int
19422 main (void)
19423 {
19424
19425 ;
19426 return 0;
19427 }
19428 _ACEOF
19429 if ac_fn_c_try_compile "$LINENO"
19430 then :
19431 _EXT_CHECK=yes
19432 else $as_nop
19433 _EXT_CHECK=no
19434 fi
19435 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19436 CFLAGS="$SAVE_CFLAGS"
19437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if XV is defined" >&5
19438 printf %s "checking if XV is defined... " >&6; }
19439 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
19440 printf "%s\n" "$_EXT_CHECK" >&6; }
19441 if test "$_EXT_CHECK" != no; then
19442 REQUIRED_MODULES="$REQUIRED_MODULES videoproto"
19443 fi
19444
19445
19446
19447 SAVE_CFLAGS="$CFLAGS"
19448 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
19449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19450 /* end confdefs.h. */
19451
19452 #include "xorg-server.h"
19453 #if !defined DPMSExtension
19454 #error DPMSExtension not defined
19455 #endif
19456
19457 int
19458 main (void)
19459 {
19460
19461 ;
19462 return 0;
19463 }
19464 _ACEOF
19465 if ac_fn_c_try_compile "$LINENO"
19466 then :
19467 _EXT_CHECK=yes
19468 else $as_nop
19469 _EXT_CHECK=no
19470 fi
19471 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19472 CFLAGS="$SAVE_CFLAGS"
19473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if DPMSExtension is defined" >&5
19474 printf %s "checking if DPMSExtension is defined... " >&6; }
19475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
19476 printf "%s\n" "$_EXT_CHECK" >&6; }
19477 if test "$_EXT_CHECK" != no; then
19478 REQUIRED_MODULES="$REQUIRED_MODULES xextproto"
19479 fi
19480
19481
19482 # Obtain compiler/linker options for the driver dependencies
19483
19484 pkg_failed=no
19485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XORG" >&5
19486 printf %s "checking for XORG... " >&6; }
19487
19488 if test -n "$XORG_CFLAGS"; then
19489 pkg_cv_XORG_CFLAGS="$XORG_CFLAGS"
19490 elif test -n "$PKG_CONFIG"; then
19491 if test -n "$PKG_CONFIG" && \
19492 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.1.0 xproto fontsproto \$REQUIRED_MODULES\""; } >&5
19493 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.1.0 xproto fontsproto $REQUIRED_MODULES") 2>&5
19494 ac_status=$?
19495 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19496 test $ac_status = 0; }; then
19497 pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.1.0 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
19498 test "x$?" != "x0" && pkg_failed=yes
19499 else
19500 pkg_failed=yes
19501 fi
19502 else
19503 pkg_failed=untried
19504 fi
19505 if test -n "$XORG_LIBS"; then
19506 pkg_cv_XORG_LIBS="$XORG_LIBS"
19507 elif test -n "$PKG_CONFIG"; then
19508 if test -n "$PKG_CONFIG" && \
19509 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.1.0 xproto fontsproto \$REQUIRED_MODULES\""; } >&5
19510 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.1.0 xproto fontsproto $REQUIRED_MODULES") 2>&5
19511 ac_status=$?
19512 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19513 test $ac_status = 0; }; then
19514 pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.1.0 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
19515 test "x$?" != "x0" && pkg_failed=yes
19516 else
19517 pkg_failed=yes
19518 fi
19519 else
19520 pkg_failed=untried
19521 fi
19522
19523
19524
19525 if test $pkg_failed = yes; then
19526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19527 printf "%s\n" "no" >&6; }
19528
19529 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19530 _pkg_short_errors_supported=yes
19531 else
19532 _pkg_short_errors_supported=no
19533 fi
19534 if test $_pkg_short_errors_supported = yes; then
19535 XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xorg-server >= 1.1.0 xproto fontsproto $REQUIRED_MODULES" 2>&1`
19536 else
19537 XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xorg-server >= 1.1.0 xproto fontsproto $REQUIRED_MODULES" 2>&1`
19538 fi
19539 # Put the nasty error message in config.log where it belongs
19540 echo "$XORG_PKG_ERRORS" >&5
19541
19542 as_fn_error $? "Package requirements (xorg-server >= 1.1.0 xproto fontsproto $REQUIRED_MODULES) were not met:
19543
19544 $XORG_PKG_ERRORS
19545
19546 Consider adjusting the PKG_CONFIG_PATH environment variable if you
19547 installed software in a non-standard prefix.
19548
19549 Alternatively, you may set the environment variables XORG_CFLAGS
19550 and XORG_LIBS to avoid the need to call pkg-config.
19551 See the pkg-config man page for more details." "$LINENO" 5
19552 elif test $pkg_failed = untried; then
19553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19554 printf "%s\n" "no" >&6; }
19555 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19556 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
19557 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
19558 is in your PATH or set the PKG_CONFIG environment variable to the full
19559 path to pkg-config.
19560
19561 Alternatively, you may set the environment variables XORG_CFLAGS
19562 and XORG_LIBS to avoid the need to call pkg-config.
19563 See the pkg-config man page for more details.
19564
19565 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
19566 See \`config.log' for more details" "$LINENO" 5; }
19567 else
19568 XORG_CFLAGS=$pkg_cv_XORG_CFLAGS
19569 XORG_LIBS=$pkg_cv_XORG_LIBS
19570 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19571 printf "%s\n" "yes" >&6; }
19572
19573 fi
19574
19575 pkg_failed=no
19576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XEXT" >&5
19577 printf %s "checking for XEXT... " >&6; }
19578
19579 if test -n "$XEXT_CFLAGS"; then
19580 pkg_cv_XEXT_CFLAGS="$XEXT_CFLAGS"
19581 elif test -n "$PKG_CONFIG"; then
19582 if test -n "$PKG_CONFIG" && \
19583 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xextproto >= 7.0.99.1\""; } >&5
19584 ($PKG_CONFIG --exists --print-errors "xextproto >= 7.0.99.1") 2>&5
19585 ac_status=$?
19586 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19587 test $ac_status = 0; }; then
19588 pkg_cv_XEXT_CFLAGS=`$PKG_CONFIG --cflags "xextproto >= 7.0.99.1" 2>/dev/null`
19589 test "x$?" != "x0" && pkg_failed=yes
19590 else
19591 pkg_failed=yes
19592 fi
19593 else
19594 pkg_failed=untried
19595 fi
19596 if test -n "$XEXT_LIBS"; then
19597 pkg_cv_XEXT_LIBS="$XEXT_LIBS"
19598 elif test -n "$PKG_CONFIG"; then
19599 if test -n "$PKG_CONFIG" && \
19600 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xextproto >= 7.0.99.1\""; } >&5
19601 ($PKG_CONFIG --exists --print-errors "xextproto >= 7.0.99.1") 2>&5
19602 ac_status=$?
19603 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19604 test $ac_status = 0; }; then
19605 pkg_cv_XEXT_LIBS=`$PKG_CONFIG --libs "xextproto >= 7.0.99.1" 2>/dev/null`
19606 test "x$?" != "x0" && pkg_failed=yes
19607 else
19608 pkg_failed=yes
19609 fi
19610 else
19611 pkg_failed=untried
19612 fi
19613
19614
19615
19616 if test $pkg_failed = yes; then
19617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19618 printf "%s\n" "no" >&6; }
19619
19620 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19621 _pkg_short_errors_supported=yes
19622 else
19623 _pkg_short_errors_supported=no
19624 fi
19625 if test $_pkg_short_errors_supported = yes; then
19626 XEXT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xextproto >= 7.0.99.1" 2>&1`
19627 else
19628 XEXT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xextproto >= 7.0.99.1" 2>&1`
19629 fi
19630 # Put the nasty error message in config.log where it belongs
19631 echo "$XEXT_PKG_ERRORS" >&5
19632
19633 HAVE_XEXTPROTO_71="no"
19634 elif test $pkg_failed = untried; then
19635 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19636 printf "%s\n" "no" >&6; }
19637 HAVE_XEXTPROTO_71="no"
19638 else
19639 XEXT_CFLAGS=$pkg_cv_XEXT_CFLAGS
19640 XEXT_LIBS=$pkg_cv_XEXT_LIBS
19641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19642 printf "%s\n" "yes" >&6; }
19643 HAVE_XEXTPROTO_71="yes";
19644 printf "%s\n" "#define HAVE_XEXTPROTO_71 1" >>confdefs.h
19645
19646 fi
19647 if test "$HAVE_XEXTPROTO_71" = "yes" ; then
19648 HAVE_XEXTPROTO_71_TRUE=
19649 HAVE_XEXTPROTO_71_FALSE='#'
19650 else
19651 HAVE_XEXTPROTO_71_TRUE='#'
19652 HAVE_XEXTPROTO_71_FALSE=
19653 fi
19654
19655 sdkdir=`$PKG_CONFIG --variable=sdkdir xorg-server`
19656
19657 # Checks for libraries.
19658
19659
19660 if test "$DRI" != no; then
19661 if test "$cross_compiling" = "no" ; then
19662 as_ac_File=`printf "%s\n" "ac_cv_file_${sdkdir}/dri.h" | $as_tr_sh`
19663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${sdkdir}/dri.h" >&5
19664 printf %s "checking for ${sdkdir}/dri.h... " >&6; }
19665 if eval test \${$as_ac_File+y}
19666 then :
19667 printf %s "(cached) " >&6
19668 else $as_nop
19669 test "$cross_compiling" = yes &&
19670 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
19671 if test -r "${sdkdir}/dri.h"; then
19672 eval "$as_ac_File=yes"
19673 else
19674 eval "$as_ac_File=no"
19675 fi
19676 fi
19677 eval ac_res=\$$as_ac_File
19678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
19679 printf "%s\n" "$ac_res" >&6; }
19680 if eval test \"x\$"$as_ac_File"\" = x"yes"
19681 then :
19682 have_dri_h="yes"
19683 else $as_nop
19684 have_dri_h="no"
19685 fi
19686
19687 as_ac_File=`printf "%s\n" "ac_cv_file_${sdkdir}/sarea.h" | $as_tr_sh`
19688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${sdkdir}/sarea.h" >&5
19689 printf %s "checking for ${sdkdir}/sarea.h... " >&6; }
19690 if eval test \${$as_ac_File+y}
19691 then :
19692 printf %s "(cached) " >&6
19693 else $as_nop
19694 test "$cross_compiling" = yes &&
19695 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
19696 if test -r "${sdkdir}/sarea.h"; then
19697 eval "$as_ac_File=yes"
19698 else
19699 eval "$as_ac_File=no"
19700 fi
19701 fi
19702 eval ac_res=\$$as_ac_File
19703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
19704 printf "%s\n" "$ac_res" >&6; }
19705 if eval test \"x\$"$as_ac_File"\" = x"yes"
19706 then :
19707 have_sarea_h="yes"
19708 else $as_nop
19709 have_sarea_h="no"
19710 fi
19711
19712 as_ac_File=`printf "%s\n" "ac_cv_file_${sdkdir}/dristruct.h" | $as_tr_sh`
19713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${sdkdir}/dristruct.h" >&5
19714 printf %s "checking for ${sdkdir}/dristruct.h... " >&6; }
19715 if eval test \${$as_ac_File+y}
19716 then :
19717 printf %s "(cached) " >&6
19718 else $as_nop
19719 test "$cross_compiling" = yes &&
19720 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
19721 if test -r "${sdkdir}/dristruct.h"; then
19722 eval "$as_ac_File=yes"
19723 else
19724 eval "$as_ac_File=no"
19725 fi
19726 fi
19727 eval ac_res=\$$as_ac_File
19728 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
19729 printf "%s\n" "$ac_res" >&6; }
19730 if eval test \"x\$"$as_ac_File"\" = x"yes"
19731 then :
19732 have_dristruct_h="yes"
19733 else $as_nop
19734 have_dristruct_h="no"
19735 fi
19736
19737 else
19738 have_dri_h="yes"
19739 have_sarea_h="yes"
19740 have_dristruct_h="yes"
19741 fi
19742 fi
19743
19744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to include DRI support" >&5
19745 printf %s "checking whether to include DRI support... " >&6; }
19746 if test x$DRI = xauto; then
19747 if test "$have_dri_h" = yes -a \
19748 "$have_sarea_h" = yes -a \
19749 "$have_dristruct_h" = yes; then
19750 DRI="yes"
19751 else
19752 DRI="no"
19753 fi
19754 fi
19755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DRI" >&5
19756 printf "%s\n" "$DRI" >&6; }
19757
19758 if test x$DRI = xyes; then
19759 DRI_TRUE=
19760 DRI_FALSE='#'
19761 else
19762 DRI_TRUE='#'
19763 DRI_FALSE=
19764 fi
19765
19766 if test "$DRI" = yes; then
19767
19768 pkg_failed=no
19769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for DRI" >&5
19770 printf %s "checking for DRI... " >&6; }
19771
19772 if test -n "$DRI_CFLAGS"; then
19773 pkg_cv_DRI_CFLAGS="$DRI_CFLAGS"
19774 elif test -n "$PKG_CONFIG"; then
19775 if test -n "$PKG_CONFIG" && \
19776 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 2.0 xf86driproto\""; } >&5
19777 ($PKG_CONFIG --exists --print-errors "libdrm >= 2.0 xf86driproto") 2>&5
19778 ac_status=$?
19779 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19780 test $ac_status = 0; }; then
19781 pkg_cv_DRI_CFLAGS=`$PKG_CONFIG --cflags "libdrm >= 2.0 xf86driproto" 2>/dev/null`
19782 test "x$?" != "x0" && pkg_failed=yes
19783 else
19784 pkg_failed=yes
19785 fi
19786 else
19787 pkg_failed=untried
19788 fi
19789 if test -n "$DRI_LIBS"; then
19790 pkg_cv_DRI_LIBS="$DRI_LIBS"
19791 elif test -n "$PKG_CONFIG"; then
19792 if test -n "$PKG_CONFIG" && \
19793 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 2.0 xf86driproto\""; } >&5
19794 ($PKG_CONFIG --exists --print-errors "libdrm >= 2.0 xf86driproto") 2>&5
19795 ac_status=$?
19796 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19797 test $ac_status = 0; }; then
19798 pkg_cv_DRI_LIBS=`$PKG_CONFIG --libs "libdrm >= 2.0 xf86driproto" 2>/dev/null`
19799 test "x$?" != "x0" && pkg_failed=yes
19800 else
19801 pkg_failed=yes
19802 fi
19803 else
19804 pkg_failed=untried
19805 fi
19806
19807
19808
19809 if test $pkg_failed = yes; then
19810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19811 printf "%s\n" "no" >&6; }
19812
19813 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19814 _pkg_short_errors_supported=yes
19815 else
19816 _pkg_short_errors_supported=no
19817 fi
19818 if test $_pkg_short_errors_supported = yes; then
19819 DRI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdrm >= 2.0 xf86driproto" 2>&1`
19820 else
19821 DRI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdrm >= 2.0 xf86driproto" 2>&1`
19822 fi
19823 # Put the nasty error message in config.log where it belongs
19824 echo "$DRI_PKG_ERRORS" >&5
19825
19826 as_fn_error $? "Package requirements (libdrm >= 2.0 xf86driproto) were not met:
19827
19828 $DRI_PKG_ERRORS
19829
19830 Consider adjusting the PKG_CONFIG_PATH environment variable if you
19831 installed software in a non-standard prefix.
19832
19833 Alternatively, you may set the environment variables DRI_CFLAGS
19834 and DRI_LIBS to avoid the need to call pkg-config.
19835 See the pkg-config man page for more details." "$LINENO" 5
19836 elif test $pkg_failed = untried; then
19837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19838 printf "%s\n" "no" >&6; }
19839 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19840 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
19841 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
19842 is in your PATH or set the PKG_CONFIG environment variable to the full
19843 path to pkg-config.
19844
19845 Alternatively, you may set the environment variables DRI_CFLAGS
19846 and DRI_LIBS to avoid the need to call pkg-config.
19847 See the pkg-config man page for more details.
19848
19849 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
19850 See \`config.log' for more details" "$LINENO" 5; }
19851 else
19852 DRI_CFLAGS=$pkg_cv_DRI_CFLAGS
19853 DRI_LIBS=$pkg_cv_DRI_LIBS
19854 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19855 printf "%s\n" "yes" >&6; }
19856
19857 fi
19858
19859 printf "%s\n" "#define SAVAGEDRI 1" >>confdefs.h
19860
19861
19862 printf "%s\n" "#define SAVAGEDRI_DEVEL 1" >>confdefs.h
19863
19864 fi
19865
19866 # Check whether --enable-xaa was given.
19867 if test ${enable_xaa+y}
19868 then :
19869 enableval=$enable_xaa; XAA="$enableval"
19870 else $as_nop
19871 XAA=auto
19872 fi
19873
19874 if test "x$XAA" != xno; then
19875 save_CFLAGS=$CFLAGS
19876 save_CPPFLAGS=$CPPFLAGS
19877 CFLAGS=$XORG_CFLAGS
19878 CPPFLAGS="$XORG_CFLAGS"
19879 for ac_header in xaa.h
19880 do :
19881 ac_fn_c_check_header_compile "$LINENO" "xaa.h" "ac_cv_header_xaa_h" "$ac_includes_default"
19882 if test "x$ac_cv_header_xaa_h" = xyes
19883 then :
19884 printf "%s\n" "#define HAVE_XAA_H 1" >>confdefs.h
19885 XAA=yes
19886 else $as_nop
19887 XAA=no
19888 fi
19889
19890 done
19891 CFLAGS=$save_CFLAGS
19892 CPPFLAGS=$save_CPPFLAGS
19893 fi
19894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to include XAA support" >&5
19895 printf %s "checking whether to include XAA support... " >&6; }
19896 if test "x$XAA" = xyes; then
19897 XAA_TRUE=
19898 XAA_FALSE='#'
19899 else
19900 XAA_TRUE='#'
19901 XAA_FALSE=
19902 fi
19903
19904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XAA" >&5
19905 printf "%s\n" "$XAA" >&6; }
19906
19907 save_CFLAGS="$CFLAGS"
19908 CFLAGS="$XORG_CFLAGS"
19909 ac_fn_check_decl "$LINENO" "XSERVER_LIBPCIACCESS" "ac_cv_have_decl_XSERVER_LIBPCIACCESS" "#include \"xorg-server.h\"
19910 " "$ac_c_undeclared_builtin_options" "CFLAGS"
19911 if test "x$ac_cv_have_decl_XSERVER_LIBPCIACCESS" = xyes
19912 then :
19913 XSERVER_LIBPCIACCESS=yes
19914 else $as_nop
19915 XSERVER_LIBPCIACCESS=no
19916 fi
19917 ac_fn_check_decl "$LINENO" "xf86XVFillKeyHelperDrawable" "ac_cv_have_decl_xf86XVFillKeyHelperDrawable" "#include \"xf86xv.h\"
19918 " "$ac_c_undeclared_builtin_options" "CFLAGS"
19919 if test "x$ac_cv_have_decl_xf86XVFillKeyHelperDrawable" = xyes
19920 then :
19921
19922 printf "%s\n" "#define HAVE_XV_DRAWABLE_HELPER 1" >>confdefs.h
19923
19924 fi
19925 CFLAGS="$save_CFLAGS"
19926
19927 if test "x$XSERVER_LIBPCIACCESS" = xyes; then
19928
19929 pkg_failed=no
19930 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for PCIACCESS" >&5
19931 printf %s "checking for PCIACCESS... " >&6; }
19932
19933 if test -n "$PCIACCESS_CFLAGS"; then
19934 pkg_cv_PCIACCESS_CFLAGS="$PCIACCESS_CFLAGS"
19935 elif test -n "$PKG_CONFIG"; then
19936 if test -n "$PKG_CONFIG" && \
19937 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.10\""; } >&5
19938 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.10") 2>&5
19939 ac_status=$?
19940 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19941 test $ac_status = 0; }; then
19942 pkg_cv_PCIACCESS_CFLAGS=`$PKG_CONFIG --cflags "pciaccess >= 0.10" 2>/dev/null`
19943 test "x$?" != "x0" && pkg_failed=yes
19944 else
19945 pkg_failed=yes
19946 fi
19947 else
19948 pkg_failed=untried
19949 fi
19950 if test -n "$PCIACCESS_LIBS"; then
19951 pkg_cv_PCIACCESS_LIBS="$PCIACCESS_LIBS"
19952 elif test -n "$PKG_CONFIG"; then
19953 if test -n "$PKG_CONFIG" && \
19954 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.10\""; } >&5
19955 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.10") 2>&5
19956 ac_status=$?
19957 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19958 test $ac_status = 0; }; then
19959 pkg_cv_PCIACCESS_LIBS=`$PKG_CONFIG --libs "pciaccess >= 0.10" 2>/dev/null`
19960 test "x$?" != "x0" && pkg_failed=yes
19961 else
19962 pkg_failed=yes
19963 fi
19964 else
19965 pkg_failed=untried
19966 fi
19967
19968
19969
19970 if test $pkg_failed = yes; then
19971 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19972 printf "%s\n" "no" >&6; }
19973
19974 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19975 _pkg_short_errors_supported=yes
19976 else
19977 _pkg_short_errors_supported=no
19978 fi
19979 if test $_pkg_short_errors_supported = yes; then
19980 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "pciaccess >= 0.10" 2>&1`
19981 else
19982 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "pciaccess >= 0.10" 2>&1`
19983 fi
19984 # Put the nasty error message in config.log where it belongs
19985 echo "$PCIACCESS_PKG_ERRORS" >&5
19986
19987 as_fn_error $? "Package requirements (pciaccess >= 0.10) were not met:
19988
19989 $PCIACCESS_PKG_ERRORS
19990
19991 Consider adjusting the PKG_CONFIG_PATH environment variable if you
19992 installed software in a non-standard prefix.
19993
19994 Alternatively, you may set the environment variables PCIACCESS_CFLAGS
19995 and PCIACCESS_LIBS to avoid the need to call pkg-config.
19996 See the pkg-config man page for more details." "$LINENO" 5
19997 elif test $pkg_failed = untried; then
19998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19999 printf "%s\n" "no" >&6; }
20000 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20001 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
20002 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
20003 is in your PATH or set the PKG_CONFIG environment variable to the full
20004 path to pkg-config.
20005
20006 Alternatively, you may set the environment variables PCIACCESS_CFLAGS
20007 and PCIACCESS_LIBS to avoid the need to call pkg-config.
20008 See the pkg-config man page for more details.
20009
20010 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
20011 See \`config.log' for more details" "$LINENO" 5; }
20012 else
20013 PCIACCESS_CFLAGS=$pkg_cv_PCIACCESS_CFLAGS
20014 PCIACCESS_LIBS=$pkg_cv_PCIACCESS_LIBS
20015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20016 printf "%s\n" "yes" >&6; }
20017
20018 fi
20019 fi
20020 if test "x$XSERVER_LIBPCIACCESS" = xyes; then
20021 XSERVER_LIBPCIACCESS_TRUE=
20022 XSERVER_LIBPCIACCESS_FALSE='#'
20023 else
20024 XSERVER_LIBPCIACCESS_TRUE='#'
20025 XSERVER_LIBPCIACCESS_FALSE=
20026 fi
20027
20028
20029
20030
20031 DRIVER_NAME=savage
20032
20033
20034 ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile"
20035
20036 cat >confcache <<\_ACEOF
20037 # This file is a shell script that caches the results of configure
20038 # tests run on this system so they can be shared between configure
20039 # scripts and configure runs, see configure's option --config-cache.
20040 # It is not useful on other systems. If it contains results you don't
20041 # want to keep, you may remove or edit it.
20042 #
20043 # config.status only pays attention to the cache file if you give it
20044 # the --recheck option to rerun configure.
20045 #
20046 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20047 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20048 # following values.
20049
20050 _ACEOF
20051
20052 # The following way of writing the cache mishandles newlines in values,
20053 # but we know of no workaround that is simple, portable, and efficient.
20054 # So, we kill variables containing newlines.
20055 # Ultrix sh set writes to stderr and can't be redirected directly,
20056 # and sets the high bit in the cache file unless we assign to the vars.
20057 (
20058 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20059 eval ac_val=\$$ac_var
20060 case $ac_val in #(
20061 *${as_nl}*)
20062 case $ac_var in #(
20063 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
20064 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
20065 esac
20066 case $ac_var in #(
20067 _ | IFS | as_nl) ;; #(
20068 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
20069 *) { eval $ac_var=; unset $ac_var;} ;;
20070 esac ;;
20071 esac
20072 done
20073
20074 (set) 2>&1 |
20075 case $as_nl`(ac_space=' '; set) 2>&1` in #(
20076 *${as_nl}ac_space=\ *)
20077 # `set' does not quote correctly, so add quotes: double-quote
20078 # substitution turns \\\\ into \\, and sed turns \\ into \.
20079 sed -n \
20080 "s/'/'\\\\''/g;
20081 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20082 ;; #(
20083 *)
20084 # `set' quotes correctly as required by POSIX, so do not add quotes.
20085 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20086 ;;
20087 esac |
20088 sort
20089 ) |
20090 sed '
20091 /^ac_cv_env_/b end
20092 t clear
20093 :clear
20094 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
20095 t end
20096 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20097 :end' >>confcache
20098 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20099 if test -w "$cache_file"; then
20100 if test "x$cache_file" != "x/dev/null"; then
20101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
20102 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
20103 if test ! -f "$cache_file" || test -h "$cache_file"; then
20104 cat confcache >"$cache_file"
20105 else
20106 case $cache_file in #(
20107 */* | ?:*)
20108 mv -f confcache "$cache_file"$$ &&
20109 mv -f "$cache_file"$$ "$cache_file" ;; #(
20110 *)
20111 mv -f confcache "$cache_file" ;;
20112 esac
20113 fi
20114 fi
20115 else
20116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
20117 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
20118 fi
20119 fi
20120 rm -f confcache
20121
20122 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20123 # Let make expand exec_prefix.
20124 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20125
20126 DEFS=-DHAVE_CONFIG_H
20127
20128 ac_libobjs=
20129 ac_ltlibobjs=
20130 U=
20131 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20132 # 1. Remove the extension, and $U if already installed.
20133 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20134 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
20135 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20136 # will be set to the directory where LIBOBJS objects are built.
20137 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20138 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
20139 done
20140 LIBOBJS=$ac_libobjs
20141
20142 LTLIBOBJS=$ac_ltlibobjs
20143
20144
20145 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
20146 printf %s "checking that generated files are newer than configure... " >&6; }
20147 if test -n "$am_sleep_pid"; then
20148 # Hide warnings about reused PIDs.
20149 wait $am_sleep_pid 2>/dev/null
20150 fi
20151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
20152 printf "%s\n" "done" >&6; }
20153 if test -n "$EXEEXT"; then
20154 am__EXEEXT_TRUE=
20155 am__EXEEXT_FALSE='#'
20156 else
20157 am__EXEEXT_TRUE='#'
20158 am__EXEEXT_FALSE=
20159 fi
20160
20161 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20162 as_fn_error $? "conditional \"AMDEP\" was never defined.
20163 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20164 fi
20165 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20166 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
20167 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20168 fi
20169 if test -z "${HAVE_XEXTPROTO_71_TRUE}" && test -z "${HAVE_XEXTPROTO_71_FALSE}"; then
20170 as_fn_error $? "conditional \"HAVE_XEXTPROTO_71\" was never defined.
20171 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20172 fi
20173 if test -z "${DRI_TRUE}" && test -z "${DRI_FALSE}"; then
20174 as_fn_error $? "conditional \"DRI\" was never defined.
20175 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20176 fi
20177 if test -z "${XAA_TRUE}" && test -z "${XAA_FALSE}"; then
20178 as_fn_error $? "conditional \"XAA\" was never defined.
20179 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20180 fi
20181 if test -z "${XSERVER_LIBPCIACCESS_TRUE}" && test -z "${XSERVER_LIBPCIACCESS_FALSE}"; then
20182 as_fn_error $? "conditional \"XSERVER_LIBPCIACCESS\" was never defined.
20183 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20184 fi
20185
20186 : "${CONFIG_STATUS=./config.status}"
20187 ac_write_fail=0
20188 ac_clean_files_save=$ac_clean_files
20189 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20190 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
20191 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
20192 as_write_fail=0
20193 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
20194 #! $SHELL
20195 # Generated by $as_me.
20196 # Run this file to recreate the current configuration.
20197 # Compiler output produced by configure, useful for debugging
20198 # configure, is in config.log if it exists.
20199
20200 debug=false
20201 ac_cs_recheck=false
20202 ac_cs_silent=false
20203
20204 SHELL=\${CONFIG_SHELL-$SHELL}
20205 export SHELL
20206 _ASEOF
20207 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
20208 ## -------------------- ##
20209 ## M4sh Initialization. ##
20210 ## -------------------- ##
20211
20212 # Be more Bourne compatible
20213 DUALCASE=1; export DUALCASE # for MKS sh
20214 as_nop=:
20215 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
20216 then :
20217 emulate sh
20218 NULLCMD=:
20219 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
20220 # is contrary to our usage. Disable this feature.
20221 alias -g '${1+"$@"}'='"$@"'
20222 setopt NO_GLOB_SUBST
20223 else $as_nop
20224 case `(set -o) 2>/dev/null` in #(
20225 *posix*) :
20226 set -o posix ;; #(
20227 *) :
20228 ;;
20229 esac
20230 fi
20231
20232
20233
20234 # Reset variables that may have inherited troublesome values from
20235 # the environment.
20236
20237 # IFS needs to be set, to space, tab, and newline, in precisely that order.
20238 # (If _AS_PATH_WALK were called with IFS unset, it would have the
20239 # side effect of setting IFS to empty, thus disabling word splitting.)
20240 # Quoting is to prevent editors from complaining about space-tab.
20241 as_nl='
20242 '
20243 export as_nl
20244 IFS=" "" $as_nl"
20245
20246 PS1='$ '
20247 PS2='> '
20248 PS4='+ '
20249
20250 # Ensure predictable behavior from utilities with locale-dependent output.
20251 LC_ALL=C
20252 export LC_ALL
20253 LANGUAGE=C
20254 export LANGUAGE
20255
20256 # We cannot yet rely on "unset" to work, but we need these variables
20257 # to be unset--not just set to an empty or harmless value--now, to
20258 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
20259 # also avoids known problems related to "unset" and subshell syntax
20260 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
20261 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
20262 do eval test \${$as_var+y} \
20263 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
20264 done
20265
20266 # Ensure that fds 0, 1, and 2 are open.
20267 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
20268 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
20269 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
20270
20271 # The user is always right.
20272 if ${PATH_SEPARATOR+false} :; then
20273 PATH_SEPARATOR=:
20274 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
20275 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
20276 PATH_SEPARATOR=';'
20277 }
20278 fi
20279
20280
20281 # Find who we are. Look in the path if we contain no directory separator.
20282 as_myself=
20283 case $0 in #((
20284 *[\\/]* ) as_myself=$0 ;;
20285 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20286 for as_dir in $PATH
20287 do
20288 IFS=$as_save_IFS
20289 case $as_dir in #(((
20290 '') as_dir=./ ;;
20291 */) ;;
20292 *) as_dir=$as_dir/ ;;
20293 esac
20294 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
20295 done
20296 IFS=$as_save_IFS
20297
20298 ;;
20299 esac
20300 # We did not find ourselves, most probably we were run as `sh COMMAND'
20301 # in which case we are not to be found in the path.
20302 if test "x$as_myself" = x; then
20303 as_myself=$0
20304 fi
20305 if test ! -f "$as_myself"; then
20306 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20307 exit 1
20308 fi
20309
20310
20311
20312 # as_fn_error STATUS ERROR [LINENO LOG_FD]
20313 # ----------------------------------------
20314 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
20315 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
20316 # script with STATUS, using 1 if that was 0.
20317 as_fn_error ()
20318 {
20319 as_status=$1; test $as_status -eq 0 && as_status=1
20320 if test "$4"; then
20321 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
20322 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
20323 fi
20324 printf "%s\n" "$as_me: error: $2" >&2
20325 as_fn_exit $as_status
20326 } # as_fn_error
20327
20328
20329
20330 # as_fn_set_status STATUS
20331 # -----------------------
20332 # Set $? to STATUS, without forking.
20333 as_fn_set_status ()
20334 {
20335 return $1
20336 } # as_fn_set_status
20337
20338 # as_fn_exit STATUS
20339 # -----------------
20340 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
20341 as_fn_exit ()
20342 {
20343 set +e
20344 as_fn_set_status $1
20345 exit $1
20346 } # as_fn_exit
20347
20348 # as_fn_unset VAR
20349 # ---------------
20350 # Portably unset VAR.
20351 as_fn_unset ()
20352 {
20353 { eval $1=; unset $1;}
20354 }
20355 as_unset=as_fn_unset
20356
20357 # as_fn_append VAR VALUE
20358 # ----------------------
20359 # Append the text in VALUE to the end of the definition contained in VAR. Take
20360 # advantage of any shell optimizations that allow amortized linear growth over
20361 # repeated appends, instead of the typical quadratic growth present in naive
20362 # implementations.
20363 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
20364 then :
20365 eval 'as_fn_append ()
20366 {
20367 eval $1+=\$2
20368 }'
20369 else $as_nop
20370 as_fn_append ()
20371 {
20372 eval $1=\$$1\$2
20373 }
20374 fi # as_fn_append
20375
20376 # as_fn_arith ARG...
20377 # ------------------
20378 # Perform arithmetic evaluation on the ARGs, and store the result in the
20379 # global $as_val. Take advantage of shells that can avoid forks. The arguments
20380 # must be portable across $(()) and expr.
20381 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
20382 then :
20383 eval 'as_fn_arith ()
20384 {
20385 as_val=$(( $* ))
20386 }'
20387 else $as_nop
20388 as_fn_arith ()
20389 {
20390 as_val=`expr "$@" || test $? -eq 1`
20391 }
20392 fi # as_fn_arith
20393
20394
20395 if expr a : '\(a\)' >/dev/null 2>&1 &&
20396 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20397 as_expr=expr
20398 else
20399 as_expr=false
20400 fi
20401
20402 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20403 as_basename=basename
20404 else
20405 as_basename=false
20406 fi
20407
20408 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20409 as_dirname=dirname
20410 else
20411 as_dirname=false
20412 fi
20413
20414 as_me=`$as_basename -- "$0" ||
20415 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20416 X"$0" : 'X\(//\)$' \| \
20417 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20418 printf "%s\n" X/"$0" |
20419 sed '/^.*\/\([^/][^/]*\)\/*$/{
20420 s//\1/
20421 q
20422 }
20423 /^X\/\(\/\/\)$/{
20424 s//\1/
20425 q
20426 }
20427 /^X\/\(\/\).*/{
20428 s//\1/
20429 q
20430 }
20431 s/.*/./; q'`
20432
20433 # Avoid depending upon Character Ranges.
20434 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20435 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20436 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20437 as_cr_digits='0123456789'
20438 as_cr_alnum=$as_cr_Letters$as_cr_digits
20439
20440
20441 # Determine whether it's possible to make 'echo' print without a newline.
20442 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
20443 # for compatibility with existing Makefiles.
20444 ECHO_C= ECHO_N= ECHO_T=
20445 case `echo -n x` in #(((((
20446 -n*)
20447 case `echo 'xy\c'` in
20448 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
20449 xy) ECHO_C='\c';;
20450 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
20451 ECHO_T=' ';;
20452 esac;;
20453 *)
20454 ECHO_N='-n';;
20455 esac
20456
20457 # For backward compatibility with old third-party macros, we provide
20458 # the shell variables $as_echo and $as_echo_n. New code should use
20459 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
20460 as_echo='printf %s\n'
20461 as_echo_n='printf %s'
20462
20463 rm -f conf$$ conf$$.exe conf$$.file
20464 if test -d conf$$.dir; then
20465 rm -f conf$$.dir/conf$$.file
20466 else
20467 rm -f conf$$.dir
20468 mkdir conf$$.dir 2>/dev/null
20469 fi
20470 if (echo >conf$$.file) 2>/dev/null; then
20471 if ln -s conf$$.file conf$$ 2>/dev/null; then
20472 as_ln_s='ln -s'
20473 # ... but there are two gotchas:
20474 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20475 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20476 # In both cases, we have to default to `cp -pR'.
20477 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20478 as_ln_s='cp -pR'
20479 elif ln conf$$.file conf$$ 2>/dev/null; then
20480 as_ln_s=ln
20481 else
20482 as_ln_s='cp -pR'
20483 fi
20484 else
20485 as_ln_s='cp -pR'
20486 fi
20487 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20488 rmdir conf$$.dir 2>/dev/null
20489
20490
20491 # as_fn_mkdir_p
20492 # -------------
20493 # Create "$as_dir" as a directory, including parents if necessary.
20494 as_fn_mkdir_p ()
20495 {
20496
20497 case $as_dir in #(
20498 -*) as_dir=./$as_dir;;
20499 esac
20500 test -d "$as_dir" || eval $as_mkdir_p || {
20501 as_dirs=
20502 while :; do
20503 case $as_dir in #(
20504 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20505 *) as_qdir=$as_dir;;
20506 esac
20507 as_dirs="'$as_qdir' $as_dirs"
20508 as_dir=`$as_dirname -- "$as_dir" ||
20509 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20510 X"$as_dir" : 'X\(//\)[^/]' \| \
20511 X"$as_dir" : 'X\(//\)$' \| \
20512 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20513 printf "%s\n" X"$as_dir" |
20514 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20515 s//\1/
20516 q
20517 }
20518 /^X\(\/\/\)[^/].*/{
20519 s//\1/
20520 q
20521 }
20522 /^X\(\/\/\)$/{
20523 s//\1/
20524 q
20525 }
20526 /^X\(\/\).*/{
20527 s//\1/
20528 q
20529 }
20530 s/.*/./; q'`
20531 test -d "$as_dir" && break
20532 done
20533 test -z "$as_dirs" || eval "mkdir $as_dirs"
20534 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
20535
20536
20537 } # as_fn_mkdir_p
20538 if mkdir -p . 2>/dev/null; then
20539 as_mkdir_p='mkdir -p "$as_dir"'
20540 else
20541 test -d ./-p && rmdir ./-p
20542 as_mkdir_p=false
20543 fi
20544
20545
20546 # as_fn_executable_p FILE
20547 # -----------------------
20548 # Test if FILE is an executable regular file.
20549 as_fn_executable_p ()
20550 {
20551 test -f "$1" && test -x "$1"
20552 } # as_fn_executable_p
20553 as_test_x='test -x'
20554 as_executable_p=as_fn_executable_p
20555
20556 # Sed expression to map a string onto a valid CPP name.
20557 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20558
20559 # Sed expression to map a string onto a valid variable name.
20560 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20561
20562
20563 exec 6>&1
20564 ## ----------------------------------- ##
20565 ## Main body of $CONFIG_STATUS script. ##
20566 ## ----------------------------------- ##
20567 _ASEOF
20568 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
20569
20570 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20571 # Save the log message, to keep $0 and so on meaningful, and to
20572 # report actual input values of CONFIG_FILES etc. instead of their
20573 # values after options handling.
20574 ac_log="
20575 This file was extended by xf86-video-savage $as_me 2.4.0, which was
20576 generated by GNU Autoconf 2.71. Invocation command line was
20577
20578 CONFIG_FILES = $CONFIG_FILES
20579 CONFIG_HEADERS = $CONFIG_HEADERS
20580 CONFIG_LINKS = $CONFIG_LINKS
20581 CONFIG_COMMANDS = $CONFIG_COMMANDS
20582 $ $0 $@
20583
20584 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20585 "
20586
20587 _ACEOF
20588
20589 case $ac_config_files in *"
20590 "*) set x $ac_config_files; shift; ac_config_files=$*;;
20591 esac
20592
20593 case $ac_config_headers in *"
20594 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
20595 esac
20596
20597
20598 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20599 # Files that config.status was made for.
20600 config_files="$ac_config_files"
20601 config_headers="$ac_config_headers"
20602 config_commands="$ac_config_commands"
20603
20604 _ACEOF
20605
20606 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20607 ac_cs_usage="\
20608 \`$as_me' instantiates files and other configuration actions
20609 from templates according to the current configuration. Unless the files
20610 and actions are specified as TAGs, all are instantiated by default.
20611
20612 Usage: $0 [OPTION]... [TAG]...
20613
20614 -h, --help print this help, then exit
20615 -V, --version print version number and configuration settings, then exit
20616 --config print configuration, then exit
20617 -q, --quiet, --silent
20618 do not print progress messages
20619 -d, --debug don't remove temporary files
20620 --recheck update $as_me by reconfiguring in the same conditions
20621 --file=FILE[:TEMPLATE]
20622 instantiate the configuration file FILE
20623 --header=FILE[:TEMPLATE]
20624 instantiate the configuration header FILE
20625
20626 Configuration files:
20627 $config_files
20628
20629 Configuration headers:
20630 $config_headers
20631
20632 Configuration commands:
20633 $config_commands
20634
20635 Report bugs to <https://gitlab.freedesktop.org/xorg/driver/xf86-video-savage/-/issues>."
20636
20637 _ACEOF
20638 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
20639 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
20640 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20641 ac_cs_config='$ac_cs_config_escaped'
20642 ac_cs_version="\\
20643 xf86-video-savage config.status 2.4.0
20644 configured by $0, generated by GNU Autoconf 2.71,
20645 with options \\"\$ac_cs_config\\"
20646
20647 Copyright (C) 2021 Free Software Foundation, Inc.
20648 This config.status script is free software; the Free Software Foundation
20649 gives unlimited permission to copy, distribute and modify it."
20650
20651 ac_pwd='$ac_pwd'
20652 srcdir='$srcdir'
20653 INSTALL='$INSTALL'
20654 MKDIR_P='$MKDIR_P'
20655 AWK='$AWK'
20656 test -n "\$AWK" || AWK=awk
20657 _ACEOF
20658
20659 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20660 # The default lists apply if the user does not specify any file.
20661 ac_need_defaults=:
20662 while test $# != 0
20663 do
20664 case $1 in
20665 --*=?*)
20666 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20667 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20668 ac_shift=:
20669 ;;
20670 --*=)
20671 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20672 ac_optarg=
20673 ac_shift=:
20674 ;;
20675 *)
20676 ac_option=$1
20677 ac_optarg=$2
20678 ac_shift=shift
20679 ;;
20680 esac
20681
20682 case $ac_option in
20683 # Handling of the options.
20684 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20685 ac_cs_recheck=: ;;
20686 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20687 printf "%s\n" "$ac_cs_version"; exit ;;
20688 --config | --confi | --conf | --con | --co | --c )
20689 printf "%s\n" "$ac_cs_config"; exit ;;
20690 --debug | --debu | --deb | --de | --d | -d )
20691 debug=: ;;
20692 --file | --fil | --fi | --f )
20693 $ac_shift
20694 case $ac_optarg in
20695 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20696 '') as_fn_error $? "missing file argument" ;;
20697 esac
20698 as_fn_append CONFIG_FILES " '$ac_optarg'"
20699 ac_need_defaults=false;;
20700 --header | --heade | --head | --hea )
20701 $ac_shift
20702 case $ac_optarg in
20703 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20704 esac
20705 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
20706 ac_need_defaults=false;;
20707 --he | --h)
20708 # Conflict between --help and --header
20709 as_fn_error $? "ambiguous option: \`$1'
20710 Try \`$0 --help' for more information.";;
20711 --help | --hel | -h )
20712 printf "%s\n" "$ac_cs_usage"; exit ;;
20713 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20714 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20715 ac_cs_silent=: ;;
20716
20717 # This is an error.
20718 -*) as_fn_error $? "unrecognized option: \`$1'
20719 Try \`$0 --help' for more information." ;;
20720
20721 *) as_fn_append ac_config_targets " $1"
20722 ac_need_defaults=false ;;
20723
20724 esac
20725 shift
20726 done
20727
20728 ac_configure_extra_args=
20729
20730 if $ac_cs_silent; then
20731 exec 6>/dev/null
20732 ac_configure_extra_args="$ac_configure_extra_args --silent"
20733 fi
20734
20735 _ACEOF
20736 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20737 if \$ac_cs_recheck; then
20738 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20739 shift
20740 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
20741 CONFIG_SHELL='$SHELL'
20742 export CONFIG_SHELL
20743 exec "\$@"
20744 fi
20745
20746 _ACEOF
20747 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20748 exec 5>>config.log
20749 {
20750 echo
20751 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20752 ## Running $as_me. ##
20753 _ASBOX
20754 printf "%s\n" "$ac_log"
20755 } >&5
20756
20757 _ACEOF
20758 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20759 #
20760 # INIT-COMMANDS
20761 #
20762 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
20763
20764
20765 # The HP-UX ksh and POSIX shell print the target directory to stdout
20766 # if CDPATH is set.
20767 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20768
20769 sed_quote_subst='$sed_quote_subst'
20770 double_quote_subst='$double_quote_subst'
20771 delay_variable_subst='$delay_variable_subst'
20772 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
20773 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
20774 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
20775 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
20776 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
20777 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
20778 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
20779 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
20780 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
20781 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
20782 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
20783 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
20784 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
20785 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
20786 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
20787 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
20788 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
20789 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
20790 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
20791 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
20792 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
20793 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
20794 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
20795 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
20796 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
20797 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
20798 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
20799 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
20800 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
20801 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
20802 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
20803 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
20804 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
20805 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
20806 FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
20807 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
20808 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
20809 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
20810 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
20811 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
20812 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
20813 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
20814 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
20815 lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
20816 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
20817 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
20818 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
20819 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
20820 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20821 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20822 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
20823 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
20824 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
20825 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
20826 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
20827 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
20828 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
20829 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
20830 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
20831 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
20832 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"`'
20833 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
20834 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
20835 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
20836 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
20837 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
20838 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
20839 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
20840 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
20841 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
20842 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
20843 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
20844 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
20845 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
20846 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
20847 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
20848 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
20849 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
20850 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
20851 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
20852 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
20853 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20854 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
20855 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
20856 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
20857 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
20858 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
20859 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
20860 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20861 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
20862 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20863 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
20864 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20865 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
20866 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
20867 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
20868 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
20869 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
20870 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
20871 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
20872 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
20873 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
20874 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
20875 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
20876 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
20877 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
20878 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
20879 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
20880 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
20881 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
20882 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
20883 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
20884 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
20885 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
20886 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
20887 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
20888 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
20889 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
20890 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
20891 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
20892 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
20893 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
20894 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
20895 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20896 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20897 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
20898 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
20899 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
20900 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
20901 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
20902 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
20903 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
20904 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
20905 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
20906 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
20907 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
20908 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
20909
20910 LTCC='$LTCC'
20911 LTCFLAGS='$LTCFLAGS'
20912 compiler='$compiler_DEFAULT'
20913
20914 # A function that is used when there is no print builtin or printf.
20915 func_fallback_echo ()
20916 {
20917 eval 'cat <<_LTECHO_EOF
20918 \$1
20919 _LTECHO_EOF'
20920 }
20921
20922 # Quote evaled strings.
20923 for var in SHELL \
20924 ECHO \
20925 PATH_SEPARATOR \
20926 SED \
20927 GREP \
20928 EGREP \
20929 FGREP \
20930 LD \
20931 NM \
20932 LN_S \
20933 lt_SP2NL \
20934 lt_NL2SP \
20935 reload_flag \
20936 FILECMD \
20937 OBJDUMP \
20938 deplibs_check_method \
20939 file_magic_cmd \
20940 file_magic_glob \
20941 want_nocaseglob \
20942 DLLTOOL \
20943 sharedlib_from_linklib_cmd \
20944 AR \
20945 archiver_list_spec \
20946 STRIP \
20947 RANLIB \
20948 CC \
20949 CFLAGS \
20950 compiler \
20951 lt_cv_sys_global_symbol_pipe \
20952 lt_cv_sys_global_symbol_to_cdecl \
20953 lt_cv_sys_global_symbol_to_import \
20954 lt_cv_sys_global_symbol_to_c_name_address \
20955 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
20956 lt_cv_nm_interface \
20957 nm_file_list_spec \
20958 lt_cv_truncate_bin \
20959 lt_prog_compiler_no_builtin_flag \
20960 lt_prog_compiler_pic \
20961 lt_prog_compiler_wl \
20962 lt_prog_compiler_static \
20963 lt_cv_prog_compiler_c_o \
20964 need_locks \
20965 MANIFEST_TOOL \
20966 DSYMUTIL \
20967 NMEDIT \
20968 LIPO \
20969 OTOOL \
20970 OTOOL64 \
20971 shrext_cmds \
20972 export_dynamic_flag_spec \
20973 whole_archive_flag_spec \
20974 compiler_needs_object \
20975 with_gnu_ld \
20976 allow_undefined_flag \
20977 no_undefined_flag \
20978 hardcode_libdir_flag_spec \
20979 hardcode_libdir_separator \
20980 exclude_expsyms \
20981 include_expsyms \
20982 file_list_spec \
20983 variables_saved_for_relink \
20984 libname_spec \
20985 library_names_spec \
20986 soname_spec \
20987 install_override_mode \
20988 finish_eval \
20989 old_striplib \
20990 striplib; do
20991 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20992 *[\\\\\\\`\\"\\\$]*)
20993 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
20994 ;;
20995 *)
20996 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20997 ;;
20998 esac
20999 done
21000
21001 # Double-quote double-evaled strings.
21002 for var in reload_cmds \
21003 old_postinstall_cmds \
21004 old_postuninstall_cmds \
21005 old_archive_cmds \
21006 extract_expsyms_cmds \
21007 old_archive_from_new_cmds \
21008 old_archive_from_expsyms_cmds \
21009 archive_cmds \
21010 archive_expsym_cmds \
21011 module_cmds \
21012 module_expsym_cmds \
21013 export_symbols_cmds \
21014 prelink_cmds \
21015 postlink_cmds \
21016 postinstall_cmds \
21017 postuninstall_cmds \
21018 finish_cmds \
21019 sys_lib_search_path_spec \
21020 configure_time_dlsearch_path \
21021 configure_time_lt_sys_library_path; do
21022 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
21023 *[\\\\\\\`\\"\\\$]*)
21024 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
21025 ;;
21026 *)
21027 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21028 ;;
21029 esac
21030 done
21031
21032 ac_aux_dir='$ac_aux_dir'
21033
21034 # See if we are running on zsh, and set the options that allow our
21035 # commands through without removal of \ escapes INIT.
21036 if test -n "\${ZSH_VERSION+set}"; then
21037 setopt NO_GLOB_SUBST
21038 fi
21039
21040
21041 PACKAGE='$PACKAGE'
21042 VERSION='$VERSION'
21043 RM='$RM'
21044 ofile='$ofile'
21045
21046
21047
21048
21049 _ACEOF
21050
21051 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21052
21053 # Handling of arguments.
21054 for ac_config_target in $ac_config_targets
21055 do
21056 case $ac_config_target in
21057 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
21058 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21059 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
21060 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21061 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
21062 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
21063
21064 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
21065 esac
21066 done
21067
21068
21069 # If the user did not use the arguments to specify the items to instantiate,
21070 # then the envvar interface is used. Set only those that are not.
21071 # We use the long form for the default assignment because of an extremely
21072 # bizarre bug on SunOS 4.1.3.
21073 if $ac_need_defaults; then
21074 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
21075 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
21076 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
21077 fi
21078
21079 # Have a temporary directory for convenience. Make it in the build tree
21080 # simply because there is no reason against having it here, and in addition,
21081 # creating and moving files from /tmp can sometimes cause problems.
21082 # Hook for its removal unless debugging.
21083 # Note that there is a small window in which the directory will not be cleaned:
21084 # after its creation but before its name has been assigned to `$tmp'.
21085 $debug ||
21086 {
21087 tmp= ac_tmp=
21088 trap 'exit_status=$?
21089 : "${ac_tmp:=$tmp}"
21090 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
21091 ' 0
21092 trap 'as_fn_exit 1' 1 2 13 15
21093 }
21094 # Create a (secure) tmp directory for tmp files.
21095
21096 {
21097 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21098 test -d "$tmp"
21099 } ||
21100 {
21101 tmp=./conf$$-$RANDOM
21102 (umask 077 && mkdir "$tmp")
21103 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
21104 ac_tmp=$tmp
21105
21106 # Set up the scripts for CONFIG_FILES section.
21107 # No need to generate them if there are no CONFIG_FILES.
21108 # This happens for instance with `./config.status config.h'.
21109 if test -n "$CONFIG_FILES"; then
21110
21111
21112 ac_cr=`echo X | tr X '\015'`
21113 # On cygwin, bash can eat \r inside `` if the user requested igncr.
21114 # But we know of no other shell where ac_cr would be empty at this
21115 # point, so we can use a bashism as a fallback.
21116 if test "x$ac_cr" = x; then
21117 eval ac_cr=\$\'\\r\'
21118 fi
21119 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
21120 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
21121 ac_cs_awk_cr='\\r'
21122 else
21123 ac_cs_awk_cr=$ac_cr
21124 fi
21125
21126 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
21127 _ACEOF
21128
21129
21130 {
21131 echo "cat >conf$$subs.awk <<_ACEOF" &&
21132 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
21133 echo "_ACEOF"
21134 } >conf$$subs.sh ||
21135 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21136 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
21137 ac_delim='%!_!# '
21138 for ac_last_try in false false false false false :; do
21139 . ./conf$$subs.sh ||
21140 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21141
21142 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
21143 if test $ac_delim_n = $ac_delim_num; then
21144 break
21145 elif $ac_last_try; then
21146 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21147 else
21148 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21149 fi
21150 done
21151 rm -f conf$$subs.sh
21152
21153 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21154 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
21155 _ACEOF
21156 sed -n '
21157 h
21158 s/^/S["/; s/!.*/"]=/
21159 p
21160 g
21161 s/^[^!]*!//
21162 :repl
21163 t repl
21164 s/'"$ac_delim"'$//
21165 t delim
21166 :nl
21167 h
21168 s/\(.\{148\}\)..*/\1/
21169 t more1
21170 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
21171 p
21172 n
21173 b repl
21174 :more1
21175 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21176 p
21177 g
21178 s/.\{148\}//
21179 t nl
21180 :delim
21181 h
21182 s/\(.\{148\}\)..*/\1/
21183 t more2
21184 s/["\\]/\\&/g; s/^/"/; s/$/"/
21185 p
21186 b
21187 :more2
21188 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21189 p
21190 g
21191 s/.\{148\}//
21192 t delim
21193 ' <conf$$subs.awk | sed '
21194 /^[^""]/{
21195 N
21196 s/\n//
21197 }
21198 ' >>$CONFIG_STATUS || ac_write_fail=1
21199 rm -f conf$$subs.awk
21200 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21201 _ACAWK
21202 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
21203 for (key in S) S_is_set[key] = 1
21204 FS = ""
21205
21206 }
21207 {
21208 line = $ 0
21209 nfields = split(line, field, "@")
21210 substed = 0
21211 len = length(field[1])
21212 for (i = 2; i < nfields; i++) {
21213 key = field[i]
21214 keylen = length(key)
21215 if (S_is_set[key]) {
21216 value = S[key]
21217 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
21218 len += length(value) + length(field[++i])
21219 substed = 1
21220 } else
21221 len += 1 + keylen
21222 }
21223
21224 print line
21225 }
21226
21227 _ACAWK
21228 _ACEOF
21229 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21230 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
21231 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
21232 else
21233 cat
21234 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
21235 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
21236 _ACEOF
21237
21238 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
21239 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
21240 # trailing colons and then remove the whole line if VPATH becomes empty
21241 # (actually we leave an empty line to preserve line numbers).
21242 if test "x$srcdir" = x.; then
21243 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
21244 h
21245 s///
21246 s/^/:/
21247 s/[ ]*$/:/
21248 s/:\$(srcdir):/:/g
21249 s/:\${srcdir}:/:/g
21250 s/:@srcdir@:/:/g
21251 s/^:*//
21252 s/:*$//
21253 x
21254 s/\(=[ ]*\).*/\1/
21255 G
21256 s/\n//
21257 s/^[^=]*=[ ]*$//
21258 }'
21259 fi
21260
21261 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21262 fi # test -n "$CONFIG_FILES"
21263
21264 # Set up the scripts for CONFIG_HEADERS section.
21265 # No need to generate them if there are no CONFIG_HEADERS.
21266 # This happens for instance with `./config.status Makefile'.
21267 if test -n "$CONFIG_HEADERS"; then
21268 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
21269 BEGIN {
21270 _ACEOF
21271
21272 # Transform confdefs.h into an awk script `defines.awk', embedded as
21273 # here-document in config.status, that substitutes the proper values into
21274 # config.h.in to produce config.h.
21275
21276 # Create a delimiter string that does not exist in confdefs.h, to ease
21277 # handling of long lines.
21278 ac_delim='%!_!# '
21279 for ac_last_try in false false :; do
21280 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
21281 if test -z "$ac_tt"; then
21282 break
21283 elif $ac_last_try; then
21284 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
21285 else
21286 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21287 fi
21288 done
21289
21290 # For the awk script, D is an array of macro values keyed by name,
21291 # likewise P contains macro parameters if any. Preserve backslash
21292 # newline sequences.
21293
21294 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21295 sed -n '
21296 s/.\{148\}/&'"$ac_delim"'/g
21297 t rset
21298 :rset
21299 s/^[ ]*#[ ]*define[ ][ ]*/ /
21300 t def
21301 d
21302 :def
21303 s/\\$//
21304 t bsnl
21305 s/["\\]/\\&/g
21306 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
21307 D["\1"]=" \3"/p
21308 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
21309 d
21310 :bsnl
21311 s/["\\]/\\&/g
21312 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
21313 D["\1"]=" \3\\\\\\n"\\/p
21314 t cont
21315 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
21316 t cont
21317 d
21318 :cont
21319 n
21320 s/.\{148\}/&'"$ac_delim"'/g
21321 t clear
21322 :clear
21323 s/\\$//
21324 t bsnlc
21325 s/["\\]/\\&/g; s/^/"/; s/$/"/p
21326 d
21327 :bsnlc
21328 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
21329 b cont
21330 ' <confdefs.h | sed '
21331 s/'"$ac_delim"'/"\\\
21332 "/g' >>$CONFIG_STATUS || ac_write_fail=1
21333
21334 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21335 for (key in D) D_is_set[key] = 1
21336 FS = ""
21337 }
21338 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
21339 line = \$ 0
21340 split(line, arg, " ")
21341 if (arg[1] == "#") {
21342 defundef = arg[2]
21343 mac1 = arg[3]
21344 } else {
21345 defundef = substr(arg[1], 2)
21346 mac1 = arg[2]
21347 }
21348 split(mac1, mac2, "(") #)
21349 macro = mac2[1]
21350 prefix = substr(line, 1, index(line, defundef) - 1)
21351 if (D_is_set[macro]) {
21352 # Preserve the white space surrounding the "#".
21353 print prefix "define", macro P[macro] D[macro]
21354 next
21355 } else {
21356 # Replace #undef with comments. This is necessary, for example,
21357 # in the case of _POSIX_SOURCE, which is predefined and required
21358 # on some systems where configure will not decide to define it.
21359 if (defundef == "undef") {
21360 print "/*", prefix defundef, macro, "*/"
21361 next
21362 }
21363 }
21364 }
21365 { print }
21366 _ACAWK
21367 _ACEOF
21368 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21369 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
21370 fi # test -n "$CONFIG_HEADERS"
21371
21372
21373 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
21374 shift
21375 for ac_tag
21376 do
21377 case $ac_tag in
21378 :[FHLC]) ac_mode=$ac_tag; continue;;
21379 esac
21380 case $ac_mode$ac_tag in
21381 :[FHL]*:*);;
21382 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
21383 :[FH]-) ac_tag=-:-;;
21384 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21385 esac
21386 ac_save_IFS=$IFS
21387 IFS=:
21388 set x $ac_tag
21389 IFS=$ac_save_IFS
21390 shift
21391 ac_file=$1
21392 shift
21393
21394 case $ac_mode in
21395 :L) ac_source=$1;;
21396 :[FH])
21397 ac_file_inputs=
21398 for ac_f
21399 do
21400 case $ac_f in
21401 -) ac_f="$ac_tmp/stdin";;
21402 *) # Look for the file first in the build tree, then in the source tree
21403 # (if the path is not absolute). The absolute path cannot be DOS-style,
21404 # because $ac_f cannot contain `:'.
21405 test -f "$ac_f" ||
21406 case $ac_f in
21407 [\\/$]*) false;;
21408 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21409 esac ||
21410 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
21411 esac
21412 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
21413 as_fn_append ac_file_inputs " '$ac_f'"
21414 done
21415
21416 # Let's still pretend it is `configure' which instantiates (i.e., don't
21417 # use $as_me), people would be surprised to read:
21418 # /* config.h. Generated by config.status. */
21419 configure_input='Generated from '`
21420 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
21421 `' by configure.'
21422 if test x"$ac_file" != x-; then
21423 configure_input="$ac_file. $configure_input"
21424 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
21425 printf "%s\n" "$as_me: creating $ac_file" >&6;}
21426 fi
21427 # Neutralize special characters interpreted by sed in replacement strings.
21428 case $configure_input in #(
21429 *\&* | *\|* | *\\* )
21430 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
21431 sed 's/[\\\\&|]/\\\\&/g'`;; #(
21432 *) ac_sed_conf_input=$configure_input;;
21433 esac
21434
21435 case $ac_tag in
21436 *:-:* | *:-) cat >"$ac_tmp/stdin" \
21437 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
21438 esac
21439 ;;
21440 esac
21441
21442 ac_dir=`$as_dirname -- "$ac_file" ||
21443 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21444 X"$ac_file" : 'X\(//\)[^/]' \| \
21445 X"$ac_file" : 'X\(//\)$' \| \
21446 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21447 printf "%s\n" X"$ac_file" |
21448 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21449 s//\1/
21450 q
21451 }
21452 /^X\(\/\/\)[^/].*/{
21453 s//\1/
21454 q
21455 }
21456 /^X\(\/\/\)$/{
21457 s//\1/
21458 q
21459 }
21460 /^X\(\/\).*/{
21461 s//\1/
21462 q
21463 }
21464 s/.*/./; q'`
21465 as_dir="$ac_dir"; as_fn_mkdir_p
21466 ac_builddir=.
21467
21468 case "$ac_dir" in
21469 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21470 *)
21471 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
21472 # A ".." for each directory in $ac_dir_suffix.
21473 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21474 case $ac_top_builddir_sub in
21475 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21476 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21477 esac ;;
21478 esac
21479 ac_abs_top_builddir=$ac_pwd
21480 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21481 # for backward compatibility:
21482 ac_top_builddir=$ac_top_build_prefix
21483
21484 case $srcdir in
21485 .) # We are building in place.
21486 ac_srcdir=.
21487 ac_top_srcdir=$ac_top_builddir_sub
21488 ac_abs_top_srcdir=$ac_pwd ;;
21489 [\\/]* | ?:[\\/]* ) # Absolute name.
21490 ac_srcdir=$srcdir$ac_dir_suffix;
21491 ac_top_srcdir=$srcdir
21492 ac_abs_top_srcdir=$srcdir ;;
21493 *) # Relative name.
21494 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21495 ac_top_srcdir=$ac_top_build_prefix$srcdir
21496 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21497 esac
21498 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21499
21500
21501 case $ac_mode in
21502 :F)
21503 #
21504 # CONFIG_FILE
21505 #
21506
21507 case $INSTALL in
21508 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21509 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21510 esac
21511 ac_MKDIR_P=$MKDIR_P
21512 case $MKDIR_P in
21513 [\\/$]* | ?:[\\/]* ) ;;
21514 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
21515 esac
21516 _ACEOF
21517
21518 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21519 # If the template does not know about datarootdir, expand it.
21520 # FIXME: This hack should be removed a few years after 2.60.
21521 ac_datarootdir_hack=; ac_datarootdir_seen=
21522 ac_sed_dataroot='
21523 /datarootdir/ {
21524 p
21525 q
21526 }
21527 /@datadir@/p
21528 /@docdir@/p
21529 /@infodir@/p
21530 /@localedir@/p
21531 /@mandir@/p'
21532 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
21533 *datarootdir*) ac_datarootdir_seen=yes;;
21534 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21535 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21536 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21537 _ACEOF
21538 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21539 ac_datarootdir_hack='
21540 s&@datadir@&$datadir&g
21541 s&@docdir@&$docdir&g
21542 s&@infodir@&$infodir&g
21543 s&@localedir@&$localedir&g
21544 s&@mandir@&$mandir&g
21545 s&\\\${datarootdir}&$datarootdir&g' ;;
21546 esac
21547 _ACEOF
21548
21549 # Neutralize VPATH when `$srcdir' = `.'.
21550 # Shell code in configure.ac might set extrasub.
21551 # FIXME: do we really want to maintain this feature?
21552 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21553 ac_sed_extra="$ac_vpsub
21554 $extrasub
21555 _ACEOF
21556 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21557 :t
21558 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21559 s|@configure_input@|$ac_sed_conf_input|;t t
21560 s&@top_builddir@&$ac_top_builddir_sub&;t t
21561 s&@top_build_prefix@&$ac_top_build_prefix&;t t
21562 s&@srcdir@&$ac_srcdir&;t t
21563 s&@abs_srcdir@&$ac_abs_srcdir&;t t
21564 s&@top_srcdir@&$ac_top_srcdir&;t t
21565 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21566 s&@builddir@&$ac_builddir&;t t
21567 s&@abs_builddir@&$ac_abs_builddir&;t t
21568 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21569 s&@INSTALL@&$ac_INSTALL&;t t
21570 s&@MKDIR_P@&$ac_MKDIR_P&;t t
21571 $ac_datarootdir_hack
21572 "
21573 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
21574 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21575
21576 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21577 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
21578 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
21579 "$ac_tmp/out"`; test -z "$ac_out"; } &&
21580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21581 which seems to be undefined. Please make sure it is defined" >&5
21582 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21583 which seems to be undefined. Please make sure it is defined" >&2;}
21584
21585 rm -f "$ac_tmp/stdin"
21586 case $ac_file in
21587 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
21588 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
21589 esac \
21590 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21591 ;;
21592 :H)
21593 #
21594 # CONFIG_HEADER
21595 #
21596 if test x"$ac_file" != x-; then
21597 {
21598 printf "%s\n" "/* $configure_input */" >&1 \
21599 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
21600 } >"$ac_tmp/config.h" \
21601 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21602 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
21603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
21604 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
21605 else
21606 rm -f "$ac_file"
21607 mv "$ac_tmp/config.h" "$ac_file" \
21608 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21609 fi
21610 else
21611 printf "%s\n" "/* $configure_input */" >&1 \
21612 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
21613 || as_fn_error $? "could not create -" "$LINENO" 5
21614 fi
21615 # Compute "$ac_file"'s index in $config_headers.
21616 _am_arg="$ac_file"
21617 _am_stamp_count=1
21618 for _am_header in $config_headers :; do
21619 case $_am_header in
21620 $_am_arg | $_am_arg:* )
21621 break ;;
21622 * )
21623 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21624 esac
21625 done
21626 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
21627 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21628 X"$_am_arg" : 'X\(//\)[^/]' \| \
21629 X"$_am_arg" : 'X\(//\)$' \| \
21630 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
21631 printf "%s\n" X"$_am_arg" |
21632 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21633 s//\1/
21634 q
21635 }
21636 /^X\(\/\/\)[^/].*/{
21637 s//\1/
21638 q
21639 }
21640 /^X\(\/\/\)$/{
21641 s//\1/
21642 q
21643 }
21644 /^X\(\/\).*/{
21645 s//\1/
21646 q
21647 }
21648 s/.*/./; q'`/stamp-h$_am_stamp_count
21649 ;;
21650
21651 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
21652 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
21653 ;;
21654 esac
21655
21656
21657 case $ac_file$ac_mode in
21658 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
21659 # Older Autoconf quotes --file arguments for eval, but not when files
21660 # are listed without --file. Let's play safe and only enable the eval
21661 # if we detect the quoting.
21662 # TODO: see whether this extra hack can be removed once we start
21663 # requiring Autoconf 2.70 or later.
21664 case $CONFIG_FILES in #(
21665 *\'*) :
21666 eval set x "$CONFIG_FILES" ;; #(
21667 *) :
21668 set x $CONFIG_FILES ;; #(
21669 *) :
21670 ;;
21671 esac
21672 shift
21673 # Used to flag and report bootstrapping failures.
21674 am_rc=0
21675 for am_mf
21676 do
21677 # Strip MF so we end up with the name of the file.
21678 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
21679 # Check whether this is an Automake generated Makefile which includes
21680 # dependency-tracking related rules and includes.
21681 # Grep'ing the whole file directly is not great: AIX grep has a line
21682 # limit of 2048, but all sed's we know have understand at least 4000.
21683 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
21684 || continue
21685 am_dirpart=`$as_dirname -- "$am_mf" ||
21686 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21687 X"$am_mf" : 'X\(//\)[^/]' \| \
21688 X"$am_mf" : 'X\(//\)$' \| \
21689 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
21690 printf "%s\n" X"$am_mf" |
21691 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21692 s//\1/
21693 q
21694 }
21695 /^X\(\/\/\)[^/].*/{
21696 s//\1/
21697 q
21698 }
21699 /^X\(\/\/\)$/{
21700 s//\1/
21701 q
21702 }
21703 /^X\(\/\).*/{
21704 s//\1/
21705 q
21706 }
21707 s/.*/./; q'`
21708 am_filepart=`$as_basename -- "$am_mf" ||
21709 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
21710 X"$am_mf" : 'X\(//\)$' \| \
21711 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
21712 printf "%s\n" X/"$am_mf" |
21713 sed '/^.*\/\([^/][^/]*\)\/*$/{
21714 s//\1/
21715 q
21716 }
21717 /^X\/\(\/\/\)$/{
21718 s//\1/
21719 q
21720 }
21721 /^X\/\(\/\).*/{
21722 s//\1/
21723 q
21724 }
21725 s/.*/./; q'`
21726 { echo "$as_me:$LINENO: cd "$am_dirpart" \
21727 && sed -e '/# am--include-marker/d' "$am_filepart" \
21728 | $MAKE -f - am--depfiles" >&5
21729 (cd "$am_dirpart" \
21730 && sed -e '/# am--include-marker/d' "$am_filepart" \
21731 | $MAKE -f - am--depfiles) >&5 2>&5
21732 ac_status=$?
21733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21734 (exit $ac_status); } || am_rc=$?
21735 done
21736 if test $am_rc -ne 0; then
21737 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21738 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
21739 as_fn_error $? "Something went wrong bootstrapping makefile fragments
21740 for automatic dependency tracking. If GNU make was not used, consider
21741 re-running the configure script with MAKE=\"gmake\" (or whatever is
21742 necessary). You can also try re-running configure with the
21743 '--disable-dependency-tracking' option to at least be able to build
21744 the package (albeit without support for automatic dependency tracking).
21745 See \`config.log' for more details" "$LINENO" 5; }
21746 fi
21747 { am_dirpart=; unset am_dirpart;}
21748 { am_filepart=; unset am_filepart;}
21749 { am_mf=; unset am_mf;}
21750 { am_rc=; unset am_rc;}
21751 rm -f conftest-deps.mk
21752 }
21753 ;;
21754 "libtool":C)
21755
21756 # See if we are running on zsh, and set the options that allow our
21757 # commands through without removal of \ escapes.
21758 if test -n "${ZSH_VERSION+set}"; then
21759 setopt NO_GLOB_SUBST
21760 fi
21761
21762 cfgfile=${ofile}T
21763 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
21764 $RM "$cfgfile"
21765
21766 cat <<_LT_EOF >> "$cfgfile"
21767 #! $SHELL
21768 # Generated automatically by $as_me ($PACKAGE) $VERSION
21769 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21770 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
21771
21772 # Provide generalized library-building support services.
21773 # Written by Gordon Matzigkeit, 1996
21774
21775 # Copyright (C) 2014 Free Software Foundation, Inc.
21776 # This is free software; see the source for copying conditions. There is NO
21777 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
21778
21779 # GNU Libtool is free software; you can redistribute it and/or modify
21780 # it under the terms of the GNU General Public License as published by
21781 # the Free Software Foundation; either version 2 of of the License, or
21782 # (at your option) any later version.
21783 #
21784 # As a special exception to the GNU General Public License, if you
21785 # distribute this file as part of a program or library that is built
21786 # using GNU Libtool, you may include this file under the same
21787 # distribution terms that you use for the rest of that program.
21788 #
21789 # GNU Libtool is distributed in the hope that it will be useful, but
21790 # WITHOUT ANY WARRANTY; without even the implied warranty of
21791 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21792 # GNU General Public License for more details.
21793 #
21794 # You should have received a copy of the GNU General Public License
21795 # along with this program. If not, see <http://www.gnu.org/licenses/>.
21796
21797
21798 # The names of the tagged configurations supported by this script.
21799 available_tags=''
21800
21801 # Configured defaults for sys_lib_dlsearch_path munging.
21802 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
21803
21804 # ### BEGIN LIBTOOL CONFIG
21805
21806 # Whether or not to build static libraries.
21807 build_old_libs=$enable_static
21808
21809 # Which release of libtool.m4 was used?
21810 macro_version=$macro_version
21811 macro_revision=$macro_revision
21812
21813 # Whether or not to build shared libraries.
21814 build_libtool_libs=$enable_shared
21815
21816 # What type of objects to build.
21817 pic_mode=$pic_mode
21818
21819 # Whether or not to optimize for fast installation.
21820 fast_install=$enable_fast_install
21821
21822 # Shared archive member basename,for filename based shared library versioning on AIX.
21823 shared_archive_member_spec=$shared_archive_member_spec
21824
21825 # Shell to use when invoking shell scripts.
21826 SHELL=$lt_SHELL
21827
21828 # An echo program that protects backslashes.
21829 ECHO=$lt_ECHO
21830
21831 # The PATH separator for the build system.
21832 PATH_SEPARATOR=$lt_PATH_SEPARATOR
21833
21834 # The host system.
21835 host_alias=$host_alias
21836 host=$host
21837 host_os=$host_os
21838
21839 # The build system.
21840 build_alias=$build_alias
21841 build=$build
21842 build_os=$build_os
21843
21844 # A sed program that does not truncate output.
21845 SED=$lt_SED
21846
21847 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
21848 Xsed="\$SED -e 1s/^X//"
21849
21850 # A grep program that handles long lines.
21851 GREP=$lt_GREP
21852
21853 # An ERE matcher.
21854 EGREP=$lt_EGREP
21855
21856 # A literal string matcher.
21857 FGREP=$lt_FGREP
21858
21859 # A BSD- or MS-compatible name lister.
21860 NM=$lt_NM
21861
21862 # Whether we need soft or hard links.
21863 LN_S=$lt_LN_S
21864
21865 # What is the maximum length of a command?
21866 max_cmd_len=$max_cmd_len
21867
21868 # Object file suffix (normally "o").
21869 objext=$ac_objext
21870
21871 # Executable file suffix (normally "").
21872 exeext=$exeext
21873
21874 # whether the shell understands "unset".
21875 lt_unset=$lt_unset
21876
21877 # turn spaces into newlines.
21878 SP2NL=$lt_lt_SP2NL
21879
21880 # turn newlines into spaces.
21881 NL2SP=$lt_lt_NL2SP
21882
21883 # convert \$build file names to \$host format.
21884 to_host_file_cmd=$lt_cv_to_host_file_cmd
21885
21886 # convert \$build files to toolchain format.
21887 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
21888
21889 # A file(cmd) program that detects file types.
21890 FILECMD=$lt_FILECMD
21891
21892 # An object symbol dumper.
21893 OBJDUMP=$lt_OBJDUMP
21894
21895 # Method to check whether dependent libraries are shared objects.
21896 deplibs_check_method=$lt_deplibs_check_method
21897
21898 # Command to use when deplibs_check_method = "file_magic".
21899 file_magic_cmd=$lt_file_magic_cmd
21900
21901 # How to find potential files when deplibs_check_method = "file_magic".
21902 file_magic_glob=$lt_file_magic_glob
21903
21904 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
21905 want_nocaseglob=$lt_want_nocaseglob
21906
21907 # DLL creation program.
21908 DLLTOOL=$lt_DLLTOOL
21909
21910 # Command to associate shared and link libraries.
21911 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
21912
21913 # The archiver.
21914 AR=$lt_AR
21915
21916 # Flags to create an archive (by configure).
21917 lt_ar_flags=$lt_ar_flags
21918
21919 # Flags to create an archive.
21920 AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
21921
21922 # How to feed a file listing to the archiver.
21923 archiver_list_spec=$lt_archiver_list_spec
21924
21925 # A symbol stripping program.
21926 STRIP=$lt_STRIP
21927
21928 # Commands used to install an old-style archive.
21929 RANLIB=$lt_RANLIB
21930 old_postinstall_cmds=$lt_old_postinstall_cmds
21931 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21932
21933 # Whether to use a lock for old archive extraction.
21934 lock_old_archive_extraction=$lock_old_archive_extraction
21935
21936 # A C compiler.
21937 LTCC=$lt_CC
21938
21939 # LTCC compiler flags.
21940 LTCFLAGS=$lt_CFLAGS
21941
21942 # Take the output of nm and produce a listing of raw symbols and C names.
21943 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21944
21945 # Transform the output of nm in a proper C declaration.
21946 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21947
21948 # Transform the output of nm into a list of symbols to manually relocate.
21949 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
21950
21951 # Transform the output of nm in a C name address pair.
21952 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21953
21954 # Transform the output of nm in a C name address pair when lib prefix is needed.
21955 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
21956
21957 # The name lister interface.
21958 nm_interface=$lt_lt_cv_nm_interface
21959
21960 # Specify filename containing input files for \$NM.
21961 nm_file_list_spec=$lt_nm_file_list_spec
21962
21963 # The root where to search for dependent libraries,and where our libraries should be installed.
21964 lt_sysroot=$lt_sysroot
21965
21966 # Command to truncate a binary pipe.
21967 lt_truncate_bin=$lt_lt_cv_truncate_bin
21968
21969 # The name of the directory that contains temporary libtool files.
21970 objdir=$objdir
21971
21972 # Used to examine libraries when file_magic_cmd begins with "file".
21973 MAGIC_CMD=$MAGIC_CMD
21974
21975 # Must we lock files when doing compilation?
21976 need_locks=$lt_need_locks
21977
21978 # Manifest tool.
21979 MANIFEST_TOOL=$lt_MANIFEST_TOOL
21980
21981 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
21982 DSYMUTIL=$lt_DSYMUTIL
21983
21984 # Tool to change global to local symbols on Mac OS X.
21985 NMEDIT=$lt_NMEDIT
21986
21987 # Tool to manipulate fat objects and archives on Mac OS X.
21988 LIPO=$lt_LIPO
21989
21990 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
21991 OTOOL=$lt_OTOOL
21992
21993 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
21994 OTOOL64=$lt_OTOOL64
21995
21996 # Old archive suffix (normally "a").
21997 libext=$libext
21998
21999 # Shared library suffix (normally ".so").
22000 shrext_cmds=$lt_shrext_cmds
22001
22002 # The commands to extract the exported symbol list from a shared archive.
22003 extract_expsyms_cmds=$lt_extract_expsyms_cmds
22004
22005 # Variables whose values should be saved in libtool wrapper scripts and
22006 # restored at link time.
22007 variables_saved_for_relink=$lt_variables_saved_for_relink
22008
22009 # Do we need the "lib" prefix for modules?
22010 need_lib_prefix=$need_lib_prefix
22011
22012 # Do we need a version for libraries?
22013 need_version=$need_version
22014
22015 # Library versioning type.
22016 version_type=$version_type
22017
22018 # Shared library runtime path variable.
22019 runpath_var=$runpath_var
22020
22021 # Shared library path variable.
22022 shlibpath_var=$shlibpath_var
22023
22024 # Is shlibpath searched before the hard-coded library search path?
22025 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
22026
22027 # Format of library name prefix.
22028 libname_spec=$lt_libname_spec
22029
22030 # List of archive names. First name is the real one, the rest are links.
22031 # The last name is the one that the linker finds with -lNAME
22032 library_names_spec=$lt_library_names_spec
22033
22034 # The coded name of the library, if different from the real name.
22035 soname_spec=$lt_soname_spec
22036
22037 # Permission mode override for installation of shared libraries.
22038 install_override_mode=$lt_install_override_mode
22039
22040 # Command to use after installation of a shared archive.
22041 postinstall_cmds=$lt_postinstall_cmds
22042
22043 # Command to use after uninstallation of a shared archive.
22044 postuninstall_cmds=$lt_postuninstall_cmds
22045
22046 # Commands used to finish a libtool library installation in a directory.
22047 finish_cmds=$lt_finish_cmds
22048
22049 # As "finish_cmds", except a single script fragment to be evaled but
22050 # not shown.
22051 finish_eval=$lt_finish_eval
22052
22053 # Whether we should hardcode library paths into libraries.
22054 hardcode_into_libs=$hardcode_into_libs
22055
22056 # Compile-time system search path for libraries.
22057 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
22058
22059 # Detected run-time system search path for libraries.
22060 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
22061
22062 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
22063 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
22064
22065 # Whether dlopen is supported.
22066 dlopen_support=$enable_dlopen
22067
22068 # Whether dlopen of programs is supported.
22069 dlopen_self=$enable_dlopen_self
22070
22071 # Whether dlopen of statically linked programs is supported.
22072 dlopen_self_static=$enable_dlopen_self_static
22073
22074 # Commands to strip libraries.
22075 old_striplib=$lt_old_striplib
22076 striplib=$lt_striplib
22077
22078
22079 # The linker used to build libraries.
22080 LD=$lt_LD
22081
22082 # How to create reloadable object files.
22083 reload_flag=$lt_reload_flag
22084 reload_cmds=$lt_reload_cmds
22085
22086 # Commands used to build an old-style archive.
22087 old_archive_cmds=$lt_old_archive_cmds
22088
22089 # A language specific compiler.
22090 CC=$lt_compiler
22091
22092 # Is the compiler the GNU compiler?
22093 with_gcc=$GCC
22094
22095 # Compiler flag to turn off builtin functions.
22096 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
22097
22098 # Additional compiler flags for building library objects.
22099 pic_flag=$lt_lt_prog_compiler_pic
22100
22101 # How to pass a linker flag through the compiler.
22102 wl=$lt_lt_prog_compiler_wl
22103
22104 # Compiler flag to prevent dynamic linking.
22105 link_static_flag=$lt_lt_prog_compiler_static
22106
22107 # Does compiler simultaneously support -c and -o options?
22108 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
22109
22110 # Whether or not to add -lc for building shared libraries.
22111 build_libtool_need_lc=$archive_cmds_need_lc
22112
22113 # Whether or not to disallow shared libs when runtime libs are static.
22114 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
22115
22116 # Compiler flag to allow reflexive dlopens.
22117 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
22118
22119 # Compiler flag to generate shared objects directly from archives.
22120 whole_archive_flag_spec=$lt_whole_archive_flag_spec
22121
22122 # Whether the compiler copes with passing no objects directly.
22123 compiler_needs_object=$lt_compiler_needs_object
22124
22125 # Create an old-style archive from a shared archive.
22126 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
22127
22128 # Create a temporary old-style archive to link instead of a shared archive.
22129 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
22130
22131 # Commands used to build a shared archive.
22132 archive_cmds=$lt_archive_cmds
22133 archive_expsym_cmds=$lt_archive_expsym_cmds
22134
22135 # Commands used to build a loadable module if different from building
22136 # a shared archive.
22137 module_cmds=$lt_module_cmds
22138 module_expsym_cmds=$lt_module_expsym_cmds
22139
22140 # Whether we are building with GNU ld or not.
22141 with_gnu_ld=$lt_with_gnu_ld
22142
22143 # Flag that allows shared libraries with undefined symbols to be built.
22144 allow_undefined_flag=$lt_allow_undefined_flag
22145
22146 # Flag that enforces no undefined symbols.
22147 no_undefined_flag=$lt_no_undefined_flag
22148
22149 # Flag to hardcode \$libdir into a binary during linking.
22150 # This must work even if \$libdir does not exist
22151 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
22152
22153 # Whether we need a single "-rpath" flag with a separated argument.
22154 hardcode_libdir_separator=$lt_hardcode_libdir_separator
22155
22156 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
22157 # DIR into the resulting binary.
22158 hardcode_direct=$hardcode_direct
22159
22160 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
22161 # DIR into the resulting binary and the resulting library dependency is
22162 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
22163 # library is relocated.
22164 hardcode_direct_absolute=$hardcode_direct_absolute
22165
22166 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22167 # into the resulting binary.
22168 hardcode_minus_L=$hardcode_minus_L
22169
22170 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22171 # into the resulting binary.
22172 hardcode_shlibpath_var=$hardcode_shlibpath_var
22173
22174 # Set to "yes" if building a shared library automatically hardcodes DIR
22175 # into the library and all subsequent libraries and executables linked
22176 # against it.
22177 hardcode_automatic=$hardcode_automatic
22178
22179 # Set to yes if linker adds runtime paths of dependent libraries
22180 # to runtime path list.
22181 inherit_rpath=$inherit_rpath
22182
22183 # Whether libtool must link a program against all its dependency libraries.
22184 link_all_deplibs=$link_all_deplibs
22185
22186 # Set to "yes" if exported symbols are required.
22187 always_export_symbols=$always_export_symbols
22188
22189 # The commands to list exported symbols.
22190 export_symbols_cmds=$lt_export_symbols_cmds
22191
22192 # Symbols that should not be listed in the preloaded symbols.
22193 exclude_expsyms=$lt_exclude_expsyms
22194
22195 # Symbols that must always be exported.
22196 include_expsyms=$lt_include_expsyms
22197
22198 # Commands necessary for linking programs (against libraries) with templates.
22199 prelink_cmds=$lt_prelink_cmds
22200
22201 # Commands necessary for finishing linking programs.
22202 postlink_cmds=$lt_postlink_cmds
22203
22204 # Specify filename containing input files.
22205 file_list_spec=$lt_file_list_spec
22206
22207 # How to hardcode a shared library path into an executable.
22208 hardcode_action=$hardcode_action
22209
22210 # ### END LIBTOOL CONFIG
22211
22212 _LT_EOF
22213
22214 cat <<'_LT_EOF' >> "$cfgfile"
22215
22216 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
22217
22218 # func_munge_path_list VARIABLE PATH
22219 # -----------------------------------
22220 # VARIABLE is name of variable containing _space_ separated list of
22221 # directories to be munged by the contents of PATH, which is string
22222 # having a format:
22223 # "DIR[:DIR]:"
22224 # string "DIR[ DIR]" will be prepended to VARIABLE
22225 # ":DIR[:DIR]"
22226 # string "DIR[ DIR]" will be appended to VARIABLE
22227 # "DIRP[:DIRP]::[DIRA:]DIRA"
22228 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
22229 # "DIRA[ DIRA]" will be appended to VARIABLE
22230 # "DIR[:DIR]"
22231 # VARIABLE will be replaced by "DIR[ DIR]"
22232 func_munge_path_list ()
22233 {
22234 case x$2 in
22235 x)
22236 ;;
22237 *:)
22238 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
22239 ;;
22240 x:*)
22241 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
22242 ;;
22243 *::*)
22244 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
22245 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
22246 ;;
22247 *)
22248 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
22249 ;;
22250 esac
22251 }
22252
22253
22254 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
22255 func_cc_basename ()
22256 {
22257 for cc_temp in $*""; do
22258 case $cc_temp in
22259 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
22260 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
22261 \-*) ;;
22262 *) break;;
22263 esac
22264 done
22265 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
22266 }
22267
22268
22269 # ### END FUNCTIONS SHARED WITH CONFIGURE
22270
22271 _LT_EOF
22272
22273 case $host_os in
22274 aix3*)
22275 cat <<\_LT_EOF >> "$cfgfile"
22276 # AIX sometimes has problems with the GCC collect2 program. For some
22277 # reason, if we set the COLLECT_NAMES environment variable, the problems
22278 # vanish in a puff of smoke.
22279 if test set != "${COLLECT_NAMES+set}"; then
22280 COLLECT_NAMES=
22281 export COLLECT_NAMES
22282 fi
22283 _LT_EOF
22284 ;;
22285 esac
22286
22287
22288
22289 ltmain=$ac_aux_dir/ltmain.sh
22290
22291
22292 # We use sed instead of cat because bash on DJGPP gets confused if
22293 # if finds mixed CR/LF and LF-only lines. Since sed operates in
22294 # text mode, it properly converts lines to CR/LF. This bash problem
22295 # is reportedly fixed, but why not run on old versions too?
22296 $SED '$q' "$ltmain" >> "$cfgfile" \
22297 || (rm -f "$cfgfile"; exit 1)
22298
22299 mv -f "$cfgfile" "$ofile" ||
22300 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
22301 chmod +x "$ofile"
22302
22303 ;;
22304
22305 esac
22306 done # for ac_tag
22307
22308
22309 as_fn_exit 0
22310 _ACEOF
22311 ac_clean_files=$ac_clean_files_save
22312
22313 test $ac_write_fail = 0 ||
22314 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
22315
22316
22317 # configure is writing to config.log, and then calls config.status.
22318 # config.status does its own redirection, appending to config.log.
22319 # Unfortunately, on DOS this fails, as config.log is still kept open
22320 # by configure, so config.status won't be able to write to it; its
22321 # output is simply discarded. So we exec the FD to /dev/null,
22322 # effectively closing config.log, so it can be properly (re)opened and
22323 # appended to by config.status. When coming back to configure, we
22324 # need to make the FD available again.
22325 if test "$no_create" != yes; then
22326 ac_cs_success=:
22327 ac_config_status_args=
22328 test "$silent" = yes &&
22329 ac_config_status_args="$ac_config_status_args --quiet"
22330 exec 5>/dev/null
22331 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22332 exec 5>>config.log
22333 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22334 # would make configure fail if this is the last instruction.
22335 $ac_cs_success || as_fn_exit 1
22336 fi
22337 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
22338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
22339 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
22340 fi
22341
22342
22343