configure revision 1.1.1.9 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.71 for xf86-video-r128 6.12.1.
4 #
5 # Report bugs to <https://gitlab.freedesktop.org/xorg/driver/xf86-video-r128/-/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-r128/-/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-r128'
624 PACKAGE_TARNAME='xf86-video-r128'
625 PACKAGE_VERSION='6.12.1'
626 PACKAGE_STRING='xf86-video-r128 6.12.1'
627 PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/driver/xf86-video-r128/-/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 USE_EXA_FALSE
674 USE_EXA_TRUE
675 XAA_FALSE
676 XAA_TRUE
677 CPP
678 DRI_LIBS
679 DRI_CFLAGS
680 DRI_FALSE
681 DRI_TRUE
682 HAVE_XEXTPROTO_71_FALSE
683 HAVE_XEXTPROTO_71_TRUE
684 XEXT_LIBS
685 XEXT_CFLAGS
686 XORG_LIBS
687 XORG_CFLAGS
688 LT_SYS_LIBRARY_PATH
689 OTOOL64
690 OTOOL
691 LIPO
692 NMEDIT
693 DSYMUTIL
694 MANIFEST_TOOL
695 RANLIB
696 ac_ct_AR
697 AR
698 DLLTOOL
699 OBJDUMP
700 FILECMD
701 LN_S
702 NM
703 ac_ct_DUMPBIN
704 DUMPBIN
705 LD
706 FGREP
707 EGREP
708 GREP
709 LIBTOOL
710 MAN_SUBSTS
711 XORG_MAN_PAGE
712 ADMIN_MAN_DIR
713 DRIVER_MAN_DIR
714 MISC_MAN_DIR
715 FILE_MAN_DIR
716 LIB_MAN_DIR
717 APP_MAN_DIR
718 ADMIN_MAN_SUFFIX
719 DRIVER_MAN_SUFFIX
720 MISC_MAN_SUFFIX
721 FILE_MAN_SUFFIX
722 LIB_MAN_SUFFIX
723 APP_MAN_SUFFIX
724 SED
725 host_os
726 host_vendor
727 host_cpu
728 host
729 build_os
730 build_vendor
731 build_cpu
732 build
733 INSTALL_CMD
734 PKG_CONFIG_LIBDIR
735 PKG_CONFIG_PATH
736 PKG_CONFIG
737 CHANGELOG_CMD
738 STRICT_CFLAGS
739 CWARNFLAGS
740 BASE_CFLAGS
741 am__fastdepCC_FALSE
742 am__fastdepCC_TRUE
743 CCDEPMODE
744 am__nodep
745 AMDEPBACKSLASH
746 AMDEP_FALSE
747 AMDEP_TRUE
748 am__include
749 DEPDIR
750 OBJEXT
751 EXEEXT
752 ac_ct_CC
753 CPPFLAGS
754 LDFLAGS
755 CFLAGS
756 CC
757 AM_BACKSLASH
758 AM_DEFAULT_VERBOSITY
759 AM_DEFAULT_V
760 AM_V
761 CSCOPE
762 ETAGS
763 CTAGS
764 am__untar
765 am__tar
766 AMTAR
767 am__leading_dot
768 SET_MAKE
769 AWK
770 mkdir_p
771 MKDIR_P
772 INSTALL_STRIP_PROGRAM
773 STRIP
774 install_sh
775 MAKEINFO
776 AUTOHEADER
777 AUTOMAKE
778 AUTOCONF
779 ACLOCAL
780 VERSION
781 PACKAGE
782 CYGPATH_W
783 am__isrc
784 INSTALL_DATA
785 INSTALL_SCRIPT
786 INSTALL_PROGRAM
787 target_alias
788 host_alias
789 build_alias
790 LIBS
791 ECHO_T
792 ECHO_N
793 ECHO_C
794 DEFS
795 mandir
796 localedir
797 libdir
798 psdir
799 pdfdir
800 dvidir
801 htmldir
802 infodir
803 docdir
804 oldincludedir
805 includedir
806 runstatedir
807 localstatedir
808 sharedstatedir
809 sysconfdir
810 datadir
811 datarootdir
812 libexecdir
813 sbindir
814 bindir
815 program_transform_name
816 prefix
817 exec_prefix
818 PACKAGE_URL
819 PACKAGE_BUGREPORT
820 PACKAGE_STRING
821 PACKAGE_VERSION
822 PACKAGE_TARNAME
823 PACKAGE_NAME
824 PATH_SEPARATOR
825 SHELL
826 am__quote'
827 ac_subst_files=''
828 ac_user_opts='
829 enable_option_checking
830 enable_silent_rules
831 enable_dependency_tracking
832 enable_selective_werror
833 enable_strict_compilation
834 enable_static
835 enable_shared
836 with_pic
837 enable_fast_install
838 with_aix_soname
839 with_gnu_ld
840 with_sysroot
841 enable_libtool_lock
842 with_xorg_module_dir
843 enable_dri
844 enable_exa
845 enable_xaa
846 '
847 ac_precious_vars='build_alias
848 host_alias
849 target_alias
850 CC
851 CFLAGS
852 LDFLAGS
853 LIBS
854 CPPFLAGS
855 PKG_CONFIG
856 PKG_CONFIG_PATH
857 PKG_CONFIG_LIBDIR
858 LT_SYS_LIBRARY_PATH
859 XORG_CFLAGS
860 XORG_LIBS
861 XEXT_CFLAGS
862 XEXT_LIBS
863 DRI_CFLAGS
864 DRI_LIBS
865 CPP
866 PCIACCESS_CFLAGS
867 PCIACCESS_LIBS'
868
869
870 # Initialize some variables set by options.
871 ac_init_help=
872 ac_init_version=false
873 ac_unrecognized_opts=
874 ac_unrecognized_sep=
875 # The variables have the same names as the options, with
876 # dashes changed to underlines.
877 cache_file=/dev/null
878 exec_prefix=NONE
879 no_create=
880 no_recursion=
881 prefix=NONE
882 program_prefix=NONE
883 program_suffix=NONE
884 program_transform_name=s,x,x,
885 silent=
886 site=
887 srcdir=
888 verbose=
889 x_includes=NONE
890 x_libraries=NONE
891
892 # Installation directory options.
893 # These are left unexpanded so users can "make install exec_prefix=/foo"
894 # and all the variables that are supposed to be based on exec_prefix
895 # by default will actually change.
896 # Use braces instead of parens because sh, perl, etc. also accept them.
897 # (The list follows the same order as the GNU Coding Standards.)
898 bindir='${exec_prefix}/bin'
899 sbindir='${exec_prefix}/sbin'
900 libexecdir='${exec_prefix}/libexec'
901 datarootdir='${prefix}/share'
902 datadir='${datarootdir}'
903 sysconfdir='${prefix}/etc'
904 sharedstatedir='${prefix}/com'
905 localstatedir='${prefix}/var'
906 runstatedir='${localstatedir}/run'
907 includedir='${prefix}/include'
908 oldincludedir='/usr/include'
909 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
910 infodir='${datarootdir}/info'
911 htmldir='${docdir}'
912 dvidir='${docdir}'
913 pdfdir='${docdir}'
914 psdir='${docdir}'
915 libdir='${exec_prefix}/lib'
916 localedir='${datarootdir}/locale'
917 mandir='${datarootdir}/man'
918
919 ac_prev=
920 ac_dashdash=
921 for ac_option
922 do
923 # If the previous option needs an argument, assign it.
924 if test -n "$ac_prev"; then
925 eval $ac_prev=\$ac_option
926 ac_prev=
927 continue
928 fi
929
930 case $ac_option in
931 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
932 *=) ac_optarg= ;;
933 *) ac_optarg=yes ;;
934 esac
935
936 case $ac_dashdash$ac_option in
937 --)
938 ac_dashdash=yes ;;
939
940 -bindir | --bindir | --bindi | --bind | --bin | --bi)
941 ac_prev=bindir ;;
942 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
943 bindir=$ac_optarg ;;
944
945 -build | --build | --buil | --bui | --bu)
946 ac_prev=build_alias ;;
947 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
948 build_alias=$ac_optarg ;;
949
950 -cache-file | --cache-file | --cache-fil | --cache-fi \
951 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
952 ac_prev=cache_file ;;
953 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
954 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
955 cache_file=$ac_optarg ;;
956
957 --config-cache | -C)
958 cache_file=config.cache ;;
959
960 -datadir | --datadir | --datadi | --datad)
961 ac_prev=datadir ;;
962 -datadir=* | --datadir=* | --datadi=* | --datad=*)
963 datadir=$ac_optarg ;;
964
965 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
966 | --dataroo | --dataro | --datar)
967 ac_prev=datarootdir ;;
968 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
969 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
970 datarootdir=$ac_optarg ;;
971
972 -disable-* | --disable-*)
973 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
974 # Reject names that are not valid shell variable names.
975 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
976 as_fn_error $? "invalid feature name: \`$ac_useropt'"
977 ac_useropt_orig=$ac_useropt
978 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
979 case $ac_user_opts in
980 *"
981 "enable_$ac_useropt"
982 "*) ;;
983 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
984 ac_unrecognized_sep=', ';;
985 esac
986 eval enable_$ac_useropt=no ;;
987
988 -docdir | --docdir | --docdi | --doc | --do)
989 ac_prev=docdir ;;
990 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
991 docdir=$ac_optarg ;;
992
993 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
994 ac_prev=dvidir ;;
995 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
996 dvidir=$ac_optarg ;;
997
998 -enable-* | --enable-*)
999 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1000 # Reject names that are not valid shell variable names.
1001 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1002 as_fn_error $? "invalid feature name: \`$ac_useropt'"
1003 ac_useropt_orig=$ac_useropt
1004 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1005 case $ac_user_opts in
1006 *"
1007 "enable_$ac_useropt"
1008 "*) ;;
1009 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1010 ac_unrecognized_sep=', ';;
1011 esac
1012 eval enable_$ac_useropt=\$ac_optarg ;;
1013
1014 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1015 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1016 | --exec | --exe | --ex)
1017 ac_prev=exec_prefix ;;
1018 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1019 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1020 | --exec=* | --exe=* | --ex=*)
1021 exec_prefix=$ac_optarg ;;
1022
1023 -gas | --gas | --ga | --g)
1024 # Obsolete; use --with-gas.
1025 with_gas=yes ;;
1026
1027 -help | --help | --hel | --he | -h)
1028 ac_init_help=long ;;
1029 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1030 ac_init_help=recursive ;;
1031 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1032 ac_init_help=short ;;
1033
1034 -host | --host | --hos | --ho)
1035 ac_prev=host_alias ;;
1036 -host=* | --host=* | --hos=* | --ho=*)
1037 host_alias=$ac_optarg ;;
1038
1039 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1040 ac_prev=htmldir ;;
1041 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1042 | --ht=*)
1043 htmldir=$ac_optarg ;;
1044
1045 -includedir | --includedir | --includedi | --included | --include \
1046 | --includ | --inclu | --incl | --inc)
1047 ac_prev=includedir ;;
1048 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1049 | --includ=* | --inclu=* | --incl=* | --inc=*)
1050 includedir=$ac_optarg ;;
1051
1052 -infodir | --infodir | --infodi | --infod | --info | --inf)
1053 ac_prev=infodir ;;
1054 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1055 infodir=$ac_optarg ;;
1056
1057 -libdir | --libdir | --libdi | --libd)
1058 ac_prev=libdir ;;
1059 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1060 libdir=$ac_optarg ;;
1061
1062 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1063 | --libexe | --libex | --libe)
1064 ac_prev=libexecdir ;;
1065 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1066 | --libexe=* | --libex=* | --libe=*)
1067 libexecdir=$ac_optarg ;;
1068
1069 -localedir | --localedir | --localedi | --localed | --locale)
1070 ac_prev=localedir ;;
1071 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1072 localedir=$ac_optarg ;;
1073
1074 -localstatedir | --localstatedir | --localstatedi | --localstated \
1075 | --localstate | --localstat | --localsta | --localst | --locals)
1076 ac_prev=localstatedir ;;
1077 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1078 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1079 localstatedir=$ac_optarg ;;
1080
1081 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1082 ac_prev=mandir ;;
1083 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1084 mandir=$ac_optarg ;;
1085
1086 -nfp | --nfp | --nf)
1087 # Obsolete; use --without-fp.
1088 with_fp=no ;;
1089
1090 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1091 | --no-cr | --no-c | -n)
1092 no_create=yes ;;
1093
1094 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1095 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1096 no_recursion=yes ;;
1097
1098 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1099 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1100 | --oldin | --oldi | --old | --ol | --o)
1101 ac_prev=oldincludedir ;;
1102 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1103 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1104 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1105 oldincludedir=$ac_optarg ;;
1106
1107 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1108 ac_prev=prefix ;;
1109 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1110 prefix=$ac_optarg ;;
1111
1112 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1113 | --program-pre | --program-pr | --program-p)
1114 ac_prev=program_prefix ;;
1115 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1116 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1117 program_prefix=$ac_optarg ;;
1118
1119 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1120 | --program-suf | --program-su | --program-s)
1121 ac_prev=program_suffix ;;
1122 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1123 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1124 program_suffix=$ac_optarg ;;
1125
1126 -program-transform-name | --program-transform-name \
1127 | --program-transform-nam | --program-transform-na \
1128 | --program-transform-n | --program-transform- \
1129 | --program-transform | --program-transfor \
1130 | --program-transfo | --program-transf \
1131 | --program-trans | --program-tran \
1132 | --progr-tra | --program-tr | --program-t)
1133 ac_prev=program_transform_name ;;
1134 -program-transform-name=* | --program-transform-name=* \
1135 | --program-transform-nam=* | --program-transform-na=* \
1136 | --program-transform-n=* | --program-transform-=* \
1137 | --program-transform=* | --program-transfor=* \
1138 | --program-transfo=* | --program-transf=* \
1139 | --program-trans=* | --program-tran=* \
1140 | --progr-tra=* | --program-tr=* | --program-t=*)
1141 program_transform_name=$ac_optarg ;;
1142
1143 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1144 ac_prev=pdfdir ;;
1145 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1146 pdfdir=$ac_optarg ;;
1147
1148 -psdir | --psdir | --psdi | --psd | --ps)
1149 ac_prev=psdir ;;
1150 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1151 psdir=$ac_optarg ;;
1152
1153 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1154 | -silent | --silent | --silen | --sile | --sil)
1155 silent=yes ;;
1156
1157 -runstatedir | --runstatedir | --runstatedi | --runstated \
1158 | --runstate | --runstat | --runsta | --runst | --runs \
1159 | --run | --ru | --r)
1160 ac_prev=runstatedir ;;
1161 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1162 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1163 | --run=* | --ru=* | --r=*)
1164 runstatedir=$ac_optarg ;;
1165
1166 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1167 ac_prev=sbindir ;;
1168 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1169 | --sbi=* | --sb=*)
1170 sbindir=$ac_optarg ;;
1171
1172 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1173 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1174 | --sharedst | --shareds | --shared | --share | --shar \
1175 | --sha | --sh)
1176 ac_prev=sharedstatedir ;;
1177 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1178 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1179 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1180 | --sha=* | --sh=*)
1181 sharedstatedir=$ac_optarg ;;
1182
1183 -site | --site | --sit)
1184 ac_prev=site ;;
1185 -site=* | --site=* | --sit=*)
1186 site=$ac_optarg ;;
1187
1188 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1189 ac_prev=srcdir ;;
1190 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1191 srcdir=$ac_optarg ;;
1192
1193 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1194 | --syscon | --sysco | --sysc | --sys | --sy)
1195 ac_prev=sysconfdir ;;
1196 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1197 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1198 sysconfdir=$ac_optarg ;;
1199
1200 -target | --target | --targe | --targ | --tar | --ta | --t)
1201 ac_prev=target_alias ;;
1202 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1203 target_alias=$ac_optarg ;;
1204
1205 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1206 verbose=yes ;;
1207
1208 -version | --version | --versio | --versi | --vers | -V)
1209 ac_init_version=: ;;
1210
1211 -with-* | --with-*)
1212 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1213 # Reject names that are not valid shell variable names.
1214 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1215 as_fn_error $? "invalid package name: \`$ac_useropt'"
1216 ac_useropt_orig=$ac_useropt
1217 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1218 case $ac_user_opts in
1219 *"
1220 "with_$ac_useropt"
1221 "*) ;;
1222 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1223 ac_unrecognized_sep=', ';;
1224 esac
1225 eval with_$ac_useropt=\$ac_optarg ;;
1226
1227 -without-* | --without-*)
1228 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1229 # Reject names that are not valid shell variable names.
1230 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1231 as_fn_error $? "invalid package name: \`$ac_useropt'"
1232 ac_useropt_orig=$ac_useropt
1233 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1234 case $ac_user_opts in
1235 *"
1236 "with_$ac_useropt"
1237 "*) ;;
1238 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1239 ac_unrecognized_sep=', ';;
1240 esac
1241 eval with_$ac_useropt=no ;;
1242
1243 --x)
1244 # Obsolete; use --with-x.
1245 with_x=yes ;;
1246
1247 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1248 | --x-incl | --x-inc | --x-in | --x-i)
1249 ac_prev=x_includes ;;
1250 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1251 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1252 x_includes=$ac_optarg ;;
1253
1254 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1255 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1256 ac_prev=x_libraries ;;
1257 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1258 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1259 x_libraries=$ac_optarg ;;
1260
1261 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1262 Try \`$0 --help' for more information"
1263 ;;
1264
1265 *=*)
1266 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1267 # Reject names that are not valid shell variable names.
1268 case $ac_envvar in #(
1269 '' | [0-9]* | *[!_$as_cr_alnum]* )
1270 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1271 esac
1272 eval $ac_envvar=\$ac_optarg
1273 export $ac_envvar ;;
1274
1275 *)
1276 # FIXME: should be removed in autoconf 3.0.
1277 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1278 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1279 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1280 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1281 ;;
1282
1283 esac
1284 done
1285
1286 if test -n "$ac_prev"; then
1287 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1288 as_fn_error $? "missing argument to $ac_option"
1289 fi
1290
1291 if test -n "$ac_unrecognized_opts"; then
1292 case $enable_option_checking in
1293 no) ;;
1294 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1295 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1296 esac
1297 fi
1298
1299 # Check all directory arguments for consistency.
1300 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1301 datadir sysconfdir sharedstatedir localstatedir includedir \
1302 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1303 libdir localedir mandir runstatedir
1304 do
1305 eval ac_val=\$$ac_var
1306 # Remove trailing slashes.
1307 case $ac_val in
1308 */ )
1309 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1310 eval $ac_var=\$ac_val;;
1311 esac
1312 # Be sure to have absolute directory names.
1313 case $ac_val in
1314 [\\/$]* | ?:[\\/]* ) continue;;
1315 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1316 esac
1317 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1318 done
1319
1320 # There might be people who depend on the old broken behavior: `$host'
1321 # used to hold the argument of --host etc.
1322 # FIXME: To remove some day.
1323 build=$build_alias
1324 host=$host_alias
1325 target=$target_alias
1326
1327 # FIXME: To remove some day.
1328 if test "x$host_alias" != x; then
1329 if test "x$build_alias" = x; then
1330 cross_compiling=maybe
1331 elif test "x$build_alias" != "x$host_alias"; then
1332 cross_compiling=yes
1333 fi
1334 fi
1335
1336 ac_tool_prefix=
1337 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1338
1339 test "$silent" = yes && exec 6>/dev/null
1340
1341
1342 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1343 ac_ls_di=`ls -di .` &&
1344 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1345 as_fn_error $? "working directory cannot be determined"
1346 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1347 as_fn_error $? "pwd does not report name of working directory"
1348
1349
1350 # Find the source files, if location was not specified.
1351 if test -z "$srcdir"; then
1352 ac_srcdir_defaulted=yes
1353 # Try the directory containing this script, then the parent directory.
1354 ac_confdir=`$as_dirname -- "$as_myself" ||
1355 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1356 X"$as_myself" : 'X\(//\)[^/]' \| \
1357 X"$as_myself" : 'X\(//\)$' \| \
1358 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1359 printf "%s\n" X"$as_myself" |
1360 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1361 s//\1/
1362 q
1363 }
1364 /^X\(\/\/\)[^/].*/{
1365 s//\1/
1366 q
1367 }
1368 /^X\(\/\/\)$/{
1369 s//\1/
1370 q
1371 }
1372 /^X\(\/\).*/{
1373 s//\1/
1374 q
1375 }
1376 s/.*/./; q'`
1377 srcdir=$ac_confdir
1378 if test ! -r "$srcdir/$ac_unique_file"; then
1379 srcdir=..
1380 fi
1381 else
1382 ac_srcdir_defaulted=no
1383 fi
1384 if test ! -r "$srcdir/$ac_unique_file"; then
1385 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1386 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1387 fi
1388 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1389 ac_abs_confdir=`(
1390 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1391 pwd)`
1392 # When building in place, set srcdir=.
1393 if test "$ac_abs_confdir" = "$ac_pwd"; then
1394 srcdir=.
1395 fi
1396 # Remove unnecessary trailing slashes from srcdir.
1397 # Double slashes in file names in object file debugging info
1398 # mess up M-x gdb in Emacs.
1399 case $srcdir in
1400 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1401 esac
1402 for ac_var in $ac_precious_vars; do
1403 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1404 eval ac_env_${ac_var}_value=\$${ac_var}
1405 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1406 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1407 done
1408
1409 #
1410 # Report the --help message.
1411 #
1412 if test "$ac_init_help" = "long"; then
1413 # Omit some internal or obsolete options to make the list less imposing.
1414 # This message is too long to be a string in the A/UX 3.1 sh.
1415 cat <<_ACEOF
1416 \`configure' configures xf86-video-r128 6.12.1 to adapt to many kinds of systems.
1417
1418 Usage: $0 [OPTION]... [VAR=VALUE]...
1419
1420 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1421 VAR=VALUE. See below for descriptions of some of the useful variables.
1422
1423 Defaults for the options are specified in brackets.
1424
1425 Configuration:
1426 -h, --help display this help and exit
1427 --help=short display options specific to this package
1428 --help=recursive display the short help of all the included packages
1429 -V, --version display version information and exit
1430 -q, --quiet, --silent do not print \`checking ...' messages
1431 --cache-file=FILE cache test results in FILE [disabled]
1432 -C, --config-cache alias for \`--cache-file=config.cache'
1433 -n, --no-create do not create output files
1434 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1435
1436 Installation directories:
1437 --prefix=PREFIX install architecture-independent files in PREFIX
1438 [$ac_default_prefix]
1439 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1440 [PREFIX]
1441
1442 By default, \`make install' will install all the files in
1443 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1444 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1445 for instance \`--prefix=\$HOME'.
1446
1447 For better control, use the options below.
1448
1449 Fine tuning of the installation directories:
1450 --bindir=DIR user executables [EPREFIX/bin]
1451 --sbindir=DIR system admin executables [EPREFIX/sbin]
1452 --libexecdir=DIR program executables [EPREFIX/libexec]
1453 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1454 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1455 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1456 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1457 --libdir=DIR object code libraries [EPREFIX/lib]
1458 --includedir=DIR C header files [PREFIX/include]
1459 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1460 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1461 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1462 --infodir=DIR info documentation [DATAROOTDIR/info]
1463 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1464 --mandir=DIR man documentation [DATAROOTDIR/man]
1465 --docdir=DIR documentation root [DATAROOTDIR/doc/xf86-video-r128]
1466 --htmldir=DIR html documentation [DOCDIR]
1467 --dvidir=DIR dvi documentation [DOCDIR]
1468 --pdfdir=DIR pdf documentation [DOCDIR]
1469 --psdir=DIR ps documentation [DOCDIR]
1470 _ACEOF
1471
1472 cat <<\_ACEOF
1473
1474 Program names:
1475 --program-prefix=PREFIX prepend PREFIX to installed program names
1476 --program-suffix=SUFFIX append SUFFIX to installed program names
1477 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1478
1479 System types:
1480 --build=BUILD configure for building on BUILD [guessed]
1481 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1482 _ACEOF
1483 fi
1484
1485 if test -n "$ac_init_help"; then
1486 case $ac_init_help in
1487 short | recursive ) echo "Configuration of xf86-video-r128 6.12.1:";;
1488 esac
1489 cat <<\_ACEOF
1490
1491 Optional Features:
1492 --disable-option-checking ignore unrecognized --enable/--with options
1493 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1494 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1495 --enable-silent-rules less verbose build output (undo: "make V=1")
1496 --disable-silent-rules verbose build output (undo: "make V=0")
1497 --enable-dependency-tracking
1498 do not reject slow dependency extractors
1499 --disable-dependency-tracking
1500 speeds up one-time build
1501 --disable-selective-werror
1502 Turn off selective compiler errors. (default:
1503 enabled)
1504 --enable-strict-compilation
1505 Enable all warnings from compiler and make them
1506 errors (default: disabled)
1507 --enable-static[=PKGS] build static libraries [default=no]
1508 --enable-shared[=PKGS] build shared libraries [default=yes]
1509 --enable-fast-install[=PKGS]
1510 optimize for fast installation [default=yes]
1511 --disable-libtool-lock avoid locking (might break parallel builds)
1512 --disable-dri Disable DRI support [[default=auto]]
1513 --disable-exa Disable EXA support [[default=enabled]]
1514 --enable-xaa Enable legacy X Acceleration Architecture (XAA)
1515 [default=auto]
1516
1517 Optional Packages:
1518 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1519 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1520 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1521 both]
1522 --with-aix-soname=aix|svr4|both
1523 shared library versioning (aka "SONAME") variant to
1524 provide on AIX, [default=aix].
1525 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1526 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1527 compiler's sysroot if not specified).
1528 --with-xorg-module-dir=DIR
1529 Default xorg module directory
1530 [[default=$libdir/xorg/modules]]
1531
1532 Some influential environment variables:
1533 CC C compiler command
1534 CFLAGS C compiler flags
1535 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1536 nonstandard directory <lib dir>
1537 LIBS libraries to pass to the linker, e.g. -l<library>
1538 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1539 you have headers in a nonstandard directory <include dir>
1540 PKG_CONFIG path to pkg-config utility
1541 PKG_CONFIG_PATH
1542 directories to add to pkg-config's search path
1543 PKG_CONFIG_LIBDIR
1544 path overriding pkg-config's built-in search path
1545 LT_SYS_LIBRARY_PATH
1546 User-defined run-time library search path.
1547 XORG_CFLAGS C compiler flags for XORG, overriding pkg-config
1548 XORG_LIBS linker flags for XORG, overriding pkg-config
1549 XEXT_CFLAGS C compiler flags for XEXT, overriding pkg-config
1550 XEXT_LIBS linker flags for XEXT, overriding pkg-config
1551 DRI_CFLAGS C compiler flags for DRI, overriding pkg-config
1552 DRI_LIBS linker flags for DRI, overriding pkg-config
1553 CPP C preprocessor
1554 PCIACCESS_CFLAGS
1555 C compiler flags for PCIACCESS, overriding pkg-config
1556 PCIACCESS_LIBS
1557 linker flags for PCIACCESS, overriding pkg-config
1558
1559 Use these variables to override the choices made by `configure' or to help
1560 it to find libraries and programs with nonstandard names/locations.
1561
1562 Report bugs to <https://gitlab.freedesktop.org/xorg/driver/xf86-video-r128/-/issues>.
1563 _ACEOF
1564 ac_status=$?
1565 fi
1566
1567 if test "$ac_init_help" = "recursive"; then
1568 # If there are subdirs, report their specific --help.
1569 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1570 test -d "$ac_dir" ||
1571 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1572 continue
1573 ac_builddir=.
1574
1575 case "$ac_dir" in
1576 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1577 *)
1578 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1579 # A ".." for each directory in $ac_dir_suffix.
1580 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1581 case $ac_top_builddir_sub in
1582 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1583 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1584 esac ;;
1585 esac
1586 ac_abs_top_builddir=$ac_pwd
1587 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1588 # for backward compatibility:
1589 ac_top_builddir=$ac_top_build_prefix
1590
1591 case $srcdir in
1592 .) # We are building in place.
1593 ac_srcdir=.
1594 ac_top_srcdir=$ac_top_builddir_sub
1595 ac_abs_top_srcdir=$ac_pwd ;;
1596 [\\/]* | ?:[\\/]* ) # Absolute name.
1597 ac_srcdir=$srcdir$ac_dir_suffix;
1598 ac_top_srcdir=$srcdir
1599 ac_abs_top_srcdir=$srcdir ;;
1600 *) # Relative name.
1601 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1602 ac_top_srcdir=$ac_top_build_prefix$srcdir
1603 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1604 esac
1605 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1606
1607 cd "$ac_dir" || { ac_status=$?; continue; }
1608 # Check for configure.gnu first; this name is used for a wrapper for
1609 # Metaconfig's "Configure" on case-insensitive file systems.
1610 if test -f "$ac_srcdir/configure.gnu"; then
1611 echo &&
1612 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1613 elif test -f "$ac_srcdir/configure"; then
1614 echo &&
1615 $SHELL "$ac_srcdir/configure" --help=recursive
1616 else
1617 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1618 fi || ac_status=$?
1619 cd "$ac_pwd" || { ac_status=$?; break; }
1620 done
1621 fi
1622
1623 test -n "$ac_init_help" && exit $ac_status
1624 if $ac_init_version; then
1625 cat <<\_ACEOF
1626 xf86-video-r128 configure 6.12.1
1627 generated by GNU Autoconf 2.71
1628
1629 Copyright (C) 2021 Free Software Foundation, Inc.
1630 This configure script is free software; the Free Software Foundation
1631 gives unlimited permission to copy, distribute and modify it.
1632 _ACEOF
1633 exit
1634 fi
1635
1636 ## ------------------------ ##
1637 ## Autoconf initialization. ##
1638 ## ------------------------ ##
1639
1640 # ac_fn_c_try_compile LINENO
1641 # --------------------------
1642 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1643 ac_fn_c_try_compile ()
1644 {
1645 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1646 rm -f conftest.$ac_objext conftest.beam
1647 if { { ac_try="$ac_compile"
1648 case "(($ac_try" in
1649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1650 *) ac_try_echo=$ac_try;;
1651 esac
1652 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1653 printf "%s\n" "$ac_try_echo"; } >&5
1654 (eval "$ac_compile") 2>conftest.err
1655 ac_status=$?
1656 if test -s conftest.err; then
1657 grep -v '^ *+' conftest.err >conftest.er1
1658 cat conftest.er1 >&5
1659 mv -f conftest.er1 conftest.err
1660 fi
1661 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1662 test $ac_status = 0; } && {
1663 test -z "$ac_c_werror_flag" ||
1664 test ! -s conftest.err
1665 } && test -s conftest.$ac_objext
1666 then :
1667 ac_retval=0
1668 else $as_nop
1669 printf "%s\n" "$as_me: failed program was:" >&5
1670 sed 's/^/| /' conftest.$ac_ext >&5
1671
1672 ac_retval=1
1673 fi
1674 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1675 as_fn_set_status $ac_retval
1676
1677 } # ac_fn_c_try_compile
1678
1679 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
1680 # ------------------------------------------------------------------
1681 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1682 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
1683 ac_fn_check_decl ()
1684 {
1685 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1686 as_decl_name=`echo $2|sed 's/ *(.*//'`
1687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1688 printf %s "checking whether $as_decl_name is declared... " >&6; }
1689 if eval test \${$3+y}
1690 then :
1691 printf %s "(cached) " >&6
1692 else $as_nop
1693 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1694 eval ac_save_FLAGS=\$$6
1695 as_fn_append $6 " $5"
1696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1697 /* end confdefs.h. */
1698 $4
1699 int
1700 main (void)
1701 {
1702 #ifndef $as_decl_name
1703 #ifdef __cplusplus
1704 (void) $as_decl_use;
1705 #else
1706 (void) $as_decl_name;
1707 #endif
1708 #endif
1709
1710 ;
1711 return 0;
1712 }
1713 _ACEOF
1714 if ac_fn_c_try_compile "$LINENO"
1715 then :
1716 eval "$3=yes"
1717 else $as_nop
1718 eval "$3=no"
1719 fi
1720 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1721 eval $6=\$ac_save_FLAGS
1722
1723 fi
1724 eval ac_res=\$$3
1725 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1726 printf "%s\n" "$ac_res" >&6; }
1727 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1728
1729 } # ac_fn_check_decl
1730
1731 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1732 # -------------------------------------------------------
1733 # Tests whether HEADER exists and can be compiled using the include files in
1734 # INCLUDES, setting the cache variable VAR accordingly.
1735 ac_fn_c_check_header_compile ()
1736 {
1737 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1739 printf %s "checking for $2... " >&6; }
1740 if eval test \${$3+y}
1741 then :
1742 printf %s "(cached) " >&6
1743 else $as_nop
1744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1745 /* end confdefs.h. */
1746 $4
1747 #include <$2>
1748 _ACEOF
1749 if ac_fn_c_try_compile "$LINENO"
1750 then :
1751 eval "$3=yes"
1752 else $as_nop
1753 eval "$3=no"
1754 fi
1755 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1756 fi
1757 eval ac_res=\$$3
1758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1759 printf "%s\n" "$ac_res" >&6; }
1760 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1761
1762 } # ac_fn_c_check_header_compile
1763
1764 # ac_fn_c_try_link LINENO
1765 # -----------------------
1766 # Try to link conftest.$ac_ext, and return whether this succeeded.
1767 ac_fn_c_try_link ()
1768 {
1769 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1770 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1771 if { { ac_try="$ac_link"
1772 case "(($ac_try" in
1773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1774 *) ac_try_echo=$ac_try;;
1775 esac
1776 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1777 printf "%s\n" "$ac_try_echo"; } >&5
1778 (eval "$ac_link") 2>conftest.err
1779 ac_status=$?
1780 if test -s conftest.err; then
1781 grep -v '^ *+' conftest.err >conftest.er1
1782 cat conftest.er1 >&5
1783 mv -f conftest.er1 conftest.err
1784 fi
1785 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1786 test $ac_status = 0; } && {
1787 test -z "$ac_c_werror_flag" ||
1788 test ! -s conftest.err
1789 } && test -s conftest$ac_exeext && {
1790 test "$cross_compiling" = yes ||
1791 test -x conftest$ac_exeext
1792 }
1793 then :
1794 ac_retval=0
1795 else $as_nop
1796 printf "%s\n" "$as_me: failed program was:" >&5
1797 sed 's/^/| /' conftest.$ac_ext >&5
1798
1799 ac_retval=1
1800 fi
1801 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1802 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1803 # interfere with the next link command; also delete a directory that is
1804 # left behind by Apple's compiler. We do this before executing the actions.
1805 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1806 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1807 as_fn_set_status $ac_retval
1808
1809 } # ac_fn_c_try_link
1810
1811 # ac_fn_c_check_func LINENO FUNC VAR
1812 # ----------------------------------
1813 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1814 ac_fn_c_check_func ()
1815 {
1816 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1818 printf %s "checking for $2... " >&6; }
1819 if eval test \${$3+y}
1820 then :
1821 printf %s "(cached) " >&6
1822 else $as_nop
1823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1824 /* end confdefs.h. */
1825 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1826 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1827 #define $2 innocuous_$2
1828
1829 /* System header to define __stub macros and hopefully few prototypes,
1830 which can conflict with char $2 (); below. */
1831
1832 #include <limits.h>
1833 #undef $2
1834
1835 /* Override any GCC internal prototype to avoid an error.
1836 Use char because int might match the return type of a GCC
1837 builtin and then its argument prototype would still apply. */
1838 #ifdef __cplusplus
1839 extern "C"
1840 #endif
1841 char $2 ();
1842 /* The GNU C library defines this for functions which it implements
1843 to always fail with ENOSYS. Some functions are actually named
1844 something starting with __ and the normal name is an alias. */
1845 #if defined __stub_$2 || defined __stub___$2
1846 choke me
1847 #endif
1848
1849 int
1850 main (void)
1851 {
1852 return $2 ();
1853 ;
1854 return 0;
1855 }
1856 _ACEOF
1857 if ac_fn_c_try_link "$LINENO"
1858 then :
1859 eval "$3=yes"
1860 else $as_nop
1861 eval "$3=no"
1862 fi
1863 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1864 conftest$ac_exeext conftest.$ac_ext
1865 fi
1866 eval ac_res=\$$3
1867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1868 printf "%s\n" "$ac_res" >&6; }
1869 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1870
1871 } # ac_fn_c_check_func
1872
1873 # ac_fn_c_try_cpp LINENO
1874 # ----------------------
1875 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1876 ac_fn_c_try_cpp ()
1877 {
1878 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1879 if { { ac_try="$ac_cpp conftest.$ac_ext"
1880 case "(($ac_try" in
1881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1882 *) ac_try_echo=$ac_try;;
1883 esac
1884 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1885 printf "%s\n" "$ac_try_echo"; } >&5
1886 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1887 ac_status=$?
1888 if test -s conftest.err; then
1889 grep -v '^ *+' conftest.err >conftest.er1
1890 cat conftest.er1 >&5
1891 mv -f conftest.er1 conftest.err
1892 fi
1893 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1894 test $ac_status = 0; } > conftest.i && {
1895 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1896 test ! -s conftest.err
1897 }
1898 then :
1899 ac_retval=0
1900 else $as_nop
1901 printf "%s\n" "$as_me: failed program was:" >&5
1902 sed 's/^/| /' conftest.$ac_ext >&5
1903
1904 ac_retval=1
1905 fi
1906 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1907 as_fn_set_status $ac_retval
1908
1909 } # ac_fn_c_try_cpp
1910 ac_configure_args_raw=
1911 for ac_arg
1912 do
1913 case $ac_arg in
1914 *\'*)
1915 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1916 esac
1917 as_fn_append ac_configure_args_raw " '$ac_arg'"
1918 done
1919
1920 case $ac_configure_args_raw in
1921 *$as_nl*)
1922 ac_safe_unquote= ;;
1923 *)
1924 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
1925 ac_unsafe_a="$ac_unsafe_z#~"
1926 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1927 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1928 esac
1929
1930 cat >config.log <<_ACEOF
1931 This file contains any messages produced by compilers while
1932 running configure, to aid debugging if configure makes a mistake.
1933
1934 It was created by xf86-video-r128 $as_me 6.12.1, which was
1935 generated by GNU Autoconf 2.71. Invocation command line was
1936
1937 $ $0$ac_configure_args_raw
1938
1939 _ACEOF
1940 exec 5>>config.log
1941 {
1942 cat <<_ASUNAME
1943 ## --------- ##
1944 ## Platform. ##
1945 ## --------- ##
1946
1947 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1948 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1949 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1950 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1951 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1952
1953 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1954 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1955
1956 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1957 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1958 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1959 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1960 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1961 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1962 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1963
1964 _ASUNAME
1965
1966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1967 for as_dir in $PATH
1968 do
1969 IFS=$as_save_IFS
1970 case $as_dir in #(((
1971 '') as_dir=./ ;;
1972 */) ;;
1973 *) as_dir=$as_dir/ ;;
1974 esac
1975 printf "%s\n" "PATH: $as_dir"
1976 done
1977 IFS=$as_save_IFS
1978
1979 } >&5
1980
1981 cat >&5 <<_ACEOF
1982
1983
1984 ## ----------- ##
1985 ## Core tests. ##
1986 ## ----------- ##
1987
1988 _ACEOF
1989
1990
1991 # Keep a trace of the command line.
1992 # Strip out --no-create and --no-recursion so they do not pile up.
1993 # Strip out --silent because we don't want to record it for future runs.
1994 # Also quote any args containing shell meta-characters.
1995 # Make two passes to allow for proper duplicate-argument suppression.
1996 ac_configure_args=
1997 ac_configure_args0=
1998 ac_configure_args1=
1999 ac_must_keep_next=false
2000 for ac_pass in 1 2
2001 do
2002 for ac_arg
2003 do
2004 case $ac_arg in
2005 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2006 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2007 | -silent | --silent | --silen | --sile | --sil)
2008 continue ;;
2009 *\'*)
2010 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2011 esac
2012 case $ac_pass in
2013 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2014 2)
2015 as_fn_append ac_configure_args1 " '$ac_arg'"
2016 if test $ac_must_keep_next = true; then
2017 ac_must_keep_next=false # Got value, back to normal.
2018 else
2019 case $ac_arg in
2020 *=* | --config-cache | -C | -disable-* | --disable-* \
2021 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2022 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2023 | -with-* | --with-* | -without-* | --without-* | --x)
2024 case "$ac_configure_args0 " in
2025 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2026 esac
2027 ;;
2028 -* ) ac_must_keep_next=true ;;
2029 esac
2030 fi
2031 as_fn_append ac_configure_args " '$ac_arg'"
2032 ;;
2033 esac
2034 done
2035 done
2036 { ac_configure_args0=; unset ac_configure_args0;}
2037 { ac_configure_args1=; unset ac_configure_args1;}
2038
2039 # When interrupted or exit'd, cleanup temporary files, and complete
2040 # config.log. We remove comments because anyway the quotes in there
2041 # would cause problems or look ugly.
2042 # WARNING: Use '\'' to represent an apostrophe within the trap.
2043 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2044 trap 'exit_status=$?
2045 # Sanitize IFS.
2046 IFS=" "" $as_nl"
2047 # Save into config.log some information that might help in debugging.
2048 {
2049 echo
2050
2051 printf "%s\n" "## ---------------- ##
2052 ## Cache variables. ##
2053 ## ---------------- ##"
2054 echo
2055 # The following way of writing the cache mishandles newlines in values,
2056 (
2057 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2058 eval ac_val=\$$ac_var
2059 case $ac_val in #(
2060 *${as_nl}*)
2061 case $ac_var in #(
2062 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2063 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2064 esac
2065 case $ac_var in #(
2066 _ | IFS | as_nl) ;; #(
2067 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2068 *) { eval $ac_var=; unset $ac_var;} ;;
2069 esac ;;
2070 esac
2071 done
2072 (set) 2>&1 |
2073 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2074 *${as_nl}ac_space=\ *)
2075 sed -n \
2076 "s/'\''/'\''\\\\'\'''\''/g;
2077 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2078 ;; #(
2079 *)
2080 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2081 ;;
2082 esac |
2083 sort
2084 )
2085 echo
2086
2087 printf "%s\n" "## ----------------- ##
2088 ## Output variables. ##
2089 ## ----------------- ##"
2090 echo
2091 for ac_var in $ac_subst_vars
2092 do
2093 eval ac_val=\$$ac_var
2094 case $ac_val in
2095 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2096 esac
2097 printf "%s\n" "$ac_var='\''$ac_val'\''"
2098 done | sort
2099 echo
2100
2101 if test -n "$ac_subst_files"; then
2102 printf "%s\n" "## ------------------- ##
2103 ## File substitutions. ##
2104 ## ------------------- ##"
2105 echo
2106 for ac_var in $ac_subst_files
2107 do
2108 eval ac_val=\$$ac_var
2109 case $ac_val in
2110 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2111 esac
2112 printf "%s\n" "$ac_var='\''$ac_val'\''"
2113 done | sort
2114 echo
2115 fi
2116
2117 if test -s confdefs.h; then
2118 printf "%s\n" "## ----------- ##
2119 ## confdefs.h. ##
2120 ## ----------- ##"
2121 echo
2122 cat confdefs.h
2123 echo
2124 fi
2125 test "$ac_signal" != 0 &&
2126 printf "%s\n" "$as_me: caught signal $ac_signal"
2127 printf "%s\n" "$as_me: exit $exit_status"
2128 } >&5
2129 rm -f core *.core core.conftest.* &&
2130 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2131 exit $exit_status
2132 ' 0
2133 for ac_signal in 1 2 13 15; do
2134 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2135 done
2136 ac_signal=0
2137
2138 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2139 rm -f -r conftest* confdefs.h
2140
2141 printf "%s\n" "/* confdefs.h */" > confdefs.h
2142
2143 # Predefined preprocessor variables.
2144
2145 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2146
2147 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2148
2149 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2150
2151 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2152
2153 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2154
2155 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2156
2157
2158 # Let the site file select an alternate cache file if it wants to.
2159 # Prefer an explicitly selected file to automatically selected ones.
2160 if test -n "$CONFIG_SITE"; then
2161 ac_site_files="$CONFIG_SITE"
2162 elif test "x$prefix" != xNONE; then
2163 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2164 else
2165 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2166 fi
2167
2168 for ac_site_file in $ac_site_files
2169 do
2170 case $ac_site_file in #(
2171 */*) :
2172 ;; #(
2173 *) :
2174 ac_site_file=./$ac_site_file ;;
2175 esac
2176 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2178 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2179 sed 's/^/| /' "$ac_site_file" >&5
2180 . "$ac_site_file" \
2181 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2182 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2183 as_fn_error $? "failed to load site script $ac_site_file
2184 See \`config.log' for more details" "$LINENO" 5; }
2185 fi
2186 done
2187
2188 if test -r "$cache_file"; then
2189 # Some versions of bash will fail to source /dev/null (special files
2190 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2191 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2193 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2194 case $cache_file in
2195 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2196 *) . "./$cache_file";;
2197 esac
2198 fi
2199 else
2200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2201 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2202 >$cache_file
2203 fi
2204
2205 # Test code for whether the C compiler supports C89 (global declarations)
2206 ac_c_conftest_c89_globals='
2207 /* Does the compiler advertise C89 conformance?
2208 Do not test the value of __STDC__, because some compilers set it to 0
2209 while being otherwise adequately conformant. */
2210 #if !defined __STDC__
2211 # error "Compiler does not advertise C89 conformance"
2212 #endif
2213
2214 #include <stddef.h>
2215 #include <stdarg.h>
2216 struct stat;
2217 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2218 struct buf { int x; };
2219 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2220 static char *e (p, i)
2221 char **p;
2222 int i;
2223 {
2224 return p[i];
2225 }
2226 static char *f (char * (*g) (char **, int), char **p, ...)
2227 {
2228 char *s;
2229 va_list v;
2230 va_start (v,p);
2231 s = g (p, va_arg (v,int));
2232 va_end (v);
2233 return s;
2234 }
2235
2236 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2237 function prototypes and stuff, but not \xHH hex character constants.
2238 These do not provoke an error unfortunately, instead are silently treated
2239 as an "x". The following induces an error, until -std is added to get
2240 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2241 array size at least. It is necessary to write \x00 == 0 to get something
2242 that is true only with -std. */
2243 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2244
2245 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2246 inside strings and character constants. */
2247 #define FOO(x) '\''x'\''
2248 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2249
2250 int test (int i, double x);
2251 struct s1 {int (*f) (int a);};
2252 struct s2 {int (*f) (double a);};
2253 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2254 int, int);'
2255
2256 # Test code for whether the C compiler supports C89 (body of main).
2257 ac_c_conftest_c89_main='
2258 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2259 '
2260
2261 # Test code for whether the C compiler supports C99 (global declarations)
2262 ac_c_conftest_c99_globals='
2263 // Does the compiler advertise C99 conformance?
2264 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2265 # error "Compiler does not advertise C99 conformance"
2266 #endif
2267
2268 #include <stdbool.h>
2269 extern int puts (const char *);
2270 extern int printf (const char *, ...);
2271 extern int dprintf (int, const char *, ...);
2272 extern void *malloc (size_t);
2273
2274 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2275 // dprintf is used instead of fprintf to avoid needing to declare
2276 // FILE and stderr.
2277 #define debug(...) dprintf (2, __VA_ARGS__)
2278 #define showlist(...) puts (#__VA_ARGS__)
2279 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2280 static void
2281 test_varargs_macros (void)
2282 {
2283 int x = 1234;
2284 int y = 5678;
2285 debug ("Flag");
2286 debug ("X = %d\n", x);
2287 showlist (The first, second, and third items.);
2288 report (x>y, "x is %d but y is %d", x, y);
2289 }
2290
2291 // Check long long types.
2292 #define BIG64 18446744073709551615ull
2293 #define BIG32 4294967295ul
2294 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2295 #if !BIG_OK
2296 #error "your preprocessor is broken"
2297 #endif
2298 #if BIG_OK
2299 #else
2300 #error "your preprocessor is broken"
2301 #endif
2302 static long long int bignum = -9223372036854775807LL;
2303 static unsigned long long int ubignum = BIG64;
2304
2305 struct incomplete_array
2306 {
2307 int datasize;
2308 double data[];
2309 };
2310
2311 struct named_init {
2312 int number;
2313 const wchar_t *name;
2314 double average;
2315 };
2316
2317 typedef const char *ccp;
2318
2319 static inline int
2320 test_restrict (ccp restrict text)
2321 {
2322 // See if C++-style comments work.
2323 // Iterate through items via the restricted pointer.
2324 // Also check for declarations in for loops.
2325 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2326 continue;
2327 return 0;
2328 }
2329
2330 // Check varargs and va_copy.
2331 static bool
2332 test_varargs (const char *format, ...)
2333 {
2334 va_list args;
2335 va_start (args, format);
2336 va_list args_copy;
2337 va_copy (args_copy, args);
2338
2339 const char *str = "";
2340 int number = 0;
2341 float fnumber = 0;
2342
2343 while (*format)
2344 {
2345 switch (*format++)
2346 {
2347 case '\''s'\'': // string
2348 str = va_arg (args_copy, const char *);
2349 break;
2350 case '\''d'\'': // int
2351 number = va_arg (args_copy, int);
2352 break;
2353 case '\''f'\'': // float
2354 fnumber = va_arg (args_copy, double);
2355 break;
2356 default:
2357 break;
2358 }
2359 }
2360 va_end (args_copy);
2361 va_end (args);
2362
2363 return *str && number && fnumber;
2364 }
2365 '
2366
2367 # Test code for whether the C compiler supports C99 (body of main).
2368 ac_c_conftest_c99_main='
2369 // Check bool.
2370 _Bool success = false;
2371 success |= (argc != 0);
2372
2373 // Check restrict.
2374 if (test_restrict ("String literal") == 0)
2375 success = true;
2376 char *restrict newvar = "Another string";
2377
2378 // Check varargs.
2379 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2380 test_varargs_macros ();
2381
2382 // Check flexible array members.
2383 struct incomplete_array *ia =
2384 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2385 ia->datasize = 10;
2386 for (int i = 0; i < ia->datasize; ++i)
2387 ia->data[i] = i * 1.234;
2388
2389 // Check named initializers.
2390 struct named_init ni = {
2391 .number = 34,
2392 .name = L"Test wide string",
2393 .average = 543.34343,
2394 };
2395
2396 ni.number = 58;
2397
2398 int dynamic_array[ni.number];
2399 dynamic_array[0] = argv[0][0];
2400 dynamic_array[ni.number - 1] = 543;
2401
2402 // work around unused variable warnings
2403 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2404 || dynamic_array[ni.number - 1] != 543);
2405 '
2406
2407 # Test code for whether the C compiler supports C11 (global declarations)
2408 ac_c_conftest_c11_globals='
2409 // Does the compiler advertise C11 conformance?
2410 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2411 # error "Compiler does not advertise C11 conformance"
2412 #endif
2413
2414 // Check _Alignas.
2415 char _Alignas (double) aligned_as_double;
2416 char _Alignas (0) no_special_alignment;
2417 extern char aligned_as_int;
2418 char _Alignas (0) _Alignas (int) aligned_as_int;
2419
2420 // Check _Alignof.
2421 enum
2422 {
2423 int_alignment = _Alignof (int),
2424 int_array_alignment = _Alignof (int[100]),
2425 char_alignment = _Alignof (char)
2426 };
2427 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2428
2429 // Check _Noreturn.
2430 int _Noreturn does_not_return (void) { for (;;) continue; }
2431
2432 // Check _Static_assert.
2433 struct test_static_assert
2434 {
2435 int x;
2436 _Static_assert (sizeof (int) <= sizeof (long int),
2437 "_Static_assert does not work in struct");
2438 long int y;
2439 };
2440
2441 // Check UTF-8 literals.
2442 #define u8 syntax error!
2443 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2444
2445 // Check duplicate typedefs.
2446 typedef long *long_ptr;
2447 typedef long int *long_ptr;
2448 typedef long_ptr long_ptr;
2449
2450 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2451 struct anonymous
2452 {
2453 union {
2454 struct { int i; int j; };
2455 struct { int k; long int l; } w;
2456 };
2457 int m;
2458 } v1;
2459 '
2460
2461 # Test code for whether the C compiler supports C11 (body of main).
2462 ac_c_conftest_c11_main='
2463 _Static_assert ((offsetof (struct anonymous, i)
2464 == offsetof (struct anonymous, w.k)),
2465 "Anonymous union alignment botch");
2466 v1.i = 2;
2467 v1.w.k = 5;
2468 ok |= v1.i != 5;
2469 '
2470
2471 # Test code for whether the C compiler supports C11 (complete).
2472 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2473 ${ac_c_conftest_c99_globals}
2474 ${ac_c_conftest_c11_globals}
2475
2476 int
2477 main (int argc, char **argv)
2478 {
2479 int ok = 0;
2480 ${ac_c_conftest_c89_main}
2481 ${ac_c_conftest_c99_main}
2482 ${ac_c_conftest_c11_main}
2483 return ok;
2484 }
2485 "
2486
2487 # Test code for whether the C compiler supports C99 (complete).
2488 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2489 ${ac_c_conftest_c99_globals}
2490
2491 int
2492 main (int argc, char **argv)
2493 {
2494 int ok = 0;
2495 ${ac_c_conftest_c89_main}
2496 ${ac_c_conftest_c99_main}
2497 return ok;
2498 }
2499 "
2500
2501 # Test code for whether the C compiler supports C89 (complete).
2502 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2503
2504 int
2505 main (int argc, char **argv)
2506 {
2507 int ok = 0;
2508 ${ac_c_conftest_c89_main}
2509 return ok;
2510 }
2511 "
2512
2513 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2514 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2515 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2516 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2517 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2518 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2519 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2520 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2521 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2522
2523 # Auxiliary files required by this configure script.
2524 ac_aux_files="ltmain.sh config.guess config.sub compile missing install-sh"
2525
2526 # Locations in which to look for auxiliary files.
2527 ac_aux_dir_candidates="${srcdir}/."
2528
2529 # Search for a directory containing all of the required auxiliary files,
2530 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2531 # If we don't find one directory that contains all the files we need,
2532 # we report the set of missing files from the *first* directory in
2533 # $ac_aux_dir_candidates and give up.
2534 ac_missing_aux_files=""
2535 ac_first_candidate=:
2536 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2538 as_found=false
2539 for as_dir in $ac_aux_dir_candidates
2540 do
2541 IFS=$as_save_IFS
2542 case $as_dir in #(((
2543 '') as_dir=./ ;;
2544 */) ;;
2545 *) as_dir=$as_dir/ ;;
2546 esac
2547 as_found=:
2548
2549 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2550 ac_aux_dir_found=yes
2551 ac_install_sh=
2552 for ac_aux in $ac_aux_files
2553 do
2554 # As a special case, if "install-sh" is required, that requirement
2555 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2556 # and $ac_install_sh is set appropriately for whichever one is found.
2557 if test x"$ac_aux" = x"install-sh"
2558 then
2559 if test -f "${as_dir}install-sh"; then
2560 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2561 ac_install_sh="${as_dir}install-sh -c"
2562 elif test -f "${as_dir}install.sh"; then
2563 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2564 ac_install_sh="${as_dir}install.sh -c"
2565 elif test -f "${as_dir}shtool"; then
2566 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2567 ac_install_sh="${as_dir}shtool install -c"
2568 else
2569 ac_aux_dir_found=no
2570 if $ac_first_candidate; then
2571 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2572 else
2573 break
2574 fi
2575 fi
2576 else
2577 if test -f "${as_dir}${ac_aux}"; then
2578 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2579 else
2580 ac_aux_dir_found=no
2581 if $ac_first_candidate; then
2582 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2583 else
2584 break
2585 fi
2586 fi
2587 fi
2588 done
2589 if test "$ac_aux_dir_found" = yes; then
2590 ac_aux_dir="$as_dir"
2591 break
2592 fi
2593 ac_first_candidate=false
2594
2595 as_found=false
2596 done
2597 IFS=$as_save_IFS
2598 if $as_found
2599 then :
2600
2601 else $as_nop
2602 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2603 fi
2604
2605
2606 # These three variables are undocumented and unsupported,
2607 # and are intended to be withdrawn in a future Autoconf release.
2608 # They can cause serious problems if a builder's source tree is in a directory
2609 # whose full name contains unusual characters.
2610 if test -f "${ac_aux_dir}config.guess"; then
2611 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2612 fi
2613 if test -f "${ac_aux_dir}config.sub"; then
2614 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2615 fi
2616 if test -f "$ac_aux_dir/configure"; then
2617 ac_configure="$SHELL ${ac_aux_dir}configure"
2618 fi
2619
2620 # Check that the precious variables saved in the cache have kept the same
2621 # value.
2622 ac_cache_corrupted=false
2623 for ac_var in $ac_precious_vars; do
2624 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2625 eval ac_new_set=\$ac_env_${ac_var}_set
2626 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2627 eval ac_new_val=\$ac_env_${ac_var}_value
2628 case $ac_old_set,$ac_new_set in
2629 set,)
2630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2631 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2632 ac_cache_corrupted=: ;;
2633 ,set)
2634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2635 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2636 ac_cache_corrupted=: ;;
2637 ,);;
2638 *)
2639 if test "x$ac_old_val" != "x$ac_new_val"; then
2640 # differences in whitespace do not lead to failure.
2641 ac_old_val_w=`echo x $ac_old_val`
2642 ac_new_val_w=`echo x $ac_new_val`
2643 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2645 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2646 ac_cache_corrupted=:
2647 else
2648 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2649 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2650 eval $ac_var=\$ac_old_val
2651 fi
2652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2653 printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
2654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2655 printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
2656 fi;;
2657 esac
2658 # Pass precious variables to config.status.
2659 if test "$ac_new_set" = set; then
2660 case $ac_new_val in
2661 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2662 *) ac_arg=$ac_var=$ac_new_val ;;
2663 esac
2664 case " $ac_configure_args " in
2665 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2666 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2667 esac
2668 fi
2669 done
2670 if $ac_cache_corrupted; then
2671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2672 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2674 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2675 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2676 and start over" "$LINENO" 5
2677 fi
2678 ## -------------------- ##
2679 ## Main body of script. ##
2680 ## -------------------- ##
2681
2682 ac_ext=c
2683 ac_cpp='$CPP $CPPFLAGS'
2684 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2685 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2686 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2687
2688
2689
2690 ac_config_headers="$ac_config_headers config.h"
2691
2692
2693
2694 # Initialize Automake
2695 am__api_version='1.16'
2696
2697
2698
2699 # Find a good install program. We prefer a C program (faster),
2700 # so one script is as good as another. But avoid the broken or
2701 # incompatible versions:
2702 # SysV /etc/install, /usr/sbin/install
2703 # SunOS /usr/etc/install
2704 # IRIX /sbin/install
2705 # AIX /bin/install
2706 # AmigaOS /C/install, which installs bootblocks on floppy discs
2707 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2708 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2709 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2710 # OS/2's system install, which has a completely different semantic
2711 # ./install, which can be erroneously created by make from ./install.sh.
2712 # Reject install programs that cannot install multiple files.
2713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2714 printf %s "checking for a BSD-compatible install... " >&6; }
2715 if test -z "$INSTALL"; then
2716 if test ${ac_cv_path_install+y}
2717 then :
2718 printf %s "(cached) " >&6
2719 else $as_nop
2720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2721 for as_dir in $PATH
2722 do
2723 IFS=$as_save_IFS
2724 case $as_dir in #(((
2725 '') as_dir=./ ;;
2726 */) ;;
2727 *) as_dir=$as_dir/ ;;
2728 esac
2729 # Account for fact that we put trailing slashes in our PATH walk.
2730 case $as_dir in #((
2731 ./ | /[cC]/* | \
2732 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2733 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2734 /usr/ucb/* ) ;;
2735 *)
2736 # OSF1 and SCO ODT 3.0 have their own names for install.
2737 # Don't use installbsd from OSF since it installs stuff as root
2738 # by default.
2739 for ac_prog in ginstall scoinst install; do
2740 for ac_exec_ext in '' $ac_executable_extensions; do
2741 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
2742 if test $ac_prog = install &&
2743 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2744 # AIX install. It has an incompatible calling convention.
2745 :
2746 elif test $ac_prog = install &&
2747 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2748 # program-specific install script used by HP pwplus--don't use.
2749 :
2750 else
2751 rm -rf conftest.one conftest.two conftest.dir
2752 echo one > conftest.one
2753 echo two > conftest.two
2754 mkdir conftest.dir
2755 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
2756 test -s conftest.one && test -s conftest.two &&
2757 test -s conftest.dir/conftest.one &&
2758 test -s conftest.dir/conftest.two
2759 then
2760 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
2761 break 3
2762 fi
2763 fi
2764 fi
2765 done
2766 done
2767 ;;
2768 esac
2769
2770 done
2771 IFS=$as_save_IFS
2772
2773 rm -rf conftest.one conftest.two conftest.dir
2774
2775 fi
2776 if test ${ac_cv_path_install+y}; then
2777 INSTALL=$ac_cv_path_install
2778 else
2779 # As a last resort, use the slow shell script. Don't cache a
2780 # value for INSTALL within a source directory, because that will
2781 # break other packages using the cache if that directory is
2782 # removed, or if the value is a relative name.
2783 INSTALL=$ac_install_sh
2784 fi
2785 fi
2786 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2787 printf "%s\n" "$INSTALL" >&6; }
2788
2789 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2790 # It thinks the first close brace ends the variable substitution.
2791 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2792
2793 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2794
2795 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2796
2797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2798 printf %s "checking whether build environment is sane... " >&6; }
2799 # Reject unsafe characters in $srcdir or the absolute working directory
2800 # name. Accept space and tab only in the latter.
2801 am_lf='
2802 '
2803 case `pwd` in
2804 *[\\\"\#\$\&\'\`$am_lf]*)
2805 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2806 esac
2807 case $srcdir in
2808 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2809 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2810 esac
2811
2812 # Do 'set' in a subshell so we don't clobber the current shell's
2813 # arguments. Must try -L first in case configure is actually a
2814 # symlink; some systems play weird games with the mod time of symlinks
2815 # (eg FreeBSD returns the mod time of the symlink's containing
2816 # directory).
2817 if (
2818 am_has_slept=no
2819 for am_try in 1 2; do
2820 echo "timestamp, slept: $am_has_slept" > conftest.file
2821 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2822 if test "$*" = "X"; then
2823 # -L didn't work.
2824 set X `ls -t "$srcdir/configure" conftest.file`
2825 fi
2826 if test "$*" != "X $srcdir/configure conftest.file" \
2827 && test "$*" != "X conftest.file $srcdir/configure"; then
2828
2829 # If neither matched, then we have a broken ls. This can happen
2830 # if, for instance, CONFIG_SHELL is bash and it inherits a
2831 # broken ls alias from the environment. This has actually
2832 # happened. Such a system could not be considered "sane".
2833 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2834 alias in your environment" "$LINENO" 5
2835 fi
2836 if test "$2" = conftest.file || test $am_try -eq 2; then
2837 break
2838 fi
2839 # Just in case.
2840 sleep 1
2841 am_has_slept=yes
2842 done
2843 test "$2" = conftest.file
2844 )
2845 then
2846 # Ok.
2847 :
2848 else
2849 as_fn_error $? "newly created file is older than distributed files!
2850 Check your system clock" "$LINENO" 5
2851 fi
2852 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2853 printf "%s\n" "yes" >&6; }
2854 # If we didn't sleep, we still need to ensure time stamps of config.status and
2855 # generated files are strictly newer.
2856 am_sleep_pid=
2857 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2858 ( sleep 1 ) &
2859 am_sleep_pid=$!
2860 fi
2861
2862 rm -f conftest.file
2863
2864 test "$program_prefix" != NONE &&
2865 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2866 # Use a double $ so make ignores it.
2867 test "$program_suffix" != NONE &&
2868 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2869 # Double any \ or $.
2870 # By default was `s,x,x', remove it if useless.
2871 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2872 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
2873
2874
2875 # Expand $ac_aux_dir to an absolute path.
2876 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2877
2878
2879 if test x"${MISSING+set}" != xset; then
2880 MISSING="\${SHELL} '$am_aux_dir/missing'"
2881 fi
2882 # Use eval to expand $SHELL
2883 if eval "$MISSING --is-lightweight"; then
2884 am_missing_run="$MISSING "
2885 else
2886 am_missing_run=
2887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2888 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2889 fi
2890
2891 if test x"${install_sh+set}" != xset; then
2892 case $am_aux_dir in
2893 *\ * | *\ *)
2894 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2895 *)
2896 install_sh="\${SHELL} $am_aux_dir/install-sh"
2897 esac
2898 fi
2899
2900 # Installed binaries are usually stripped using 'strip' when the user
2901 # run "make install-strip". However 'strip' might not be the right
2902 # tool to use in cross-compilation environments, therefore Automake
2903 # will honor the 'STRIP' environment variable to overrule this program.
2904 if test "$cross_compiling" != no; then
2905 if test -n "$ac_tool_prefix"; then
2906 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2907 set dummy ${ac_tool_prefix}strip; ac_word=$2
2908 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2909 printf %s "checking for $ac_word... " >&6; }
2910 if test ${ac_cv_prog_STRIP+y}
2911 then :
2912 printf %s "(cached) " >&6
2913 else $as_nop
2914 if test -n "$STRIP"; then
2915 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2916 else
2917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2918 for as_dir in $PATH
2919 do
2920 IFS=$as_save_IFS
2921 case $as_dir in #(((
2922 '') as_dir=./ ;;
2923 */) ;;
2924 *) as_dir=$as_dir/ ;;
2925 esac
2926 for ac_exec_ext in '' $ac_executable_extensions; do
2927 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2928 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2929 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2930 break 2
2931 fi
2932 done
2933 done
2934 IFS=$as_save_IFS
2935
2936 fi
2937 fi
2938 STRIP=$ac_cv_prog_STRIP
2939 if test -n "$STRIP"; then
2940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2941 printf "%s\n" "$STRIP" >&6; }
2942 else
2943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2944 printf "%s\n" "no" >&6; }
2945 fi
2946
2947
2948 fi
2949 if test -z "$ac_cv_prog_STRIP"; then
2950 ac_ct_STRIP=$STRIP
2951 # Extract the first word of "strip", so it can be a program name with args.
2952 set dummy strip; ac_word=$2
2953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2954 printf %s "checking for $ac_word... " >&6; }
2955 if test ${ac_cv_prog_ac_ct_STRIP+y}
2956 then :
2957 printf %s "(cached) " >&6
2958 else $as_nop
2959 if test -n "$ac_ct_STRIP"; then
2960 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2961 else
2962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2963 for as_dir in $PATH
2964 do
2965 IFS=$as_save_IFS
2966 case $as_dir in #(((
2967 '') as_dir=./ ;;
2968 */) ;;
2969 *) as_dir=$as_dir/ ;;
2970 esac
2971 for ac_exec_ext in '' $ac_executable_extensions; do
2972 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2973 ac_cv_prog_ac_ct_STRIP="strip"
2974 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2975 break 2
2976 fi
2977 done
2978 done
2979 IFS=$as_save_IFS
2980
2981 fi
2982 fi
2983 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2984 if test -n "$ac_ct_STRIP"; then
2985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2986 printf "%s\n" "$ac_ct_STRIP" >&6; }
2987 else
2988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2989 printf "%s\n" "no" >&6; }
2990 fi
2991
2992 if test "x$ac_ct_STRIP" = x; then
2993 STRIP=":"
2994 else
2995 case $cross_compiling:$ac_tool_warned in
2996 yes:)
2997 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2998 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2999 ac_tool_warned=yes ;;
3000 esac
3001 STRIP=$ac_ct_STRIP
3002 fi
3003 else
3004 STRIP="$ac_cv_prog_STRIP"
3005 fi
3006
3007 fi
3008 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3009
3010
3011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
3012 printf %s "checking for a race-free mkdir -p... " >&6; }
3013 if test -z "$MKDIR_P"; then
3014 if test ${ac_cv_path_mkdir+y}
3015 then :
3016 printf %s "(cached) " >&6
3017 else $as_nop
3018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3019 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3020 do
3021 IFS=$as_save_IFS
3022 case $as_dir in #(((
3023 '') as_dir=./ ;;
3024 */) ;;
3025 *) as_dir=$as_dir/ ;;
3026 esac
3027 for ac_prog in mkdir gmkdir; do
3028 for ac_exec_ext in '' $ac_executable_extensions; do
3029 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
3030 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
3031 'mkdir ('*'coreutils) '* | \
3032 'BusyBox '* | \
3033 'mkdir (fileutils) '4.1*)
3034 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
3035 break 3;;
3036 esac
3037 done
3038 done
3039 done
3040 IFS=$as_save_IFS
3041
3042 fi
3043
3044 test -d ./--version && rmdir ./--version
3045 if test ${ac_cv_path_mkdir+y}; then
3046 MKDIR_P="$ac_cv_path_mkdir -p"
3047 else
3048 # As a last resort, use the slow shell script. Don't cache a
3049 # value for MKDIR_P within a source directory, because that will
3050 # break other packages using the cache if that directory is
3051 # removed, or if the value is a relative name.
3052 MKDIR_P="$ac_install_sh -d"
3053 fi
3054 fi
3055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3056 printf "%s\n" "$MKDIR_P" >&6; }
3057
3058 for ac_prog in gawk mawk nawk awk
3059 do
3060 # Extract the first word of "$ac_prog", so it can be a program name with args.
3061 set dummy $ac_prog; ac_word=$2
3062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3063 printf %s "checking for $ac_word... " >&6; }
3064 if test ${ac_cv_prog_AWK+y}
3065 then :
3066 printf %s "(cached) " >&6
3067 else $as_nop
3068 if test -n "$AWK"; then
3069 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3070 else
3071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3072 for as_dir in $PATH
3073 do
3074 IFS=$as_save_IFS
3075 case $as_dir in #(((
3076 '') as_dir=./ ;;
3077 */) ;;
3078 *) as_dir=$as_dir/ ;;
3079 esac
3080 for ac_exec_ext in '' $ac_executable_extensions; do
3081 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3082 ac_cv_prog_AWK="$ac_prog"
3083 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3084 break 2
3085 fi
3086 done
3087 done
3088 IFS=$as_save_IFS
3089
3090 fi
3091 fi
3092 AWK=$ac_cv_prog_AWK
3093 if test -n "$AWK"; then
3094 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3095 printf "%s\n" "$AWK" >&6; }
3096 else
3097 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3098 printf "%s\n" "no" >&6; }
3099 fi
3100
3101
3102 test -n "$AWK" && break
3103 done
3104
3105 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3106 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3107 set x ${MAKE-make}
3108 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3109 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3110 then :
3111 printf %s "(cached) " >&6
3112 else $as_nop
3113 cat >conftest.make <<\_ACEOF
3114 SHELL = /bin/sh
3115 all:
3116 @echo '@@@%%%=$(MAKE)=@@@%%%'
3117 _ACEOF
3118 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3119 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3120 *@@@%%%=?*=@@@%%%*)
3121 eval ac_cv_prog_make_${ac_make}_set=yes;;
3122 *)
3123 eval ac_cv_prog_make_${ac_make}_set=no;;
3124 esac
3125 rm -f conftest.make
3126 fi
3127 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3129 printf "%s\n" "yes" >&6; }
3130 SET_MAKE=
3131 else
3132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3133 printf "%s\n" "no" >&6; }
3134 SET_MAKE="MAKE=${MAKE-make}"
3135 fi
3136
3137 rm -rf .tst 2>/dev/null
3138 mkdir .tst 2>/dev/null
3139 if test -d .tst; then
3140 am__leading_dot=.
3141 else
3142 am__leading_dot=_
3143 fi
3144 rmdir .tst 2>/dev/null
3145
3146 # Check whether --enable-silent-rules was given.
3147 if test ${enable_silent_rules+y}
3148 then :
3149 enableval=$enable_silent_rules;
3150 fi
3151
3152 case $enable_silent_rules in # (((
3153 yes) AM_DEFAULT_VERBOSITY=0;;
3154 no) AM_DEFAULT_VERBOSITY=1;;
3155 *) AM_DEFAULT_VERBOSITY=1;;
3156 esac
3157 am_make=${MAKE-make}
3158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3159 printf %s "checking whether $am_make supports nested variables... " >&6; }
3160 if test ${am_cv_make_support_nested_variables+y}
3161 then :
3162 printf %s "(cached) " >&6
3163 else $as_nop
3164 if printf "%s\n" 'TRUE=$(BAR$(V))
3165 BAR0=false
3166 BAR1=true
3167 V=1
3168 am__doit:
3169 @$(TRUE)
3170 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3171 am_cv_make_support_nested_variables=yes
3172 else
3173 am_cv_make_support_nested_variables=no
3174 fi
3175 fi
3176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3177 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3178 if test $am_cv_make_support_nested_variables = yes; then
3179 AM_V='$(V)'
3180 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3181 else
3182 AM_V=$AM_DEFAULT_VERBOSITY
3183 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3184 fi
3185 AM_BACKSLASH='\'
3186
3187 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3188 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3189 # is not polluted with repeated "-I."
3190 am__isrc=' -I$(srcdir)'
3191 # test to see if srcdir already configured
3192 if test -f $srcdir/config.status; then
3193 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3194 fi
3195 fi
3196
3197 # test whether we have cygpath
3198 if test -z "$CYGPATH_W"; then
3199 if (cygpath --version) >/dev/null 2>/dev/null; then
3200 CYGPATH_W='cygpath -w'
3201 else
3202 CYGPATH_W=echo
3203 fi
3204 fi
3205
3206
3207 # Define the identity of the package.
3208 PACKAGE='xf86-video-r128'
3209 VERSION='6.12.1'
3210
3211
3212 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3213
3214
3215 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3216
3217 # Some tools Automake needs.
3218
3219 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3220
3221
3222 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3223
3224
3225 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3226
3227
3228 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3229
3230
3231 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3232
3233 # For better backward compatibility. To be removed once Automake 1.9.x
3234 # dies out for good. For more background, see:
3235 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3236 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3237 mkdir_p='$(MKDIR_P)'
3238
3239 # We need awk for the "check" target (and possibly the TAP driver). The
3240 # system "awk" is bad on some platforms.
3241 # Always define AMTAR for backward compatibility. Yes, it's still used
3242 # in the wild :-( We should find a proper way to deprecate it ...
3243 AMTAR='$${TAR-tar}'
3244
3245
3246 # We'll loop over all known methods to create a tar archive until one works.
3247 _am_tools='gnutar pax cpio none'
3248
3249 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3250
3251
3252
3253
3254
3255 # Variables for tags utilities; see am/tags.am
3256 if test -z "$CTAGS"; then
3257 CTAGS=ctags
3258 fi
3259
3260 if test -z "$ETAGS"; then
3261 ETAGS=etags
3262 fi
3263
3264 if test -z "$CSCOPE"; then
3265 CSCOPE=cscope
3266 fi
3267
3268
3269
3270 # POSIX will say in a future version that running "rm -f" with no argument
3271 # is OK; and we want to be able to make that assumption in our Makefile
3272 # recipes. So use an aggressive probe to check that the usage we want is
3273 # actually supported "in the wild" to an acceptable degree.
3274 # See automake bug#10828.
3275 # To make any issue more visible, cause the running configure to be aborted
3276 # by default if the 'rm' program in use doesn't match our expectations; the
3277 # user can still override this though.
3278 if rm -f && rm -fr && rm -rf; then : OK; else
3279 cat >&2 <<'END'
3280 Oops!
3281
3282 Your 'rm' program seems unable to run without file operands specified
3283 on the command line, even when the '-f' option is present. This is contrary
3284 to the behaviour of most rm programs out there, and not conforming with
3285 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3286
3287 Please tell bug-automake@gnu.org about your system, including the value
3288 of your $PATH and any error possibly output before this message. This
3289 can help us improve future automake versions.
3290
3291 END
3292 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3293 echo 'Configuration will proceed anyway, since you have set the' >&2
3294 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3295 echo >&2
3296 else
3297 cat >&2 <<'END'
3298 Aborting the configuration process, to ensure you take notice of the issue.
3299
3300 You can download and install GNU coreutils to get an 'rm' implementation
3301 that behaves properly: <https://www.gnu.org/software/coreutils/>.
3302
3303 If you want to complete the configuration process using your problematic
3304 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3305 to "yes", and re-run configure.
3306
3307 END
3308 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3309 fi
3310 fi
3311
3312
3313 # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
3314
3315
3316
3317
3318
3319
3320
3321
3322
3323
3324
3325
3326
3327
3328
3329
3330
3331
3332
3333
3334 DEPDIR="${am__leading_dot}deps"
3335
3336 ac_config_commands="$ac_config_commands depfiles"
3337
3338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3339 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
3340 cat > confinc.mk << 'END'
3341 am__doit:
3342 @echo this is the am__doit target >confinc.out
3343 .PHONY: am__doit
3344 END
3345 am__include="#"
3346 am__quote=
3347 # BSD make does it like this.
3348 echo '.include "confinc.mk" # ignored' > confmf.BSD
3349 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
3350 echo 'include confinc.mk # ignored' > confmf.GNU
3351 _am_result=no
3352 for s in GNU BSD; do
3353 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3354 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3355 ac_status=$?
3356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3357 (exit $ac_status); }
3358 case $?:`cat confinc.out 2>/dev/null` in #(
3359 '0:this is the am__doit target') :
3360 case $s in #(
3361 BSD) :
3362 am__include='.include' am__quote='"' ;; #(
3363 *) :
3364 am__include='include' am__quote='' ;;
3365 esac ;; #(
3366 *) :
3367 ;;
3368 esac
3369 if test "$am__include" != "#"; then
3370 _am_result="yes ($s style)"
3371 break
3372 fi
3373 done
3374 rm -f confinc.* confmf.*
3375 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3376 printf "%s\n" "${_am_result}" >&6; }
3377
3378 # Check whether --enable-dependency-tracking was given.
3379 if test ${enable_dependency_tracking+y}
3380 then :
3381 enableval=$enable_dependency_tracking;
3382 fi
3383
3384 if test "x$enable_dependency_tracking" != xno; then
3385 am_depcomp="$ac_aux_dir/depcomp"
3386 AMDEPBACKSLASH='\'
3387 am__nodep='_no'
3388 fi
3389 if test "x$enable_dependency_tracking" != xno; then
3390 AMDEP_TRUE=
3391 AMDEP_FALSE='#'
3392 else
3393 AMDEP_TRUE='#'
3394 AMDEP_FALSE=
3395 fi
3396
3397
3398 ac_ext=c
3399 ac_cpp='$CPP $CPPFLAGS'
3400 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3401 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3402 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3403 if test -n "$ac_tool_prefix"; then
3404 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3405 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3406 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3407 printf %s "checking for $ac_word... " >&6; }
3408 if test ${ac_cv_prog_CC+y}
3409 then :
3410 printf %s "(cached) " >&6
3411 else $as_nop
3412 if test -n "$CC"; then
3413 ac_cv_prog_CC="$CC" # Let the user override the test.
3414 else
3415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3416 for as_dir in $PATH
3417 do
3418 IFS=$as_save_IFS
3419 case $as_dir in #(((
3420 '') as_dir=./ ;;
3421 */) ;;
3422 *) as_dir=$as_dir/ ;;
3423 esac
3424 for ac_exec_ext in '' $ac_executable_extensions; do
3425 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3426 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3427 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3428 break 2
3429 fi
3430 done
3431 done
3432 IFS=$as_save_IFS
3433
3434 fi
3435 fi
3436 CC=$ac_cv_prog_CC
3437 if test -n "$CC"; then
3438 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3439 printf "%s\n" "$CC" >&6; }
3440 else
3441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3442 printf "%s\n" "no" >&6; }
3443 fi
3444
3445
3446 fi
3447 if test -z "$ac_cv_prog_CC"; then
3448 ac_ct_CC=$CC
3449 # Extract the first word of "gcc", so it can be a program name with args.
3450 set dummy gcc; ac_word=$2
3451 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3452 printf %s "checking for $ac_word... " >&6; }
3453 if test ${ac_cv_prog_ac_ct_CC+y}
3454 then :
3455 printf %s "(cached) " >&6
3456 else $as_nop
3457 if test -n "$ac_ct_CC"; then
3458 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3459 else
3460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3461 for as_dir in $PATH
3462 do
3463 IFS=$as_save_IFS
3464 case $as_dir in #(((
3465 '') as_dir=./ ;;
3466 */) ;;
3467 *) as_dir=$as_dir/ ;;
3468 esac
3469 for ac_exec_ext in '' $ac_executable_extensions; do
3470 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3471 ac_cv_prog_ac_ct_CC="gcc"
3472 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3473 break 2
3474 fi
3475 done
3476 done
3477 IFS=$as_save_IFS
3478
3479 fi
3480 fi
3481 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3482 if test -n "$ac_ct_CC"; then
3483 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3484 printf "%s\n" "$ac_ct_CC" >&6; }
3485 else
3486 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3487 printf "%s\n" "no" >&6; }
3488 fi
3489
3490 if test "x$ac_ct_CC" = x; then
3491 CC=""
3492 else
3493 case $cross_compiling:$ac_tool_warned in
3494 yes:)
3495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3496 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3497 ac_tool_warned=yes ;;
3498 esac
3499 CC=$ac_ct_CC
3500 fi
3501 else
3502 CC="$ac_cv_prog_CC"
3503 fi
3504
3505 if test -z "$CC"; then
3506 if test -n "$ac_tool_prefix"; then
3507 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3508 set dummy ${ac_tool_prefix}cc; ac_word=$2
3509 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3510 printf %s "checking for $ac_word... " >&6; }
3511 if test ${ac_cv_prog_CC+y}
3512 then :
3513 printf %s "(cached) " >&6
3514 else $as_nop
3515 if test -n "$CC"; then
3516 ac_cv_prog_CC="$CC" # Let the user override the test.
3517 else
3518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3519 for as_dir in $PATH
3520 do
3521 IFS=$as_save_IFS
3522 case $as_dir in #(((
3523 '') as_dir=./ ;;
3524 */) ;;
3525 *) as_dir=$as_dir/ ;;
3526 esac
3527 for ac_exec_ext in '' $ac_executable_extensions; do
3528 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3529 ac_cv_prog_CC="${ac_tool_prefix}cc"
3530 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3531 break 2
3532 fi
3533 done
3534 done
3535 IFS=$as_save_IFS
3536
3537 fi
3538 fi
3539 CC=$ac_cv_prog_CC
3540 if test -n "$CC"; then
3541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3542 printf "%s\n" "$CC" >&6; }
3543 else
3544 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3545 printf "%s\n" "no" >&6; }
3546 fi
3547
3548
3549 fi
3550 fi
3551 if test -z "$CC"; then
3552 # Extract the first word of "cc", so it can be a program name with args.
3553 set dummy cc; ac_word=$2
3554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3555 printf %s "checking for $ac_word... " >&6; }
3556 if test ${ac_cv_prog_CC+y}
3557 then :
3558 printf %s "(cached) " >&6
3559 else $as_nop
3560 if test -n "$CC"; then
3561 ac_cv_prog_CC="$CC" # Let the user override the test.
3562 else
3563 ac_prog_rejected=no
3564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3565 for as_dir in $PATH
3566 do
3567 IFS=$as_save_IFS
3568 case $as_dir in #(((
3569 '') as_dir=./ ;;
3570 */) ;;
3571 *) as_dir=$as_dir/ ;;
3572 esac
3573 for ac_exec_ext in '' $ac_executable_extensions; do
3574 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3575 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3576 ac_prog_rejected=yes
3577 continue
3578 fi
3579 ac_cv_prog_CC="cc"
3580 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3581 break 2
3582 fi
3583 done
3584 done
3585 IFS=$as_save_IFS
3586
3587 if test $ac_prog_rejected = yes; then
3588 # We found a bogon in the path, so make sure we never use it.
3589 set dummy $ac_cv_prog_CC
3590 shift
3591 if test $# != 0; then
3592 # We chose a different compiler from the bogus one.
3593 # However, it has the same basename, so the bogon will be chosen
3594 # first if we set CC to just the basename; use the full file name.
3595 shift
3596 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3597 fi
3598 fi
3599 fi
3600 fi
3601 CC=$ac_cv_prog_CC
3602 if test -n "$CC"; then
3603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3604 printf "%s\n" "$CC" >&6; }
3605 else
3606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3607 printf "%s\n" "no" >&6; }
3608 fi
3609
3610
3611 fi
3612 if test -z "$CC"; then
3613 if test -n "$ac_tool_prefix"; then
3614 for ac_prog in cl.exe
3615 do
3616 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3617 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3619 printf %s "checking for $ac_word... " >&6; }
3620 if test ${ac_cv_prog_CC+y}
3621 then :
3622 printf %s "(cached) " >&6
3623 else $as_nop
3624 if test -n "$CC"; then
3625 ac_cv_prog_CC="$CC" # Let the user override the test.
3626 else
3627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3628 for as_dir in $PATH
3629 do
3630 IFS=$as_save_IFS
3631 case $as_dir in #(((
3632 '') as_dir=./ ;;
3633 */) ;;
3634 *) as_dir=$as_dir/ ;;
3635 esac
3636 for ac_exec_ext in '' $ac_executable_extensions; do
3637 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3638 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3639 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3640 break 2
3641 fi
3642 done
3643 done
3644 IFS=$as_save_IFS
3645
3646 fi
3647 fi
3648 CC=$ac_cv_prog_CC
3649 if test -n "$CC"; then
3650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3651 printf "%s\n" "$CC" >&6; }
3652 else
3653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3654 printf "%s\n" "no" >&6; }
3655 fi
3656
3657
3658 test -n "$CC" && break
3659 done
3660 fi
3661 if test -z "$CC"; then
3662 ac_ct_CC=$CC
3663 for ac_prog in cl.exe
3664 do
3665 # Extract the first word of "$ac_prog", so it can be a program name with args.
3666 set dummy $ac_prog; ac_word=$2
3667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3668 printf %s "checking for $ac_word... " >&6; }
3669 if test ${ac_cv_prog_ac_ct_CC+y}
3670 then :
3671 printf %s "(cached) " >&6
3672 else $as_nop
3673 if test -n "$ac_ct_CC"; then
3674 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3675 else
3676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3677 for as_dir in $PATH
3678 do
3679 IFS=$as_save_IFS
3680 case $as_dir in #(((
3681 '') as_dir=./ ;;
3682 */) ;;
3683 *) as_dir=$as_dir/ ;;
3684 esac
3685 for ac_exec_ext in '' $ac_executable_extensions; do
3686 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3687 ac_cv_prog_ac_ct_CC="$ac_prog"
3688 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3689 break 2
3690 fi
3691 done
3692 done
3693 IFS=$as_save_IFS
3694
3695 fi
3696 fi
3697 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3698 if test -n "$ac_ct_CC"; then
3699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3700 printf "%s\n" "$ac_ct_CC" >&6; }
3701 else
3702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3703 printf "%s\n" "no" >&6; }
3704 fi
3705
3706
3707 test -n "$ac_ct_CC" && break
3708 done
3709
3710 if test "x$ac_ct_CC" = x; then
3711 CC=""
3712 else
3713 case $cross_compiling:$ac_tool_warned in
3714 yes:)
3715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3716 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3717 ac_tool_warned=yes ;;
3718 esac
3719 CC=$ac_ct_CC
3720 fi
3721 fi
3722
3723 fi
3724 if test -z "$CC"; then
3725 if test -n "$ac_tool_prefix"; then
3726 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3727 set dummy ${ac_tool_prefix}clang; ac_word=$2
3728 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3729 printf %s "checking for $ac_word... " >&6; }
3730 if test ${ac_cv_prog_CC+y}
3731 then :
3732 printf %s "(cached) " >&6
3733 else $as_nop
3734 if test -n "$CC"; then
3735 ac_cv_prog_CC="$CC" # Let the user override the test.
3736 else
3737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3738 for as_dir in $PATH
3739 do
3740 IFS=$as_save_IFS
3741 case $as_dir in #(((
3742 '') as_dir=./ ;;
3743 */) ;;
3744 *) as_dir=$as_dir/ ;;
3745 esac
3746 for ac_exec_ext in '' $ac_executable_extensions; do
3747 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3748 ac_cv_prog_CC="${ac_tool_prefix}clang"
3749 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3750 break 2
3751 fi
3752 done
3753 done
3754 IFS=$as_save_IFS
3755
3756 fi
3757 fi
3758 CC=$ac_cv_prog_CC
3759 if test -n "$CC"; then
3760 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3761 printf "%s\n" "$CC" >&6; }
3762 else
3763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3764 printf "%s\n" "no" >&6; }
3765 fi
3766
3767
3768 fi
3769 if test -z "$ac_cv_prog_CC"; then
3770 ac_ct_CC=$CC
3771 # Extract the first word of "clang", so it can be a program name with args.
3772 set dummy clang; ac_word=$2
3773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3774 printf %s "checking for $ac_word... " >&6; }
3775 if test ${ac_cv_prog_ac_ct_CC+y}
3776 then :
3777 printf %s "(cached) " >&6
3778 else $as_nop
3779 if test -n "$ac_ct_CC"; then
3780 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3781 else
3782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3783 for as_dir in $PATH
3784 do
3785 IFS=$as_save_IFS
3786 case $as_dir in #(((
3787 '') as_dir=./ ;;
3788 */) ;;
3789 *) as_dir=$as_dir/ ;;
3790 esac
3791 for ac_exec_ext in '' $ac_executable_extensions; do
3792 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3793 ac_cv_prog_ac_ct_CC="clang"
3794 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3795 break 2
3796 fi
3797 done
3798 done
3799 IFS=$as_save_IFS
3800
3801 fi
3802 fi
3803 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3804 if test -n "$ac_ct_CC"; then
3805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3806 printf "%s\n" "$ac_ct_CC" >&6; }
3807 else
3808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3809 printf "%s\n" "no" >&6; }
3810 fi
3811
3812 if test "x$ac_ct_CC" = x; then
3813 CC=""
3814 else
3815 case $cross_compiling:$ac_tool_warned in
3816 yes:)
3817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3818 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3819 ac_tool_warned=yes ;;
3820 esac
3821 CC=$ac_ct_CC
3822 fi
3823 else
3824 CC="$ac_cv_prog_CC"
3825 fi
3826
3827 fi
3828
3829
3830 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3831 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3832 as_fn_error $? "no acceptable C compiler found in \$PATH
3833 See \`config.log' for more details" "$LINENO" 5; }
3834
3835 # Provide some information about the compiler.
3836 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3837 set X $ac_compile
3838 ac_compiler=$2
3839 for ac_option in --version -v -V -qversion -version; do
3840 { { ac_try="$ac_compiler $ac_option >&5"
3841 case "(($ac_try" in
3842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3843 *) ac_try_echo=$ac_try;;
3844 esac
3845 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3846 printf "%s\n" "$ac_try_echo"; } >&5
3847 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3848 ac_status=$?
3849 if test -s conftest.err; then
3850 sed '10a\
3851 ... rest of stderr output deleted ...
3852 10q' conftest.err >conftest.er1
3853 cat conftest.er1 >&5
3854 fi
3855 rm -f conftest.er1 conftest.err
3856 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3857 test $ac_status = 0; }
3858 done
3859
3860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3861 /* end confdefs.h. */
3862
3863 int
3864 main (void)
3865 {
3866
3867 ;
3868 return 0;
3869 }
3870 _ACEOF
3871 ac_clean_files_save=$ac_clean_files
3872 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3873 # Try to create an executable without -o first, disregard a.out.
3874 # It will help us diagnose broken compilers, and finding out an intuition
3875 # of exeext.
3876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3877 printf %s "checking whether the C compiler works... " >&6; }
3878 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3879
3880 # The possible output files:
3881 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3882
3883 ac_rmfiles=
3884 for ac_file in $ac_files
3885 do
3886 case $ac_file in
3887 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3888 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3889 esac
3890 done
3891 rm -f $ac_rmfiles
3892
3893 if { { ac_try="$ac_link_default"
3894 case "(($ac_try" in
3895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3896 *) ac_try_echo=$ac_try;;
3897 esac
3898 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3899 printf "%s\n" "$ac_try_echo"; } >&5
3900 (eval "$ac_link_default") 2>&5
3901 ac_status=$?
3902 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3903 test $ac_status = 0; }
3904 then :
3905 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3906 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3907 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3908 # so that the user can short-circuit this test for compilers unknown to
3909 # Autoconf.
3910 for ac_file in $ac_files ''
3911 do
3912 test -f "$ac_file" || continue
3913 case $ac_file in
3914 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3915 ;;
3916 [ab].out )
3917 # We found the default executable, but exeext='' is most
3918 # certainly right.
3919 break;;
3920 *.* )
3921 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3922 then :; else
3923 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3924 fi
3925 # We set ac_cv_exeext here because the later test for it is not
3926 # safe: cross compilers may not add the suffix if given an `-o'
3927 # argument, so we may need to know it at that point already.
3928 # Even if this section looks crufty: it has the advantage of
3929 # actually working.
3930 break;;
3931 * )
3932 break;;
3933 esac
3934 done
3935 test "$ac_cv_exeext" = no && ac_cv_exeext=
3936
3937 else $as_nop
3938 ac_file=''
3939 fi
3940 if test -z "$ac_file"
3941 then :
3942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3943 printf "%s\n" "no" >&6; }
3944 printf "%s\n" "$as_me: failed program was:" >&5
3945 sed 's/^/| /' conftest.$ac_ext >&5
3946
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 77 "C compiler cannot create executables
3950 See \`config.log' for more details" "$LINENO" 5; }
3951 else $as_nop
3952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3953 printf "%s\n" "yes" >&6; }
3954 fi
3955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3956 printf %s "checking for C compiler default output file name... " >&6; }
3957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3958 printf "%s\n" "$ac_file" >&6; }
3959 ac_exeext=$ac_cv_exeext
3960
3961 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3962 ac_clean_files=$ac_clean_files_save
3963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3964 printf %s "checking for suffix of executables... " >&6; }
3965 if { { ac_try="$ac_link"
3966 case "(($ac_try" in
3967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3968 *) ac_try_echo=$ac_try;;
3969 esac
3970 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3971 printf "%s\n" "$ac_try_echo"; } >&5
3972 (eval "$ac_link") 2>&5
3973 ac_status=$?
3974 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3975 test $ac_status = 0; }
3976 then :
3977 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3978 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3979 # work properly (i.e., refer to `conftest.exe'), while it won't with
3980 # `rm'.
3981 for ac_file in conftest.exe conftest conftest.*; do
3982 test -f "$ac_file" || continue
3983 case $ac_file in
3984 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3985 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3986 break;;
3987 * ) break;;
3988 esac
3989 done
3990 else $as_nop
3991 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3992 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3993 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3994 See \`config.log' for more details" "$LINENO" 5; }
3995 fi
3996 rm -f conftest conftest$ac_cv_exeext
3997 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3998 printf "%s\n" "$ac_cv_exeext" >&6; }
3999
4000 rm -f conftest.$ac_ext
4001 EXEEXT=$ac_cv_exeext
4002 ac_exeext=$EXEEXT
4003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4004 /* end confdefs.h. */
4005 #include <stdio.h>
4006 int
4007 main (void)
4008 {
4009 FILE *f = fopen ("conftest.out", "w");
4010 return ferror (f) || fclose (f) != 0;
4011
4012 ;
4013 return 0;
4014 }
4015 _ACEOF
4016 ac_clean_files="$ac_clean_files conftest.out"
4017 # Check that the compiler produces executables we can run. If not, either
4018 # the compiler is broken, or we cross compile.
4019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4020 printf %s "checking whether we are cross compiling... " >&6; }
4021 if test "$cross_compiling" != yes; then
4022 { { ac_try="$ac_link"
4023 case "(($ac_try" in
4024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4025 *) ac_try_echo=$ac_try;;
4026 esac
4027 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4028 printf "%s\n" "$ac_try_echo"; } >&5
4029 (eval "$ac_link") 2>&5
4030 ac_status=$?
4031 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4032 test $ac_status = 0; }
4033 if { ac_try='./conftest$ac_cv_exeext'
4034 { { case "(($ac_try" in
4035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4036 *) ac_try_echo=$ac_try;;
4037 esac
4038 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4039 printf "%s\n" "$ac_try_echo"; } >&5
4040 (eval "$ac_try") 2>&5
4041 ac_status=$?
4042 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4043 test $ac_status = 0; }; }; then
4044 cross_compiling=no
4045 else
4046 if test "$cross_compiling" = maybe; then
4047 cross_compiling=yes
4048 else
4049 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4050 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4051 as_fn_error 77 "cannot run C compiled programs.
4052 If you meant to cross compile, use \`--host'.
4053 See \`config.log' for more details" "$LINENO" 5; }
4054 fi
4055 fi
4056 fi
4057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4058 printf "%s\n" "$cross_compiling" >&6; }
4059
4060 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4061 ac_clean_files=$ac_clean_files_save
4062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4063 printf %s "checking for suffix of object files... " >&6; }
4064 if test ${ac_cv_objext+y}
4065 then :
4066 printf %s "(cached) " >&6
4067 else $as_nop
4068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4069 /* end confdefs.h. */
4070
4071 int
4072 main (void)
4073 {
4074
4075 ;
4076 return 0;
4077 }
4078 _ACEOF
4079 rm -f conftest.o conftest.obj
4080 if { { ac_try="$ac_compile"
4081 case "(($ac_try" in
4082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4083 *) ac_try_echo=$ac_try;;
4084 esac
4085 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4086 printf "%s\n" "$ac_try_echo"; } >&5
4087 (eval "$ac_compile") 2>&5
4088 ac_status=$?
4089 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4090 test $ac_status = 0; }
4091 then :
4092 for ac_file in conftest.o conftest.obj conftest.*; do
4093 test -f "$ac_file" || continue;
4094 case $ac_file in
4095 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4096 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4097 break;;
4098 esac
4099 done
4100 else $as_nop
4101 printf "%s\n" "$as_me: failed program was:" >&5
4102 sed 's/^/| /' conftest.$ac_ext >&5
4103
4104 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4105 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4106 as_fn_error $? "cannot compute suffix of object files: cannot compile
4107 See \`config.log' for more details" "$LINENO" 5; }
4108 fi
4109 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4110 fi
4111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4112 printf "%s\n" "$ac_cv_objext" >&6; }
4113 OBJEXT=$ac_cv_objext
4114 ac_objext=$OBJEXT
4115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4116 printf %s "checking whether the compiler supports GNU C... " >&6; }
4117 if test ${ac_cv_c_compiler_gnu+y}
4118 then :
4119 printf %s "(cached) " >&6
4120 else $as_nop
4121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4122 /* end confdefs.h. */
4123
4124 int
4125 main (void)
4126 {
4127 #ifndef __GNUC__
4128 choke me
4129 #endif
4130
4131 ;
4132 return 0;
4133 }
4134 _ACEOF
4135 if ac_fn_c_try_compile "$LINENO"
4136 then :
4137 ac_compiler_gnu=yes
4138 else $as_nop
4139 ac_compiler_gnu=no
4140 fi
4141 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4142 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4143
4144 fi
4145 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4146 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4147 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4148
4149 if test $ac_compiler_gnu = yes; then
4150 GCC=yes
4151 else
4152 GCC=
4153 fi
4154 ac_test_CFLAGS=${CFLAGS+y}
4155 ac_save_CFLAGS=$CFLAGS
4156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4157 printf %s "checking whether $CC accepts -g... " >&6; }
4158 if test ${ac_cv_prog_cc_g+y}
4159 then :
4160 printf %s "(cached) " >&6
4161 else $as_nop
4162 ac_save_c_werror_flag=$ac_c_werror_flag
4163 ac_c_werror_flag=yes
4164 ac_cv_prog_cc_g=no
4165 CFLAGS="-g"
4166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4167 /* end confdefs.h. */
4168
4169 int
4170 main (void)
4171 {
4172
4173 ;
4174 return 0;
4175 }
4176 _ACEOF
4177 if ac_fn_c_try_compile "$LINENO"
4178 then :
4179 ac_cv_prog_cc_g=yes
4180 else $as_nop
4181 CFLAGS=""
4182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4183 /* end confdefs.h. */
4184
4185 int
4186 main (void)
4187 {
4188
4189 ;
4190 return 0;
4191 }
4192 _ACEOF
4193 if ac_fn_c_try_compile "$LINENO"
4194 then :
4195
4196 else $as_nop
4197 ac_c_werror_flag=$ac_save_c_werror_flag
4198 CFLAGS="-g"
4199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4200 /* end confdefs.h. */
4201
4202 int
4203 main (void)
4204 {
4205
4206 ;
4207 return 0;
4208 }
4209 _ACEOF
4210 if ac_fn_c_try_compile "$LINENO"
4211 then :
4212 ac_cv_prog_cc_g=yes
4213 fi
4214 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4215 fi
4216 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4217 fi
4218 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4219 ac_c_werror_flag=$ac_save_c_werror_flag
4220 fi
4221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4222 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4223 if test $ac_test_CFLAGS; then
4224 CFLAGS=$ac_save_CFLAGS
4225 elif test $ac_cv_prog_cc_g = yes; then
4226 if test "$GCC" = yes; then
4227 CFLAGS="-g -O2"
4228 else
4229 CFLAGS="-g"
4230 fi
4231 else
4232 if test "$GCC" = yes; then
4233 CFLAGS="-O2"
4234 else
4235 CFLAGS=
4236 fi
4237 fi
4238 ac_prog_cc_stdc=no
4239 if test x$ac_prog_cc_stdc = xno
4240 then :
4241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4242 printf %s "checking for $CC option to enable C11 features... " >&6; }
4243 if test ${ac_cv_prog_cc_c11+y}
4244 then :
4245 printf %s "(cached) " >&6
4246 else $as_nop
4247 ac_cv_prog_cc_c11=no
4248 ac_save_CC=$CC
4249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4250 /* end confdefs.h. */
4251 $ac_c_conftest_c11_program
4252 _ACEOF
4253 for ac_arg in '' -std=gnu11
4254 do
4255 CC="$ac_save_CC $ac_arg"
4256 if ac_fn_c_try_compile "$LINENO"
4257 then :
4258 ac_cv_prog_cc_c11=$ac_arg
4259 fi
4260 rm -f core conftest.err conftest.$ac_objext conftest.beam
4261 test "x$ac_cv_prog_cc_c11" != "xno" && break
4262 done
4263 rm -f conftest.$ac_ext
4264 CC=$ac_save_CC
4265 fi
4266
4267 if test "x$ac_cv_prog_cc_c11" = xno
4268 then :
4269 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4270 printf "%s\n" "unsupported" >&6; }
4271 else $as_nop
4272 if test "x$ac_cv_prog_cc_c11" = x
4273 then :
4274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4275 printf "%s\n" "none needed" >&6; }
4276 else $as_nop
4277 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4278 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4279 CC="$CC $ac_cv_prog_cc_c11"
4280 fi
4281 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4282 ac_prog_cc_stdc=c11
4283 fi
4284 fi
4285 if test x$ac_prog_cc_stdc = xno
4286 then :
4287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4288 printf %s "checking for $CC option to enable C99 features... " >&6; }
4289 if test ${ac_cv_prog_cc_c99+y}
4290 then :
4291 printf %s "(cached) " >&6
4292 else $as_nop
4293 ac_cv_prog_cc_c99=no
4294 ac_save_CC=$CC
4295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4296 /* end confdefs.h. */
4297 $ac_c_conftest_c99_program
4298 _ACEOF
4299 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4300 do
4301 CC="$ac_save_CC $ac_arg"
4302 if ac_fn_c_try_compile "$LINENO"
4303 then :
4304 ac_cv_prog_cc_c99=$ac_arg
4305 fi
4306 rm -f core conftest.err conftest.$ac_objext conftest.beam
4307 test "x$ac_cv_prog_cc_c99" != "xno" && break
4308 done
4309 rm -f conftest.$ac_ext
4310 CC=$ac_save_CC
4311 fi
4312
4313 if test "x$ac_cv_prog_cc_c99" = xno
4314 then :
4315 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4316 printf "%s\n" "unsupported" >&6; }
4317 else $as_nop
4318 if test "x$ac_cv_prog_cc_c99" = x
4319 then :
4320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4321 printf "%s\n" "none needed" >&6; }
4322 else $as_nop
4323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4324 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4325 CC="$CC $ac_cv_prog_cc_c99"
4326 fi
4327 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4328 ac_prog_cc_stdc=c99
4329 fi
4330 fi
4331 if test x$ac_prog_cc_stdc = xno
4332 then :
4333 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4334 printf %s "checking for $CC option to enable C89 features... " >&6; }
4335 if test ${ac_cv_prog_cc_c89+y}
4336 then :
4337 printf %s "(cached) " >&6
4338 else $as_nop
4339 ac_cv_prog_cc_c89=no
4340 ac_save_CC=$CC
4341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4342 /* end confdefs.h. */
4343 $ac_c_conftest_c89_program
4344 _ACEOF
4345 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4346 do
4347 CC="$ac_save_CC $ac_arg"
4348 if ac_fn_c_try_compile "$LINENO"
4349 then :
4350 ac_cv_prog_cc_c89=$ac_arg
4351 fi
4352 rm -f core conftest.err conftest.$ac_objext conftest.beam
4353 test "x$ac_cv_prog_cc_c89" != "xno" && break
4354 done
4355 rm -f conftest.$ac_ext
4356 CC=$ac_save_CC
4357 fi
4358
4359 if test "x$ac_cv_prog_cc_c89" = xno
4360 then :
4361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4362 printf "%s\n" "unsupported" >&6; }
4363 else $as_nop
4364 if test "x$ac_cv_prog_cc_c89" = x
4365 then :
4366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4367 printf "%s\n" "none needed" >&6; }
4368 else $as_nop
4369 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4370 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4371 CC="$CC $ac_cv_prog_cc_c89"
4372 fi
4373 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4374 ac_prog_cc_stdc=c89
4375 fi
4376 fi
4377
4378 ac_ext=c
4379 ac_cpp='$CPP $CPPFLAGS'
4380 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4381 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4382 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4383
4384
4385 ac_ext=c
4386 ac_cpp='$CPP $CPPFLAGS'
4387 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4388 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4389 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4391 printf %s "checking whether $CC understands -c and -o together... " >&6; }
4392 if test ${am_cv_prog_cc_c_o+y}
4393 then :
4394 printf %s "(cached) " >&6
4395 else $as_nop
4396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4397 /* end confdefs.h. */
4398
4399 int
4400 main (void)
4401 {
4402
4403 ;
4404 return 0;
4405 }
4406 _ACEOF
4407 # Make sure it works both with $CC and with simple cc.
4408 # Following AC_PROG_CC_C_O, we do the test twice because some
4409 # compilers refuse to overwrite an existing .o file with -o,
4410 # though they will create one.
4411 am_cv_prog_cc_c_o=yes
4412 for am_i in 1 2; do
4413 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4414 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4415 ac_status=$?
4416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4417 (exit $ac_status); } \
4418 && test -f conftest2.$ac_objext; then
4419 : OK
4420 else
4421 am_cv_prog_cc_c_o=no
4422 break
4423 fi
4424 done
4425 rm -f core conftest*
4426 unset am_i
4427 fi
4428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4429 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4430 if test "$am_cv_prog_cc_c_o" != yes; then
4431 # Losing compiler, so override with the script.
4432 # FIXME: It is wrong to rewrite CC.
4433 # But if we don't then we get into trouble of one sort or another.
4434 # A longer-term fix would be to have automake use am__CC in this case,
4435 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4436 CC="$am_aux_dir/compile $CC"
4437 fi
4438 ac_ext=c
4439 ac_cpp='$CPP $CPPFLAGS'
4440 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4441 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4442 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4443
4444
4445 depcc="$CC" am_compiler_list=
4446
4447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4448 printf %s "checking dependency style of $depcc... " >&6; }
4449 if test ${am_cv_CC_dependencies_compiler_type+y}
4450 then :
4451 printf %s "(cached) " >&6
4452 else $as_nop
4453 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4454 # We make a subdir and do the tests there. Otherwise we can end up
4455 # making bogus files that we don't know about and never remove. For
4456 # instance it was reported that on HP-UX the gcc test will end up
4457 # making a dummy file named 'D' -- because '-MD' means "put the output
4458 # in D".
4459 rm -rf conftest.dir
4460 mkdir conftest.dir
4461 # Copy depcomp to subdir because otherwise we won't find it if we're
4462 # using a relative directory.
4463 cp "$am_depcomp" conftest.dir
4464 cd conftest.dir
4465 # We will build objects and dependencies in a subdirectory because
4466 # it helps to detect inapplicable dependency modes. For instance
4467 # both Tru64's cc and ICC support -MD to output dependencies as a
4468 # side effect of compilation, but ICC will put the dependencies in
4469 # the current directory while Tru64 will put them in the object
4470 # directory.
4471 mkdir sub
4472
4473 am_cv_CC_dependencies_compiler_type=none
4474 if test "$am_compiler_list" = ""; then
4475 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4476 fi
4477 am__universal=false
4478 case " $depcc " in #(
4479 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4480 esac
4481
4482 for depmode in $am_compiler_list; do
4483 # Setup a source with many dependencies, because some compilers
4484 # like to wrap large dependency lists on column 80 (with \), and
4485 # we should not choose a depcomp mode which is confused by this.
4486 #
4487 # We need to recreate these files for each test, as the compiler may
4488 # overwrite some of them when testing with obscure command lines.
4489 # This happens at least with the AIX C compiler.
4490 : > sub/conftest.c
4491 for i in 1 2 3 4 5 6; do
4492 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4493 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4494 # Solaris 10 /bin/sh.
4495 echo '/* dummy */' > sub/conftst$i.h
4496 done
4497 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4498
4499 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4500 # mode. It turns out that the SunPro C++ compiler does not properly
4501 # handle '-M -o', and we need to detect this. Also, some Intel
4502 # versions had trouble with output in subdirs.
4503 am__obj=sub/conftest.${OBJEXT-o}
4504 am__minus_obj="-o $am__obj"
4505 case $depmode in
4506 gcc)
4507 # This depmode causes a compiler race in universal mode.
4508 test "$am__universal" = false || continue
4509 ;;
4510 nosideeffect)
4511 # After this tag, mechanisms are not by side-effect, so they'll
4512 # only be used when explicitly requested.
4513 if test "x$enable_dependency_tracking" = xyes; then
4514 continue
4515 else
4516 break
4517 fi
4518 ;;
4519 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4520 # This compiler won't grok '-c -o', but also, the minuso test has
4521 # not run yet. These depmodes are late enough in the game, and
4522 # so weak that their functioning should not be impacted.
4523 am__obj=conftest.${OBJEXT-o}
4524 am__minus_obj=
4525 ;;
4526 none) break ;;
4527 esac
4528 if depmode=$depmode \
4529 source=sub/conftest.c object=$am__obj \
4530 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4531 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4532 >/dev/null 2>conftest.err &&
4533 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4534 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4535 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4536 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4537 # icc doesn't choke on unknown options, it will just issue warnings
4538 # or remarks (even with -Werror). So we grep stderr for any message
4539 # that says an option was ignored or not supported.
4540 # When given -MP, icc 7.0 and 7.1 complain thusly:
4541 # icc: Command line warning: ignoring option '-M'; no argument required
4542 # The diagnosis changed in icc 8.0:
4543 # icc: Command line remark: option '-MP' not supported
4544 if (grep 'ignoring option' conftest.err ||
4545 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4546 am_cv_CC_dependencies_compiler_type=$depmode
4547 break
4548 fi
4549 fi
4550 done
4551
4552 cd ..
4553 rm -rf conftest.dir
4554 else
4555 am_cv_CC_dependencies_compiler_type=none
4556 fi
4557
4558 fi
4559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4560 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4561 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4562
4563 if
4564 test "x$enable_dependency_tracking" != xno \
4565 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4566 am__fastdepCC_TRUE=
4567 am__fastdepCC_FALSE='#'
4568 else
4569 am__fastdepCC_TRUE='#'
4570 am__fastdepCC_FALSE=
4571 fi
4572
4573
4574
4575
4576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
4577 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
4578 if test ${ac_cv_c_undeclared_builtin_options+y}
4579 then :
4580 printf %s "(cached) " >&6
4581 else $as_nop
4582 ac_save_CFLAGS=$CFLAGS
4583 ac_cv_c_undeclared_builtin_options='cannot detect'
4584 for ac_arg in '' -fno-builtin; do
4585 CFLAGS="$ac_save_CFLAGS $ac_arg"
4586 # This test program should *not* compile successfully.
4587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4588 /* end confdefs.h. */
4589
4590 int
4591 main (void)
4592 {
4593 (void) strchr;
4594 ;
4595 return 0;
4596 }
4597 _ACEOF
4598 if ac_fn_c_try_compile "$LINENO"
4599 then :
4600
4601 else $as_nop
4602 # This test program should compile successfully.
4603 # No library function is consistently available on
4604 # freestanding implementations, so test against a dummy
4605 # declaration. Include always-available headers on the
4606 # off chance that they somehow elicit warnings.
4607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4608 /* end confdefs.h. */
4609 #include <float.h>
4610 #include <limits.h>
4611 #include <stdarg.h>
4612 #include <stddef.h>
4613 extern void ac_decl (int, char *);
4614
4615 int
4616 main (void)
4617 {
4618 (void) ac_decl (0, (char *) 0);
4619 (void) ac_decl;
4620
4621 ;
4622 return 0;
4623 }
4624 _ACEOF
4625 if ac_fn_c_try_compile "$LINENO"
4626 then :
4627 if test x"$ac_arg" = x
4628 then :
4629 ac_cv_c_undeclared_builtin_options='none needed'
4630 else $as_nop
4631 ac_cv_c_undeclared_builtin_options=$ac_arg
4632 fi
4633 break
4634 fi
4635 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4636 fi
4637 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4638 done
4639 CFLAGS=$ac_save_CFLAGS
4640
4641 fi
4642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
4643 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
4644 case $ac_cv_c_undeclared_builtin_options in #(
4645 'cannot detect') :
4646 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4647 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4648 as_fn_error $? "cannot make $CC report undeclared builtins
4649 See \`config.log' for more details" "$LINENO" 5; } ;; #(
4650 'none needed') :
4651 ac_c_undeclared_builtin_options='' ;; #(
4652 *) :
4653 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
4654 esac
4655
4656 ac_header= ac_cache=
4657 for ac_item in $ac_header_c_list
4658 do
4659 if test $ac_cache; then
4660 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
4661 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
4662 printf "%s\n" "#define $ac_item 1" >> confdefs.h
4663 fi
4664 ac_header= ac_cache=
4665 elif test $ac_header; then
4666 ac_cache=$ac_item
4667 else
4668 ac_header=$ac_item
4669 fi
4670 done
4671
4672
4673
4674
4675
4676
4677
4678
4679 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
4680 then :
4681
4682 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
4683
4684 fi
4685
4686
4687
4688
4689 ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4690 if test "x$ac_cv_have_decl___clang__" = xyes
4691 then :
4692 CLANGCC="yes"
4693 else $as_nop
4694 CLANGCC="no"
4695 fi
4696 ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4697 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes
4698 then :
4699 INTELCC="yes"
4700 else $as_nop
4701 INTELCC="no"
4702 fi
4703 ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4704 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes
4705 then :
4706 SUNCC="yes"
4707 else $as_nop
4708 SUNCC="no"
4709 fi
4710
4711
4712
4713
4714
4715
4716
4717
4718 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4719 if test -n "$ac_tool_prefix"; then
4720 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4721 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4722 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4723 printf %s "checking for $ac_word... " >&6; }
4724 if test ${ac_cv_path_PKG_CONFIG+y}
4725 then :
4726 printf %s "(cached) " >&6
4727 else $as_nop
4728 case $PKG_CONFIG in
4729 [\\/]* | ?:[\\/]*)
4730 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4731 ;;
4732 *)
4733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4734 for as_dir in $PATH
4735 do
4736 IFS=$as_save_IFS
4737 case $as_dir in #(((
4738 '') as_dir=./ ;;
4739 */) ;;
4740 *) as_dir=$as_dir/ ;;
4741 esac
4742 for ac_exec_ext in '' $ac_executable_extensions; do
4743 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4744 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
4745 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4746 break 2
4747 fi
4748 done
4749 done
4750 IFS=$as_save_IFS
4751
4752 ;;
4753 esac
4754 fi
4755 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4756 if test -n "$PKG_CONFIG"; then
4757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4758 printf "%s\n" "$PKG_CONFIG" >&6; }
4759 else
4760 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4761 printf "%s\n" "no" >&6; }
4762 fi
4763
4764
4765 fi
4766 if test -z "$ac_cv_path_PKG_CONFIG"; then
4767 ac_pt_PKG_CONFIG=$PKG_CONFIG
4768 # Extract the first word of "pkg-config", so it can be a program name with args.
4769 set dummy pkg-config; ac_word=$2
4770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4771 printf %s "checking for $ac_word... " >&6; }
4772 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
4773 then :
4774 printf %s "(cached) " >&6
4775 else $as_nop
4776 case $ac_pt_PKG_CONFIG in
4777 [\\/]* | ?:[\\/]*)
4778 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4779 ;;
4780 *)
4781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4782 for as_dir in $PATH
4783 do
4784 IFS=$as_save_IFS
4785 case $as_dir in #(((
4786 '') as_dir=./ ;;
4787 */) ;;
4788 *) as_dir=$as_dir/ ;;
4789 esac
4790 for ac_exec_ext in '' $ac_executable_extensions; do
4791 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4792 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
4793 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4794 break 2
4795 fi
4796 done
4797 done
4798 IFS=$as_save_IFS
4799
4800 ;;
4801 esac
4802 fi
4803 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4804 if test -n "$ac_pt_PKG_CONFIG"; then
4805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4806 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
4807 else
4808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4809 printf "%s\n" "no" >&6; }
4810 fi
4811
4812 if test "x$ac_pt_PKG_CONFIG" = x; then
4813 PKG_CONFIG=""
4814 else
4815 case $cross_compiling:$ac_tool_warned in
4816 yes:)
4817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4818 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4819 ac_tool_warned=yes ;;
4820 esac
4821 PKG_CONFIG=$ac_pt_PKG_CONFIG
4822 fi
4823 else
4824 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4825 fi
4826
4827 fi
4828 if test -n "$PKG_CONFIG"; then
4829 _pkg_min_version=0.9.0
4830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4831 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4832 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4834 printf "%s\n" "yes" >&6; }
4835 else
4836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4837 printf "%s\n" "no" >&6; }
4838 PKG_CONFIG=""
4839 fi
4840 fi
4841
4842
4843 # Make sure we can run config.sub.
4844 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
4845 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
4846
4847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4848 printf %s "checking build system type... " >&6; }
4849 if test ${ac_cv_build+y}
4850 then :
4851 printf %s "(cached) " >&6
4852 else $as_nop
4853 ac_build_alias=$build_alias
4854 test "x$ac_build_alias" = x &&
4855 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
4856 test "x$ac_build_alias" = x &&
4857 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4858 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
4859 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
4860
4861 fi
4862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4863 printf "%s\n" "$ac_cv_build" >&6; }
4864 case $ac_cv_build in
4865 *-*-*) ;;
4866 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4867 esac
4868 build=$ac_cv_build
4869 ac_save_IFS=$IFS; IFS='-'
4870 set x $ac_cv_build
4871 shift
4872 build_cpu=$1
4873 build_vendor=$2
4874 shift; shift
4875 # Remember, the first character of IFS is used to create $*,
4876 # except with old shells:
4877 build_os=$*
4878 IFS=$ac_save_IFS
4879 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4880
4881
4882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4883 printf %s "checking host system type... " >&6; }
4884 if test ${ac_cv_host+y}
4885 then :
4886 printf %s "(cached) " >&6
4887 else $as_nop
4888 if test "x$host_alias" = x; then
4889 ac_cv_host=$ac_cv_build
4890 else
4891 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
4892 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
4893 fi
4894
4895 fi
4896 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4897 printf "%s\n" "$ac_cv_host" >&6; }
4898 case $ac_cv_host in
4899 *-*-*) ;;
4900 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4901 esac
4902 host=$ac_cv_host
4903 ac_save_IFS=$IFS; IFS='-'
4904 set x $ac_cv_host
4905 shift
4906 host_cpu=$1
4907 host_vendor=$2
4908 shift; shift
4909 # Remember, the first character of IFS is used to create $*,
4910 # except with old shells:
4911 host_os=$*
4912 IFS=$ac_save_IFS
4913 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4914
4915
4916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4917 printf %s "checking for a sed that does not truncate output... " >&6; }
4918 if test ${ac_cv_path_SED+y}
4919 then :
4920 printf %s "(cached) " >&6
4921 else $as_nop
4922 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4923 for ac_i in 1 2 3 4 5 6 7; do
4924 ac_script="$ac_script$as_nl$ac_script"
4925 done
4926 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4927 { ac_script=; unset ac_script;}
4928 if test -z "$SED"; then
4929 ac_path_SED_found=false
4930 # Loop through the user's path and test for each of PROGNAME-LIST
4931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4932 for as_dir in $PATH
4933 do
4934 IFS=$as_save_IFS
4935 case $as_dir in #(((
4936 '') as_dir=./ ;;
4937 */) ;;
4938 *) as_dir=$as_dir/ ;;
4939 esac
4940 for ac_prog in sed gsed
4941 do
4942 for ac_exec_ext in '' $ac_executable_extensions; do
4943 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
4944 as_fn_executable_p "$ac_path_SED" || continue
4945 # Check for GNU ac_path_SED and select it if it is found.
4946 # Check for GNU $ac_path_SED
4947 case `"$ac_path_SED" --version 2>&1` in
4948 *GNU*)
4949 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4950 *)
4951 ac_count=0
4952 printf %s 0123456789 >"conftest.in"
4953 while :
4954 do
4955 cat "conftest.in" "conftest.in" >"conftest.tmp"
4956 mv "conftest.tmp" "conftest.in"
4957 cp "conftest.in" "conftest.nl"
4958 printf "%s\n" '' >> "conftest.nl"
4959 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4960 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4961 as_fn_arith $ac_count + 1 && ac_count=$as_val
4962 if test $ac_count -gt ${ac_path_SED_max-0}; then
4963 # Best one so far, save it but keep looking for a better one
4964 ac_cv_path_SED="$ac_path_SED"
4965 ac_path_SED_max=$ac_count
4966 fi
4967 # 10*(2^10) chars as input seems more than enough
4968 test $ac_count -gt 10 && break
4969 done
4970 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4971 esac
4972
4973 $ac_path_SED_found && break 3
4974 done
4975 done
4976 done
4977 IFS=$as_save_IFS
4978 if test -z "$ac_cv_path_SED"; then
4979 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4980 fi
4981 else
4982 ac_cv_path_SED=$SED
4983 fi
4984
4985 fi
4986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4987 printf "%s\n" "$ac_cv_path_SED" >&6; }
4988 SED="$ac_cv_path_SED"
4989 rm -f conftest.sed
4990
4991
4992
4993
4994
4995
4996 # Check whether --enable-selective-werror was given.
4997 if test ${enable_selective_werror+y}
4998 then :
4999 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
5000 else $as_nop
5001 SELECTIVE_WERROR=yes
5002 fi
5003
5004
5005
5006
5007
5008 # -v is too short to test reliably with XORG_TESTSET_CFLAG
5009 if test "x$SUNCC" = "xyes"; then
5010 BASE_CFLAGS="-v"
5011 else
5012 BASE_CFLAGS=""
5013 fi
5014
5015 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
5016
5017
5018
5019
5020
5021
5022
5023
5024
5025
5026
5027
5028
5029 xorg_testset_save_CFLAGS="$CFLAGS"
5030
5031 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5032 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5034 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5035 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5036 then :
5037 printf %s "(cached) " >&6
5038 else $as_nop
5039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5040 /* end confdefs.h. */
5041 int i;
5042 _ACEOF
5043 if ac_fn_c_try_compile "$LINENO"
5044 then :
5045 xorg_cv_cc_flag_unknown_warning_option=yes
5046 else $as_nop
5047 xorg_cv_cc_flag_unknown_warning_option=no
5048 fi
5049 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5050 fi
5051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5052 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5053 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5054 CFLAGS="$xorg_testset_save_CFLAGS"
5055 fi
5056
5057 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5058 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5059 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5060 fi
5061 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5063 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5064 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5065 then :
5066 printf %s "(cached) " >&6
5067 else $as_nop
5068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5069 /* end confdefs.h. */
5070 int i;
5071 _ACEOF
5072 if ac_fn_c_try_compile "$LINENO"
5073 then :
5074 xorg_cv_cc_flag_unused_command_line_argument=yes
5075 else $as_nop
5076 xorg_cv_cc_flag_unused_command_line_argument=no
5077 fi
5078 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5079 fi
5080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5081 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5082 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5083 CFLAGS="$xorg_testset_save_CFLAGS"
5084 fi
5085
5086 found="no"
5087
5088 if test $found = "no" ; then
5089 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5090 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5091 fi
5092
5093 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5094 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5095 fi
5096
5097 CFLAGS="$CFLAGS -Wall"
5098
5099 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
5100 printf %s "checking if $CC supports -Wall... " >&6; }
5101 cacheid=xorg_cv_cc_flag__Wall
5102 if eval test \${$cacheid+y}
5103 then :
5104 printf %s "(cached) " >&6
5105 else $as_nop
5106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5107 /* end confdefs.h. */
5108 int i;
5109 int
5110 main (void)
5111 {
5112
5113 ;
5114 return 0;
5115 }
5116 _ACEOF
5117 if ac_fn_c_try_link "$LINENO"
5118 then :
5119 eval $cacheid=yes
5120 else $as_nop
5121 eval $cacheid=no
5122 fi
5123 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5124 conftest$ac_exeext conftest.$ac_ext
5125 fi
5126
5127
5128 CFLAGS="$xorg_testset_save_CFLAGS"
5129
5130 eval supported=\$$cacheid
5131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5132 printf "%s\n" "$supported" >&6; }
5133 if test "$supported" = "yes" ; then
5134 BASE_CFLAGS="$BASE_CFLAGS -Wall"
5135 found="yes"
5136 fi
5137 fi
5138
5139
5140
5141
5142
5143
5144
5145
5146
5147
5148
5149
5150
5151
5152
5153 xorg_testset_save_CFLAGS="$CFLAGS"
5154
5155 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5156 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5157 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5158 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5159 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5160 then :
5161 printf %s "(cached) " >&6
5162 else $as_nop
5163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5164 /* end confdefs.h. */
5165 int i;
5166 _ACEOF
5167 if ac_fn_c_try_compile "$LINENO"
5168 then :
5169 xorg_cv_cc_flag_unknown_warning_option=yes
5170 else $as_nop
5171 xorg_cv_cc_flag_unknown_warning_option=no
5172 fi
5173 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5174 fi
5175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5176 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5177 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5178 CFLAGS="$xorg_testset_save_CFLAGS"
5179 fi
5180
5181 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5182 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5183 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5184 fi
5185 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5187 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5188 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5189 then :
5190 printf %s "(cached) " >&6
5191 else $as_nop
5192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5193 /* end confdefs.h. */
5194 int i;
5195 _ACEOF
5196 if ac_fn_c_try_compile "$LINENO"
5197 then :
5198 xorg_cv_cc_flag_unused_command_line_argument=yes
5199 else $as_nop
5200 xorg_cv_cc_flag_unused_command_line_argument=no
5201 fi
5202 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5203 fi
5204 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5205 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5206 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5207 CFLAGS="$xorg_testset_save_CFLAGS"
5208 fi
5209
5210 found="no"
5211
5212 if test $found = "no" ; then
5213 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5214 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5215 fi
5216
5217 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5218 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5219 fi
5220
5221 CFLAGS="$CFLAGS -Wpointer-arith"
5222
5223 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
5224 printf %s "checking if $CC supports -Wpointer-arith... " >&6; }
5225 cacheid=xorg_cv_cc_flag__Wpointer_arith
5226 if eval test \${$cacheid+y}
5227 then :
5228 printf %s "(cached) " >&6
5229 else $as_nop
5230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5231 /* end confdefs.h. */
5232 int i;
5233 int
5234 main (void)
5235 {
5236
5237 ;
5238 return 0;
5239 }
5240 _ACEOF
5241 if ac_fn_c_try_link "$LINENO"
5242 then :
5243 eval $cacheid=yes
5244 else $as_nop
5245 eval $cacheid=no
5246 fi
5247 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5248 conftest$ac_exeext conftest.$ac_ext
5249 fi
5250
5251
5252 CFLAGS="$xorg_testset_save_CFLAGS"
5253
5254 eval supported=\$$cacheid
5255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5256 printf "%s\n" "$supported" >&6; }
5257 if test "$supported" = "yes" ; then
5258 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
5259 found="yes"
5260 fi
5261 fi
5262
5263
5264
5265
5266
5267
5268
5269
5270
5271
5272
5273
5274
5275
5276
5277 xorg_testset_save_CFLAGS="$CFLAGS"
5278
5279 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5280 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5281 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5282 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5283 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5284 then :
5285 printf %s "(cached) " >&6
5286 else $as_nop
5287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5288 /* end confdefs.h. */
5289 int i;
5290 _ACEOF
5291 if ac_fn_c_try_compile "$LINENO"
5292 then :
5293 xorg_cv_cc_flag_unknown_warning_option=yes
5294 else $as_nop
5295 xorg_cv_cc_flag_unknown_warning_option=no
5296 fi
5297 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5298 fi
5299 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5300 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5301 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5302 CFLAGS="$xorg_testset_save_CFLAGS"
5303 fi
5304
5305 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5306 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5307 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5308 fi
5309 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5311 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5312 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5313 then :
5314 printf %s "(cached) " >&6
5315 else $as_nop
5316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5317 /* end confdefs.h. */
5318 int i;
5319 _ACEOF
5320 if ac_fn_c_try_compile "$LINENO"
5321 then :
5322 xorg_cv_cc_flag_unused_command_line_argument=yes
5323 else $as_nop
5324 xorg_cv_cc_flag_unused_command_line_argument=no
5325 fi
5326 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5327 fi
5328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5329 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5330 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5331 CFLAGS="$xorg_testset_save_CFLAGS"
5332 fi
5333
5334 found="no"
5335
5336 if test $found = "no" ; then
5337 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5338 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5339 fi
5340
5341 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5342 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5343 fi
5344
5345 CFLAGS="$CFLAGS -Wmissing-declarations"
5346
5347 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
5348 printf %s "checking if $CC supports -Wmissing-declarations... " >&6; }
5349 cacheid=xorg_cv_cc_flag__Wmissing_declarations
5350 if eval test \${$cacheid+y}
5351 then :
5352 printf %s "(cached) " >&6
5353 else $as_nop
5354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5355 /* end confdefs.h. */
5356 int i;
5357 int
5358 main (void)
5359 {
5360
5361 ;
5362 return 0;
5363 }
5364 _ACEOF
5365 if ac_fn_c_try_link "$LINENO"
5366 then :
5367 eval $cacheid=yes
5368 else $as_nop
5369 eval $cacheid=no
5370 fi
5371 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5372 conftest$ac_exeext conftest.$ac_ext
5373 fi
5374
5375
5376 CFLAGS="$xorg_testset_save_CFLAGS"
5377
5378 eval supported=\$$cacheid
5379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5380 printf "%s\n" "$supported" >&6; }
5381 if test "$supported" = "yes" ; then
5382 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5383 found="yes"
5384 fi
5385 fi
5386
5387
5388
5389
5390
5391
5392
5393
5394
5395
5396
5397
5398
5399
5400
5401 xorg_testset_save_CFLAGS="$CFLAGS"
5402
5403 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5404 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5405 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5406 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5407 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5408 then :
5409 printf %s "(cached) " >&6
5410 else $as_nop
5411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5412 /* end confdefs.h. */
5413 int i;
5414 _ACEOF
5415 if ac_fn_c_try_compile "$LINENO"
5416 then :
5417 xorg_cv_cc_flag_unknown_warning_option=yes
5418 else $as_nop
5419 xorg_cv_cc_flag_unknown_warning_option=no
5420 fi
5421 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5422 fi
5423 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5424 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5425 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5426 CFLAGS="$xorg_testset_save_CFLAGS"
5427 fi
5428
5429 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5430 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5431 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5432 fi
5433 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5434 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5435 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5436 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5437 then :
5438 printf %s "(cached) " >&6
5439 else $as_nop
5440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5441 /* end confdefs.h. */
5442 int i;
5443 _ACEOF
5444 if ac_fn_c_try_compile "$LINENO"
5445 then :
5446 xorg_cv_cc_flag_unused_command_line_argument=yes
5447 else $as_nop
5448 xorg_cv_cc_flag_unused_command_line_argument=no
5449 fi
5450 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5451 fi
5452 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5453 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5454 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5455 CFLAGS="$xorg_testset_save_CFLAGS"
5456 fi
5457
5458 found="no"
5459
5460 if test $found = "no" ; then
5461 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5462 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5463 fi
5464
5465 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5466 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5467 fi
5468
5469 CFLAGS="$CFLAGS -Wformat=2"
5470
5471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5472 printf %s "checking if $CC supports -Wformat=2... " >&6; }
5473 cacheid=xorg_cv_cc_flag__Wformat_2
5474 if eval test \${$cacheid+y}
5475 then :
5476 printf %s "(cached) " >&6
5477 else $as_nop
5478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5479 /* end confdefs.h. */
5480 int i;
5481 int
5482 main (void)
5483 {
5484
5485 ;
5486 return 0;
5487 }
5488 _ACEOF
5489 if ac_fn_c_try_link "$LINENO"
5490 then :
5491 eval $cacheid=yes
5492 else $as_nop
5493 eval $cacheid=no
5494 fi
5495 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5496 conftest$ac_exeext conftest.$ac_ext
5497 fi
5498
5499
5500 CFLAGS="$xorg_testset_save_CFLAGS"
5501
5502 eval supported=\$$cacheid
5503 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5504 printf "%s\n" "$supported" >&6; }
5505 if test "$supported" = "yes" ; then
5506 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5507 found="yes"
5508 fi
5509 fi
5510
5511 if test $found = "no" ; then
5512 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5513 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5514 fi
5515
5516 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5517 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5518 fi
5519
5520 CFLAGS="$CFLAGS -Wformat"
5521
5522 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5523 printf %s "checking if $CC supports -Wformat... " >&6; }
5524 cacheid=xorg_cv_cc_flag__Wformat
5525 if eval test \${$cacheid+y}
5526 then :
5527 printf %s "(cached) " >&6
5528 else $as_nop
5529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5530 /* end confdefs.h. */
5531 int i;
5532 int
5533 main (void)
5534 {
5535
5536 ;
5537 return 0;
5538 }
5539 _ACEOF
5540 if ac_fn_c_try_link "$LINENO"
5541 then :
5542 eval $cacheid=yes
5543 else $as_nop
5544 eval $cacheid=no
5545 fi
5546 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5547 conftest$ac_exeext conftest.$ac_ext
5548 fi
5549
5550
5551 CFLAGS="$xorg_testset_save_CFLAGS"
5552
5553 eval supported=\$$cacheid
5554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5555 printf "%s\n" "$supported" >&6; }
5556 if test "$supported" = "yes" ; then
5557 BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5558 found="yes"
5559 fi
5560 fi
5561
5562
5563
5564
5565
5566
5567
5568
5569
5570
5571
5572
5573
5574
5575
5576
5577
5578 xorg_testset_save_CFLAGS="$CFLAGS"
5579
5580 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5581 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5583 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5584 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5585 then :
5586 printf %s "(cached) " >&6
5587 else $as_nop
5588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5589 /* end confdefs.h. */
5590 int i;
5591 _ACEOF
5592 if ac_fn_c_try_compile "$LINENO"
5593 then :
5594 xorg_cv_cc_flag_unknown_warning_option=yes
5595 else $as_nop
5596 xorg_cv_cc_flag_unknown_warning_option=no
5597 fi
5598 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5599 fi
5600 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5601 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5602 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5603 CFLAGS="$xorg_testset_save_CFLAGS"
5604 fi
5605
5606 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5607 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5608 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5609 fi
5610 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5612 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5613 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5614 then :
5615 printf %s "(cached) " >&6
5616 else $as_nop
5617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5618 /* end confdefs.h. */
5619 int i;
5620 _ACEOF
5621 if ac_fn_c_try_compile "$LINENO"
5622 then :
5623 xorg_cv_cc_flag_unused_command_line_argument=yes
5624 else $as_nop
5625 xorg_cv_cc_flag_unused_command_line_argument=no
5626 fi
5627 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5628 fi
5629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5630 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5631 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5632 CFLAGS="$xorg_testset_save_CFLAGS"
5633 fi
5634
5635 found="no"
5636
5637 if test $found = "no" ; then
5638 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5639 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5640 fi
5641
5642 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5643 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5644 fi
5645
5646 CFLAGS="$CFLAGS -Wstrict-prototypes"
5647
5648 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5649 printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; }
5650 cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5651 if eval test \${$cacheid+y}
5652 then :
5653 printf %s "(cached) " >&6
5654 else $as_nop
5655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5656 /* end confdefs.h. */
5657 int i;
5658 int
5659 main (void)
5660 {
5661
5662 ;
5663 return 0;
5664 }
5665 _ACEOF
5666 if ac_fn_c_try_link "$LINENO"
5667 then :
5668 eval $cacheid=yes
5669 else $as_nop
5670 eval $cacheid=no
5671 fi
5672 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5673 conftest$ac_exeext conftest.$ac_ext
5674 fi
5675
5676
5677 CFLAGS="$xorg_testset_save_CFLAGS"
5678
5679 eval supported=\$$cacheid
5680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5681 printf "%s\n" "$supported" >&6; }
5682 if test "$supported" = "yes" ; then
5683 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5684 found="yes"
5685 fi
5686 fi
5687
5688
5689
5690
5691
5692
5693
5694
5695
5696
5697
5698
5699
5700
5701
5702 xorg_testset_save_CFLAGS="$CFLAGS"
5703
5704 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5705 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5707 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5708 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5709 then :
5710 printf %s "(cached) " >&6
5711 else $as_nop
5712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5713 /* end confdefs.h. */
5714 int i;
5715 _ACEOF
5716 if ac_fn_c_try_compile "$LINENO"
5717 then :
5718 xorg_cv_cc_flag_unknown_warning_option=yes
5719 else $as_nop
5720 xorg_cv_cc_flag_unknown_warning_option=no
5721 fi
5722 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5723 fi
5724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5725 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5726 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5727 CFLAGS="$xorg_testset_save_CFLAGS"
5728 fi
5729
5730 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5731 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5732 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5733 fi
5734 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5736 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5737 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5738 then :
5739 printf %s "(cached) " >&6
5740 else $as_nop
5741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5742 /* end confdefs.h. */
5743 int i;
5744 _ACEOF
5745 if ac_fn_c_try_compile "$LINENO"
5746 then :
5747 xorg_cv_cc_flag_unused_command_line_argument=yes
5748 else $as_nop
5749 xorg_cv_cc_flag_unused_command_line_argument=no
5750 fi
5751 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5752 fi
5753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5754 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5755 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5756 CFLAGS="$xorg_testset_save_CFLAGS"
5757 fi
5758
5759 found="no"
5760
5761 if test $found = "no" ; then
5762 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5763 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5764 fi
5765
5766 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5767 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5768 fi
5769
5770 CFLAGS="$CFLAGS -Wmissing-prototypes"
5771
5772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5773 printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; }
5774 cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5775 if eval test \${$cacheid+y}
5776 then :
5777 printf %s "(cached) " >&6
5778 else $as_nop
5779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5780 /* end confdefs.h. */
5781 int i;
5782 int
5783 main (void)
5784 {
5785
5786 ;
5787 return 0;
5788 }
5789 _ACEOF
5790 if ac_fn_c_try_link "$LINENO"
5791 then :
5792 eval $cacheid=yes
5793 else $as_nop
5794 eval $cacheid=no
5795 fi
5796 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5797 conftest$ac_exeext conftest.$ac_ext
5798 fi
5799
5800
5801 CFLAGS="$xorg_testset_save_CFLAGS"
5802
5803 eval supported=\$$cacheid
5804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5805 printf "%s\n" "$supported" >&6; }
5806 if test "$supported" = "yes" ; then
5807 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5808 found="yes"
5809 fi
5810 fi
5811
5812
5813
5814
5815
5816
5817
5818
5819
5820
5821
5822
5823
5824
5825
5826 xorg_testset_save_CFLAGS="$CFLAGS"
5827
5828 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5829 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5831 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5832 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5833 then :
5834 printf %s "(cached) " >&6
5835 else $as_nop
5836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5837 /* end confdefs.h. */
5838 int i;
5839 _ACEOF
5840 if ac_fn_c_try_compile "$LINENO"
5841 then :
5842 xorg_cv_cc_flag_unknown_warning_option=yes
5843 else $as_nop
5844 xorg_cv_cc_flag_unknown_warning_option=no
5845 fi
5846 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5847 fi
5848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5849 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5850 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5851 CFLAGS="$xorg_testset_save_CFLAGS"
5852 fi
5853
5854 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5855 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5856 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5857 fi
5858 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5859 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5860 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5861 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5862 then :
5863 printf %s "(cached) " >&6
5864 else $as_nop
5865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5866 /* end confdefs.h. */
5867 int i;
5868 _ACEOF
5869 if ac_fn_c_try_compile "$LINENO"
5870 then :
5871 xorg_cv_cc_flag_unused_command_line_argument=yes
5872 else $as_nop
5873 xorg_cv_cc_flag_unused_command_line_argument=no
5874 fi
5875 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5876 fi
5877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5878 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5879 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5880 CFLAGS="$xorg_testset_save_CFLAGS"
5881 fi
5882
5883 found="no"
5884
5885 if test $found = "no" ; then
5886 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5887 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5888 fi
5889
5890 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5891 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5892 fi
5893
5894 CFLAGS="$CFLAGS -Wnested-externs"
5895
5896 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5897 printf %s "checking if $CC supports -Wnested-externs... " >&6; }
5898 cacheid=xorg_cv_cc_flag__Wnested_externs
5899 if eval test \${$cacheid+y}
5900 then :
5901 printf %s "(cached) " >&6
5902 else $as_nop
5903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5904 /* end confdefs.h. */
5905 int i;
5906 int
5907 main (void)
5908 {
5909
5910 ;
5911 return 0;
5912 }
5913 _ACEOF
5914 if ac_fn_c_try_link "$LINENO"
5915 then :
5916 eval $cacheid=yes
5917 else $as_nop
5918 eval $cacheid=no
5919 fi
5920 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5921 conftest$ac_exeext conftest.$ac_ext
5922 fi
5923
5924
5925 CFLAGS="$xorg_testset_save_CFLAGS"
5926
5927 eval supported=\$$cacheid
5928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5929 printf "%s\n" "$supported" >&6; }
5930 if test "$supported" = "yes" ; then
5931 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5932 found="yes"
5933 fi
5934 fi
5935
5936
5937
5938
5939
5940
5941
5942
5943
5944
5945
5946
5947
5948
5949
5950 xorg_testset_save_CFLAGS="$CFLAGS"
5951
5952 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5953 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5954 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5955 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5956 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5957 then :
5958 printf %s "(cached) " >&6
5959 else $as_nop
5960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5961 /* end confdefs.h. */
5962 int i;
5963 _ACEOF
5964 if ac_fn_c_try_compile "$LINENO"
5965 then :
5966 xorg_cv_cc_flag_unknown_warning_option=yes
5967 else $as_nop
5968 xorg_cv_cc_flag_unknown_warning_option=no
5969 fi
5970 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5971 fi
5972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5973 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5974 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5975 CFLAGS="$xorg_testset_save_CFLAGS"
5976 fi
5977
5978 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5979 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5980 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5981 fi
5982 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5983 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5984 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5985 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5986 then :
5987 printf %s "(cached) " >&6
5988 else $as_nop
5989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5990 /* end confdefs.h. */
5991 int i;
5992 _ACEOF
5993 if ac_fn_c_try_compile "$LINENO"
5994 then :
5995 xorg_cv_cc_flag_unused_command_line_argument=yes
5996 else $as_nop
5997 xorg_cv_cc_flag_unused_command_line_argument=no
5998 fi
5999 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6000 fi
6001 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6002 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6003 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6004 CFLAGS="$xorg_testset_save_CFLAGS"
6005 fi
6006
6007 found="no"
6008
6009 if test $found = "no" ; then
6010 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6011 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6012 fi
6013
6014 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6015 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6016 fi
6017
6018 CFLAGS="$CFLAGS -Wbad-function-cast"
6019
6020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
6021 printf %s "checking if $CC supports -Wbad-function-cast... " >&6; }
6022 cacheid=xorg_cv_cc_flag__Wbad_function_cast
6023 if eval test \${$cacheid+y}
6024 then :
6025 printf %s "(cached) " >&6
6026 else $as_nop
6027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6028 /* end confdefs.h. */
6029 int i;
6030 int
6031 main (void)
6032 {
6033
6034 ;
6035 return 0;
6036 }
6037 _ACEOF
6038 if ac_fn_c_try_link "$LINENO"
6039 then :
6040 eval $cacheid=yes
6041 else $as_nop
6042 eval $cacheid=no
6043 fi
6044 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6045 conftest$ac_exeext conftest.$ac_ext
6046 fi
6047
6048
6049 CFLAGS="$xorg_testset_save_CFLAGS"
6050
6051 eval supported=\$$cacheid
6052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6053 printf "%s\n" "$supported" >&6; }
6054 if test "$supported" = "yes" ; then
6055 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
6056 found="yes"
6057 fi
6058 fi
6059
6060
6061
6062
6063
6064
6065
6066
6067
6068
6069
6070
6071
6072
6073
6074 xorg_testset_save_CFLAGS="$CFLAGS"
6075
6076 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6077 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6078 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6079 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6080 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6081 then :
6082 printf %s "(cached) " >&6
6083 else $as_nop
6084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6085 /* end confdefs.h. */
6086 int i;
6087 _ACEOF
6088 if ac_fn_c_try_compile "$LINENO"
6089 then :
6090 xorg_cv_cc_flag_unknown_warning_option=yes
6091 else $as_nop
6092 xorg_cv_cc_flag_unknown_warning_option=no
6093 fi
6094 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6095 fi
6096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6097 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6098 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6099 CFLAGS="$xorg_testset_save_CFLAGS"
6100 fi
6101
6102 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6103 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6104 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6105 fi
6106 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6108 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6109 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6110 then :
6111 printf %s "(cached) " >&6
6112 else $as_nop
6113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6114 /* end confdefs.h. */
6115 int i;
6116 _ACEOF
6117 if ac_fn_c_try_compile "$LINENO"
6118 then :
6119 xorg_cv_cc_flag_unused_command_line_argument=yes
6120 else $as_nop
6121 xorg_cv_cc_flag_unused_command_line_argument=no
6122 fi
6123 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6124 fi
6125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6126 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6127 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6128 CFLAGS="$xorg_testset_save_CFLAGS"
6129 fi
6130
6131 found="no"
6132
6133 if test $found = "no" ; then
6134 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6135 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6136 fi
6137
6138 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6139 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6140 fi
6141
6142 CFLAGS="$CFLAGS -Wold-style-definition"
6143
6144 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
6145 printf %s "checking if $CC supports -Wold-style-definition... " >&6; }
6146 cacheid=xorg_cv_cc_flag__Wold_style_definition
6147 if eval test \${$cacheid+y}
6148 then :
6149 printf %s "(cached) " >&6
6150 else $as_nop
6151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6152 /* end confdefs.h. */
6153 int i;
6154 int
6155 main (void)
6156 {
6157
6158 ;
6159 return 0;
6160 }
6161 _ACEOF
6162 if ac_fn_c_try_link "$LINENO"
6163 then :
6164 eval $cacheid=yes
6165 else $as_nop
6166 eval $cacheid=no
6167 fi
6168 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6169 conftest$ac_exeext conftest.$ac_ext
6170 fi
6171
6172
6173 CFLAGS="$xorg_testset_save_CFLAGS"
6174
6175 eval supported=\$$cacheid
6176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6177 printf "%s\n" "$supported" >&6; }
6178 if test "$supported" = "yes" ; then
6179 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
6180 found="yes"
6181 fi
6182 fi
6183
6184 if test $found = "no" ; then
6185 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6186 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6187 fi
6188
6189 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6190 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6191 fi
6192
6193 CFLAGS="$CFLAGS -fd"
6194
6195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
6196 printf %s "checking if $CC supports -fd... " >&6; }
6197 cacheid=xorg_cv_cc_flag__fd
6198 if eval test \${$cacheid+y}
6199 then :
6200 printf %s "(cached) " >&6
6201 else $as_nop
6202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6203 /* end confdefs.h. */
6204 int i;
6205 int
6206 main (void)
6207 {
6208
6209 ;
6210 return 0;
6211 }
6212 _ACEOF
6213 if ac_fn_c_try_link "$LINENO"
6214 then :
6215 eval $cacheid=yes
6216 else $as_nop
6217 eval $cacheid=no
6218 fi
6219 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6220 conftest$ac_exeext conftest.$ac_ext
6221 fi
6222
6223
6224 CFLAGS="$xorg_testset_save_CFLAGS"
6225
6226 eval supported=\$$cacheid
6227 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6228 printf "%s\n" "$supported" >&6; }
6229 if test "$supported" = "yes" ; then
6230 BASE_CFLAGS="$BASE_CFLAGS -fd"
6231 found="yes"
6232 fi
6233 fi
6234
6235
6236
6237
6238
6239
6240
6241
6242
6243
6244
6245
6246
6247
6248
6249 xorg_testset_save_CFLAGS="$CFLAGS"
6250
6251 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6252 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6254 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6255 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6256 then :
6257 printf %s "(cached) " >&6
6258 else $as_nop
6259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6260 /* end confdefs.h. */
6261 int i;
6262 _ACEOF
6263 if ac_fn_c_try_compile "$LINENO"
6264 then :
6265 xorg_cv_cc_flag_unknown_warning_option=yes
6266 else $as_nop
6267 xorg_cv_cc_flag_unknown_warning_option=no
6268 fi
6269 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6270 fi
6271 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6272 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6273 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6274 CFLAGS="$xorg_testset_save_CFLAGS"
6275 fi
6276
6277 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6278 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6279 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6280 fi
6281 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6282 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6283 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6284 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6285 then :
6286 printf %s "(cached) " >&6
6287 else $as_nop
6288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6289 /* end confdefs.h. */
6290 int i;
6291 _ACEOF
6292 if ac_fn_c_try_compile "$LINENO"
6293 then :
6294 xorg_cv_cc_flag_unused_command_line_argument=yes
6295 else $as_nop
6296 xorg_cv_cc_flag_unused_command_line_argument=no
6297 fi
6298 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6299 fi
6300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6301 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6302 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6303 CFLAGS="$xorg_testset_save_CFLAGS"
6304 fi
6305
6306 found="no"
6307
6308 if test $found = "no" ; then
6309 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6310 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6311 fi
6312
6313 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6314 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6315 fi
6316
6317 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
6318
6319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
6320 printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
6321 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
6322 if eval test \${$cacheid+y}
6323 then :
6324 printf %s "(cached) " >&6
6325 else $as_nop
6326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6327 /* end confdefs.h. */
6328 int i;
6329 int
6330 main (void)
6331 {
6332
6333 ;
6334 return 0;
6335 }
6336 _ACEOF
6337 if ac_fn_c_try_link "$LINENO"
6338 then :
6339 eval $cacheid=yes
6340 else $as_nop
6341 eval $cacheid=no
6342 fi
6343 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6344 conftest$ac_exeext conftest.$ac_ext
6345 fi
6346
6347
6348 CFLAGS="$xorg_testset_save_CFLAGS"
6349
6350 eval supported=\$$cacheid
6351 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6352 printf "%s\n" "$supported" >&6; }
6353 if test "$supported" = "yes" ; then
6354 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
6355 found="yes"
6356 fi
6357 fi
6358
6359
6360
6361
6362
6363 # This chunk adds additional warnings that could catch undesired effects.
6364
6365
6366
6367
6368
6369
6370
6371
6372
6373
6374
6375
6376
6377 xorg_testset_save_CFLAGS="$CFLAGS"
6378
6379 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6380 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6382 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6383 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6384 then :
6385 printf %s "(cached) " >&6
6386 else $as_nop
6387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6388 /* end confdefs.h. */
6389 int i;
6390 _ACEOF
6391 if ac_fn_c_try_compile "$LINENO"
6392 then :
6393 xorg_cv_cc_flag_unknown_warning_option=yes
6394 else $as_nop
6395 xorg_cv_cc_flag_unknown_warning_option=no
6396 fi
6397 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6398 fi
6399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6400 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6401 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6402 CFLAGS="$xorg_testset_save_CFLAGS"
6403 fi
6404
6405 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6406 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6407 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6408 fi
6409 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6411 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6412 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6413 then :
6414 printf %s "(cached) " >&6
6415 else $as_nop
6416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6417 /* end confdefs.h. */
6418 int i;
6419 _ACEOF
6420 if ac_fn_c_try_compile "$LINENO"
6421 then :
6422 xorg_cv_cc_flag_unused_command_line_argument=yes
6423 else $as_nop
6424 xorg_cv_cc_flag_unused_command_line_argument=no
6425 fi
6426 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6427 fi
6428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6429 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6430 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6431 CFLAGS="$xorg_testset_save_CFLAGS"
6432 fi
6433
6434 found="no"
6435
6436 if test $found = "no" ; then
6437 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6438 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6439 fi
6440
6441 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6442 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6443 fi
6444
6445 CFLAGS="$CFLAGS -Wunused"
6446
6447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
6448 printf %s "checking if $CC supports -Wunused... " >&6; }
6449 cacheid=xorg_cv_cc_flag__Wunused
6450 if eval test \${$cacheid+y}
6451 then :
6452 printf %s "(cached) " >&6
6453 else $as_nop
6454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6455 /* end confdefs.h. */
6456 int i;
6457 int
6458 main (void)
6459 {
6460
6461 ;
6462 return 0;
6463 }
6464 _ACEOF
6465 if ac_fn_c_try_link "$LINENO"
6466 then :
6467 eval $cacheid=yes
6468 else $as_nop
6469 eval $cacheid=no
6470 fi
6471 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6472 conftest$ac_exeext conftest.$ac_ext
6473 fi
6474
6475
6476 CFLAGS="$xorg_testset_save_CFLAGS"
6477
6478 eval supported=\$$cacheid
6479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6480 printf "%s\n" "$supported" >&6; }
6481 if test "$supported" = "yes" ; then
6482 BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6483 found="yes"
6484 fi
6485 fi
6486
6487
6488
6489
6490
6491
6492
6493
6494
6495
6496
6497
6498
6499
6500
6501 xorg_testset_save_CFLAGS="$CFLAGS"
6502
6503 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6504 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6505 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6506 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6507 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6508 then :
6509 printf %s "(cached) " >&6
6510 else $as_nop
6511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6512 /* end confdefs.h. */
6513 int i;
6514 _ACEOF
6515 if ac_fn_c_try_compile "$LINENO"
6516 then :
6517 xorg_cv_cc_flag_unknown_warning_option=yes
6518 else $as_nop
6519 xorg_cv_cc_flag_unknown_warning_option=no
6520 fi
6521 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6522 fi
6523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6524 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6525 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6526 CFLAGS="$xorg_testset_save_CFLAGS"
6527 fi
6528
6529 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6530 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6531 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6532 fi
6533 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6535 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6536 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6537 then :
6538 printf %s "(cached) " >&6
6539 else $as_nop
6540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6541 /* end confdefs.h. */
6542 int i;
6543 _ACEOF
6544 if ac_fn_c_try_compile "$LINENO"
6545 then :
6546 xorg_cv_cc_flag_unused_command_line_argument=yes
6547 else $as_nop
6548 xorg_cv_cc_flag_unused_command_line_argument=no
6549 fi
6550 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6551 fi
6552 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6553 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6554 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6555 CFLAGS="$xorg_testset_save_CFLAGS"
6556 fi
6557
6558 found="no"
6559
6560 if test $found = "no" ; then
6561 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6562 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6563 fi
6564
6565 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6566 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6567 fi
6568
6569 CFLAGS="$CFLAGS -Wuninitialized"
6570
6571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6572 printf %s "checking if $CC supports -Wuninitialized... " >&6; }
6573 cacheid=xorg_cv_cc_flag__Wuninitialized
6574 if eval test \${$cacheid+y}
6575 then :
6576 printf %s "(cached) " >&6
6577 else $as_nop
6578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6579 /* end confdefs.h. */
6580 int i;
6581 int
6582 main (void)
6583 {
6584
6585 ;
6586 return 0;
6587 }
6588 _ACEOF
6589 if ac_fn_c_try_link "$LINENO"
6590 then :
6591 eval $cacheid=yes
6592 else $as_nop
6593 eval $cacheid=no
6594 fi
6595 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6596 conftest$ac_exeext conftest.$ac_ext
6597 fi
6598
6599
6600 CFLAGS="$xorg_testset_save_CFLAGS"
6601
6602 eval supported=\$$cacheid
6603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6604 printf "%s\n" "$supported" >&6; }
6605 if test "$supported" = "yes" ; then
6606 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6607 found="yes"
6608 fi
6609 fi
6610
6611
6612
6613
6614
6615
6616
6617
6618
6619
6620
6621
6622
6623
6624
6625 xorg_testset_save_CFLAGS="$CFLAGS"
6626
6627 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6628 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6630 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6631 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6632 then :
6633 printf %s "(cached) " >&6
6634 else $as_nop
6635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6636 /* end confdefs.h. */
6637 int i;
6638 _ACEOF
6639 if ac_fn_c_try_compile "$LINENO"
6640 then :
6641 xorg_cv_cc_flag_unknown_warning_option=yes
6642 else $as_nop
6643 xorg_cv_cc_flag_unknown_warning_option=no
6644 fi
6645 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6646 fi
6647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6648 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6649 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6650 CFLAGS="$xorg_testset_save_CFLAGS"
6651 fi
6652
6653 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6654 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6655 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6656 fi
6657 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6659 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6660 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6661 then :
6662 printf %s "(cached) " >&6
6663 else $as_nop
6664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6665 /* end confdefs.h. */
6666 int i;
6667 _ACEOF
6668 if ac_fn_c_try_compile "$LINENO"
6669 then :
6670 xorg_cv_cc_flag_unused_command_line_argument=yes
6671 else $as_nop
6672 xorg_cv_cc_flag_unused_command_line_argument=no
6673 fi
6674 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6675 fi
6676 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6677 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6678 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6679 CFLAGS="$xorg_testset_save_CFLAGS"
6680 fi
6681
6682 found="no"
6683
6684 if test $found = "no" ; then
6685 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6686 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6687 fi
6688
6689 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6690 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6691 fi
6692
6693 CFLAGS="$CFLAGS -Wshadow"
6694
6695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6696 printf %s "checking if $CC supports -Wshadow... " >&6; }
6697 cacheid=xorg_cv_cc_flag__Wshadow
6698 if eval test \${$cacheid+y}
6699 then :
6700 printf %s "(cached) " >&6
6701 else $as_nop
6702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6703 /* end confdefs.h. */
6704 int i;
6705 int
6706 main (void)
6707 {
6708
6709 ;
6710 return 0;
6711 }
6712 _ACEOF
6713 if ac_fn_c_try_link "$LINENO"
6714 then :
6715 eval $cacheid=yes
6716 else $as_nop
6717 eval $cacheid=no
6718 fi
6719 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6720 conftest$ac_exeext conftest.$ac_ext
6721 fi
6722
6723
6724 CFLAGS="$xorg_testset_save_CFLAGS"
6725
6726 eval supported=\$$cacheid
6727 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6728 printf "%s\n" "$supported" >&6; }
6729 if test "$supported" = "yes" ; then
6730 BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6731 found="yes"
6732 fi
6733 fi
6734
6735
6736
6737
6738
6739
6740
6741
6742
6743
6744
6745
6746
6747
6748
6749 xorg_testset_save_CFLAGS="$CFLAGS"
6750
6751 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6752 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6754 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6755 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6756 then :
6757 printf %s "(cached) " >&6
6758 else $as_nop
6759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6760 /* end confdefs.h. */
6761 int i;
6762 _ACEOF
6763 if ac_fn_c_try_compile "$LINENO"
6764 then :
6765 xorg_cv_cc_flag_unknown_warning_option=yes
6766 else $as_nop
6767 xorg_cv_cc_flag_unknown_warning_option=no
6768 fi
6769 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6770 fi
6771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6772 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6773 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6774 CFLAGS="$xorg_testset_save_CFLAGS"
6775 fi
6776
6777 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6778 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6779 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6780 fi
6781 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6783 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6784 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6785 then :
6786 printf %s "(cached) " >&6
6787 else $as_nop
6788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6789 /* end confdefs.h. */
6790 int i;
6791 _ACEOF
6792 if ac_fn_c_try_compile "$LINENO"
6793 then :
6794 xorg_cv_cc_flag_unused_command_line_argument=yes
6795 else $as_nop
6796 xorg_cv_cc_flag_unused_command_line_argument=no
6797 fi
6798 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6799 fi
6800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6801 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6802 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6803 CFLAGS="$xorg_testset_save_CFLAGS"
6804 fi
6805
6806 found="no"
6807
6808 if test $found = "no" ; then
6809 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6810 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6811 fi
6812
6813 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6814 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6815 fi
6816
6817 CFLAGS="$CFLAGS -Wmissing-noreturn"
6818
6819 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6820 printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; }
6821 cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6822 if eval test \${$cacheid+y}
6823 then :
6824 printf %s "(cached) " >&6
6825 else $as_nop
6826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6827 /* end confdefs.h. */
6828 int i;
6829 int
6830 main (void)
6831 {
6832
6833 ;
6834 return 0;
6835 }
6836 _ACEOF
6837 if ac_fn_c_try_link "$LINENO"
6838 then :
6839 eval $cacheid=yes
6840 else $as_nop
6841 eval $cacheid=no
6842 fi
6843 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6844 conftest$ac_exeext conftest.$ac_ext
6845 fi
6846
6847
6848 CFLAGS="$xorg_testset_save_CFLAGS"
6849
6850 eval supported=\$$cacheid
6851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6852 printf "%s\n" "$supported" >&6; }
6853 if test "$supported" = "yes" ; then
6854 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6855 found="yes"
6856 fi
6857 fi
6858
6859
6860
6861
6862
6863
6864
6865
6866
6867
6868
6869
6870
6871
6872
6873 xorg_testset_save_CFLAGS="$CFLAGS"
6874
6875 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6876 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6878 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6879 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6880 then :
6881 printf %s "(cached) " >&6
6882 else $as_nop
6883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6884 /* end confdefs.h. */
6885 int i;
6886 _ACEOF
6887 if ac_fn_c_try_compile "$LINENO"
6888 then :
6889 xorg_cv_cc_flag_unknown_warning_option=yes
6890 else $as_nop
6891 xorg_cv_cc_flag_unknown_warning_option=no
6892 fi
6893 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6894 fi
6895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6896 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6897 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6898 CFLAGS="$xorg_testset_save_CFLAGS"
6899 fi
6900
6901 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6902 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6903 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6904 fi
6905 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6907 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6908 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6909 then :
6910 printf %s "(cached) " >&6
6911 else $as_nop
6912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6913 /* end confdefs.h. */
6914 int i;
6915 _ACEOF
6916 if ac_fn_c_try_compile "$LINENO"
6917 then :
6918 xorg_cv_cc_flag_unused_command_line_argument=yes
6919 else $as_nop
6920 xorg_cv_cc_flag_unused_command_line_argument=no
6921 fi
6922 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6923 fi
6924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6925 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6926 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6927 CFLAGS="$xorg_testset_save_CFLAGS"
6928 fi
6929
6930 found="no"
6931
6932 if test $found = "no" ; then
6933 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6934 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6935 fi
6936
6937 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6938 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6939 fi
6940
6941 CFLAGS="$CFLAGS -Wmissing-format-attribute"
6942
6943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6944 printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6945 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6946 if eval test \${$cacheid+y}
6947 then :
6948 printf %s "(cached) " >&6
6949 else $as_nop
6950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6951 /* end confdefs.h. */
6952 int i;
6953 int
6954 main (void)
6955 {
6956
6957 ;
6958 return 0;
6959 }
6960 _ACEOF
6961 if ac_fn_c_try_link "$LINENO"
6962 then :
6963 eval $cacheid=yes
6964 else $as_nop
6965 eval $cacheid=no
6966 fi
6967 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6968 conftest$ac_exeext conftest.$ac_ext
6969 fi
6970
6971
6972 CFLAGS="$xorg_testset_save_CFLAGS"
6973
6974 eval supported=\$$cacheid
6975 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6976 printf "%s\n" "$supported" >&6; }
6977 if test "$supported" = "yes" ; then
6978 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6979 found="yes"
6980 fi
6981 fi
6982
6983
6984
6985
6986
6987
6988
6989
6990
6991
6992
6993
6994
6995
6996
6997 xorg_testset_save_CFLAGS="$CFLAGS"
6998
6999 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7000 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7001 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7002 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7003 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7004 then :
7005 printf %s "(cached) " >&6
7006 else $as_nop
7007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7008 /* end confdefs.h. */
7009 int i;
7010 _ACEOF
7011 if ac_fn_c_try_compile "$LINENO"
7012 then :
7013 xorg_cv_cc_flag_unknown_warning_option=yes
7014 else $as_nop
7015 xorg_cv_cc_flag_unknown_warning_option=no
7016 fi
7017 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7018 fi
7019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7020 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7021 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7022 CFLAGS="$xorg_testset_save_CFLAGS"
7023 fi
7024
7025 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7026 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7027 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7028 fi
7029 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7031 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7032 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7033 then :
7034 printf %s "(cached) " >&6
7035 else $as_nop
7036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7037 /* end confdefs.h. */
7038 int i;
7039 _ACEOF
7040 if ac_fn_c_try_compile "$LINENO"
7041 then :
7042 xorg_cv_cc_flag_unused_command_line_argument=yes
7043 else $as_nop
7044 xorg_cv_cc_flag_unused_command_line_argument=no
7045 fi
7046 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7047 fi
7048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7049 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7050 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7051 CFLAGS="$xorg_testset_save_CFLAGS"
7052 fi
7053
7054 found="no"
7055
7056 if test $found = "no" ; then
7057 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7058 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7059 fi
7060
7061 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7062 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7063 fi
7064
7065 CFLAGS="$CFLAGS -Wredundant-decls"
7066
7067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
7068 printf %s "checking if $CC supports -Wredundant-decls... " >&6; }
7069 cacheid=xorg_cv_cc_flag__Wredundant_decls
7070 if eval test \${$cacheid+y}
7071 then :
7072 printf %s "(cached) " >&6
7073 else $as_nop
7074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7075 /* end confdefs.h. */
7076 int i;
7077 int
7078 main (void)
7079 {
7080
7081 ;
7082 return 0;
7083 }
7084 _ACEOF
7085 if ac_fn_c_try_link "$LINENO"
7086 then :
7087 eval $cacheid=yes
7088 else $as_nop
7089 eval $cacheid=no
7090 fi
7091 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7092 conftest$ac_exeext conftest.$ac_ext
7093 fi
7094
7095
7096 CFLAGS="$xorg_testset_save_CFLAGS"
7097
7098 eval supported=\$$cacheid
7099 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7100 printf "%s\n" "$supported" >&6; }
7101 if test "$supported" = "yes" ; then
7102 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
7103 found="yes"
7104 fi
7105 fi
7106
7107
7108
7109
7110
7111
7112
7113
7114
7115
7116
7117
7118
7119
7120
7121 xorg_testset_save_CFLAGS="$CFLAGS"
7122
7123 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7124 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7126 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7127 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7128 then :
7129 printf %s "(cached) " >&6
7130 else $as_nop
7131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7132 /* end confdefs.h. */
7133 int i;
7134 _ACEOF
7135 if ac_fn_c_try_compile "$LINENO"
7136 then :
7137 xorg_cv_cc_flag_unknown_warning_option=yes
7138 else $as_nop
7139 xorg_cv_cc_flag_unknown_warning_option=no
7140 fi
7141 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7142 fi
7143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7144 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7145 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7146 CFLAGS="$xorg_testset_save_CFLAGS"
7147 fi
7148
7149 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7150 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7151 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7152 fi
7153 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7154 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7155 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7156 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7157 then :
7158 printf %s "(cached) " >&6
7159 else $as_nop
7160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7161 /* end confdefs.h. */
7162 int i;
7163 _ACEOF
7164 if ac_fn_c_try_compile "$LINENO"
7165 then :
7166 xorg_cv_cc_flag_unused_command_line_argument=yes
7167 else $as_nop
7168 xorg_cv_cc_flag_unused_command_line_argument=no
7169 fi
7170 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7171 fi
7172 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7173 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7174 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7175 CFLAGS="$xorg_testset_save_CFLAGS"
7176 fi
7177
7178 found="no"
7179
7180 if test $found = "no" ; then
7181 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7182 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7183 fi
7184
7185 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7186 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7187 fi
7188
7189 CFLAGS="$CFLAGS -Wlogical-op"
7190
7191 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
7192 printf %s "checking if $CC supports -Wlogical-op... " >&6; }
7193 cacheid=xorg_cv_cc_flag__Wlogical_op
7194 if eval test \${$cacheid+y}
7195 then :
7196 printf %s "(cached) " >&6
7197 else $as_nop
7198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7199 /* end confdefs.h. */
7200 int i;
7201 int
7202 main (void)
7203 {
7204
7205 ;
7206 return 0;
7207 }
7208 _ACEOF
7209 if ac_fn_c_try_link "$LINENO"
7210 then :
7211 eval $cacheid=yes
7212 else $as_nop
7213 eval $cacheid=no
7214 fi
7215 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7216 conftest$ac_exeext conftest.$ac_ext
7217 fi
7218
7219
7220 CFLAGS="$xorg_testset_save_CFLAGS"
7221
7222 eval supported=\$$cacheid
7223 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7224 printf "%s\n" "$supported" >&6; }
7225 if test "$supported" = "yes" ; then
7226 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
7227 found="yes"
7228 fi
7229 fi
7230
7231
7232
7233 # These are currently disabled because they are noisy. They will be enabled
7234 # in the future once the codebase is sufficiently modernized to silence
7235 # them. For now, I don't want them to drown out the other warnings.
7236 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
7237 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
7238 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
7239
7240 # Turn some warnings into errors, so we don't accidently get successful builds
7241 # when there are problems that should be fixed.
7242
7243 if test "x$SELECTIVE_WERROR" = "xyes" ; then
7244
7245
7246
7247
7248
7249
7250
7251
7252
7253
7254
7255
7256
7257 xorg_testset_save_CFLAGS="$CFLAGS"
7258
7259 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7260 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7261 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7262 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7263 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7264 then :
7265 printf %s "(cached) " >&6
7266 else $as_nop
7267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7268 /* end confdefs.h. */
7269 int i;
7270 _ACEOF
7271 if ac_fn_c_try_compile "$LINENO"
7272 then :
7273 xorg_cv_cc_flag_unknown_warning_option=yes
7274 else $as_nop
7275 xorg_cv_cc_flag_unknown_warning_option=no
7276 fi
7277 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7278 fi
7279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7280 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7281 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7282 CFLAGS="$xorg_testset_save_CFLAGS"
7283 fi
7284
7285 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7286 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7287 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7288 fi
7289 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7291 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7292 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7293 then :
7294 printf %s "(cached) " >&6
7295 else $as_nop
7296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7297 /* end confdefs.h. */
7298 int i;
7299 _ACEOF
7300 if ac_fn_c_try_compile "$LINENO"
7301 then :
7302 xorg_cv_cc_flag_unused_command_line_argument=yes
7303 else $as_nop
7304 xorg_cv_cc_flag_unused_command_line_argument=no
7305 fi
7306 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7307 fi
7308 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7309 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7310 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7311 CFLAGS="$xorg_testset_save_CFLAGS"
7312 fi
7313
7314 found="no"
7315
7316 if test $found = "no" ; then
7317 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7318 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7319 fi
7320
7321 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7322 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7323 fi
7324
7325 CFLAGS="$CFLAGS -Werror=implicit"
7326
7327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
7328 printf %s "checking if $CC supports -Werror=implicit... " >&6; }
7329 cacheid=xorg_cv_cc_flag__Werror_implicit
7330 if eval test \${$cacheid+y}
7331 then :
7332 printf %s "(cached) " >&6
7333 else $as_nop
7334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7335 /* end confdefs.h. */
7336 int i;
7337 int
7338 main (void)
7339 {
7340
7341 ;
7342 return 0;
7343 }
7344 _ACEOF
7345 if ac_fn_c_try_link "$LINENO"
7346 then :
7347 eval $cacheid=yes
7348 else $as_nop
7349 eval $cacheid=no
7350 fi
7351 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7352 conftest$ac_exeext conftest.$ac_ext
7353 fi
7354
7355
7356 CFLAGS="$xorg_testset_save_CFLAGS"
7357
7358 eval supported=\$$cacheid
7359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7360 printf "%s\n" "$supported" >&6; }
7361 if test "$supported" = "yes" ; then
7362 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
7363 found="yes"
7364 fi
7365 fi
7366
7367 if test $found = "no" ; then
7368 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7369 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7370 fi
7371
7372 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7373 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7374 fi
7375
7376 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7377
7378 { 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
7379 printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
7380 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
7381 if eval test \${$cacheid+y}
7382 then :
7383 printf %s "(cached) " >&6
7384 else $as_nop
7385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7386 /* end confdefs.h. */
7387 int i;
7388 int
7389 main (void)
7390 {
7391
7392 ;
7393 return 0;
7394 }
7395 _ACEOF
7396 if ac_fn_c_try_link "$LINENO"
7397 then :
7398 eval $cacheid=yes
7399 else $as_nop
7400 eval $cacheid=no
7401 fi
7402 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7403 conftest$ac_exeext conftest.$ac_ext
7404 fi
7405
7406
7407 CFLAGS="$xorg_testset_save_CFLAGS"
7408
7409 eval supported=\$$cacheid
7410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7411 printf "%s\n" "$supported" >&6; }
7412 if test "$supported" = "yes" ; then
7413 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7414 found="yes"
7415 fi
7416 fi
7417
7418
7419
7420
7421
7422
7423
7424
7425
7426
7427
7428
7429
7430
7431
7432 xorg_testset_save_CFLAGS="$CFLAGS"
7433
7434 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7435 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7436 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7437 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7438 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7439 then :
7440 printf %s "(cached) " >&6
7441 else $as_nop
7442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7443 /* end confdefs.h. */
7444 int i;
7445 _ACEOF
7446 if ac_fn_c_try_compile "$LINENO"
7447 then :
7448 xorg_cv_cc_flag_unknown_warning_option=yes
7449 else $as_nop
7450 xorg_cv_cc_flag_unknown_warning_option=no
7451 fi
7452 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7453 fi
7454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7455 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7456 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7457 CFLAGS="$xorg_testset_save_CFLAGS"
7458 fi
7459
7460 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7461 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7462 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7463 fi
7464 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7465 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7466 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7467 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7468 then :
7469 printf %s "(cached) " >&6
7470 else $as_nop
7471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7472 /* end confdefs.h. */
7473 int i;
7474 _ACEOF
7475 if ac_fn_c_try_compile "$LINENO"
7476 then :
7477 xorg_cv_cc_flag_unused_command_line_argument=yes
7478 else $as_nop
7479 xorg_cv_cc_flag_unused_command_line_argument=no
7480 fi
7481 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7482 fi
7483 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7484 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7485 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7486 CFLAGS="$xorg_testset_save_CFLAGS"
7487 fi
7488
7489 found="no"
7490
7491 if test $found = "no" ; then
7492 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7493 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7494 fi
7495
7496 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7497 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7498 fi
7499
7500 CFLAGS="$CFLAGS -Werror=nonnull"
7501
7502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
7503 printf %s "checking if $CC supports -Werror=nonnull... " >&6; }
7504 cacheid=xorg_cv_cc_flag__Werror_nonnull
7505 if eval test \${$cacheid+y}
7506 then :
7507 printf %s "(cached) " >&6
7508 else $as_nop
7509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7510 /* end confdefs.h. */
7511 int i;
7512 int
7513 main (void)
7514 {
7515
7516 ;
7517 return 0;
7518 }
7519 _ACEOF
7520 if ac_fn_c_try_link "$LINENO"
7521 then :
7522 eval $cacheid=yes
7523 else $as_nop
7524 eval $cacheid=no
7525 fi
7526 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7527 conftest$ac_exeext conftest.$ac_ext
7528 fi
7529
7530
7531 CFLAGS="$xorg_testset_save_CFLAGS"
7532
7533 eval supported=\$$cacheid
7534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7535 printf "%s\n" "$supported" >&6; }
7536 if test "$supported" = "yes" ; then
7537 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7538 found="yes"
7539 fi
7540 fi
7541
7542
7543
7544
7545
7546
7547
7548
7549
7550
7551
7552
7553
7554
7555
7556 xorg_testset_save_CFLAGS="$CFLAGS"
7557
7558 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7559 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7561 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7562 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7563 then :
7564 printf %s "(cached) " >&6
7565 else $as_nop
7566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7567 /* end confdefs.h. */
7568 int i;
7569 _ACEOF
7570 if ac_fn_c_try_compile "$LINENO"
7571 then :
7572 xorg_cv_cc_flag_unknown_warning_option=yes
7573 else $as_nop
7574 xorg_cv_cc_flag_unknown_warning_option=no
7575 fi
7576 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7577 fi
7578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7579 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7580 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7581 CFLAGS="$xorg_testset_save_CFLAGS"
7582 fi
7583
7584 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7585 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7586 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7587 fi
7588 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7589 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7590 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7591 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7592 then :
7593 printf %s "(cached) " >&6
7594 else $as_nop
7595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7596 /* end confdefs.h. */
7597 int i;
7598 _ACEOF
7599 if ac_fn_c_try_compile "$LINENO"
7600 then :
7601 xorg_cv_cc_flag_unused_command_line_argument=yes
7602 else $as_nop
7603 xorg_cv_cc_flag_unused_command_line_argument=no
7604 fi
7605 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7606 fi
7607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7608 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7609 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7610 CFLAGS="$xorg_testset_save_CFLAGS"
7611 fi
7612
7613 found="no"
7614
7615 if test $found = "no" ; then
7616 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7617 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7618 fi
7619
7620 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7621 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7622 fi
7623
7624 CFLAGS="$CFLAGS -Werror=init-self"
7625
7626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7627 printf %s "checking if $CC supports -Werror=init-self... " >&6; }
7628 cacheid=xorg_cv_cc_flag__Werror_init_self
7629 if eval test \${$cacheid+y}
7630 then :
7631 printf %s "(cached) " >&6
7632 else $as_nop
7633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7634 /* end confdefs.h. */
7635 int i;
7636 int
7637 main (void)
7638 {
7639
7640 ;
7641 return 0;
7642 }
7643 _ACEOF
7644 if ac_fn_c_try_link "$LINENO"
7645 then :
7646 eval $cacheid=yes
7647 else $as_nop
7648 eval $cacheid=no
7649 fi
7650 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7651 conftest$ac_exeext conftest.$ac_ext
7652 fi
7653
7654
7655 CFLAGS="$xorg_testset_save_CFLAGS"
7656
7657 eval supported=\$$cacheid
7658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7659 printf "%s\n" "$supported" >&6; }
7660 if test "$supported" = "yes" ; then
7661 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7662 found="yes"
7663 fi
7664 fi
7665
7666
7667
7668
7669
7670
7671
7672
7673
7674
7675
7676
7677
7678
7679
7680 xorg_testset_save_CFLAGS="$CFLAGS"
7681
7682 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7683 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7684 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7685 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7686 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7687 then :
7688 printf %s "(cached) " >&6
7689 else $as_nop
7690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7691 /* end confdefs.h. */
7692 int i;
7693 _ACEOF
7694 if ac_fn_c_try_compile "$LINENO"
7695 then :
7696 xorg_cv_cc_flag_unknown_warning_option=yes
7697 else $as_nop
7698 xorg_cv_cc_flag_unknown_warning_option=no
7699 fi
7700 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7701 fi
7702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7703 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7704 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7705 CFLAGS="$xorg_testset_save_CFLAGS"
7706 fi
7707
7708 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7709 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7710 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7711 fi
7712 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7714 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7715 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7716 then :
7717 printf %s "(cached) " >&6
7718 else $as_nop
7719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7720 /* end confdefs.h. */
7721 int i;
7722 _ACEOF
7723 if ac_fn_c_try_compile "$LINENO"
7724 then :
7725 xorg_cv_cc_flag_unused_command_line_argument=yes
7726 else $as_nop
7727 xorg_cv_cc_flag_unused_command_line_argument=no
7728 fi
7729 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7730 fi
7731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7732 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7733 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7734 CFLAGS="$xorg_testset_save_CFLAGS"
7735 fi
7736
7737 found="no"
7738
7739 if test $found = "no" ; then
7740 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7741 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7742 fi
7743
7744 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7745 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7746 fi
7747
7748 CFLAGS="$CFLAGS -Werror=main"
7749
7750 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7751 printf %s "checking if $CC supports -Werror=main... " >&6; }
7752 cacheid=xorg_cv_cc_flag__Werror_main
7753 if eval test \${$cacheid+y}
7754 then :
7755 printf %s "(cached) " >&6
7756 else $as_nop
7757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7758 /* end confdefs.h. */
7759 int i;
7760 int
7761 main (void)
7762 {
7763
7764 ;
7765 return 0;
7766 }
7767 _ACEOF
7768 if ac_fn_c_try_link "$LINENO"
7769 then :
7770 eval $cacheid=yes
7771 else $as_nop
7772 eval $cacheid=no
7773 fi
7774 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7775 conftest$ac_exeext conftest.$ac_ext
7776 fi
7777
7778
7779 CFLAGS="$xorg_testset_save_CFLAGS"
7780
7781 eval supported=\$$cacheid
7782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7783 printf "%s\n" "$supported" >&6; }
7784 if test "$supported" = "yes" ; then
7785 BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7786 found="yes"
7787 fi
7788 fi
7789
7790
7791
7792
7793
7794
7795
7796
7797
7798
7799
7800
7801
7802
7803
7804 xorg_testset_save_CFLAGS="$CFLAGS"
7805
7806 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7807 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7809 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7810 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7811 then :
7812 printf %s "(cached) " >&6
7813 else $as_nop
7814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7815 /* end confdefs.h. */
7816 int i;
7817 _ACEOF
7818 if ac_fn_c_try_compile "$LINENO"
7819 then :
7820 xorg_cv_cc_flag_unknown_warning_option=yes
7821 else $as_nop
7822 xorg_cv_cc_flag_unknown_warning_option=no
7823 fi
7824 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7825 fi
7826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7827 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7828 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7829 CFLAGS="$xorg_testset_save_CFLAGS"
7830 fi
7831
7832 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7833 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7834 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7835 fi
7836 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7838 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7839 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7840 then :
7841 printf %s "(cached) " >&6
7842 else $as_nop
7843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7844 /* end confdefs.h. */
7845 int i;
7846 _ACEOF
7847 if ac_fn_c_try_compile "$LINENO"
7848 then :
7849 xorg_cv_cc_flag_unused_command_line_argument=yes
7850 else $as_nop
7851 xorg_cv_cc_flag_unused_command_line_argument=no
7852 fi
7853 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7854 fi
7855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7856 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7857 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7858 CFLAGS="$xorg_testset_save_CFLAGS"
7859 fi
7860
7861 found="no"
7862
7863 if test $found = "no" ; then
7864 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7865 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7866 fi
7867
7868 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7869 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7870 fi
7871
7872 CFLAGS="$CFLAGS -Werror=missing-braces"
7873
7874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
7875 printf %s "checking if $CC supports -Werror=missing-braces... " >&6; }
7876 cacheid=xorg_cv_cc_flag__Werror_missing_braces
7877 if eval test \${$cacheid+y}
7878 then :
7879 printf %s "(cached) " >&6
7880 else $as_nop
7881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7882 /* end confdefs.h. */
7883 int i;
7884 int
7885 main (void)
7886 {
7887
7888 ;
7889 return 0;
7890 }
7891 _ACEOF
7892 if ac_fn_c_try_link "$LINENO"
7893 then :
7894 eval $cacheid=yes
7895 else $as_nop
7896 eval $cacheid=no
7897 fi
7898 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7899 conftest$ac_exeext conftest.$ac_ext
7900 fi
7901
7902
7903 CFLAGS="$xorg_testset_save_CFLAGS"
7904
7905 eval supported=\$$cacheid
7906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7907 printf "%s\n" "$supported" >&6; }
7908 if test "$supported" = "yes" ; then
7909 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7910 found="yes"
7911 fi
7912 fi
7913
7914
7915
7916
7917
7918
7919
7920
7921
7922
7923
7924
7925
7926
7927
7928 xorg_testset_save_CFLAGS="$CFLAGS"
7929
7930 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7931 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7933 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7934 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7935 then :
7936 printf %s "(cached) " >&6
7937 else $as_nop
7938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7939 /* end confdefs.h. */
7940 int i;
7941 _ACEOF
7942 if ac_fn_c_try_compile "$LINENO"
7943 then :
7944 xorg_cv_cc_flag_unknown_warning_option=yes
7945 else $as_nop
7946 xorg_cv_cc_flag_unknown_warning_option=no
7947 fi
7948 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7949 fi
7950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7951 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7952 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7953 CFLAGS="$xorg_testset_save_CFLAGS"
7954 fi
7955
7956 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7957 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7958 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7959 fi
7960 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7962 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7963 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7964 then :
7965 printf %s "(cached) " >&6
7966 else $as_nop
7967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7968 /* end confdefs.h. */
7969 int i;
7970 _ACEOF
7971 if ac_fn_c_try_compile "$LINENO"
7972 then :
7973 xorg_cv_cc_flag_unused_command_line_argument=yes
7974 else $as_nop
7975 xorg_cv_cc_flag_unused_command_line_argument=no
7976 fi
7977 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7978 fi
7979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7980 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7981 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7982 CFLAGS="$xorg_testset_save_CFLAGS"
7983 fi
7984
7985 found="no"
7986
7987 if test $found = "no" ; then
7988 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7989 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7990 fi
7991
7992 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7993 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7994 fi
7995
7996 CFLAGS="$CFLAGS -Werror=sequence-point"
7997
7998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
7999 printf %s "checking if $CC supports -Werror=sequence-point... " >&6; }
8000 cacheid=xorg_cv_cc_flag__Werror_sequence_point
8001 if eval test \${$cacheid+y}
8002 then :
8003 printf %s "(cached) " >&6
8004 else $as_nop
8005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8006 /* end confdefs.h. */
8007 int i;
8008 int
8009 main (void)
8010 {
8011
8012 ;
8013 return 0;
8014 }
8015 _ACEOF
8016 if ac_fn_c_try_link "$LINENO"
8017 then :
8018 eval $cacheid=yes
8019 else $as_nop
8020 eval $cacheid=no
8021 fi
8022 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8023 conftest$ac_exeext conftest.$ac_ext
8024 fi
8025
8026
8027 CFLAGS="$xorg_testset_save_CFLAGS"
8028
8029 eval supported=\$$cacheid
8030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8031 printf "%s\n" "$supported" >&6; }
8032 if test "$supported" = "yes" ; then
8033 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
8034 found="yes"
8035 fi
8036 fi
8037
8038
8039
8040
8041
8042
8043
8044
8045
8046
8047
8048
8049
8050
8051
8052 xorg_testset_save_CFLAGS="$CFLAGS"
8053
8054 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8055 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8057 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8058 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8059 then :
8060 printf %s "(cached) " >&6
8061 else $as_nop
8062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8063 /* end confdefs.h. */
8064 int i;
8065 _ACEOF
8066 if ac_fn_c_try_compile "$LINENO"
8067 then :
8068 xorg_cv_cc_flag_unknown_warning_option=yes
8069 else $as_nop
8070 xorg_cv_cc_flag_unknown_warning_option=no
8071 fi
8072 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8073 fi
8074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8075 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8076 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8077 CFLAGS="$xorg_testset_save_CFLAGS"
8078 fi
8079
8080 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8081 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8082 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8083 fi
8084 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8086 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8087 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8088 then :
8089 printf %s "(cached) " >&6
8090 else $as_nop
8091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8092 /* end confdefs.h. */
8093 int i;
8094 _ACEOF
8095 if ac_fn_c_try_compile "$LINENO"
8096 then :
8097 xorg_cv_cc_flag_unused_command_line_argument=yes
8098 else $as_nop
8099 xorg_cv_cc_flag_unused_command_line_argument=no
8100 fi
8101 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8102 fi
8103 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8104 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8105 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8106 CFLAGS="$xorg_testset_save_CFLAGS"
8107 fi
8108
8109 found="no"
8110
8111 if test $found = "no" ; then
8112 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8113 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8114 fi
8115
8116 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8117 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8118 fi
8119
8120 CFLAGS="$CFLAGS -Werror=return-type"
8121
8122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
8123 printf %s "checking if $CC supports -Werror=return-type... " >&6; }
8124 cacheid=xorg_cv_cc_flag__Werror_return_type
8125 if eval test \${$cacheid+y}
8126 then :
8127 printf %s "(cached) " >&6
8128 else $as_nop
8129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8130 /* end confdefs.h. */
8131 int i;
8132 int
8133 main (void)
8134 {
8135
8136 ;
8137 return 0;
8138 }
8139 _ACEOF
8140 if ac_fn_c_try_link "$LINENO"
8141 then :
8142 eval $cacheid=yes
8143 else $as_nop
8144 eval $cacheid=no
8145 fi
8146 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8147 conftest$ac_exeext conftest.$ac_ext
8148 fi
8149
8150
8151 CFLAGS="$xorg_testset_save_CFLAGS"
8152
8153 eval supported=\$$cacheid
8154 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8155 printf "%s\n" "$supported" >&6; }
8156 if test "$supported" = "yes" ; then
8157 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
8158 found="yes"
8159 fi
8160 fi
8161
8162 if test $found = "no" ; then
8163 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8164 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8165 fi
8166
8167 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8168 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8169 fi
8170
8171 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8172
8173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
8174 printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
8175 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
8176 if eval test \${$cacheid+y}
8177 then :
8178 printf %s "(cached) " >&6
8179 else $as_nop
8180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8181 /* end confdefs.h. */
8182 int i;
8183 int
8184 main (void)
8185 {
8186
8187 ;
8188 return 0;
8189 }
8190 _ACEOF
8191 if ac_fn_c_try_link "$LINENO"
8192 then :
8193 eval $cacheid=yes
8194 else $as_nop
8195 eval $cacheid=no
8196 fi
8197 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8198 conftest$ac_exeext conftest.$ac_ext
8199 fi
8200
8201
8202 CFLAGS="$xorg_testset_save_CFLAGS"
8203
8204 eval supported=\$$cacheid
8205 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8206 printf "%s\n" "$supported" >&6; }
8207 if test "$supported" = "yes" ; then
8208 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8209 found="yes"
8210 fi
8211 fi
8212
8213
8214
8215
8216
8217
8218
8219
8220
8221
8222
8223
8224
8225
8226
8227 xorg_testset_save_CFLAGS="$CFLAGS"
8228
8229 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8230 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8232 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8233 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8234 then :
8235 printf %s "(cached) " >&6
8236 else $as_nop
8237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8238 /* end confdefs.h. */
8239 int i;
8240 _ACEOF
8241 if ac_fn_c_try_compile "$LINENO"
8242 then :
8243 xorg_cv_cc_flag_unknown_warning_option=yes
8244 else $as_nop
8245 xorg_cv_cc_flag_unknown_warning_option=no
8246 fi
8247 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8248 fi
8249 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8250 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8251 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8252 CFLAGS="$xorg_testset_save_CFLAGS"
8253 fi
8254
8255 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8256 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8257 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8258 fi
8259 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8260 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8261 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8262 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8263 then :
8264 printf %s "(cached) " >&6
8265 else $as_nop
8266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8267 /* end confdefs.h. */
8268 int i;
8269 _ACEOF
8270 if ac_fn_c_try_compile "$LINENO"
8271 then :
8272 xorg_cv_cc_flag_unused_command_line_argument=yes
8273 else $as_nop
8274 xorg_cv_cc_flag_unused_command_line_argument=no
8275 fi
8276 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8277 fi
8278 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8279 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8280 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8281 CFLAGS="$xorg_testset_save_CFLAGS"
8282 fi
8283
8284 found="no"
8285
8286 if test $found = "no" ; then
8287 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8288 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8289 fi
8290
8291 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8292 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8293 fi
8294
8295 CFLAGS="$CFLAGS -Werror=trigraphs"
8296
8297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
8298 printf %s "checking if $CC supports -Werror=trigraphs... " >&6; }
8299 cacheid=xorg_cv_cc_flag__Werror_trigraphs
8300 if eval test \${$cacheid+y}
8301 then :
8302 printf %s "(cached) " >&6
8303 else $as_nop
8304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8305 /* end confdefs.h. */
8306 int i;
8307 int
8308 main (void)
8309 {
8310
8311 ;
8312 return 0;
8313 }
8314 _ACEOF
8315 if ac_fn_c_try_link "$LINENO"
8316 then :
8317 eval $cacheid=yes
8318 else $as_nop
8319 eval $cacheid=no
8320 fi
8321 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8322 conftest$ac_exeext conftest.$ac_ext
8323 fi
8324
8325
8326 CFLAGS="$xorg_testset_save_CFLAGS"
8327
8328 eval supported=\$$cacheid
8329 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8330 printf "%s\n" "$supported" >&6; }
8331 if test "$supported" = "yes" ; then
8332 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
8333 found="yes"
8334 fi
8335 fi
8336
8337
8338
8339
8340
8341
8342
8343
8344
8345
8346
8347
8348
8349
8350
8351 xorg_testset_save_CFLAGS="$CFLAGS"
8352
8353 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8354 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8355 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8356 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8357 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8358 then :
8359 printf %s "(cached) " >&6
8360 else $as_nop
8361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8362 /* end confdefs.h. */
8363 int i;
8364 _ACEOF
8365 if ac_fn_c_try_compile "$LINENO"
8366 then :
8367 xorg_cv_cc_flag_unknown_warning_option=yes
8368 else $as_nop
8369 xorg_cv_cc_flag_unknown_warning_option=no
8370 fi
8371 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8372 fi
8373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8374 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8375 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8376 CFLAGS="$xorg_testset_save_CFLAGS"
8377 fi
8378
8379 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8380 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8381 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8382 fi
8383 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8385 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8386 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8387 then :
8388 printf %s "(cached) " >&6
8389 else $as_nop
8390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8391 /* end confdefs.h. */
8392 int i;
8393 _ACEOF
8394 if ac_fn_c_try_compile "$LINENO"
8395 then :
8396 xorg_cv_cc_flag_unused_command_line_argument=yes
8397 else $as_nop
8398 xorg_cv_cc_flag_unused_command_line_argument=no
8399 fi
8400 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8401 fi
8402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8403 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8404 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8405 CFLAGS="$xorg_testset_save_CFLAGS"
8406 fi
8407
8408 found="no"
8409
8410 if test $found = "no" ; then
8411 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8412 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8413 fi
8414
8415 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8416 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8417 fi
8418
8419 CFLAGS="$CFLAGS -Werror=array-bounds"
8420
8421 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
8422 printf %s "checking if $CC supports -Werror=array-bounds... " >&6; }
8423 cacheid=xorg_cv_cc_flag__Werror_array_bounds
8424 if eval test \${$cacheid+y}
8425 then :
8426 printf %s "(cached) " >&6
8427 else $as_nop
8428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8429 /* end confdefs.h. */
8430 int i;
8431 int
8432 main (void)
8433 {
8434
8435 ;
8436 return 0;
8437 }
8438 _ACEOF
8439 if ac_fn_c_try_link "$LINENO"
8440 then :
8441 eval $cacheid=yes
8442 else $as_nop
8443 eval $cacheid=no
8444 fi
8445 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8446 conftest$ac_exeext conftest.$ac_ext
8447 fi
8448
8449
8450 CFLAGS="$xorg_testset_save_CFLAGS"
8451
8452 eval supported=\$$cacheid
8453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8454 printf "%s\n" "$supported" >&6; }
8455 if test "$supported" = "yes" ; then
8456 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
8457 found="yes"
8458 fi
8459 fi
8460
8461
8462
8463
8464
8465
8466
8467
8468
8469
8470
8471
8472
8473
8474
8475 xorg_testset_save_CFLAGS="$CFLAGS"
8476
8477 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8478 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8480 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8481 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8482 then :
8483 printf %s "(cached) " >&6
8484 else $as_nop
8485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8486 /* end confdefs.h. */
8487 int i;
8488 _ACEOF
8489 if ac_fn_c_try_compile "$LINENO"
8490 then :
8491 xorg_cv_cc_flag_unknown_warning_option=yes
8492 else $as_nop
8493 xorg_cv_cc_flag_unknown_warning_option=no
8494 fi
8495 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8496 fi
8497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8498 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8499 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8500 CFLAGS="$xorg_testset_save_CFLAGS"
8501 fi
8502
8503 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8504 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8505 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8506 fi
8507 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8509 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8510 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8511 then :
8512 printf %s "(cached) " >&6
8513 else $as_nop
8514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8515 /* end confdefs.h. */
8516 int i;
8517 _ACEOF
8518 if ac_fn_c_try_compile "$LINENO"
8519 then :
8520 xorg_cv_cc_flag_unused_command_line_argument=yes
8521 else $as_nop
8522 xorg_cv_cc_flag_unused_command_line_argument=no
8523 fi
8524 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8525 fi
8526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8527 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8528 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8529 CFLAGS="$xorg_testset_save_CFLAGS"
8530 fi
8531
8532 found="no"
8533
8534 if test $found = "no" ; then
8535 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8536 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8537 fi
8538
8539 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8540 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8541 fi
8542
8543 CFLAGS="$CFLAGS -Werror=write-strings"
8544
8545 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
8546 printf %s "checking if $CC supports -Werror=write-strings... " >&6; }
8547 cacheid=xorg_cv_cc_flag__Werror_write_strings
8548 if eval test \${$cacheid+y}
8549 then :
8550 printf %s "(cached) " >&6
8551 else $as_nop
8552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8553 /* end confdefs.h. */
8554 int i;
8555 int
8556 main (void)
8557 {
8558
8559 ;
8560 return 0;
8561 }
8562 _ACEOF
8563 if ac_fn_c_try_link "$LINENO"
8564 then :
8565 eval $cacheid=yes
8566 else $as_nop
8567 eval $cacheid=no
8568 fi
8569 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8570 conftest$ac_exeext conftest.$ac_ext
8571 fi
8572
8573
8574 CFLAGS="$xorg_testset_save_CFLAGS"
8575
8576 eval supported=\$$cacheid
8577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8578 printf "%s\n" "$supported" >&6; }
8579 if test "$supported" = "yes" ; then
8580 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
8581 found="yes"
8582 fi
8583 fi
8584
8585
8586
8587
8588
8589
8590
8591
8592
8593
8594
8595
8596
8597
8598
8599 xorg_testset_save_CFLAGS="$CFLAGS"
8600
8601 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8602 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8604 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8605 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8606 then :
8607 printf %s "(cached) " >&6
8608 else $as_nop
8609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8610 /* end confdefs.h. */
8611 int i;
8612 _ACEOF
8613 if ac_fn_c_try_compile "$LINENO"
8614 then :
8615 xorg_cv_cc_flag_unknown_warning_option=yes
8616 else $as_nop
8617 xorg_cv_cc_flag_unknown_warning_option=no
8618 fi
8619 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8620 fi
8621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8622 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8623 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8624 CFLAGS="$xorg_testset_save_CFLAGS"
8625 fi
8626
8627 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8628 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8629 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8630 fi
8631 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8633 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8634 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8635 then :
8636 printf %s "(cached) " >&6
8637 else $as_nop
8638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8639 /* end confdefs.h. */
8640 int i;
8641 _ACEOF
8642 if ac_fn_c_try_compile "$LINENO"
8643 then :
8644 xorg_cv_cc_flag_unused_command_line_argument=yes
8645 else $as_nop
8646 xorg_cv_cc_flag_unused_command_line_argument=no
8647 fi
8648 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8649 fi
8650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8651 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8652 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8653 CFLAGS="$xorg_testset_save_CFLAGS"
8654 fi
8655
8656 found="no"
8657
8658 if test $found = "no" ; then
8659 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8660 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8661 fi
8662
8663 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8664 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8665 fi
8666
8667 CFLAGS="$CFLAGS -Werror=address"
8668
8669 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
8670 printf %s "checking if $CC supports -Werror=address... " >&6; }
8671 cacheid=xorg_cv_cc_flag__Werror_address
8672 if eval test \${$cacheid+y}
8673 then :
8674 printf %s "(cached) " >&6
8675 else $as_nop
8676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8677 /* end confdefs.h. */
8678 int i;
8679 int
8680 main (void)
8681 {
8682
8683 ;
8684 return 0;
8685 }
8686 _ACEOF
8687 if ac_fn_c_try_link "$LINENO"
8688 then :
8689 eval $cacheid=yes
8690 else $as_nop
8691 eval $cacheid=no
8692 fi
8693 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8694 conftest$ac_exeext conftest.$ac_ext
8695 fi
8696
8697
8698 CFLAGS="$xorg_testset_save_CFLAGS"
8699
8700 eval supported=\$$cacheid
8701 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8702 printf "%s\n" "$supported" >&6; }
8703 if test "$supported" = "yes" ; then
8704 BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8705 found="yes"
8706 fi
8707 fi
8708
8709
8710
8711
8712
8713
8714
8715
8716
8717
8718
8719
8720
8721
8722
8723 xorg_testset_save_CFLAGS="$CFLAGS"
8724
8725 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8726 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8727 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8728 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8729 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8730 then :
8731 printf %s "(cached) " >&6
8732 else $as_nop
8733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8734 /* end confdefs.h. */
8735 int i;
8736 _ACEOF
8737 if ac_fn_c_try_compile "$LINENO"
8738 then :
8739 xorg_cv_cc_flag_unknown_warning_option=yes
8740 else $as_nop
8741 xorg_cv_cc_flag_unknown_warning_option=no
8742 fi
8743 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8744 fi
8745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8746 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8747 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8748 CFLAGS="$xorg_testset_save_CFLAGS"
8749 fi
8750
8751 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8752 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8753 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8754 fi
8755 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8756 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8757 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8758 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8759 then :
8760 printf %s "(cached) " >&6
8761 else $as_nop
8762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8763 /* end confdefs.h. */
8764 int i;
8765 _ACEOF
8766 if ac_fn_c_try_compile "$LINENO"
8767 then :
8768 xorg_cv_cc_flag_unused_command_line_argument=yes
8769 else $as_nop
8770 xorg_cv_cc_flag_unused_command_line_argument=no
8771 fi
8772 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8773 fi
8774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8775 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8776 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8777 CFLAGS="$xorg_testset_save_CFLAGS"
8778 fi
8779
8780 found="no"
8781
8782 if test $found = "no" ; then
8783 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8784 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8785 fi
8786
8787 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8788 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8789 fi
8790
8791 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8792
8793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
8794 printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
8795 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
8796 if eval test \${$cacheid+y}
8797 then :
8798 printf %s "(cached) " >&6
8799 else $as_nop
8800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8801 /* end confdefs.h. */
8802 int i;
8803 int
8804 main (void)
8805 {
8806
8807 ;
8808 return 0;
8809 }
8810 _ACEOF
8811 if ac_fn_c_try_link "$LINENO"
8812 then :
8813 eval $cacheid=yes
8814 else $as_nop
8815 eval $cacheid=no
8816 fi
8817 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8818 conftest$ac_exeext conftest.$ac_ext
8819 fi
8820
8821
8822 CFLAGS="$xorg_testset_save_CFLAGS"
8823
8824 eval supported=\$$cacheid
8825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8826 printf "%s\n" "$supported" >&6; }
8827 if test "$supported" = "yes" ; then
8828 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8829 found="yes"
8830 fi
8831 fi
8832
8833 if test $found = "no" ; then
8834 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8835 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8836 fi
8837
8838 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8839 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8840 fi
8841
8842 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8843
8844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8845 printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8846 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
8847 if eval test \${$cacheid+y}
8848 then :
8849 printf %s "(cached) " >&6
8850 else $as_nop
8851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8852 /* end confdefs.h. */
8853 int i;
8854 int
8855 main (void)
8856 {
8857
8858 ;
8859 return 0;
8860 }
8861 _ACEOF
8862 if ac_fn_c_try_link "$LINENO"
8863 then :
8864 eval $cacheid=yes
8865 else $as_nop
8866 eval $cacheid=no
8867 fi
8868 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8869 conftest$ac_exeext conftest.$ac_ext
8870 fi
8871
8872
8873 CFLAGS="$xorg_testset_save_CFLAGS"
8874
8875 eval supported=\$$cacheid
8876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8877 printf "%s\n" "$supported" >&6; }
8878 if test "$supported" = "yes" ; then
8879 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8880 found="yes"
8881 fi
8882 fi
8883
8884
8885
8886
8887
8888
8889
8890
8891
8892
8893
8894
8895
8896
8897
8898 xorg_testset_save_CFLAGS="$CFLAGS"
8899
8900 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8901 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8903 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8904 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8905 then :
8906 printf %s "(cached) " >&6
8907 else $as_nop
8908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8909 /* end confdefs.h. */
8910 int i;
8911 _ACEOF
8912 if ac_fn_c_try_compile "$LINENO"
8913 then :
8914 xorg_cv_cc_flag_unknown_warning_option=yes
8915 else $as_nop
8916 xorg_cv_cc_flag_unknown_warning_option=no
8917 fi
8918 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8919 fi
8920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8921 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8922 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8923 CFLAGS="$xorg_testset_save_CFLAGS"
8924 fi
8925
8926 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8927 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8928 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8929 fi
8930 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8932 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8933 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8934 then :
8935 printf %s "(cached) " >&6
8936 else $as_nop
8937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8938 /* end confdefs.h. */
8939 int i;
8940 _ACEOF
8941 if ac_fn_c_try_compile "$LINENO"
8942 then :
8943 xorg_cv_cc_flag_unused_command_line_argument=yes
8944 else $as_nop
8945 xorg_cv_cc_flag_unused_command_line_argument=no
8946 fi
8947 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8948 fi
8949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8950 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8951 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8952 CFLAGS="$xorg_testset_save_CFLAGS"
8953 fi
8954
8955 found="no"
8956
8957 if test $found = "no" ; then
8958 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8959 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8960 fi
8961
8962 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8963 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8964 fi
8965
8966 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
8967
8968 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
8969 printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
8970 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
8971 if eval test \${$cacheid+y}
8972 then :
8973 printf %s "(cached) " >&6
8974 else $as_nop
8975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8976 /* end confdefs.h. */
8977 int i;
8978 int
8979 main (void)
8980 {
8981
8982 ;
8983 return 0;
8984 }
8985 _ACEOF
8986 if ac_fn_c_try_link "$LINENO"
8987 then :
8988 eval $cacheid=yes
8989 else $as_nop
8990 eval $cacheid=no
8991 fi
8992 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8993 conftest$ac_exeext conftest.$ac_ext
8994 fi
8995
8996
8997 CFLAGS="$xorg_testset_save_CFLAGS"
8998
8999 eval supported=\$$cacheid
9000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9001 printf "%s\n" "$supported" >&6; }
9002 if test "$supported" = "yes" ; then
9003 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
9004 found="yes"
9005 fi
9006 fi
9007
9008 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
9009 else
9010 { 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
9011 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;}
9012
9013
9014
9015
9016
9017
9018
9019
9020
9021
9022
9023
9024
9025 xorg_testset_save_CFLAGS="$CFLAGS"
9026
9027 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9028 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9029 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9030 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9031 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9032 then :
9033 printf %s "(cached) " >&6
9034 else $as_nop
9035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9036 /* end confdefs.h. */
9037 int i;
9038 _ACEOF
9039 if ac_fn_c_try_compile "$LINENO"
9040 then :
9041 xorg_cv_cc_flag_unknown_warning_option=yes
9042 else $as_nop
9043 xorg_cv_cc_flag_unknown_warning_option=no
9044 fi
9045 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9046 fi
9047 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9048 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9049 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9050 CFLAGS="$xorg_testset_save_CFLAGS"
9051 fi
9052
9053 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9054 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9055 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9056 fi
9057 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9059 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9060 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9061 then :
9062 printf %s "(cached) " >&6
9063 else $as_nop
9064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9065 /* end confdefs.h. */
9066 int i;
9067 _ACEOF
9068 if ac_fn_c_try_compile "$LINENO"
9069 then :
9070 xorg_cv_cc_flag_unused_command_line_argument=yes
9071 else $as_nop
9072 xorg_cv_cc_flag_unused_command_line_argument=no
9073 fi
9074 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9075 fi
9076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9077 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9078 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9079 CFLAGS="$xorg_testset_save_CFLAGS"
9080 fi
9081
9082 found="no"
9083
9084 if test $found = "no" ; then
9085 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9086 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9087 fi
9088
9089 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9090 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9091 fi
9092
9093 CFLAGS="$CFLAGS -Wimplicit"
9094
9095 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
9096 printf %s "checking if $CC supports -Wimplicit... " >&6; }
9097 cacheid=xorg_cv_cc_flag__Wimplicit
9098 if eval test \${$cacheid+y}
9099 then :
9100 printf %s "(cached) " >&6
9101 else $as_nop
9102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9103 /* end confdefs.h. */
9104 int i;
9105 int
9106 main (void)
9107 {
9108
9109 ;
9110 return 0;
9111 }
9112 _ACEOF
9113 if ac_fn_c_try_link "$LINENO"
9114 then :
9115 eval $cacheid=yes
9116 else $as_nop
9117 eval $cacheid=no
9118 fi
9119 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9120 conftest$ac_exeext conftest.$ac_ext
9121 fi
9122
9123
9124 CFLAGS="$xorg_testset_save_CFLAGS"
9125
9126 eval supported=\$$cacheid
9127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9128 printf "%s\n" "$supported" >&6; }
9129 if test "$supported" = "yes" ; then
9130 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
9131 found="yes"
9132 fi
9133 fi
9134
9135
9136
9137
9138
9139
9140
9141
9142
9143
9144
9145
9146
9147
9148
9149 xorg_testset_save_CFLAGS="$CFLAGS"
9150
9151 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9152 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9153 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9154 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9155 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9156 then :
9157 printf %s "(cached) " >&6
9158 else $as_nop
9159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9160 /* end confdefs.h. */
9161 int i;
9162 _ACEOF
9163 if ac_fn_c_try_compile "$LINENO"
9164 then :
9165 xorg_cv_cc_flag_unknown_warning_option=yes
9166 else $as_nop
9167 xorg_cv_cc_flag_unknown_warning_option=no
9168 fi
9169 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9170 fi
9171 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9172 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9173 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9174 CFLAGS="$xorg_testset_save_CFLAGS"
9175 fi
9176
9177 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9178 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9179 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9180 fi
9181 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9183 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9184 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9185 then :
9186 printf %s "(cached) " >&6
9187 else $as_nop
9188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9189 /* end confdefs.h. */
9190 int i;
9191 _ACEOF
9192 if ac_fn_c_try_compile "$LINENO"
9193 then :
9194 xorg_cv_cc_flag_unused_command_line_argument=yes
9195 else $as_nop
9196 xorg_cv_cc_flag_unused_command_line_argument=no
9197 fi
9198 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9199 fi
9200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9201 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9202 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9203 CFLAGS="$xorg_testset_save_CFLAGS"
9204 fi
9205
9206 found="no"
9207
9208 if test $found = "no" ; then
9209 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9210 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9211 fi
9212
9213 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9214 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9215 fi
9216
9217 CFLAGS="$CFLAGS -Wnonnull"
9218
9219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
9220 printf %s "checking if $CC supports -Wnonnull... " >&6; }
9221 cacheid=xorg_cv_cc_flag__Wnonnull
9222 if eval test \${$cacheid+y}
9223 then :
9224 printf %s "(cached) " >&6
9225 else $as_nop
9226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9227 /* end confdefs.h. */
9228 int i;
9229 int
9230 main (void)
9231 {
9232
9233 ;
9234 return 0;
9235 }
9236 _ACEOF
9237 if ac_fn_c_try_link "$LINENO"
9238 then :
9239 eval $cacheid=yes
9240 else $as_nop
9241 eval $cacheid=no
9242 fi
9243 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9244 conftest$ac_exeext conftest.$ac_ext
9245 fi
9246
9247
9248 CFLAGS="$xorg_testset_save_CFLAGS"
9249
9250 eval supported=\$$cacheid
9251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9252 printf "%s\n" "$supported" >&6; }
9253 if test "$supported" = "yes" ; then
9254 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
9255 found="yes"
9256 fi
9257 fi
9258
9259
9260
9261
9262
9263
9264
9265
9266
9267
9268
9269
9270
9271
9272
9273 xorg_testset_save_CFLAGS="$CFLAGS"
9274
9275 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9276 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9277 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9278 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9279 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9280 then :
9281 printf %s "(cached) " >&6
9282 else $as_nop
9283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9284 /* end confdefs.h. */
9285 int i;
9286 _ACEOF
9287 if ac_fn_c_try_compile "$LINENO"
9288 then :
9289 xorg_cv_cc_flag_unknown_warning_option=yes
9290 else $as_nop
9291 xorg_cv_cc_flag_unknown_warning_option=no
9292 fi
9293 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9294 fi
9295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9296 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9297 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9298 CFLAGS="$xorg_testset_save_CFLAGS"
9299 fi
9300
9301 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9302 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9303 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9304 fi
9305 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9307 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9308 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9309 then :
9310 printf %s "(cached) " >&6
9311 else $as_nop
9312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9313 /* end confdefs.h. */
9314 int i;
9315 _ACEOF
9316 if ac_fn_c_try_compile "$LINENO"
9317 then :
9318 xorg_cv_cc_flag_unused_command_line_argument=yes
9319 else $as_nop
9320 xorg_cv_cc_flag_unused_command_line_argument=no
9321 fi
9322 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9323 fi
9324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9325 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9326 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9327 CFLAGS="$xorg_testset_save_CFLAGS"
9328 fi
9329
9330 found="no"
9331
9332 if test $found = "no" ; then
9333 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9334 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9335 fi
9336
9337 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9338 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9339 fi
9340
9341 CFLAGS="$CFLAGS -Winit-self"
9342
9343 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
9344 printf %s "checking if $CC supports -Winit-self... " >&6; }
9345 cacheid=xorg_cv_cc_flag__Winit_self
9346 if eval test \${$cacheid+y}
9347 then :
9348 printf %s "(cached) " >&6
9349 else $as_nop
9350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9351 /* end confdefs.h. */
9352 int i;
9353 int
9354 main (void)
9355 {
9356
9357 ;
9358 return 0;
9359 }
9360 _ACEOF
9361 if ac_fn_c_try_link "$LINENO"
9362 then :
9363 eval $cacheid=yes
9364 else $as_nop
9365 eval $cacheid=no
9366 fi
9367 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9368 conftest$ac_exeext conftest.$ac_ext
9369 fi
9370
9371
9372 CFLAGS="$xorg_testset_save_CFLAGS"
9373
9374 eval supported=\$$cacheid
9375 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9376 printf "%s\n" "$supported" >&6; }
9377 if test "$supported" = "yes" ; then
9378 BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
9379 found="yes"
9380 fi
9381 fi
9382
9383
9384
9385
9386
9387
9388
9389
9390
9391
9392
9393
9394
9395
9396
9397 xorg_testset_save_CFLAGS="$CFLAGS"
9398
9399 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9400 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9401 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9402 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9403 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9404 then :
9405 printf %s "(cached) " >&6
9406 else $as_nop
9407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9408 /* end confdefs.h. */
9409 int i;
9410 _ACEOF
9411 if ac_fn_c_try_compile "$LINENO"
9412 then :
9413 xorg_cv_cc_flag_unknown_warning_option=yes
9414 else $as_nop
9415 xorg_cv_cc_flag_unknown_warning_option=no
9416 fi
9417 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9418 fi
9419 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9420 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9421 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9422 CFLAGS="$xorg_testset_save_CFLAGS"
9423 fi
9424
9425 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9426 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9427 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9428 fi
9429 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9430 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9431 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9432 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9433 then :
9434 printf %s "(cached) " >&6
9435 else $as_nop
9436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9437 /* end confdefs.h. */
9438 int i;
9439 _ACEOF
9440 if ac_fn_c_try_compile "$LINENO"
9441 then :
9442 xorg_cv_cc_flag_unused_command_line_argument=yes
9443 else $as_nop
9444 xorg_cv_cc_flag_unused_command_line_argument=no
9445 fi
9446 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9447 fi
9448 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9449 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9450 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9451 CFLAGS="$xorg_testset_save_CFLAGS"
9452 fi
9453
9454 found="no"
9455
9456 if test $found = "no" ; then
9457 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9458 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9459 fi
9460
9461 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9462 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9463 fi
9464
9465 CFLAGS="$CFLAGS -Wmain"
9466
9467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
9468 printf %s "checking if $CC supports -Wmain... " >&6; }
9469 cacheid=xorg_cv_cc_flag__Wmain
9470 if eval test \${$cacheid+y}
9471 then :
9472 printf %s "(cached) " >&6
9473 else $as_nop
9474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9475 /* end confdefs.h. */
9476 int i;
9477 int
9478 main (void)
9479 {
9480
9481 ;
9482 return 0;
9483 }
9484 _ACEOF
9485 if ac_fn_c_try_link "$LINENO"
9486 then :
9487 eval $cacheid=yes
9488 else $as_nop
9489 eval $cacheid=no
9490 fi
9491 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9492 conftest$ac_exeext conftest.$ac_ext
9493 fi
9494
9495
9496 CFLAGS="$xorg_testset_save_CFLAGS"
9497
9498 eval supported=\$$cacheid
9499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9500 printf "%s\n" "$supported" >&6; }
9501 if test "$supported" = "yes" ; then
9502 BASE_CFLAGS="$BASE_CFLAGS -Wmain"
9503 found="yes"
9504 fi
9505 fi
9506
9507
9508
9509
9510
9511
9512
9513
9514
9515
9516
9517
9518
9519
9520
9521 xorg_testset_save_CFLAGS="$CFLAGS"
9522
9523 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9524 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9526 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9527 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9528 then :
9529 printf %s "(cached) " >&6
9530 else $as_nop
9531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9532 /* end confdefs.h. */
9533 int i;
9534 _ACEOF
9535 if ac_fn_c_try_compile "$LINENO"
9536 then :
9537 xorg_cv_cc_flag_unknown_warning_option=yes
9538 else $as_nop
9539 xorg_cv_cc_flag_unknown_warning_option=no
9540 fi
9541 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9542 fi
9543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9544 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9545 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9546 CFLAGS="$xorg_testset_save_CFLAGS"
9547 fi
9548
9549 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9550 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9551 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9552 fi
9553 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9555 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9556 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9557 then :
9558 printf %s "(cached) " >&6
9559 else $as_nop
9560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9561 /* end confdefs.h. */
9562 int i;
9563 _ACEOF
9564 if ac_fn_c_try_compile "$LINENO"
9565 then :
9566 xorg_cv_cc_flag_unused_command_line_argument=yes
9567 else $as_nop
9568 xorg_cv_cc_flag_unused_command_line_argument=no
9569 fi
9570 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9571 fi
9572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9573 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9574 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9575 CFLAGS="$xorg_testset_save_CFLAGS"
9576 fi
9577
9578 found="no"
9579
9580 if test $found = "no" ; then
9581 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9582 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9583 fi
9584
9585 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9586 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9587 fi
9588
9589 CFLAGS="$CFLAGS -Wmissing-braces"
9590
9591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
9592 printf %s "checking if $CC supports -Wmissing-braces... " >&6; }
9593 cacheid=xorg_cv_cc_flag__Wmissing_braces
9594 if eval test \${$cacheid+y}
9595 then :
9596 printf %s "(cached) " >&6
9597 else $as_nop
9598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9599 /* end confdefs.h. */
9600 int i;
9601 int
9602 main (void)
9603 {
9604
9605 ;
9606 return 0;
9607 }
9608 _ACEOF
9609 if ac_fn_c_try_link "$LINENO"
9610 then :
9611 eval $cacheid=yes
9612 else $as_nop
9613 eval $cacheid=no
9614 fi
9615 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9616 conftest$ac_exeext conftest.$ac_ext
9617 fi
9618
9619
9620 CFLAGS="$xorg_testset_save_CFLAGS"
9621
9622 eval supported=\$$cacheid
9623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9624 printf "%s\n" "$supported" >&6; }
9625 if test "$supported" = "yes" ; then
9626 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
9627 found="yes"
9628 fi
9629 fi
9630
9631
9632
9633
9634
9635
9636
9637
9638
9639
9640
9641
9642
9643
9644
9645 xorg_testset_save_CFLAGS="$CFLAGS"
9646
9647 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9648 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9650 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9651 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9652 then :
9653 printf %s "(cached) " >&6
9654 else $as_nop
9655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9656 /* end confdefs.h. */
9657 int i;
9658 _ACEOF
9659 if ac_fn_c_try_compile "$LINENO"
9660 then :
9661 xorg_cv_cc_flag_unknown_warning_option=yes
9662 else $as_nop
9663 xorg_cv_cc_flag_unknown_warning_option=no
9664 fi
9665 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9666 fi
9667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9668 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9669 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9670 CFLAGS="$xorg_testset_save_CFLAGS"
9671 fi
9672
9673 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9674 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9675 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9676 fi
9677 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9679 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9680 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9681 then :
9682 printf %s "(cached) " >&6
9683 else $as_nop
9684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9685 /* end confdefs.h. */
9686 int i;
9687 _ACEOF
9688 if ac_fn_c_try_compile "$LINENO"
9689 then :
9690 xorg_cv_cc_flag_unused_command_line_argument=yes
9691 else $as_nop
9692 xorg_cv_cc_flag_unused_command_line_argument=no
9693 fi
9694 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9695 fi
9696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9697 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9698 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9699 CFLAGS="$xorg_testset_save_CFLAGS"
9700 fi
9701
9702 found="no"
9703
9704 if test $found = "no" ; then
9705 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9706 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9707 fi
9708
9709 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9710 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9711 fi
9712
9713 CFLAGS="$CFLAGS -Wsequence-point"
9714
9715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
9716 printf %s "checking if $CC supports -Wsequence-point... " >&6; }
9717 cacheid=xorg_cv_cc_flag__Wsequence_point
9718 if eval test \${$cacheid+y}
9719 then :
9720 printf %s "(cached) " >&6
9721 else $as_nop
9722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9723 /* end confdefs.h. */
9724 int i;
9725 int
9726 main (void)
9727 {
9728
9729 ;
9730 return 0;
9731 }
9732 _ACEOF
9733 if ac_fn_c_try_link "$LINENO"
9734 then :
9735 eval $cacheid=yes
9736 else $as_nop
9737 eval $cacheid=no
9738 fi
9739 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9740 conftest$ac_exeext conftest.$ac_ext
9741 fi
9742
9743
9744 CFLAGS="$xorg_testset_save_CFLAGS"
9745
9746 eval supported=\$$cacheid
9747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9748 printf "%s\n" "$supported" >&6; }
9749 if test "$supported" = "yes" ; then
9750 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9751 found="yes"
9752 fi
9753 fi
9754
9755
9756
9757
9758
9759
9760
9761
9762
9763
9764
9765
9766
9767
9768
9769 xorg_testset_save_CFLAGS="$CFLAGS"
9770
9771 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9772 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9774 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9775 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9776 then :
9777 printf %s "(cached) " >&6
9778 else $as_nop
9779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9780 /* end confdefs.h. */
9781 int i;
9782 _ACEOF
9783 if ac_fn_c_try_compile "$LINENO"
9784 then :
9785 xorg_cv_cc_flag_unknown_warning_option=yes
9786 else $as_nop
9787 xorg_cv_cc_flag_unknown_warning_option=no
9788 fi
9789 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9790 fi
9791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9792 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9793 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9794 CFLAGS="$xorg_testset_save_CFLAGS"
9795 fi
9796
9797 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9798 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9799 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9800 fi
9801 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9803 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9804 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9805 then :
9806 printf %s "(cached) " >&6
9807 else $as_nop
9808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9809 /* end confdefs.h. */
9810 int i;
9811 _ACEOF
9812 if ac_fn_c_try_compile "$LINENO"
9813 then :
9814 xorg_cv_cc_flag_unused_command_line_argument=yes
9815 else $as_nop
9816 xorg_cv_cc_flag_unused_command_line_argument=no
9817 fi
9818 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9819 fi
9820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9821 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9822 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9823 CFLAGS="$xorg_testset_save_CFLAGS"
9824 fi
9825
9826 found="no"
9827
9828 if test $found = "no" ; then
9829 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9830 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9831 fi
9832
9833 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9834 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9835 fi
9836
9837 CFLAGS="$CFLAGS -Wreturn-type"
9838
9839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
9840 printf %s "checking if $CC supports -Wreturn-type... " >&6; }
9841 cacheid=xorg_cv_cc_flag__Wreturn_type
9842 if eval test \${$cacheid+y}
9843 then :
9844 printf %s "(cached) " >&6
9845 else $as_nop
9846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9847 /* end confdefs.h. */
9848 int i;
9849 int
9850 main (void)
9851 {
9852
9853 ;
9854 return 0;
9855 }
9856 _ACEOF
9857 if ac_fn_c_try_link "$LINENO"
9858 then :
9859 eval $cacheid=yes
9860 else $as_nop
9861 eval $cacheid=no
9862 fi
9863 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9864 conftest$ac_exeext conftest.$ac_ext
9865 fi
9866
9867
9868 CFLAGS="$xorg_testset_save_CFLAGS"
9869
9870 eval supported=\$$cacheid
9871 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9872 printf "%s\n" "$supported" >&6; }
9873 if test "$supported" = "yes" ; then
9874 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9875 found="yes"
9876 fi
9877 fi
9878
9879
9880
9881
9882
9883
9884
9885
9886
9887
9888
9889
9890
9891
9892
9893 xorg_testset_save_CFLAGS="$CFLAGS"
9894
9895 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9896 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9898 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9899 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9900 then :
9901 printf %s "(cached) " >&6
9902 else $as_nop
9903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9904 /* end confdefs.h. */
9905 int i;
9906 _ACEOF
9907 if ac_fn_c_try_compile "$LINENO"
9908 then :
9909 xorg_cv_cc_flag_unknown_warning_option=yes
9910 else $as_nop
9911 xorg_cv_cc_flag_unknown_warning_option=no
9912 fi
9913 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9914 fi
9915 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9916 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9917 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9918 CFLAGS="$xorg_testset_save_CFLAGS"
9919 fi
9920
9921 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9922 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9923 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9924 fi
9925 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9927 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9928 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9929 then :
9930 printf %s "(cached) " >&6
9931 else $as_nop
9932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9933 /* end confdefs.h. */
9934 int i;
9935 _ACEOF
9936 if ac_fn_c_try_compile "$LINENO"
9937 then :
9938 xorg_cv_cc_flag_unused_command_line_argument=yes
9939 else $as_nop
9940 xorg_cv_cc_flag_unused_command_line_argument=no
9941 fi
9942 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9943 fi
9944 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9945 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9946 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9947 CFLAGS="$xorg_testset_save_CFLAGS"
9948 fi
9949
9950 found="no"
9951
9952 if test $found = "no" ; then
9953 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9954 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9955 fi
9956
9957 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9958 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9959 fi
9960
9961 CFLAGS="$CFLAGS -Wtrigraphs"
9962
9963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
9964 printf %s "checking if $CC supports -Wtrigraphs... " >&6; }
9965 cacheid=xorg_cv_cc_flag__Wtrigraphs
9966 if eval test \${$cacheid+y}
9967 then :
9968 printf %s "(cached) " >&6
9969 else $as_nop
9970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9971 /* end confdefs.h. */
9972 int i;
9973 int
9974 main (void)
9975 {
9976
9977 ;
9978 return 0;
9979 }
9980 _ACEOF
9981 if ac_fn_c_try_link "$LINENO"
9982 then :
9983 eval $cacheid=yes
9984 else $as_nop
9985 eval $cacheid=no
9986 fi
9987 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9988 conftest$ac_exeext conftest.$ac_ext
9989 fi
9990
9991
9992 CFLAGS="$xorg_testset_save_CFLAGS"
9993
9994 eval supported=\$$cacheid
9995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9996 printf "%s\n" "$supported" >&6; }
9997 if test "$supported" = "yes" ; then
9998 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
9999 found="yes"
10000 fi
10001 fi
10002
10003
10004
10005
10006
10007
10008
10009
10010
10011
10012
10013
10014
10015
10016
10017 xorg_testset_save_CFLAGS="$CFLAGS"
10018
10019 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10020 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10022 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10023 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10024 then :
10025 printf %s "(cached) " >&6
10026 else $as_nop
10027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10028 /* end confdefs.h. */
10029 int i;
10030 _ACEOF
10031 if ac_fn_c_try_compile "$LINENO"
10032 then :
10033 xorg_cv_cc_flag_unknown_warning_option=yes
10034 else $as_nop
10035 xorg_cv_cc_flag_unknown_warning_option=no
10036 fi
10037 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10038 fi
10039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10040 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10041 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10042 CFLAGS="$xorg_testset_save_CFLAGS"
10043 fi
10044
10045 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10046 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10047 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10048 fi
10049 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10051 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10052 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10053 then :
10054 printf %s "(cached) " >&6
10055 else $as_nop
10056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10057 /* end confdefs.h. */
10058 int i;
10059 _ACEOF
10060 if ac_fn_c_try_compile "$LINENO"
10061 then :
10062 xorg_cv_cc_flag_unused_command_line_argument=yes
10063 else $as_nop
10064 xorg_cv_cc_flag_unused_command_line_argument=no
10065 fi
10066 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10067 fi
10068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10069 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10070 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10071 CFLAGS="$xorg_testset_save_CFLAGS"
10072 fi
10073
10074 found="no"
10075
10076 if test $found = "no" ; then
10077 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10078 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10079 fi
10080
10081 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10082 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10083 fi
10084
10085 CFLAGS="$CFLAGS -Warray-bounds"
10086
10087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
10088 printf %s "checking if $CC supports -Warray-bounds... " >&6; }
10089 cacheid=xorg_cv_cc_flag__Warray_bounds
10090 if eval test \${$cacheid+y}
10091 then :
10092 printf %s "(cached) " >&6
10093 else $as_nop
10094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10095 /* end confdefs.h. */
10096 int i;
10097 int
10098 main (void)
10099 {
10100
10101 ;
10102 return 0;
10103 }
10104 _ACEOF
10105 if ac_fn_c_try_link "$LINENO"
10106 then :
10107 eval $cacheid=yes
10108 else $as_nop
10109 eval $cacheid=no
10110 fi
10111 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10112 conftest$ac_exeext conftest.$ac_ext
10113 fi
10114
10115
10116 CFLAGS="$xorg_testset_save_CFLAGS"
10117
10118 eval supported=\$$cacheid
10119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10120 printf "%s\n" "$supported" >&6; }
10121 if test "$supported" = "yes" ; then
10122 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
10123 found="yes"
10124 fi
10125 fi
10126
10127
10128
10129
10130
10131
10132
10133
10134
10135
10136
10137
10138
10139
10140
10141 xorg_testset_save_CFLAGS="$CFLAGS"
10142
10143 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10144 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10145 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10146 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10147 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10148 then :
10149 printf %s "(cached) " >&6
10150 else $as_nop
10151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10152 /* end confdefs.h. */
10153 int i;
10154 _ACEOF
10155 if ac_fn_c_try_compile "$LINENO"
10156 then :
10157 xorg_cv_cc_flag_unknown_warning_option=yes
10158 else $as_nop
10159 xorg_cv_cc_flag_unknown_warning_option=no
10160 fi
10161 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10162 fi
10163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10164 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10165 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10166 CFLAGS="$xorg_testset_save_CFLAGS"
10167 fi
10168
10169 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10170 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10171 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10172 fi
10173 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10174 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10175 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10176 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10177 then :
10178 printf %s "(cached) " >&6
10179 else $as_nop
10180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10181 /* end confdefs.h. */
10182 int i;
10183 _ACEOF
10184 if ac_fn_c_try_compile "$LINENO"
10185 then :
10186 xorg_cv_cc_flag_unused_command_line_argument=yes
10187 else $as_nop
10188 xorg_cv_cc_flag_unused_command_line_argument=no
10189 fi
10190 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10191 fi
10192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10193 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10194 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10195 CFLAGS="$xorg_testset_save_CFLAGS"
10196 fi
10197
10198 found="no"
10199
10200 if test $found = "no" ; then
10201 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10202 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10203 fi
10204
10205 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10206 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10207 fi
10208
10209 CFLAGS="$CFLAGS -Wwrite-strings"
10210
10211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
10212 printf %s "checking if $CC supports -Wwrite-strings... " >&6; }
10213 cacheid=xorg_cv_cc_flag__Wwrite_strings
10214 if eval test \${$cacheid+y}
10215 then :
10216 printf %s "(cached) " >&6
10217 else $as_nop
10218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10219 /* end confdefs.h. */
10220 int i;
10221 int
10222 main (void)
10223 {
10224
10225 ;
10226 return 0;
10227 }
10228 _ACEOF
10229 if ac_fn_c_try_link "$LINENO"
10230 then :
10231 eval $cacheid=yes
10232 else $as_nop
10233 eval $cacheid=no
10234 fi
10235 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10236 conftest$ac_exeext conftest.$ac_ext
10237 fi
10238
10239
10240 CFLAGS="$xorg_testset_save_CFLAGS"
10241
10242 eval supported=\$$cacheid
10243 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10244 printf "%s\n" "$supported" >&6; }
10245 if test "$supported" = "yes" ; then
10246 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
10247 found="yes"
10248 fi
10249 fi
10250
10251
10252
10253
10254
10255
10256
10257
10258
10259
10260
10261
10262
10263
10264
10265 xorg_testset_save_CFLAGS="$CFLAGS"
10266
10267 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10268 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10269 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10270 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10271 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10272 then :
10273 printf %s "(cached) " >&6
10274 else $as_nop
10275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10276 /* end confdefs.h. */
10277 int i;
10278 _ACEOF
10279 if ac_fn_c_try_compile "$LINENO"
10280 then :
10281 xorg_cv_cc_flag_unknown_warning_option=yes
10282 else $as_nop
10283 xorg_cv_cc_flag_unknown_warning_option=no
10284 fi
10285 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10286 fi
10287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10288 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10289 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10290 CFLAGS="$xorg_testset_save_CFLAGS"
10291 fi
10292
10293 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10294 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10295 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10296 fi
10297 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10298 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10299 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10300 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10301 then :
10302 printf %s "(cached) " >&6
10303 else $as_nop
10304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10305 /* end confdefs.h. */
10306 int i;
10307 _ACEOF
10308 if ac_fn_c_try_compile "$LINENO"
10309 then :
10310 xorg_cv_cc_flag_unused_command_line_argument=yes
10311 else $as_nop
10312 xorg_cv_cc_flag_unused_command_line_argument=no
10313 fi
10314 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10315 fi
10316 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10317 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10318 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10319 CFLAGS="$xorg_testset_save_CFLAGS"
10320 fi
10321
10322 found="no"
10323
10324 if test $found = "no" ; then
10325 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10326 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10327 fi
10328
10329 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10330 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10331 fi
10332
10333 CFLAGS="$CFLAGS -Waddress"
10334
10335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
10336 printf %s "checking if $CC supports -Waddress... " >&6; }
10337 cacheid=xorg_cv_cc_flag__Waddress
10338 if eval test \${$cacheid+y}
10339 then :
10340 printf %s "(cached) " >&6
10341 else $as_nop
10342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10343 /* end confdefs.h. */
10344 int i;
10345 int
10346 main (void)
10347 {
10348
10349 ;
10350 return 0;
10351 }
10352 _ACEOF
10353 if ac_fn_c_try_link "$LINENO"
10354 then :
10355 eval $cacheid=yes
10356 else $as_nop
10357 eval $cacheid=no
10358 fi
10359 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10360 conftest$ac_exeext conftest.$ac_ext
10361 fi
10362
10363
10364 CFLAGS="$xorg_testset_save_CFLAGS"
10365
10366 eval supported=\$$cacheid
10367 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10368 printf "%s\n" "$supported" >&6; }
10369 if test "$supported" = "yes" ; then
10370 BASE_CFLAGS="$BASE_CFLAGS -Waddress"
10371 found="yes"
10372 fi
10373 fi
10374
10375
10376
10377
10378
10379
10380
10381
10382
10383
10384
10385
10386
10387
10388
10389 xorg_testset_save_CFLAGS="$CFLAGS"
10390
10391 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10392 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10393 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10394 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10395 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10396 then :
10397 printf %s "(cached) " >&6
10398 else $as_nop
10399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10400 /* end confdefs.h. */
10401 int i;
10402 _ACEOF
10403 if ac_fn_c_try_compile "$LINENO"
10404 then :
10405 xorg_cv_cc_flag_unknown_warning_option=yes
10406 else $as_nop
10407 xorg_cv_cc_flag_unknown_warning_option=no
10408 fi
10409 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10410 fi
10411 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10412 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10413 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10414 CFLAGS="$xorg_testset_save_CFLAGS"
10415 fi
10416
10417 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10418 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10419 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10420 fi
10421 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10423 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10424 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10425 then :
10426 printf %s "(cached) " >&6
10427 else $as_nop
10428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10429 /* end confdefs.h. */
10430 int i;
10431 _ACEOF
10432 if ac_fn_c_try_compile "$LINENO"
10433 then :
10434 xorg_cv_cc_flag_unused_command_line_argument=yes
10435 else $as_nop
10436 xorg_cv_cc_flag_unused_command_line_argument=no
10437 fi
10438 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10439 fi
10440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10441 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10442 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10443 CFLAGS="$xorg_testset_save_CFLAGS"
10444 fi
10445
10446 found="no"
10447
10448 if test $found = "no" ; then
10449 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10450 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10451 fi
10452
10453 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10454 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10455 fi
10456
10457 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
10458
10459 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
10460 printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
10461 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
10462 if eval test \${$cacheid+y}
10463 then :
10464 printf %s "(cached) " >&6
10465 else $as_nop
10466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10467 /* end confdefs.h. */
10468 int i;
10469 int
10470 main (void)
10471 {
10472
10473 ;
10474 return 0;
10475 }
10476 _ACEOF
10477 if ac_fn_c_try_link "$LINENO"
10478 then :
10479 eval $cacheid=yes
10480 else $as_nop
10481 eval $cacheid=no
10482 fi
10483 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10484 conftest$ac_exeext conftest.$ac_ext
10485 fi
10486
10487
10488 CFLAGS="$xorg_testset_save_CFLAGS"
10489
10490 eval supported=\$$cacheid
10491 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10492 printf "%s\n" "$supported" >&6; }
10493 if test "$supported" = "yes" ; then
10494 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
10495 found="yes"
10496 fi
10497 fi
10498
10499
10500
10501
10502
10503
10504
10505
10506
10507
10508
10509
10510
10511
10512
10513 xorg_testset_save_CFLAGS="$CFLAGS"
10514
10515 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10516 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10518 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10519 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10520 then :
10521 printf %s "(cached) " >&6
10522 else $as_nop
10523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10524 /* end confdefs.h. */
10525 int i;
10526 _ACEOF
10527 if ac_fn_c_try_compile "$LINENO"
10528 then :
10529 xorg_cv_cc_flag_unknown_warning_option=yes
10530 else $as_nop
10531 xorg_cv_cc_flag_unknown_warning_option=no
10532 fi
10533 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10534 fi
10535 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10536 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10537 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10538 CFLAGS="$xorg_testset_save_CFLAGS"
10539 fi
10540
10541 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10542 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10543 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10544 fi
10545 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10546 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10547 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10548 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10549 then :
10550 printf %s "(cached) " >&6
10551 else $as_nop
10552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10553 /* end confdefs.h. */
10554 int i;
10555 _ACEOF
10556 if ac_fn_c_try_compile "$LINENO"
10557 then :
10558 xorg_cv_cc_flag_unused_command_line_argument=yes
10559 else $as_nop
10560 xorg_cv_cc_flag_unused_command_line_argument=no
10561 fi
10562 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10563 fi
10564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10565 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10566 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10567 CFLAGS="$xorg_testset_save_CFLAGS"
10568 fi
10569
10570 found="no"
10571
10572 if test $found = "no" ; then
10573 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10574 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10575 fi
10576
10577 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10578 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10579 fi
10580
10581 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
10582
10583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
10584 printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
10585 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
10586 if eval test \${$cacheid+y}
10587 then :
10588 printf %s "(cached) " >&6
10589 else $as_nop
10590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10591 /* end confdefs.h. */
10592 int i;
10593 int
10594 main (void)
10595 {
10596
10597 ;
10598 return 0;
10599 }
10600 _ACEOF
10601 if ac_fn_c_try_link "$LINENO"
10602 then :
10603 eval $cacheid=yes
10604 else $as_nop
10605 eval $cacheid=no
10606 fi
10607 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10608 conftest$ac_exeext conftest.$ac_ext
10609 fi
10610
10611
10612 CFLAGS="$xorg_testset_save_CFLAGS"
10613
10614 eval supported=\$$cacheid
10615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10616 printf "%s\n" "$supported" >&6; }
10617 if test "$supported" = "yes" ; then
10618 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
10619 found="yes"
10620 fi
10621 fi
10622
10623
10624 fi
10625
10626
10627
10628
10629
10630
10631
10632 CWARNFLAGS="$BASE_CFLAGS"
10633 if test "x$GCC" = xyes ; then
10634 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
10635 fi
10636
10637
10638
10639
10640
10641
10642
10643
10644 # Check whether --enable-strict-compilation was given.
10645 if test ${enable_strict_compilation+y}
10646 then :
10647 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
10648 else $as_nop
10649 STRICT_COMPILE=no
10650 fi
10651
10652
10653
10654
10655
10656
10657 STRICT_CFLAGS=""
10658
10659
10660
10661
10662
10663
10664
10665
10666
10667
10668
10669
10670
10671 xorg_testset_save_CFLAGS="$CFLAGS"
10672
10673 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10674 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10676 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10677 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10678 then :
10679 printf %s "(cached) " >&6
10680 else $as_nop
10681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10682 /* end confdefs.h. */
10683 int i;
10684 _ACEOF
10685 if ac_fn_c_try_compile "$LINENO"
10686 then :
10687 xorg_cv_cc_flag_unknown_warning_option=yes
10688 else $as_nop
10689 xorg_cv_cc_flag_unknown_warning_option=no
10690 fi
10691 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10692 fi
10693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10694 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10695 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10696 CFLAGS="$xorg_testset_save_CFLAGS"
10697 fi
10698
10699 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10700 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10701 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10702 fi
10703 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10705 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10706 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10707 then :
10708 printf %s "(cached) " >&6
10709 else $as_nop
10710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10711 /* end confdefs.h. */
10712 int i;
10713 _ACEOF
10714 if ac_fn_c_try_compile "$LINENO"
10715 then :
10716 xorg_cv_cc_flag_unused_command_line_argument=yes
10717 else $as_nop
10718 xorg_cv_cc_flag_unused_command_line_argument=no
10719 fi
10720 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10721 fi
10722 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10723 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10724 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10725 CFLAGS="$xorg_testset_save_CFLAGS"
10726 fi
10727
10728 found="no"
10729
10730 if test $found = "no" ; then
10731 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10732 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10733 fi
10734
10735 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10736 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10737 fi
10738
10739 CFLAGS="$CFLAGS -pedantic"
10740
10741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
10742 printf %s "checking if $CC supports -pedantic... " >&6; }
10743 cacheid=xorg_cv_cc_flag__pedantic
10744 if eval test \${$cacheid+y}
10745 then :
10746 printf %s "(cached) " >&6
10747 else $as_nop
10748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10749 /* end confdefs.h. */
10750 int i;
10751 int
10752 main (void)
10753 {
10754
10755 ;
10756 return 0;
10757 }
10758 _ACEOF
10759 if ac_fn_c_try_link "$LINENO"
10760 then :
10761 eval $cacheid=yes
10762 else $as_nop
10763 eval $cacheid=no
10764 fi
10765 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10766 conftest$ac_exeext conftest.$ac_ext
10767 fi
10768
10769
10770 CFLAGS="$xorg_testset_save_CFLAGS"
10771
10772 eval supported=\$$cacheid
10773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10774 printf "%s\n" "$supported" >&6; }
10775 if test "$supported" = "yes" ; then
10776 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
10777 found="yes"
10778 fi
10779 fi
10780
10781
10782
10783
10784
10785
10786
10787
10788
10789
10790
10791
10792
10793
10794
10795 xorg_testset_save_CFLAGS="$CFLAGS"
10796
10797 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10798 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10800 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10801 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10802 then :
10803 printf %s "(cached) " >&6
10804 else $as_nop
10805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10806 /* end confdefs.h. */
10807 int i;
10808 _ACEOF
10809 if ac_fn_c_try_compile "$LINENO"
10810 then :
10811 xorg_cv_cc_flag_unknown_warning_option=yes
10812 else $as_nop
10813 xorg_cv_cc_flag_unknown_warning_option=no
10814 fi
10815 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10816 fi
10817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10818 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10819 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10820 CFLAGS="$xorg_testset_save_CFLAGS"
10821 fi
10822
10823 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10824 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10825 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10826 fi
10827 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10829 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10830 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10831 then :
10832 printf %s "(cached) " >&6
10833 else $as_nop
10834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10835 /* end confdefs.h. */
10836 int i;
10837 _ACEOF
10838 if ac_fn_c_try_compile "$LINENO"
10839 then :
10840 xorg_cv_cc_flag_unused_command_line_argument=yes
10841 else $as_nop
10842 xorg_cv_cc_flag_unused_command_line_argument=no
10843 fi
10844 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10845 fi
10846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10847 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10848 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10849 CFLAGS="$xorg_testset_save_CFLAGS"
10850 fi
10851
10852 found="no"
10853
10854 if test $found = "no" ; then
10855 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10856 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10857 fi
10858
10859 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10860 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10861 fi
10862
10863 CFLAGS="$CFLAGS -Werror"
10864
10865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
10866 printf %s "checking if $CC supports -Werror... " >&6; }
10867 cacheid=xorg_cv_cc_flag__Werror
10868 if eval test \${$cacheid+y}
10869 then :
10870 printf %s "(cached) " >&6
10871 else $as_nop
10872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10873 /* end confdefs.h. */
10874 int i;
10875 int
10876 main (void)
10877 {
10878
10879 ;
10880 return 0;
10881 }
10882 _ACEOF
10883 if ac_fn_c_try_link "$LINENO"
10884 then :
10885 eval $cacheid=yes
10886 else $as_nop
10887 eval $cacheid=no
10888 fi
10889 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10890 conftest$ac_exeext conftest.$ac_ext
10891 fi
10892
10893
10894 CFLAGS="$xorg_testset_save_CFLAGS"
10895
10896 eval supported=\$$cacheid
10897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10898 printf "%s\n" "$supported" >&6; }
10899 if test "$supported" = "yes" ; then
10900 STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
10901 found="yes"
10902 fi
10903 fi
10904
10905 if test $found = "no" ; then
10906 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10907 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10908 fi
10909
10910 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10911 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10912 fi
10913
10914 CFLAGS="$CFLAGS -errwarn"
10915
10916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
10917 printf %s "checking if $CC supports -errwarn... " >&6; }
10918 cacheid=xorg_cv_cc_flag__errwarn
10919 if eval test \${$cacheid+y}
10920 then :
10921 printf %s "(cached) " >&6
10922 else $as_nop
10923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10924 /* end confdefs.h. */
10925 int i;
10926 int
10927 main (void)
10928 {
10929
10930 ;
10931 return 0;
10932 }
10933 _ACEOF
10934 if ac_fn_c_try_link "$LINENO"
10935 then :
10936 eval $cacheid=yes
10937 else $as_nop
10938 eval $cacheid=no
10939 fi
10940 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10941 conftest$ac_exeext conftest.$ac_ext
10942 fi
10943
10944
10945 CFLAGS="$xorg_testset_save_CFLAGS"
10946
10947 eval supported=\$$cacheid
10948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10949 printf "%s\n" "$supported" >&6; }
10950 if test "$supported" = "yes" ; then
10951 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
10952 found="yes"
10953 fi
10954 fi
10955
10956
10957
10958 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
10959 # activate it with -Werror, so we add it here explicitly.
10960
10961
10962
10963
10964
10965
10966
10967
10968
10969
10970
10971
10972
10973 xorg_testset_save_CFLAGS="$CFLAGS"
10974
10975 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10976 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10978 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10979 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10980 then :
10981 printf %s "(cached) " >&6
10982 else $as_nop
10983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10984 /* end confdefs.h. */
10985 int i;
10986 _ACEOF
10987 if ac_fn_c_try_compile "$LINENO"
10988 then :
10989 xorg_cv_cc_flag_unknown_warning_option=yes
10990 else $as_nop
10991 xorg_cv_cc_flag_unknown_warning_option=no
10992 fi
10993 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10994 fi
10995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10996 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10997 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10998 CFLAGS="$xorg_testset_save_CFLAGS"
10999 fi
11000
11001 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11002 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11003 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11004 fi
11005 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11006 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11007 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11008 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
11009 then :
11010 printf %s "(cached) " >&6
11011 else $as_nop
11012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11013 /* end confdefs.h. */
11014 int i;
11015 _ACEOF
11016 if ac_fn_c_try_compile "$LINENO"
11017 then :
11018 xorg_cv_cc_flag_unused_command_line_argument=yes
11019 else $as_nop
11020 xorg_cv_cc_flag_unused_command_line_argument=no
11021 fi
11022 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11023 fi
11024 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11025 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11026 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11027 CFLAGS="$xorg_testset_save_CFLAGS"
11028 fi
11029
11030 found="no"
11031
11032 if test $found = "no" ; then
11033 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11034 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11035 fi
11036
11037 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11038 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11039 fi
11040
11041 CFLAGS="$CFLAGS -Werror=attributes"
11042
11043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
11044 printf %s "checking if $CC supports -Werror=attributes... " >&6; }
11045 cacheid=xorg_cv_cc_flag__Werror_attributes
11046 if eval test \${$cacheid+y}
11047 then :
11048 printf %s "(cached) " >&6
11049 else $as_nop
11050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11051 /* end confdefs.h. */
11052 int i;
11053 int
11054 main (void)
11055 {
11056
11057 ;
11058 return 0;
11059 }
11060 _ACEOF
11061 if ac_fn_c_try_link "$LINENO"
11062 then :
11063 eval $cacheid=yes
11064 else $as_nop
11065 eval $cacheid=no
11066 fi
11067 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11068 conftest$ac_exeext conftest.$ac_ext
11069 fi
11070
11071
11072 CFLAGS="$xorg_testset_save_CFLAGS"
11073
11074 eval supported=\$$cacheid
11075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11076 printf "%s\n" "$supported" >&6; }
11077 if test "$supported" = "yes" ; then
11078 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
11079 found="yes"
11080 fi
11081 fi
11082
11083
11084
11085 if test "x$STRICT_COMPILE" = "xyes"; then
11086 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
11087 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
11088 fi
11089
11090
11091
11092
11093
11094
11095 cat >>confdefs.h <<_ACEOF
11096 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
11097 _ACEOF
11098
11099 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
11100 if test "x$PVM" = "x"; then
11101 PVM="0"
11102 fi
11103
11104 printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h
11105
11106 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
11107 if test "x$PVP" = "x"; then
11108 PVP="0"
11109 fi
11110
11111 printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h
11112
11113
11114
11115 CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \
11116 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
11117 || (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \
11118 touch \$(top_srcdir)/ChangeLog; \
11119 echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))"
11120
11121
11122
11123
11124 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
11125 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
11126 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
11127 || (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \
11128 touch \$(top_srcdir)/INSTALL; \
11129 echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))"
11130
11131
11132
11133
11134
11135
11136 case $host_os in
11137 solaris*)
11138 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we
11139 # check for a man page file found in later versions that use
11140 # traditional section numbers instead
11141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5
11142 printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; }
11143 if test ${ac_cv_file__usr_share_man_man7_attributes_7+y}
11144 then :
11145 printf %s "(cached) " >&6
11146 else $as_nop
11147 test "$cross_compiling" = yes &&
11148 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
11149 if test -r "/usr/share/man/man7/attributes.7"; then
11150 ac_cv_file__usr_share_man_man7_attributes_7=yes
11151 else
11152 ac_cv_file__usr_share_man_man7_attributes_7=no
11153 fi
11154 fi
11155 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5
11156 printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; }
11157 if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes
11158 then :
11159 SYSV_MAN_SECTIONS=false
11160 else $as_nop
11161 SYSV_MAN_SECTIONS=true
11162 fi
11163
11164 ;;
11165 *) SYSV_MAN_SECTIONS=false ;;
11166 esac
11167
11168 if test x$APP_MAN_SUFFIX = x ; then
11169 APP_MAN_SUFFIX=1
11170 fi
11171 if test x$APP_MAN_DIR = x ; then
11172 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
11173 fi
11174
11175 if test x$LIB_MAN_SUFFIX = x ; then
11176 LIB_MAN_SUFFIX=3
11177 fi
11178 if test x$LIB_MAN_DIR = x ; then
11179 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
11180 fi
11181
11182 if test x$FILE_MAN_SUFFIX = x ; then
11183 case $SYSV_MAN_SECTIONS in
11184 true) FILE_MAN_SUFFIX=4 ;;
11185 *) FILE_MAN_SUFFIX=5 ;;
11186 esac
11187 fi
11188 if test x$FILE_MAN_DIR = x ; then
11189 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
11190 fi
11191
11192 if test x$MISC_MAN_SUFFIX = x ; then
11193 case $SYSV_MAN_SECTIONS in
11194 true) MISC_MAN_SUFFIX=5 ;;
11195 *) MISC_MAN_SUFFIX=7 ;;
11196 esac
11197 fi
11198 if test x$MISC_MAN_DIR = x ; then
11199 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
11200 fi
11201
11202 if test x$DRIVER_MAN_SUFFIX = x ; then
11203 case $SYSV_MAN_SECTIONS in
11204 true) DRIVER_MAN_SUFFIX=7 ;;
11205 *) DRIVER_MAN_SUFFIX=4 ;;
11206 esac
11207 fi
11208 if test x$DRIVER_MAN_DIR = x ; then
11209 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
11210 fi
11211
11212 if test x$ADMIN_MAN_SUFFIX = x ; then
11213 case $SYSV_MAN_SECTIONS in
11214 true) ADMIN_MAN_SUFFIX=1m ;;
11215 *) ADMIN_MAN_SUFFIX=8 ;;
11216 esac
11217 fi
11218 if test x$ADMIN_MAN_DIR = x ; then
11219 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
11220 fi
11221
11222
11223
11224
11225
11226
11227
11228
11229
11230
11231
11232
11233
11234
11235
11236 XORG_MAN_PAGE="X Version 11"
11237
11238 MAN_SUBSTS="\
11239 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11240 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11241 -e 's|__xservername__|Xorg|g' \
11242 -e 's|__xconfigfile__|xorg.conf|g' \
11243 -e 's|__projectroot__|\$(prefix)|g' \
11244 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
11245 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
11246 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
11247 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
11248 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
11249 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
11250 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
11251
11252
11253
11254 # Check whether --enable-silent-rules was given.
11255 if test ${enable_silent_rules+y}
11256 then :
11257 enableval=$enable_silent_rules;
11258 fi
11259
11260 case $enable_silent_rules in # (((
11261 yes) AM_DEFAULT_VERBOSITY=0;;
11262 no) AM_DEFAULT_VERBOSITY=1;;
11263 *) AM_DEFAULT_VERBOSITY=0;;
11264 esac
11265 am_make=${MAKE-make}
11266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
11267 printf %s "checking whether $am_make supports nested variables... " >&6; }
11268 if test ${am_cv_make_support_nested_variables+y}
11269 then :
11270 printf %s "(cached) " >&6
11271 else $as_nop
11272 if printf "%s\n" 'TRUE=$(BAR$(V))
11273 BAR0=false
11274 BAR1=true
11275 V=1
11276 am__doit:
11277 @$(TRUE)
11278 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
11279 am_cv_make_support_nested_variables=yes
11280 else
11281 am_cv_make_support_nested_variables=no
11282 fi
11283 fi
11284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
11285 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
11286 if test $am_cv_make_support_nested_variables = yes; then
11287 AM_V='$(V)'
11288 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
11289 else
11290 AM_V=$AM_DEFAULT_VERBOSITY
11291 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
11292 fi
11293 AM_BACKSLASH='\'
11294
11295
11296
11297 # Initialize libtool
11298 # Check whether --enable-static was given.
11299 if test ${enable_static+y}
11300 then :
11301 enableval=$enable_static; p=${PACKAGE-default}
11302 case $enableval in
11303 yes) enable_static=yes ;;
11304 no) enable_static=no ;;
11305 *)
11306 enable_static=no
11307 # Look at the argument we got. We use all the common list separators.
11308 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11309 for pkg in $enableval; do
11310 IFS=$lt_save_ifs
11311 if test "X$pkg" = "X$p"; then
11312 enable_static=yes
11313 fi
11314 done
11315 IFS=$lt_save_ifs
11316 ;;
11317 esac
11318 else $as_nop
11319 enable_static=no
11320 fi
11321
11322
11323
11324
11325
11326
11327
11328
11329
11330 case `pwd` in
11331 *\ * | *\ *)
11332 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
11333 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
11334 esac
11335
11336
11337
11338 macro_version='2.4.7'
11339 macro_revision='2.4.7'
11340
11341
11342
11343
11344
11345
11346
11347
11348
11349
11350
11351
11352
11353
11354 ltmain=$ac_aux_dir/ltmain.sh
11355
11356 # Backslashify metacharacters that are still active within
11357 # double-quoted strings.
11358 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
11359
11360 # Same as above, but do not quote variable references.
11361 double_quote_subst='s/\(["`\\]\)/\\\1/g'
11362
11363 # Sed substitution to delay expansion of an escaped shell variable in a
11364 # double_quote_subst'ed string.
11365 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11366
11367 # Sed substitution to delay expansion of an escaped single quote.
11368 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
11369
11370 # Sed substitution to avoid accidental globbing in evaled expressions
11371 no_glob_subst='s/\*/\\\*/g'
11372
11373 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11374 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
11375 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
11376
11377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
11378 printf %s "checking how to print strings... " >&6; }
11379 # Test print first, because it will be a builtin if present.
11380 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
11381 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
11382 ECHO='print -r --'
11383 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
11384 ECHO='printf %s\n'
11385 else
11386 # Use this function as a fallback that always works.
11387 func_fallback_echo ()
11388 {
11389 eval 'cat <<_LTECHO_EOF
11390 $1
11391 _LTECHO_EOF'
11392 }
11393 ECHO='func_fallback_echo'
11394 fi
11395
11396 # func_echo_all arg...
11397 # Invoke $ECHO with all args, space-separated.
11398 func_echo_all ()
11399 {
11400 $ECHO ""
11401 }
11402
11403 case $ECHO in
11404 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
11405 printf "%s\n" "printf" >&6; } ;;
11406 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
11407 printf "%s\n" "print -r" >&6; } ;;
11408 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
11409 printf "%s\n" "cat" >&6; } ;;
11410 esac
11411
11412
11413
11414
11415
11416
11417
11418
11419
11420
11421
11422
11423
11424
11425 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
11426 printf %s "checking for a sed that does not truncate output... " >&6; }
11427 if test ${ac_cv_path_SED+y}
11428 then :
11429 printf %s "(cached) " >&6
11430 else $as_nop
11431 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
11432 for ac_i in 1 2 3 4 5 6 7; do
11433 ac_script="$ac_script$as_nl$ac_script"
11434 done
11435 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
11436 { ac_script=; unset ac_script;}
11437 if test -z "$SED"; then
11438 ac_path_SED_found=false
11439 # Loop through the user's path and test for each of PROGNAME-LIST
11440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11441 for as_dir in $PATH
11442 do
11443 IFS=$as_save_IFS
11444 case $as_dir in #(((
11445 '') as_dir=./ ;;
11446 */) ;;
11447 *) as_dir=$as_dir/ ;;
11448 esac
11449 for ac_prog in sed gsed
11450 do
11451 for ac_exec_ext in '' $ac_executable_extensions; do
11452 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
11453 as_fn_executable_p "$ac_path_SED" || continue
11454 # Check for GNU ac_path_SED and select it if it is found.
11455 # Check for GNU $ac_path_SED
11456 case `"$ac_path_SED" --version 2>&1` in
11457 *GNU*)
11458 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
11459 *)
11460 ac_count=0
11461 printf %s 0123456789 >"conftest.in"
11462 while :
11463 do
11464 cat "conftest.in" "conftest.in" >"conftest.tmp"
11465 mv "conftest.tmp" "conftest.in"
11466 cp "conftest.in" "conftest.nl"
11467 printf "%s\n" '' >> "conftest.nl"
11468 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
11469 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11470 as_fn_arith $ac_count + 1 && ac_count=$as_val
11471 if test $ac_count -gt ${ac_path_SED_max-0}; then
11472 # Best one so far, save it but keep looking for a better one
11473 ac_cv_path_SED="$ac_path_SED"
11474 ac_path_SED_max=$ac_count
11475 fi
11476 # 10*(2^10) chars as input seems more than enough
11477 test $ac_count -gt 10 && break
11478 done
11479 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11480 esac
11481
11482 $ac_path_SED_found && break 3
11483 done
11484 done
11485 done
11486 IFS=$as_save_IFS
11487 if test -z "$ac_cv_path_SED"; then
11488 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
11489 fi
11490 else
11491 ac_cv_path_SED=$SED
11492 fi
11493
11494 fi
11495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
11496 printf "%s\n" "$ac_cv_path_SED" >&6; }
11497 SED="$ac_cv_path_SED"
11498 rm -f conftest.sed
11499
11500 test -z "$SED" && SED=sed
11501 Xsed="$SED -e 1s/^X//"
11502
11503
11504
11505
11506
11507
11508
11509
11510
11511
11512
11513 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
11514 printf %s "checking for grep that handles long lines and -e... " >&6; }
11515 if test ${ac_cv_path_GREP+y}
11516 then :
11517 printf %s "(cached) " >&6
11518 else $as_nop
11519 if test -z "$GREP"; then
11520 ac_path_GREP_found=false
11521 # Loop through the user's path and test for each of PROGNAME-LIST
11522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11523 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11524 do
11525 IFS=$as_save_IFS
11526 case $as_dir in #(((
11527 '') as_dir=./ ;;
11528 */) ;;
11529 *) as_dir=$as_dir/ ;;
11530 esac
11531 for ac_prog in grep ggrep
11532 do
11533 for ac_exec_ext in '' $ac_executable_extensions; do
11534 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
11535 as_fn_executable_p "$ac_path_GREP" || continue
11536 # Check for GNU ac_path_GREP and select it if it is found.
11537 # Check for GNU $ac_path_GREP
11538 case `"$ac_path_GREP" --version 2>&1` in
11539 *GNU*)
11540 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
11541 *)
11542 ac_count=0
11543 printf %s 0123456789 >"conftest.in"
11544 while :
11545 do
11546 cat "conftest.in" "conftest.in" >"conftest.tmp"
11547 mv "conftest.tmp" "conftest.in"
11548 cp "conftest.in" "conftest.nl"
11549 printf "%s\n" 'GREP' >> "conftest.nl"
11550 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11551 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11552 as_fn_arith $ac_count + 1 && ac_count=$as_val
11553 if test $ac_count -gt ${ac_path_GREP_max-0}; then
11554 # Best one so far, save it but keep looking for a better one
11555 ac_cv_path_GREP="$ac_path_GREP"
11556 ac_path_GREP_max=$ac_count
11557 fi
11558 # 10*(2^10) chars as input seems more than enough
11559 test $ac_count -gt 10 && break
11560 done
11561 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11562 esac
11563
11564 $ac_path_GREP_found && break 3
11565 done
11566 done
11567 done
11568 IFS=$as_save_IFS
11569 if test -z "$ac_cv_path_GREP"; then
11570 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11571 fi
11572 else
11573 ac_cv_path_GREP=$GREP
11574 fi
11575
11576 fi
11577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
11578 printf "%s\n" "$ac_cv_path_GREP" >&6; }
11579 GREP="$ac_cv_path_GREP"
11580
11581
11582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
11583 printf %s "checking for egrep... " >&6; }
11584 if test ${ac_cv_path_EGREP+y}
11585 then :
11586 printf %s "(cached) " >&6
11587 else $as_nop
11588 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
11589 then ac_cv_path_EGREP="$GREP -E"
11590 else
11591 if test -z "$EGREP"; then
11592 ac_path_EGREP_found=false
11593 # Loop through the user's path and test for each of PROGNAME-LIST
11594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11595 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11596 do
11597 IFS=$as_save_IFS
11598 case $as_dir in #(((
11599 '') as_dir=./ ;;
11600 */) ;;
11601 *) as_dir=$as_dir/ ;;
11602 esac
11603 for ac_prog in egrep
11604 do
11605 for ac_exec_ext in '' $ac_executable_extensions; do
11606 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
11607 as_fn_executable_p "$ac_path_EGREP" || continue
11608 # Check for GNU ac_path_EGREP and select it if it is found.
11609 # Check for GNU $ac_path_EGREP
11610 case `"$ac_path_EGREP" --version 2>&1` in
11611 *GNU*)
11612 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
11613 *)
11614 ac_count=0
11615 printf %s 0123456789 >"conftest.in"
11616 while :
11617 do
11618 cat "conftest.in" "conftest.in" >"conftest.tmp"
11619 mv "conftest.tmp" "conftest.in"
11620 cp "conftest.in" "conftest.nl"
11621 printf "%s\n" 'EGREP' >> "conftest.nl"
11622 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11623 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11624 as_fn_arith $ac_count + 1 && ac_count=$as_val
11625 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
11626 # Best one so far, save it but keep looking for a better one
11627 ac_cv_path_EGREP="$ac_path_EGREP"
11628 ac_path_EGREP_max=$ac_count
11629 fi
11630 # 10*(2^10) chars as input seems more than enough
11631 test $ac_count -gt 10 && break
11632 done
11633 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11634 esac
11635
11636 $ac_path_EGREP_found && break 3
11637 done
11638 done
11639 done
11640 IFS=$as_save_IFS
11641 if test -z "$ac_cv_path_EGREP"; then
11642 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11643 fi
11644 else
11645 ac_cv_path_EGREP=$EGREP
11646 fi
11647
11648 fi
11649 fi
11650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
11651 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
11652 EGREP="$ac_cv_path_EGREP"
11653
11654
11655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
11656 printf %s "checking for fgrep... " >&6; }
11657 if test ${ac_cv_path_FGREP+y}
11658 then :
11659 printf %s "(cached) " >&6
11660 else $as_nop
11661 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
11662 then ac_cv_path_FGREP="$GREP -F"
11663 else
11664 if test -z "$FGREP"; then
11665 ac_path_FGREP_found=false
11666 # Loop through the user's path and test for each of PROGNAME-LIST
11667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11668 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11669 do
11670 IFS=$as_save_IFS
11671 case $as_dir in #(((
11672 '') as_dir=./ ;;
11673 */) ;;
11674 *) as_dir=$as_dir/ ;;
11675 esac
11676 for ac_prog in fgrep
11677 do
11678 for ac_exec_ext in '' $ac_executable_extensions; do
11679 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
11680 as_fn_executable_p "$ac_path_FGREP" || continue
11681 # Check for GNU ac_path_FGREP and select it if it is found.
11682 # Check for GNU $ac_path_FGREP
11683 case `"$ac_path_FGREP" --version 2>&1` in
11684 *GNU*)
11685 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
11686 *)
11687 ac_count=0
11688 printf %s 0123456789 >"conftest.in"
11689 while :
11690 do
11691 cat "conftest.in" "conftest.in" >"conftest.tmp"
11692 mv "conftest.tmp" "conftest.in"
11693 cp "conftest.in" "conftest.nl"
11694 printf "%s\n" 'FGREP' >> "conftest.nl"
11695 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
11696 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11697 as_fn_arith $ac_count + 1 && ac_count=$as_val
11698 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
11699 # Best one so far, save it but keep looking for a better one
11700 ac_cv_path_FGREP="$ac_path_FGREP"
11701 ac_path_FGREP_max=$ac_count
11702 fi
11703 # 10*(2^10) chars as input seems more than enough
11704 test $ac_count -gt 10 && break
11705 done
11706 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11707 esac
11708
11709 $ac_path_FGREP_found && break 3
11710 done
11711 done
11712 done
11713 IFS=$as_save_IFS
11714 if test -z "$ac_cv_path_FGREP"; then
11715 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11716 fi
11717 else
11718 ac_cv_path_FGREP=$FGREP
11719 fi
11720
11721 fi
11722 fi
11723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
11724 printf "%s\n" "$ac_cv_path_FGREP" >&6; }
11725 FGREP="$ac_cv_path_FGREP"
11726
11727
11728 test -z "$GREP" && GREP=grep
11729
11730
11731
11732
11733
11734
11735
11736
11737
11738
11739
11740
11741
11742
11743
11744
11745
11746
11747
11748 # Check whether --with-gnu-ld was given.
11749 if test ${with_gnu_ld+y}
11750 then :
11751 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
11752 else $as_nop
11753 with_gnu_ld=no
11754 fi
11755
11756 ac_prog=ld
11757 if test yes = "$GCC"; then
11758 # Check if gcc -print-prog-name=ld gives a path.
11759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
11760 printf %s "checking for ld used by $CC... " >&6; }
11761 case $host in
11762 *-*-mingw*)
11763 # gcc leaves a trailing carriage return, which upsets mingw
11764 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11765 *)
11766 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11767 esac
11768 case $ac_prog in
11769 # Accept absolute paths.
11770 [\\/]* | ?:[\\/]*)
11771 re_direlt='/[^/][^/]*/\.\./'
11772 # Canonicalize the pathname of ld
11773 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
11774 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
11775 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
11776 done
11777 test -z "$LD" && LD=$ac_prog
11778 ;;
11779 "")
11780 # If it fails, then pretend we aren't using GCC.
11781 ac_prog=ld
11782 ;;
11783 *)
11784 # If it is relative, then search for the first ld in PATH.
11785 with_gnu_ld=unknown
11786 ;;
11787 esac
11788 elif test yes = "$with_gnu_ld"; then
11789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11790 printf %s "checking for GNU ld... " >&6; }
11791 else
11792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11793 printf %s "checking for non-GNU ld... " >&6; }
11794 fi
11795 if test ${lt_cv_path_LD+y}
11796 then :
11797 printf %s "(cached) " >&6
11798 else $as_nop
11799 if test -z "$LD"; then
11800 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11801 for ac_dir in $PATH; do
11802 IFS=$lt_save_ifs
11803 test -z "$ac_dir" && ac_dir=.
11804 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11805 lt_cv_path_LD=$ac_dir/$ac_prog
11806 # Check to see if the program is GNU ld. I'd rather use --version,
11807 # but apparently some variants of GNU ld only accept -v.
11808 # Break only if it was the GNU/non-GNU ld that we prefer.
11809 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11810 *GNU* | *'with BFD'*)
11811 test no != "$with_gnu_ld" && break
11812 ;;
11813 *)
11814 test yes != "$with_gnu_ld" && break
11815 ;;
11816 esac
11817 fi
11818 done
11819 IFS=$lt_save_ifs
11820 else
11821 lt_cv_path_LD=$LD # Let the user override the test with a path.
11822 fi
11823 fi
11824
11825 LD=$lt_cv_path_LD
11826 if test -n "$LD"; then
11827 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11828 printf "%s\n" "$LD" >&6; }
11829 else
11830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11831 printf "%s\n" "no" >&6; }
11832 fi
11833 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
11834 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11835 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
11836 if test ${lt_cv_prog_gnu_ld+y}
11837 then :
11838 printf %s "(cached) " >&6
11839 else $as_nop
11840 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11841 case `$LD -v 2>&1 </dev/null` in
11842 *GNU* | *'with BFD'*)
11843 lt_cv_prog_gnu_ld=yes
11844 ;;
11845 *)
11846 lt_cv_prog_gnu_ld=no
11847 ;;
11848 esac
11849 fi
11850 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
11851 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
11852 with_gnu_ld=$lt_cv_prog_gnu_ld
11853
11854
11855
11856
11857
11858
11859
11860
11861
11862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
11863 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
11864 if test ${lt_cv_path_NM+y}
11865 then :
11866 printf %s "(cached) " >&6
11867 else $as_nop
11868 if test -n "$NM"; then
11869 # Let the user override the test.
11870 lt_cv_path_NM=$NM
11871 else
11872 lt_nm_to_check=${ac_tool_prefix}nm
11873 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
11874 lt_nm_to_check="$lt_nm_to_check nm"
11875 fi
11876 for lt_tmp_nm in $lt_nm_to_check; do
11877 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11878 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
11879 IFS=$lt_save_ifs
11880 test -z "$ac_dir" && ac_dir=.
11881 tmp_nm=$ac_dir/$lt_tmp_nm
11882 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
11883 # Check to see if the nm accepts a BSD-compat flag.
11884 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
11885 # nm: unknown option "B" ignored
11886 # Tru64's nm complains that /dev/null is an invalid object file
11887 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
11888 case $build_os in
11889 mingw*) lt_bad_file=conftest.nm/nofile ;;
11890 *) lt_bad_file=/dev/null ;;
11891 esac
11892 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
11893 *$lt_bad_file* | *'Invalid file or object type'*)
11894 lt_cv_path_NM="$tmp_nm -B"
11895 break 2
11896 ;;
11897 *)
11898 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
11899 */dev/null*)
11900 lt_cv_path_NM="$tmp_nm -p"
11901 break 2
11902 ;;
11903 *)
11904 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
11905 continue # so that we can try to find one that supports BSD flags
11906 ;;
11907 esac
11908 ;;
11909 esac
11910 fi
11911 done
11912 IFS=$lt_save_ifs
11913 done
11914 : ${lt_cv_path_NM=no}
11915 fi
11916 fi
11917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
11918 printf "%s\n" "$lt_cv_path_NM" >&6; }
11919 if test no != "$lt_cv_path_NM"; then
11920 NM=$lt_cv_path_NM
11921 else
11922 # Didn't find any BSD compatible name lister, look for dumpbin.
11923 if test -n "$DUMPBIN"; then :
11924 # Let the user override the test.
11925 else
11926 if test -n "$ac_tool_prefix"; then
11927 for ac_prog in dumpbin "link -dump"
11928 do
11929 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11930 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11932 printf %s "checking for $ac_word... " >&6; }
11933 if test ${ac_cv_prog_DUMPBIN+y}
11934 then :
11935 printf %s "(cached) " >&6
11936 else $as_nop
11937 if test -n "$DUMPBIN"; then
11938 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
11939 else
11940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11941 for as_dir in $PATH
11942 do
11943 IFS=$as_save_IFS
11944 case $as_dir in #(((
11945 '') as_dir=./ ;;
11946 */) ;;
11947 *) as_dir=$as_dir/ ;;
11948 esac
11949 for ac_exec_ext in '' $ac_executable_extensions; do
11950 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11951 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
11952 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11953 break 2
11954 fi
11955 done
11956 done
11957 IFS=$as_save_IFS
11958
11959 fi
11960 fi
11961 DUMPBIN=$ac_cv_prog_DUMPBIN
11962 if test -n "$DUMPBIN"; then
11963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
11964 printf "%s\n" "$DUMPBIN" >&6; }
11965 else
11966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11967 printf "%s\n" "no" >&6; }
11968 fi
11969
11970
11971 test -n "$DUMPBIN" && break
11972 done
11973 fi
11974 if test -z "$DUMPBIN"; then
11975 ac_ct_DUMPBIN=$DUMPBIN
11976 for ac_prog in dumpbin "link -dump"
11977 do
11978 # Extract the first word of "$ac_prog", so it can be a program name with args.
11979 set dummy $ac_prog; ac_word=$2
11980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11981 printf %s "checking for $ac_word... " >&6; }
11982 if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
11983 then :
11984 printf %s "(cached) " >&6
11985 else $as_nop
11986 if test -n "$ac_ct_DUMPBIN"; then
11987 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
11988 else
11989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11990 for as_dir in $PATH
11991 do
11992 IFS=$as_save_IFS
11993 case $as_dir in #(((
11994 '') as_dir=./ ;;
11995 */) ;;
11996 *) as_dir=$as_dir/ ;;
11997 esac
11998 for ac_exec_ext in '' $ac_executable_extensions; do
11999 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12000 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
12001 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12002 break 2
12003 fi
12004 done
12005 done
12006 IFS=$as_save_IFS
12007
12008 fi
12009 fi
12010 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
12011 if test -n "$ac_ct_DUMPBIN"; then
12012 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
12013 printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
12014 else
12015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12016 printf "%s\n" "no" >&6; }
12017 fi
12018
12019
12020 test -n "$ac_ct_DUMPBIN" && break
12021 done
12022
12023 if test "x$ac_ct_DUMPBIN" = x; then
12024 DUMPBIN=":"
12025 else
12026 case $cross_compiling:$ac_tool_warned in
12027 yes:)
12028 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12029 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12030 ac_tool_warned=yes ;;
12031 esac
12032 DUMPBIN=$ac_ct_DUMPBIN
12033 fi
12034 fi
12035
12036 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
12037 *COFF*)
12038 DUMPBIN="$DUMPBIN -symbols -headers"
12039 ;;
12040 *)
12041 DUMPBIN=:
12042 ;;
12043 esac
12044 fi
12045
12046 if test : != "$DUMPBIN"; then
12047 NM=$DUMPBIN
12048 fi
12049 fi
12050 test -z "$NM" && NM=nm
12051
12052
12053
12054
12055
12056
12057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
12058 printf %s "checking the name lister ($NM) interface... " >&6; }
12059 if test ${lt_cv_nm_interface+y}
12060 then :
12061 printf %s "(cached) " >&6
12062 else $as_nop
12063 lt_cv_nm_interface="BSD nm"
12064 echo "int some_variable = 0;" > conftest.$ac_ext
12065 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
12066 (eval "$ac_compile" 2>conftest.err)
12067 cat conftest.err >&5
12068 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
12069 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
12070 cat conftest.err >&5
12071 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
12072 cat conftest.out >&5
12073 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
12074 lt_cv_nm_interface="MS dumpbin"
12075 fi
12076 rm -f conftest*
12077 fi
12078 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
12079 printf "%s\n" "$lt_cv_nm_interface" >&6; }
12080
12081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
12082 printf %s "checking whether ln -s works... " >&6; }
12083 LN_S=$as_ln_s
12084 if test "$LN_S" = "ln -s"; then
12085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12086 printf "%s\n" "yes" >&6; }
12087 else
12088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
12089 printf "%s\n" "no, using $LN_S" >&6; }
12090 fi
12091
12092 # find the maximum length of command line arguments
12093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
12094 printf %s "checking the maximum length of command line arguments... " >&6; }
12095 if test ${lt_cv_sys_max_cmd_len+y}
12096 then :
12097 printf %s "(cached) " >&6
12098 else $as_nop
12099 i=0
12100 teststring=ABCD
12101
12102 case $build_os in
12103 msdosdjgpp*)
12104 # On DJGPP, this test can blow up pretty badly due to problems in libc
12105 # (any single argument exceeding 2000 bytes causes a buffer overrun
12106 # during glob expansion). Even if it were fixed, the result of this
12107 # check would be larger than it should be.
12108 lt_cv_sys_max_cmd_len=12288; # 12K is about right
12109 ;;
12110
12111 gnu*)
12112 # Under GNU Hurd, this test is not required because there is
12113 # no limit to the length of command line arguments.
12114 # Libtool will interpret -1 as no limit whatsoever
12115 lt_cv_sys_max_cmd_len=-1;
12116 ;;
12117
12118 cygwin* | mingw* | cegcc*)
12119 # On Win9x/ME, this test blows up -- it succeeds, but takes
12120 # about 5 minutes as the teststring grows exponentially.
12121 # Worse, since 9x/ME are not pre-emptively multitasking,
12122 # you end up with a "frozen" computer, even though with patience
12123 # the test eventually succeeds (with a max line length of 256k).
12124 # Instead, let's just punt: use the minimum linelength reported by
12125 # all of the supported platforms: 8192 (on NT/2K/XP).
12126 lt_cv_sys_max_cmd_len=8192;
12127 ;;
12128
12129 mint*)
12130 # On MiNT this can take a long time and run out of memory.
12131 lt_cv_sys_max_cmd_len=8192;
12132 ;;
12133
12134 amigaos*)
12135 # On AmigaOS with pdksh, this test takes hours, literally.
12136 # So we just punt and use a minimum line length of 8192.
12137 lt_cv_sys_max_cmd_len=8192;
12138 ;;
12139
12140 bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
12141 # This has been around since 386BSD, at least. Likely further.
12142 if test -x /sbin/sysctl; then
12143 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
12144 elif test -x /usr/sbin/sysctl; then
12145 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
12146 else
12147 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
12148 fi
12149 # And add a safety zone
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 ;;
12153
12154 interix*)
12155 # We know the value 262144 and hardcode it with a safety zone (like BSD)
12156 lt_cv_sys_max_cmd_len=196608
12157 ;;
12158
12159 os2*)
12160 # The test takes a long time on OS/2.
12161 lt_cv_sys_max_cmd_len=8192
12162 ;;
12163
12164 osf*)
12165 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
12166 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
12167 # nice to cause kernel panics so lets avoid the loop below.
12168 # First set a reasonable default.
12169 lt_cv_sys_max_cmd_len=16384
12170 #
12171 if test -x /sbin/sysconfig; then
12172 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
12173 *1*) lt_cv_sys_max_cmd_len=-1 ;;
12174 esac
12175 fi
12176 ;;
12177 sco3.2v5*)
12178 lt_cv_sys_max_cmd_len=102400
12179 ;;
12180 sysv5* | sco5v6* | sysv4.2uw2*)
12181 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
12182 if test -n "$kargmax"; then
12183 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'`
12184 else
12185 lt_cv_sys_max_cmd_len=32768
12186 fi
12187 ;;
12188 *)
12189 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
12190 if test -n "$lt_cv_sys_max_cmd_len" && \
12191 test undefined != "$lt_cv_sys_max_cmd_len"; then
12192 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12193 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12194 else
12195 # Make teststring a little bigger before we do anything with it.
12196 # a 1K string should be a reasonable start.
12197 for i in 1 2 3 4 5 6 7 8; do
12198 teststring=$teststring$teststring
12199 done
12200 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
12201 # If test is not a shell built-in, we'll probably end up computing a
12202 # maximum length that is only half of the actual maximum length, but
12203 # we can't tell.
12204 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
12205 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
12206 test 17 != "$i" # 1/2 MB should be enough
12207 do
12208 i=`expr $i + 1`
12209 teststring=$teststring$teststring
12210 done
12211 # Only check the string length outside the loop.
12212 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
12213 teststring=
12214 # Add a significant safety factor because C++ compilers can tack on
12215 # massive amounts of additional arguments before passing them to the
12216 # linker. It appears as though 1/2 is a usable value.
12217 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
12218 fi
12219 ;;
12220 esac
12221
12222 fi
12223
12224 if test -n "$lt_cv_sys_max_cmd_len"; then
12225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
12226 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
12227 else
12228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
12229 printf "%s\n" "none" >&6; }
12230 fi
12231 max_cmd_len=$lt_cv_sys_max_cmd_len
12232
12233
12234
12235
12236
12237
12238 : ${CP="cp -f"}
12239 : ${MV="mv -f"}
12240 : ${RM="rm -f"}
12241
12242 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12243 lt_unset=unset
12244 else
12245 lt_unset=false
12246 fi
12247
12248
12249
12250
12251
12252 # test EBCDIC or ASCII
12253 case `echo X|tr X '\101'` in
12254 A) # ASCII based system
12255 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
12256 lt_SP2NL='tr \040 \012'
12257 lt_NL2SP='tr \015\012 \040\040'
12258 ;;
12259 *) # EBCDIC based system
12260 lt_SP2NL='tr \100 \n'
12261 lt_NL2SP='tr \r\n \100\100'
12262 ;;
12263 esac
12264
12265
12266
12267
12268
12269
12270
12271
12272
12273 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
12274 printf %s "checking how to convert $build file names to $host format... " >&6; }
12275 if test ${lt_cv_to_host_file_cmd+y}
12276 then :
12277 printf %s "(cached) " >&6
12278 else $as_nop
12279 case $host in
12280 *-*-mingw* )
12281 case $build in
12282 *-*-mingw* ) # actually msys
12283 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
12284 ;;
12285 *-*-cygwin* )
12286 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
12287 ;;
12288 * ) # otherwise, assume *nix
12289 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
12290 ;;
12291 esac
12292 ;;
12293 *-*-cygwin* )
12294 case $build in
12295 *-*-mingw* ) # actually msys
12296 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
12297 ;;
12298 *-*-cygwin* )
12299 lt_cv_to_host_file_cmd=func_convert_file_noop
12300 ;;
12301 * ) # otherwise, assume *nix
12302 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
12303 ;;
12304 esac
12305 ;;
12306 * ) # unhandled hosts (and "normal" native builds)
12307 lt_cv_to_host_file_cmd=func_convert_file_noop
12308 ;;
12309 esac
12310
12311 fi
12312
12313 to_host_file_cmd=$lt_cv_to_host_file_cmd
12314 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
12315 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
12316
12317
12318
12319
12320
12321 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
12322 printf %s "checking how to convert $build file names to toolchain format... " >&6; }
12323 if test ${lt_cv_to_tool_file_cmd+y}
12324 then :
12325 printf %s "(cached) " >&6
12326 else $as_nop
12327 #assume ordinary cross tools, or native build.
12328 lt_cv_to_tool_file_cmd=func_convert_file_noop
12329 case $host in
12330 *-*-mingw* )
12331 case $build in
12332 *-*-mingw* ) # actually msys
12333 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
12334 ;;
12335 esac
12336 ;;
12337 esac
12338
12339 fi
12340
12341 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
12342 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
12343 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
12344
12345
12346
12347
12348
12349 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
12350 printf %s "checking for $LD option to reload object files... " >&6; }
12351 if test ${lt_cv_ld_reload_flag+y}
12352 then :
12353 printf %s "(cached) " >&6
12354 else $as_nop
12355 lt_cv_ld_reload_flag='-r'
12356 fi
12357 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
12358 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
12359 reload_flag=$lt_cv_ld_reload_flag
12360 case $reload_flag in
12361 "" | " "*) ;;
12362 *) reload_flag=" $reload_flag" ;;
12363 esac
12364 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12365 case $host_os in
12366 cygwin* | mingw* | pw32* | cegcc*)
12367 if test yes != "$GCC"; then
12368 reload_cmds=false
12369 fi
12370 ;;
12371 darwin*)
12372 if test yes = "$GCC"; then
12373 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
12374 else
12375 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12376 fi
12377 ;;
12378 esac
12379
12380
12381
12382
12383
12384
12385
12386
12387
12388 if test -n "$ac_tool_prefix"; then
12389 # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args.
12390 set dummy ${ac_tool_prefix}file; ac_word=$2
12391 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12392 printf %s "checking for $ac_word... " >&6; }
12393 if test ${ac_cv_prog_FILECMD+y}
12394 then :
12395 printf %s "(cached) " >&6
12396 else $as_nop
12397 if test -n "$FILECMD"; then
12398 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
12399 else
12400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12401 for as_dir in $PATH
12402 do
12403 IFS=$as_save_IFS
12404 case $as_dir in #(((
12405 '') as_dir=./ ;;
12406 */) ;;
12407 *) as_dir=$as_dir/ ;;
12408 esac
12409 for ac_exec_ext in '' $ac_executable_extensions; do
12410 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12411 ac_cv_prog_FILECMD="${ac_tool_prefix}file"
12412 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12413 break 2
12414 fi
12415 done
12416 done
12417 IFS=$as_save_IFS
12418
12419 fi
12420 fi
12421 FILECMD=$ac_cv_prog_FILECMD
12422 if test -n "$FILECMD"; then
12423 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
12424 printf "%s\n" "$FILECMD" >&6; }
12425 else
12426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12427 printf "%s\n" "no" >&6; }
12428 fi
12429
12430
12431 fi
12432 if test -z "$ac_cv_prog_FILECMD"; then
12433 ac_ct_FILECMD=$FILECMD
12434 # Extract the first word of "file", so it can be a program name with args.
12435 set dummy file; ac_word=$2
12436 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12437 printf %s "checking for $ac_word... " >&6; }
12438 if test ${ac_cv_prog_ac_ct_FILECMD+y}
12439 then :
12440 printf %s "(cached) " >&6
12441 else $as_nop
12442 if test -n "$ac_ct_FILECMD"; then
12443 ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test.
12444 else
12445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12446 for as_dir in $PATH
12447 do
12448 IFS=$as_save_IFS
12449 case $as_dir in #(((
12450 '') as_dir=./ ;;
12451 */) ;;
12452 *) as_dir=$as_dir/ ;;
12453 esac
12454 for ac_exec_ext in '' $ac_executable_extensions; do
12455 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12456 ac_cv_prog_ac_ct_FILECMD="file"
12457 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12458 break 2
12459 fi
12460 done
12461 done
12462 IFS=$as_save_IFS
12463
12464 fi
12465 fi
12466 ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD
12467 if test -n "$ac_ct_FILECMD"; then
12468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5
12469 printf "%s\n" "$ac_ct_FILECMD" >&6; }
12470 else
12471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12472 printf "%s\n" "no" >&6; }
12473 fi
12474
12475 if test "x$ac_ct_FILECMD" = x; then
12476 FILECMD=":"
12477 else
12478 case $cross_compiling:$ac_tool_warned in
12479 yes:)
12480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12481 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12482 ac_tool_warned=yes ;;
12483 esac
12484 FILECMD=$ac_ct_FILECMD
12485 fi
12486 else
12487 FILECMD="$ac_cv_prog_FILECMD"
12488 fi
12489
12490
12491
12492
12493
12494
12495
12496 if test -n "$ac_tool_prefix"; then
12497 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
12498 set dummy ${ac_tool_prefix}objdump; ac_word=$2
12499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12500 printf %s "checking for $ac_word... " >&6; }
12501 if test ${ac_cv_prog_OBJDUMP+y}
12502 then :
12503 printf %s "(cached) " >&6
12504 else $as_nop
12505 if test -n "$OBJDUMP"; then
12506 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12507 else
12508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12509 for as_dir in $PATH
12510 do
12511 IFS=$as_save_IFS
12512 case $as_dir in #(((
12513 '') as_dir=./ ;;
12514 */) ;;
12515 *) as_dir=$as_dir/ ;;
12516 esac
12517 for ac_exec_ext in '' $ac_executable_extensions; do
12518 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12519 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
12520 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12521 break 2
12522 fi
12523 done
12524 done
12525 IFS=$as_save_IFS
12526
12527 fi
12528 fi
12529 OBJDUMP=$ac_cv_prog_OBJDUMP
12530 if test -n "$OBJDUMP"; then
12531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12532 printf "%s\n" "$OBJDUMP" >&6; }
12533 else
12534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12535 printf "%s\n" "no" >&6; }
12536 fi
12537
12538
12539 fi
12540 if test -z "$ac_cv_prog_OBJDUMP"; then
12541 ac_ct_OBJDUMP=$OBJDUMP
12542 # Extract the first word of "objdump", so it can be a program name with args.
12543 set dummy objdump; ac_word=$2
12544 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12545 printf %s "checking for $ac_word... " >&6; }
12546 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
12547 then :
12548 printf %s "(cached) " >&6
12549 else $as_nop
12550 if test -n "$ac_ct_OBJDUMP"; then
12551 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
12552 else
12553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12554 for as_dir in $PATH
12555 do
12556 IFS=$as_save_IFS
12557 case $as_dir in #(((
12558 '') as_dir=./ ;;
12559 */) ;;
12560 *) as_dir=$as_dir/ ;;
12561 esac
12562 for ac_exec_ext in '' $ac_executable_extensions; do
12563 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12564 ac_cv_prog_ac_ct_OBJDUMP="objdump"
12565 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12566 break 2
12567 fi
12568 done
12569 done
12570 IFS=$as_save_IFS
12571
12572 fi
12573 fi
12574 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
12575 if test -n "$ac_ct_OBJDUMP"; then
12576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
12577 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
12578 else
12579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12580 printf "%s\n" "no" >&6; }
12581 fi
12582
12583 if test "x$ac_ct_OBJDUMP" = x; then
12584 OBJDUMP="false"
12585 else
12586 case $cross_compiling:$ac_tool_warned in
12587 yes:)
12588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12589 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12590 ac_tool_warned=yes ;;
12591 esac
12592 OBJDUMP=$ac_ct_OBJDUMP
12593 fi
12594 else
12595 OBJDUMP="$ac_cv_prog_OBJDUMP"
12596 fi
12597
12598 test -z "$OBJDUMP" && OBJDUMP=objdump
12599
12600
12601
12602
12603
12604
12605
12606
12607
12608 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
12609 printf %s "checking how to recognize dependent libraries... " >&6; }
12610 if test ${lt_cv_deplibs_check_method+y}
12611 then :
12612 printf %s "(cached) " >&6
12613 else $as_nop
12614 lt_cv_file_magic_cmd='$MAGIC_CMD'
12615 lt_cv_file_magic_test_file=
12616 lt_cv_deplibs_check_method='unknown'
12617 # Need to set the preceding variable on all platforms that support
12618 # interlibrary dependencies.
12619 # 'none' -- dependencies not supported.
12620 # 'unknown' -- same as none, but documents that we really don't know.
12621 # 'pass_all' -- all dependencies passed with no checks.
12622 # 'test_compile' -- check by making test program.
12623 # 'file_magic [[regex]]' -- check by looking for files in library path
12624 # that responds to the $file_magic_cmd with a given extended regex.
12625 # If you have 'file' or equivalent on your system and you're not sure
12626 # whether 'pass_all' will *always* work, you probably want this one.
12627
12628 case $host_os in
12629 aix[4-9]*)
12630 lt_cv_deplibs_check_method=pass_all
12631 ;;
12632
12633 beos*)
12634 lt_cv_deplibs_check_method=pass_all
12635 ;;
12636
12637 bsdi[45]*)
12638 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12639 lt_cv_file_magic_cmd='$FILECMD -L'
12640 lt_cv_file_magic_test_file=/shlib/libc.so
12641 ;;
12642
12643 cygwin*)
12644 # func_win32_libid is a shell function defined in ltmain.sh
12645 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12646 lt_cv_file_magic_cmd='func_win32_libid'
12647 ;;
12648
12649 mingw* | pw32*)
12650 # Base MSYS/MinGW do not provide the 'file' command needed by
12651 # func_win32_libid shell function, so use a weaker test based on 'objdump',
12652 # unless we find 'file', for example because we are cross-compiling.
12653 if ( file / ) >/dev/null 2>&1; then
12654 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12655 lt_cv_file_magic_cmd='func_win32_libid'
12656 else
12657 # Keep this pattern in sync with the one in func_win32_libid.
12658 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
12659 lt_cv_file_magic_cmd='$OBJDUMP -f'
12660 fi
12661 ;;
12662
12663 cegcc*)
12664 # use the weaker test based on 'objdump'. See mingw*.
12665 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
12666 lt_cv_file_magic_cmd='$OBJDUMP -f'
12667 ;;
12668
12669 darwin* | rhapsody*)
12670 lt_cv_deplibs_check_method=pass_all
12671 ;;
12672
12673 freebsd* | dragonfly* | midnightbsd*)
12674 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12675 case $host_cpu in
12676 i*86 )
12677 # Not sure whether the presence of OpenBSD here was a mistake.
12678 # Let's accept both of them until this is cleared up.
12679 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12680 lt_cv_file_magic_cmd=$FILECMD
12681 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12682 ;;
12683 esac
12684 else
12685 lt_cv_deplibs_check_method=pass_all
12686 fi
12687 ;;
12688
12689 haiku*)
12690 lt_cv_deplibs_check_method=pass_all
12691 ;;
12692
12693 hpux10.20* | hpux11*)
12694 lt_cv_file_magic_cmd=$FILECMD
12695 case $host_cpu in
12696 ia64*)
12697 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12698 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12699 ;;
12700 hppa*64*)
12701 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]'
12702 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12703 ;;
12704 *)
12705 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
12706 lt_cv_file_magic_test_file=/usr/lib/libc.sl
12707 ;;
12708 esac
12709 ;;
12710
12711 interix[3-9]*)
12712 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12713 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12714 ;;
12715
12716 irix5* | irix6* | nonstopux*)
12717 case $LD in
12718 *-32|*"-32 ") libmagic=32-bit;;
12719 *-n32|*"-n32 ") libmagic=N32;;
12720 *-64|*"-64 ") libmagic=64-bit;;
12721 *) libmagic=never-match;;
12722 esac
12723 lt_cv_deplibs_check_method=pass_all
12724 ;;
12725
12726 # This must be glibc/ELF.
12727 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12728 lt_cv_deplibs_check_method=pass_all
12729 ;;
12730
12731 netbsd*)
12732 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12733 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12734 else
12735 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12736 fi
12737 ;;
12738
12739 newos6*)
12740 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12741 lt_cv_file_magic_cmd=$FILECMD
12742 lt_cv_file_magic_test_file=/usr/lib/libnls.so
12743 ;;
12744
12745 *nto* | *qnx*)
12746 lt_cv_deplibs_check_method=pass_all
12747 ;;
12748
12749 openbsd* | bitrig*)
12750 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12751 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12752 else
12753 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12754 fi
12755 ;;
12756
12757 osf3* | osf4* | osf5*)
12758 lt_cv_deplibs_check_method=pass_all
12759 ;;
12760
12761 rdos*)
12762 lt_cv_deplibs_check_method=pass_all
12763 ;;
12764
12765 solaris*)
12766 lt_cv_deplibs_check_method=pass_all
12767 ;;
12768
12769 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12770 lt_cv_deplibs_check_method=pass_all
12771 ;;
12772
12773 sysv4 | sysv4.3*)
12774 case $host_vendor in
12775 motorola)
12776 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]'
12777 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12778 ;;
12779 ncr)
12780 lt_cv_deplibs_check_method=pass_all
12781 ;;
12782 sequent)
12783 lt_cv_file_magic_cmd='/bin/file'
12784 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12785 ;;
12786 sni)
12787 lt_cv_file_magic_cmd='/bin/file'
12788 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12789 lt_cv_file_magic_test_file=/lib/libc.so
12790 ;;
12791 siemens)
12792 lt_cv_deplibs_check_method=pass_all
12793 ;;
12794 pc)
12795 lt_cv_deplibs_check_method=pass_all
12796 ;;
12797 esac
12798 ;;
12799
12800 tpf*)
12801 lt_cv_deplibs_check_method=pass_all
12802 ;;
12803 os2*)
12804 lt_cv_deplibs_check_method=pass_all
12805 ;;
12806 esac
12807
12808 fi
12809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
12810 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
12811
12812 file_magic_glob=
12813 want_nocaseglob=no
12814 if test "$build" = "$host"; then
12815 case $host_os in
12816 mingw* | pw32*)
12817 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
12818 want_nocaseglob=yes
12819 else
12820 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
12821 fi
12822 ;;
12823 esac
12824 fi
12825
12826 file_magic_cmd=$lt_cv_file_magic_cmd
12827 deplibs_check_method=$lt_cv_deplibs_check_method
12828 test -z "$deplibs_check_method" && deplibs_check_method=unknown
12829
12830
12831
12832
12833
12834
12835
12836
12837
12838
12839
12840
12841
12842
12843
12844
12845
12846
12847
12848
12849
12850
12851 if test -n "$ac_tool_prefix"; then
12852 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
12853 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
12854 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12855 printf %s "checking for $ac_word... " >&6; }
12856 if test ${ac_cv_prog_DLLTOOL+y}
12857 then :
12858 printf %s "(cached) " >&6
12859 else $as_nop
12860 if test -n "$DLLTOOL"; then
12861 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
12862 else
12863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12864 for as_dir in $PATH
12865 do
12866 IFS=$as_save_IFS
12867 case $as_dir in #(((
12868 '') as_dir=./ ;;
12869 */) ;;
12870 *) as_dir=$as_dir/ ;;
12871 esac
12872 for ac_exec_ext in '' $ac_executable_extensions; do
12873 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12874 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
12875 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12876 break 2
12877 fi
12878 done
12879 done
12880 IFS=$as_save_IFS
12881
12882 fi
12883 fi
12884 DLLTOOL=$ac_cv_prog_DLLTOOL
12885 if test -n "$DLLTOOL"; then
12886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
12887 printf "%s\n" "$DLLTOOL" >&6; }
12888 else
12889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12890 printf "%s\n" "no" >&6; }
12891 fi
12892
12893
12894 fi
12895 if test -z "$ac_cv_prog_DLLTOOL"; then
12896 ac_ct_DLLTOOL=$DLLTOOL
12897 # Extract the first word of "dlltool", so it can be a program name with args.
12898 set dummy dlltool; ac_word=$2
12899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12900 printf %s "checking for $ac_word... " >&6; }
12901 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
12902 then :
12903 printf %s "(cached) " >&6
12904 else $as_nop
12905 if test -n "$ac_ct_DLLTOOL"; then
12906 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
12907 else
12908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12909 for as_dir in $PATH
12910 do
12911 IFS=$as_save_IFS
12912 case $as_dir in #(((
12913 '') as_dir=./ ;;
12914 */) ;;
12915 *) as_dir=$as_dir/ ;;
12916 esac
12917 for ac_exec_ext in '' $ac_executable_extensions; do
12918 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12919 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
12920 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12921 break 2
12922 fi
12923 done
12924 done
12925 IFS=$as_save_IFS
12926
12927 fi
12928 fi
12929 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
12930 if test -n "$ac_ct_DLLTOOL"; then
12931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
12932 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
12933 else
12934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12935 printf "%s\n" "no" >&6; }
12936 fi
12937
12938 if test "x$ac_ct_DLLTOOL" = x; then
12939 DLLTOOL="false"
12940 else
12941 case $cross_compiling:$ac_tool_warned in
12942 yes:)
12943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12944 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12945 ac_tool_warned=yes ;;
12946 esac
12947 DLLTOOL=$ac_ct_DLLTOOL
12948 fi
12949 else
12950 DLLTOOL="$ac_cv_prog_DLLTOOL"
12951 fi
12952
12953 test -z "$DLLTOOL" && DLLTOOL=dlltool
12954
12955
12956
12957
12958
12959
12960
12961
12962
12963
12964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
12965 printf %s "checking how to associate runtime and link libraries... " >&6; }
12966 if test ${lt_cv_sharedlib_from_linklib_cmd+y}
12967 then :
12968 printf %s "(cached) " >&6
12969 else $as_nop
12970 lt_cv_sharedlib_from_linklib_cmd='unknown'
12971
12972 case $host_os in
12973 cygwin* | mingw* | pw32* | cegcc*)
12974 # two different shell functions defined in ltmain.sh;
12975 # decide which one to use based on capabilities of $DLLTOOL
12976 case `$DLLTOOL --help 2>&1` in
12977 *--identify-strict*)
12978 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
12979 ;;
12980 *)
12981 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
12982 ;;
12983 esac
12984 ;;
12985 *)
12986 # fallback: assume linklib IS sharedlib
12987 lt_cv_sharedlib_from_linklib_cmd=$ECHO
12988 ;;
12989 esac
12990
12991 fi
12992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
12993 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
12994 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
12995 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
12996
12997
12998
12999
13000
13001
13002
13003 if test -n "$ac_tool_prefix"; then
13004 for ac_prog in ar
13005 do
13006 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13007 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13009 printf %s "checking for $ac_word... " >&6; }
13010 if test ${ac_cv_prog_AR+y}
13011 then :
13012 printf %s "(cached) " >&6
13013 else $as_nop
13014 if test -n "$AR"; then
13015 ac_cv_prog_AR="$AR" # Let the user override the test.
13016 else
13017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13018 for as_dir in $PATH
13019 do
13020 IFS=$as_save_IFS
13021 case $as_dir in #(((
13022 '') as_dir=./ ;;
13023 */) ;;
13024 *) as_dir=$as_dir/ ;;
13025 esac
13026 for ac_exec_ext in '' $ac_executable_extensions; do
13027 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13028 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
13029 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13030 break 2
13031 fi
13032 done
13033 done
13034 IFS=$as_save_IFS
13035
13036 fi
13037 fi
13038 AR=$ac_cv_prog_AR
13039 if test -n "$AR"; then
13040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
13041 printf "%s\n" "$AR" >&6; }
13042 else
13043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13044 printf "%s\n" "no" >&6; }
13045 fi
13046
13047
13048 test -n "$AR" && break
13049 done
13050 fi
13051 if test -z "$AR"; then
13052 ac_ct_AR=$AR
13053 for ac_prog in ar
13054 do
13055 # Extract the first word of "$ac_prog", so it can be a program name with args.
13056 set dummy $ac_prog; ac_word=$2
13057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13058 printf %s "checking for $ac_word... " >&6; }
13059 if test ${ac_cv_prog_ac_ct_AR+y}
13060 then :
13061 printf %s "(cached) " >&6
13062 else $as_nop
13063 if test -n "$ac_ct_AR"; then
13064 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13065 else
13066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13067 for as_dir in $PATH
13068 do
13069 IFS=$as_save_IFS
13070 case $as_dir in #(((
13071 '') as_dir=./ ;;
13072 */) ;;
13073 *) as_dir=$as_dir/ ;;
13074 esac
13075 for ac_exec_ext in '' $ac_executable_extensions; do
13076 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13077 ac_cv_prog_ac_ct_AR="$ac_prog"
13078 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13079 break 2
13080 fi
13081 done
13082 done
13083 IFS=$as_save_IFS
13084
13085 fi
13086 fi
13087 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13088 if test -n "$ac_ct_AR"; then
13089 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
13090 printf "%s\n" "$ac_ct_AR" >&6; }
13091 else
13092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13093 printf "%s\n" "no" >&6; }
13094 fi
13095
13096
13097 test -n "$ac_ct_AR" && break
13098 done
13099
13100 if test "x$ac_ct_AR" = x; then
13101 AR="false"
13102 else
13103 case $cross_compiling:$ac_tool_warned in
13104 yes:)
13105 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13106 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13107 ac_tool_warned=yes ;;
13108 esac
13109 AR=$ac_ct_AR
13110 fi
13111 fi
13112
13113 : ${AR=ar}
13114
13115
13116
13117
13118
13119
13120 # Use ARFLAGS variable as AR's operation code to sync the variable naming with
13121 # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
13122 # higher priority because thats what people were doing historically (setting
13123 # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS
13124 # variable obsoleted/removed.
13125
13126 test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
13127 lt_ar_flags=$AR_FLAGS
13128
13129
13130
13131
13132
13133
13134 # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override
13135 # by AR_FLAGS because that was never working and AR_FLAGS is about to die.
13136
13137
13138
13139
13140
13141
13142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
13143 printf %s "checking for archiver @FILE support... " >&6; }
13144 if test ${lt_cv_ar_at_file+y}
13145 then :
13146 printf %s "(cached) " >&6
13147 else $as_nop
13148 lt_cv_ar_at_file=no
13149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13150 /* end confdefs.h. */
13151
13152 int
13153 main (void)
13154 {
13155
13156 ;
13157 return 0;
13158 }
13159 _ACEOF
13160 if ac_fn_c_try_compile "$LINENO"
13161 then :
13162 echo conftest.$ac_objext > conftest.lst
13163 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
13164 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
13165 (eval $lt_ar_try) 2>&5
13166 ac_status=$?
13167 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13168 test $ac_status = 0; }
13169 if test 0 -eq "$ac_status"; then
13170 # Ensure the archiver fails upon bogus file names.
13171 rm -f conftest.$ac_objext libconftest.a
13172 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
13173 (eval $lt_ar_try) 2>&5
13174 ac_status=$?
13175 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13176 test $ac_status = 0; }
13177 if test 0 -ne "$ac_status"; then
13178 lt_cv_ar_at_file=@
13179 fi
13180 fi
13181 rm -f conftest.* libconftest.a
13182
13183 fi
13184 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13185
13186 fi
13187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
13188 printf "%s\n" "$lt_cv_ar_at_file" >&6; }
13189
13190 if test no = "$lt_cv_ar_at_file"; then
13191 archiver_list_spec=
13192 else
13193 archiver_list_spec=$lt_cv_ar_at_file
13194 fi
13195
13196
13197
13198
13199
13200
13201
13202 if test -n "$ac_tool_prefix"; then
13203 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13204 set dummy ${ac_tool_prefix}strip; ac_word=$2
13205 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13206 printf %s "checking for $ac_word... " >&6; }
13207 if test ${ac_cv_prog_STRIP+y}
13208 then :
13209 printf %s "(cached) " >&6
13210 else $as_nop
13211 if test -n "$STRIP"; then
13212 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13213 else
13214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13215 for as_dir in $PATH
13216 do
13217 IFS=$as_save_IFS
13218 case $as_dir in #(((
13219 '') as_dir=./ ;;
13220 */) ;;
13221 *) as_dir=$as_dir/ ;;
13222 esac
13223 for ac_exec_ext in '' $ac_executable_extensions; do
13224 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13225 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
13226 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13227 break 2
13228 fi
13229 done
13230 done
13231 IFS=$as_save_IFS
13232
13233 fi
13234 fi
13235 STRIP=$ac_cv_prog_STRIP
13236 if test -n "$STRIP"; then
13237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
13238 printf "%s\n" "$STRIP" >&6; }
13239 else
13240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13241 printf "%s\n" "no" >&6; }
13242 fi
13243
13244
13245 fi
13246 if test -z "$ac_cv_prog_STRIP"; then
13247 ac_ct_STRIP=$STRIP
13248 # Extract the first word of "strip", so it can be a program name with args.
13249 set dummy strip; ac_word=$2
13250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13251 printf %s "checking for $ac_word... " >&6; }
13252 if test ${ac_cv_prog_ac_ct_STRIP+y}
13253 then :
13254 printf %s "(cached) " >&6
13255 else $as_nop
13256 if test -n "$ac_ct_STRIP"; then
13257 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13258 else
13259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13260 for as_dir in $PATH
13261 do
13262 IFS=$as_save_IFS
13263 case $as_dir in #(((
13264 '') as_dir=./ ;;
13265 */) ;;
13266 *) as_dir=$as_dir/ ;;
13267 esac
13268 for ac_exec_ext in '' $ac_executable_extensions; do
13269 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13270 ac_cv_prog_ac_ct_STRIP="strip"
13271 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13272 break 2
13273 fi
13274 done
13275 done
13276 IFS=$as_save_IFS
13277
13278 fi
13279 fi
13280 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13281 if test -n "$ac_ct_STRIP"; then
13282 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
13283 printf "%s\n" "$ac_ct_STRIP" >&6; }
13284 else
13285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13286 printf "%s\n" "no" >&6; }
13287 fi
13288
13289 if test "x$ac_ct_STRIP" = x; then
13290 STRIP=":"
13291 else
13292 case $cross_compiling:$ac_tool_warned in
13293 yes:)
13294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13295 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13296 ac_tool_warned=yes ;;
13297 esac
13298 STRIP=$ac_ct_STRIP
13299 fi
13300 else
13301 STRIP="$ac_cv_prog_STRIP"
13302 fi
13303
13304 test -z "$STRIP" && STRIP=:
13305
13306
13307
13308
13309
13310
13311 if test -n "$ac_tool_prefix"; then
13312 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13313 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13314 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13315 printf %s "checking for $ac_word... " >&6; }
13316 if test ${ac_cv_prog_RANLIB+y}
13317 then :
13318 printf %s "(cached) " >&6
13319 else $as_nop
13320 if test -n "$RANLIB"; then
13321 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13322 else
13323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13324 for as_dir in $PATH
13325 do
13326 IFS=$as_save_IFS
13327 case $as_dir in #(((
13328 '') as_dir=./ ;;
13329 */) ;;
13330 *) as_dir=$as_dir/ ;;
13331 esac
13332 for ac_exec_ext in '' $ac_executable_extensions; do
13333 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13334 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13335 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13336 break 2
13337 fi
13338 done
13339 done
13340 IFS=$as_save_IFS
13341
13342 fi
13343 fi
13344 RANLIB=$ac_cv_prog_RANLIB
13345 if test -n "$RANLIB"; then
13346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
13347 printf "%s\n" "$RANLIB" >&6; }
13348 else
13349 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13350 printf "%s\n" "no" >&6; }
13351 fi
13352
13353
13354 fi
13355 if test -z "$ac_cv_prog_RANLIB"; then
13356 ac_ct_RANLIB=$RANLIB
13357 # Extract the first word of "ranlib", so it can be a program name with args.
13358 set dummy ranlib; ac_word=$2
13359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13360 printf %s "checking for $ac_word... " >&6; }
13361 if test ${ac_cv_prog_ac_ct_RANLIB+y}
13362 then :
13363 printf %s "(cached) " >&6
13364 else $as_nop
13365 if test -n "$ac_ct_RANLIB"; then
13366 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13367 else
13368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13369 for as_dir in $PATH
13370 do
13371 IFS=$as_save_IFS
13372 case $as_dir in #(((
13373 '') as_dir=./ ;;
13374 */) ;;
13375 *) as_dir=$as_dir/ ;;
13376 esac
13377 for ac_exec_ext in '' $ac_executable_extensions; do
13378 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13379 ac_cv_prog_ac_ct_RANLIB="ranlib"
13380 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13381 break 2
13382 fi
13383 done
13384 done
13385 IFS=$as_save_IFS
13386
13387 fi
13388 fi
13389 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13390 if test -n "$ac_ct_RANLIB"; then
13391 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
13392 printf "%s\n" "$ac_ct_RANLIB" >&6; }
13393 else
13394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13395 printf "%s\n" "no" >&6; }
13396 fi
13397
13398 if test "x$ac_ct_RANLIB" = x; then
13399 RANLIB=":"
13400 else
13401 case $cross_compiling:$ac_tool_warned in
13402 yes:)
13403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13404 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13405 ac_tool_warned=yes ;;
13406 esac
13407 RANLIB=$ac_ct_RANLIB
13408 fi
13409 else
13410 RANLIB="$ac_cv_prog_RANLIB"
13411 fi
13412
13413 test -z "$RANLIB" && RANLIB=:
13414
13415
13416
13417
13418
13419
13420 # Determine commands to create old-style static archives.
13421 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
13422 old_postinstall_cmds='chmod 644 $oldlib'
13423 old_postuninstall_cmds=
13424
13425 if test -n "$RANLIB"; then
13426 case $host_os in
13427 bitrig* | openbsd*)
13428 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
13429 ;;
13430 *)
13431 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
13432 ;;
13433 esac
13434 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
13435 fi
13436
13437 case $host_os in
13438 darwin*)
13439 lock_old_archive_extraction=yes ;;
13440 *)
13441 lock_old_archive_extraction=no ;;
13442 esac
13443
13444
13445
13446
13447
13448
13449
13450
13451
13452
13453
13454
13455
13456
13457
13458
13459
13460
13461
13462
13463
13464
13465
13466
13467
13468
13469
13470
13471
13472
13473
13474
13475
13476
13477
13478
13479
13480
13481
13482 # If no C compiler was specified, use CC.
13483 LTCC=${LTCC-"$CC"}
13484
13485 # If no C compiler flags were specified, use CFLAGS.
13486 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13487
13488 # Allow CC to be a program name with arguments.
13489 compiler=$CC
13490
13491
13492 # Check for command to grab the raw symbol name followed by C symbol from nm.
13493 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
13494 printf %s "checking command to parse $NM output from $compiler object... " >&6; }
13495 if test ${lt_cv_sys_global_symbol_pipe+y}
13496 then :
13497 printf %s "(cached) " >&6
13498 else $as_nop
13499
13500 # These are sane defaults that work on at least a few old systems.
13501 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
13502
13503 # Character class describing NM global symbol codes.
13504 symcode='[BCDEGRST]'
13505
13506 # Regexp to match symbols that can be accessed directly from C.
13507 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13508
13509 # Define system-specific variables.
13510 case $host_os in
13511 aix*)
13512 symcode='[BCDT]'
13513 ;;
13514 cygwin* | mingw* | pw32* | cegcc*)
13515 symcode='[ABCDGISTW]'
13516 ;;
13517 hpux*)
13518 if test ia64 = "$host_cpu"; then
13519 symcode='[ABCDEGRST]'
13520 fi
13521 ;;
13522 irix* | nonstopux*)
13523 symcode='[BCDEGRST]'
13524 ;;
13525 osf*)
13526 symcode='[BCDEGQRST]'
13527 ;;
13528 solaris*)
13529 symcode='[BDRT]'
13530 ;;
13531 sco3.2v5*)
13532 symcode='[DT]'
13533 ;;
13534 sysv4.2uw2*)
13535 symcode='[DT]'
13536 ;;
13537 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13538 symcode='[ABDT]'
13539 ;;
13540 sysv4)
13541 symcode='[DFNSTU]'
13542 ;;
13543 esac
13544
13545 # If we're using GNU nm, then use its standard symbol codes.
13546 case `$NM -V 2>&1` in
13547 *GNU* | *'with BFD'*)
13548 symcode='[ABCDGIRSTW]' ;;
13549 esac
13550
13551 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
13552 # Gets list of data symbols to import.
13553 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
13554 # Adjust the below global symbol transforms to fixup imported variables.
13555 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
13556 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
13557 lt_c_name_lib_hook="\
13558 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
13559 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
13560 else
13561 # Disable hooks by default.
13562 lt_cv_sys_global_symbol_to_import=
13563 lt_cdecl_hook=
13564 lt_c_name_hook=
13565 lt_c_name_lib_hook=
13566 fi
13567
13568 # Transform an extracted symbol line into a proper C declaration.
13569 # Some systems (esp. on ia64) link data and code symbols differently,
13570 # so use this general approach.
13571 lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
13572 $lt_cdecl_hook\
13573 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
13574 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
13575
13576 # Transform an extracted symbol line into symbol name and symbol address
13577 lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
13578 $lt_c_name_hook\
13579 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
13580 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
13581
13582 # Transform an extracted symbol line into symbol name with lib prefix and
13583 # symbol address.
13584 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
13585 $lt_c_name_lib_hook\
13586 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
13587 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
13588 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
13589
13590 # Handle CRLF in mingw tool chain
13591 opt_cr=
13592 case $build_os in
13593 mingw*)
13594 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13595 ;;
13596 esac
13597
13598 # Try without a prefix underscore, then with it.
13599 for ac_symprfx in "" "_"; do
13600
13601 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13602 symxfrm="\\1 $ac_symprfx\\2 \\2"
13603
13604 # Write the raw and C identifiers.
13605 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
13606 # Fake it for dumpbin and say T for any non-static function,
13607 # D for any global variable and I for any imported variable.
13608 # Also find C++ and __fastcall symbols from MSVC++ or ICC,
13609 # which start with @ or ?.
13610 lt_cv_sys_global_symbol_pipe="$AWK '"\
13611 " {last_section=section; section=\$ 3};"\
13612 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
13613 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
13614 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
13615 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
13616 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
13617 " \$ 0!~/External *\|/{next};"\
13618 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
13619 " {if(hide[section]) next};"\
13620 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
13621 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
13622 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
13623 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
13624 " ' prfx=^$ac_symprfx"
13625 else
13626 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13627 fi
13628 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
13629
13630 # Check to see that the pipe works correctly.
13631 pipe_works=no
13632
13633 rm -f conftest*
13634 cat > conftest.$ac_ext <<_LT_EOF
13635 #ifdef __cplusplus
13636 extern "C" {
13637 #endif
13638 char nm_test_var;
13639 void nm_test_func(void);
13640 void nm_test_func(void){}
13641 #ifdef __cplusplus
13642 }
13643 #endif
13644 int main(){nm_test_var='a';nm_test_func();return(0);}
13645 _LT_EOF
13646
13647 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13648 (eval $ac_compile) 2>&5
13649 ac_status=$?
13650 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13651 test $ac_status = 0; }; then
13652 # Now try to grab the symbols.
13653 nlist=conftest.nm
13654 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
13655 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
13656 ac_status=$?
13657 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13658 test $ac_status = 0; } && test -s "$nlist"; then
13659 # Try sorting and uniquifying the output.
13660 if sort "$nlist" | uniq > "$nlist"T; then
13661 mv -f "$nlist"T "$nlist"
13662 else
13663 rm -f "$nlist"T
13664 fi
13665
13666 # Make sure that we snagged all the symbols we need.
13667 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
13668 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
13669 cat <<_LT_EOF > conftest.$ac_ext
13670 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
13671 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
13672 /* DATA imports from DLLs on WIN32 can't be const, because runtime
13673 relocations are performed -- see ld's documentation on pseudo-relocs. */
13674 # define LT_DLSYM_CONST
13675 #elif defined __osf__
13676 /* This system does not cope well with relocations in const data. */
13677 # define LT_DLSYM_CONST
13678 #else
13679 # define LT_DLSYM_CONST const
13680 #endif
13681
13682 #ifdef __cplusplus
13683 extern "C" {
13684 #endif
13685
13686 _LT_EOF
13687 # Now generate the symbol file.
13688 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
13689
13690 cat <<_LT_EOF >> conftest.$ac_ext
13691
13692 /* The mapping between symbol names and symbols. */
13693 LT_DLSYM_CONST struct {
13694 const char *name;
13695 void *address;
13696 }
13697 lt__PROGRAM__LTX_preloaded_symbols[] =
13698 {
13699 { "@PROGRAM@", (void *) 0 },
13700 _LT_EOF
13701 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
13702 cat <<\_LT_EOF >> conftest.$ac_ext
13703 {0, (void *) 0}
13704 };
13705
13706 /* This works around a problem in FreeBSD linker */
13707 #ifdef FREEBSD_WORKAROUND
13708 static const void *lt_preloaded_setup() {
13709 return lt__PROGRAM__LTX_preloaded_symbols;
13710 }
13711 #endif
13712
13713 #ifdef __cplusplus
13714 }
13715 #endif
13716 _LT_EOF
13717 # Now try linking the two files.
13718 mv conftest.$ac_objext conftstm.$ac_objext
13719 lt_globsym_save_LIBS=$LIBS
13720 lt_globsym_save_CFLAGS=$CFLAGS
13721 LIBS=conftstm.$ac_objext
13722 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13723 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13724 (eval $ac_link) 2>&5
13725 ac_status=$?
13726 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13727 test $ac_status = 0; } && test -s conftest$ac_exeext; then
13728 pipe_works=yes
13729 fi
13730 LIBS=$lt_globsym_save_LIBS
13731 CFLAGS=$lt_globsym_save_CFLAGS
13732 else
13733 echo "cannot find nm_test_func in $nlist" >&5
13734 fi
13735 else
13736 echo "cannot find nm_test_var in $nlist" >&5
13737 fi
13738 else
13739 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13740 fi
13741 else
13742 echo "$progname: failed program was:" >&5
13743 cat conftest.$ac_ext >&5
13744 fi
13745 rm -rf conftest* conftst*
13746
13747 # Do not use the global_symbol_pipe unless it works.
13748 if test yes = "$pipe_works"; then
13749 break
13750 else
13751 lt_cv_sys_global_symbol_pipe=
13752 fi
13753 done
13754
13755 fi
13756
13757 if test -z "$lt_cv_sys_global_symbol_pipe"; then
13758 lt_cv_sys_global_symbol_to_cdecl=
13759 fi
13760 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
13762 printf "%s\n" "failed" >&6; }
13763 else
13764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
13765 printf "%s\n" "ok" >&6; }
13766 fi
13767
13768 # Response file support.
13769 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
13770 nm_file_list_spec='@'
13771 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
13772 nm_file_list_spec='@'
13773 fi
13774
13775
13776
13777
13778
13779
13780
13781
13782
13783
13784
13785
13786
13787
13788
13789
13790
13791
13792
13793
13794
13795
13796
13797
13798
13799
13800
13801
13802
13803
13804
13805
13806
13807
13808
13809
13810
13811 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
13812 printf %s "checking for sysroot... " >&6; }
13813
13814 # Check whether --with-sysroot was given.
13815 if test ${with_sysroot+y}
13816 then :
13817 withval=$with_sysroot;
13818 else $as_nop
13819 with_sysroot=no
13820 fi
13821
13822
13823 lt_sysroot=
13824 case $with_sysroot in #(
13825 yes)
13826 if test yes = "$GCC"; then
13827 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
13828 fi
13829 ;; #(
13830 /*)
13831 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
13832 ;; #(
13833 no|'')
13834 ;; #(
13835 *)
13836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
13837 printf "%s\n" "$with_sysroot" >&6; }
13838 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
13839 ;;
13840 esac
13841
13842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
13843 printf "%s\n" "${lt_sysroot:-no}" >&6; }
13844
13845
13846
13847
13848
13849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
13850 printf %s "checking for a working dd... " >&6; }
13851 if test ${ac_cv_path_lt_DD+y}
13852 then :
13853 printf %s "(cached) " >&6
13854 else $as_nop
13855 printf 0123456789abcdef0123456789abcdef >conftest.i
13856 cat conftest.i conftest.i >conftest2.i
13857 : ${lt_DD:=$DD}
13858 if test -z "$lt_DD"; then
13859 ac_path_lt_DD_found=false
13860 # Loop through the user's path and test for each of PROGNAME-LIST
13861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13862 for as_dir in $PATH
13863 do
13864 IFS=$as_save_IFS
13865 case $as_dir in #(((
13866 '') as_dir=./ ;;
13867 */) ;;
13868 *) as_dir=$as_dir/ ;;
13869 esac
13870 for ac_prog in dd
13871 do
13872 for ac_exec_ext in '' $ac_executable_extensions; do
13873 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
13874 as_fn_executable_p "$ac_path_lt_DD" || continue
13875 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
13876 cmp -s conftest.i conftest.out \
13877 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
13878 fi
13879 $ac_path_lt_DD_found && break 3
13880 done
13881 done
13882 done
13883 IFS=$as_save_IFS
13884 if test -z "$ac_cv_path_lt_DD"; then
13885 :
13886 fi
13887 else
13888 ac_cv_path_lt_DD=$lt_DD
13889 fi
13890
13891 rm -f conftest.i conftest2.i conftest.out
13892 fi
13893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
13894 printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
13895
13896
13897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
13898 printf %s "checking how to truncate binary pipes... " >&6; }
13899 if test ${lt_cv_truncate_bin+y}
13900 then :
13901 printf %s "(cached) " >&6
13902 else $as_nop
13903 printf 0123456789abcdef0123456789abcdef >conftest.i
13904 cat conftest.i conftest.i >conftest2.i
13905 lt_cv_truncate_bin=
13906 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
13907 cmp -s conftest.i conftest.out \
13908 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
13909 fi
13910 rm -f conftest.i conftest2.i conftest.out
13911 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
13912 fi
13913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
13914 printf "%s\n" "$lt_cv_truncate_bin" >&6; }
13915
13916
13917
13918
13919
13920
13921
13922 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
13923 func_cc_basename ()
13924 {
13925 for cc_temp in $*""; do
13926 case $cc_temp in
13927 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13928 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13929 \-*) ;;
13930 *) break;;
13931 esac
13932 done
13933 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13934 }
13935
13936 # Check whether --enable-libtool-lock was given.
13937 if test ${enable_libtool_lock+y}
13938 then :
13939 enableval=$enable_libtool_lock;
13940 fi
13941
13942 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
13943
13944 # Some flags need to be propagated to the compiler or linker for good
13945 # libtool support.
13946 case $host in
13947 ia64-*-hpux*)
13948 # Find out what ABI is being produced by ac_compile, and set mode
13949 # options accordingly.
13950 echo 'int i;' > conftest.$ac_ext
13951 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13952 (eval $ac_compile) 2>&5
13953 ac_status=$?
13954 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13955 test $ac_status = 0; }; then
13956 case `$FILECMD conftest.$ac_objext` in
13957 *ELF-32*)
13958 HPUX_IA64_MODE=32
13959 ;;
13960 *ELF-64*)
13961 HPUX_IA64_MODE=64
13962 ;;
13963 esac
13964 fi
13965 rm -rf conftest*
13966 ;;
13967 *-*-irix6*)
13968 # Find out what ABI is being produced by ac_compile, and set linker
13969 # options accordingly.
13970 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
13971 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13972 (eval $ac_compile) 2>&5
13973 ac_status=$?
13974 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13975 test $ac_status = 0; }; then
13976 if test yes = "$lt_cv_prog_gnu_ld"; then
13977 case `$FILECMD conftest.$ac_objext` in
13978 *32-bit*)
13979 LD="${LD-ld} -melf32bsmip"
13980 ;;
13981 *N32*)
13982 LD="${LD-ld} -melf32bmipn32"
13983 ;;
13984 *64-bit*)
13985 LD="${LD-ld} -melf64bmip"
13986 ;;
13987 esac
13988 else
13989 case `$FILECMD conftest.$ac_objext` in
13990 *32-bit*)
13991 LD="${LD-ld} -32"
13992 ;;
13993 *N32*)
13994 LD="${LD-ld} -n32"
13995 ;;
13996 *64-bit*)
13997 LD="${LD-ld} -64"
13998 ;;
13999 esac
14000 fi
14001 fi
14002 rm -rf conftest*
14003 ;;
14004
14005 mips64*-*linux*)
14006 # Find out what ABI is being produced by ac_compile, and set linker
14007 # options accordingly.
14008 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
14009 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14010 (eval $ac_compile) 2>&5
14011 ac_status=$?
14012 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14013 test $ac_status = 0; }; then
14014 emul=elf
14015 case `$FILECMD conftest.$ac_objext` in
14016 *32-bit*)
14017 emul="${emul}32"
14018 ;;
14019 *64-bit*)
14020 emul="${emul}64"
14021 ;;
14022 esac
14023 case `$FILECMD conftest.$ac_objext` in
14024 *MSB*)
14025 emul="${emul}btsmip"
14026 ;;
14027 *LSB*)
14028 emul="${emul}ltsmip"
14029 ;;
14030 esac
14031 case `$FILECMD conftest.$ac_objext` in
14032 *N32*)
14033 emul="${emul}n32"
14034 ;;
14035 esac
14036 LD="${LD-ld} -m $emul"
14037 fi
14038 rm -rf conftest*
14039 ;;
14040
14041 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
14042 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
14043 # Find out what ABI is being produced by ac_compile, and set linker
14044 # options accordingly. Note that the listed cases only cover the
14045 # situations where additional linker options are needed (such as when
14046 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
14047 # vice versa); the common cases where no linker options are needed do
14048 # not appear in the list.
14049 echo 'int i;' > conftest.$ac_ext
14050 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14051 (eval $ac_compile) 2>&5
14052 ac_status=$?
14053 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14054 test $ac_status = 0; }; then
14055 case `$FILECMD conftest.o` in
14056 *32-bit*)
14057 case $host in
14058 x86_64-*kfreebsd*-gnu)
14059 LD="${LD-ld} -m elf_i386_fbsd"
14060 ;;
14061 x86_64-*linux*)
14062 case `$FILECMD conftest.o` in
14063 *x86-64*)
14064 LD="${LD-ld} -m elf32_x86_64"
14065 ;;
14066 *)
14067 LD="${LD-ld} -m elf_i386"
14068 ;;
14069 esac
14070 ;;
14071 powerpc64le-*linux*)
14072 LD="${LD-ld} -m elf32lppclinux"
14073 ;;
14074 powerpc64-*linux*)
14075 LD="${LD-ld} -m elf32ppclinux"
14076 ;;
14077 s390x-*linux*)
14078 LD="${LD-ld} -m elf_s390"
14079 ;;
14080 sparc64-*linux*)
14081 LD="${LD-ld} -m elf32_sparc"
14082 ;;
14083 esac
14084 ;;
14085 *64-bit*)
14086 case $host in
14087 x86_64-*kfreebsd*-gnu)
14088 LD="${LD-ld} -m elf_x86_64_fbsd"
14089 ;;
14090 x86_64-*linux*)
14091 LD="${LD-ld} -m elf_x86_64"
14092 ;;
14093 powerpcle-*linux*)
14094 LD="${LD-ld} -m elf64lppc"
14095 ;;
14096 powerpc-*linux*)
14097 LD="${LD-ld} -m elf64ppc"
14098 ;;
14099 s390*-*linux*|s390*-*tpf*)
14100 LD="${LD-ld} -m elf64_s390"
14101 ;;
14102 sparc*-*linux*)
14103 LD="${LD-ld} -m elf64_sparc"
14104 ;;
14105 esac
14106 ;;
14107 esac
14108 fi
14109 rm -rf conftest*
14110 ;;
14111
14112 *-*-sco3.2v5*)
14113 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
14114 SAVE_CFLAGS=$CFLAGS
14115 CFLAGS="$CFLAGS -belf"
14116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
14117 printf %s "checking whether the C compiler needs -belf... " >&6; }
14118 if test ${lt_cv_cc_needs_belf+y}
14119 then :
14120 printf %s "(cached) " >&6
14121 else $as_nop
14122 ac_ext=c
14123 ac_cpp='$CPP $CPPFLAGS'
14124 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14125 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14126 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14127
14128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14129 /* end confdefs.h. */
14130
14131 int
14132 main (void)
14133 {
14134
14135 ;
14136 return 0;
14137 }
14138 _ACEOF
14139 if ac_fn_c_try_link "$LINENO"
14140 then :
14141 lt_cv_cc_needs_belf=yes
14142 else $as_nop
14143 lt_cv_cc_needs_belf=no
14144 fi
14145 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14146 conftest$ac_exeext conftest.$ac_ext
14147 ac_ext=c
14148 ac_cpp='$CPP $CPPFLAGS'
14149 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14150 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14151 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14152
14153 fi
14154 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
14155 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
14156 if test yes != "$lt_cv_cc_needs_belf"; then
14157 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
14158 CFLAGS=$SAVE_CFLAGS
14159 fi
14160 ;;
14161 *-*solaris*)
14162 # Find out what ABI is being produced by ac_compile, and set linker
14163 # options accordingly.
14164 echo 'int i;' > conftest.$ac_ext
14165 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14166 (eval $ac_compile) 2>&5
14167 ac_status=$?
14168 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14169 test $ac_status = 0; }; then
14170 case `$FILECMD conftest.o` in
14171 *64-bit*)
14172 case $lt_cv_prog_gnu_ld in
14173 yes*)
14174 case $host in
14175 i?86-*-solaris*|x86_64-*-solaris*)
14176 LD="${LD-ld} -m elf_x86_64"
14177 ;;
14178 sparc*-*-solaris*)
14179 LD="${LD-ld} -m elf64_sparc"
14180 ;;
14181 esac
14182 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
14183 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
14184 LD=${LD-ld}_sol2
14185 fi
14186 ;;
14187 *)
14188 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
14189 LD="${LD-ld} -64"
14190 fi
14191 ;;
14192 esac
14193 ;;
14194 esac
14195 fi
14196 rm -rf conftest*
14197 ;;
14198 esac
14199
14200 need_locks=$enable_libtool_lock
14201
14202 if test -n "$ac_tool_prefix"; then
14203 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
14204 set dummy ${ac_tool_prefix}mt; ac_word=$2
14205 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14206 printf %s "checking for $ac_word... " >&6; }
14207 if test ${ac_cv_prog_MANIFEST_TOOL+y}
14208 then :
14209 printf %s "(cached) " >&6
14210 else $as_nop
14211 if test -n "$MANIFEST_TOOL"; then
14212 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
14213 else
14214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14215 for as_dir in $PATH
14216 do
14217 IFS=$as_save_IFS
14218 case $as_dir in #(((
14219 '') as_dir=./ ;;
14220 */) ;;
14221 *) as_dir=$as_dir/ ;;
14222 esac
14223 for ac_exec_ext in '' $ac_executable_extensions; do
14224 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14225 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
14226 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14227 break 2
14228 fi
14229 done
14230 done
14231 IFS=$as_save_IFS
14232
14233 fi
14234 fi
14235 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
14236 if test -n "$MANIFEST_TOOL"; then
14237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
14238 printf "%s\n" "$MANIFEST_TOOL" >&6; }
14239 else
14240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14241 printf "%s\n" "no" >&6; }
14242 fi
14243
14244
14245 fi
14246 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
14247 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
14248 # Extract the first word of "mt", so it can be a program name with args.
14249 set dummy mt; ac_word=$2
14250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14251 printf %s "checking for $ac_word... " >&6; }
14252 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
14253 then :
14254 printf %s "(cached) " >&6
14255 else $as_nop
14256 if test -n "$ac_ct_MANIFEST_TOOL"; then
14257 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
14258 else
14259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14260 for as_dir in $PATH
14261 do
14262 IFS=$as_save_IFS
14263 case $as_dir in #(((
14264 '') as_dir=./ ;;
14265 */) ;;
14266 *) as_dir=$as_dir/ ;;
14267 esac
14268 for ac_exec_ext in '' $ac_executable_extensions; do
14269 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14270 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
14271 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14272 break 2
14273 fi
14274 done
14275 done
14276 IFS=$as_save_IFS
14277
14278 fi
14279 fi
14280 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
14281 if test -n "$ac_ct_MANIFEST_TOOL"; then
14282 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
14283 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
14284 else
14285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14286 printf "%s\n" "no" >&6; }
14287 fi
14288
14289 if test "x$ac_ct_MANIFEST_TOOL" = x; then
14290 MANIFEST_TOOL=":"
14291 else
14292 case $cross_compiling:$ac_tool_warned in
14293 yes:)
14294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14295 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14296 ac_tool_warned=yes ;;
14297 esac
14298 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
14299 fi
14300 else
14301 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
14302 fi
14303
14304 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
14305 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
14306 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
14307 if test ${lt_cv_path_mainfest_tool+y}
14308 then :
14309 printf %s "(cached) " >&6
14310 else $as_nop
14311 lt_cv_path_mainfest_tool=no
14312 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
14313 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
14314 cat conftest.err >&5
14315 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
14316 lt_cv_path_mainfest_tool=yes
14317 fi
14318 rm -f conftest*
14319 fi
14320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
14321 printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
14322 if test yes != "$lt_cv_path_mainfest_tool"; then
14323 MANIFEST_TOOL=:
14324 fi
14325
14326
14327
14328
14329
14330
14331 case $host_os in
14332 rhapsody* | darwin*)
14333 if test -n "$ac_tool_prefix"; then
14334 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
14335 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
14336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14337 printf %s "checking for $ac_word... " >&6; }
14338 if test ${ac_cv_prog_DSYMUTIL+y}
14339 then :
14340 printf %s "(cached) " >&6
14341 else $as_nop
14342 if test -n "$DSYMUTIL"; then
14343 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
14344 else
14345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14346 for as_dir in $PATH
14347 do
14348 IFS=$as_save_IFS
14349 case $as_dir in #(((
14350 '') as_dir=./ ;;
14351 */) ;;
14352 *) as_dir=$as_dir/ ;;
14353 esac
14354 for ac_exec_ext in '' $ac_executable_extensions; do
14355 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14356 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
14357 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14358 break 2
14359 fi
14360 done
14361 done
14362 IFS=$as_save_IFS
14363
14364 fi
14365 fi
14366 DSYMUTIL=$ac_cv_prog_DSYMUTIL
14367 if test -n "$DSYMUTIL"; then
14368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
14369 printf "%s\n" "$DSYMUTIL" >&6; }
14370 else
14371 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14372 printf "%s\n" "no" >&6; }
14373 fi
14374
14375
14376 fi
14377 if test -z "$ac_cv_prog_DSYMUTIL"; then
14378 ac_ct_DSYMUTIL=$DSYMUTIL
14379 # Extract the first word of "dsymutil", so it can be a program name with args.
14380 set dummy dsymutil; ac_word=$2
14381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14382 printf %s "checking for $ac_word... " >&6; }
14383 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
14384 then :
14385 printf %s "(cached) " >&6
14386 else $as_nop
14387 if test -n "$ac_ct_DSYMUTIL"; then
14388 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
14389 else
14390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14391 for as_dir in $PATH
14392 do
14393 IFS=$as_save_IFS
14394 case $as_dir in #(((
14395 '') as_dir=./ ;;
14396 */) ;;
14397 *) as_dir=$as_dir/ ;;
14398 esac
14399 for ac_exec_ext in '' $ac_executable_extensions; do
14400 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14401 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
14402 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14403 break 2
14404 fi
14405 done
14406 done
14407 IFS=$as_save_IFS
14408
14409 fi
14410 fi
14411 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
14412 if test -n "$ac_ct_DSYMUTIL"; then
14413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
14414 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
14415 else
14416 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14417 printf "%s\n" "no" >&6; }
14418 fi
14419
14420 if test "x$ac_ct_DSYMUTIL" = x; then
14421 DSYMUTIL=":"
14422 else
14423 case $cross_compiling:$ac_tool_warned in
14424 yes:)
14425 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14426 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14427 ac_tool_warned=yes ;;
14428 esac
14429 DSYMUTIL=$ac_ct_DSYMUTIL
14430 fi
14431 else
14432 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
14433 fi
14434
14435 if test -n "$ac_tool_prefix"; then
14436 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
14437 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
14438 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14439 printf %s "checking for $ac_word... " >&6; }
14440 if test ${ac_cv_prog_NMEDIT+y}
14441 then :
14442 printf %s "(cached) " >&6
14443 else $as_nop
14444 if test -n "$NMEDIT"; then
14445 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
14446 else
14447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14448 for as_dir in $PATH
14449 do
14450 IFS=$as_save_IFS
14451 case $as_dir in #(((
14452 '') as_dir=./ ;;
14453 */) ;;
14454 *) as_dir=$as_dir/ ;;
14455 esac
14456 for ac_exec_ext in '' $ac_executable_extensions; do
14457 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14458 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
14459 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14460 break 2
14461 fi
14462 done
14463 done
14464 IFS=$as_save_IFS
14465
14466 fi
14467 fi
14468 NMEDIT=$ac_cv_prog_NMEDIT
14469 if test -n "$NMEDIT"; then
14470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
14471 printf "%s\n" "$NMEDIT" >&6; }
14472 else
14473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14474 printf "%s\n" "no" >&6; }
14475 fi
14476
14477
14478 fi
14479 if test -z "$ac_cv_prog_NMEDIT"; then
14480 ac_ct_NMEDIT=$NMEDIT
14481 # Extract the first word of "nmedit", so it can be a program name with args.
14482 set dummy nmedit; ac_word=$2
14483 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14484 printf %s "checking for $ac_word... " >&6; }
14485 if test ${ac_cv_prog_ac_ct_NMEDIT+y}
14486 then :
14487 printf %s "(cached) " >&6
14488 else $as_nop
14489 if test -n "$ac_ct_NMEDIT"; then
14490 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
14491 else
14492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14493 for as_dir in $PATH
14494 do
14495 IFS=$as_save_IFS
14496 case $as_dir in #(((
14497 '') as_dir=./ ;;
14498 */) ;;
14499 *) as_dir=$as_dir/ ;;
14500 esac
14501 for ac_exec_ext in '' $ac_executable_extensions; do
14502 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14503 ac_cv_prog_ac_ct_NMEDIT="nmedit"
14504 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14505 break 2
14506 fi
14507 done
14508 done
14509 IFS=$as_save_IFS
14510
14511 fi
14512 fi
14513 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
14514 if test -n "$ac_ct_NMEDIT"; then
14515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
14516 printf "%s\n" "$ac_ct_NMEDIT" >&6; }
14517 else
14518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14519 printf "%s\n" "no" >&6; }
14520 fi
14521
14522 if test "x$ac_ct_NMEDIT" = x; then
14523 NMEDIT=":"
14524 else
14525 case $cross_compiling:$ac_tool_warned in
14526 yes:)
14527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14528 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14529 ac_tool_warned=yes ;;
14530 esac
14531 NMEDIT=$ac_ct_NMEDIT
14532 fi
14533 else
14534 NMEDIT="$ac_cv_prog_NMEDIT"
14535 fi
14536
14537 if test -n "$ac_tool_prefix"; then
14538 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
14539 set dummy ${ac_tool_prefix}lipo; ac_word=$2
14540 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14541 printf %s "checking for $ac_word... " >&6; }
14542 if test ${ac_cv_prog_LIPO+y}
14543 then :
14544 printf %s "(cached) " >&6
14545 else $as_nop
14546 if test -n "$LIPO"; then
14547 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
14548 else
14549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14550 for as_dir in $PATH
14551 do
14552 IFS=$as_save_IFS
14553 case $as_dir in #(((
14554 '') as_dir=./ ;;
14555 */) ;;
14556 *) as_dir=$as_dir/ ;;
14557 esac
14558 for ac_exec_ext in '' $ac_executable_extensions; do
14559 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14560 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
14561 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14562 break 2
14563 fi
14564 done
14565 done
14566 IFS=$as_save_IFS
14567
14568 fi
14569 fi
14570 LIPO=$ac_cv_prog_LIPO
14571 if test -n "$LIPO"; then
14572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
14573 printf "%s\n" "$LIPO" >&6; }
14574 else
14575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14576 printf "%s\n" "no" >&6; }
14577 fi
14578
14579
14580 fi
14581 if test -z "$ac_cv_prog_LIPO"; then
14582 ac_ct_LIPO=$LIPO
14583 # Extract the first word of "lipo", so it can be a program name with args.
14584 set dummy lipo; ac_word=$2
14585 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14586 printf %s "checking for $ac_word... " >&6; }
14587 if test ${ac_cv_prog_ac_ct_LIPO+y}
14588 then :
14589 printf %s "(cached) " >&6
14590 else $as_nop
14591 if test -n "$ac_ct_LIPO"; then
14592 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
14593 else
14594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14595 for as_dir in $PATH
14596 do
14597 IFS=$as_save_IFS
14598 case $as_dir in #(((
14599 '') as_dir=./ ;;
14600 */) ;;
14601 *) as_dir=$as_dir/ ;;
14602 esac
14603 for ac_exec_ext in '' $ac_executable_extensions; do
14604 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14605 ac_cv_prog_ac_ct_LIPO="lipo"
14606 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14607 break 2
14608 fi
14609 done
14610 done
14611 IFS=$as_save_IFS
14612
14613 fi
14614 fi
14615 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
14616 if test -n "$ac_ct_LIPO"; then
14617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
14618 printf "%s\n" "$ac_ct_LIPO" >&6; }
14619 else
14620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14621 printf "%s\n" "no" >&6; }
14622 fi
14623
14624 if test "x$ac_ct_LIPO" = x; then
14625 LIPO=":"
14626 else
14627 case $cross_compiling:$ac_tool_warned in
14628 yes:)
14629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14630 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14631 ac_tool_warned=yes ;;
14632 esac
14633 LIPO=$ac_ct_LIPO
14634 fi
14635 else
14636 LIPO="$ac_cv_prog_LIPO"
14637 fi
14638
14639 if test -n "$ac_tool_prefix"; then
14640 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
14641 set dummy ${ac_tool_prefix}otool; ac_word=$2
14642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14643 printf %s "checking for $ac_word... " >&6; }
14644 if test ${ac_cv_prog_OTOOL+y}
14645 then :
14646 printf %s "(cached) " >&6
14647 else $as_nop
14648 if test -n "$OTOOL"; then
14649 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
14650 else
14651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14652 for as_dir in $PATH
14653 do
14654 IFS=$as_save_IFS
14655 case $as_dir in #(((
14656 '') as_dir=./ ;;
14657 */) ;;
14658 *) as_dir=$as_dir/ ;;
14659 esac
14660 for ac_exec_ext in '' $ac_executable_extensions; do
14661 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14662 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
14663 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14664 break 2
14665 fi
14666 done
14667 done
14668 IFS=$as_save_IFS
14669
14670 fi
14671 fi
14672 OTOOL=$ac_cv_prog_OTOOL
14673 if test -n "$OTOOL"; then
14674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
14675 printf "%s\n" "$OTOOL" >&6; }
14676 else
14677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14678 printf "%s\n" "no" >&6; }
14679 fi
14680
14681
14682 fi
14683 if test -z "$ac_cv_prog_OTOOL"; then
14684 ac_ct_OTOOL=$OTOOL
14685 # Extract the first word of "otool", so it can be a program name with args.
14686 set dummy otool; ac_word=$2
14687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14688 printf %s "checking for $ac_word... " >&6; }
14689 if test ${ac_cv_prog_ac_ct_OTOOL+y}
14690 then :
14691 printf %s "(cached) " >&6
14692 else $as_nop
14693 if test -n "$ac_ct_OTOOL"; then
14694 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
14695 else
14696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14697 for as_dir in $PATH
14698 do
14699 IFS=$as_save_IFS
14700 case $as_dir in #(((
14701 '') as_dir=./ ;;
14702 */) ;;
14703 *) as_dir=$as_dir/ ;;
14704 esac
14705 for ac_exec_ext in '' $ac_executable_extensions; do
14706 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14707 ac_cv_prog_ac_ct_OTOOL="otool"
14708 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14709 break 2
14710 fi
14711 done
14712 done
14713 IFS=$as_save_IFS
14714
14715 fi
14716 fi
14717 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
14718 if test -n "$ac_ct_OTOOL"; then
14719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
14720 printf "%s\n" "$ac_ct_OTOOL" >&6; }
14721 else
14722 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14723 printf "%s\n" "no" >&6; }
14724 fi
14725
14726 if test "x$ac_ct_OTOOL" = x; then
14727 OTOOL=":"
14728 else
14729 case $cross_compiling:$ac_tool_warned in
14730 yes:)
14731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14732 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14733 ac_tool_warned=yes ;;
14734 esac
14735 OTOOL=$ac_ct_OTOOL
14736 fi
14737 else
14738 OTOOL="$ac_cv_prog_OTOOL"
14739 fi
14740
14741 if test -n "$ac_tool_prefix"; then
14742 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
14743 set dummy ${ac_tool_prefix}otool64; ac_word=$2
14744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14745 printf %s "checking for $ac_word... " >&6; }
14746 if test ${ac_cv_prog_OTOOL64+y}
14747 then :
14748 printf %s "(cached) " >&6
14749 else $as_nop
14750 if test -n "$OTOOL64"; then
14751 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
14752 else
14753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14754 for as_dir in $PATH
14755 do
14756 IFS=$as_save_IFS
14757 case $as_dir in #(((
14758 '') as_dir=./ ;;
14759 */) ;;
14760 *) as_dir=$as_dir/ ;;
14761 esac
14762 for ac_exec_ext in '' $ac_executable_extensions; do
14763 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14764 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
14765 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14766 break 2
14767 fi
14768 done
14769 done
14770 IFS=$as_save_IFS
14771
14772 fi
14773 fi
14774 OTOOL64=$ac_cv_prog_OTOOL64
14775 if test -n "$OTOOL64"; then
14776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
14777 printf "%s\n" "$OTOOL64" >&6; }
14778 else
14779 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14780 printf "%s\n" "no" >&6; }
14781 fi
14782
14783
14784 fi
14785 if test -z "$ac_cv_prog_OTOOL64"; then
14786 ac_ct_OTOOL64=$OTOOL64
14787 # Extract the first word of "otool64", so it can be a program name with args.
14788 set dummy otool64; ac_word=$2
14789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14790 printf %s "checking for $ac_word... " >&6; }
14791 if test ${ac_cv_prog_ac_ct_OTOOL64+y}
14792 then :
14793 printf %s "(cached) " >&6
14794 else $as_nop
14795 if test -n "$ac_ct_OTOOL64"; then
14796 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
14797 else
14798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14799 for as_dir in $PATH
14800 do
14801 IFS=$as_save_IFS
14802 case $as_dir in #(((
14803 '') as_dir=./ ;;
14804 */) ;;
14805 *) as_dir=$as_dir/ ;;
14806 esac
14807 for ac_exec_ext in '' $ac_executable_extensions; do
14808 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14809 ac_cv_prog_ac_ct_OTOOL64="otool64"
14810 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14811 break 2
14812 fi
14813 done
14814 done
14815 IFS=$as_save_IFS
14816
14817 fi
14818 fi
14819 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
14820 if test -n "$ac_ct_OTOOL64"; then
14821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
14822 printf "%s\n" "$ac_ct_OTOOL64" >&6; }
14823 else
14824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14825 printf "%s\n" "no" >&6; }
14826 fi
14827
14828 if test "x$ac_ct_OTOOL64" = x; then
14829 OTOOL64=":"
14830 else
14831 case $cross_compiling:$ac_tool_warned in
14832 yes:)
14833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14834 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14835 ac_tool_warned=yes ;;
14836 esac
14837 OTOOL64=$ac_ct_OTOOL64
14838 fi
14839 else
14840 OTOOL64="$ac_cv_prog_OTOOL64"
14841 fi
14842
14843
14844
14845
14846
14847
14848
14849
14850
14851
14852
14853
14854
14855
14856
14857
14858
14859
14860
14861
14862
14863
14864
14865
14866
14867
14868
14869 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
14870 printf %s "checking for -single_module linker flag... " >&6; }
14871 if test ${lt_cv_apple_cc_single_mod+y}
14872 then :
14873 printf %s "(cached) " >&6
14874 else $as_nop
14875 lt_cv_apple_cc_single_mod=no
14876 if test -z "$LT_MULTI_MODULE"; then
14877 # By default we will add the -single_module flag. You can override
14878 # by either setting the environment variable LT_MULTI_MODULE
14879 # non-empty at configure time, or by adding -multi_module to the
14880 # link flags.
14881 rm -rf libconftest.dylib*
14882 echo "int foo(void){return 1;}" > conftest.c
14883 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14884 -dynamiclib -Wl,-single_module conftest.c" >&5
14885 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14886 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
14887 _lt_result=$?
14888 # If there is a non-empty error log, and "single_module"
14889 # appears in it, assume the flag caused a linker warning
14890 if test -s conftest.err && $GREP single_module conftest.err; then
14891 cat conftest.err >&5
14892 # Otherwise, if the output was created with a 0 exit code from
14893 # the compiler, it worked.
14894 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
14895 lt_cv_apple_cc_single_mod=yes
14896 else
14897 cat conftest.err >&5
14898 fi
14899 rm -rf libconftest.dylib*
14900 rm -f conftest.*
14901 fi
14902 fi
14903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
14904 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
14905
14906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
14907 printf %s "checking for -exported_symbols_list linker flag... " >&6; }
14908 if test ${lt_cv_ld_exported_symbols_list+y}
14909 then :
14910 printf %s "(cached) " >&6
14911 else $as_nop
14912 lt_cv_ld_exported_symbols_list=no
14913 save_LDFLAGS=$LDFLAGS
14914 echo "_main" > conftest.sym
14915 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
14916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14917 /* end confdefs.h. */
14918
14919 int
14920 main (void)
14921 {
14922
14923 ;
14924 return 0;
14925 }
14926 _ACEOF
14927 if ac_fn_c_try_link "$LINENO"
14928 then :
14929 lt_cv_ld_exported_symbols_list=yes
14930 else $as_nop
14931 lt_cv_ld_exported_symbols_list=no
14932 fi
14933 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14934 conftest$ac_exeext conftest.$ac_ext
14935 LDFLAGS=$save_LDFLAGS
14936
14937 fi
14938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
14939 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
14940
14941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
14942 printf %s "checking for -force_load linker flag... " >&6; }
14943 if test ${lt_cv_ld_force_load+y}
14944 then :
14945 printf %s "(cached) " >&6
14946 else $as_nop
14947 lt_cv_ld_force_load=no
14948 cat > conftest.c << _LT_EOF
14949 int forced_loaded() { return 2;}
14950 _LT_EOF
14951 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
14952 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
14953 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
14954 $AR $AR_FLAGS libconftest.a conftest.o 2>&5
14955 echo "$RANLIB libconftest.a" >&5
14956 $RANLIB libconftest.a 2>&5
14957 cat > conftest.c << _LT_EOF
14958 int main() { return 0;}
14959 _LT_EOF
14960 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
14961 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
14962 _lt_result=$?
14963 if test -s conftest.err && $GREP force_load conftest.err; then
14964 cat conftest.err >&5
14965 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
14966 lt_cv_ld_force_load=yes
14967 else
14968 cat conftest.err >&5
14969 fi
14970 rm -f conftest.err libconftest.a conftest conftest.c
14971 rm -rf conftest.dSYM
14972
14973 fi
14974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
14975 printf "%s\n" "$lt_cv_ld_force_load" >&6; }
14976 case $host_os in
14977 rhapsody* | darwin1.[012])
14978 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
14979 darwin1.*)
14980 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
14981 darwin*)
14982 case $MACOSX_DEPLOYMENT_TARGET,$host in
14983 10.[012],*|,*powerpc*-darwin[5-8]*)
14984 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
14985 *)
14986 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
14987 esac
14988 ;;
14989 esac
14990 if test yes = "$lt_cv_apple_cc_single_mod"; then
14991 _lt_dar_single_mod='$single_module'
14992 fi
14993 if test yes = "$lt_cv_ld_exported_symbols_list"; then
14994 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
14995 else
14996 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
14997 fi
14998 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
14999 _lt_dsymutil='~$DSYMUTIL $lib || :'
15000 else
15001 _lt_dsymutil=
15002 fi
15003 ;;
15004 esac
15005
15006 # func_munge_path_list VARIABLE PATH
15007 # -----------------------------------
15008 # VARIABLE is name of variable containing _space_ separated list of
15009 # directories to be munged by the contents of PATH, which is string
15010 # having a format:
15011 # "DIR[:DIR]:"
15012 # string "DIR[ DIR]" will be prepended to VARIABLE
15013 # ":DIR[:DIR]"
15014 # string "DIR[ DIR]" will be appended to VARIABLE
15015 # "DIRP[:DIRP]::[DIRA:]DIRA"
15016 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
15017 # "DIRA[ DIRA]" will be appended to VARIABLE
15018 # "DIR[:DIR]"
15019 # VARIABLE will be replaced by "DIR[ DIR]"
15020 func_munge_path_list ()
15021 {
15022 case x$2 in
15023 x)
15024 ;;
15025 *:)
15026 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
15027 ;;
15028 x:*)
15029 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
15030 ;;
15031 *::*)
15032 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
15033 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
15034 ;;
15035 *)
15036 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
15037 ;;
15038 esac
15039 }
15040
15041 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
15042 "
15043 if test "x$ac_cv_header_dlfcn_h" = xyes
15044 then :
15045 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
15046
15047 fi
15048
15049
15050
15051
15052
15053 # Set options
15054
15055
15056
15057 enable_dlopen=no
15058
15059
15060 enable_win32_dll=no
15061
15062
15063 # Check whether --enable-shared was given.
15064 if test ${enable_shared+y}
15065 then :
15066 enableval=$enable_shared; p=${PACKAGE-default}
15067 case $enableval in
15068 yes) enable_shared=yes ;;
15069 no) enable_shared=no ;;
15070 *)
15071 enable_shared=no
15072 # Look at the argument we got. We use all the common list separators.
15073 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
15074 for pkg in $enableval; do
15075 IFS=$lt_save_ifs
15076 if test "X$pkg" = "X$p"; then
15077 enable_shared=yes
15078 fi
15079 done
15080 IFS=$lt_save_ifs
15081 ;;
15082 esac
15083 else $as_nop
15084 enable_shared=yes
15085 fi
15086
15087
15088
15089
15090
15091
15092
15093
15094
15095
15096
15097 # Check whether --with-pic was given.
15098 if test ${with_pic+y}
15099 then :
15100 withval=$with_pic; lt_p=${PACKAGE-default}
15101 case $withval in
15102 yes|no) pic_mode=$withval ;;
15103 *)
15104 pic_mode=default
15105 # Look at the argument we got. We use all the common list separators.
15106 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
15107 for lt_pkg in $withval; do
15108 IFS=$lt_save_ifs
15109 if test "X$lt_pkg" = "X$lt_p"; then
15110 pic_mode=yes
15111 fi
15112 done
15113 IFS=$lt_save_ifs
15114 ;;
15115 esac
15116 else $as_nop
15117 pic_mode=default
15118 fi
15119
15120
15121
15122
15123
15124
15125
15126
15127 # Check whether --enable-fast-install was given.
15128 if test ${enable_fast_install+y}
15129 then :
15130 enableval=$enable_fast_install; p=${PACKAGE-default}
15131 case $enableval in
15132 yes) enable_fast_install=yes ;;
15133 no) enable_fast_install=no ;;
15134 *)
15135 enable_fast_install=no
15136 # Look at the argument we got. We use all the common list separators.
15137 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
15138 for pkg in $enableval; do
15139 IFS=$lt_save_ifs
15140 if test "X$pkg" = "X$p"; then
15141 enable_fast_install=yes
15142 fi
15143 done
15144 IFS=$lt_save_ifs
15145 ;;
15146 esac
15147 else $as_nop
15148 enable_fast_install=yes
15149 fi
15150
15151
15152
15153
15154
15155
15156
15157
15158 shared_archive_member_spec=
15159 case $host,$enable_shared in
15160 power*-*-aix[5-9]*,yes)
15161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
15162 printf %s "checking which variant of shared library versioning to provide... " >&6; }
15163
15164 # Check whether --with-aix-soname was given.
15165 if test ${with_aix_soname+y}
15166 then :
15167 withval=$with_aix_soname; case $withval in
15168 aix|svr4|both)
15169 ;;
15170 *)
15171 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
15172 ;;
15173 esac
15174 lt_cv_with_aix_soname=$with_aix_soname
15175 else $as_nop
15176 if test ${lt_cv_with_aix_soname+y}
15177 then :
15178 printf %s "(cached) " >&6
15179 else $as_nop
15180 lt_cv_with_aix_soname=aix
15181 fi
15182
15183 with_aix_soname=$lt_cv_with_aix_soname
15184 fi
15185
15186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
15187 printf "%s\n" "$with_aix_soname" >&6; }
15188 if test aix != "$with_aix_soname"; then
15189 # For the AIX way of multilib, we name the shared archive member
15190 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
15191 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
15192 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
15193 # the AIX toolchain works better with OBJECT_MODE set (default 32).
15194 if test 64 = "${OBJECT_MODE-32}"; then
15195 shared_archive_member_spec=shr_64
15196 else
15197 shared_archive_member_spec=shr
15198 fi
15199 fi
15200 ;;
15201 *)
15202 with_aix_soname=aix
15203 ;;
15204 esac
15205
15206
15207
15208
15209
15210
15211
15212
15213
15214
15215 # This can be used to rebuild libtool when needed
15216 LIBTOOL_DEPS=$ltmain
15217
15218 # Always use our own libtool.
15219 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
15220
15221
15222
15223
15224
15225
15226
15227
15228
15229
15230
15231
15232
15233
15234
15235
15236
15237
15238
15239
15240
15241
15242
15243
15244
15245
15246
15247
15248
15249
15250 test -z "$LN_S" && LN_S="ln -s"
15251
15252
15253
15254
15255
15256
15257
15258
15259
15260
15261
15262
15263
15264
15265 if test -n "${ZSH_VERSION+set}"; then
15266 setopt NO_GLOB_SUBST
15267 fi
15268
15269 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
15270 printf %s "checking for objdir... " >&6; }
15271 if test ${lt_cv_objdir+y}
15272 then :
15273 printf %s "(cached) " >&6
15274 else $as_nop
15275 rm -f .libs 2>/dev/null
15276 mkdir .libs 2>/dev/null
15277 if test -d .libs; then
15278 lt_cv_objdir=.libs
15279 else
15280 # MS-DOS does not allow filenames that begin with a dot.
15281 lt_cv_objdir=_libs
15282 fi
15283 rmdir .libs 2>/dev/null
15284 fi
15285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
15286 printf "%s\n" "$lt_cv_objdir" >&6; }
15287 objdir=$lt_cv_objdir
15288
15289
15290
15291
15292
15293 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
15294
15295
15296
15297
15298 case $host_os in
15299 aix3*)
15300 # AIX sometimes has problems with the GCC collect2 program. For some
15301 # reason, if we set the COLLECT_NAMES environment variable, the problems
15302 # vanish in a puff of smoke.
15303 if test set != "${COLLECT_NAMES+set}"; then
15304 COLLECT_NAMES=
15305 export COLLECT_NAMES
15306 fi
15307 ;;
15308 esac
15309
15310 # Global variables:
15311 ofile=libtool
15312 can_build_shared=yes
15313
15314 # All known linkers require a '.a' archive for static linking (except MSVC and
15315 # ICC, which need '.lib').
15316 libext=a
15317
15318 with_gnu_ld=$lt_cv_prog_gnu_ld
15319
15320 old_CC=$CC
15321 old_CFLAGS=$CFLAGS
15322
15323 # Set sane defaults for various variables
15324 test -z "$CC" && CC=cc
15325 test -z "$LTCC" && LTCC=$CC
15326 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
15327 test -z "$LD" && LD=ld
15328 test -z "$ac_objext" && ac_objext=o
15329
15330 func_cc_basename $compiler
15331 cc_basename=$func_cc_basename_result
15332
15333
15334 # Only perform the check for file, if the check method requires it
15335 test -z "$MAGIC_CMD" && MAGIC_CMD=file
15336 case $deplibs_check_method in
15337 file_magic*)
15338 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
15339 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
15340 printf %s "checking for ${ac_tool_prefix}file... " >&6; }
15341 if test ${lt_cv_path_MAGIC_CMD+y}
15342 then :
15343 printf %s "(cached) " >&6
15344 else $as_nop
15345 case $MAGIC_CMD in
15346 [\\/*] | ?:[\\/]*)
15347 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
15348 ;;
15349 *)
15350 lt_save_MAGIC_CMD=$MAGIC_CMD
15351 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
15352 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
15353 for ac_dir in $ac_dummy; do
15354 IFS=$lt_save_ifs
15355 test -z "$ac_dir" && ac_dir=.
15356 if test -f "$ac_dir/${ac_tool_prefix}file"; then
15357 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
15358 if test -n "$file_magic_test_file"; then
15359 case $deplibs_check_method in
15360 "file_magic "*)
15361 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
15362 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
15363 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15364 $EGREP "$file_magic_regex" > /dev/null; then
15365 :
15366 else
15367 cat <<_LT_EOF 1>&2
15368
15369 *** Warning: the command libtool uses to detect shared libraries,
15370 *** $file_magic_cmd, produces output that libtool cannot recognize.
15371 *** The result is that libtool may fail to recognize shared libraries
15372 *** as such. This will affect the creation of libtool libraries that
15373 *** depend on shared libraries, but programs linked with such libtool
15374 *** libraries will work regardless of this problem. Nevertheless, you
15375 *** may want to report the problem to your system manager and/or to
15376 *** bug-libtool@gnu.org
15377
15378 _LT_EOF
15379 fi ;;
15380 esac
15381 fi
15382 break
15383 fi
15384 done
15385 IFS=$lt_save_ifs
15386 MAGIC_CMD=$lt_save_MAGIC_CMD
15387 ;;
15388 esac
15389 fi
15390
15391 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
15392 if test -n "$MAGIC_CMD"; then
15393 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
15394 printf "%s\n" "$MAGIC_CMD" >&6; }
15395 else
15396 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15397 printf "%s\n" "no" >&6; }
15398 fi
15399
15400
15401
15402
15403
15404 if test -z "$lt_cv_path_MAGIC_CMD"; then
15405 if test -n "$ac_tool_prefix"; then
15406 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
15407 printf %s "checking for file... " >&6; }
15408 if test ${lt_cv_path_MAGIC_CMD+y}
15409 then :
15410 printf %s "(cached) " >&6
15411 else $as_nop
15412 case $MAGIC_CMD in
15413 [\\/*] | ?:[\\/]*)
15414 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
15415 ;;
15416 *)
15417 lt_save_MAGIC_CMD=$MAGIC_CMD
15418 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
15419 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
15420 for ac_dir in $ac_dummy; do
15421 IFS=$lt_save_ifs
15422 test -z "$ac_dir" && ac_dir=.
15423 if test -f "$ac_dir/file"; then
15424 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
15425 if test -n "$file_magic_test_file"; then
15426 case $deplibs_check_method in
15427 "file_magic "*)
15428 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
15429 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
15430 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15431 $EGREP "$file_magic_regex" > /dev/null; then
15432 :
15433 else
15434 cat <<_LT_EOF 1>&2
15435
15436 *** Warning: the command libtool uses to detect shared libraries,
15437 *** $file_magic_cmd, produces output that libtool cannot recognize.
15438 *** The result is that libtool may fail to recognize shared libraries
15439 *** as such. This will affect the creation of libtool libraries that
15440 *** depend on shared libraries, but programs linked with such libtool
15441 *** libraries will work regardless of this problem. Nevertheless, you
15442 *** may want to report the problem to your system manager and/or to
15443 *** bug-libtool@gnu.org
15444
15445 _LT_EOF
15446 fi ;;
15447 esac
15448 fi
15449 break
15450 fi
15451 done
15452 IFS=$lt_save_ifs
15453 MAGIC_CMD=$lt_save_MAGIC_CMD
15454 ;;
15455 esac
15456 fi
15457
15458 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
15459 if test -n "$MAGIC_CMD"; then
15460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
15461 printf "%s\n" "$MAGIC_CMD" >&6; }
15462 else
15463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15464 printf "%s\n" "no" >&6; }
15465 fi
15466
15467
15468 else
15469 MAGIC_CMD=:
15470 fi
15471 fi
15472
15473 fi
15474 ;;
15475 esac
15476
15477 # Use C for the default configuration in the libtool script
15478
15479 lt_save_CC=$CC
15480 ac_ext=c
15481 ac_cpp='$CPP $CPPFLAGS'
15482 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15483 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15484 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15485
15486
15487 # Source file extension for C test sources.
15488 ac_ext=c
15489
15490 # Object file extension for compiled C test sources.
15491 objext=o
15492 objext=$objext
15493
15494 # Code to be used in simple compile tests
15495 lt_simple_compile_test_code="int some_variable = 0;"
15496
15497 # Code to be used in simple link tests
15498 lt_simple_link_test_code='int main(){return(0);}'
15499
15500
15501
15502
15503
15504
15505
15506 # If no C compiler was specified, use CC.
15507 LTCC=${LTCC-"$CC"}
15508
15509 # If no C compiler flags were specified, use CFLAGS.
15510 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15511
15512 # Allow CC to be a program name with arguments.
15513 compiler=$CC
15514
15515 # Save the default compiler, since it gets overwritten when the other
15516 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
15517 compiler_DEFAULT=$CC
15518
15519 # save warnings/boilerplate of simple test code
15520 ac_outfile=conftest.$ac_objext
15521 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15522 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15523 _lt_compiler_boilerplate=`cat conftest.err`
15524 $RM conftest*
15525
15526 ac_outfile=conftest.$ac_objext
15527 echo "$lt_simple_link_test_code" >conftest.$ac_ext
15528 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15529 _lt_linker_boilerplate=`cat conftest.err`
15530 $RM -r conftest*
15531
15532
15533 if test -n "$compiler"; then
15534
15535 lt_prog_compiler_no_builtin_flag=
15536
15537 if test yes = "$GCC"; then
15538 case $cc_basename in
15539 nvcc*)
15540 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
15541 *)
15542 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
15543 esac
15544
15545 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15546 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
15547 if test ${lt_cv_prog_compiler_rtti_exceptions+y}
15548 then :
15549 printf %s "(cached) " >&6
15550 else $as_nop
15551 lt_cv_prog_compiler_rtti_exceptions=no
15552 ac_outfile=conftest.$ac_objext
15553 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15554 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
15555 # Insert the option either (1) after the last *FLAGS variable, or
15556 # (2) before a word containing "conftest.", or (3) at the end.
15557 # Note that $ac_compile itself does not contain backslashes and begins
15558 # with a dollar sign (not a hyphen), so the echo should work correctly.
15559 # The option is referenced via a variable to avoid confusing sed.
15560 lt_compile=`echo "$ac_compile" | $SED \
15561 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15562 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15563 -e 's:$: $lt_compiler_flag:'`
15564 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15565 (eval "$lt_compile" 2>conftest.err)
15566 ac_status=$?
15567 cat conftest.err >&5
15568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15569 if (exit $ac_status) && test -s "$ac_outfile"; then
15570 # The compiler can only warn and ignore the option if not recognized
15571 # So say no if there are warnings other than the usual output.
15572 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15573 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15574 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15575 lt_cv_prog_compiler_rtti_exceptions=yes
15576 fi
15577 fi
15578 $RM conftest*
15579
15580 fi
15581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15582 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
15583
15584 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
15585 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
15586 else
15587 :
15588 fi
15589
15590 fi
15591
15592
15593
15594
15595
15596
15597 lt_prog_compiler_wl=
15598 lt_prog_compiler_pic=
15599 lt_prog_compiler_static=
15600
15601
15602 if test yes = "$GCC"; then
15603 lt_prog_compiler_wl='-Wl,'
15604 lt_prog_compiler_static='-static'
15605
15606 case $host_os in
15607 aix*)
15608 # All AIX code is PIC.
15609 if test ia64 = "$host_cpu"; then
15610 # AIX 5 now supports IA64 processor
15611 lt_prog_compiler_static='-Bstatic'
15612 fi
15613 lt_prog_compiler_pic='-fPIC'
15614 ;;
15615
15616 amigaos*)
15617 case $host_cpu in
15618 powerpc)
15619 # see comment about AmigaOS4 .so support
15620 lt_prog_compiler_pic='-fPIC'
15621 ;;
15622 m68k)
15623 # FIXME: we need at least 68020 code to build shared libraries, but
15624 # adding the '-m68020' flag to GCC prevents building anything better,
15625 # like '-m68040'.
15626 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
15627 ;;
15628 esac
15629 ;;
15630
15631 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15632 # PIC is the default for these OSes.
15633 ;;
15634
15635 mingw* | cygwin* | pw32* | os2* | cegcc*)
15636 # This hack is so that the source file can tell whether it is being
15637 # built for inclusion in a dll (and should export symbols for example).
15638 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15639 # (--disable-auto-import) libraries
15640 lt_prog_compiler_pic='-DDLL_EXPORT'
15641 case $host_os in
15642 os2*)
15643 lt_prog_compiler_static='$wl-static'
15644 ;;
15645 esac
15646 ;;
15647
15648 darwin* | rhapsody*)
15649 # PIC is the default on this platform
15650 # Common symbols not allowed in MH_DYLIB files
15651 lt_prog_compiler_pic='-fno-common'
15652 ;;
15653
15654 haiku*)
15655 # PIC is the default for Haiku.
15656 # The "-static" flag exists, but is broken.
15657 lt_prog_compiler_static=
15658 ;;
15659
15660 hpux*)
15661 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15662 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
15663 # sets the default TLS model and affects inlining.
15664 case $host_cpu in
15665 hppa*64*)
15666 # +Z the default
15667 ;;
15668 *)
15669 lt_prog_compiler_pic='-fPIC'
15670 ;;
15671 esac
15672 ;;
15673
15674 interix[3-9]*)
15675 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15676 # Instead, we relocate shared libraries at runtime.
15677 ;;
15678
15679 msdosdjgpp*)
15680 # Just because we use GCC doesn't mean we suddenly get shared libraries
15681 # on systems that don't support them.
15682 lt_prog_compiler_can_build_shared=no
15683 enable_shared=no
15684 ;;
15685
15686 *nto* | *qnx*)
15687 # QNX uses GNU C++, but need to define -shared option too, otherwise
15688 # it will coredump.
15689 lt_prog_compiler_pic='-fPIC -shared'
15690 ;;
15691
15692 sysv4*MP*)
15693 if test -d /usr/nec; then
15694 lt_prog_compiler_pic=-Kconform_pic
15695 fi
15696 ;;
15697
15698 *)
15699 lt_prog_compiler_pic='-fPIC'
15700 ;;
15701 esac
15702
15703 case $cc_basename in
15704 nvcc*) # Cuda Compiler Driver 2.2
15705 lt_prog_compiler_wl='-Xlinker '
15706 if test -n "$lt_prog_compiler_pic"; then
15707 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
15708 fi
15709 ;;
15710 esac
15711 else
15712 # PORTME Check for flag to pass linker flags through the system compiler.
15713 case $host_os in
15714 aix*)
15715 lt_prog_compiler_wl='-Wl,'
15716 if test ia64 = "$host_cpu"; then
15717 # AIX 5 now supports IA64 processor
15718 lt_prog_compiler_static='-Bstatic'
15719 else
15720 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
15721 fi
15722 ;;
15723
15724 darwin* | rhapsody*)
15725 # PIC is the default on this platform
15726 # Common symbols not allowed in MH_DYLIB files
15727 lt_prog_compiler_pic='-fno-common'
15728 case $cc_basename in
15729 nagfor*)
15730 # NAG Fortran compiler
15731 lt_prog_compiler_wl='-Wl,-Wl,,'
15732 lt_prog_compiler_pic='-PIC'
15733 lt_prog_compiler_static='-Bstatic'
15734 ;;
15735 esac
15736 ;;
15737
15738 mingw* | cygwin* | pw32* | os2* | cegcc*)
15739 # This hack is so that the source file can tell whether it is being
15740 # built for inclusion in a dll (and should export symbols for example).
15741 lt_prog_compiler_pic='-DDLL_EXPORT'
15742 case $host_os in
15743 os2*)
15744 lt_prog_compiler_static='$wl-static'
15745 ;;
15746 esac
15747 ;;
15748
15749 hpux9* | hpux10* | hpux11*)
15750 lt_prog_compiler_wl='-Wl,'
15751 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15752 # not for PA HP-UX.
15753 case $host_cpu in
15754 hppa*64*|ia64*)
15755 # +Z the default
15756 ;;
15757 *)
15758 lt_prog_compiler_pic='+Z'
15759 ;;
15760 esac
15761 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15762 lt_prog_compiler_static='$wl-a ${wl}archive'
15763 ;;
15764
15765 irix5* | irix6* | nonstopux*)
15766 lt_prog_compiler_wl='-Wl,'
15767 # PIC (with -KPIC) is the default.
15768 lt_prog_compiler_static='-non_shared'
15769 ;;
15770
15771 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15772 case $cc_basename in
15773 # old Intel for x86_64, which still supported -KPIC.
15774 ecc*)
15775 lt_prog_compiler_wl='-Wl,'
15776 lt_prog_compiler_pic='-KPIC'
15777 lt_prog_compiler_static='-static'
15778 ;;
15779 # icc used to be incompatible with GCC.
15780 # ICC 10 doesn't accept -KPIC any more.
15781 icc* | ifort*)
15782 lt_prog_compiler_wl='-Wl,'
15783 lt_prog_compiler_pic='-fPIC'
15784 lt_prog_compiler_static='-static'
15785 ;;
15786 # Lahey Fortran 8.1.
15787 lf95*)
15788 lt_prog_compiler_wl='-Wl,'
15789 lt_prog_compiler_pic='--shared'
15790 lt_prog_compiler_static='--static'
15791 ;;
15792 nagfor*)
15793 # NAG Fortran compiler
15794 lt_prog_compiler_wl='-Wl,-Wl,,'
15795 lt_prog_compiler_pic='-PIC'
15796 lt_prog_compiler_static='-Bstatic'
15797 ;;
15798 tcc*)
15799 # Fabrice Bellard et al's Tiny C Compiler
15800 lt_prog_compiler_wl='-Wl,'
15801 lt_prog_compiler_pic='-fPIC'
15802 lt_prog_compiler_static='-static'
15803 ;;
15804 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
15805 # Portland Group compilers (*not* the Pentium gcc compiler,
15806 # which looks to be a dead project)
15807 lt_prog_compiler_wl='-Wl,'
15808 lt_prog_compiler_pic='-fpic'
15809 lt_prog_compiler_static='-Bstatic'
15810 ;;
15811 ccc*)
15812 lt_prog_compiler_wl='-Wl,'
15813 # All Alpha code is PIC.
15814 lt_prog_compiler_static='-non_shared'
15815 ;;
15816 xl* | bgxl* | bgf* | mpixl*)
15817 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
15818 lt_prog_compiler_wl='-Wl,'
15819 lt_prog_compiler_pic='-qpic'
15820 lt_prog_compiler_static='-qstaticlink'
15821 ;;
15822 *)
15823 case `$CC -V 2>&1 | $SED 5q` in
15824 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
15825 # Sun Fortran 8.3 passes all unrecognized flags to the linker
15826 lt_prog_compiler_pic='-KPIC'
15827 lt_prog_compiler_static='-Bstatic'
15828 lt_prog_compiler_wl=''
15829 ;;
15830 *Sun\ F* | *Sun*Fortran*)
15831 lt_prog_compiler_pic='-KPIC'
15832 lt_prog_compiler_static='-Bstatic'
15833 lt_prog_compiler_wl='-Qoption ld '
15834 ;;
15835 *Sun\ C*)
15836 # Sun C 5.9
15837 lt_prog_compiler_pic='-KPIC'
15838 lt_prog_compiler_static='-Bstatic'
15839 lt_prog_compiler_wl='-Wl,'
15840 ;;
15841 *Intel*\ [CF]*Compiler*)
15842 lt_prog_compiler_wl='-Wl,'
15843 lt_prog_compiler_pic='-fPIC'
15844 lt_prog_compiler_static='-static'
15845 ;;
15846 *Portland\ Group*)
15847 lt_prog_compiler_wl='-Wl,'
15848 lt_prog_compiler_pic='-fpic'
15849 lt_prog_compiler_static='-Bstatic'
15850 ;;
15851 esac
15852 ;;
15853 esac
15854 ;;
15855
15856 newsos6)
15857 lt_prog_compiler_pic='-KPIC'
15858 lt_prog_compiler_static='-Bstatic'
15859 ;;
15860
15861 *nto* | *qnx*)
15862 # QNX uses GNU C++, but need to define -shared option too, otherwise
15863 # it will coredump.
15864 lt_prog_compiler_pic='-fPIC -shared'
15865 ;;
15866
15867 osf3* | osf4* | osf5*)
15868 lt_prog_compiler_wl='-Wl,'
15869 # All OSF/1 code is PIC.
15870 lt_prog_compiler_static='-non_shared'
15871 ;;
15872
15873 rdos*)
15874 lt_prog_compiler_static='-non_shared'
15875 ;;
15876
15877 solaris*)
15878 lt_prog_compiler_pic='-KPIC'
15879 lt_prog_compiler_static='-Bstatic'
15880 case $cc_basename in
15881 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
15882 lt_prog_compiler_wl='-Qoption ld ';;
15883 *)
15884 lt_prog_compiler_wl='-Wl,';;
15885 esac
15886 ;;
15887
15888 sunos4*)
15889 lt_prog_compiler_wl='-Qoption ld '
15890 lt_prog_compiler_pic='-PIC'
15891 lt_prog_compiler_static='-Bstatic'
15892 ;;
15893
15894 sysv4 | sysv4.2uw2* | sysv4.3*)
15895 lt_prog_compiler_wl='-Wl,'
15896 lt_prog_compiler_pic='-KPIC'
15897 lt_prog_compiler_static='-Bstatic'
15898 ;;
15899
15900 sysv4*MP*)
15901 if test -d /usr/nec; then
15902 lt_prog_compiler_pic='-Kconform_pic'
15903 lt_prog_compiler_static='-Bstatic'
15904 fi
15905 ;;
15906
15907 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15908 lt_prog_compiler_wl='-Wl,'
15909 lt_prog_compiler_pic='-KPIC'
15910 lt_prog_compiler_static='-Bstatic'
15911 ;;
15912
15913 unicos*)
15914 lt_prog_compiler_wl='-Wl,'
15915 lt_prog_compiler_can_build_shared=no
15916 ;;
15917
15918 uts4*)
15919 lt_prog_compiler_pic='-pic'
15920 lt_prog_compiler_static='-Bstatic'
15921 ;;
15922
15923 *)
15924 lt_prog_compiler_can_build_shared=no
15925 ;;
15926 esac
15927 fi
15928
15929 case $host_os in
15930 # For platforms that do not support PIC, -DPIC is meaningless:
15931 *djgpp*)
15932 lt_prog_compiler_pic=
15933 ;;
15934 *)
15935 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15936 ;;
15937 esac
15938
15939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15940 printf %s "checking for $compiler option to produce PIC... " >&6; }
15941 if test ${lt_cv_prog_compiler_pic+y}
15942 then :
15943 printf %s "(cached) " >&6
15944 else $as_nop
15945 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
15946 fi
15947 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
15948 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
15949 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
15950
15951 #
15952 # Check to make sure the PIC flag actually works.
15953 #
15954 if test -n "$lt_prog_compiler_pic"; then
15955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
15956 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
15957 if test ${lt_cv_prog_compiler_pic_works+y}
15958 then :
15959 printf %s "(cached) " >&6
15960 else $as_nop
15961 lt_cv_prog_compiler_pic_works=no
15962 ac_outfile=conftest.$ac_objext
15963 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15964 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
15965 # Insert the option either (1) after the last *FLAGS variable, or
15966 # (2) before a word containing "conftest.", or (3) at the end.
15967 # Note that $ac_compile itself does not contain backslashes and begins
15968 # with a dollar sign (not a hyphen), so the echo should work correctly.
15969 # The option is referenced via a variable to avoid confusing sed.
15970 lt_compile=`echo "$ac_compile" | $SED \
15971 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15972 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15973 -e 's:$: $lt_compiler_flag:'`
15974 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15975 (eval "$lt_compile" 2>conftest.err)
15976 ac_status=$?
15977 cat conftest.err >&5
15978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15979 if (exit $ac_status) && test -s "$ac_outfile"; then
15980 # The compiler can only warn and ignore the option if not recognized
15981 # So say no if there are warnings other than the usual output.
15982 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15983 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15984 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15985 lt_cv_prog_compiler_pic_works=yes
15986 fi
15987 fi
15988 $RM conftest*
15989
15990 fi
15991 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
15992 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
15993
15994 if test yes = "$lt_cv_prog_compiler_pic_works"; then
15995 case $lt_prog_compiler_pic in
15996 "" | " "*) ;;
15997 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15998 esac
15999 else
16000 lt_prog_compiler_pic=
16001 lt_prog_compiler_can_build_shared=no
16002 fi
16003
16004 fi
16005
16006
16007
16008
16009
16010
16011
16012
16013
16014
16015
16016 #
16017 # Check to make sure the static flag actually works.
16018 #
16019 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
16020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16021 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
16022 if test ${lt_cv_prog_compiler_static_works+y}
16023 then :
16024 printf %s "(cached) " >&6
16025 else $as_nop
16026 lt_cv_prog_compiler_static_works=no
16027 save_LDFLAGS=$LDFLAGS
16028 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16029 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16030 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16031 # The linker can only warn and ignore the option if not recognized
16032 # So say no if there are warnings
16033 if test -s conftest.err; then
16034 # Append any errors to the config.log.
16035 cat conftest.err 1>&5
16036 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16037 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16038 if diff conftest.exp conftest.er2 >/dev/null; then
16039 lt_cv_prog_compiler_static_works=yes
16040 fi
16041 else
16042 lt_cv_prog_compiler_static_works=yes
16043 fi
16044 fi
16045 $RM -r conftest*
16046 LDFLAGS=$save_LDFLAGS
16047
16048 fi
16049 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
16050 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
16051
16052 if test yes = "$lt_cv_prog_compiler_static_works"; then
16053 :
16054 else
16055 lt_prog_compiler_static=
16056 fi
16057
16058
16059
16060
16061
16062
16063
16064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16065 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16066 if test ${lt_cv_prog_compiler_c_o+y}
16067 then :
16068 printf %s "(cached) " >&6
16069 else $as_nop
16070 lt_cv_prog_compiler_c_o=no
16071 $RM -r conftest 2>/dev/null
16072 mkdir conftest
16073 cd conftest
16074 mkdir out
16075 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16076
16077 lt_compiler_flag="-o out/conftest2.$ac_objext"
16078 # Insert the option either (1) after the last *FLAGS variable, or
16079 # (2) before a word containing "conftest.", or (3) at the end.
16080 # Note that $ac_compile itself does not contain backslashes and begins
16081 # with a dollar sign (not a hyphen), so the echo should work correctly.
16082 lt_compile=`echo "$ac_compile" | $SED \
16083 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16084 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16085 -e 's:$: $lt_compiler_flag:'`
16086 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16087 (eval "$lt_compile" 2>out/conftest.err)
16088 ac_status=$?
16089 cat out/conftest.err >&5
16090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16091 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16092 then
16093 # The compiler can only warn and ignore the option if not recognized
16094 # So say no if there are warnings
16095 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16096 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16097 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16098 lt_cv_prog_compiler_c_o=yes
16099 fi
16100 fi
16101 chmod u+w . 2>&5
16102 $RM conftest*
16103 # SGI C++ compiler will create directory out/ii_files/ for
16104 # template instantiation
16105 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16106 $RM out/* && rmdir out
16107 cd ..
16108 $RM -r conftest
16109 $RM conftest*
16110
16111 fi
16112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
16113 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
16114
16115
16116
16117
16118
16119
16120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16121 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16122 if test ${lt_cv_prog_compiler_c_o+y}
16123 then :
16124 printf %s "(cached) " >&6
16125 else $as_nop
16126 lt_cv_prog_compiler_c_o=no
16127 $RM -r conftest 2>/dev/null
16128 mkdir conftest
16129 cd conftest
16130 mkdir out
16131 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16132
16133 lt_compiler_flag="-o out/conftest2.$ac_objext"
16134 # Insert the option either (1) after the last *FLAGS variable, or
16135 # (2) before a word containing "conftest.", or (3) at the end.
16136 # Note that $ac_compile itself does not contain backslashes and begins
16137 # with a dollar sign (not a hyphen), so the echo should work correctly.
16138 lt_compile=`echo "$ac_compile" | $SED \
16139 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16140 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16141 -e 's:$: $lt_compiler_flag:'`
16142 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16143 (eval "$lt_compile" 2>out/conftest.err)
16144 ac_status=$?
16145 cat out/conftest.err >&5
16146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16147 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16148 then
16149 # The compiler can only warn and ignore the option if not recognized
16150 # So say no if there are warnings
16151 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16152 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16153 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16154 lt_cv_prog_compiler_c_o=yes
16155 fi
16156 fi
16157 chmod u+w . 2>&5
16158 $RM conftest*
16159 # SGI C++ compiler will create directory out/ii_files/ for
16160 # template instantiation
16161 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16162 $RM out/* && rmdir out
16163 cd ..
16164 $RM -r conftest
16165 $RM conftest*
16166
16167 fi
16168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
16169 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
16170
16171
16172
16173
16174 hard_links=nottested
16175 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
16176 # do not overwrite the value of need_locks provided by the user
16177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
16178 printf %s "checking if we can lock with hard links... " >&6; }
16179 hard_links=yes
16180 $RM conftest*
16181 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16182 touch conftest.a
16183 ln conftest.a conftest.b 2>&5 || hard_links=no
16184 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
16186 printf "%s\n" "$hard_links" >&6; }
16187 if test no = "$hard_links"; then
16188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
16189 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
16190 need_locks=warn
16191 fi
16192 else
16193 need_locks=no
16194 fi
16195
16196
16197
16198
16199
16200
16201 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16202 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16203
16204 runpath_var=
16205 allow_undefined_flag=
16206 always_export_symbols=no
16207 archive_cmds=
16208 archive_expsym_cmds=
16209 compiler_needs_object=no
16210 enable_shared_with_static_runtimes=no
16211 export_dynamic_flag_spec=
16212 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16213 hardcode_automatic=no
16214 hardcode_direct=no
16215 hardcode_direct_absolute=no
16216 hardcode_libdir_flag_spec=
16217 hardcode_libdir_separator=
16218 hardcode_minus_L=no
16219 hardcode_shlibpath_var=unsupported
16220 inherit_rpath=no
16221 link_all_deplibs=unknown
16222 module_cmds=
16223 module_expsym_cmds=
16224 old_archive_from_new_cmds=
16225 old_archive_from_expsyms_cmds=
16226 thread_safe_flag_spec=
16227 whole_archive_flag_spec=
16228 # include_expsyms should be a list of space-separated symbols to be *always*
16229 # included in the symbol list
16230 include_expsyms=
16231 # exclude_expsyms can be an extended regexp of symbols to exclude
16232 # it will be wrapped by ' (' and ')$', so one must not match beginning or
16233 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
16234 # as well as any symbol that contains 'd'.
16235 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16236 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16237 # platforms (ab)use it in PIC code, but their linkers get confused if
16238 # the symbol is explicitly referenced. Since portable code cannot
16239 # rely on this symbol name, it's probably fine to never include it in
16240 # preloaded symbol tables.
16241 # Exclude shared library initialization/finalization symbols.
16242 extract_expsyms_cmds=
16243
16244 case $host_os in
16245 cygwin* | mingw* | pw32* | cegcc*)
16246 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
16247 # When not using gcc, we currently assume that we are using
16248 # Microsoft Visual C++ or Intel C++ Compiler.
16249 if test yes != "$GCC"; then
16250 with_gnu_ld=no
16251 fi
16252 ;;
16253 interix*)
16254 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
16255 with_gnu_ld=yes
16256 ;;
16257 openbsd* | bitrig*)
16258 with_gnu_ld=no
16259 ;;
16260 esac
16261
16262 ld_shlibs=yes
16263
16264 # On some targets, GNU ld is compatible enough with the native linker
16265 # that we're better off using the native interface for both.
16266 lt_use_gnu_ld_interface=no
16267 if test yes = "$with_gnu_ld"; then
16268 case $host_os in
16269 aix*)
16270 # The AIX port of GNU ld has always aspired to compatibility
16271 # with the native linker. However, as the warning in the GNU ld
16272 # block says, versions before 2.19.5* couldn't really create working
16273 # shared libraries, regardless of the interface used.
16274 case `$LD -v 2>&1` in
16275 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
16276 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
16277 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
16278 *)
16279 lt_use_gnu_ld_interface=yes
16280 ;;
16281 esac
16282 ;;
16283 *)
16284 lt_use_gnu_ld_interface=yes
16285 ;;
16286 esac
16287 fi
16288
16289 if test yes = "$lt_use_gnu_ld_interface"; then
16290 # If archive_cmds runs LD, not CC, wlarc should be empty
16291 wlarc='$wl'
16292
16293 # Set some defaults for GNU ld with shared library support. These
16294 # are reset later if shared libraries are not supported. Putting them
16295 # here allows them to be overridden if necessary.
16296 runpath_var=LD_RUN_PATH
16297 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
16298 export_dynamic_flag_spec='$wl--export-dynamic'
16299 # ancient GNU ld didn't support --whole-archive et. al.
16300 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
16301 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
16302 else
16303 whole_archive_flag_spec=
16304 fi
16305 supports_anon_versioning=no
16306 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
16307 *GNU\ gold*) supports_anon_versioning=yes ;;
16308 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16309 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16310 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16311 *\ 2.11.*) ;; # other 2.11 versions
16312 *) supports_anon_versioning=yes ;;
16313 esac
16314
16315 # See if GNU ld supports shared libraries.
16316 case $host_os in
16317 aix[3-9]*)
16318 # On AIX/PPC, the GNU linker is very broken
16319 if test ia64 != "$host_cpu"; then
16320 ld_shlibs=no
16321 cat <<_LT_EOF 1>&2
16322
16323 *** Warning: the GNU linker, at least up to release 2.19, is reported
16324 *** to be unable to reliably create shared libraries on AIX.
16325 *** Therefore, libtool is disabling shared libraries support. If you
16326 *** really care for shared libraries, you may want to install binutils
16327 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
16328 *** You will then need to restart the configuration process.
16329
16330 _LT_EOF
16331 fi
16332 ;;
16333
16334 amigaos*)
16335 case $host_cpu in
16336 powerpc)
16337 # see comment about AmigaOS4 .so support
16338 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16339 archive_expsym_cmds=''
16340 ;;
16341 m68k)
16342 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)'
16343 hardcode_libdir_flag_spec='-L$libdir'
16344 hardcode_minus_L=yes
16345 ;;
16346 esac
16347 ;;
16348
16349 beos*)
16350 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16351 allow_undefined_flag=unsupported
16352 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
16353 # support --undefined. This deserves some investigation. FIXME
16354 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16355 else
16356 ld_shlibs=no
16357 fi
16358 ;;
16359
16360 cygwin* | mingw* | pw32* | cegcc*)
16361 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
16362 # as there is no search path for DLLs.
16363 hardcode_libdir_flag_spec='-L$libdir'
16364 export_dynamic_flag_spec='$wl--export-all-symbols'
16365 allow_undefined_flag=unsupported
16366 always_export_symbols=no
16367 enable_shared_with_static_runtimes=yes
16368 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'
16369 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
16370
16371 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
16372 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16373 # If the export-symbols file already is a .def file, use it as
16374 # is; otherwise, prepend EXPORTS...
16375 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
16376 cp $export_symbols $output_objdir/$soname.def;
16377 else
16378 echo EXPORTS > $output_objdir/$soname.def;
16379 cat $export_symbols >> $output_objdir/$soname.def;
16380 fi~
16381 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16382 else
16383 ld_shlibs=no
16384 fi
16385 ;;
16386
16387 haiku*)
16388 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16389 link_all_deplibs=yes
16390 ;;
16391
16392 os2*)
16393 hardcode_libdir_flag_spec='-L$libdir'
16394 hardcode_minus_L=yes
16395 allow_undefined_flag=unsupported
16396 shrext_cmds=.dll
16397 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
16398 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
16399 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
16400 $ECHO EXPORTS >> $output_objdir/$libname.def~
16401 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
16402 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
16403 emximp -o $lib $output_objdir/$libname.def'
16404 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
16405 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
16406 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
16407 $ECHO EXPORTS >> $output_objdir/$libname.def~
16408 prefix_cmds="$SED"~
16409 if test EXPORTS = "`$SED 1q $export_symbols`"; then
16410 prefix_cmds="$prefix_cmds -e 1d";
16411 fi~
16412 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
16413 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
16414 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
16415 emximp -o $lib $output_objdir/$libname.def'
16416 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
16417 enable_shared_with_static_runtimes=yes
16418 file_list_spec='@'
16419 ;;
16420
16421 interix[3-9]*)
16422 hardcode_direct=no
16423 hardcode_shlibpath_var=no
16424 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
16425 export_dynamic_flag_spec='$wl-E'
16426 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16427 # Instead, shared libraries are loaded at an image base (0x10000000 by
16428 # default) and relocated if they conflict, which is a slow very memory
16429 # consuming and fragmenting process. To avoid this, we pick a random,
16430 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16431 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16432 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16433 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'
16434 ;;
16435
16436 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
16437 tmp_diet=no
16438 if test linux-dietlibc = "$host_os"; then
16439 case $cc_basename in
16440 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
16441 esac
16442 fi
16443 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
16444 && test no = "$tmp_diet"
16445 then
16446 tmp_addflag=' $pic_flag'
16447 tmp_sharedflag='-shared'
16448 case $cc_basename,$host_cpu in
16449 pgcc*) # Portland Group C compiler
16450 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'
16451 tmp_addflag=' $pic_flag'
16452 ;;
16453 pgf77* | pgf90* | pgf95* | pgfortran*)
16454 # Portland Group f77 and f90 compilers
16455 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'
16456 tmp_addflag=' $pic_flag -Mnomain' ;;
16457 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16458 tmp_addflag=' -i_dynamic' ;;
16459 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16460 tmp_addflag=' -i_dynamic -nofor_main' ;;
16461 ifc* | ifort*) # Intel Fortran compiler
16462 tmp_addflag=' -nofor_main' ;;
16463 lf95*) # Lahey Fortran 8.1
16464 whole_archive_flag_spec=
16465 tmp_sharedflag='--shared' ;;
16466 nagfor*) # NAGFOR 5.3
16467 tmp_sharedflag='-Wl,-shared' ;;
16468 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
16469 tmp_sharedflag='-qmkshrobj'
16470 tmp_addflag= ;;
16471 nvcc*) # Cuda Compiler Driver 2.2
16472 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'
16473 compiler_needs_object=yes
16474 ;;
16475 esac
16476 case `$CC -V 2>&1 | $SED 5q` in
16477 *Sun\ C*) # Sun C 5.9
16478 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'
16479 compiler_needs_object=yes
16480 tmp_sharedflag='-G' ;;
16481 *Sun\ F*) # Sun Fortran 8.3
16482 tmp_sharedflag='-G' ;;
16483 esac
16484 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16485
16486 if test yes = "$supports_anon_versioning"; then
16487 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
16488 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16489 echo "local: *; };" >> $output_objdir/$libname.ver~
16490 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
16491 fi
16492
16493 case $cc_basename in
16494 tcc*)
16495 export_dynamic_flag_spec='-rdynamic'
16496 ;;
16497 xlf* | bgf* | bgxlf* | mpixlf*)
16498 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
16499 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
16500 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
16501 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
16502 if test yes = "$supports_anon_versioning"; then
16503 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
16504 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16505 echo "local: *; };" >> $output_objdir/$libname.ver~
16506 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
16507 fi
16508 ;;
16509 esac
16510 else
16511 ld_shlibs=no
16512 fi
16513 ;;
16514
16515 netbsd*)
16516 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16517 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16518 wlarc=
16519 else
16520 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16521 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
16522 fi
16523 ;;
16524
16525 solaris*)
16526 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
16527 ld_shlibs=no
16528 cat <<_LT_EOF 1>&2
16529
16530 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16531 *** create shared libraries on Solaris systems. Therefore, libtool
16532 *** is disabling shared libraries support. We urge you to upgrade GNU
16533 *** binutils to release 2.9.1 or newer. Another option is to modify
16534 *** your PATH or compiler configuration so that the native linker is
16535 *** used, and then restart.
16536
16537 _LT_EOF
16538 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16539 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16540 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
16541 else
16542 ld_shlibs=no
16543 fi
16544 ;;
16545
16546 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16547 case `$LD -v 2>&1` in
16548 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16549 ld_shlibs=no
16550 cat <<_LT_EOF 1>&2
16551
16552 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
16553 *** reliably create shared libraries on SCO systems. Therefore, libtool
16554 *** is disabling shared libraries support. We urge you to upgrade GNU
16555 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16556 *** your PATH or compiler configuration so that the native linker is
16557 *** used, and then restart.
16558
16559 _LT_EOF
16560 ;;
16561 *)
16562 # For security reasons, it is highly recommended that you always
16563 # use absolute paths for naming shared libraries, and exclude the
16564 # DT_RUNPATH tag from executables and libraries. But doing so
16565 # requires that you compile everything twice, which is a pain.
16566 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16567 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
16568 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16569 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
16570 else
16571 ld_shlibs=no
16572 fi
16573 ;;
16574 esac
16575 ;;
16576
16577 sunos4*)
16578 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16579 wlarc=
16580 hardcode_direct=yes
16581 hardcode_shlibpath_var=no
16582 ;;
16583
16584 *)
16585 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16586 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16587 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
16588 else
16589 ld_shlibs=no
16590 fi
16591 ;;
16592 esac
16593
16594 if test no = "$ld_shlibs"; then
16595 runpath_var=
16596 hardcode_libdir_flag_spec=
16597 export_dynamic_flag_spec=
16598 whole_archive_flag_spec=
16599 fi
16600 else
16601 # PORTME fill in a description of your system's linker (not GNU ld)
16602 case $host_os in
16603 aix3*)
16604 allow_undefined_flag=unsupported
16605 always_export_symbols=yes
16606 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'
16607 # Note: this linker hardcodes the directories in LIBPATH if there
16608 # are no directories specified by -L.
16609 hardcode_minus_L=yes
16610 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
16611 # Neither direct hardcoding nor static linking is supported with a
16612 # broken collect2.
16613 hardcode_direct=unsupported
16614 fi
16615 ;;
16616
16617 aix[4-9]*)
16618 if test ia64 = "$host_cpu"; then
16619 # On IA64, the linker does run time linking by default, so we don't
16620 # have to do anything special.
16621 aix_use_runtimelinking=no
16622 exp_sym_flag='-Bexport'
16623 no_entry_flag=
16624 else
16625 # If we're using GNU nm, then we don't want the "-C" option.
16626 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
16627 # Without the "-l" option, or with the "-B" option, AIX nm treats
16628 # weak defined symbols like other global defined symbols, whereas
16629 # GNU nm marks them as "W".
16630 # While the 'weak' keyword is ignored in the Export File, we need
16631 # it in the Import File for the 'aix-soname' feature, so we have
16632 # to replace the "-B" option with "-P" for AIX nm.
16633 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
16634 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'
16635 else
16636 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'
16637 fi
16638 aix_use_runtimelinking=no
16639
16640 # Test if we are trying to use run time linking or normal
16641 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16642 # have runtime linking enabled, and use it for executables.
16643 # For shared libraries, we enable/disable runtime linking
16644 # depending on the kind of the shared library created -
16645 # when "with_aix_soname,aix_use_runtimelinking" is:
16646 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
16647 # "aix,yes" lib.so shared, rtl:yes, for executables
16648 # lib.a static archive
16649 # "both,no" lib.so.V(shr.o) shared, rtl:yes
16650 # lib.a(lib.so.V) shared, rtl:no, for executables
16651 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
16652 # lib.a(lib.so.V) shared, rtl:no
16653 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
16654 # lib.a static archive
16655 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
16656 for ld_flag in $LDFLAGS; do
16657 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
16658 aix_use_runtimelinking=yes
16659 break
16660 fi
16661 done
16662 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
16663 # With aix-soname=svr4, we create the lib.so.V shared archives only,
16664 # so we don't have lib.a shared libs to link our executables.
16665 # We have to force runtime linking in this case.
16666 aix_use_runtimelinking=yes
16667 LDFLAGS="$LDFLAGS -Wl,-brtl"
16668 fi
16669 ;;
16670 esac
16671
16672 exp_sym_flag='-bexport'
16673 no_entry_flag='-bnoentry'
16674 fi
16675
16676 # When large executables or shared objects are built, AIX ld can
16677 # have problems creating the table of contents. If linking a library
16678 # or program results in "error TOC overflow" add -mminimal-toc to
16679 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16680 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16681
16682 archive_cmds=''
16683 hardcode_direct=yes
16684 hardcode_direct_absolute=yes
16685 hardcode_libdir_separator=':'
16686 link_all_deplibs=yes
16687 file_list_spec='$wl-f,'
16688 case $with_aix_soname,$aix_use_runtimelinking in
16689 aix,*) ;; # traditional, no import file
16690 svr4,* | *,yes) # use import file
16691 # The Import File defines what to hardcode.
16692 hardcode_direct=no
16693 hardcode_direct_absolute=no
16694 ;;
16695 esac
16696
16697 if test yes = "$GCC"; then
16698 case $host_os in aix4.[012]|aix4.[012].*)
16699 # We only want to do this on AIX 4.2 and lower, the check
16700 # below for broken collect2 doesn't work under 4.3+
16701 collect2name=`$CC -print-prog-name=collect2`
16702 if test -f "$collect2name" &&
16703 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
16704 then
16705 # We have reworked collect2
16706 :
16707 else
16708 # We have old collect2
16709 hardcode_direct=unsupported
16710 # It fails to find uninstalled libraries when the uninstalled
16711 # path is not listed in the libpath. Setting hardcode_minus_L
16712 # to unsupported forces relinking
16713 hardcode_minus_L=yes
16714 hardcode_libdir_flag_spec='-L$libdir'
16715 hardcode_libdir_separator=
16716 fi
16717 ;;
16718 esac
16719 shared_flag='-shared'
16720 if test yes = "$aix_use_runtimelinking"; then
16721 shared_flag="$shared_flag "'$wl-G'
16722 fi
16723 # Need to ensure runtime linking is disabled for the traditional
16724 # shared library, or the linker may eventually find shared libraries
16725 # /with/ Import File - we do not want to mix them.
16726 shared_flag_aix='-shared'
16727 shared_flag_svr4='-shared $wl-G'
16728 else
16729 # not using gcc
16730 if test ia64 = "$host_cpu"; then
16731 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16732 # chokes on -Wl,-G. The following line is correct:
16733 shared_flag='-G'
16734 else
16735 if test yes = "$aix_use_runtimelinking"; then
16736 shared_flag='$wl-G'
16737 else
16738 shared_flag='$wl-bM:SRE'
16739 fi
16740 shared_flag_aix='$wl-bM:SRE'
16741 shared_flag_svr4='$wl-G'
16742 fi
16743 fi
16744
16745 export_dynamic_flag_spec='$wl-bexpall'
16746 # It seems that -bexpall does not export symbols beginning with
16747 # underscore (_), so it is better to generate a list of symbols to export.
16748 always_export_symbols=yes
16749 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
16750 # Warning - without using the other runtime loading flags (-brtl),
16751 # -berok will link without error, but may produce a broken library.
16752 allow_undefined_flag='-berok'
16753 # Determine the default libpath from the value encoded in an
16754 # empty executable.
16755 if test set = "${lt_cv_aix_libpath+set}"; then
16756 aix_libpath=$lt_cv_aix_libpath
16757 else
16758 if test ${lt_cv_aix_libpath_+y}
16759 then :
16760 printf %s "(cached) " >&6
16761 else $as_nop
16762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16763 /* end confdefs.h. */
16764
16765 int
16766 main (void)
16767 {
16768
16769 ;
16770 return 0;
16771 }
16772 _ACEOF
16773 if ac_fn_c_try_link "$LINENO"
16774 then :
16775
16776 lt_aix_libpath_sed='
16777 /Import File Strings/,/^$/ {
16778 /^0/ {
16779 s/^0 *\([^ ]*\) *$/\1/
16780 p
16781 }
16782 }'
16783 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16784 # Check for a 64-bit object if we didn't find anything.
16785 if test -z "$lt_cv_aix_libpath_"; then
16786 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16787 fi
16788 fi
16789 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16790 conftest$ac_exeext conftest.$ac_ext
16791 if test -z "$lt_cv_aix_libpath_"; then
16792 lt_cv_aix_libpath_=/usr/lib:/lib
16793 fi
16794
16795 fi
16796
16797 aix_libpath=$lt_cv_aix_libpath_
16798 fi
16799
16800 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
16801 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
16802 else
16803 if test ia64 = "$host_cpu"; then
16804 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
16805 allow_undefined_flag="-z nodefs"
16806 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"
16807 else
16808 # Determine the default libpath from the value encoded in an
16809 # empty executable.
16810 if test set = "${lt_cv_aix_libpath+set}"; then
16811 aix_libpath=$lt_cv_aix_libpath
16812 else
16813 if test ${lt_cv_aix_libpath_+y}
16814 then :
16815 printf %s "(cached) " >&6
16816 else $as_nop
16817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16818 /* end confdefs.h. */
16819
16820 int
16821 main (void)
16822 {
16823
16824 ;
16825 return 0;
16826 }
16827 _ACEOF
16828 if ac_fn_c_try_link "$LINENO"
16829 then :
16830
16831 lt_aix_libpath_sed='
16832 /Import File Strings/,/^$/ {
16833 /^0/ {
16834 s/^0 *\([^ ]*\) *$/\1/
16835 p
16836 }
16837 }'
16838 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16839 # Check for a 64-bit object if we didn't find anything.
16840 if test -z "$lt_cv_aix_libpath_"; then
16841 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16842 fi
16843 fi
16844 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16845 conftest$ac_exeext conftest.$ac_ext
16846 if test -z "$lt_cv_aix_libpath_"; then
16847 lt_cv_aix_libpath_=/usr/lib:/lib
16848 fi
16849
16850 fi
16851
16852 aix_libpath=$lt_cv_aix_libpath_
16853 fi
16854
16855 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
16856 # Warning - without using the other run time loading flags,
16857 # -berok will link without error, but may produce a broken library.
16858 no_undefined_flag=' $wl-bernotok'
16859 allow_undefined_flag=' $wl-berok'
16860 if test yes = "$with_gnu_ld"; then
16861 # We only use this code for GNU lds that support --whole-archive.
16862 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
16863 else
16864 # Exported symbols can be pulled into shared objects from archives
16865 whole_archive_flag_spec='$convenience'
16866 fi
16867 archive_cmds_need_lc=yes
16868 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
16869 # -brtl affects multiple linker settings, -berok does not and is overridden later
16870 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
16871 if test svr4 != "$with_aix_soname"; then
16872 # This is similar to how AIX traditionally builds its shared libraries.
16873 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'
16874 fi
16875 if test aix != "$with_aix_soname"; then
16876 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'
16877 else
16878 # used by -dlpreopen to get the symbols
16879 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
16880 fi
16881 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
16882 fi
16883 fi
16884 ;;
16885
16886 amigaos*)
16887 case $host_cpu in
16888 powerpc)
16889 # see comment about AmigaOS4 .so support
16890 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16891 archive_expsym_cmds=''
16892 ;;
16893 m68k)
16894 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)'
16895 hardcode_libdir_flag_spec='-L$libdir'
16896 hardcode_minus_L=yes
16897 ;;
16898 esac
16899 ;;
16900
16901 bsdi[45]*)
16902 export_dynamic_flag_spec=-rdynamic
16903 ;;
16904
16905 cygwin* | mingw* | pw32* | cegcc*)
16906 # When not using gcc, we currently assume that we are using
16907 # Microsoft Visual C++ or Intel C++ Compiler.
16908 # hardcode_libdir_flag_spec is actually meaningless, as there is
16909 # no search path for DLLs.
16910 case $cc_basename in
16911 cl* | icl*)
16912 # Native MSVC or ICC
16913 hardcode_libdir_flag_spec=' '
16914 allow_undefined_flag=unsupported
16915 always_export_symbols=yes
16916 file_list_spec='@'
16917 # Tell ltmain to make .lib files, not .a files.
16918 libext=lib
16919 # Tell ltmain to make .dll files, not .so files.
16920 shrext_cmds=.dll
16921 # FIXME: Setting linknames here is a bad hack.
16922 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
16923 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
16924 cp "$export_symbols" "$output_objdir/$soname.def";
16925 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
16926 else
16927 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
16928 fi~
16929 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
16930 linknames='
16931 # The linker will not automatically build a static lib if we build a DLL.
16932 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
16933 enable_shared_with_static_runtimes=yes
16934 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
16935 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16936 # Don't use ranlib
16937 old_postinstall_cmds='chmod 644 $oldlib'
16938 postlink_cmds='lt_outputfile="@OUTPUT@"~
16939 lt_tool_outputfile="@TOOL_OUTPUT@"~
16940 case $lt_outputfile in
16941 *.exe|*.EXE) ;;
16942 *)
16943 lt_outputfile=$lt_outputfile.exe
16944 lt_tool_outputfile=$lt_tool_outputfile.exe
16945 ;;
16946 esac~
16947 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
16948 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
16949 $RM "$lt_outputfile.manifest";
16950 fi'
16951 ;;
16952 *)
16953 # Assume MSVC and ICC wrapper
16954 hardcode_libdir_flag_spec=' '
16955 allow_undefined_flag=unsupported
16956 # Tell ltmain to make .lib files, not .a files.
16957 libext=lib
16958 # Tell ltmain to make .dll files, not .so files.
16959 shrext_cmds=.dll
16960 # FIXME: Setting linknames here is a bad hack.
16961 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
16962 # The linker will automatically build a .lib file if we build a DLL.
16963 old_archive_from_new_cmds='true'
16964 # FIXME: Should let the user specify the lib program.
16965 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
16966 enable_shared_with_static_runtimes=yes
16967 ;;
16968 esac
16969 ;;
16970
16971 darwin* | rhapsody*)
16972
16973
16974 archive_cmds_need_lc=no
16975 hardcode_direct=no
16976 hardcode_automatic=yes
16977 hardcode_shlibpath_var=unsupported
16978 if test yes = "$lt_cv_ld_force_load"; then
16979 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\"`'
16980
16981 else
16982 whole_archive_flag_spec=''
16983 fi
16984 link_all_deplibs=yes
16985 allow_undefined_flag=$_lt_dar_allow_undefined
16986 case $cc_basename in
16987 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
16988 *) _lt_dar_can_shared=$GCC ;;
16989 esac
16990 if test yes = "$_lt_dar_can_shared"; then
16991 output_verbose_link_cmd=func_echo_all
16992 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
16993 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
16994 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"
16995 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"
16996
16997 else
16998 ld_shlibs=no
16999 fi
17000
17001 ;;
17002
17003 dgux*)
17004 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17005 hardcode_libdir_flag_spec='-L$libdir'
17006 hardcode_shlibpath_var=no
17007 ;;
17008
17009 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17010 # support. Future versions do this automatically, but an explicit c++rt0.o
17011 # does not break anything, and helps significantly (at the cost of a little
17012 # extra space).
17013 freebsd2.2*)
17014 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17015 hardcode_libdir_flag_spec='-R$libdir'
17016 hardcode_direct=yes
17017 hardcode_shlibpath_var=no
17018 ;;
17019
17020 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17021 freebsd2.*)
17022 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17023 hardcode_direct=yes
17024 hardcode_minus_L=yes
17025 hardcode_shlibpath_var=no
17026 ;;
17027
17028 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17029 freebsd* | dragonfly* | midnightbsd*)
17030 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17031 hardcode_libdir_flag_spec='-R$libdir'
17032 hardcode_direct=yes
17033 hardcode_shlibpath_var=no
17034 ;;
17035
17036 hpux9*)
17037 if test yes = "$GCC"; then
17038 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'
17039 else
17040 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'
17041 fi
17042 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
17043 hardcode_libdir_separator=:
17044 hardcode_direct=yes
17045
17046 # hardcode_minus_L: Not really in the search PATH,
17047 # but as the default location of the library.
17048 hardcode_minus_L=yes
17049 export_dynamic_flag_spec='$wl-E'
17050 ;;
17051
17052 hpux10*)
17053 if test yes,no = "$GCC,$with_gnu_ld"; then
17054 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17055 else
17056 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17057 fi
17058 if test no = "$with_gnu_ld"; then
17059 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
17060 hardcode_libdir_separator=:
17061 hardcode_direct=yes
17062 hardcode_direct_absolute=yes
17063 export_dynamic_flag_spec='$wl-E'
17064 # hardcode_minus_L: Not really in the search PATH,
17065 # but as the default location of the library.
17066 hardcode_minus_L=yes
17067 fi
17068 ;;
17069
17070 hpux11*)
17071 if test yes,no = "$GCC,$with_gnu_ld"; then
17072 case $host_cpu in
17073 hppa*64*)
17074 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
17075 ;;
17076 ia64*)
17077 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17078 ;;
17079 *)
17080 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17081 ;;
17082 esac
17083 else
17084 case $host_cpu in
17085 hppa*64*)
17086 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
17087 ;;
17088 ia64*)
17089 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17090 ;;
17091 *)
17092
17093 # Older versions of the 11.00 compiler do not understand -b yet
17094 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
17095 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
17096 printf %s "checking if $CC understands -b... " >&6; }
17097 if test ${lt_cv_prog_compiler__b+y}
17098 then :
17099 printf %s "(cached) " >&6
17100 else $as_nop
17101 lt_cv_prog_compiler__b=no
17102 save_LDFLAGS=$LDFLAGS
17103 LDFLAGS="$LDFLAGS -b"
17104 echo "$lt_simple_link_test_code" > conftest.$ac_ext
17105 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17106 # The linker can only warn and ignore the option if not recognized
17107 # So say no if there are warnings
17108 if test -s conftest.err; then
17109 # Append any errors to the config.log.
17110 cat conftest.err 1>&5
17111 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
17112 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17113 if diff conftest.exp conftest.er2 >/dev/null; then
17114 lt_cv_prog_compiler__b=yes
17115 fi
17116 else
17117 lt_cv_prog_compiler__b=yes
17118 fi
17119 fi
17120 $RM -r conftest*
17121 LDFLAGS=$save_LDFLAGS
17122
17123 fi
17124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
17125 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
17126
17127 if test yes = "$lt_cv_prog_compiler__b"; then
17128 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17129 else
17130 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17131 fi
17132
17133 ;;
17134 esac
17135 fi
17136 if test no = "$with_gnu_ld"; then
17137 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
17138 hardcode_libdir_separator=:
17139
17140 case $host_cpu in
17141 hppa*64*|ia64*)
17142 hardcode_direct=no
17143 hardcode_shlibpath_var=no
17144 ;;
17145 *)
17146 hardcode_direct=yes
17147 hardcode_direct_absolute=yes
17148 export_dynamic_flag_spec='$wl-E'
17149
17150 # hardcode_minus_L: Not really in the search PATH,
17151 # but as the default location of the library.
17152 hardcode_minus_L=yes
17153 ;;
17154 esac
17155 fi
17156 ;;
17157
17158 irix5* | irix6* | nonstopux*)
17159 if test yes = "$GCC"; then
17160 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'
17161 # Try to use the -exported_symbol ld option, if it does not
17162 # work, assume that -exports_file does not work either and
17163 # implicitly export all symbols.
17164 # This should be the same for all languages, so no per-tag cache variable.
17165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
17166 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
17167 if test ${lt_cv_irix_exported_symbol+y}
17168 then :
17169 printf %s "(cached) " >&6
17170 else $as_nop
17171 save_LDFLAGS=$LDFLAGS
17172 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
17173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17174 /* end confdefs.h. */
17175 int foo (void) { return 0; }
17176 _ACEOF
17177 if ac_fn_c_try_link "$LINENO"
17178 then :
17179 lt_cv_irix_exported_symbol=yes
17180 else $as_nop
17181 lt_cv_irix_exported_symbol=no
17182 fi
17183 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17184 conftest$ac_exeext conftest.$ac_ext
17185 LDFLAGS=$save_LDFLAGS
17186 fi
17187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
17188 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
17189 if test yes = "$lt_cv_irix_exported_symbol"; then
17190 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'
17191 fi
17192 else
17193 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'
17194 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'
17195 fi
17196 archive_cmds_need_lc='no'
17197 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
17198 hardcode_libdir_separator=:
17199 inherit_rpath=yes
17200 link_all_deplibs=yes
17201 ;;
17202
17203 linux*)
17204 case $cc_basename in
17205 tcc*)
17206 # Fabrice Bellard et al's Tiny C Compiler
17207 ld_shlibs=yes
17208 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17209 ;;
17210 esac
17211 ;;
17212
17213 netbsd*)
17214 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17215 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17216 else
17217 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17218 fi
17219 hardcode_libdir_flag_spec='-R$libdir'
17220 hardcode_direct=yes
17221 hardcode_shlibpath_var=no
17222 ;;
17223
17224 newsos6)
17225 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17226 hardcode_direct=yes
17227 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
17228 hardcode_libdir_separator=:
17229 hardcode_shlibpath_var=no
17230 ;;
17231
17232 *nto* | *qnx*)
17233 ;;
17234
17235 openbsd* | bitrig*)
17236 if test -f /usr/libexec/ld.so; then
17237 hardcode_direct=yes
17238 hardcode_shlibpath_var=no
17239 hardcode_direct_absolute=yes
17240 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
17241 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17242 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
17243 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
17244 export_dynamic_flag_spec='$wl-E'
17245 else
17246 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17247 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
17248 fi
17249 else
17250 ld_shlibs=no
17251 fi
17252 ;;
17253
17254 os2*)
17255 hardcode_libdir_flag_spec='-L$libdir'
17256 hardcode_minus_L=yes
17257 allow_undefined_flag=unsupported
17258 shrext_cmds=.dll
17259 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
17260 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
17261 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
17262 $ECHO EXPORTS >> $output_objdir/$libname.def~
17263 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
17264 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
17265 emximp -o $lib $output_objdir/$libname.def'
17266 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
17267 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
17268 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
17269 $ECHO EXPORTS >> $output_objdir/$libname.def~
17270 prefix_cmds="$SED"~
17271 if test EXPORTS = "`$SED 1q $export_symbols`"; then
17272 prefix_cmds="$prefix_cmds -e 1d";
17273 fi~
17274 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
17275 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
17276 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
17277 emximp -o $lib $output_objdir/$libname.def'
17278 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
17279 enable_shared_with_static_runtimes=yes
17280 file_list_spec='@'
17281 ;;
17282
17283 osf3*)
17284 if test yes = "$GCC"; then
17285 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
17286 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'
17287 else
17288 allow_undefined_flag=' -expect_unresolved \*'
17289 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'
17290 fi
17291 archive_cmds_need_lc='no'
17292 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
17293 hardcode_libdir_separator=:
17294 ;;
17295
17296 osf4* | osf5*) # as osf3* with the addition of -msym flag
17297 if test yes = "$GCC"; then
17298 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
17299 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'
17300 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
17301 else
17302 allow_undefined_flag=' -expect_unresolved \*'
17303 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'
17304 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~
17305 $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'
17306
17307 # Both c and cxx compiler support -rpath directly
17308 hardcode_libdir_flag_spec='-rpath $libdir'
17309 fi
17310 archive_cmds_need_lc='no'
17311 hardcode_libdir_separator=:
17312 ;;
17313
17314 solaris*)
17315 no_undefined_flag=' -z defs'
17316 if test yes = "$GCC"; then
17317 wlarc='$wl'
17318 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
17319 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17320 $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'
17321 else
17322 case `$CC -V 2>&1` in
17323 *"Compilers 5.0"*)
17324 wlarc=''
17325 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
17326 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17327 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
17328 ;;
17329 *)
17330 wlarc='$wl'
17331 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
17332 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17333 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
17334 ;;
17335 esac
17336 fi
17337 hardcode_libdir_flag_spec='-R$libdir'
17338 hardcode_shlibpath_var=no
17339 case $host_os in
17340 solaris2.[0-5] | solaris2.[0-5].*) ;;
17341 *)
17342 # The compiler driver will combine and reorder linker options,
17343 # but understands '-z linker_flag'. GCC discards it without '$wl',
17344 # but is careful enough not to reorder.
17345 # Supported since Solaris 2.6 (maybe 2.5.1?)
17346 if test yes = "$GCC"; then
17347 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
17348 else
17349 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
17350 fi
17351 ;;
17352 esac
17353 link_all_deplibs=yes
17354 ;;
17355
17356 sunos4*)
17357 if test sequent = "$host_vendor"; then
17358 # Use $CC to link under sequent, because it throws in some extra .o
17359 # files that make .init and .fini sections work.
17360 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17361 else
17362 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17363 fi
17364 hardcode_libdir_flag_spec='-L$libdir'
17365 hardcode_direct=yes
17366 hardcode_minus_L=yes
17367 hardcode_shlibpath_var=no
17368 ;;
17369
17370 sysv4)
17371 case $host_vendor in
17372 sni)
17373 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17374 hardcode_direct=yes # is this really true???
17375 ;;
17376 siemens)
17377 ## LD is ld it makes a PLAMLIB
17378 ## CC just makes a GrossModule.
17379 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17380 reload_cmds='$CC -r -o $output$reload_objs'
17381 hardcode_direct=no
17382 ;;
17383 motorola)
17384 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17385 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
17386 ;;
17387 esac
17388 runpath_var='LD_RUN_PATH'
17389 hardcode_shlibpath_var=no
17390 ;;
17391
17392 sysv4.3*)
17393 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17394 hardcode_shlibpath_var=no
17395 export_dynamic_flag_spec='-Bexport'
17396 ;;
17397
17398 sysv4*MP*)
17399 if test -d /usr/nec; then
17400 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17401 hardcode_shlibpath_var=no
17402 runpath_var=LD_RUN_PATH
17403 hardcode_runpath_var=yes
17404 ld_shlibs=yes
17405 fi
17406 ;;
17407
17408 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17409 no_undefined_flag='$wl-z,text'
17410 archive_cmds_need_lc=no
17411 hardcode_shlibpath_var=no
17412 runpath_var='LD_RUN_PATH'
17413
17414 if test yes = "$GCC"; then
17415 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17416 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17417 else
17418 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17419 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17420 fi
17421 ;;
17422
17423 sysv5* | sco3.2v5* | sco5v6*)
17424 # Note: We CANNOT use -z defs as we might desire, because we do not
17425 # link with -lc, and that would cause any symbols used from libc to
17426 # always be unresolved, which means just about no library would
17427 # ever link correctly. If we're not using GNU ld we use -z text
17428 # though, which does catch some bad symbols but isn't as heavy-handed
17429 # as -z defs.
17430 no_undefined_flag='$wl-z,text'
17431 allow_undefined_flag='$wl-z,nodefs'
17432 archive_cmds_need_lc=no
17433 hardcode_shlibpath_var=no
17434 hardcode_libdir_flag_spec='$wl-R,$libdir'
17435 hardcode_libdir_separator=':'
17436 link_all_deplibs=yes
17437 export_dynamic_flag_spec='$wl-Bexport'
17438 runpath_var='LD_RUN_PATH'
17439
17440 if test yes = "$GCC"; then
17441 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17442 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17443 else
17444 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17445 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17446 fi
17447 ;;
17448
17449 uts4*)
17450 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17451 hardcode_libdir_flag_spec='-L$libdir'
17452 hardcode_shlibpath_var=no
17453 ;;
17454
17455 *)
17456 ld_shlibs=no
17457 ;;
17458 esac
17459
17460 if test sni = "$host_vendor"; then
17461 case $host in
17462 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17463 export_dynamic_flag_spec='$wl-Blargedynsym'
17464 ;;
17465 esac
17466 fi
17467 fi
17468
17469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
17470 printf "%s\n" "$ld_shlibs" >&6; }
17471 test no = "$ld_shlibs" && can_build_shared=no
17472
17473 with_gnu_ld=$with_gnu_ld
17474
17475
17476
17477
17478
17479
17480
17481
17482
17483
17484
17485
17486
17487
17488
17489 #
17490 # Do we need to explicitly link libc?
17491 #
17492 case "x$archive_cmds_need_lc" in
17493 x|xyes)
17494 # Assume -lc should be added
17495 archive_cmds_need_lc=yes
17496
17497 if test yes,yes = "$GCC,$enable_shared"; then
17498 case $archive_cmds in
17499 *'~'*)
17500 # FIXME: we may have to deal with multi-command sequences.
17501 ;;
17502 '$CC '*)
17503 # Test whether the compiler implicitly links with -lc since on some
17504 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17505 # to ld, don't add -lc before -lgcc.
17506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
17507 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
17508 if test ${lt_cv_archive_cmds_need_lc+y}
17509 then :
17510 printf %s "(cached) " >&6
17511 else $as_nop
17512 $RM conftest*
17513 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17514
17515 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17516 (eval $ac_compile) 2>&5
17517 ac_status=$?
17518 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17519 test $ac_status = 0; } 2>conftest.err; then
17520 soname=conftest
17521 lib=conftest
17522 libobjs=conftest.$ac_objext
17523 deplibs=
17524 wl=$lt_prog_compiler_wl
17525 pic_flag=$lt_prog_compiler_pic
17526 compiler_flags=-v
17527 linker_flags=-v
17528 verstring=
17529 output_objdir=.
17530 libname=conftest
17531 lt_save_allow_undefined_flag=$allow_undefined_flag
17532 allow_undefined_flag=
17533 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
17534 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
17535 ac_status=$?
17536 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17537 test $ac_status = 0; }
17538 then
17539 lt_cv_archive_cmds_need_lc=no
17540 else
17541 lt_cv_archive_cmds_need_lc=yes
17542 fi
17543 allow_undefined_flag=$lt_save_allow_undefined_flag
17544 else
17545 cat conftest.err 1>&5
17546 fi
17547 $RM conftest*
17548
17549 fi
17550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
17551 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
17552 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
17553 ;;
17554 esac
17555 fi
17556 ;;
17557 esac
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
17669
17670
17671
17672
17673
17674
17675
17676
17677
17678
17679
17680
17681
17682
17683
17684
17685
17686
17687
17688
17689
17690
17691
17692
17693
17694
17695
17696
17697
17698
17699
17700
17701
17702
17703
17704
17705
17706
17707
17708
17709
17710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17711 printf %s "checking dynamic linker characteristics... " >&6; }
17712
17713 if test yes = "$GCC"; then
17714 case $host_os in
17715 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
17716 *) lt_awk_arg='/^libraries:/' ;;
17717 esac
17718 case $host_os in
17719 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
17720 *) lt_sed_strip_eq='s|=/|/|g' ;;
17721 esac
17722 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
17723 case $lt_search_path_spec in
17724 *\;*)
17725 # if the path contains ";" then we assume it to be the separator
17726 # otherwise default to the standard path separator (i.e. ":") - it is
17727 # assumed that no part of a normal pathname contains ";" but that should
17728 # okay in the real world where ";" in dirpaths is itself problematic.
17729 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
17730 ;;
17731 *)
17732 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
17733 ;;
17734 esac
17735 # Ok, now we have the path, separated by spaces, we can step through it
17736 # and add multilib dir if necessary...
17737 lt_tmp_lt_search_path_spec=
17738 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
17739 # ...but if some path component already ends with the multilib dir we assume
17740 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
17741 case "$lt_multi_os_dir; $lt_search_path_spec " in
17742 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
17743 lt_multi_os_dir=
17744 ;;
17745 esac
17746 for lt_sys_path in $lt_search_path_spec; do
17747 if test -d "$lt_sys_path$lt_multi_os_dir"; then
17748 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
17749 elif test -n "$lt_multi_os_dir"; then
17750 test -d "$lt_sys_path" && \
17751 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
17752 fi
17753 done
17754 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
17755 BEGIN {RS = " "; FS = "/|\n";} {
17756 lt_foo = "";
17757 lt_count = 0;
17758 for (lt_i = NF; lt_i > 0; lt_i--) {
17759 if ($lt_i != "" && $lt_i != ".") {
17760 if ($lt_i == "..") {
17761 lt_count++;
17762 } else {
17763 if (lt_count == 0) {
17764 lt_foo = "/" $lt_i lt_foo;
17765 } else {
17766 lt_count--;
17767 }
17768 }
17769 }
17770 }
17771 if (lt_foo != "") { lt_freq[lt_foo]++; }
17772 if (lt_freq[lt_foo] == 1) { print lt_foo; }
17773 }'`
17774 # AWK program above erroneously prepends '/' to C:/dos/paths
17775 # for these hosts.
17776 case $host_os in
17777 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
17778 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
17779 esac
17780 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
17781 else
17782 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17783 fi
17784 library_names_spec=
17785 libname_spec='lib$name'
17786 soname_spec=
17787 shrext_cmds=.so
17788 postinstall_cmds=
17789 postuninstall_cmds=
17790 finish_cmds=
17791 finish_eval=
17792 shlibpath_var=
17793 shlibpath_overrides_runpath=unknown
17794 version_type=none
17795 dynamic_linker="$host_os ld.so"
17796 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17797 need_lib_prefix=unknown
17798 hardcode_into_libs=no
17799
17800 # when you set need_version to no, make sure it does not cause -set_version
17801 # flags to be left without arguments
17802 need_version=unknown
17803
17804
17805
17806 case $host_os in
17807 aix3*)
17808 version_type=linux # correct to gnu/linux during the next big refactor
17809 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
17810 shlibpath_var=LIBPATH
17811
17812 # AIX 3 has no versioning support, so we append a major version to the name.
17813 soname_spec='$libname$release$shared_ext$major'
17814 ;;
17815
17816 aix[4-9]*)
17817 version_type=linux # correct to gnu/linux during the next big refactor
17818 need_lib_prefix=no
17819 need_version=no
17820 hardcode_into_libs=yes
17821 if test ia64 = "$host_cpu"; then
17822 # AIX 5 supports IA64
17823 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
17824 shlibpath_var=LD_LIBRARY_PATH
17825 else
17826 # With GCC up to 2.95.x, collect2 would create an import file
17827 # for dependence libraries. The import file would start with
17828 # the line '#! .'. This would cause the generated library to
17829 # depend on '.', always an invalid library. This was fixed in
17830 # development snapshots of GCC prior to 3.0.
17831 case $host_os in
17832 aix4 | aix4.[01] | aix4.[01].*)
17833 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17834 echo ' yes '
17835 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
17836 :
17837 else
17838 can_build_shared=no
17839 fi
17840 ;;
17841 esac
17842 # Using Import Files as archive members, it is possible to support
17843 # filename-based versioning of shared library archives on AIX. While
17844 # this would work for both with and without runtime linking, it will
17845 # prevent static linking of such archives. So we do filename-based
17846 # shared library versioning with .so extension only, which is used
17847 # when both runtime linking and shared linking is enabled.
17848 # Unfortunately, runtime linking may impact performance, so we do
17849 # not want this to be the default eventually. Also, we use the
17850 # versioned .so libs for executables only if there is the -brtl
17851 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
17852 # To allow for filename-based versioning support, we need to create
17853 # libNAME.so.V as an archive file, containing:
17854 # *) an Import File, referring to the versioned filename of the
17855 # archive as well as the shared archive member, telling the
17856 # bitwidth (32 or 64) of that shared object, and providing the
17857 # list of exported symbols of that shared object, eventually
17858 # decorated with the 'weak' keyword
17859 # *) the shared object with the F_LOADONLY flag set, to really avoid
17860 # it being seen by the linker.
17861 # At run time we better use the real file rather than another symlink,
17862 # but for link time we create the symlink libNAME.so -> libNAME.so.V
17863
17864 case $with_aix_soname,$aix_use_runtimelinking in
17865 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
17866 # soname into executable. Probably we can add versioning support to
17867 # collect2, so additional links can be useful in future.
17868 aix,yes) # traditional libtool
17869 dynamic_linker='AIX unversionable lib.so'
17870 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17871 # instead of lib<name>.a to let people know that these are not
17872 # typical AIX shared libraries.
17873 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17874 ;;
17875 aix,no) # traditional AIX only
17876 dynamic_linker='AIX lib.a(lib.so.V)'
17877 # We preserve .a as extension for shared libraries through AIX4.2
17878 # and later when we are not doing run time linking.
17879 library_names_spec='$libname$release.a $libname.a'
17880 soname_spec='$libname$release$shared_ext$major'
17881 ;;
17882 svr4,*) # full svr4 only
17883 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
17884 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
17885 # We do not specify a path in Import Files, so LIBPATH fires.
17886 shlibpath_overrides_runpath=yes
17887 ;;
17888 *,yes) # both, prefer svr4
17889 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
17890 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
17891 # unpreferred sharedlib libNAME.a needs extra handling
17892 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"'
17893 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"'
17894 # We do not specify a path in Import Files, so LIBPATH fires.
17895 shlibpath_overrides_runpath=yes
17896 ;;
17897 *,no) # both, prefer aix
17898 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
17899 library_names_spec='$libname$release.a $libname.a'
17900 soname_spec='$libname$release$shared_ext$major'
17901 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
17902 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)'
17903 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"'
17904 ;;
17905 esac
17906 shlibpath_var=LIBPATH
17907 fi
17908 ;;
17909
17910 amigaos*)
17911 case $host_cpu in
17912 powerpc)
17913 # Since July 2007 AmigaOS4 officially supports .so libraries.
17914 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17915 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17916 ;;
17917 m68k)
17918 library_names_spec='$libname.ixlibrary $libname.a'
17919 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17920 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'
17921 ;;
17922 esac
17923 ;;
17924
17925 beos*)
17926 library_names_spec='$libname$shared_ext'
17927 dynamic_linker="$host_os ld.so"
17928 shlibpath_var=LIBRARY_PATH
17929 ;;
17930
17931 bsdi[45]*)
17932 version_type=linux # correct to gnu/linux during the next big refactor
17933 need_version=no
17934 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17935 soname_spec='$libname$release$shared_ext$major'
17936 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17937 shlibpath_var=LD_LIBRARY_PATH
17938 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17939 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17940 # the default ld.so.conf also contains /usr/contrib/lib and
17941 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17942 # libtool to hard-code these into programs
17943 ;;
17944
17945 cygwin* | mingw* | pw32* | cegcc*)
17946 version_type=windows
17947 shrext_cmds=.dll
17948 need_version=no
17949 need_lib_prefix=no
17950
17951 case $GCC,$cc_basename in
17952 yes,*)
17953 # gcc
17954 library_names_spec='$libname.dll.a'
17955 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17956 postinstall_cmds='base_file=`basename \$file`~
17957 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
17958 dldir=$destdir/`dirname \$dlpath`~
17959 test -d \$dldir || mkdir -p \$dldir~
17960 $install_prog $dir/$dlname \$dldir/$dlname~
17961 chmod a+x \$dldir/$dlname~
17962 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17963 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17964 fi'
17965 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17966 dlpath=$dir/\$dldll~
17967 $RM \$dlpath'
17968 shlibpath_overrides_runpath=yes
17969
17970 case $host_os in
17971 cygwin*)
17972 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17973 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17974
17975 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
17976 ;;
17977 mingw* | cegcc*)
17978 # MinGW DLLs use traditional 'lib' prefix
17979 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17980 ;;
17981 pw32*)
17982 # pw32 DLLs use 'pw' prefix rather than 'lib'
17983 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17984 ;;
17985 esac
17986 dynamic_linker='Win32 ld.exe'
17987 ;;
17988
17989 *,cl* | *,icl*)
17990 # Native MSVC or ICC
17991 libname_spec='$name'
17992 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17993 library_names_spec='$libname.dll.lib'
17994
17995 case $build_os in
17996 mingw*)
17997 sys_lib_search_path_spec=
17998 lt_save_ifs=$IFS
17999 IFS=';'
18000 for lt_path in $LIB
18001 do
18002 IFS=$lt_save_ifs
18003 # Let DOS variable expansion print the short 8.3 style file name.
18004 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
18005 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
18006 done
18007 IFS=$lt_save_ifs
18008 # Convert to MSYS style.
18009 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
18010 ;;
18011 cygwin*)
18012 # Convert to unix form, then to dos form, then back to unix form
18013 # but this time dos style (no spaces!) so that the unix form looks
18014 # like /cygdrive/c/PROGRA~1:/cygdr...
18015 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
18016 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
18017 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18018 ;;
18019 *)
18020 sys_lib_search_path_spec=$LIB
18021 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
18022 # It is most probably a Windows format PATH.
18023 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18024 else
18025 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18026 fi
18027 # FIXME: find the short name or the path components, as spaces are
18028 # common. (e.g. "Program Files" -> "PROGRA~1")
18029 ;;
18030 esac
18031
18032 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18033 postinstall_cmds='base_file=`basename \$file`~
18034 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
18035 dldir=$destdir/`dirname \$dlpath`~
18036 test -d \$dldir || mkdir -p \$dldir~
18037 $install_prog $dir/$dlname \$dldir/$dlname'
18038 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18039 dlpath=$dir/\$dldll~
18040 $RM \$dlpath'
18041 shlibpath_overrides_runpath=yes
18042 dynamic_linker='Win32 link.exe'
18043 ;;
18044
18045 *)
18046 # Assume MSVC and ICC wrapper
18047 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
18048 dynamic_linker='Win32 ld.exe'
18049 ;;
18050 esac
18051 # FIXME: first we should search . and the directory the executable is in
18052 shlibpath_var=PATH
18053 ;;
18054
18055 darwin* | rhapsody*)
18056 dynamic_linker="$host_os dyld"
18057 version_type=darwin
18058 need_lib_prefix=no
18059 need_version=no
18060 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
18061 soname_spec='$libname$release$major$shared_ext'
18062 shlibpath_overrides_runpath=yes
18063 shlibpath_var=DYLD_LIBRARY_PATH
18064 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18065
18066 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
18067 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18068 ;;
18069
18070 dgux*)
18071 version_type=linux # correct to gnu/linux during the next big refactor
18072 need_lib_prefix=no
18073 need_version=no
18074 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18075 soname_spec='$libname$release$shared_ext$major'
18076 shlibpath_var=LD_LIBRARY_PATH
18077 ;;
18078
18079 freebsd* | dragonfly* | midnightbsd*)
18080 # DragonFly does not have aout. When/if they implement a new
18081 # versioning mechanism, adjust this.
18082 if test -x /usr/bin/objformat; then
18083 objformat=`/usr/bin/objformat`
18084 else
18085 case $host_os in
18086 freebsd[23].*) objformat=aout ;;
18087 *) objformat=elf ;;
18088 esac
18089 fi
18090 version_type=freebsd-$objformat
18091 case $version_type in
18092 freebsd-elf*)
18093 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18094 soname_spec='$libname$release$shared_ext$major'
18095 need_version=no
18096 need_lib_prefix=no
18097 ;;
18098 freebsd-*)
18099 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
18100 need_version=yes
18101 ;;
18102 esac
18103 shlibpath_var=LD_LIBRARY_PATH
18104 case $host_os in
18105 freebsd2.*)
18106 shlibpath_overrides_runpath=yes
18107 ;;
18108 freebsd3.[01]* | freebsdelf3.[01]*)
18109 shlibpath_overrides_runpath=yes
18110 hardcode_into_libs=yes
18111 ;;
18112 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18113 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18114 shlibpath_overrides_runpath=no
18115 hardcode_into_libs=yes
18116 ;;
18117 *) # from 4.6 on, and DragonFly
18118 shlibpath_overrides_runpath=yes
18119 hardcode_into_libs=yes
18120 ;;
18121 esac
18122 ;;
18123
18124 haiku*)
18125 version_type=linux # correct to gnu/linux during the next big refactor
18126 need_lib_prefix=no
18127 need_version=no
18128 dynamic_linker="$host_os runtime_loader"
18129 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18130 soname_spec='$libname$release$shared_ext$major'
18131 shlibpath_var=LIBRARY_PATH
18132 shlibpath_overrides_runpath=no
18133 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
18134 hardcode_into_libs=yes
18135 ;;
18136
18137 hpux9* | hpux10* | hpux11*)
18138 # Give a soname corresponding to the major version so that dld.sl refuses to
18139 # link against other versions.
18140 version_type=sunos
18141 need_lib_prefix=no
18142 need_version=no
18143 case $host_cpu in
18144 ia64*)
18145 shrext_cmds='.so'
18146 hardcode_into_libs=yes
18147 dynamic_linker="$host_os dld.so"
18148 shlibpath_var=LD_LIBRARY_PATH
18149 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18150 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18151 soname_spec='$libname$release$shared_ext$major'
18152 if test 32 = "$HPUX_IA64_MODE"; then
18153 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18154 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
18155 else
18156 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18157 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
18158 fi
18159 ;;
18160 hppa*64*)
18161 shrext_cmds='.sl'
18162 hardcode_into_libs=yes
18163 dynamic_linker="$host_os dld.sl"
18164 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18165 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18166 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18167 soname_spec='$libname$release$shared_ext$major'
18168 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18169 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18170 ;;
18171 *)
18172 shrext_cmds='.sl'
18173 dynamic_linker="$host_os dld.sl"
18174 shlibpath_var=SHLIB_PATH
18175 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18176 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18177 soname_spec='$libname$release$shared_ext$major'
18178 ;;
18179 esac
18180 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
18181 postinstall_cmds='chmod 555 $lib'
18182 # or fails outright, so override atomically:
18183 install_override_mode=555
18184 ;;
18185
18186 interix[3-9]*)
18187 version_type=linux # correct to gnu/linux during the next big refactor
18188 need_lib_prefix=no
18189 need_version=no
18190 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18191 soname_spec='$libname$release$shared_ext$major'
18192 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18193 shlibpath_var=LD_LIBRARY_PATH
18194 shlibpath_overrides_runpath=no
18195 hardcode_into_libs=yes
18196 ;;
18197
18198 irix5* | irix6* | nonstopux*)
18199 case $host_os in
18200 nonstopux*) version_type=nonstopux ;;
18201 *)
18202 if test yes = "$lt_cv_prog_gnu_ld"; then
18203 version_type=linux # correct to gnu/linux during the next big refactor
18204 else
18205 version_type=irix
18206 fi ;;
18207 esac
18208 need_lib_prefix=no
18209 need_version=no
18210 soname_spec='$libname$release$shared_ext$major'
18211 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
18212 case $host_os in
18213 irix5* | nonstopux*)
18214 libsuff= shlibsuff=
18215 ;;
18216 *)
18217 case $LD in # libtool.m4 will add one of these switches to LD
18218 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18219 libsuff= shlibsuff= libmagic=32-bit;;
18220 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18221 libsuff=32 shlibsuff=N32 libmagic=N32;;
18222 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18223 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18224 *) libsuff= shlibsuff= libmagic=never-match;;
18225 esac
18226 ;;
18227 esac
18228 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18229 shlibpath_overrides_runpath=no
18230 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
18231 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
18232 hardcode_into_libs=yes
18233 ;;
18234
18235 # No shared lib support for Linux oldld, aout, or coff.
18236 linux*oldld* | linux*aout* | linux*coff*)
18237 dynamic_linker=no
18238 ;;
18239
18240 linux*android*)
18241 version_type=none # Android doesn't support versioned libraries.
18242 need_lib_prefix=no
18243 need_version=no
18244 library_names_spec='$libname$release$shared_ext'
18245 soname_spec='$libname$release$shared_ext'
18246 finish_cmds=
18247 shlibpath_var=LD_LIBRARY_PATH
18248 shlibpath_overrides_runpath=yes
18249
18250 # This implies no fast_install, which is unacceptable.
18251 # Some rework will be needed to allow for fast_install
18252 # before this can be enabled.
18253 hardcode_into_libs=yes
18254
18255 dynamic_linker='Android linker'
18256 # Don't embed -rpath directories since the linker doesn't support them.
18257 hardcode_libdir_flag_spec='-L$libdir'
18258 ;;
18259
18260 # This must be glibc/ELF.
18261 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
18262 version_type=linux # correct to gnu/linux during the next big refactor
18263 need_lib_prefix=no
18264 need_version=no
18265 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18266 soname_spec='$libname$release$shared_ext$major'
18267 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18268 shlibpath_var=LD_LIBRARY_PATH
18269 shlibpath_overrides_runpath=no
18270
18271 # Some binutils ld are patched to set DT_RUNPATH
18272 if test ${lt_cv_shlibpath_overrides_runpath+y}
18273 then :
18274 printf %s "(cached) " >&6
18275 else $as_nop
18276 lt_cv_shlibpath_overrides_runpath=no
18277 save_LDFLAGS=$LDFLAGS
18278 save_libdir=$libdir
18279 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
18280 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
18281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18282 /* end confdefs.h. */
18283
18284 int
18285 main (void)
18286 {
18287
18288 ;
18289 return 0;
18290 }
18291 _ACEOF
18292 if ac_fn_c_try_link "$LINENO"
18293 then :
18294 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
18295 then :
18296 lt_cv_shlibpath_overrides_runpath=yes
18297 fi
18298 fi
18299 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18300 conftest$ac_exeext conftest.$ac_ext
18301 LDFLAGS=$save_LDFLAGS
18302 libdir=$save_libdir
18303
18304 fi
18305
18306 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
18307
18308 # This implies no fast_install, which is unacceptable.
18309 # Some rework will be needed to allow for fast_install
18310 # before this can be enabled.
18311 hardcode_into_libs=yes
18312
18313 # Ideally, we could use ldconfig to report *all* directores which are
18314 # searched for libraries, however this is still not possible. Aside from not
18315 # being certain /sbin/ldconfig is available, command
18316 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
18317 # even though it is searched at run-time. Try to do the best guess by
18318 # appending ld.so.conf contents (and includes) to the search path.
18319 if test -f /etc/ld.so.conf; then
18320 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' ' '`
18321 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18322 fi
18323
18324 # We used to test for /lib/ld.so.1 and disable shared libraries on
18325 # powerpc, because MkLinux only supported shared libraries with the
18326 # GNU dynamic linker. Since this was broken with cross compilers,
18327 # most powerpc-linux boxes support dynamic linking these days and
18328 # people can always --disable-shared, the test was removed, and we
18329 # assume the GNU/Linux dynamic linker is in use.
18330 dynamic_linker='GNU/Linux ld.so'
18331 ;;
18332
18333 netbsd*)
18334 version_type=sunos
18335 need_lib_prefix=no
18336 need_version=no
18337 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18338 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
18339 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18340 dynamic_linker='NetBSD (a.out) ld.so'
18341 else
18342 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18343 soname_spec='$libname$release$shared_ext$major'
18344 dynamic_linker='NetBSD ld.elf_so'
18345 fi
18346 shlibpath_var=LD_LIBRARY_PATH
18347 shlibpath_overrides_runpath=yes
18348 hardcode_into_libs=yes
18349 ;;
18350
18351 newsos6)
18352 version_type=linux # correct to gnu/linux during the next big refactor
18353 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18354 shlibpath_var=LD_LIBRARY_PATH
18355 shlibpath_overrides_runpath=yes
18356 ;;
18357
18358 *nto* | *qnx*)
18359 version_type=qnx
18360 need_lib_prefix=no
18361 need_version=no
18362 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18363 soname_spec='$libname$release$shared_ext$major'
18364 shlibpath_var=LD_LIBRARY_PATH
18365 shlibpath_overrides_runpath=no
18366 hardcode_into_libs=yes
18367 dynamic_linker='ldqnx.so'
18368 ;;
18369
18370 openbsd* | bitrig*)
18371 version_type=sunos
18372 sys_lib_dlsearch_path_spec=/usr/lib
18373 need_lib_prefix=no
18374 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
18375 need_version=no
18376 else
18377 need_version=yes
18378 fi
18379 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
18380 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18381 shlibpath_var=LD_LIBRARY_PATH
18382 shlibpath_overrides_runpath=yes
18383 ;;
18384
18385 os2*)
18386 libname_spec='$name'
18387 version_type=windows
18388 shrext_cmds=.dll
18389 need_version=no
18390 need_lib_prefix=no
18391 # OS/2 can only load a DLL with a base name of 8 characters or less.
18392 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
18393 v=$($ECHO $release$versuffix | tr -d .-);
18394 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
18395 $ECHO $n$v`$shared_ext'
18396 library_names_spec='${libname}_dll.$libext'
18397 dynamic_linker='OS/2 ld.exe'
18398 shlibpath_var=BEGINLIBPATH
18399 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18400 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18401 postinstall_cmds='base_file=`basename \$file`~
18402 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
18403 dldir=$destdir/`dirname \$dlpath`~
18404 test -d \$dldir || mkdir -p \$dldir~
18405 $install_prog $dir/$dlname \$dldir/$dlname~
18406 chmod a+x \$dldir/$dlname~
18407 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
18408 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
18409 fi'
18410 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
18411 dlpath=$dir/\$dldll~
18412 $RM \$dlpath'
18413 ;;
18414
18415 osf3* | osf4* | osf5*)
18416 version_type=osf
18417 need_lib_prefix=no
18418 need_version=no
18419 soname_spec='$libname$release$shared_ext$major'
18420 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18421 shlibpath_var=LD_LIBRARY_PATH
18422 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18423 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18424 ;;
18425
18426 rdos*)
18427 dynamic_linker=no
18428 ;;
18429
18430 solaris*)
18431 version_type=linux # correct to gnu/linux during the next big refactor
18432 need_lib_prefix=no
18433 need_version=no
18434 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18435 soname_spec='$libname$release$shared_ext$major'
18436 shlibpath_var=LD_LIBRARY_PATH
18437 shlibpath_overrides_runpath=yes
18438 hardcode_into_libs=yes
18439 # ldd complains unless libraries are executable
18440 postinstall_cmds='chmod +x $lib'
18441 ;;
18442
18443 sunos4*)
18444 version_type=sunos
18445 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
18446 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18447 shlibpath_var=LD_LIBRARY_PATH
18448 shlibpath_overrides_runpath=yes
18449 if test yes = "$with_gnu_ld"; then
18450 need_lib_prefix=no
18451 fi
18452 need_version=yes
18453 ;;
18454
18455 sysv4 | sysv4.3*)
18456 version_type=linux # correct to gnu/linux during the next big refactor
18457 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18458 soname_spec='$libname$release$shared_ext$major'
18459 shlibpath_var=LD_LIBRARY_PATH
18460 case $host_vendor in
18461 sni)
18462 shlibpath_overrides_runpath=no
18463 need_lib_prefix=no
18464 runpath_var=LD_RUN_PATH
18465 ;;
18466 siemens)
18467 need_lib_prefix=no
18468 ;;
18469 motorola)
18470 need_lib_prefix=no
18471 need_version=no
18472 shlibpath_overrides_runpath=no
18473 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18474 ;;
18475 esac
18476 ;;
18477
18478 sysv4*MP*)
18479 if test -d /usr/nec; then
18480 version_type=linux # correct to gnu/linux during the next big refactor
18481 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
18482 soname_spec='$libname$shared_ext.$major'
18483 shlibpath_var=LD_LIBRARY_PATH
18484 fi
18485 ;;
18486
18487 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18488 version_type=sco
18489 need_lib_prefix=no
18490 need_version=no
18491 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
18492 soname_spec='$libname$release$shared_ext$major'
18493 shlibpath_var=LD_LIBRARY_PATH
18494 shlibpath_overrides_runpath=yes
18495 hardcode_into_libs=yes
18496 if test yes = "$with_gnu_ld"; then
18497 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18498 else
18499 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18500 case $host_os in
18501 sco3.2v5*)
18502 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18503 ;;
18504 esac
18505 fi
18506 sys_lib_dlsearch_path_spec='/usr/lib'
18507 ;;
18508
18509 tpf*)
18510 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
18511 version_type=linux # correct to gnu/linux during the next big refactor
18512 need_lib_prefix=no
18513 need_version=no
18514 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18515 shlibpath_var=LD_LIBRARY_PATH
18516 shlibpath_overrides_runpath=no
18517 hardcode_into_libs=yes
18518 ;;
18519
18520 uts4*)
18521 version_type=linux # correct to gnu/linux during the next big refactor
18522 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18523 soname_spec='$libname$release$shared_ext$major'
18524 shlibpath_var=LD_LIBRARY_PATH
18525 ;;
18526
18527 *)
18528 dynamic_linker=no
18529 ;;
18530 esac
18531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
18532 printf "%s\n" "$dynamic_linker" >&6; }
18533 test no = "$dynamic_linker" && can_build_shared=no
18534
18535 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18536 if test yes = "$GCC"; then
18537 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18538 fi
18539
18540 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
18541 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
18542 fi
18543
18544 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
18545 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
18546 fi
18547
18548 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
18549 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
18550
18551 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
18552 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
18553
18554 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
18555 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
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
18612
18613
18614
18615
18616
18617
18618
18619
18620
18621
18622
18623
18624
18625
18626
18627
18628
18629
18630
18631
18632
18633
18634
18635
18636
18637
18638
18639
18640
18641
18642
18643
18644
18645
18646
18647
18648
18649
18650
18651
18652
18653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
18654 printf %s "checking how to hardcode library paths into programs... " >&6; }
18655 hardcode_action=
18656 if test -n "$hardcode_libdir_flag_spec" ||
18657 test -n "$runpath_var" ||
18658 test yes = "$hardcode_automatic"; then
18659
18660 # We can hardcode non-existent directories.
18661 if test no != "$hardcode_direct" &&
18662 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18663 # have to relink, otherwise we might link with an installed library
18664 # when we should be linking with a yet-to-be-installed one
18665 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
18666 test no != "$hardcode_minus_L"; then
18667 # Linking always hardcodes the temporary library directory.
18668 hardcode_action=relink
18669 else
18670 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18671 hardcode_action=immediate
18672 fi
18673 else
18674 # We cannot hardcode anything, or else we can only hardcode existing
18675 # directories.
18676 hardcode_action=unsupported
18677 fi
18678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
18679 printf "%s\n" "$hardcode_action" >&6; }
18680
18681 if test relink = "$hardcode_action" ||
18682 test yes = "$inherit_rpath"; then
18683 # Fast installation is not supported
18684 enable_fast_install=no
18685 elif test yes = "$shlibpath_overrides_runpath" ||
18686 test no = "$enable_shared"; then
18687 # Fast installation is not necessary
18688 enable_fast_install=needless
18689 fi
18690
18691
18692
18693
18694
18695
18696 if test yes != "$enable_dlopen"; then
18697 enable_dlopen=unknown
18698 enable_dlopen_self=unknown
18699 enable_dlopen_self_static=unknown
18700 else
18701 lt_cv_dlopen=no
18702 lt_cv_dlopen_libs=
18703
18704 case $host_os in
18705 beos*)
18706 lt_cv_dlopen=load_add_on
18707 lt_cv_dlopen_libs=
18708 lt_cv_dlopen_self=yes
18709 ;;
18710
18711 mingw* | pw32* | cegcc*)
18712 lt_cv_dlopen=LoadLibrary
18713 lt_cv_dlopen_libs=
18714 ;;
18715
18716 cygwin*)
18717 lt_cv_dlopen=dlopen
18718 lt_cv_dlopen_libs=
18719 ;;
18720
18721 darwin*)
18722 # if libdl is installed we need to link against it
18723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
18724 printf %s "checking for dlopen in -ldl... " >&6; }
18725 if test ${ac_cv_lib_dl_dlopen+y}
18726 then :
18727 printf %s "(cached) " >&6
18728 else $as_nop
18729 ac_check_lib_save_LIBS=$LIBS
18730 LIBS="-ldl $LIBS"
18731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18732 /* end confdefs.h. */
18733
18734 /* Override any GCC internal prototype to avoid an error.
18735 Use char because int might match the return type of a GCC
18736 builtin and then its argument prototype would still apply. */
18737 char dlopen ();
18738 int
18739 main (void)
18740 {
18741 return dlopen ();
18742 ;
18743 return 0;
18744 }
18745 _ACEOF
18746 if ac_fn_c_try_link "$LINENO"
18747 then :
18748 ac_cv_lib_dl_dlopen=yes
18749 else $as_nop
18750 ac_cv_lib_dl_dlopen=no
18751 fi
18752 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18753 conftest$ac_exeext conftest.$ac_ext
18754 LIBS=$ac_check_lib_save_LIBS
18755 fi
18756 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18757 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
18758 if test "x$ac_cv_lib_dl_dlopen" = xyes
18759 then :
18760 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
18761 else $as_nop
18762
18763 lt_cv_dlopen=dyld
18764 lt_cv_dlopen_libs=
18765 lt_cv_dlopen_self=yes
18766
18767 fi
18768
18769 ;;
18770
18771 tpf*)
18772 # Don't try to run any link tests for TPF. We know it's impossible
18773 # because TPF is a cross-compiler, and we know how we open DSOs.
18774 lt_cv_dlopen=dlopen
18775 lt_cv_dlopen_libs=
18776 lt_cv_dlopen_self=no
18777 ;;
18778
18779 *)
18780 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
18781 if test "x$ac_cv_func_shl_load" = xyes
18782 then :
18783 lt_cv_dlopen=shl_load
18784 else $as_nop
18785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
18786 printf %s "checking for shl_load in -ldld... " >&6; }
18787 if test ${ac_cv_lib_dld_shl_load+y}
18788 then :
18789 printf %s "(cached) " >&6
18790 else $as_nop
18791 ac_check_lib_save_LIBS=$LIBS
18792 LIBS="-ldld $LIBS"
18793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18794 /* end confdefs.h. */
18795
18796 /* Override any GCC internal prototype to avoid an error.
18797 Use char because int might match the return type of a GCC
18798 builtin and then its argument prototype would still apply. */
18799 char shl_load ();
18800 int
18801 main (void)
18802 {
18803 return shl_load ();
18804 ;
18805 return 0;
18806 }
18807 _ACEOF
18808 if ac_fn_c_try_link "$LINENO"
18809 then :
18810 ac_cv_lib_dld_shl_load=yes
18811 else $as_nop
18812 ac_cv_lib_dld_shl_load=no
18813 fi
18814 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18815 conftest$ac_exeext conftest.$ac_ext
18816 LIBS=$ac_check_lib_save_LIBS
18817 fi
18818 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
18819 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
18820 if test "x$ac_cv_lib_dld_shl_load" = xyes
18821 then :
18822 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
18823 else $as_nop
18824 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
18825 if test "x$ac_cv_func_dlopen" = xyes
18826 then :
18827 lt_cv_dlopen=dlopen
18828 else $as_nop
18829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
18830 printf %s "checking for dlopen in -ldl... " >&6; }
18831 if test ${ac_cv_lib_dl_dlopen+y}
18832 then :
18833 printf %s "(cached) " >&6
18834 else $as_nop
18835 ac_check_lib_save_LIBS=$LIBS
18836 LIBS="-ldl $LIBS"
18837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18838 /* end confdefs.h. */
18839
18840 /* Override any GCC internal prototype to avoid an error.
18841 Use char because int might match the return type of a GCC
18842 builtin and then its argument prototype would still apply. */
18843 char dlopen ();
18844 int
18845 main (void)
18846 {
18847 return dlopen ();
18848 ;
18849 return 0;
18850 }
18851 _ACEOF
18852 if ac_fn_c_try_link "$LINENO"
18853 then :
18854 ac_cv_lib_dl_dlopen=yes
18855 else $as_nop
18856 ac_cv_lib_dl_dlopen=no
18857 fi
18858 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18859 conftest$ac_exeext conftest.$ac_ext
18860 LIBS=$ac_check_lib_save_LIBS
18861 fi
18862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18863 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
18864 if test "x$ac_cv_lib_dl_dlopen" = xyes
18865 then :
18866 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
18867 else $as_nop
18868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
18869 printf %s "checking for dlopen in -lsvld... " >&6; }
18870 if test ${ac_cv_lib_svld_dlopen+y}
18871 then :
18872 printf %s "(cached) " >&6
18873 else $as_nop
18874 ac_check_lib_save_LIBS=$LIBS
18875 LIBS="-lsvld $LIBS"
18876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18877 /* end confdefs.h. */
18878
18879 /* Override any GCC internal prototype to avoid an error.
18880 Use char because int might match the return type of a GCC
18881 builtin and then its argument prototype would still apply. */
18882 char dlopen ();
18883 int
18884 main (void)
18885 {
18886 return dlopen ();
18887 ;
18888 return 0;
18889 }
18890 _ACEOF
18891 if ac_fn_c_try_link "$LINENO"
18892 then :
18893 ac_cv_lib_svld_dlopen=yes
18894 else $as_nop
18895 ac_cv_lib_svld_dlopen=no
18896 fi
18897 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18898 conftest$ac_exeext conftest.$ac_ext
18899 LIBS=$ac_check_lib_save_LIBS
18900 fi
18901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
18902 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
18903 if test "x$ac_cv_lib_svld_dlopen" = xyes
18904 then :
18905 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
18906 else $as_nop
18907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
18908 printf %s "checking for dld_link in -ldld... " >&6; }
18909 if test ${ac_cv_lib_dld_dld_link+y}
18910 then :
18911 printf %s "(cached) " >&6
18912 else $as_nop
18913 ac_check_lib_save_LIBS=$LIBS
18914 LIBS="-ldld $LIBS"
18915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18916 /* end confdefs.h. */
18917
18918 /* Override any GCC internal prototype to avoid an error.
18919 Use char because int might match the return type of a GCC
18920 builtin and then its argument prototype would still apply. */
18921 char dld_link ();
18922 int
18923 main (void)
18924 {
18925 return dld_link ();
18926 ;
18927 return 0;
18928 }
18929 _ACEOF
18930 if ac_fn_c_try_link "$LINENO"
18931 then :
18932 ac_cv_lib_dld_dld_link=yes
18933 else $as_nop
18934 ac_cv_lib_dld_dld_link=no
18935 fi
18936 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18937 conftest$ac_exeext conftest.$ac_ext
18938 LIBS=$ac_check_lib_save_LIBS
18939 fi
18940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
18941 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
18942 if test "x$ac_cv_lib_dld_dld_link" = xyes
18943 then :
18944 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
18945 fi
18946
18947
18948 fi
18949
18950
18951 fi
18952
18953
18954 fi
18955
18956
18957 fi
18958
18959
18960 fi
18961
18962 ;;
18963 esac
18964
18965 if test no = "$lt_cv_dlopen"; then
18966 enable_dlopen=no
18967 else
18968 enable_dlopen=yes
18969 fi
18970
18971 case $lt_cv_dlopen in
18972 dlopen)
18973 save_CPPFLAGS=$CPPFLAGS
18974 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18975
18976 save_LDFLAGS=$LDFLAGS
18977 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18978
18979 save_LIBS=$LIBS
18980 LIBS="$lt_cv_dlopen_libs $LIBS"
18981
18982 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
18983 printf %s "checking whether a program can dlopen itself... " >&6; }
18984 if test ${lt_cv_dlopen_self+y}
18985 then :
18986 printf %s "(cached) " >&6
18987 else $as_nop
18988 if test yes = "$cross_compiling"; then :
18989 lt_cv_dlopen_self=cross
18990 else
18991 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18992 lt_status=$lt_dlunknown
18993 cat > conftest.$ac_ext <<_LT_EOF
18994 #line $LINENO "configure"
18995 #include "confdefs.h"
18996
18997 #if HAVE_DLFCN_H
18998 #include <dlfcn.h>
18999 #endif
19000
19001 #include <stdio.h>
19002
19003 #ifdef RTLD_GLOBAL
19004 # define LT_DLGLOBAL RTLD_GLOBAL
19005 #else
19006 # ifdef DL_GLOBAL
19007 # define LT_DLGLOBAL DL_GLOBAL
19008 # else
19009 # define LT_DLGLOBAL 0
19010 # endif
19011 #endif
19012
19013 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19014 find out it does not work in some platform. */
19015 #ifndef LT_DLLAZY_OR_NOW
19016 # ifdef RTLD_LAZY
19017 # define LT_DLLAZY_OR_NOW RTLD_LAZY
19018 # else
19019 # ifdef DL_LAZY
19020 # define LT_DLLAZY_OR_NOW DL_LAZY
19021 # else
19022 # ifdef RTLD_NOW
19023 # define LT_DLLAZY_OR_NOW RTLD_NOW
19024 # else
19025 # ifdef DL_NOW
19026 # define LT_DLLAZY_OR_NOW DL_NOW
19027 # else
19028 # define LT_DLLAZY_OR_NOW 0
19029 # endif
19030 # endif
19031 # endif
19032 # endif
19033 #endif
19034
19035 /* When -fvisibility=hidden is used, assume the code has been annotated
19036 correspondingly for the symbols needed. */
19037 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
19038 int fnord () __attribute__((visibility("default")));
19039 #endif
19040
19041 int fnord () { return 42; }
19042 int main ()
19043 {
19044 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19045 int status = $lt_dlunknown;
19046
19047 if (self)
19048 {
19049 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
19050 else
19051 {
19052 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19053 else puts (dlerror ());
19054 }
19055 /* dlclose (self); */
19056 }
19057 else
19058 puts (dlerror ());
19059
19060 return status;
19061 }
19062 _LT_EOF
19063 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
19064 (eval $ac_link) 2>&5
19065 ac_status=$?
19066 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19067 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
19068 (./conftest; exit; ) >&5 2>/dev/null
19069 lt_status=$?
19070 case x$lt_status in
19071 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
19072 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
19073 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
19074 esac
19075 else :
19076 # compilation failed
19077 lt_cv_dlopen_self=no
19078 fi
19079 fi
19080 rm -fr conftest*
19081
19082
19083 fi
19084 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
19085 printf "%s\n" "$lt_cv_dlopen_self" >&6; }
19086
19087 if test yes = "$lt_cv_dlopen_self"; then
19088 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
19089 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
19090 printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
19091 if test ${lt_cv_dlopen_self_static+y}
19092 then :
19093 printf %s "(cached) " >&6
19094 else $as_nop
19095 if test yes = "$cross_compiling"; then :
19096 lt_cv_dlopen_self_static=cross
19097 else
19098 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19099 lt_status=$lt_dlunknown
19100 cat > conftest.$ac_ext <<_LT_EOF
19101 #line $LINENO "configure"
19102 #include "confdefs.h"
19103
19104 #if HAVE_DLFCN_H
19105 #include <dlfcn.h>
19106 #endif
19107
19108 #include <stdio.h>
19109
19110 #ifdef RTLD_GLOBAL
19111 # define LT_DLGLOBAL RTLD_GLOBAL
19112 #else
19113 # ifdef DL_GLOBAL
19114 # define LT_DLGLOBAL DL_GLOBAL
19115 # else
19116 # define LT_DLGLOBAL 0
19117 # endif
19118 #endif
19119
19120 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19121 find out it does not work in some platform. */
19122 #ifndef LT_DLLAZY_OR_NOW
19123 # ifdef RTLD_LAZY
19124 # define LT_DLLAZY_OR_NOW RTLD_LAZY
19125 # else
19126 # ifdef DL_LAZY
19127 # define LT_DLLAZY_OR_NOW DL_LAZY
19128 # else
19129 # ifdef RTLD_NOW
19130 # define LT_DLLAZY_OR_NOW RTLD_NOW
19131 # else
19132 # ifdef DL_NOW
19133 # define LT_DLLAZY_OR_NOW DL_NOW
19134 # else
19135 # define LT_DLLAZY_OR_NOW 0
19136 # endif
19137 # endif
19138 # endif
19139 # endif
19140 #endif
19141
19142 /* When -fvisibility=hidden is used, assume the code has been annotated
19143 correspondingly for the symbols needed. */
19144 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
19145 int fnord () __attribute__((visibility("default")));
19146 #endif
19147
19148 int fnord () { return 42; }
19149 int main ()
19150 {
19151 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19152 int status = $lt_dlunknown;
19153
19154 if (self)
19155 {
19156 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
19157 else
19158 {
19159 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19160 else puts (dlerror ());
19161 }
19162 /* dlclose (self); */
19163 }
19164 else
19165 puts (dlerror ());
19166
19167 return status;
19168 }
19169 _LT_EOF
19170 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
19171 (eval $ac_link) 2>&5
19172 ac_status=$?
19173 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19174 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
19175 (./conftest; exit; ) >&5 2>/dev/null
19176 lt_status=$?
19177 case x$lt_status in
19178 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
19179 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
19180 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
19181 esac
19182 else :
19183 # compilation failed
19184 lt_cv_dlopen_self_static=no
19185 fi
19186 fi
19187 rm -fr conftest*
19188
19189
19190 fi
19191 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
19192 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
19193 fi
19194
19195 CPPFLAGS=$save_CPPFLAGS
19196 LDFLAGS=$save_LDFLAGS
19197 LIBS=$save_LIBS
19198 ;;
19199 esac
19200
19201 case $lt_cv_dlopen_self in
19202 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
19203 *) enable_dlopen_self=unknown ;;
19204 esac
19205
19206 case $lt_cv_dlopen_self_static in
19207 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
19208 *) enable_dlopen_self_static=unknown ;;
19209 esac
19210 fi
19211
19212
19213
19214
19215
19216
19217
19218
19219
19220
19221
19222
19223
19224
19225
19226
19227
19228 striplib=
19229 old_striplib=
19230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
19231 printf %s "checking whether stripping libraries is possible... " >&6; }
19232 if test -z "$STRIP"; then
19233 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19234 printf "%s\n" "no" >&6; }
19235 else
19236 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
19237 old_striplib="$STRIP --strip-debug"
19238 striplib="$STRIP --strip-unneeded"
19239 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19240 printf "%s\n" "yes" >&6; }
19241 else
19242 case $host_os in
19243 darwin*)
19244 # FIXME - insert some real tests, host_os isn't really good enough
19245 striplib="$STRIP -x"
19246 old_striplib="$STRIP -S"
19247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19248 printf "%s\n" "yes" >&6; }
19249 ;;
19250 freebsd*)
19251 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
19252 old_striplib="$STRIP --strip-debug"
19253 striplib="$STRIP --strip-unneeded"
19254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19255 printf "%s\n" "yes" >&6; }
19256 else
19257 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19258 printf "%s\n" "no" >&6; }
19259 fi
19260 ;;
19261 *)
19262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19263 printf "%s\n" "no" >&6; }
19264 ;;
19265 esac
19266 fi
19267 fi
19268
19269
19270
19271
19272
19273
19274
19275
19276
19277
19278
19279
19280 # Report what library types will actually be built
19281 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
19282 printf %s "checking if libtool supports shared libraries... " >&6; }
19283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
19284 printf "%s\n" "$can_build_shared" >&6; }
19285
19286 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
19287 printf %s "checking whether to build shared libraries... " >&6; }
19288 test no = "$can_build_shared" && enable_shared=no
19289
19290 # On AIX, shared libraries and static libraries use the same namespace, and
19291 # are all built from PIC.
19292 case $host_os in
19293 aix3*)
19294 test yes = "$enable_shared" && enable_static=no
19295 if test -n "$RANLIB"; then
19296 archive_cmds="$archive_cmds~\$RANLIB \$lib"
19297 postinstall_cmds='$RANLIB $lib'
19298 fi
19299 ;;
19300
19301 aix[4-9]*)
19302 if test ia64 != "$host_cpu"; then
19303 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
19304 yes,aix,yes) ;; # shared object as lib.so file only
19305 yes,svr4,*) ;; # shared object as lib.so archive member only
19306 yes,*) enable_static=no ;; # shared object in lib.a archive as well
19307 esac
19308 fi
19309 ;;
19310 esac
19311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
19312 printf "%s\n" "$enable_shared" >&6; }
19313
19314 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
19315 printf %s "checking whether to build static libraries... " >&6; }
19316 # Make sure either enable_shared or enable_static is yes.
19317 test yes = "$enable_shared" || enable_static=yes
19318 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
19319 printf "%s\n" "$enable_static" >&6; }
19320
19321
19322
19323
19324 fi
19325 ac_ext=c
19326 ac_cpp='$CPP $CPPFLAGS'
19327 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19328 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19329 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19330
19331 CC=$lt_save_CC
19332
19333
19334
19335
19336
19337
19338
19339
19340
19341
19342
19343
19344
19345
19346
19347 ac_config_commands="$ac_config_commands libtool"
19348
19349
19350
19351
19352 # Only expand once:
19353
19354
19355
19356 if test "x$GCC" = "xyes"; then
19357 CPPFLAGS="$CPPFLAGS -Wall"
19358 fi
19359
19360
19361
19362 # Define a configure option for an alternate module directory
19363
19364 # Check whether --with-xorg-module-dir was given.
19365 if test ${with_xorg_module_dir+y}
19366 then :
19367 withval=$with_xorg_module_dir; moduledir="$withval"
19368 else $as_nop
19369 moduledir="$libdir/xorg/modules"
19370 fi
19371
19372
19373 # Check whether --enable-dri was given.
19374 if test ${enable_dri+y}
19375 then :
19376 enableval=$enable_dri; DRI="$enableval"
19377 else $as_nop
19378 DRI=auto
19379 fi
19380
19381
19382 # Check whether --enable-exa was given.
19383 if test ${enable_exa+y}
19384 then :
19385 enableval=$enable_exa; EXA="$enableval"
19386 else $as_nop
19387 EXA=yes
19388 fi
19389
19390
19391 # Store the list of server defined optional extensions in REQUIRED_MODULES
19392
19393
19394 SAVE_CFLAGS="$CFLAGS"
19395 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
19396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19397 /* end confdefs.h. */
19398
19399 #include "xorg-server.h"
19400 #if !defined RANDR
19401 #error RANDR not defined
19402 #endif
19403
19404 int
19405 main (void)
19406 {
19407
19408 ;
19409 return 0;
19410 }
19411 _ACEOF
19412 if ac_fn_c_try_compile "$LINENO"
19413 then :
19414 _EXT_CHECK=yes
19415 else $as_nop
19416 _EXT_CHECK=no
19417 fi
19418 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19419 CFLAGS="$SAVE_CFLAGS"
19420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if RANDR is defined" >&5
19421 printf %s "checking if RANDR is defined... " >&6; }
19422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
19423 printf "%s\n" "$_EXT_CHECK" >&6; }
19424 if test "$_EXT_CHECK" != no; then
19425 REQUIRED_MODULES="$REQUIRED_MODULES randrproto"
19426 fi
19427
19428
19429
19430 SAVE_CFLAGS="$CFLAGS"
19431 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
19432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19433 /* end confdefs.h. */
19434
19435 #include "xorg-server.h"
19436 #if !defined RENDER
19437 #error RENDER not defined
19438 #endif
19439
19440 int
19441 main (void)
19442 {
19443
19444 ;
19445 return 0;
19446 }
19447 _ACEOF
19448 if ac_fn_c_try_compile "$LINENO"
19449 then :
19450 _EXT_CHECK=yes
19451 else $as_nop
19452 _EXT_CHECK=no
19453 fi
19454 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19455 CFLAGS="$SAVE_CFLAGS"
19456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if RENDER is defined" >&5
19457 printf %s "checking if RENDER is defined... " >&6; }
19458 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
19459 printf "%s\n" "$_EXT_CHECK" >&6; }
19460 if test "$_EXT_CHECK" != no; then
19461 REQUIRED_MODULES="$REQUIRED_MODULES renderproto"
19462 fi
19463
19464
19465
19466 SAVE_CFLAGS="$CFLAGS"
19467 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
19468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19469 /* end confdefs.h. */
19470
19471 #include "xorg-server.h"
19472 #if !defined XV
19473 #error XV not defined
19474 #endif
19475
19476 int
19477 main (void)
19478 {
19479
19480 ;
19481 return 0;
19482 }
19483 _ACEOF
19484 if ac_fn_c_try_compile "$LINENO"
19485 then :
19486 _EXT_CHECK=yes
19487 else $as_nop
19488 _EXT_CHECK=no
19489 fi
19490 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19491 CFLAGS="$SAVE_CFLAGS"
19492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if XV is defined" >&5
19493 printf %s "checking if XV is defined... " >&6; }
19494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
19495 printf "%s\n" "$_EXT_CHECK" >&6; }
19496 if test "$_EXT_CHECK" != no; then
19497 REQUIRED_MODULES="$REQUIRED_MODULES videoproto"
19498 fi
19499
19500
19501
19502 SAVE_CFLAGS="$CFLAGS"
19503 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
19504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19505 /* end confdefs.h. */
19506
19507 #include "xorg-server.h"
19508 #if !defined XF86MISC
19509 #error XF86MISC not defined
19510 #endif
19511
19512 int
19513 main (void)
19514 {
19515
19516 ;
19517 return 0;
19518 }
19519 _ACEOF
19520 if ac_fn_c_try_compile "$LINENO"
19521 then :
19522 _EXT_CHECK=yes
19523 else $as_nop
19524 _EXT_CHECK=no
19525 fi
19526 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19527 CFLAGS="$SAVE_CFLAGS"
19528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if XF86MISC is defined" >&5
19529 printf %s "checking if XF86MISC is defined... " >&6; }
19530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
19531 printf "%s\n" "$_EXT_CHECK" >&6; }
19532 if test "$_EXT_CHECK" != no; then
19533 REQUIRED_MODULES="$REQUIRED_MODULES xf86miscproto"
19534 fi
19535
19536
19537
19538 SAVE_CFLAGS="$CFLAGS"
19539 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
19540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19541 /* end confdefs.h. */
19542
19543 #include "xorg-server.h"
19544 #if !defined DPMSExtension
19545 #error DPMSExtension not defined
19546 #endif
19547
19548 int
19549 main (void)
19550 {
19551
19552 ;
19553 return 0;
19554 }
19555 _ACEOF
19556 if ac_fn_c_try_compile "$LINENO"
19557 then :
19558 _EXT_CHECK=yes
19559 else $as_nop
19560 _EXT_CHECK=no
19561 fi
19562 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19563 CFLAGS="$SAVE_CFLAGS"
19564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if DPMSExtension is defined" >&5
19565 printf %s "checking if DPMSExtension is defined... " >&6; }
19566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
19567 printf "%s\n" "$_EXT_CHECK" >&6; }
19568 if test "$_EXT_CHECK" != no; then
19569 REQUIRED_MODULES="$REQUIRED_MODULES xextproto"
19570 fi
19571
19572
19573 # Obtain compiler/linker options for the driver dependencies
19574
19575 pkg_failed=no
19576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XORG" >&5
19577 printf %s "checking for XORG... " >&6; }
19578
19579 if test -n "$XORG_CFLAGS"; then
19580 pkg_cv_XORG_CFLAGS="$XORG_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 \"xorg-server >= 1.3 xproto fontsproto \$REQUIRED_MODULES\""; } >&5
19584 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.3 xproto fontsproto $REQUIRED_MODULES") 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_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.3 xproto fontsproto $REQUIRED_MODULES" 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 "$XORG_LIBS"; then
19597 pkg_cv_XORG_LIBS="$XORG_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 \"xorg-server >= 1.3 xproto fontsproto \$REQUIRED_MODULES\""; } >&5
19601 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.3 xproto fontsproto $REQUIRED_MODULES") 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_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.3 xproto fontsproto $REQUIRED_MODULES" 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 XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xorg-server >= 1.3 xproto fontsproto $REQUIRED_MODULES" 2>&1`
19627 else
19628 XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xorg-server >= 1.3 xproto fontsproto $REQUIRED_MODULES" 2>&1`
19629 fi
19630 # Put the nasty error message in config.log where it belongs
19631 echo "$XORG_PKG_ERRORS" >&5
19632
19633 as_fn_error $? "Package requirements (xorg-server >= 1.3 xproto fontsproto $REQUIRED_MODULES) were not met:
19634
19635 $XORG_PKG_ERRORS
19636
19637 Consider adjusting the PKG_CONFIG_PATH environment variable if you
19638 installed software in a non-standard prefix.
19639
19640 Alternatively, you may set the environment variables XORG_CFLAGS
19641 and XORG_LIBS to avoid the need to call pkg-config.
19642 See the pkg-config man page for more details." "$LINENO" 5
19643 elif test $pkg_failed = untried; then
19644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19645 printf "%s\n" "no" >&6; }
19646 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19647 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
19648 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
19649 is in your PATH or set the PKG_CONFIG environment variable to the full
19650 path to pkg-config.
19651
19652 Alternatively, you may set the environment variables XORG_CFLAGS
19653 and XORG_LIBS to avoid the need to call pkg-config.
19654 See the pkg-config man page for more details.
19655
19656 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
19657 See \`config.log' for more details" "$LINENO" 5; }
19658 else
19659 XORG_CFLAGS=$pkg_cv_XORG_CFLAGS
19660 XORG_LIBS=$pkg_cv_XORG_LIBS
19661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19662 printf "%s\n" "yes" >&6; }
19663
19664 fi
19665
19666 pkg_failed=no
19667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XEXT" >&5
19668 printf %s "checking for XEXT... " >&6; }
19669
19670 if test -n "$XEXT_CFLAGS"; then
19671 pkg_cv_XEXT_CFLAGS="$XEXT_CFLAGS"
19672 elif test -n "$PKG_CONFIG"; then
19673 if test -n "$PKG_CONFIG" && \
19674 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xextproto >= 7.0.99.1\""; } >&5
19675 ($PKG_CONFIG --exists --print-errors "xextproto >= 7.0.99.1") 2>&5
19676 ac_status=$?
19677 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19678 test $ac_status = 0; }; then
19679 pkg_cv_XEXT_CFLAGS=`$PKG_CONFIG --cflags "xextproto >= 7.0.99.1" 2>/dev/null`
19680 test "x$?" != "x0" && pkg_failed=yes
19681 else
19682 pkg_failed=yes
19683 fi
19684 else
19685 pkg_failed=untried
19686 fi
19687 if test -n "$XEXT_LIBS"; then
19688 pkg_cv_XEXT_LIBS="$XEXT_LIBS"
19689 elif test -n "$PKG_CONFIG"; then
19690 if test -n "$PKG_CONFIG" && \
19691 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xextproto >= 7.0.99.1\""; } >&5
19692 ($PKG_CONFIG --exists --print-errors "xextproto >= 7.0.99.1") 2>&5
19693 ac_status=$?
19694 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19695 test $ac_status = 0; }; then
19696 pkg_cv_XEXT_LIBS=`$PKG_CONFIG --libs "xextproto >= 7.0.99.1" 2>/dev/null`
19697 test "x$?" != "x0" && pkg_failed=yes
19698 else
19699 pkg_failed=yes
19700 fi
19701 else
19702 pkg_failed=untried
19703 fi
19704
19705
19706
19707 if test $pkg_failed = yes; then
19708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19709 printf "%s\n" "no" >&6; }
19710
19711 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19712 _pkg_short_errors_supported=yes
19713 else
19714 _pkg_short_errors_supported=no
19715 fi
19716 if test $_pkg_short_errors_supported = yes; then
19717 XEXT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xextproto >= 7.0.99.1" 2>&1`
19718 else
19719 XEXT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xextproto >= 7.0.99.1" 2>&1`
19720 fi
19721 # Put the nasty error message in config.log where it belongs
19722 echo "$XEXT_PKG_ERRORS" >&5
19723
19724 HAVE_XEXTPROTO_71="no"
19725 elif test $pkg_failed = untried; then
19726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19727 printf "%s\n" "no" >&6; }
19728 HAVE_XEXTPROTO_71="no"
19729 else
19730 XEXT_CFLAGS=$pkg_cv_XEXT_CFLAGS
19731 XEXT_LIBS=$pkg_cv_XEXT_LIBS
19732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19733 printf "%s\n" "yes" >&6; }
19734 HAVE_XEXTPROTO_71="yes";
19735 printf "%s\n" "#define HAVE_XEXTPROTO_71 1" >>confdefs.h
19736
19737 fi
19738 if test "$HAVE_XEXTPROTO_71" = "yes" ; then
19739 HAVE_XEXTPROTO_71_TRUE=
19740 HAVE_XEXTPROTO_71_FALSE='#'
19741 else
19742 HAVE_XEXTPROTO_71_TRUE='#'
19743 HAVE_XEXTPROTO_71_FALSE=
19744 fi
19745
19746 sdkdir=`$PKG_CONFIG --variable=sdkdir xorg-server`
19747
19748 # Checks for libraries.
19749
19750 if test "$DRI" != no; then
19751 if test -f "${sdkdir}/dri.h"; then
19752 have_dri_h="yes"
19753 else
19754 have_dri_h="no"
19755 fi
19756 if test -f "${sdkdir}/sarea.h"; then
19757 have_sarea_h="yes"
19758 else
19759 have_sarea_h="no"
19760 fi
19761 if test -f "${sdkdir}/dristruct.h"; then
19762 have_dristruct_h="yes"
19763 else
19764 have_dristruct_h="no"
19765 fi
19766 if test -f "${sdkdir}/damage.h"; then
19767 have_damage_h="yes"
19768 else
19769 have_damage_h="no"
19770 fi
19771 fi
19772
19773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to include DRI support" >&5
19774 printf %s "checking whether to include DRI support... " >&6; }
19775 if test x$DRI = xauto; then
19776 if test "$have_dri_h" = yes -a \
19777 "$have_sarea_h" = yes -a \
19778 "$have_dristruct_h" = yes; then
19779 DRI="yes"
19780 else
19781 DRI="no"
19782 fi
19783 fi
19784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DRI" >&5
19785 printf "%s\n" "$DRI" >&6; }
19786
19787 if test x$DRI = xyes; then
19788 DRI_TRUE=
19789 DRI_FALSE='#'
19790 else
19791 DRI_TRUE='#'
19792 DRI_FALSE=
19793 fi
19794
19795 if test "$DRI" = yes; then
19796
19797 pkg_failed=no
19798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for DRI" >&5
19799 printf %s "checking for DRI... " >&6; }
19800
19801 if test -n "$DRI_CFLAGS"; then
19802 pkg_cv_DRI_CFLAGS="$DRI_CFLAGS"
19803 elif test -n "$PKG_CONFIG"; then
19804 if test -n "$PKG_CONFIG" && \
19805 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 2.2 xf86driproto\""; } >&5
19806 ($PKG_CONFIG --exists --print-errors "libdrm >= 2.2 xf86driproto") 2>&5
19807 ac_status=$?
19808 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19809 test $ac_status = 0; }; then
19810 pkg_cv_DRI_CFLAGS=`$PKG_CONFIG --cflags "libdrm >= 2.2 xf86driproto" 2>/dev/null`
19811 test "x$?" != "x0" && pkg_failed=yes
19812 else
19813 pkg_failed=yes
19814 fi
19815 else
19816 pkg_failed=untried
19817 fi
19818 if test -n "$DRI_LIBS"; then
19819 pkg_cv_DRI_LIBS="$DRI_LIBS"
19820 elif test -n "$PKG_CONFIG"; then
19821 if test -n "$PKG_CONFIG" && \
19822 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 2.2 xf86driproto\""; } >&5
19823 ($PKG_CONFIG --exists --print-errors "libdrm >= 2.2 xf86driproto") 2>&5
19824 ac_status=$?
19825 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19826 test $ac_status = 0; }; then
19827 pkg_cv_DRI_LIBS=`$PKG_CONFIG --libs "libdrm >= 2.2 xf86driproto" 2>/dev/null`
19828 test "x$?" != "x0" && pkg_failed=yes
19829 else
19830 pkg_failed=yes
19831 fi
19832 else
19833 pkg_failed=untried
19834 fi
19835
19836
19837
19838 if test $pkg_failed = yes; then
19839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19840 printf "%s\n" "no" >&6; }
19841
19842 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19843 _pkg_short_errors_supported=yes
19844 else
19845 _pkg_short_errors_supported=no
19846 fi
19847 if test $_pkg_short_errors_supported = yes; then
19848 DRI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdrm >= 2.2 xf86driproto" 2>&1`
19849 else
19850 DRI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdrm >= 2.2 xf86driproto" 2>&1`
19851 fi
19852 # Put the nasty error message in config.log where it belongs
19853 echo "$DRI_PKG_ERRORS" >&5
19854
19855 as_fn_error $? "Package requirements (libdrm >= 2.2 xf86driproto) were not met:
19856
19857 $DRI_PKG_ERRORS
19858
19859 Consider adjusting the PKG_CONFIG_PATH environment variable if you
19860 installed software in a non-standard prefix.
19861
19862 Alternatively, you may set the environment variables DRI_CFLAGS
19863 and DRI_LIBS to avoid the need to call pkg-config.
19864 See the pkg-config man page for more details." "$LINENO" 5
19865 elif test $pkg_failed = untried; then
19866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19867 printf "%s\n" "no" >&6; }
19868 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19869 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
19870 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
19871 is in your PATH or set the PKG_CONFIG environment variable to the full
19872 path to pkg-config.
19873
19874 Alternatively, you may set the environment variables DRI_CFLAGS
19875 and DRI_LIBS to avoid the need to call pkg-config.
19876 See the pkg-config man page for more details.
19877
19878 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
19879 See \`config.log' for more details" "$LINENO" 5; }
19880 else
19881 DRI_CFLAGS=$pkg_cv_DRI_CFLAGS
19882 DRI_LIBS=$pkg_cv_DRI_LIBS
19883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19884 printf "%s\n" "yes" >&6; }
19885
19886 fi
19887
19888 printf "%s\n" "#define R128DRI 1" >>confdefs.h
19889
19890
19891 printf "%s\n" "#define R128DRI_DEVEL 1" >>confdefs.h
19892
19893 fi
19894
19895 SAVE_CPPFLAGS="$CPPFLAGS"
19896 CPPFLAGS="$CPPFLAGS $XORG_CFLAGS"
19897 # Properly handle EXA.
19898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable EXA support" >&5
19899 printf %s "checking whether to enable EXA support... " >&6; }
19900 if test "x$EXA" = xyes; then
19901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19902 printf "%s\n" "yes" >&6; }
19903 if test -f "${sdkdir}/exa.h"
19904 then :
19905 have_exa_h="yes"
19906 else $as_nop
19907 have_exa_h="no"
19908 fi
19909 else
19910 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19911 printf "%s\n" "no" >&6; }
19912 fi
19913
19914 SAVE_CPPFLAGS="$CPPFLAGS"
19915 CPPFLAGS="$CPPFLAGS $XORG_CFLAGS"
19916 if test "x$have_exa_h" = xyes; then
19917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether EXA version is at least 2.0.0" >&5
19918 printf %s "checking whether EXA version is at least 2.0.0... " >&6; }
19919 ac_ext=c
19920 ac_cpp='$CPP $CPPFLAGS'
19921 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19922 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19923 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
19925 printf %s "checking how to run the C preprocessor... " >&6; }
19926 # On Suns, sometimes $CPP names a directory.
19927 if test -n "$CPP" && test -d "$CPP"; then
19928 CPP=
19929 fi
19930 if test -z "$CPP"; then
19931 if test ${ac_cv_prog_CPP+y}
19932 then :
19933 printf %s "(cached) " >&6
19934 else $as_nop
19935 # Double quotes because $CC needs to be expanded
19936 for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
19937 do
19938 ac_preproc_ok=false
19939 for ac_c_preproc_warn_flag in '' yes
19940 do
19941 # Use a header file that comes with gcc, so configuring glibc
19942 # with a fresh cross-compiler works.
19943 # On the NeXT, cc -E runs the code through the compiler's parser,
19944 # not just through cpp. "Syntax error" is here to catch this case.
19945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19946 /* end confdefs.h. */
19947 #include <limits.h>
19948 Syntax error
19949 _ACEOF
19950 if ac_fn_c_try_cpp "$LINENO"
19951 then :
19952
19953 else $as_nop
19954 # Broken: fails on valid input.
19955 continue
19956 fi
19957 rm -f conftest.err conftest.i conftest.$ac_ext
19958
19959 # OK, works on sane cases. Now check whether nonexistent headers
19960 # can be detected and how.
19961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19962 /* end confdefs.h. */
19963 #include <ac_nonexistent.h>
19964 _ACEOF
19965 if ac_fn_c_try_cpp "$LINENO"
19966 then :
19967 # Broken: success on invalid input.
19968 continue
19969 else $as_nop
19970 # Passes both tests.
19971 ac_preproc_ok=:
19972 break
19973 fi
19974 rm -f conftest.err conftest.i conftest.$ac_ext
19975
19976 done
19977 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
19978 rm -f conftest.i conftest.err conftest.$ac_ext
19979 if $ac_preproc_ok
19980 then :
19981 break
19982 fi
19983
19984 done
19985 ac_cv_prog_CPP=$CPP
19986
19987 fi
19988 CPP=$ac_cv_prog_CPP
19989 else
19990 ac_cv_prog_CPP=$CPP
19991 fi
19992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
19993 printf "%s\n" "$CPP" >&6; }
19994 ac_preproc_ok=false
19995 for ac_c_preproc_warn_flag in '' yes
19996 do
19997 # Use a header file that comes with gcc, so configuring glibc
19998 # with a fresh cross-compiler works.
19999 # On the NeXT, cc -E runs the code through the compiler's parser,
20000 # not just through cpp. "Syntax error" is here to catch this case.
20001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20002 /* end confdefs.h. */
20003 #include <limits.h>
20004 Syntax error
20005 _ACEOF
20006 if ac_fn_c_try_cpp "$LINENO"
20007 then :
20008
20009 else $as_nop
20010 # Broken: fails on valid input.
20011 continue
20012 fi
20013 rm -f conftest.err conftest.i conftest.$ac_ext
20014
20015 # OK, works on sane cases. Now check whether nonexistent headers
20016 # can be detected and how.
20017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20018 /* end confdefs.h. */
20019 #include <ac_nonexistent.h>
20020 _ACEOF
20021 if ac_fn_c_try_cpp "$LINENO"
20022 then :
20023 # Broken: success on invalid input.
20024 continue
20025 else $as_nop
20026 # Passes both tests.
20027 ac_preproc_ok=:
20028 break
20029 fi
20030 rm -f conftest.err conftest.i conftest.$ac_ext
20031
20032 done
20033 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
20034 rm -f conftest.i conftest.err conftest.$ac_ext
20035 if $ac_preproc_ok
20036 then :
20037
20038 else $as_nop
20039 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20040 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
20041 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
20042 See \`config.log' for more details" "$LINENO" 5; }
20043 fi
20044
20045 ac_ext=c
20046 ac_cpp='$CPP $CPPFLAGS'
20047 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20048 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20049 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20050
20051
20052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20053 /* end confdefs.h. */
20054
20055 #include "xorg-server.h"
20056 #include "exa.h"
20057 #if EXA_VERSION_MAJOR < 2
20058 #error OLD EXA!
20059 #endif
20060
20061 int
20062 main (void)
20063 {
20064
20065 ;
20066 return 0;
20067 }
20068 _ACEOF
20069 if ac_fn_c_try_cpp "$LINENO"
20070 then :
20071 USE_EXA=yes
20072 else $as_nop
20073 USE_EXA=no
20074 fi
20075 rm -f conftest.err conftest.i conftest.$ac_ext
20076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_EXA" >&5
20077 printf "%s\n" "$USE_EXA" >&6; }
20078
20079 if test "x$USE_EXA" = xyes; then
20080
20081 printf "%s\n" "#define USE_EXA 1" >>confdefs.h
20082
20083 fi
20084 fi
20085
20086 ac_fn_check_decl "$LINENO" "XSERVER_LIBPCIACCESS" "ac_cv_have_decl_XSERVER_LIBPCIACCESS" "#include \"xorg-server.h\"
20087 " "$ac_c_undeclared_builtin_options" "CFLAGS"
20088 if test "x$ac_cv_have_decl_XSERVER_LIBPCIACCESS" = xyes
20089 then :
20090 XSERVER_LIBPCIACCESS=yes
20091 else $as_nop
20092 XSERVER_LIBPCIACCESS=no
20093 fi
20094 CPPFLAGS="$SAVE_CPPFLAGS"
20095
20096 # Check whether --enable-xaa was given.
20097 if test ${enable_xaa+y}
20098 then :
20099 enableval=$enable_xaa; XAA="$enableval"
20100 else $as_nop
20101 XAA=auto
20102 fi
20103
20104 if test "x$XAA" != xno; then
20105 save_CFLAGS=$CFLAGS
20106 save_CPPFLAGS=$CPPFLAGS
20107 CFLAGS=$XORG_CFLAGS
20108 CPPFLAGS="$XORG_CFLAGS"
20109 for ac_header in xaa.h
20110 do :
20111 ac_fn_c_check_header_compile "$LINENO" "xaa.h" "ac_cv_header_xaa_h" "$ac_includes_default"
20112 if test "x$ac_cv_header_xaa_h" = xyes
20113 then :
20114 printf "%s\n" "#define HAVE_XAA_H 1" >>confdefs.h
20115 XAA=yes
20116 else $as_nop
20117 XAA=no
20118 fi
20119
20120 done
20121 CFLAGS=$save_CFLAGS
20122 CPPFLAGS=$save_CPPFLAGS
20123 fi
20124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to include XAA support" >&5
20125 printf %s "checking whether to include XAA support... " >&6; }
20126 if test "x$XAA" = xyes; then
20127 XAA_TRUE=
20128 XAA_FALSE='#'
20129 else
20130 XAA_TRUE='#'
20131 XAA_FALSE=
20132 fi
20133
20134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XAA" >&5
20135 printf "%s\n" "$XAA" >&6; }
20136
20137 if test "x$USE_EXA" = xyes; then
20138 USE_EXA_TRUE=
20139 USE_EXA_FALSE='#'
20140 else
20141 USE_EXA_TRUE='#'
20142 USE_EXA_FALSE=
20143 fi
20144
20145
20146 if test "x$XSERVER_LIBPCIACCESS" = xyes; then
20147
20148 pkg_failed=no
20149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for PCIACCESS" >&5
20150 printf %s "checking for PCIACCESS... " >&6; }
20151
20152 if test -n "$PCIACCESS_CFLAGS"; then
20153 pkg_cv_PCIACCESS_CFLAGS="$PCIACCESS_CFLAGS"
20154 elif test -n "$PKG_CONFIG"; then
20155 if test -n "$PKG_CONFIG" && \
20156 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\""; } >&5
20157 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5
20158 ac_status=$?
20159 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20160 test $ac_status = 0; }; then
20161 pkg_cv_PCIACCESS_CFLAGS=`$PKG_CONFIG --cflags "pciaccess >= 0.8.0" 2>/dev/null`
20162 test "x$?" != "x0" && pkg_failed=yes
20163 else
20164 pkg_failed=yes
20165 fi
20166 else
20167 pkg_failed=untried
20168 fi
20169 if test -n "$PCIACCESS_LIBS"; then
20170 pkg_cv_PCIACCESS_LIBS="$PCIACCESS_LIBS"
20171 elif test -n "$PKG_CONFIG"; then
20172 if test -n "$PKG_CONFIG" && \
20173 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\""; } >&5
20174 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5
20175 ac_status=$?
20176 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20177 test $ac_status = 0; }; then
20178 pkg_cv_PCIACCESS_LIBS=`$PKG_CONFIG --libs "pciaccess >= 0.8.0" 2>/dev/null`
20179 test "x$?" != "x0" && pkg_failed=yes
20180 else
20181 pkg_failed=yes
20182 fi
20183 else
20184 pkg_failed=untried
20185 fi
20186
20187
20188
20189 if test $pkg_failed = yes; then
20190 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20191 printf "%s\n" "no" >&6; }
20192
20193 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20194 _pkg_short_errors_supported=yes
20195 else
20196 _pkg_short_errors_supported=no
20197 fi
20198 if test $_pkg_short_errors_supported = yes; then
20199 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "pciaccess >= 0.8.0" 2>&1`
20200 else
20201 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "pciaccess >= 0.8.0" 2>&1`
20202 fi
20203 # Put the nasty error message in config.log where it belongs
20204 echo "$PCIACCESS_PKG_ERRORS" >&5
20205
20206 as_fn_error $? "Package requirements (pciaccess >= 0.8.0) were not met:
20207
20208 $PCIACCESS_PKG_ERRORS
20209
20210 Consider adjusting the PKG_CONFIG_PATH environment variable if you
20211 installed software in a non-standard prefix.
20212
20213 Alternatively, you may set the environment variables PCIACCESS_CFLAGS
20214 and PCIACCESS_LIBS to avoid the need to call pkg-config.
20215 See the pkg-config man page for more details." "$LINENO" 5
20216 elif test $pkg_failed = untried; then
20217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20218 printf "%s\n" "no" >&6; }
20219 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20220 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
20221 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
20222 is in your PATH or set the PKG_CONFIG environment variable to the full
20223 path to pkg-config.
20224
20225 Alternatively, you may set the environment variables PCIACCESS_CFLAGS
20226 and PCIACCESS_LIBS to avoid the need to call pkg-config.
20227 See the pkg-config man page for more details.
20228
20229 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
20230 See \`config.log' for more details" "$LINENO" 5; }
20231 else
20232 PCIACCESS_CFLAGS=$pkg_cv_PCIACCESS_CFLAGS
20233 PCIACCESS_LIBS=$pkg_cv_PCIACCESS_LIBS
20234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20235 printf "%s\n" "yes" >&6; }
20236
20237 fi
20238 XORG_CFLAGS="$XORG_CFLAGS $PCIACCESS_CFLAGS"
20239 fi
20240 if test "x$XSERVER_LIBPCIACCESS" = xyes; then
20241 XSERVER_LIBPCIACCESS_TRUE=
20242 XSERVER_LIBPCIACCESS_FALSE='#'
20243 else
20244 XSERVER_LIBPCIACCESS_TRUE='#'
20245 XSERVER_LIBPCIACCESS_FALSE=
20246 fi
20247
20248
20249 # Checks for headers/macros for byte swapping
20250 # Known variants:
20251 # <byteswap.h> bswap_16, bswap_32, bswap_64 (glibc)
20252 # <sys/endian.h> __swap16, __swap32, __swap64 (OpenBSD)
20253 # <sys/endian.h> bswap16, bswap32, bswap64 (other BSD's)
20254 # and a fallback to local macros if none of the above are found
20255
20256 # if <byteswap.h> is found, assume it's the correct version
20257 ac_fn_c_check_header_compile "$LINENO" "byteswap.h" "ac_cv_header_byteswap_h" "$ac_includes_default"
20258 if test "x$ac_cv_header_byteswap_h" = xyes
20259 then :
20260 printf "%s\n" "#define HAVE_BYTESWAP_H 1" >>confdefs.h
20261
20262 fi
20263
20264
20265 # if <sys/endian.h> is found, have to check which version
20266 ac_fn_c_check_header_compile "$LINENO" "sys/endian.h" "ac_cv_header_sys_endian_h" "$ac_includes_default"
20267 if test "x$ac_cv_header_sys_endian_h" = xyes
20268 then :
20269 HAVE_SYS_ENDIAN_H="yes"
20270 else $as_nop
20271 HAVE_SYS_ENDIAN_H="no"
20272 fi
20273
20274
20275 if test "x$HAVE_SYS_ENDIAN_H" = "xyes" ; then
20276 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __swap16 variant of <sys/endian.h> byteswapping macros" >&5
20277 printf %s "checking for __swap16 variant of <sys/endian.h> byteswapping macros... " >&6; }
20278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20279 /* end confdefs.h. */
20280
20281 #include <sys/types.h>
20282 #include <sys/endian.h>
20283
20284 int
20285 main (void)
20286 {
20287
20288 int a = 1, b;
20289 b = __swap16(a);
20290
20291 ;
20292 return 0;
20293 }
20294
20295 _ACEOF
20296 if ac_fn_c_try_link "$LINENO"
20297 then :
20298 SYS_ENDIAN__SWAP='yes'
20299 else $as_nop
20300 SYS_ENDIAN__SWAP='no'
20301 fi
20302 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20303 conftest$ac_exeext conftest.$ac_ext
20304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SYS_ENDIAN__SWAP" >&5
20305 printf "%s\n" "$SYS_ENDIAN__SWAP" >&6; }
20306
20307 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for bswap16 variant of <sys/endian.h> byteswapping macros" >&5
20308 printf %s "checking for bswap16 variant of <sys/endian.h> byteswapping macros... " >&6; }
20309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20310 /* end confdefs.h. */
20311
20312 #include <sys/types.h>
20313 #include <sys/endian.h>
20314
20315 int
20316 main (void)
20317 {
20318
20319 int a = 1, b;
20320 b = bswap16(a);
20321
20322 ;
20323 return 0;
20324 }
20325
20326 _ACEOF
20327 if ac_fn_c_try_link "$LINENO"
20328 then :
20329 SYS_ENDIAN_BSWAP='yes'
20330 else $as_nop
20331 SYS_ENDIAN_BSWAP='no'
20332 fi
20333 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20334 conftest$ac_exeext conftest.$ac_ext
20335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SYS_ENDIAN_BSWAP" >&5
20336 printf "%s\n" "$SYS_ENDIAN_BSWAP" >&6; }
20337
20338 if test "$SYS_ENDIAN_BSWAP" = "yes" ; then
20339 USE_SYS_ENDIAN_H=yes
20340 BSWAP=bswap
20341 else
20342 if test "$SYS_ENDIAN__SWAP" = "yes" ; then
20343 USE_SYS_ENDIAN_H=yes
20344 BSWAP=__swap
20345 else
20346 USE_SYS_ENDIAN_H=no
20347 fi
20348 fi
20349
20350 if test "$USE_SYS_ENDIAN_H" = "yes" ; then
20351
20352 printf "%s\n" "#define USE_SYS_ENDIAN_H 1" >>confdefs.h
20353
20354
20355 printf "%s\n" "#define bswap_16 ${BSWAP}16" >>confdefs.h
20356
20357
20358 printf "%s\n" "#define bswap_32 ${BSWAP}32" >>confdefs.h
20359
20360
20361 printf "%s\n" "#define bswap_64 ${BSWAP}64" >>confdefs.h
20362
20363 fi
20364 fi
20365
20366
20367
20368 DRIVER_NAME=r128
20369
20370
20371 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Please change the Driver line in xorg.conf from \"ati\" to \"r128\" or install
20372 the ati wrapper as well:
20373 git://anongit.freedesktop.org/git/xorg/driver/xf86-video-ati
20374 " >&5
20375 printf "%s\n" "$as_me: Please change the Driver line in xorg.conf from \"ati\" to \"r128\" or install
20376 the ati wrapper as well:
20377 git://anongit.freedesktop.org/git/xorg/driver/xf86-video-ati
20378 " >&6;}
20379
20380 ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile"
20381
20382 cat >confcache <<\_ACEOF
20383 # This file is a shell script that caches the results of configure
20384 # tests run on this system so they can be shared between configure
20385 # scripts and configure runs, see configure's option --config-cache.
20386 # It is not useful on other systems. If it contains results you don't
20387 # want to keep, you may remove or edit it.
20388 #
20389 # config.status only pays attention to the cache file if you give it
20390 # the --recheck option to rerun configure.
20391 #
20392 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20393 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20394 # following values.
20395
20396 _ACEOF
20397
20398 # The following way of writing the cache mishandles newlines in values,
20399 # but we know of no workaround that is simple, portable, and efficient.
20400 # So, we kill variables containing newlines.
20401 # Ultrix sh set writes to stderr and can't be redirected directly,
20402 # and sets the high bit in the cache file unless we assign to the vars.
20403 (
20404 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20405 eval ac_val=\$$ac_var
20406 case $ac_val in #(
20407 *${as_nl}*)
20408 case $ac_var in #(
20409 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
20410 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
20411 esac
20412 case $ac_var in #(
20413 _ | IFS | as_nl) ;; #(
20414 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
20415 *) { eval $ac_var=; unset $ac_var;} ;;
20416 esac ;;
20417 esac
20418 done
20419
20420 (set) 2>&1 |
20421 case $as_nl`(ac_space=' '; set) 2>&1` in #(
20422 *${as_nl}ac_space=\ *)
20423 # `set' does not quote correctly, so add quotes: double-quote
20424 # substitution turns \\\\ into \\, and sed turns \\ into \.
20425 sed -n \
20426 "s/'/'\\\\''/g;
20427 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20428 ;; #(
20429 *)
20430 # `set' quotes correctly as required by POSIX, so do not add quotes.
20431 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20432 ;;
20433 esac |
20434 sort
20435 ) |
20436 sed '
20437 /^ac_cv_env_/b end
20438 t clear
20439 :clear
20440 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
20441 t end
20442 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20443 :end' >>confcache
20444 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20445 if test -w "$cache_file"; then
20446 if test "x$cache_file" != "x/dev/null"; then
20447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
20448 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
20449 if test ! -f "$cache_file" || test -h "$cache_file"; then
20450 cat confcache >"$cache_file"
20451 else
20452 case $cache_file in #(
20453 */* | ?:*)
20454 mv -f confcache "$cache_file"$$ &&
20455 mv -f "$cache_file"$$ "$cache_file" ;; #(
20456 *)
20457 mv -f confcache "$cache_file" ;;
20458 esac
20459 fi
20460 fi
20461 else
20462 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
20463 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
20464 fi
20465 fi
20466 rm -f confcache
20467
20468 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20469 # Let make expand exec_prefix.
20470 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20471
20472 DEFS=-DHAVE_CONFIG_H
20473
20474 ac_libobjs=
20475 ac_ltlibobjs=
20476 U=
20477 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20478 # 1. Remove the extension, and $U if already installed.
20479 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20480 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
20481 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20482 # will be set to the directory where LIBOBJS objects are built.
20483 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20484 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
20485 done
20486 LIBOBJS=$ac_libobjs
20487
20488 LTLIBOBJS=$ac_ltlibobjs
20489
20490
20491 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
20492 printf %s "checking that generated files are newer than configure... " >&6; }
20493 if test -n "$am_sleep_pid"; then
20494 # Hide warnings about reused PIDs.
20495 wait $am_sleep_pid 2>/dev/null
20496 fi
20497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
20498 printf "%s\n" "done" >&6; }
20499 if test -n "$EXEEXT"; then
20500 am__EXEEXT_TRUE=
20501 am__EXEEXT_FALSE='#'
20502 else
20503 am__EXEEXT_TRUE='#'
20504 am__EXEEXT_FALSE=
20505 fi
20506
20507 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20508 as_fn_error $? "conditional \"AMDEP\" was never defined.
20509 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20510 fi
20511 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20512 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
20513 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20514 fi
20515 if test -z "${HAVE_XEXTPROTO_71_TRUE}" && test -z "${HAVE_XEXTPROTO_71_FALSE}"; then
20516 as_fn_error $? "conditional \"HAVE_XEXTPROTO_71\" was never defined.
20517 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20518 fi
20519 if test -z "${DRI_TRUE}" && test -z "${DRI_FALSE}"; then
20520 as_fn_error $? "conditional \"DRI\" was never defined.
20521 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20522 fi
20523 if test -z "${XAA_TRUE}" && test -z "${XAA_FALSE}"; then
20524 as_fn_error $? "conditional \"XAA\" was never defined.
20525 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20526 fi
20527 if test -z "${USE_EXA_TRUE}" && test -z "${USE_EXA_FALSE}"; then
20528 as_fn_error $? "conditional \"USE_EXA\" was never defined.
20529 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20530 fi
20531 if test -z "${XSERVER_LIBPCIACCESS_TRUE}" && test -z "${XSERVER_LIBPCIACCESS_FALSE}"; then
20532 as_fn_error $? "conditional \"XSERVER_LIBPCIACCESS\" was never defined.
20533 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20534 fi
20535
20536 : "${CONFIG_STATUS=./config.status}"
20537 ac_write_fail=0
20538 ac_clean_files_save=$ac_clean_files
20539 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20540 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
20541 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
20542 as_write_fail=0
20543 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
20544 #! $SHELL
20545 # Generated by $as_me.
20546 # Run this file to recreate the current configuration.
20547 # Compiler output produced by configure, useful for debugging
20548 # configure, is in config.log if it exists.
20549
20550 debug=false
20551 ac_cs_recheck=false
20552 ac_cs_silent=false
20553
20554 SHELL=\${CONFIG_SHELL-$SHELL}
20555 export SHELL
20556 _ASEOF
20557 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
20558 ## -------------------- ##
20559 ## M4sh Initialization. ##
20560 ## -------------------- ##
20561
20562 # Be more Bourne compatible
20563 DUALCASE=1; export DUALCASE # for MKS sh
20564 as_nop=:
20565 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
20566 then :
20567 emulate sh
20568 NULLCMD=:
20569 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
20570 # is contrary to our usage. Disable this feature.
20571 alias -g '${1+"$@"}'='"$@"'
20572 setopt NO_GLOB_SUBST
20573 else $as_nop
20574 case `(set -o) 2>/dev/null` in #(
20575 *posix*) :
20576 set -o posix ;; #(
20577 *) :
20578 ;;
20579 esac
20580 fi
20581
20582
20583
20584 # Reset variables that may have inherited troublesome values from
20585 # the environment.
20586
20587 # IFS needs to be set, to space, tab, and newline, in precisely that order.
20588 # (If _AS_PATH_WALK were called with IFS unset, it would have the
20589 # side effect of setting IFS to empty, thus disabling word splitting.)
20590 # Quoting is to prevent editors from complaining about space-tab.
20591 as_nl='
20592 '
20593 export as_nl
20594 IFS=" "" $as_nl"
20595
20596 PS1='$ '
20597 PS2='> '
20598 PS4='+ '
20599
20600 # Ensure predictable behavior from utilities with locale-dependent output.
20601 LC_ALL=C
20602 export LC_ALL
20603 LANGUAGE=C
20604 export LANGUAGE
20605
20606 # We cannot yet rely on "unset" to work, but we need these variables
20607 # to be unset--not just set to an empty or harmless value--now, to
20608 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
20609 # also avoids known problems related to "unset" and subshell syntax
20610 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
20611 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
20612 do eval test \${$as_var+y} \
20613 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
20614 done
20615
20616 # Ensure that fds 0, 1, and 2 are open.
20617 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
20618 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
20619 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
20620
20621 # The user is always right.
20622 if ${PATH_SEPARATOR+false} :; then
20623 PATH_SEPARATOR=:
20624 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
20625 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
20626 PATH_SEPARATOR=';'
20627 }
20628 fi
20629
20630
20631 # Find who we are. Look in the path if we contain no directory separator.
20632 as_myself=
20633 case $0 in #((
20634 *[\\/]* ) as_myself=$0 ;;
20635 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20636 for as_dir in $PATH
20637 do
20638 IFS=$as_save_IFS
20639 case $as_dir in #(((
20640 '') as_dir=./ ;;
20641 */) ;;
20642 *) as_dir=$as_dir/ ;;
20643 esac
20644 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
20645 done
20646 IFS=$as_save_IFS
20647
20648 ;;
20649 esac
20650 # We did not find ourselves, most probably we were run as `sh COMMAND'
20651 # in which case we are not to be found in the path.
20652 if test "x$as_myself" = x; then
20653 as_myself=$0
20654 fi
20655 if test ! -f "$as_myself"; then
20656 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20657 exit 1
20658 fi
20659
20660
20661
20662 # as_fn_error STATUS ERROR [LINENO LOG_FD]
20663 # ----------------------------------------
20664 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
20665 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
20666 # script with STATUS, using 1 if that was 0.
20667 as_fn_error ()
20668 {
20669 as_status=$1; test $as_status -eq 0 && as_status=1
20670 if test "$4"; then
20671 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
20672 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
20673 fi
20674 printf "%s\n" "$as_me: error: $2" >&2
20675 as_fn_exit $as_status
20676 } # as_fn_error
20677
20678
20679
20680 # as_fn_set_status STATUS
20681 # -----------------------
20682 # Set $? to STATUS, without forking.
20683 as_fn_set_status ()
20684 {
20685 return $1
20686 } # as_fn_set_status
20687
20688 # as_fn_exit STATUS
20689 # -----------------
20690 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
20691 as_fn_exit ()
20692 {
20693 set +e
20694 as_fn_set_status $1
20695 exit $1
20696 } # as_fn_exit
20697
20698 # as_fn_unset VAR
20699 # ---------------
20700 # Portably unset VAR.
20701 as_fn_unset ()
20702 {
20703 { eval $1=; unset $1;}
20704 }
20705 as_unset=as_fn_unset
20706
20707 # as_fn_append VAR VALUE
20708 # ----------------------
20709 # Append the text in VALUE to the end of the definition contained in VAR. Take
20710 # advantage of any shell optimizations that allow amortized linear growth over
20711 # repeated appends, instead of the typical quadratic growth present in naive
20712 # implementations.
20713 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
20714 then :
20715 eval 'as_fn_append ()
20716 {
20717 eval $1+=\$2
20718 }'
20719 else $as_nop
20720 as_fn_append ()
20721 {
20722 eval $1=\$$1\$2
20723 }
20724 fi # as_fn_append
20725
20726 # as_fn_arith ARG...
20727 # ------------------
20728 # Perform arithmetic evaluation on the ARGs, and store the result in the
20729 # global $as_val. Take advantage of shells that can avoid forks. The arguments
20730 # must be portable across $(()) and expr.
20731 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
20732 then :
20733 eval 'as_fn_arith ()
20734 {
20735 as_val=$(( $* ))
20736 }'
20737 else $as_nop
20738 as_fn_arith ()
20739 {
20740 as_val=`expr "$@" || test $? -eq 1`
20741 }
20742 fi # as_fn_arith
20743
20744
20745 if expr a : '\(a\)' >/dev/null 2>&1 &&
20746 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20747 as_expr=expr
20748 else
20749 as_expr=false
20750 fi
20751
20752 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20753 as_basename=basename
20754 else
20755 as_basename=false
20756 fi
20757
20758 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20759 as_dirname=dirname
20760 else
20761 as_dirname=false
20762 fi
20763
20764 as_me=`$as_basename -- "$0" ||
20765 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20766 X"$0" : 'X\(//\)$' \| \
20767 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20768 printf "%s\n" X/"$0" |
20769 sed '/^.*\/\([^/][^/]*\)\/*$/{
20770 s//\1/
20771 q
20772 }
20773 /^X\/\(\/\/\)$/{
20774 s//\1/
20775 q
20776 }
20777 /^X\/\(\/\).*/{
20778 s//\1/
20779 q
20780 }
20781 s/.*/./; q'`
20782
20783 # Avoid depending upon Character Ranges.
20784 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20785 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20786 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20787 as_cr_digits='0123456789'
20788 as_cr_alnum=$as_cr_Letters$as_cr_digits
20789
20790
20791 # Determine whether it's possible to make 'echo' print without a newline.
20792 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
20793 # for compatibility with existing Makefiles.
20794 ECHO_C= ECHO_N= ECHO_T=
20795 case `echo -n x` in #(((((
20796 -n*)
20797 case `echo 'xy\c'` in
20798 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
20799 xy) ECHO_C='\c';;
20800 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
20801 ECHO_T=' ';;
20802 esac;;
20803 *)
20804 ECHO_N='-n';;
20805 esac
20806
20807 # For backward compatibility with old third-party macros, we provide
20808 # the shell variables $as_echo and $as_echo_n. New code should use
20809 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
20810 as_echo='printf %s\n'
20811 as_echo_n='printf %s'
20812
20813 rm -f conf$$ conf$$.exe conf$$.file
20814 if test -d conf$$.dir; then
20815 rm -f conf$$.dir/conf$$.file
20816 else
20817 rm -f conf$$.dir
20818 mkdir conf$$.dir 2>/dev/null
20819 fi
20820 if (echo >conf$$.file) 2>/dev/null; then
20821 if ln -s conf$$.file conf$$ 2>/dev/null; then
20822 as_ln_s='ln -s'
20823 # ... but there are two gotchas:
20824 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20825 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20826 # In both cases, we have to default to `cp -pR'.
20827 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20828 as_ln_s='cp -pR'
20829 elif ln conf$$.file conf$$ 2>/dev/null; then
20830 as_ln_s=ln
20831 else
20832 as_ln_s='cp -pR'
20833 fi
20834 else
20835 as_ln_s='cp -pR'
20836 fi
20837 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20838 rmdir conf$$.dir 2>/dev/null
20839
20840
20841 # as_fn_mkdir_p
20842 # -------------
20843 # Create "$as_dir" as a directory, including parents if necessary.
20844 as_fn_mkdir_p ()
20845 {
20846
20847 case $as_dir in #(
20848 -*) as_dir=./$as_dir;;
20849 esac
20850 test -d "$as_dir" || eval $as_mkdir_p || {
20851 as_dirs=
20852 while :; do
20853 case $as_dir in #(
20854 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20855 *) as_qdir=$as_dir;;
20856 esac
20857 as_dirs="'$as_qdir' $as_dirs"
20858 as_dir=`$as_dirname -- "$as_dir" ||
20859 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20860 X"$as_dir" : 'X\(//\)[^/]' \| \
20861 X"$as_dir" : 'X\(//\)$' \| \
20862 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20863 printf "%s\n" X"$as_dir" |
20864 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20865 s//\1/
20866 q
20867 }
20868 /^X\(\/\/\)[^/].*/{
20869 s//\1/
20870 q
20871 }
20872 /^X\(\/\/\)$/{
20873 s//\1/
20874 q
20875 }
20876 /^X\(\/\).*/{
20877 s//\1/
20878 q
20879 }
20880 s/.*/./; q'`
20881 test -d "$as_dir" && break
20882 done
20883 test -z "$as_dirs" || eval "mkdir $as_dirs"
20884 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
20885
20886
20887 } # as_fn_mkdir_p
20888 if mkdir -p . 2>/dev/null; then
20889 as_mkdir_p='mkdir -p "$as_dir"'
20890 else
20891 test -d ./-p && rmdir ./-p
20892 as_mkdir_p=false
20893 fi
20894
20895
20896 # as_fn_executable_p FILE
20897 # -----------------------
20898 # Test if FILE is an executable regular file.
20899 as_fn_executable_p ()
20900 {
20901 test -f "$1" && test -x "$1"
20902 } # as_fn_executable_p
20903 as_test_x='test -x'
20904 as_executable_p=as_fn_executable_p
20905
20906 # Sed expression to map a string onto a valid CPP name.
20907 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20908
20909 # Sed expression to map a string onto a valid variable name.
20910 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20911
20912
20913 exec 6>&1
20914 ## ----------------------------------- ##
20915 ## Main body of $CONFIG_STATUS script. ##
20916 ## ----------------------------------- ##
20917 _ASEOF
20918 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
20919
20920 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20921 # Save the log message, to keep $0 and so on meaningful, and to
20922 # report actual input values of CONFIG_FILES etc. instead of their
20923 # values after options handling.
20924 ac_log="
20925 This file was extended by xf86-video-r128 $as_me 6.12.1, which was
20926 generated by GNU Autoconf 2.71. Invocation command line was
20927
20928 CONFIG_FILES = $CONFIG_FILES
20929 CONFIG_HEADERS = $CONFIG_HEADERS
20930 CONFIG_LINKS = $CONFIG_LINKS
20931 CONFIG_COMMANDS = $CONFIG_COMMANDS
20932 $ $0 $@
20933
20934 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20935 "
20936
20937 _ACEOF
20938
20939 case $ac_config_files in *"
20940 "*) set x $ac_config_files; shift; ac_config_files=$*;;
20941 esac
20942
20943 case $ac_config_headers in *"
20944 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
20945 esac
20946
20947
20948 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20949 # Files that config.status was made for.
20950 config_files="$ac_config_files"
20951 config_headers="$ac_config_headers"
20952 config_commands="$ac_config_commands"
20953
20954 _ACEOF
20955
20956 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20957 ac_cs_usage="\
20958 \`$as_me' instantiates files and other configuration actions
20959 from templates according to the current configuration. Unless the files
20960 and actions are specified as TAGs, all are instantiated by default.
20961
20962 Usage: $0 [OPTION]... [TAG]...
20963
20964 -h, --help print this help, then exit
20965 -V, --version print version number and configuration settings, then exit
20966 --config print configuration, then exit
20967 -q, --quiet, --silent
20968 do not print progress messages
20969 -d, --debug don't remove temporary files
20970 --recheck update $as_me by reconfiguring in the same conditions
20971 --file=FILE[:TEMPLATE]
20972 instantiate the configuration file FILE
20973 --header=FILE[:TEMPLATE]
20974 instantiate the configuration header FILE
20975
20976 Configuration files:
20977 $config_files
20978
20979 Configuration headers:
20980 $config_headers
20981
20982 Configuration commands:
20983 $config_commands
20984
20985 Report bugs to <https://gitlab.freedesktop.org/xorg/driver/xf86-video-r128/-/issues>."
20986
20987 _ACEOF
20988 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
20989 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
20990 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20991 ac_cs_config='$ac_cs_config_escaped'
20992 ac_cs_version="\\
20993 xf86-video-r128 config.status 6.12.1
20994 configured by $0, generated by GNU Autoconf 2.71,
20995 with options \\"\$ac_cs_config\\"
20996
20997 Copyright (C) 2021 Free Software Foundation, Inc.
20998 This config.status script is free software; the Free Software Foundation
20999 gives unlimited permission to copy, distribute and modify it."
21000
21001 ac_pwd='$ac_pwd'
21002 srcdir='$srcdir'
21003 INSTALL='$INSTALL'
21004 MKDIR_P='$MKDIR_P'
21005 AWK='$AWK'
21006 test -n "\$AWK" || AWK=awk
21007 _ACEOF
21008
21009 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21010 # The default lists apply if the user does not specify any file.
21011 ac_need_defaults=:
21012 while test $# != 0
21013 do
21014 case $1 in
21015 --*=?*)
21016 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21017 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21018 ac_shift=:
21019 ;;
21020 --*=)
21021 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21022 ac_optarg=
21023 ac_shift=:
21024 ;;
21025 *)
21026 ac_option=$1
21027 ac_optarg=$2
21028 ac_shift=shift
21029 ;;
21030 esac
21031
21032 case $ac_option in
21033 # Handling of the options.
21034 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21035 ac_cs_recheck=: ;;
21036 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21037 printf "%s\n" "$ac_cs_version"; exit ;;
21038 --config | --confi | --conf | --con | --co | --c )
21039 printf "%s\n" "$ac_cs_config"; exit ;;
21040 --debug | --debu | --deb | --de | --d | -d )
21041 debug=: ;;
21042 --file | --fil | --fi | --f )
21043 $ac_shift
21044 case $ac_optarg in
21045 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21046 '') as_fn_error $? "missing file argument" ;;
21047 esac
21048 as_fn_append CONFIG_FILES " '$ac_optarg'"
21049 ac_need_defaults=false;;
21050 --header | --heade | --head | --hea )
21051 $ac_shift
21052 case $ac_optarg in
21053 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21054 esac
21055 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
21056 ac_need_defaults=false;;
21057 --he | --h)
21058 # Conflict between --help and --header
21059 as_fn_error $? "ambiguous option: \`$1'
21060 Try \`$0 --help' for more information.";;
21061 --help | --hel | -h )
21062 printf "%s\n" "$ac_cs_usage"; exit ;;
21063 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21064 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21065 ac_cs_silent=: ;;
21066
21067 # This is an error.
21068 -*) as_fn_error $? "unrecognized option: \`$1'
21069 Try \`$0 --help' for more information." ;;
21070
21071 *) as_fn_append ac_config_targets " $1"
21072 ac_need_defaults=false ;;
21073
21074 esac
21075 shift
21076 done
21077
21078 ac_configure_extra_args=
21079
21080 if $ac_cs_silent; then
21081 exec 6>/dev/null
21082 ac_configure_extra_args="$ac_configure_extra_args --silent"
21083 fi
21084
21085 _ACEOF
21086 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21087 if \$ac_cs_recheck; then
21088 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21089 shift
21090 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
21091 CONFIG_SHELL='$SHELL'
21092 export CONFIG_SHELL
21093 exec "\$@"
21094 fi
21095
21096 _ACEOF
21097 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21098 exec 5>>config.log
21099 {
21100 echo
21101 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21102 ## Running $as_me. ##
21103 _ASBOX
21104 printf "%s\n" "$ac_log"
21105 } >&5
21106
21107 _ACEOF
21108 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21109 #
21110 # INIT-COMMANDS
21111 #
21112 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
21113
21114
21115 # The HP-UX ksh and POSIX shell print the target directory to stdout
21116 # if CDPATH is set.
21117 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
21118
21119 sed_quote_subst='$sed_quote_subst'
21120 double_quote_subst='$double_quote_subst'
21121 delay_variable_subst='$delay_variable_subst'
21122 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
21123 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
21124 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
21125 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
21126 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
21127 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
21128 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
21129 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
21130 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
21131 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
21132 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
21133 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
21134 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
21135 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
21136 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
21137 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
21138 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
21139 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
21140 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
21141 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
21142 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
21143 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
21144 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
21145 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
21146 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
21147 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
21148 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
21149 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
21150 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
21151 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
21152 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
21153 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
21154 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
21155 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
21156 FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
21157 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
21158 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
21159 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
21160 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
21161 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
21162 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
21163 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
21164 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
21165 lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
21166 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
21167 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
21168 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
21169 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
21170 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
21171 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
21172 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
21173 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
21174 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
21175 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
21176 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
21177 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
21178 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
21179 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
21180 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
21181 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
21182 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"`'
21183 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
21184 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
21185 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
21186 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
21187 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
21188 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
21189 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
21190 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
21191 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
21192 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
21193 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
21194 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
21195 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
21196 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
21197 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
21198 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
21199 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
21200 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
21201 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
21202 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
21203 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
21204 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
21205 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
21206 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
21207 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
21208 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
21209 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
21210 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
21211 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
21212 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
21213 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
21214 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
21215 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
21216 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
21217 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
21218 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
21219 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
21220 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
21221 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
21222 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
21223 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
21224 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
21225 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
21226 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
21227 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
21228 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
21229 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
21230 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
21231 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
21232 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
21233 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
21234 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
21235 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
21236 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
21237 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
21238 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
21239 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
21240 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
21241 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
21242 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
21243 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
21244 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
21245 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
21246 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
21247 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
21248 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
21249 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
21250 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
21251 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
21252 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
21253 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
21254 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
21255 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
21256 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
21257 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
21258 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
21259
21260 LTCC='$LTCC'
21261 LTCFLAGS='$LTCFLAGS'
21262 compiler='$compiler_DEFAULT'
21263
21264 # A function that is used when there is no print builtin or printf.
21265 func_fallback_echo ()
21266 {
21267 eval 'cat <<_LTECHO_EOF
21268 \$1
21269 _LTECHO_EOF'
21270 }
21271
21272 # Quote evaled strings.
21273 for var in SHELL \
21274 ECHO \
21275 PATH_SEPARATOR \
21276 SED \
21277 GREP \
21278 EGREP \
21279 FGREP \
21280 LD \
21281 NM \
21282 LN_S \
21283 lt_SP2NL \
21284 lt_NL2SP \
21285 reload_flag \
21286 FILECMD \
21287 OBJDUMP \
21288 deplibs_check_method \
21289 file_magic_cmd \
21290 file_magic_glob \
21291 want_nocaseglob \
21292 DLLTOOL \
21293 sharedlib_from_linklib_cmd \
21294 AR \
21295 archiver_list_spec \
21296 STRIP \
21297 RANLIB \
21298 CC \
21299 CFLAGS \
21300 compiler \
21301 lt_cv_sys_global_symbol_pipe \
21302 lt_cv_sys_global_symbol_to_cdecl \
21303 lt_cv_sys_global_symbol_to_import \
21304 lt_cv_sys_global_symbol_to_c_name_address \
21305 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
21306 lt_cv_nm_interface \
21307 nm_file_list_spec \
21308 lt_cv_truncate_bin \
21309 lt_prog_compiler_no_builtin_flag \
21310 lt_prog_compiler_pic \
21311 lt_prog_compiler_wl \
21312 lt_prog_compiler_static \
21313 lt_cv_prog_compiler_c_o \
21314 need_locks \
21315 MANIFEST_TOOL \
21316 DSYMUTIL \
21317 NMEDIT \
21318 LIPO \
21319 OTOOL \
21320 OTOOL64 \
21321 shrext_cmds \
21322 export_dynamic_flag_spec \
21323 whole_archive_flag_spec \
21324 compiler_needs_object \
21325 with_gnu_ld \
21326 allow_undefined_flag \
21327 no_undefined_flag \
21328 hardcode_libdir_flag_spec \
21329 hardcode_libdir_separator \
21330 exclude_expsyms \
21331 include_expsyms \
21332 file_list_spec \
21333 variables_saved_for_relink \
21334 libname_spec \
21335 library_names_spec \
21336 soname_spec \
21337 install_override_mode \
21338 finish_eval \
21339 old_striplib \
21340 striplib; do
21341 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
21342 *[\\\\\\\`\\"\\\$]*)
21343 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
21344 ;;
21345 *)
21346 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21347 ;;
21348 esac
21349 done
21350
21351 # Double-quote double-evaled strings.
21352 for var in reload_cmds \
21353 old_postinstall_cmds \
21354 old_postuninstall_cmds \
21355 old_archive_cmds \
21356 extract_expsyms_cmds \
21357 old_archive_from_new_cmds \
21358 old_archive_from_expsyms_cmds \
21359 archive_cmds \
21360 archive_expsym_cmds \
21361 module_cmds \
21362 module_expsym_cmds \
21363 export_symbols_cmds \
21364 prelink_cmds \
21365 postlink_cmds \
21366 postinstall_cmds \
21367 postuninstall_cmds \
21368 finish_cmds \
21369 sys_lib_search_path_spec \
21370 configure_time_dlsearch_path \
21371 configure_time_lt_sys_library_path; do
21372 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
21373 *[\\\\\\\`\\"\\\$]*)
21374 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
21375 ;;
21376 *)
21377 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21378 ;;
21379 esac
21380 done
21381
21382 ac_aux_dir='$ac_aux_dir'
21383
21384 # See if we are running on zsh, and set the options that allow our
21385 # commands through without removal of \ escapes INIT.
21386 if test -n "\${ZSH_VERSION+set}"; then
21387 setopt NO_GLOB_SUBST
21388 fi
21389
21390
21391 PACKAGE='$PACKAGE'
21392 VERSION='$VERSION'
21393 RM='$RM'
21394 ofile='$ofile'
21395
21396
21397
21398
21399 _ACEOF
21400
21401 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21402
21403 # Handling of arguments.
21404 for ac_config_target in $ac_config_targets
21405 do
21406 case $ac_config_target in
21407 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
21408 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21409 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
21410 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21411 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
21412 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
21413
21414 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
21415 esac
21416 done
21417
21418
21419 # If the user did not use the arguments to specify the items to instantiate,
21420 # then the envvar interface is used. Set only those that are not.
21421 # We use the long form for the default assignment because of an extremely
21422 # bizarre bug on SunOS 4.1.3.
21423 if $ac_need_defaults; then
21424 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
21425 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
21426 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
21427 fi
21428
21429 # Have a temporary directory for convenience. Make it in the build tree
21430 # simply because there is no reason against having it here, and in addition,
21431 # creating and moving files from /tmp can sometimes cause problems.
21432 # Hook for its removal unless debugging.
21433 # Note that there is a small window in which the directory will not be cleaned:
21434 # after its creation but before its name has been assigned to `$tmp'.
21435 $debug ||
21436 {
21437 tmp= ac_tmp=
21438 trap 'exit_status=$?
21439 : "${ac_tmp:=$tmp}"
21440 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
21441 ' 0
21442 trap 'as_fn_exit 1' 1 2 13 15
21443 }
21444 # Create a (secure) tmp directory for tmp files.
21445
21446 {
21447 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21448 test -d "$tmp"
21449 } ||
21450 {
21451 tmp=./conf$$-$RANDOM
21452 (umask 077 && mkdir "$tmp")
21453 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
21454 ac_tmp=$tmp
21455
21456 # Set up the scripts for CONFIG_FILES section.
21457 # No need to generate them if there are no CONFIG_FILES.
21458 # This happens for instance with `./config.status config.h'.
21459 if test -n "$CONFIG_FILES"; then
21460
21461
21462 ac_cr=`echo X | tr X '\015'`
21463 # On cygwin, bash can eat \r inside `` if the user requested igncr.
21464 # But we know of no other shell where ac_cr would be empty at this
21465 # point, so we can use a bashism as a fallback.
21466 if test "x$ac_cr" = x; then
21467 eval ac_cr=\$\'\\r\'
21468 fi
21469 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
21470 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
21471 ac_cs_awk_cr='\\r'
21472 else
21473 ac_cs_awk_cr=$ac_cr
21474 fi
21475
21476 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
21477 _ACEOF
21478
21479
21480 {
21481 echo "cat >conf$$subs.awk <<_ACEOF" &&
21482 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
21483 echo "_ACEOF"
21484 } >conf$$subs.sh ||
21485 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21486 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
21487 ac_delim='%!_!# '
21488 for ac_last_try in false false false false false :; do
21489 . ./conf$$subs.sh ||
21490 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21491
21492 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
21493 if test $ac_delim_n = $ac_delim_num; then
21494 break
21495 elif $ac_last_try; then
21496 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21497 else
21498 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21499 fi
21500 done
21501 rm -f conf$$subs.sh
21502
21503 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21504 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
21505 _ACEOF
21506 sed -n '
21507 h
21508 s/^/S["/; s/!.*/"]=/
21509 p
21510 g
21511 s/^[^!]*!//
21512 :repl
21513 t repl
21514 s/'"$ac_delim"'$//
21515 t delim
21516 :nl
21517 h
21518 s/\(.\{148\}\)..*/\1/
21519 t more1
21520 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
21521 p
21522 n
21523 b repl
21524 :more1
21525 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21526 p
21527 g
21528 s/.\{148\}//
21529 t nl
21530 :delim
21531 h
21532 s/\(.\{148\}\)..*/\1/
21533 t more2
21534 s/["\\]/\\&/g; s/^/"/; s/$/"/
21535 p
21536 b
21537 :more2
21538 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21539 p
21540 g
21541 s/.\{148\}//
21542 t delim
21543 ' <conf$$subs.awk | sed '
21544 /^[^""]/{
21545 N
21546 s/\n//
21547 }
21548 ' >>$CONFIG_STATUS || ac_write_fail=1
21549 rm -f conf$$subs.awk
21550 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21551 _ACAWK
21552 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
21553 for (key in S) S_is_set[key] = 1
21554 FS = ""
21555
21556 }
21557 {
21558 line = $ 0
21559 nfields = split(line, field, "@")
21560 substed = 0
21561 len = length(field[1])
21562 for (i = 2; i < nfields; i++) {
21563 key = field[i]
21564 keylen = length(key)
21565 if (S_is_set[key]) {
21566 value = S[key]
21567 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
21568 len += length(value) + length(field[++i])
21569 substed = 1
21570 } else
21571 len += 1 + keylen
21572 }
21573
21574 print line
21575 }
21576
21577 _ACAWK
21578 _ACEOF
21579 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21580 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
21581 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
21582 else
21583 cat
21584 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
21585 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
21586 _ACEOF
21587
21588 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
21589 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
21590 # trailing colons and then remove the whole line if VPATH becomes empty
21591 # (actually we leave an empty line to preserve line numbers).
21592 if test "x$srcdir" = x.; then
21593 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
21594 h
21595 s///
21596 s/^/:/
21597 s/[ ]*$/:/
21598 s/:\$(srcdir):/:/g
21599 s/:\${srcdir}:/:/g
21600 s/:@srcdir@:/:/g
21601 s/^:*//
21602 s/:*$//
21603 x
21604 s/\(=[ ]*\).*/\1/
21605 G
21606 s/\n//
21607 s/^[^=]*=[ ]*$//
21608 }'
21609 fi
21610
21611 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21612 fi # test -n "$CONFIG_FILES"
21613
21614 # Set up the scripts for CONFIG_HEADERS section.
21615 # No need to generate them if there are no CONFIG_HEADERS.
21616 # This happens for instance with `./config.status Makefile'.
21617 if test -n "$CONFIG_HEADERS"; then
21618 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
21619 BEGIN {
21620 _ACEOF
21621
21622 # Transform confdefs.h into an awk script `defines.awk', embedded as
21623 # here-document in config.status, that substitutes the proper values into
21624 # config.h.in to produce config.h.
21625
21626 # Create a delimiter string that does not exist in confdefs.h, to ease
21627 # handling of long lines.
21628 ac_delim='%!_!# '
21629 for ac_last_try in false false :; do
21630 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
21631 if test -z "$ac_tt"; then
21632 break
21633 elif $ac_last_try; then
21634 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
21635 else
21636 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21637 fi
21638 done
21639
21640 # For the awk script, D is an array of macro values keyed by name,
21641 # likewise P contains macro parameters if any. Preserve backslash
21642 # newline sequences.
21643
21644 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21645 sed -n '
21646 s/.\{148\}/&'"$ac_delim"'/g
21647 t rset
21648 :rset
21649 s/^[ ]*#[ ]*define[ ][ ]*/ /
21650 t def
21651 d
21652 :def
21653 s/\\$//
21654 t bsnl
21655 s/["\\]/\\&/g
21656 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
21657 D["\1"]=" \3"/p
21658 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
21659 d
21660 :bsnl
21661 s/["\\]/\\&/g
21662 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
21663 D["\1"]=" \3\\\\\\n"\\/p
21664 t cont
21665 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
21666 t cont
21667 d
21668 :cont
21669 n
21670 s/.\{148\}/&'"$ac_delim"'/g
21671 t clear
21672 :clear
21673 s/\\$//
21674 t bsnlc
21675 s/["\\]/\\&/g; s/^/"/; s/$/"/p
21676 d
21677 :bsnlc
21678 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
21679 b cont
21680 ' <confdefs.h | sed '
21681 s/'"$ac_delim"'/"\\\
21682 "/g' >>$CONFIG_STATUS || ac_write_fail=1
21683
21684 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21685 for (key in D) D_is_set[key] = 1
21686 FS = ""
21687 }
21688 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
21689 line = \$ 0
21690 split(line, arg, " ")
21691 if (arg[1] == "#") {
21692 defundef = arg[2]
21693 mac1 = arg[3]
21694 } else {
21695 defundef = substr(arg[1], 2)
21696 mac1 = arg[2]
21697 }
21698 split(mac1, mac2, "(") #)
21699 macro = mac2[1]
21700 prefix = substr(line, 1, index(line, defundef) - 1)
21701 if (D_is_set[macro]) {
21702 # Preserve the white space surrounding the "#".
21703 print prefix "define", macro P[macro] D[macro]
21704 next
21705 } else {
21706 # Replace #undef with comments. This is necessary, for example,
21707 # in the case of _POSIX_SOURCE, which is predefined and required
21708 # on some systems where configure will not decide to define it.
21709 if (defundef == "undef") {
21710 print "/*", prefix defundef, macro, "*/"
21711 next
21712 }
21713 }
21714 }
21715 { print }
21716 _ACAWK
21717 _ACEOF
21718 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21719 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
21720 fi # test -n "$CONFIG_HEADERS"
21721
21722
21723 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
21724 shift
21725 for ac_tag
21726 do
21727 case $ac_tag in
21728 :[FHLC]) ac_mode=$ac_tag; continue;;
21729 esac
21730 case $ac_mode$ac_tag in
21731 :[FHL]*:*);;
21732 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
21733 :[FH]-) ac_tag=-:-;;
21734 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21735 esac
21736 ac_save_IFS=$IFS
21737 IFS=:
21738 set x $ac_tag
21739 IFS=$ac_save_IFS
21740 shift
21741 ac_file=$1
21742 shift
21743
21744 case $ac_mode in
21745 :L) ac_source=$1;;
21746 :[FH])
21747 ac_file_inputs=
21748 for ac_f
21749 do
21750 case $ac_f in
21751 -) ac_f="$ac_tmp/stdin";;
21752 *) # Look for the file first in the build tree, then in the source tree
21753 # (if the path is not absolute). The absolute path cannot be DOS-style,
21754 # because $ac_f cannot contain `:'.
21755 test -f "$ac_f" ||
21756 case $ac_f in
21757 [\\/$]*) false;;
21758 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21759 esac ||
21760 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
21761 esac
21762 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
21763 as_fn_append ac_file_inputs " '$ac_f'"
21764 done
21765
21766 # Let's still pretend it is `configure' which instantiates (i.e., don't
21767 # use $as_me), people would be surprised to read:
21768 # /* config.h. Generated by config.status. */
21769 configure_input='Generated from '`
21770 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
21771 `' by configure.'
21772 if test x"$ac_file" != x-; then
21773 configure_input="$ac_file. $configure_input"
21774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
21775 printf "%s\n" "$as_me: creating $ac_file" >&6;}
21776 fi
21777 # Neutralize special characters interpreted by sed in replacement strings.
21778 case $configure_input in #(
21779 *\&* | *\|* | *\\* )
21780 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
21781 sed 's/[\\\\&|]/\\\\&/g'`;; #(
21782 *) ac_sed_conf_input=$configure_input;;
21783 esac
21784
21785 case $ac_tag in
21786 *:-:* | *:-) cat >"$ac_tmp/stdin" \
21787 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
21788 esac
21789 ;;
21790 esac
21791
21792 ac_dir=`$as_dirname -- "$ac_file" ||
21793 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21794 X"$ac_file" : 'X\(//\)[^/]' \| \
21795 X"$ac_file" : 'X\(//\)$' \| \
21796 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21797 printf "%s\n" X"$ac_file" |
21798 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21799 s//\1/
21800 q
21801 }
21802 /^X\(\/\/\)[^/].*/{
21803 s//\1/
21804 q
21805 }
21806 /^X\(\/\/\)$/{
21807 s//\1/
21808 q
21809 }
21810 /^X\(\/\).*/{
21811 s//\1/
21812 q
21813 }
21814 s/.*/./; q'`
21815 as_dir="$ac_dir"; as_fn_mkdir_p
21816 ac_builddir=.
21817
21818 case "$ac_dir" in
21819 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21820 *)
21821 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
21822 # A ".." for each directory in $ac_dir_suffix.
21823 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21824 case $ac_top_builddir_sub in
21825 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21826 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21827 esac ;;
21828 esac
21829 ac_abs_top_builddir=$ac_pwd
21830 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21831 # for backward compatibility:
21832 ac_top_builddir=$ac_top_build_prefix
21833
21834 case $srcdir in
21835 .) # We are building in place.
21836 ac_srcdir=.
21837 ac_top_srcdir=$ac_top_builddir_sub
21838 ac_abs_top_srcdir=$ac_pwd ;;
21839 [\\/]* | ?:[\\/]* ) # Absolute name.
21840 ac_srcdir=$srcdir$ac_dir_suffix;
21841 ac_top_srcdir=$srcdir
21842 ac_abs_top_srcdir=$srcdir ;;
21843 *) # Relative name.
21844 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21845 ac_top_srcdir=$ac_top_build_prefix$srcdir
21846 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21847 esac
21848 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21849
21850
21851 case $ac_mode in
21852 :F)
21853 #
21854 # CONFIG_FILE
21855 #
21856
21857 case $INSTALL in
21858 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21859 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21860 esac
21861 ac_MKDIR_P=$MKDIR_P
21862 case $MKDIR_P in
21863 [\\/$]* | ?:[\\/]* ) ;;
21864 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
21865 esac
21866 _ACEOF
21867
21868 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21869 # If the template does not know about datarootdir, expand it.
21870 # FIXME: This hack should be removed a few years after 2.60.
21871 ac_datarootdir_hack=; ac_datarootdir_seen=
21872 ac_sed_dataroot='
21873 /datarootdir/ {
21874 p
21875 q
21876 }
21877 /@datadir@/p
21878 /@docdir@/p
21879 /@infodir@/p
21880 /@localedir@/p
21881 /@mandir@/p'
21882 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
21883 *datarootdir*) ac_datarootdir_seen=yes;;
21884 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21886 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21887 _ACEOF
21888 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21889 ac_datarootdir_hack='
21890 s&@datadir@&$datadir&g
21891 s&@docdir@&$docdir&g
21892 s&@infodir@&$infodir&g
21893 s&@localedir@&$localedir&g
21894 s&@mandir@&$mandir&g
21895 s&\\\${datarootdir}&$datarootdir&g' ;;
21896 esac
21897 _ACEOF
21898
21899 # Neutralize VPATH when `$srcdir' = `.'.
21900 # Shell code in configure.ac might set extrasub.
21901 # FIXME: do we really want to maintain this feature?
21902 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21903 ac_sed_extra="$ac_vpsub
21904 $extrasub
21905 _ACEOF
21906 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21907 :t
21908 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21909 s|@configure_input@|$ac_sed_conf_input|;t t
21910 s&@top_builddir@&$ac_top_builddir_sub&;t t
21911 s&@top_build_prefix@&$ac_top_build_prefix&;t t
21912 s&@srcdir@&$ac_srcdir&;t t
21913 s&@abs_srcdir@&$ac_abs_srcdir&;t t
21914 s&@top_srcdir@&$ac_top_srcdir&;t t
21915 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21916 s&@builddir@&$ac_builddir&;t t
21917 s&@abs_builddir@&$ac_abs_builddir&;t t
21918 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21919 s&@INSTALL@&$ac_INSTALL&;t t
21920 s&@MKDIR_P@&$ac_MKDIR_P&;t t
21921 $ac_datarootdir_hack
21922 "
21923 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
21924 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21925
21926 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21927 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
21928 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
21929 "$ac_tmp/out"`; test -z "$ac_out"; } &&
21930 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21931 which seems to be undefined. Please make sure it is defined" >&5
21932 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21933 which seems to be undefined. Please make sure it is defined" >&2;}
21934
21935 rm -f "$ac_tmp/stdin"
21936 case $ac_file in
21937 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
21938 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
21939 esac \
21940 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21941 ;;
21942 :H)
21943 #
21944 # CONFIG_HEADER
21945 #
21946 if test x"$ac_file" != x-; then
21947 {
21948 printf "%s\n" "/* $configure_input */" >&1 \
21949 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
21950 } >"$ac_tmp/config.h" \
21951 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21952 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
21953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
21954 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
21955 else
21956 rm -f "$ac_file"
21957 mv "$ac_tmp/config.h" "$ac_file" \
21958 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21959 fi
21960 else
21961 printf "%s\n" "/* $configure_input */" >&1 \
21962 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
21963 || as_fn_error $? "could not create -" "$LINENO" 5
21964 fi
21965 # Compute "$ac_file"'s index in $config_headers.
21966 _am_arg="$ac_file"
21967 _am_stamp_count=1
21968 for _am_header in $config_headers :; do
21969 case $_am_header in
21970 $_am_arg | $_am_arg:* )
21971 break ;;
21972 * )
21973 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21974 esac
21975 done
21976 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
21977 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21978 X"$_am_arg" : 'X\(//\)[^/]' \| \
21979 X"$_am_arg" : 'X\(//\)$' \| \
21980 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
21981 printf "%s\n" X"$_am_arg" |
21982 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21983 s//\1/
21984 q
21985 }
21986 /^X\(\/\/\)[^/].*/{
21987 s//\1/
21988 q
21989 }
21990 /^X\(\/\/\)$/{
21991 s//\1/
21992 q
21993 }
21994 /^X\(\/\).*/{
21995 s//\1/
21996 q
21997 }
21998 s/.*/./; q'`/stamp-h$_am_stamp_count
21999 ;;
22000
22001 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
22002 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
22003 ;;
22004 esac
22005
22006
22007 case $ac_file$ac_mode in
22008 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
22009 # Older Autoconf quotes --file arguments for eval, but not when files
22010 # are listed without --file. Let's play safe and only enable the eval
22011 # if we detect the quoting.
22012 # TODO: see whether this extra hack can be removed once we start
22013 # requiring Autoconf 2.70 or later.
22014 case $CONFIG_FILES in #(
22015 *\'*) :
22016 eval set x "$CONFIG_FILES" ;; #(
22017 *) :
22018 set x $CONFIG_FILES ;; #(
22019 *) :
22020 ;;
22021 esac
22022 shift
22023 # Used to flag and report bootstrapping failures.
22024 am_rc=0
22025 for am_mf
22026 do
22027 # Strip MF so we end up with the name of the file.
22028 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
22029 # Check whether this is an Automake generated Makefile which includes
22030 # dependency-tracking related rules and includes.
22031 # Grep'ing the whole file directly is not great: AIX grep has a line
22032 # limit of 2048, but all sed's we know have understand at least 4000.
22033 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
22034 || continue
22035 am_dirpart=`$as_dirname -- "$am_mf" ||
22036 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22037 X"$am_mf" : 'X\(//\)[^/]' \| \
22038 X"$am_mf" : 'X\(//\)$' \| \
22039 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
22040 printf "%s\n" X"$am_mf" |
22041 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22042 s//\1/
22043 q
22044 }
22045 /^X\(\/\/\)[^/].*/{
22046 s//\1/
22047 q
22048 }
22049 /^X\(\/\/\)$/{
22050 s//\1/
22051 q
22052 }
22053 /^X\(\/\).*/{
22054 s//\1/
22055 q
22056 }
22057 s/.*/./; q'`
22058 am_filepart=`$as_basename -- "$am_mf" ||
22059 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
22060 X"$am_mf" : 'X\(//\)$' \| \
22061 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
22062 printf "%s\n" X/"$am_mf" |
22063 sed '/^.*\/\([^/][^/]*\)\/*$/{
22064 s//\1/
22065 q
22066 }
22067 /^X\/\(\/\/\)$/{
22068 s//\1/
22069 q
22070 }
22071 /^X\/\(\/\).*/{
22072 s//\1/
22073 q
22074 }
22075 s/.*/./; q'`
22076 { echo "$as_me:$LINENO: cd "$am_dirpart" \
22077 && sed -e '/# am--include-marker/d' "$am_filepart" \
22078 | $MAKE -f - am--depfiles" >&5
22079 (cd "$am_dirpart" \
22080 && sed -e '/# am--include-marker/d' "$am_filepart" \
22081 | $MAKE -f - am--depfiles) >&5 2>&5
22082 ac_status=$?
22083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22084 (exit $ac_status); } || am_rc=$?
22085 done
22086 if test $am_rc -ne 0; then
22087 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22088 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
22089 as_fn_error $? "Something went wrong bootstrapping makefile fragments
22090 for automatic dependency tracking. If GNU make was not used, consider
22091 re-running the configure script with MAKE=\"gmake\" (or whatever is
22092 necessary). You can also try re-running configure with the
22093 '--disable-dependency-tracking' option to at least be able to build
22094 the package (albeit without support for automatic dependency tracking).
22095 See \`config.log' for more details" "$LINENO" 5; }
22096 fi
22097 { am_dirpart=; unset am_dirpart;}
22098 { am_filepart=; unset am_filepart;}
22099 { am_mf=; unset am_mf;}
22100 { am_rc=; unset am_rc;}
22101 rm -f conftest-deps.mk
22102 }
22103 ;;
22104 "libtool":C)
22105
22106 # See if we are running on zsh, and set the options that allow our
22107 # commands through without removal of \ escapes.
22108 if test -n "${ZSH_VERSION+set}"; then
22109 setopt NO_GLOB_SUBST
22110 fi
22111
22112 cfgfile=${ofile}T
22113 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
22114 $RM "$cfgfile"
22115
22116 cat <<_LT_EOF >> "$cfgfile"
22117 #! $SHELL
22118 # Generated automatically by $as_me ($PACKAGE) $VERSION
22119 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
22120 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
22121
22122 # Provide generalized library-building support services.
22123 # Written by Gordon Matzigkeit, 1996
22124
22125 # Copyright (C) 2014 Free Software Foundation, Inc.
22126 # This is free software; see the source for copying conditions. There is NO
22127 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
22128
22129 # GNU Libtool is free software; you can redistribute it and/or modify
22130 # it under the terms of the GNU General Public License as published by
22131 # the Free Software Foundation; either version 2 of of the License, or
22132 # (at your option) any later version.
22133 #
22134 # As a special exception to the GNU General Public License, if you
22135 # distribute this file as part of a program or library that is built
22136 # using GNU Libtool, you may include this file under the same
22137 # distribution terms that you use for the rest of that program.
22138 #
22139 # GNU Libtool is distributed in the hope that it will be useful, but
22140 # WITHOUT ANY WARRANTY; without even the implied warranty of
22141 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22142 # GNU General Public License for more details.
22143 #
22144 # You should have received a copy of the GNU General Public License
22145 # along with this program. If not, see <http://www.gnu.org/licenses/>.
22146
22147
22148 # The names of the tagged configurations supported by this script.
22149 available_tags=''
22150
22151 # Configured defaults for sys_lib_dlsearch_path munging.
22152 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
22153
22154 # ### BEGIN LIBTOOL CONFIG
22155
22156 # Whether or not to build static libraries.
22157 build_old_libs=$enable_static
22158
22159 # Which release of libtool.m4 was used?
22160 macro_version=$macro_version
22161 macro_revision=$macro_revision
22162
22163 # Whether or not to build shared libraries.
22164 build_libtool_libs=$enable_shared
22165
22166 # What type of objects to build.
22167 pic_mode=$pic_mode
22168
22169 # Whether or not to optimize for fast installation.
22170 fast_install=$enable_fast_install
22171
22172 # Shared archive member basename,for filename based shared library versioning on AIX.
22173 shared_archive_member_spec=$shared_archive_member_spec
22174
22175 # Shell to use when invoking shell scripts.
22176 SHELL=$lt_SHELL
22177
22178 # An echo program that protects backslashes.
22179 ECHO=$lt_ECHO
22180
22181 # The PATH separator for the build system.
22182 PATH_SEPARATOR=$lt_PATH_SEPARATOR
22183
22184 # The host system.
22185 host_alias=$host_alias
22186 host=$host
22187 host_os=$host_os
22188
22189 # The build system.
22190 build_alias=$build_alias
22191 build=$build
22192 build_os=$build_os
22193
22194 # A sed program that does not truncate output.
22195 SED=$lt_SED
22196
22197 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
22198 Xsed="\$SED -e 1s/^X//"
22199
22200 # A grep program that handles long lines.
22201 GREP=$lt_GREP
22202
22203 # An ERE matcher.
22204 EGREP=$lt_EGREP
22205
22206 # A literal string matcher.
22207 FGREP=$lt_FGREP
22208
22209 # A BSD- or MS-compatible name lister.
22210 NM=$lt_NM
22211
22212 # Whether we need soft or hard links.
22213 LN_S=$lt_LN_S
22214
22215 # What is the maximum length of a command?
22216 max_cmd_len=$max_cmd_len
22217
22218 # Object file suffix (normally "o").
22219 objext=$ac_objext
22220
22221 # Executable file suffix (normally "").
22222 exeext=$exeext
22223
22224 # whether the shell understands "unset".
22225 lt_unset=$lt_unset
22226
22227 # turn spaces into newlines.
22228 SP2NL=$lt_lt_SP2NL
22229
22230 # turn newlines into spaces.
22231 NL2SP=$lt_lt_NL2SP
22232
22233 # convert \$build file names to \$host format.
22234 to_host_file_cmd=$lt_cv_to_host_file_cmd
22235
22236 # convert \$build files to toolchain format.
22237 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
22238
22239 # A file(cmd) program that detects file types.
22240 FILECMD=$lt_FILECMD
22241
22242 # An object symbol dumper.
22243 OBJDUMP=$lt_OBJDUMP
22244
22245 # Method to check whether dependent libraries are shared objects.
22246 deplibs_check_method=$lt_deplibs_check_method
22247
22248 # Command to use when deplibs_check_method = "file_magic".
22249 file_magic_cmd=$lt_file_magic_cmd
22250
22251 # How to find potential files when deplibs_check_method = "file_magic".
22252 file_magic_glob=$lt_file_magic_glob
22253
22254 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
22255 want_nocaseglob=$lt_want_nocaseglob
22256
22257 # DLL creation program.
22258 DLLTOOL=$lt_DLLTOOL
22259
22260 # Command to associate shared and link libraries.
22261 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
22262
22263 # The archiver.
22264 AR=$lt_AR
22265
22266 # Flags to create an archive (by configure).
22267 lt_ar_flags=$lt_ar_flags
22268
22269 # Flags to create an archive.
22270 AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
22271
22272 # How to feed a file listing to the archiver.
22273 archiver_list_spec=$lt_archiver_list_spec
22274
22275 # A symbol stripping program.
22276 STRIP=$lt_STRIP
22277
22278 # Commands used to install an old-style archive.
22279 RANLIB=$lt_RANLIB
22280 old_postinstall_cmds=$lt_old_postinstall_cmds
22281 old_postuninstall_cmds=$lt_old_postuninstall_cmds
22282
22283 # Whether to use a lock for old archive extraction.
22284 lock_old_archive_extraction=$lock_old_archive_extraction
22285
22286 # A C compiler.
22287 LTCC=$lt_CC
22288
22289 # LTCC compiler flags.
22290 LTCFLAGS=$lt_CFLAGS
22291
22292 # Take the output of nm and produce a listing of raw symbols and C names.
22293 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
22294
22295 # Transform the output of nm in a proper C declaration.
22296 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
22297
22298 # Transform the output of nm into a list of symbols to manually relocate.
22299 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
22300
22301 # Transform the output of nm in a C name address pair.
22302 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
22303
22304 # Transform the output of nm in a C name address pair when lib prefix is needed.
22305 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
22306
22307 # The name lister interface.
22308 nm_interface=$lt_lt_cv_nm_interface
22309
22310 # Specify filename containing input files for \$NM.
22311 nm_file_list_spec=$lt_nm_file_list_spec
22312
22313 # The root where to search for dependent libraries,and where our libraries should be installed.
22314 lt_sysroot=$lt_sysroot
22315
22316 # Command to truncate a binary pipe.
22317 lt_truncate_bin=$lt_lt_cv_truncate_bin
22318
22319 # The name of the directory that contains temporary libtool files.
22320 objdir=$objdir
22321
22322 # Used to examine libraries when file_magic_cmd begins with "file".
22323 MAGIC_CMD=$MAGIC_CMD
22324
22325 # Must we lock files when doing compilation?
22326 need_locks=$lt_need_locks
22327
22328 # Manifest tool.
22329 MANIFEST_TOOL=$lt_MANIFEST_TOOL
22330
22331 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
22332 DSYMUTIL=$lt_DSYMUTIL
22333
22334 # Tool to change global to local symbols on Mac OS X.
22335 NMEDIT=$lt_NMEDIT
22336
22337 # Tool to manipulate fat objects and archives on Mac OS X.
22338 LIPO=$lt_LIPO
22339
22340 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
22341 OTOOL=$lt_OTOOL
22342
22343 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
22344 OTOOL64=$lt_OTOOL64
22345
22346 # Old archive suffix (normally "a").
22347 libext=$libext
22348
22349 # Shared library suffix (normally ".so").
22350 shrext_cmds=$lt_shrext_cmds
22351
22352 # The commands to extract the exported symbol list from a shared archive.
22353 extract_expsyms_cmds=$lt_extract_expsyms_cmds
22354
22355 # Variables whose values should be saved in libtool wrapper scripts and
22356 # restored at link time.
22357 variables_saved_for_relink=$lt_variables_saved_for_relink
22358
22359 # Do we need the "lib" prefix for modules?
22360 need_lib_prefix=$need_lib_prefix
22361
22362 # Do we need a version for libraries?
22363 need_version=$need_version
22364
22365 # Library versioning type.
22366 version_type=$version_type
22367
22368 # Shared library runtime path variable.
22369 runpath_var=$runpath_var
22370
22371 # Shared library path variable.
22372 shlibpath_var=$shlibpath_var
22373
22374 # Is shlibpath searched before the hard-coded library search path?
22375 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
22376
22377 # Format of library name prefix.
22378 libname_spec=$lt_libname_spec
22379
22380 # List of archive names. First name is the real one, the rest are links.
22381 # The last name is the one that the linker finds with -lNAME
22382 library_names_spec=$lt_library_names_spec
22383
22384 # The coded name of the library, if different from the real name.
22385 soname_spec=$lt_soname_spec
22386
22387 # Permission mode override for installation of shared libraries.
22388 install_override_mode=$lt_install_override_mode
22389
22390 # Command to use after installation of a shared archive.
22391 postinstall_cmds=$lt_postinstall_cmds
22392
22393 # Command to use after uninstallation of a shared archive.
22394 postuninstall_cmds=$lt_postuninstall_cmds
22395
22396 # Commands used to finish a libtool library installation in a directory.
22397 finish_cmds=$lt_finish_cmds
22398
22399 # As "finish_cmds", except a single script fragment to be evaled but
22400 # not shown.
22401 finish_eval=$lt_finish_eval
22402
22403 # Whether we should hardcode library paths into libraries.
22404 hardcode_into_libs=$hardcode_into_libs
22405
22406 # Compile-time system search path for libraries.
22407 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
22408
22409 # Detected run-time system search path for libraries.
22410 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
22411
22412 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
22413 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
22414
22415 # Whether dlopen is supported.
22416 dlopen_support=$enable_dlopen
22417
22418 # Whether dlopen of programs is supported.
22419 dlopen_self=$enable_dlopen_self
22420
22421 # Whether dlopen of statically linked programs is supported.
22422 dlopen_self_static=$enable_dlopen_self_static
22423
22424 # Commands to strip libraries.
22425 old_striplib=$lt_old_striplib
22426 striplib=$lt_striplib
22427
22428
22429 # The linker used to build libraries.
22430 LD=$lt_LD
22431
22432 # How to create reloadable object files.
22433 reload_flag=$lt_reload_flag
22434 reload_cmds=$lt_reload_cmds
22435
22436 # Commands used to build an old-style archive.
22437 old_archive_cmds=$lt_old_archive_cmds
22438
22439 # A language specific compiler.
22440 CC=$lt_compiler
22441
22442 # Is the compiler the GNU compiler?
22443 with_gcc=$GCC
22444
22445 # Compiler flag to turn off builtin functions.
22446 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
22447
22448 # Additional compiler flags for building library objects.
22449 pic_flag=$lt_lt_prog_compiler_pic
22450
22451 # How to pass a linker flag through the compiler.
22452 wl=$lt_lt_prog_compiler_wl
22453
22454 # Compiler flag to prevent dynamic linking.
22455 link_static_flag=$lt_lt_prog_compiler_static
22456
22457 # Does compiler simultaneously support -c and -o options?
22458 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
22459
22460 # Whether or not to add -lc for building shared libraries.
22461 build_libtool_need_lc=$archive_cmds_need_lc
22462
22463 # Whether or not to disallow shared libs when runtime libs are static.
22464 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
22465
22466 # Compiler flag to allow reflexive dlopens.
22467 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
22468
22469 # Compiler flag to generate shared objects directly from archives.
22470 whole_archive_flag_spec=$lt_whole_archive_flag_spec
22471
22472 # Whether the compiler copes with passing no objects directly.
22473 compiler_needs_object=$lt_compiler_needs_object
22474
22475 # Create an old-style archive from a shared archive.
22476 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
22477
22478 # Create a temporary old-style archive to link instead of a shared archive.
22479 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
22480
22481 # Commands used to build a shared archive.
22482 archive_cmds=$lt_archive_cmds
22483 archive_expsym_cmds=$lt_archive_expsym_cmds
22484
22485 # Commands used to build a loadable module if different from building
22486 # a shared archive.
22487 module_cmds=$lt_module_cmds
22488 module_expsym_cmds=$lt_module_expsym_cmds
22489
22490 # Whether we are building with GNU ld or not.
22491 with_gnu_ld=$lt_with_gnu_ld
22492
22493 # Flag that allows shared libraries with undefined symbols to be built.
22494 allow_undefined_flag=$lt_allow_undefined_flag
22495
22496 # Flag that enforces no undefined symbols.
22497 no_undefined_flag=$lt_no_undefined_flag
22498
22499 # Flag to hardcode \$libdir into a binary during linking.
22500 # This must work even if \$libdir does not exist
22501 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
22502
22503 # Whether we need a single "-rpath" flag with a separated argument.
22504 hardcode_libdir_separator=$lt_hardcode_libdir_separator
22505
22506 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
22507 # DIR into the resulting binary.
22508 hardcode_direct=$hardcode_direct
22509
22510 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
22511 # DIR into the resulting binary and the resulting library dependency is
22512 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
22513 # library is relocated.
22514 hardcode_direct_absolute=$hardcode_direct_absolute
22515
22516 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22517 # into the resulting binary.
22518 hardcode_minus_L=$hardcode_minus_L
22519
22520 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22521 # into the resulting binary.
22522 hardcode_shlibpath_var=$hardcode_shlibpath_var
22523
22524 # Set to "yes" if building a shared library automatically hardcodes DIR
22525 # into the library and all subsequent libraries and executables linked
22526 # against it.
22527 hardcode_automatic=$hardcode_automatic
22528
22529 # Set to yes if linker adds runtime paths of dependent libraries
22530 # to runtime path list.
22531 inherit_rpath=$inherit_rpath
22532
22533 # Whether libtool must link a program against all its dependency libraries.
22534 link_all_deplibs=$link_all_deplibs
22535
22536 # Set to "yes" if exported symbols are required.
22537 always_export_symbols=$always_export_symbols
22538
22539 # The commands to list exported symbols.
22540 export_symbols_cmds=$lt_export_symbols_cmds
22541
22542 # Symbols that should not be listed in the preloaded symbols.
22543 exclude_expsyms=$lt_exclude_expsyms
22544
22545 # Symbols that must always be exported.
22546 include_expsyms=$lt_include_expsyms
22547
22548 # Commands necessary for linking programs (against libraries) with templates.
22549 prelink_cmds=$lt_prelink_cmds
22550
22551 # Commands necessary for finishing linking programs.
22552 postlink_cmds=$lt_postlink_cmds
22553
22554 # Specify filename containing input files.
22555 file_list_spec=$lt_file_list_spec
22556
22557 # How to hardcode a shared library path into an executable.
22558 hardcode_action=$hardcode_action
22559
22560 # ### END LIBTOOL CONFIG
22561
22562 _LT_EOF
22563
22564 cat <<'_LT_EOF' >> "$cfgfile"
22565
22566 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
22567
22568 # func_munge_path_list VARIABLE PATH
22569 # -----------------------------------
22570 # VARIABLE is name of variable containing _space_ separated list of
22571 # directories to be munged by the contents of PATH, which is string
22572 # having a format:
22573 # "DIR[:DIR]:"
22574 # string "DIR[ DIR]" will be prepended to VARIABLE
22575 # ":DIR[:DIR]"
22576 # string "DIR[ DIR]" will be appended to VARIABLE
22577 # "DIRP[:DIRP]::[DIRA:]DIRA"
22578 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
22579 # "DIRA[ DIRA]" will be appended to VARIABLE
22580 # "DIR[:DIR]"
22581 # VARIABLE will be replaced by "DIR[ DIR]"
22582 func_munge_path_list ()
22583 {
22584 case x$2 in
22585 x)
22586 ;;
22587 *:)
22588 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
22589 ;;
22590 x:*)
22591 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
22592 ;;
22593 *::*)
22594 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
22595 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
22596 ;;
22597 *)
22598 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
22599 ;;
22600 esac
22601 }
22602
22603
22604 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
22605 func_cc_basename ()
22606 {
22607 for cc_temp in $*""; do
22608 case $cc_temp in
22609 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
22610 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
22611 \-*) ;;
22612 *) break;;
22613 esac
22614 done
22615 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
22616 }
22617
22618
22619 # ### END FUNCTIONS SHARED WITH CONFIGURE
22620
22621 _LT_EOF
22622
22623 case $host_os in
22624 aix3*)
22625 cat <<\_LT_EOF >> "$cfgfile"
22626 # AIX sometimes has problems with the GCC collect2 program. For some
22627 # reason, if we set the COLLECT_NAMES environment variable, the problems
22628 # vanish in a puff of smoke.
22629 if test set != "${COLLECT_NAMES+set}"; then
22630 COLLECT_NAMES=
22631 export COLLECT_NAMES
22632 fi
22633 _LT_EOF
22634 ;;
22635 esac
22636
22637
22638
22639 ltmain=$ac_aux_dir/ltmain.sh
22640
22641
22642 # We use sed instead of cat because bash on DJGPP gets confused if
22643 # if finds mixed CR/LF and LF-only lines. Since sed operates in
22644 # text mode, it properly converts lines to CR/LF. This bash problem
22645 # is reportedly fixed, but why not run on old versions too?
22646 $SED '$q' "$ltmain" >> "$cfgfile" \
22647 || (rm -f "$cfgfile"; exit 1)
22648
22649 mv -f "$cfgfile" "$ofile" ||
22650 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
22651 chmod +x "$ofile"
22652
22653 ;;
22654
22655 esac
22656 done # for ac_tag
22657
22658
22659 as_fn_exit 0
22660 _ACEOF
22661 ac_clean_files=$ac_clean_files_save
22662
22663 test $ac_write_fail = 0 ||
22664 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
22665
22666
22667 # configure is writing to config.log, and then calls config.status.
22668 # config.status does its own redirection, appending to config.log.
22669 # Unfortunately, on DOS this fails, as config.log is still kept open
22670 # by configure, so config.status won't be able to write to it; its
22671 # output is simply discarded. So we exec the FD to /dev/null,
22672 # effectively closing config.log, so it can be properly (re)opened and
22673 # appended to by config.status. When coming back to configure, we
22674 # need to make the FD available again.
22675 if test "$no_create" != yes; then
22676 ac_cs_success=:
22677 ac_config_status_args=
22678 test "$silent" = yes &&
22679 ac_config_status_args="$ac_config_status_args --quiet"
22680 exec 5>/dev/null
22681 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22682 exec 5>>config.log
22683 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22684 # would make configure fail if this is the last instruction.
22685 $ac_cs_success || as_fn_exit 1
22686 fi
22687 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
22688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
22689 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
22690 fi
22691
22692
22693