configure revision 1.1.1.7 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.71 for xf86-video-cirrus 1.6.0.
4 #
5 # Report bugs to <https://gitlab.freedesktop.org/xorg/driver/xf86-video-cirrus/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-cirrus/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-cirrus'
624 PACKAGE_TARNAME='xf86-video-cirrus'
625 PACKAGE_VERSION='1.6.0'
626 PACKAGE_STRING='xf86-video-cirrus 1.6.0'
627 PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/driver/xf86-video-cirrus/issues'
628 PACKAGE_URL=''
629
630 ac_unique_file="Makefile.am"
631 # Factoring default headers for most tests.
632 ac_includes_default="\
633 #include <stddef.h>
634 #ifdef HAVE_STDIO_H
635 # include <stdio.h>
636 #endif
637 #ifdef HAVE_STDLIB_H
638 # include <stdlib.h>
639 #endif
640 #ifdef HAVE_STRING_H
641 # include <string.h>
642 #endif
643 #ifdef HAVE_INTTYPES_H
644 # include <inttypes.h>
645 #endif
646 #ifdef HAVE_STDINT_H
647 # include <stdint.h>
648 #endif
649 #ifdef HAVE_STRINGS_H
650 # include <strings.h>
651 #endif
652 #ifdef HAVE_SYS_TYPES_H
653 # include <sys/types.h>
654 #endif
655 #ifdef HAVE_SYS_STAT_H
656 # include <sys/stat.h>
657 #endif
658 #ifdef HAVE_UNISTD_H
659 # include <unistd.h>
660 #endif"
661
662 ac_header_c_list=
663 ac_subst_vars='am__EXEEXT_FALSE
664 am__EXEEXT_TRUE
665 LTLIBOBJS
666 LIBOBJS
667 DRIVER_NAME
668 moduledir
669 XSERVER_LIBPCIACCESS_FALSE
670 XSERVER_LIBPCIACCESS_TRUE
671 PCIACCESS_LIBS
672 PCIACCESS_CFLAGS
673 XAA_FALSE
674 XAA_TRUE
675 XORG_LIBS
676 XORG_CFLAGS
677 LT_SYS_LIBRARY_PATH
678 OTOOL64
679 OTOOL
680 LIPO
681 NMEDIT
682 DSYMUTIL
683 MANIFEST_TOOL
684 RANLIB
685 ac_ct_AR
686 AR
687 DLLTOOL
688 OBJDUMP
689 FILECMD
690 LN_S
691 NM
692 ac_ct_DUMPBIN
693 DUMPBIN
694 LD
695 FGREP
696 EGREP
697 GREP
698 LIBTOOL
699 MAN_SUBSTS
700 XORG_MAN_PAGE
701 ADMIN_MAN_DIR
702 DRIVER_MAN_DIR
703 MISC_MAN_DIR
704 FILE_MAN_DIR
705 LIB_MAN_DIR
706 APP_MAN_DIR
707 ADMIN_MAN_SUFFIX
708 DRIVER_MAN_SUFFIX
709 MISC_MAN_SUFFIX
710 FILE_MAN_SUFFIX
711 LIB_MAN_SUFFIX
712 APP_MAN_SUFFIX
713 SED
714 host_os
715 host_vendor
716 host_cpu
717 host
718 build_os
719 build_vendor
720 build_cpu
721 build
722 INSTALL_CMD
723 PKG_CONFIG_LIBDIR
724 PKG_CONFIG_PATH
725 PKG_CONFIG
726 CHANGELOG_CMD
727 STRICT_CFLAGS
728 CWARNFLAGS
729 BASE_CFLAGS
730 am__fastdepCC_FALSE
731 am__fastdepCC_TRUE
732 CCDEPMODE
733 am__nodep
734 AMDEPBACKSLASH
735 AMDEP_FALSE
736 AMDEP_TRUE
737 am__include
738 DEPDIR
739 OBJEXT
740 EXEEXT
741 ac_ct_CC
742 CPPFLAGS
743 LDFLAGS
744 CFLAGS
745 CC
746 AM_BACKSLASH
747 AM_DEFAULT_VERBOSITY
748 AM_DEFAULT_V
749 AM_V
750 CSCOPE
751 ETAGS
752 CTAGS
753 am__untar
754 am__tar
755 AMTAR
756 am__leading_dot
757 SET_MAKE
758 AWK
759 mkdir_p
760 MKDIR_P
761 INSTALL_STRIP_PROGRAM
762 STRIP
763 install_sh
764 MAKEINFO
765 AUTOHEADER
766 AUTOMAKE
767 AUTOCONF
768 ACLOCAL
769 VERSION
770 PACKAGE
771 CYGPATH_W
772 am__isrc
773 INSTALL_DATA
774 INSTALL_SCRIPT
775 INSTALL_PROGRAM
776 target_alias
777 host_alias
778 build_alias
779 LIBS
780 ECHO_T
781 ECHO_N
782 ECHO_C
783 DEFS
784 mandir
785 localedir
786 libdir
787 psdir
788 pdfdir
789 dvidir
790 htmldir
791 infodir
792 docdir
793 oldincludedir
794 includedir
795 runstatedir
796 localstatedir
797 sharedstatedir
798 sysconfdir
799 datadir
800 datarootdir
801 libexecdir
802 sbindir
803 bindir
804 program_transform_name
805 prefix
806 exec_prefix
807 PACKAGE_URL
808 PACKAGE_BUGREPORT
809 PACKAGE_STRING
810 PACKAGE_VERSION
811 PACKAGE_TARNAME
812 PACKAGE_NAME
813 PATH_SEPARATOR
814 SHELL
815 am__quote'
816 ac_subst_files=''
817 ac_user_opts='
818 enable_option_checking
819 enable_silent_rules
820 enable_dependency_tracking
821 enable_selective_werror
822 enable_strict_compilation
823 enable_static
824 enable_shared
825 with_pic
826 enable_fast_install
827 with_aix_soname
828 with_gnu_ld
829 with_sysroot
830 enable_libtool_lock
831 with_xorg_module_dir
832 enable_xaa
833 '
834 ac_precious_vars='build_alias
835 host_alias
836 target_alias
837 CC
838 CFLAGS
839 LDFLAGS
840 LIBS
841 CPPFLAGS
842 PKG_CONFIG
843 PKG_CONFIG_PATH
844 PKG_CONFIG_LIBDIR
845 LT_SYS_LIBRARY_PATH
846 XORG_CFLAGS
847 XORG_LIBS
848 PCIACCESS_CFLAGS
849 PCIACCESS_LIBS'
850
851
852 # Initialize some variables set by options.
853 ac_init_help=
854 ac_init_version=false
855 ac_unrecognized_opts=
856 ac_unrecognized_sep=
857 # The variables have the same names as the options, with
858 # dashes changed to underlines.
859 cache_file=/dev/null
860 exec_prefix=NONE
861 no_create=
862 no_recursion=
863 prefix=NONE
864 program_prefix=NONE
865 program_suffix=NONE
866 program_transform_name=s,x,x,
867 silent=
868 site=
869 srcdir=
870 verbose=
871 x_includes=NONE
872 x_libraries=NONE
873
874 # Installation directory options.
875 # These are left unexpanded so users can "make install exec_prefix=/foo"
876 # and all the variables that are supposed to be based on exec_prefix
877 # by default will actually change.
878 # Use braces instead of parens because sh, perl, etc. also accept them.
879 # (The list follows the same order as the GNU Coding Standards.)
880 bindir='${exec_prefix}/bin'
881 sbindir='${exec_prefix}/sbin'
882 libexecdir='${exec_prefix}/libexec'
883 datarootdir='${prefix}/share'
884 datadir='${datarootdir}'
885 sysconfdir='${prefix}/etc'
886 sharedstatedir='${prefix}/com'
887 localstatedir='${prefix}/var'
888 runstatedir='${localstatedir}/run'
889 includedir='${prefix}/include'
890 oldincludedir='/usr/include'
891 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
892 infodir='${datarootdir}/info'
893 htmldir='${docdir}'
894 dvidir='${docdir}'
895 pdfdir='${docdir}'
896 psdir='${docdir}'
897 libdir='${exec_prefix}/lib'
898 localedir='${datarootdir}/locale'
899 mandir='${datarootdir}/man'
900
901 ac_prev=
902 ac_dashdash=
903 for ac_option
904 do
905 # If the previous option needs an argument, assign it.
906 if test -n "$ac_prev"; then
907 eval $ac_prev=\$ac_option
908 ac_prev=
909 continue
910 fi
911
912 case $ac_option in
913 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
914 *=) ac_optarg= ;;
915 *) ac_optarg=yes ;;
916 esac
917
918 case $ac_dashdash$ac_option in
919 --)
920 ac_dashdash=yes ;;
921
922 -bindir | --bindir | --bindi | --bind | --bin | --bi)
923 ac_prev=bindir ;;
924 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
925 bindir=$ac_optarg ;;
926
927 -build | --build | --buil | --bui | --bu)
928 ac_prev=build_alias ;;
929 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
930 build_alias=$ac_optarg ;;
931
932 -cache-file | --cache-file | --cache-fil | --cache-fi \
933 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
934 ac_prev=cache_file ;;
935 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
936 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
937 cache_file=$ac_optarg ;;
938
939 --config-cache | -C)
940 cache_file=config.cache ;;
941
942 -datadir | --datadir | --datadi | --datad)
943 ac_prev=datadir ;;
944 -datadir=* | --datadir=* | --datadi=* | --datad=*)
945 datadir=$ac_optarg ;;
946
947 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
948 | --dataroo | --dataro | --datar)
949 ac_prev=datarootdir ;;
950 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
951 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
952 datarootdir=$ac_optarg ;;
953
954 -disable-* | --disable-*)
955 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
956 # Reject names that are not valid shell variable names.
957 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
958 as_fn_error $? "invalid feature name: \`$ac_useropt'"
959 ac_useropt_orig=$ac_useropt
960 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
961 case $ac_user_opts in
962 *"
963 "enable_$ac_useropt"
964 "*) ;;
965 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
966 ac_unrecognized_sep=', ';;
967 esac
968 eval enable_$ac_useropt=no ;;
969
970 -docdir | --docdir | --docdi | --doc | --do)
971 ac_prev=docdir ;;
972 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
973 docdir=$ac_optarg ;;
974
975 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
976 ac_prev=dvidir ;;
977 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
978 dvidir=$ac_optarg ;;
979
980 -enable-* | --enable-*)
981 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
982 # Reject names that are not valid shell variable names.
983 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
984 as_fn_error $? "invalid feature name: \`$ac_useropt'"
985 ac_useropt_orig=$ac_useropt
986 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
987 case $ac_user_opts in
988 *"
989 "enable_$ac_useropt"
990 "*) ;;
991 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
992 ac_unrecognized_sep=', ';;
993 esac
994 eval enable_$ac_useropt=\$ac_optarg ;;
995
996 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
997 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
998 | --exec | --exe | --ex)
999 ac_prev=exec_prefix ;;
1000 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1001 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1002 | --exec=* | --exe=* | --ex=*)
1003 exec_prefix=$ac_optarg ;;
1004
1005 -gas | --gas | --ga | --g)
1006 # Obsolete; use --with-gas.
1007 with_gas=yes ;;
1008
1009 -help | --help | --hel | --he | -h)
1010 ac_init_help=long ;;
1011 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1012 ac_init_help=recursive ;;
1013 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1014 ac_init_help=short ;;
1015
1016 -host | --host | --hos | --ho)
1017 ac_prev=host_alias ;;
1018 -host=* | --host=* | --hos=* | --ho=*)
1019 host_alias=$ac_optarg ;;
1020
1021 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1022 ac_prev=htmldir ;;
1023 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1024 | --ht=*)
1025 htmldir=$ac_optarg ;;
1026
1027 -includedir | --includedir | --includedi | --included | --include \
1028 | --includ | --inclu | --incl | --inc)
1029 ac_prev=includedir ;;
1030 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1031 | --includ=* | --inclu=* | --incl=* | --inc=*)
1032 includedir=$ac_optarg ;;
1033
1034 -infodir | --infodir | --infodi | --infod | --info | --inf)
1035 ac_prev=infodir ;;
1036 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1037 infodir=$ac_optarg ;;
1038
1039 -libdir | --libdir | --libdi | --libd)
1040 ac_prev=libdir ;;
1041 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1042 libdir=$ac_optarg ;;
1043
1044 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1045 | --libexe | --libex | --libe)
1046 ac_prev=libexecdir ;;
1047 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1048 | --libexe=* | --libex=* | --libe=*)
1049 libexecdir=$ac_optarg ;;
1050
1051 -localedir | --localedir | --localedi | --localed | --locale)
1052 ac_prev=localedir ;;
1053 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1054 localedir=$ac_optarg ;;
1055
1056 -localstatedir | --localstatedir | --localstatedi | --localstated \
1057 | --localstate | --localstat | --localsta | --localst | --locals)
1058 ac_prev=localstatedir ;;
1059 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1060 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1061 localstatedir=$ac_optarg ;;
1062
1063 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1064 ac_prev=mandir ;;
1065 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1066 mandir=$ac_optarg ;;
1067
1068 -nfp | --nfp | --nf)
1069 # Obsolete; use --without-fp.
1070 with_fp=no ;;
1071
1072 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1073 | --no-cr | --no-c | -n)
1074 no_create=yes ;;
1075
1076 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1077 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1078 no_recursion=yes ;;
1079
1080 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1081 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1082 | --oldin | --oldi | --old | --ol | --o)
1083 ac_prev=oldincludedir ;;
1084 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1085 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1086 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1087 oldincludedir=$ac_optarg ;;
1088
1089 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1090 ac_prev=prefix ;;
1091 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1092 prefix=$ac_optarg ;;
1093
1094 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1095 | --program-pre | --program-pr | --program-p)
1096 ac_prev=program_prefix ;;
1097 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1098 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1099 program_prefix=$ac_optarg ;;
1100
1101 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1102 | --program-suf | --program-su | --program-s)
1103 ac_prev=program_suffix ;;
1104 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1105 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1106 program_suffix=$ac_optarg ;;
1107
1108 -program-transform-name | --program-transform-name \
1109 | --program-transform-nam | --program-transform-na \
1110 | --program-transform-n | --program-transform- \
1111 | --program-transform | --program-transfor \
1112 | --program-transfo | --program-transf \
1113 | --program-trans | --program-tran \
1114 | --progr-tra | --program-tr | --program-t)
1115 ac_prev=program_transform_name ;;
1116 -program-transform-name=* | --program-transform-name=* \
1117 | --program-transform-nam=* | --program-transform-na=* \
1118 | --program-transform-n=* | --program-transform-=* \
1119 | --program-transform=* | --program-transfor=* \
1120 | --program-transfo=* | --program-transf=* \
1121 | --program-trans=* | --program-tran=* \
1122 | --progr-tra=* | --program-tr=* | --program-t=*)
1123 program_transform_name=$ac_optarg ;;
1124
1125 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1126 ac_prev=pdfdir ;;
1127 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1128 pdfdir=$ac_optarg ;;
1129
1130 -psdir | --psdir | --psdi | --psd | --ps)
1131 ac_prev=psdir ;;
1132 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1133 psdir=$ac_optarg ;;
1134
1135 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1136 | -silent | --silent | --silen | --sile | --sil)
1137 silent=yes ;;
1138
1139 -runstatedir | --runstatedir | --runstatedi | --runstated \
1140 | --runstate | --runstat | --runsta | --runst | --runs \
1141 | --run | --ru | --r)
1142 ac_prev=runstatedir ;;
1143 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1144 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1145 | --run=* | --ru=* | --r=*)
1146 runstatedir=$ac_optarg ;;
1147
1148 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1149 ac_prev=sbindir ;;
1150 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1151 | --sbi=* | --sb=*)
1152 sbindir=$ac_optarg ;;
1153
1154 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1155 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1156 | --sharedst | --shareds | --shared | --share | --shar \
1157 | --sha | --sh)
1158 ac_prev=sharedstatedir ;;
1159 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1160 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1161 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1162 | --sha=* | --sh=*)
1163 sharedstatedir=$ac_optarg ;;
1164
1165 -site | --site | --sit)
1166 ac_prev=site ;;
1167 -site=* | --site=* | --sit=*)
1168 site=$ac_optarg ;;
1169
1170 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1171 ac_prev=srcdir ;;
1172 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1173 srcdir=$ac_optarg ;;
1174
1175 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1176 | --syscon | --sysco | --sysc | --sys | --sy)
1177 ac_prev=sysconfdir ;;
1178 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1179 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1180 sysconfdir=$ac_optarg ;;
1181
1182 -target | --target | --targe | --targ | --tar | --ta | --t)
1183 ac_prev=target_alias ;;
1184 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1185 target_alias=$ac_optarg ;;
1186
1187 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1188 verbose=yes ;;
1189
1190 -version | --version | --versio | --versi | --vers | -V)
1191 ac_init_version=: ;;
1192
1193 -with-* | --with-*)
1194 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1195 # Reject names that are not valid shell variable names.
1196 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1197 as_fn_error $? "invalid package name: \`$ac_useropt'"
1198 ac_useropt_orig=$ac_useropt
1199 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1200 case $ac_user_opts in
1201 *"
1202 "with_$ac_useropt"
1203 "*) ;;
1204 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1205 ac_unrecognized_sep=', ';;
1206 esac
1207 eval with_$ac_useropt=\$ac_optarg ;;
1208
1209 -without-* | --without-*)
1210 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1211 # Reject names that are not valid shell variable names.
1212 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1213 as_fn_error $? "invalid package name: \`$ac_useropt'"
1214 ac_useropt_orig=$ac_useropt
1215 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1216 case $ac_user_opts in
1217 *"
1218 "with_$ac_useropt"
1219 "*) ;;
1220 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1221 ac_unrecognized_sep=', ';;
1222 esac
1223 eval with_$ac_useropt=no ;;
1224
1225 --x)
1226 # Obsolete; use --with-x.
1227 with_x=yes ;;
1228
1229 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1230 | --x-incl | --x-inc | --x-in | --x-i)
1231 ac_prev=x_includes ;;
1232 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1233 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1234 x_includes=$ac_optarg ;;
1235
1236 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1237 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1238 ac_prev=x_libraries ;;
1239 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1240 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1241 x_libraries=$ac_optarg ;;
1242
1243 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1244 Try \`$0 --help' for more information"
1245 ;;
1246
1247 *=*)
1248 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1249 # Reject names that are not valid shell variable names.
1250 case $ac_envvar in #(
1251 '' | [0-9]* | *[!_$as_cr_alnum]* )
1252 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1253 esac
1254 eval $ac_envvar=\$ac_optarg
1255 export $ac_envvar ;;
1256
1257 *)
1258 # FIXME: should be removed in autoconf 3.0.
1259 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1260 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1261 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1262 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1263 ;;
1264
1265 esac
1266 done
1267
1268 if test -n "$ac_prev"; then
1269 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1270 as_fn_error $? "missing argument to $ac_option"
1271 fi
1272
1273 if test -n "$ac_unrecognized_opts"; then
1274 case $enable_option_checking in
1275 no) ;;
1276 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1277 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1278 esac
1279 fi
1280
1281 # Check all directory arguments for consistency.
1282 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1283 datadir sysconfdir sharedstatedir localstatedir includedir \
1284 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1285 libdir localedir mandir runstatedir
1286 do
1287 eval ac_val=\$$ac_var
1288 # Remove trailing slashes.
1289 case $ac_val in
1290 */ )
1291 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1292 eval $ac_var=\$ac_val;;
1293 esac
1294 # Be sure to have absolute directory names.
1295 case $ac_val in
1296 [\\/$]* | ?:[\\/]* ) continue;;
1297 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1298 esac
1299 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1300 done
1301
1302 # There might be people who depend on the old broken behavior: `$host'
1303 # used to hold the argument of --host etc.
1304 # FIXME: To remove some day.
1305 build=$build_alias
1306 host=$host_alias
1307 target=$target_alias
1308
1309 # FIXME: To remove some day.
1310 if test "x$host_alias" != x; then
1311 if test "x$build_alias" = x; then
1312 cross_compiling=maybe
1313 elif test "x$build_alias" != "x$host_alias"; then
1314 cross_compiling=yes
1315 fi
1316 fi
1317
1318 ac_tool_prefix=
1319 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1320
1321 test "$silent" = yes && exec 6>/dev/null
1322
1323
1324 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1325 ac_ls_di=`ls -di .` &&
1326 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1327 as_fn_error $? "working directory cannot be determined"
1328 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1329 as_fn_error $? "pwd does not report name of working directory"
1330
1331
1332 # Find the source files, if location was not specified.
1333 if test -z "$srcdir"; then
1334 ac_srcdir_defaulted=yes
1335 # Try the directory containing this script, then the parent directory.
1336 ac_confdir=`$as_dirname -- "$as_myself" ||
1337 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1338 X"$as_myself" : 'X\(//\)[^/]' \| \
1339 X"$as_myself" : 'X\(//\)$' \| \
1340 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1341 printf "%s\n" X"$as_myself" |
1342 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1343 s//\1/
1344 q
1345 }
1346 /^X\(\/\/\)[^/].*/{
1347 s//\1/
1348 q
1349 }
1350 /^X\(\/\/\)$/{
1351 s//\1/
1352 q
1353 }
1354 /^X\(\/\).*/{
1355 s//\1/
1356 q
1357 }
1358 s/.*/./; q'`
1359 srcdir=$ac_confdir
1360 if test ! -r "$srcdir/$ac_unique_file"; then
1361 srcdir=..
1362 fi
1363 else
1364 ac_srcdir_defaulted=no
1365 fi
1366 if test ! -r "$srcdir/$ac_unique_file"; then
1367 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1368 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1369 fi
1370 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1371 ac_abs_confdir=`(
1372 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1373 pwd)`
1374 # When building in place, set srcdir=.
1375 if test "$ac_abs_confdir" = "$ac_pwd"; then
1376 srcdir=.
1377 fi
1378 # Remove unnecessary trailing slashes from srcdir.
1379 # Double slashes in file names in object file debugging info
1380 # mess up M-x gdb in Emacs.
1381 case $srcdir in
1382 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1383 esac
1384 for ac_var in $ac_precious_vars; do
1385 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1386 eval ac_env_${ac_var}_value=\$${ac_var}
1387 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1388 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1389 done
1390
1391 #
1392 # Report the --help message.
1393 #
1394 if test "$ac_init_help" = "long"; then
1395 # Omit some internal or obsolete options to make the list less imposing.
1396 # This message is too long to be a string in the A/UX 3.1 sh.
1397 cat <<_ACEOF
1398 \`configure' configures xf86-video-cirrus 1.6.0 to adapt to many kinds of systems.
1399
1400 Usage: $0 [OPTION]... [VAR=VALUE]...
1401
1402 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1403 VAR=VALUE. See below for descriptions of some of the useful variables.
1404
1405 Defaults for the options are specified in brackets.
1406
1407 Configuration:
1408 -h, --help display this help and exit
1409 --help=short display options specific to this package
1410 --help=recursive display the short help of all the included packages
1411 -V, --version display version information and exit
1412 -q, --quiet, --silent do not print \`checking ...' messages
1413 --cache-file=FILE cache test results in FILE [disabled]
1414 -C, --config-cache alias for \`--cache-file=config.cache'
1415 -n, --no-create do not create output files
1416 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1417
1418 Installation directories:
1419 --prefix=PREFIX install architecture-independent files in PREFIX
1420 [$ac_default_prefix]
1421 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1422 [PREFIX]
1423
1424 By default, \`make install' will install all the files in
1425 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1426 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1427 for instance \`--prefix=\$HOME'.
1428
1429 For better control, use the options below.
1430
1431 Fine tuning of the installation directories:
1432 --bindir=DIR user executables [EPREFIX/bin]
1433 --sbindir=DIR system admin executables [EPREFIX/sbin]
1434 --libexecdir=DIR program executables [EPREFIX/libexec]
1435 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1436 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1437 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1438 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1439 --libdir=DIR object code libraries [EPREFIX/lib]
1440 --includedir=DIR C header files [PREFIX/include]
1441 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1442 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1443 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1444 --infodir=DIR info documentation [DATAROOTDIR/info]
1445 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1446 --mandir=DIR man documentation [DATAROOTDIR/man]
1447 --docdir=DIR documentation root
1448 [DATAROOTDIR/doc/xf86-video-cirrus]
1449 --htmldir=DIR html documentation [DOCDIR]
1450 --dvidir=DIR dvi documentation [DOCDIR]
1451 --pdfdir=DIR pdf documentation [DOCDIR]
1452 --psdir=DIR ps documentation [DOCDIR]
1453 _ACEOF
1454
1455 cat <<\_ACEOF
1456
1457 Program names:
1458 --program-prefix=PREFIX prepend PREFIX to installed program names
1459 --program-suffix=SUFFIX append SUFFIX to installed program names
1460 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1461
1462 System types:
1463 --build=BUILD configure for building on BUILD [guessed]
1464 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1465 _ACEOF
1466 fi
1467
1468 if test -n "$ac_init_help"; then
1469 case $ac_init_help in
1470 short | recursive ) echo "Configuration of xf86-video-cirrus 1.6.0:";;
1471 esac
1472 cat <<\_ACEOF
1473
1474 Optional Features:
1475 --disable-option-checking ignore unrecognized --enable/--with options
1476 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1477 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1478 --enable-silent-rules less verbose build output (undo: "make V=1")
1479 --disable-silent-rules verbose build output (undo: "make V=0")
1480 --enable-dependency-tracking
1481 do not reject slow dependency extractors
1482 --disable-dependency-tracking
1483 speeds up one-time build
1484 --disable-selective-werror
1485 Turn off selective compiler errors. (default:
1486 enabled)
1487 --enable-strict-compilation
1488 Enable all warnings from compiler and make them
1489 errors (default: disabled)
1490 --enable-static[=PKGS] build static libraries [default=no]
1491 --enable-shared[=PKGS] build shared libraries [default=yes]
1492 --enable-fast-install[=PKGS]
1493 optimize for fast installation [default=yes]
1494 --disable-libtool-lock avoid locking (might break parallel builds)
1495 --enable-xaa Enable legacy X Acceleration Architecture (XAA)
1496 [default=auto]
1497
1498 Optional Packages:
1499 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1500 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1501 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1502 both]
1503 --with-aix-soname=aix|svr4|both
1504 shared library versioning (aka "SONAME") variant to
1505 provide on AIX, [default=aix].
1506 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1507 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1508 compiler's sysroot if not specified).
1509 --with-xorg-module-dir=DIR
1510 Default xorg module directory
1511 [[default=$libdir/xorg/modules]]
1512
1513 Some influential environment variables:
1514 CC C compiler command
1515 CFLAGS C compiler flags
1516 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1517 nonstandard directory <lib dir>
1518 LIBS libraries to pass to the linker, e.g. -l<library>
1519 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1520 you have headers in a nonstandard directory <include dir>
1521 PKG_CONFIG path to pkg-config utility
1522 PKG_CONFIG_PATH
1523 directories to add to pkg-config's search path
1524 PKG_CONFIG_LIBDIR
1525 path overriding pkg-config's built-in search path
1526 LT_SYS_LIBRARY_PATH
1527 User-defined run-time library search path.
1528 XORG_CFLAGS C compiler flags for XORG, overriding pkg-config
1529 XORG_LIBS linker flags for XORG, overriding pkg-config
1530 PCIACCESS_CFLAGS
1531 C compiler flags for PCIACCESS, overriding pkg-config
1532 PCIACCESS_LIBS
1533 linker flags for PCIACCESS, overriding pkg-config
1534
1535 Use these variables to override the choices made by `configure' or to help
1536 it to find libraries and programs with nonstandard names/locations.
1537
1538 Report bugs to <https://gitlab.freedesktop.org/xorg/driver/xf86-video-cirrus/issues>.
1539 _ACEOF
1540 ac_status=$?
1541 fi
1542
1543 if test "$ac_init_help" = "recursive"; then
1544 # If there are subdirs, report their specific --help.
1545 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1546 test -d "$ac_dir" ||
1547 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1548 continue
1549 ac_builddir=.
1550
1551 case "$ac_dir" in
1552 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1553 *)
1554 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1555 # A ".." for each directory in $ac_dir_suffix.
1556 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1557 case $ac_top_builddir_sub in
1558 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1559 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1560 esac ;;
1561 esac
1562 ac_abs_top_builddir=$ac_pwd
1563 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1564 # for backward compatibility:
1565 ac_top_builddir=$ac_top_build_prefix
1566
1567 case $srcdir in
1568 .) # We are building in place.
1569 ac_srcdir=.
1570 ac_top_srcdir=$ac_top_builddir_sub
1571 ac_abs_top_srcdir=$ac_pwd ;;
1572 [\\/]* | ?:[\\/]* ) # Absolute name.
1573 ac_srcdir=$srcdir$ac_dir_suffix;
1574 ac_top_srcdir=$srcdir
1575 ac_abs_top_srcdir=$srcdir ;;
1576 *) # Relative name.
1577 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1578 ac_top_srcdir=$ac_top_build_prefix$srcdir
1579 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1580 esac
1581 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1582
1583 cd "$ac_dir" || { ac_status=$?; continue; }
1584 # Check for configure.gnu first; this name is used for a wrapper for
1585 # Metaconfig's "Configure" on case-insensitive file systems.
1586 if test -f "$ac_srcdir/configure.gnu"; then
1587 echo &&
1588 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1589 elif test -f "$ac_srcdir/configure"; then
1590 echo &&
1591 $SHELL "$ac_srcdir/configure" --help=recursive
1592 else
1593 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1594 fi || ac_status=$?
1595 cd "$ac_pwd" || { ac_status=$?; break; }
1596 done
1597 fi
1598
1599 test -n "$ac_init_help" && exit $ac_status
1600 if $ac_init_version; then
1601 cat <<\_ACEOF
1602 xf86-video-cirrus configure 1.6.0
1603 generated by GNU Autoconf 2.71
1604
1605 Copyright (C) 2021 Free Software Foundation, Inc.
1606 This configure script is free software; the Free Software Foundation
1607 gives unlimited permission to copy, distribute and modify it.
1608 _ACEOF
1609 exit
1610 fi
1611
1612 ## ------------------------ ##
1613 ## Autoconf initialization. ##
1614 ## ------------------------ ##
1615
1616 # ac_fn_c_try_compile LINENO
1617 # --------------------------
1618 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1619 ac_fn_c_try_compile ()
1620 {
1621 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1622 rm -f conftest.$ac_objext conftest.beam
1623 if { { ac_try="$ac_compile"
1624 case "(($ac_try" in
1625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1626 *) ac_try_echo=$ac_try;;
1627 esac
1628 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1629 printf "%s\n" "$ac_try_echo"; } >&5
1630 (eval "$ac_compile") 2>conftest.err
1631 ac_status=$?
1632 if test -s conftest.err; then
1633 grep -v '^ *+' conftest.err >conftest.er1
1634 cat conftest.er1 >&5
1635 mv -f conftest.er1 conftest.err
1636 fi
1637 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1638 test $ac_status = 0; } && {
1639 test -z "$ac_c_werror_flag" ||
1640 test ! -s conftest.err
1641 } && test -s conftest.$ac_objext
1642 then :
1643 ac_retval=0
1644 else $as_nop
1645 printf "%s\n" "$as_me: failed program was:" >&5
1646 sed 's/^/| /' conftest.$ac_ext >&5
1647
1648 ac_retval=1
1649 fi
1650 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1651 as_fn_set_status $ac_retval
1652
1653 } # ac_fn_c_try_compile
1654
1655 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
1656 # ------------------------------------------------------------------
1657 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1658 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
1659 ac_fn_check_decl ()
1660 {
1661 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1662 as_decl_name=`echo $2|sed 's/ *(.*//'`
1663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1664 printf %s "checking whether $as_decl_name is declared... " >&6; }
1665 if eval test \${$3+y}
1666 then :
1667 printf %s "(cached) " >&6
1668 else $as_nop
1669 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1670 eval ac_save_FLAGS=\$$6
1671 as_fn_append $6 " $5"
1672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1673 /* end confdefs.h. */
1674 $4
1675 int
1676 main (void)
1677 {
1678 #ifndef $as_decl_name
1679 #ifdef __cplusplus
1680 (void) $as_decl_use;
1681 #else
1682 (void) $as_decl_name;
1683 #endif
1684 #endif
1685
1686 ;
1687 return 0;
1688 }
1689 _ACEOF
1690 if ac_fn_c_try_compile "$LINENO"
1691 then :
1692 eval "$3=yes"
1693 else $as_nop
1694 eval "$3=no"
1695 fi
1696 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1697 eval $6=\$ac_save_FLAGS
1698
1699 fi
1700 eval ac_res=\$$3
1701 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1702 printf "%s\n" "$ac_res" >&6; }
1703 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1704
1705 } # ac_fn_check_decl
1706
1707 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1708 # -------------------------------------------------------
1709 # Tests whether HEADER exists and can be compiled using the include files in
1710 # INCLUDES, setting the cache variable VAR accordingly.
1711 ac_fn_c_check_header_compile ()
1712 {
1713 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1715 printf %s "checking for $2... " >&6; }
1716 if eval test \${$3+y}
1717 then :
1718 printf %s "(cached) " >&6
1719 else $as_nop
1720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1721 /* end confdefs.h. */
1722 $4
1723 #include <$2>
1724 _ACEOF
1725 if ac_fn_c_try_compile "$LINENO"
1726 then :
1727 eval "$3=yes"
1728 else $as_nop
1729 eval "$3=no"
1730 fi
1731 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1732 fi
1733 eval ac_res=\$$3
1734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1735 printf "%s\n" "$ac_res" >&6; }
1736 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1737
1738 } # ac_fn_c_check_header_compile
1739
1740 # ac_fn_c_try_link LINENO
1741 # -----------------------
1742 # Try to link conftest.$ac_ext, and return whether this succeeded.
1743 ac_fn_c_try_link ()
1744 {
1745 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1746 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1747 if { { ac_try="$ac_link"
1748 case "(($ac_try" in
1749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1750 *) ac_try_echo=$ac_try;;
1751 esac
1752 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1753 printf "%s\n" "$ac_try_echo"; } >&5
1754 (eval "$ac_link") 2>conftest.err
1755 ac_status=$?
1756 if test -s conftest.err; then
1757 grep -v '^ *+' conftest.err >conftest.er1
1758 cat conftest.er1 >&5
1759 mv -f conftest.er1 conftest.err
1760 fi
1761 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1762 test $ac_status = 0; } && {
1763 test -z "$ac_c_werror_flag" ||
1764 test ! -s conftest.err
1765 } && test -s conftest$ac_exeext && {
1766 test "$cross_compiling" = yes ||
1767 test -x conftest$ac_exeext
1768 }
1769 then :
1770 ac_retval=0
1771 else $as_nop
1772 printf "%s\n" "$as_me: failed program was:" >&5
1773 sed 's/^/| /' conftest.$ac_ext >&5
1774
1775 ac_retval=1
1776 fi
1777 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1778 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1779 # interfere with the next link command; also delete a directory that is
1780 # left behind by Apple's compiler. We do this before executing the actions.
1781 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1782 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1783 as_fn_set_status $ac_retval
1784
1785 } # ac_fn_c_try_link
1786
1787 # ac_fn_c_check_func LINENO FUNC VAR
1788 # ----------------------------------
1789 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1790 ac_fn_c_check_func ()
1791 {
1792 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1794 printf %s "checking for $2... " >&6; }
1795 if eval test \${$3+y}
1796 then :
1797 printf %s "(cached) " >&6
1798 else $as_nop
1799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1800 /* end confdefs.h. */
1801 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1802 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1803 #define $2 innocuous_$2
1804
1805 /* System header to define __stub macros and hopefully few prototypes,
1806 which can conflict with char $2 (); below. */
1807
1808 #include <limits.h>
1809 #undef $2
1810
1811 /* Override any GCC internal prototype to avoid an error.
1812 Use char because int might match the return type of a GCC
1813 builtin and then its argument prototype would still apply. */
1814 #ifdef __cplusplus
1815 extern "C"
1816 #endif
1817 char $2 ();
1818 /* The GNU C library defines this for functions which it implements
1819 to always fail with ENOSYS. Some functions are actually named
1820 something starting with __ and the normal name is an alias. */
1821 #if defined __stub_$2 || defined __stub___$2
1822 choke me
1823 #endif
1824
1825 int
1826 main (void)
1827 {
1828 return $2 ();
1829 ;
1830 return 0;
1831 }
1832 _ACEOF
1833 if ac_fn_c_try_link "$LINENO"
1834 then :
1835 eval "$3=yes"
1836 else $as_nop
1837 eval "$3=no"
1838 fi
1839 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1840 conftest$ac_exeext conftest.$ac_ext
1841 fi
1842 eval ac_res=\$$3
1843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1844 printf "%s\n" "$ac_res" >&6; }
1845 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1846
1847 } # ac_fn_c_check_func
1848 ac_configure_args_raw=
1849 for ac_arg
1850 do
1851 case $ac_arg in
1852 *\'*)
1853 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1854 esac
1855 as_fn_append ac_configure_args_raw " '$ac_arg'"
1856 done
1857
1858 case $ac_configure_args_raw in
1859 *$as_nl*)
1860 ac_safe_unquote= ;;
1861 *)
1862 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
1863 ac_unsafe_a="$ac_unsafe_z#~"
1864 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1865 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1866 esac
1867
1868 cat >config.log <<_ACEOF
1869 This file contains any messages produced by compilers while
1870 running configure, to aid debugging if configure makes a mistake.
1871
1872 It was created by xf86-video-cirrus $as_me 1.6.0, which was
1873 generated by GNU Autoconf 2.71. Invocation command line was
1874
1875 $ $0$ac_configure_args_raw
1876
1877 _ACEOF
1878 exec 5>>config.log
1879 {
1880 cat <<_ASUNAME
1881 ## --------- ##
1882 ## Platform. ##
1883 ## --------- ##
1884
1885 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1886 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1887 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1888 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1889 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1890
1891 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1892 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1893
1894 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1895 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1896 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1897 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1898 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1899 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1900 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1901
1902 _ASUNAME
1903
1904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1905 for as_dir in $PATH
1906 do
1907 IFS=$as_save_IFS
1908 case $as_dir in #(((
1909 '') as_dir=./ ;;
1910 */) ;;
1911 *) as_dir=$as_dir/ ;;
1912 esac
1913 printf "%s\n" "PATH: $as_dir"
1914 done
1915 IFS=$as_save_IFS
1916
1917 } >&5
1918
1919 cat >&5 <<_ACEOF
1920
1921
1922 ## ----------- ##
1923 ## Core tests. ##
1924 ## ----------- ##
1925
1926 _ACEOF
1927
1928
1929 # Keep a trace of the command line.
1930 # Strip out --no-create and --no-recursion so they do not pile up.
1931 # Strip out --silent because we don't want to record it for future runs.
1932 # Also quote any args containing shell meta-characters.
1933 # Make two passes to allow for proper duplicate-argument suppression.
1934 ac_configure_args=
1935 ac_configure_args0=
1936 ac_configure_args1=
1937 ac_must_keep_next=false
1938 for ac_pass in 1 2
1939 do
1940 for ac_arg
1941 do
1942 case $ac_arg in
1943 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1944 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1945 | -silent | --silent | --silen | --sile | --sil)
1946 continue ;;
1947 *\'*)
1948 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1949 esac
1950 case $ac_pass in
1951 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1952 2)
1953 as_fn_append ac_configure_args1 " '$ac_arg'"
1954 if test $ac_must_keep_next = true; then
1955 ac_must_keep_next=false # Got value, back to normal.
1956 else
1957 case $ac_arg in
1958 *=* | --config-cache | -C | -disable-* | --disable-* \
1959 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1960 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1961 | -with-* | --with-* | -without-* | --without-* | --x)
1962 case "$ac_configure_args0 " in
1963 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1964 esac
1965 ;;
1966 -* ) ac_must_keep_next=true ;;
1967 esac
1968 fi
1969 as_fn_append ac_configure_args " '$ac_arg'"
1970 ;;
1971 esac
1972 done
1973 done
1974 { ac_configure_args0=; unset ac_configure_args0;}
1975 { ac_configure_args1=; unset ac_configure_args1;}
1976
1977 # When interrupted or exit'd, cleanup temporary files, and complete
1978 # config.log. We remove comments because anyway the quotes in there
1979 # would cause problems or look ugly.
1980 # WARNING: Use '\'' to represent an apostrophe within the trap.
1981 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1982 trap 'exit_status=$?
1983 # Sanitize IFS.
1984 IFS=" "" $as_nl"
1985 # Save into config.log some information that might help in debugging.
1986 {
1987 echo
1988
1989 printf "%s\n" "## ---------------- ##
1990 ## Cache variables. ##
1991 ## ---------------- ##"
1992 echo
1993 # The following way of writing the cache mishandles newlines in values,
1994 (
1995 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1996 eval ac_val=\$$ac_var
1997 case $ac_val in #(
1998 *${as_nl}*)
1999 case $ac_var in #(
2000 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2001 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2002 esac
2003 case $ac_var in #(
2004 _ | IFS | as_nl) ;; #(
2005 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2006 *) { eval $ac_var=; unset $ac_var;} ;;
2007 esac ;;
2008 esac
2009 done
2010 (set) 2>&1 |
2011 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2012 *${as_nl}ac_space=\ *)
2013 sed -n \
2014 "s/'\''/'\''\\\\'\'''\''/g;
2015 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2016 ;; #(
2017 *)
2018 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2019 ;;
2020 esac |
2021 sort
2022 )
2023 echo
2024
2025 printf "%s\n" "## ----------------- ##
2026 ## Output variables. ##
2027 ## ----------------- ##"
2028 echo
2029 for ac_var in $ac_subst_vars
2030 do
2031 eval ac_val=\$$ac_var
2032 case $ac_val in
2033 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2034 esac
2035 printf "%s\n" "$ac_var='\''$ac_val'\''"
2036 done | sort
2037 echo
2038
2039 if test -n "$ac_subst_files"; then
2040 printf "%s\n" "## ------------------- ##
2041 ## File substitutions. ##
2042 ## ------------------- ##"
2043 echo
2044 for ac_var in $ac_subst_files
2045 do
2046 eval ac_val=\$$ac_var
2047 case $ac_val in
2048 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2049 esac
2050 printf "%s\n" "$ac_var='\''$ac_val'\''"
2051 done | sort
2052 echo
2053 fi
2054
2055 if test -s confdefs.h; then
2056 printf "%s\n" "## ----------- ##
2057 ## confdefs.h. ##
2058 ## ----------- ##"
2059 echo
2060 cat confdefs.h
2061 echo
2062 fi
2063 test "$ac_signal" != 0 &&
2064 printf "%s\n" "$as_me: caught signal $ac_signal"
2065 printf "%s\n" "$as_me: exit $exit_status"
2066 } >&5
2067 rm -f core *.core core.conftest.* &&
2068 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2069 exit $exit_status
2070 ' 0
2071 for ac_signal in 1 2 13 15; do
2072 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2073 done
2074 ac_signal=0
2075
2076 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2077 rm -f -r conftest* confdefs.h
2078
2079 printf "%s\n" "/* confdefs.h */" > confdefs.h
2080
2081 # Predefined preprocessor variables.
2082
2083 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2084
2085 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2086
2087 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2088
2089 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2090
2091 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2092
2093 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2094
2095
2096 # Let the site file select an alternate cache file if it wants to.
2097 # Prefer an explicitly selected file to automatically selected ones.
2098 if test -n "$CONFIG_SITE"; then
2099 ac_site_files="$CONFIG_SITE"
2100 elif test "x$prefix" != xNONE; then
2101 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2102 else
2103 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2104 fi
2105
2106 for ac_site_file in $ac_site_files
2107 do
2108 case $ac_site_file in #(
2109 */*) :
2110 ;; #(
2111 *) :
2112 ac_site_file=./$ac_site_file ;;
2113 esac
2114 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2116 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2117 sed 's/^/| /' "$ac_site_file" >&5
2118 . "$ac_site_file" \
2119 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2120 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2121 as_fn_error $? "failed to load site script $ac_site_file
2122 See \`config.log' for more details" "$LINENO" 5; }
2123 fi
2124 done
2125
2126 if test -r "$cache_file"; then
2127 # Some versions of bash will fail to source /dev/null (special files
2128 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2129 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2130 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2131 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2132 case $cache_file in
2133 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2134 *) . "./$cache_file";;
2135 esac
2136 fi
2137 else
2138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2139 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2140 >$cache_file
2141 fi
2142
2143 # Test code for whether the C compiler supports C89 (global declarations)
2144 ac_c_conftest_c89_globals='
2145 /* Does the compiler advertise C89 conformance?
2146 Do not test the value of __STDC__, because some compilers set it to 0
2147 while being otherwise adequately conformant. */
2148 #if !defined __STDC__
2149 # error "Compiler does not advertise C89 conformance"
2150 #endif
2151
2152 #include <stddef.h>
2153 #include <stdarg.h>
2154 struct stat;
2155 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2156 struct buf { int x; };
2157 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2158 static char *e (p, i)
2159 char **p;
2160 int i;
2161 {
2162 return p[i];
2163 }
2164 static char *f (char * (*g) (char **, int), char **p, ...)
2165 {
2166 char *s;
2167 va_list v;
2168 va_start (v,p);
2169 s = g (p, va_arg (v,int));
2170 va_end (v);
2171 return s;
2172 }
2173
2174 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2175 function prototypes and stuff, but not \xHH hex character constants.
2176 These do not provoke an error unfortunately, instead are silently treated
2177 as an "x". The following induces an error, until -std is added to get
2178 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2179 array size at least. It is necessary to write \x00 == 0 to get something
2180 that is true only with -std. */
2181 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2182
2183 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2184 inside strings and character constants. */
2185 #define FOO(x) '\''x'\''
2186 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2187
2188 int test (int i, double x);
2189 struct s1 {int (*f) (int a);};
2190 struct s2 {int (*f) (double a);};
2191 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2192 int, int);'
2193
2194 # Test code for whether the C compiler supports C89 (body of main).
2195 ac_c_conftest_c89_main='
2196 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2197 '
2198
2199 # Test code for whether the C compiler supports C99 (global declarations)
2200 ac_c_conftest_c99_globals='
2201 // Does the compiler advertise C99 conformance?
2202 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2203 # error "Compiler does not advertise C99 conformance"
2204 #endif
2205
2206 #include <stdbool.h>
2207 extern int puts (const char *);
2208 extern int printf (const char *, ...);
2209 extern int dprintf (int, const char *, ...);
2210 extern void *malloc (size_t);
2211
2212 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2213 // dprintf is used instead of fprintf to avoid needing to declare
2214 // FILE and stderr.
2215 #define debug(...) dprintf (2, __VA_ARGS__)
2216 #define showlist(...) puts (#__VA_ARGS__)
2217 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2218 static void
2219 test_varargs_macros (void)
2220 {
2221 int x = 1234;
2222 int y = 5678;
2223 debug ("Flag");
2224 debug ("X = %d\n", x);
2225 showlist (The first, second, and third items.);
2226 report (x>y, "x is %d but y is %d", x, y);
2227 }
2228
2229 // Check long long types.
2230 #define BIG64 18446744073709551615ull
2231 #define BIG32 4294967295ul
2232 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2233 #if !BIG_OK
2234 #error "your preprocessor is broken"
2235 #endif
2236 #if BIG_OK
2237 #else
2238 #error "your preprocessor is broken"
2239 #endif
2240 static long long int bignum = -9223372036854775807LL;
2241 static unsigned long long int ubignum = BIG64;
2242
2243 struct incomplete_array
2244 {
2245 int datasize;
2246 double data[];
2247 };
2248
2249 struct named_init {
2250 int number;
2251 const wchar_t *name;
2252 double average;
2253 };
2254
2255 typedef const char *ccp;
2256
2257 static inline int
2258 test_restrict (ccp restrict text)
2259 {
2260 // See if C++-style comments work.
2261 // Iterate through items via the restricted pointer.
2262 // Also check for declarations in for loops.
2263 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2264 continue;
2265 return 0;
2266 }
2267
2268 // Check varargs and va_copy.
2269 static bool
2270 test_varargs (const char *format, ...)
2271 {
2272 va_list args;
2273 va_start (args, format);
2274 va_list args_copy;
2275 va_copy (args_copy, args);
2276
2277 const char *str = "";
2278 int number = 0;
2279 float fnumber = 0;
2280
2281 while (*format)
2282 {
2283 switch (*format++)
2284 {
2285 case '\''s'\'': // string
2286 str = va_arg (args_copy, const char *);
2287 break;
2288 case '\''d'\'': // int
2289 number = va_arg (args_copy, int);
2290 break;
2291 case '\''f'\'': // float
2292 fnumber = va_arg (args_copy, double);
2293 break;
2294 default:
2295 break;
2296 }
2297 }
2298 va_end (args_copy);
2299 va_end (args);
2300
2301 return *str && number && fnumber;
2302 }
2303 '
2304
2305 # Test code for whether the C compiler supports C99 (body of main).
2306 ac_c_conftest_c99_main='
2307 // Check bool.
2308 _Bool success = false;
2309 success |= (argc != 0);
2310
2311 // Check restrict.
2312 if (test_restrict ("String literal") == 0)
2313 success = true;
2314 char *restrict newvar = "Another string";
2315
2316 // Check varargs.
2317 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2318 test_varargs_macros ();
2319
2320 // Check flexible array members.
2321 struct incomplete_array *ia =
2322 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2323 ia->datasize = 10;
2324 for (int i = 0; i < ia->datasize; ++i)
2325 ia->data[i] = i * 1.234;
2326
2327 // Check named initializers.
2328 struct named_init ni = {
2329 .number = 34,
2330 .name = L"Test wide string",
2331 .average = 543.34343,
2332 };
2333
2334 ni.number = 58;
2335
2336 int dynamic_array[ni.number];
2337 dynamic_array[0] = argv[0][0];
2338 dynamic_array[ni.number - 1] = 543;
2339
2340 // work around unused variable warnings
2341 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2342 || dynamic_array[ni.number - 1] != 543);
2343 '
2344
2345 # Test code for whether the C compiler supports C11 (global declarations)
2346 ac_c_conftest_c11_globals='
2347 // Does the compiler advertise C11 conformance?
2348 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2349 # error "Compiler does not advertise C11 conformance"
2350 #endif
2351
2352 // Check _Alignas.
2353 char _Alignas (double) aligned_as_double;
2354 char _Alignas (0) no_special_alignment;
2355 extern char aligned_as_int;
2356 char _Alignas (0) _Alignas (int) aligned_as_int;
2357
2358 // Check _Alignof.
2359 enum
2360 {
2361 int_alignment = _Alignof (int),
2362 int_array_alignment = _Alignof (int[100]),
2363 char_alignment = _Alignof (char)
2364 };
2365 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2366
2367 // Check _Noreturn.
2368 int _Noreturn does_not_return (void) { for (;;) continue; }
2369
2370 // Check _Static_assert.
2371 struct test_static_assert
2372 {
2373 int x;
2374 _Static_assert (sizeof (int) <= sizeof (long int),
2375 "_Static_assert does not work in struct");
2376 long int y;
2377 };
2378
2379 // Check UTF-8 literals.
2380 #define u8 syntax error!
2381 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2382
2383 // Check duplicate typedefs.
2384 typedef long *long_ptr;
2385 typedef long int *long_ptr;
2386 typedef long_ptr long_ptr;
2387
2388 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2389 struct anonymous
2390 {
2391 union {
2392 struct { int i; int j; };
2393 struct { int k; long int l; } w;
2394 };
2395 int m;
2396 } v1;
2397 '
2398
2399 # Test code for whether the C compiler supports C11 (body of main).
2400 ac_c_conftest_c11_main='
2401 _Static_assert ((offsetof (struct anonymous, i)
2402 == offsetof (struct anonymous, w.k)),
2403 "Anonymous union alignment botch");
2404 v1.i = 2;
2405 v1.w.k = 5;
2406 ok |= v1.i != 5;
2407 '
2408
2409 # Test code for whether the C compiler supports C11 (complete).
2410 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2411 ${ac_c_conftest_c99_globals}
2412 ${ac_c_conftest_c11_globals}
2413
2414 int
2415 main (int argc, char **argv)
2416 {
2417 int ok = 0;
2418 ${ac_c_conftest_c89_main}
2419 ${ac_c_conftest_c99_main}
2420 ${ac_c_conftest_c11_main}
2421 return ok;
2422 }
2423 "
2424
2425 # Test code for whether the C compiler supports C99 (complete).
2426 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2427 ${ac_c_conftest_c99_globals}
2428
2429 int
2430 main (int argc, char **argv)
2431 {
2432 int ok = 0;
2433 ${ac_c_conftest_c89_main}
2434 ${ac_c_conftest_c99_main}
2435 return ok;
2436 }
2437 "
2438
2439 # Test code for whether the C compiler supports C89 (complete).
2440 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2441
2442 int
2443 main (int argc, char **argv)
2444 {
2445 int ok = 0;
2446 ${ac_c_conftest_c89_main}
2447 return ok;
2448 }
2449 "
2450
2451 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2452 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2453 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2454 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2455 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2456 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2457 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2458 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2459 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2460
2461 # Auxiliary files required by this configure script.
2462 ac_aux_files="ltmain.sh config.guess config.sub compile missing install-sh"
2463
2464 # Locations in which to look for auxiliary files.
2465 ac_aux_dir_candidates="${srcdir}/."
2466
2467 # Search for a directory containing all of the required auxiliary files,
2468 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2469 # If we don't find one directory that contains all the files we need,
2470 # we report the set of missing files from the *first* directory in
2471 # $ac_aux_dir_candidates and give up.
2472 ac_missing_aux_files=""
2473 ac_first_candidate=:
2474 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2476 as_found=false
2477 for as_dir in $ac_aux_dir_candidates
2478 do
2479 IFS=$as_save_IFS
2480 case $as_dir in #(((
2481 '') as_dir=./ ;;
2482 */) ;;
2483 *) as_dir=$as_dir/ ;;
2484 esac
2485 as_found=:
2486
2487 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2488 ac_aux_dir_found=yes
2489 ac_install_sh=
2490 for ac_aux in $ac_aux_files
2491 do
2492 # As a special case, if "install-sh" is required, that requirement
2493 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2494 # and $ac_install_sh is set appropriately for whichever one is found.
2495 if test x"$ac_aux" = x"install-sh"
2496 then
2497 if test -f "${as_dir}install-sh"; then
2498 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2499 ac_install_sh="${as_dir}install-sh -c"
2500 elif test -f "${as_dir}install.sh"; then
2501 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2502 ac_install_sh="${as_dir}install.sh -c"
2503 elif test -f "${as_dir}shtool"; then
2504 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2505 ac_install_sh="${as_dir}shtool install -c"
2506 else
2507 ac_aux_dir_found=no
2508 if $ac_first_candidate; then
2509 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2510 else
2511 break
2512 fi
2513 fi
2514 else
2515 if test -f "${as_dir}${ac_aux}"; then
2516 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2517 else
2518 ac_aux_dir_found=no
2519 if $ac_first_candidate; then
2520 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2521 else
2522 break
2523 fi
2524 fi
2525 fi
2526 done
2527 if test "$ac_aux_dir_found" = yes; then
2528 ac_aux_dir="$as_dir"
2529 break
2530 fi
2531 ac_first_candidate=false
2532
2533 as_found=false
2534 done
2535 IFS=$as_save_IFS
2536 if $as_found
2537 then :
2538
2539 else $as_nop
2540 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2541 fi
2542
2543
2544 # These three variables are undocumented and unsupported,
2545 # and are intended to be withdrawn in a future Autoconf release.
2546 # They can cause serious problems if a builder's source tree is in a directory
2547 # whose full name contains unusual characters.
2548 if test -f "${ac_aux_dir}config.guess"; then
2549 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2550 fi
2551 if test -f "${ac_aux_dir}config.sub"; then
2552 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2553 fi
2554 if test -f "$ac_aux_dir/configure"; then
2555 ac_configure="$SHELL ${ac_aux_dir}configure"
2556 fi
2557
2558 # Check that the precious variables saved in the cache have kept the same
2559 # value.
2560 ac_cache_corrupted=false
2561 for ac_var in $ac_precious_vars; do
2562 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2563 eval ac_new_set=\$ac_env_${ac_var}_set
2564 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2565 eval ac_new_val=\$ac_env_${ac_var}_value
2566 case $ac_old_set,$ac_new_set in
2567 set,)
2568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2569 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2570 ac_cache_corrupted=: ;;
2571 ,set)
2572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2573 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2574 ac_cache_corrupted=: ;;
2575 ,);;
2576 *)
2577 if test "x$ac_old_val" != "x$ac_new_val"; then
2578 # differences in whitespace do not lead to failure.
2579 ac_old_val_w=`echo x $ac_old_val`
2580 ac_new_val_w=`echo x $ac_new_val`
2581 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2583 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2584 ac_cache_corrupted=:
2585 else
2586 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2587 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2588 eval $ac_var=\$ac_old_val
2589 fi
2590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2591 printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
2592 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2593 printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
2594 fi;;
2595 esac
2596 # Pass precious variables to config.status.
2597 if test "$ac_new_set" = set; then
2598 case $ac_new_val in
2599 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2600 *) ac_arg=$ac_var=$ac_new_val ;;
2601 esac
2602 case " $ac_configure_args " in
2603 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2604 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2605 esac
2606 fi
2607 done
2608 if $ac_cache_corrupted; then
2609 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2610 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2612 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2613 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2614 and start over" "$LINENO" 5
2615 fi
2616 ## -------------------- ##
2617 ## Main body of script. ##
2618 ## -------------------- ##
2619
2620 ac_ext=c
2621 ac_cpp='$CPP $CPPFLAGS'
2622 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2623 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2624 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2625
2626
2627
2628 ac_config_headers="$ac_config_headers config.h"
2629
2630
2631
2632 # Initialize Automake
2633 am__api_version='1.16'
2634
2635
2636
2637 # Find a good install program. We prefer a C program (faster),
2638 # so one script is as good as another. But avoid the broken or
2639 # incompatible versions:
2640 # SysV /etc/install, /usr/sbin/install
2641 # SunOS /usr/etc/install
2642 # IRIX /sbin/install
2643 # AIX /bin/install
2644 # AmigaOS /C/install, which installs bootblocks on floppy discs
2645 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2646 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2647 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2648 # OS/2's system install, which has a completely different semantic
2649 # ./install, which can be erroneously created by make from ./install.sh.
2650 # Reject install programs that cannot install multiple files.
2651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2652 printf %s "checking for a BSD-compatible install... " >&6; }
2653 if test -z "$INSTALL"; then
2654 if test ${ac_cv_path_install+y}
2655 then :
2656 printf %s "(cached) " >&6
2657 else $as_nop
2658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2659 for as_dir in $PATH
2660 do
2661 IFS=$as_save_IFS
2662 case $as_dir in #(((
2663 '') as_dir=./ ;;
2664 */) ;;
2665 *) as_dir=$as_dir/ ;;
2666 esac
2667 # Account for fact that we put trailing slashes in our PATH walk.
2668 case $as_dir in #((
2669 ./ | /[cC]/* | \
2670 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2671 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2672 /usr/ucb/* ) ;;
2673 *)
2674 # OSF1 and SCO ODT 3.0 have their own names for install.
2675 # Don't use installbsd from OSF since it installs stuff as root
2676 # by default.
2677 for ac_prog in ginstall scoinst install; do
2678 for ac_exec_ext in '' $ac_executable_extensions; do
2679 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
2680 if test $ac_prog = install &&
2681 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2682 # AIX install. It has an incompatible calling convention.
2683 :
2684 elif test $ac_prog = install &&
2685 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2686 # program-specific install script used by HP pwplus--don't use.
2687 :
2688 else
2689 rm -rf conftest.one conftest.two conftest.dir
2690 echo one > conftest.one
2691 echo two > conftest.two
2692 mkdir conftest.dir
2693 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
2694 test -s conftest.one && test -s conftest.two &&
2695 test -s conftest.dir/conftest.one &&
2696 test -s conftest.dir/conftest.two
2697 then
2698 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
2699 break 3
2700 fi
2701 fi
2702 fi
2703 done
2704 done
2705 ;;
2706 esac
2707
2708 done
2709 IFS=$as_save_IFS
2710
2711 rm -rf conftest.one conftest.two conftest.dir
2712
2713 fi
2714 if test ${ac_cv_path_install+y}; then
2715 INSTALL=$ac_cv_path_install
2716 else
2717 # As a last resort, use the slow shell script. Don't cache a
2718 # value for INSTALL within a source directory, because that will
2719 # break other packages using the cache if that directory is
2720 # removed, or if the value is a relative name.
2721 INSTALL=$ac_install_sh
2722 fi
2723 fi
2724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2725 printf "%s\n" "$INSTALL" >&6; }
2726
2727 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2728 # It thinks the first close brace ends the variable substitution.
2729 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2730
2731 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2732
2733 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2734
2735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2736 printf %s "checking whether build environment is sane... " >&6; }
2737 # Reject unsafe characters in $srcdir or the absolute working directory
2738 # name. Accept space and tab only in the latter.
2739 am_lf='
2740 '
2741 case `pwd` in
2742 *[\\\"\#\$\&\'\`$am_lf]*)
2743 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2744 esac
2745 case $srcdir in
2746 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2747 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2748 esac
2749
2750 # Do 'set' in a subshell so we don't clobber the current shell's
2751 # arguments. Must try -L first in case configure is actually a
2752 # symlink; some systems play weird games with the mod time of symlinks
2753 # (eg FreeBSD returns the mod time of the symlink's containing
2754 # directory).
2755 if (
2756 am_has_slept=no
2757 for am_try in 1 2; do
2758 echo "timestamp, slept: $am_has_slept" > conftest.file
2759 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2760 if test "$*" = "X"; then
2761 # -L didn't work.
2762 set X `ls -t "$srcdir/configure" conftest.file`
2763 fi
2764 if test "$*" != "X $srcdir/configure conftest.file" \
2765 && test "$*" != "X conftest.file $srcdir/configure"; then
2766
2767 # If neither matched, then we have a broken ls. This can happen
2768 # if, for instance, CONFIG_SHELL is bash and it inherits a
2769 # broken ls alias from the environment. This has actually
2770 # happened. Such a system could not be considered "sane".
2771 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2772 alias in your environment" "$LINENO" 5
2773 fi
2774 if test "$2" = conftest.file || test $am_try -eq 2; then
2775 break
2776 fi
2777 # Just in case.
2778 sleep 1
2779 am_has_slept=yes
2780 done
2781 test "$2" = conftest.file
2782 )
2783 then
2784 # Ok.
2785 :
2786 else
2787 as_fn_error $? "newly created file is older than distributed files!
2788 Check your system clock" "$LINENO" 5
2789 fi
2790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2791 printf "%s\n" "yes" >&6; }
2792 # If we didn't sleep, we still need to ensure time stamps of config.status and
2793 # generated files are strictly newer.
2794 am_sleep_pid=
2795 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2796 ( sleep 1 ) &
2797 am_sleep_pid=$!
2798 fi
2799
2800 rm -f conftest.file
2801
2802 test "$program_prefix" != NONE &&
2803 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2804 # Use a double $ so make ignores it.
2805 test "$program_suffix" != NONE &&
2806 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2807 # Double any \ or $.
2808 # By default was `s,x,x', remove it if useless.
2809 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2810 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
2811
2812
2813 # Expand $ac_aux_dir to an absolute path.
2814 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2815
2816
2817 if test x"${MISSING+set}" != xset; then
2818 MISSING="\${SHELL} '$am_aux_dir/missing'"
2819 fi
2820 # Use eval to expand $SHELL
2821 if eval "$MISSING --is-lightweight"; then
2822 am_missing_run="$MISSING "
2823 else
2824 am_missing_run=
2825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2826 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2827 fi
2828
2829 if test x"${install_sh+set}" != xset; then
2830 case $am_aux_dir in
2831 *\ * | *\ *)
2832 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2833 *)
2834 install_sh="\${SHELL} $am_aux_dir/install-sh"
2835 esac
2836 fi
2837
2838 # Installed binaries are usually stripped using 'strip' when the user
2839 # run "make install-strip". However 'strip' might not be the right
2840 # tool to use in cross-compilation environments, therefore Automake
2841 # will honor the 'STRIP' environment variable to overrule this program.
2842 if test "$cross_compiling" != no; then
2843 if test -n "$ac_tool_prefix"; then
2844 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2845 set dummy ${ac_tool_prefix}strip; ac_word=$2
2846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2847 printf %s "checking for $ac_word... " >&6; }
2848 if test ${ac_cv_prog_STRIP+y}
2849 then :
2850 printf %s "(cached) " >&6
2851 else $as_nop
2852 if test -n "$STRIP"; then
2853 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2854 else
2855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2856 for as_dir in $PATH
2857 do
2858 IFS=$as_save_IFS
2859 case $as_dir in #(((
2860 '') as_dir=./ ;;
2861 */) ;;
2862 *) as_dir=$as_dir/ ;;
2863 esac
2864 for ac_exec_ext in '' $ac_executable_extensions; do
2865 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2866 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2867 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2868 break 2
2869 fi
2870 done
2871 done
2872 IFS=$as_save_IFS
2873
2874 fi
2875 fi
2876 STRIP=$ac_cv_prog_STRIP
2877 if test -n "$STRIP"; then
2878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2879 printf "%s\n" "$STRIP" >&6; }
2880 else
2881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2882 printf "%s\n" "no" >&6; }
2883 fi
2884
2885
2886 fi
2887 if test -z "$ac_cv_prog_STRIP"; then
2888 ac_ct_STRIP=$STRIP
2889 # Extract the first word of "strip", so it can be a program name with args.
2890 set dummy strip; ac_word=$2
2891 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2892 printf %s "checking for $ac_word... " >&6; }
2893 if test ${ac_cv_prog_ac_ct_STRIP+y}
2894 then :
2895 printf %s "(cached) " >&6
2896 else $as_nop
2897 if test -n "$ac_ct_STRIP"; then
2898 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2899 else
2900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2901 for as_dir in $PATH
2902 do
2903 IFS=$as_save_IFS
2904 case $as_dir in #(((
2905 '') as_dir=./ ;;
2906 */) ;;
2907 *) as_dir=$as_dir/ ;;
2908 esac
2909 for ac_exec_ext in '' $ac_executable_extensions; do
2910 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2911 ac_cv_prog_ac_ct_STRIP="strip"
2912 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2913 break 2
2914 fi
2915 done
2916 done
2917 IFS=$as_save_IFS
2918
2919 fi
2920 fi
2921 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2922 if test -n "$ac_ct_STRIP"; then
2923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2924 printf "%s\n" "$ac_ct_STRIP" >&6; }
2925 else
2926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2927 printf "%s\n" "no" >&6; }
2928 fi
2929
2930 if test "x$ac_ct_STRIP" = x; then
2931 STRIP=":"
2932 else
2933 case $cross_compiling:$ac_tool_warned in
2934 yes:)
2935 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2936 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2937 ac_tool_warned=yes ;;
2938 esac
2939 STRIP=$ac_ct_STRIP
2940 fi
2941 else
2942 STRIP="$ac_cv_prog_STRIP"
2943 fi
2944
2945 fi
2946 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2947
2948
2949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
2950 printf %s "checking for a race-free mkdir -p... " >&6; }
2951 if test -z "$MKDIR_P"; then
2952 if test ${ac_cv_path_mkdir+y}
2953 then :
2954 printf %s "(cached) " >&6
2955 else $as_nop
2956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2957 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2958 do
2959 IFS=$as_save_IFS
2960 case $as_dir in #(((
2961 '') as_dir=./ ;;
2962 */) ;;
2963 *) as_dir=$as_dir/ ;;
2964 esac
2965 for ac_prog in mkdir gmkdir; do
2966 for ac_exec_ext in '' $ac_executable_extensions; do
2967 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
2968 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
2969 'mkdir ('*'coreutils) '* | \
2970 'BusyBox '* | \
2971 'mkdir (fileutils) '4.1*)
2972 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
2973 break 3;;
2974 esac
2975 done
2976 done
2977 done
2978 IFS=$as_save_IFS
2979
2980 fi
2981
2982 test -d ./--version && rmdir ./--version
2983 if test ${ac_cv_path_mkdir+y}; then
2984 MKDIR_P="$ac_cv_path_mkdir -p"
2985 else
2986 # As a last resort, use the slow shell script. Don't cache a
2987 # value for MKDIR_P within a source directory, because that will
2988 # break other packages using the cache if that directory is
2989 # removed, or if the value is a relative name.
2990 MKDIR_P="$ac_install_sh -d"
2991 fi
2992 fi
2993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2994 printf "%s\n" "$MKDIR_P" >&6; }
2995
2996 for ac_prog in gawk mawk nawk awk
2997 do
2998 # Extract the first word of "$ac_prog", so it can be a program name with args.
2999 set dummy $ac_prog; ac_word=$2
3000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3001 printf %s "checking for $ac_word... " >&6; }
3002 if test ${ac_cv_prog_AWK+y}
3003 then :
3004 printf %s "(cached) " >&6
3005 else $as_nop
3006 if test -n "$AWK"; then
3007 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3008 else
3009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3010 for as_dir in $PATH
3011 do
3012 IFS=$as_save_IFS
3013 case $as_dir in #(((
3014 '') as_dir=./ ;;
3015 */) ;;
3016 *) as_dir=$as_dir/ ;;
3017 esac
3018 for ac_exec_ext in '' $ac_executable_extensions; do
3019 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3020 ac_cv_prog_AWK="$ac_prog"
3021 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3022 break 2
3023 fi
3024 done
3025 done
3026 IFS=$as_save_IFS
3027
3028 fi
3029 fi
3030 AWK=$ac_cv_prog_AWK
3031 if test -n "$AWK"; then
3032 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3033 printf "%s\n" "$AWK" >&6; }
3034 else
3035 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3036 printf "%s\n" "no" >&6; }
3037 fi
3038
3039
3040 test -n "$AWK" && break
3041 done
3042
3043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3044 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3045 set x ${MAKE-make}
3046 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3047 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3048 then :
3049 printf %s "(cached) " >&6
3050 else $as_nop
3051 cat >conftest.make <<\_ACEOF
3052 SHELL = /bin/sh
3053 all:
3054 @echo '@@@%%%=$(MAKE)=@@@%%%'
3055 _ACEOF
3056 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3057 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3058 *@@@%%%=?*=@@@%%%*)
3059 eval ac_cv_prog_make_${ac_make}_set=yes;;
3060 *)
3061 eval ac_cv_prog_make_${ac_make}_set=no;;
3062 esac
3063 rm -f conftest.make
3064 fi
3065 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3067 printf "%s\n" "yes" >&6; }
3068 SET_MAKE=
3069 else
3070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3071 printf "%s\n" "no" >&6; }
3072 SET_MAKE="MAKE=${MAKE-make}"
3073 fi
3074
3075 rm -rf .tst 2>/dev/null
3076 mkdir .tst 2>/dev/null
3077 if test -d .tst; then
3078 am__leading_dot=.
3079 else
3080 am__leading_dot=_
3081 fi
3082 rmdir .tst 2>/dev/null
3083
3084 # Check whether --enable-silent-rules was given.
3085 if test ${enable_silent_rules+y}
3086 then :
3087 enableval=$enable_silent_rules;
3088 fi
3089
3090 case $enable_silent_rules in # (((
3091 yes) AM_DEFAULT_VERBOSITY=0;;
3092 no) AM_DEFAULT_VERBOSITY=1;;
3093 *) AM_DEFAULT_VERBOSITY=1;;
3094 esac
3095 am_make=${MAKE-make}
3096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3097 printf %s "checking whether $am_make supports nested variables... " >&6; }
3098 if test ${am_cv_make_support_nested_variables+y}
3099 then :
3100 printf %s "(cached) " >&6
3101 else $as_nop
3102 if printf "%s\n" 'TRUE=$(BAR$(V))
3103 BAR0=false
3104 BAR1=true
3105 V=1
3106 am__doit:
3107 @$(TRUE)
3108 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3109 am_cv_make_support_nested_variables=yes
3110 else
3111 am_cv_make_support_nested_variables=no
3112 fi
3113 fi
3114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3115 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3116 if test $am_cv_make_support_nested_variables = yes; then
3117 AM_V='$(V)'
3118 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3119 else
3120 AM_V=$AM_DEFAULT_VERBOSITY
3121 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3122 fi
3123 AM_BACKSLASH='\'
3124
3125 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3126 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3127 # is not polluted with repeated "-I."
3128 am__isrc=' -I$(srcdir)'
3129 # test to see if srcdir already configured
3130 if test -f $srcdir/config.status; then
3131 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3132 fi
3133 fi
3134
3135 # test whether we have cygpath
3136 if test -z "$CYGPATH_W"; then
3137 if (cygpath --version) >/dev/null 2>/dev/null; then
3138 CYGPATH_W='cygpath -w'
3139 else
3140 CYGPATH_W=echo
3141 fi
3142 fi
3143
3144
3145 # Define the identity of the package.
3146 PACKAGE='xf86-video-cirrus'
3147 VERSION='1.6.0'
3148
3149
3150 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3151
3152
3153 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3154
3155 # Some tools Automake needs.
3156
3157 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3158
3159
3160 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3161
3162
3163 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3164
3165
3166 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3167
3168
3169 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3170
3171 # For better backward compatibility. To be removed once Automake 1.9.x
3172 # dies out for good. For more background, see:
3173 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3174 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3175 mkdir_p='$(MKDIR_P)'
3176
3177 # We need awk for the "check" target (and possibly the TAP driver). The
3178 # system "awk" is bad on some platforms.
3179 # Always define AMTAR for backward compatibility. Yes, it's still used
3180 # in the wild :-( We should find a proper way to deprecate it ...
3181 AMTAR='$${TAR-tar}'
3182
3183
3184 # We'll loop over all known methods to create a tar archive until one works.
3185 _am_tools='gnutar pax cpio none'
3186
3187 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3188
3189
3190
3191
3192
3193 # Variables for tags utilities; see am/tags.am
3194 if test -z "$CTAGS"; then
3195 CTAGS=ctags
3196 fi
3197
3198 if test -z "$ETAGS"; then
3199 ETAGS=etags
3200 fi
3201
3202 if test -z "$CSCOPE"; then
3203 CSCOPE=cscope
3204 fi
3205
3206
3207
3208 # POSIX will say in a future version that running "rm -f" with no argument
3209 # is OK; and we want to be able to make that assumption in our Makefile
3210 # recipes. So use an aggressive probe to check that the usage we want is
3211 # actually supported "in the wild" to an acceptable degree.
3212 # See automake bug#10828.
3213 # To make any issue more visible, cause the running configure to be aborted
3214 # by default if the 'rm' program in use doesn't match our expectations; the
3215 # user can still override this though.
3216 if rm -f && rm -fr && rm -rf; then : OK; else
3217 cat >&2 <<'END'
3218 Oops!
3219
3220 Your 'rm' program seems unable to run without file operands specified
3221 on the command line, even when the '-f' option is present. This is contrary
3222 to the behaviour of most rm programs out there, and not conforming with
3223 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3224
3225 Please tell bug-automake@gnu.org about your system, including the value
3226 of your $PATH and any error possibly output before this message. This
3227 can help us improve future automake versions.
3228
3229 END
3230 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3231 echo 'Configuration will proceed anyway, since you have set the' >&2
3232 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3233 echo >&2
3234 else
3235 cat >&2 <<'END'
3236 Aborting the configuration process, to ensure you take notice of the issue.
3237
3238 You can download and install GNU coreutils to get an 'rm' implementation
3239 that behaves properly: <https://www.gnu.org/software/coreutils/>.
3240
3241 If you want to complete the configuration process using your problematic
3242 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3243 to "yes", and re-run configure.
3244
3245 END
3246 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3247 fi
3248 fi
3249
3250
3251 # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
3252
3253
3254
3255
3256
3257
3258
3259
3260
3261
3262
3263
3264
3265
3266
3267
3268
3269
3270
3271
3272 DEPDIR="${am__leading_dot}deps"
3273
3274 ac_config_commands="$ac_config_commands depfiles"
3275
3276 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3277 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
3278 cat > confinc.mk << 'END'
3279 am__doit:
3280 @echo this is the am__doit target >confinc.out
3281 .PHONY: am__doit
3282 END
3283 am__include="#"
3284 am__quote=
3285 # BSD make does it like this.
3286 echo '.include "confinc.mk" # ignored' > confmf.BSD
3287 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
3288 echo 'include confinc.mk # ignored' > confmf.GNU
3289 _am_result=no
3290 for s in GNU BSD; do
3291 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3292 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3293 ac_status=$?
3294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3295 (exit $ac_status); }
3296 case $?:`cat confinc.out 2>/dev/null` in #(
3297 '0:this is the am__doit target') :
3298 case $s in #(
3299 BSD) :
3300 am__include='.include' am__quote='"' ;; #(
3301 *) :
3302 am__include='include' am__quote='' ;;
3303 esac ;; #(
3304 *) :
3305 ;;
3306 esac
3307 if test "$am__include" != "#"; then
3308 _am_result="yes ($s style)"
3309 break
3310 fi
3311 done
3312 rm -f confinc.* confmf.*
3313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3314 printf "%s\n" "${_am_result}" >&6; }
3315
3316 # Check whether --enable-dependency-tracking was given.
3317 if test ${enable_dependency_tracking+y}
3318 then :
3319 enableval=$enable_dependency_tracking;
3320 fi
3321
3322 if test "x$enable_dependency_tracking" != xno; then
3323 am_depcomp="$ac_aux_dir/depcomp"
3324 AMDEPBACKSLASH='\'
3325 am__nodep='_no'
3326 fi
3327 if test "x$enable_dependency_tracking" != xno; then
3328 AMDEP_TRUE=
3329 AMDEP_FALSE='#'
3330 else
3331 AMDEP_TRUE='#'
3332 AMDEP_FALSE=
3333 fi
3334
3335
3336 ac_ext=c
3337 ac_cpp='$CPP $CPPFLAGS'
3338 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3339 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3340 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3341 if test -n "$ac_tool_prefix"; then
3342 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3343 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3345 printf %s "checking for $ac_word... " >&6; }
3346 if test ${ac_cv_prog_CC+y}
3347 then :
3348 printf %s "(cached) " >&6
3349 else $as_nop
3350 if test -n "$CC"; then
3351 ac_cv_prog_CC="$CC" # Let the user override the test.
3352 else
3353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3354 for as_dir in $PATH
3355 do
3356 IFS=$as_save_IFS
3357 case $as_dir in #(((
3358 '') as_dir=./ ;;
3359 */) ;;
3360 *) as_dir=$as_dir/ ;;
3361 esac
3362 for ac_exec_ext in '' $ac_executable_extensions; do
3363 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3364 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3365 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3366 break 2
3367 fi
3368 done
3369 done
3370 IFS=$as_save_IFS
3371
3372 fi
3373 fi
3374 CC=$ac_cv_prog_CC
3375 if test -n "$CC"; then
3376 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3377 printf "%s\n" "$CC" >&6; }
3378 else
3379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3380 printf "%s\n" "no" >&6; }
3381 fi
3382
3383
3384 fi
3385 if test -z "$ac_cv_prog_CC"; then
3386 ac_ct_CC=$CC
3387 # Extract the first word of "gcc", so it can be a program name with args.
3388 set dummy gcc; ac_word=$2
3389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3390 printf %s "checking for $ac_word... " >&6; }
3391 if test ${ac_cv_prog_ac_ct_CC+y}
3392 then :
3393 printf %s "(cached) " >&6
3394 else $as_nop
3395 if test -n "$ac_ct_CC"; then
3396 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3397 else
3398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3399 for as_dir in $PATH
3400 do
3401 IFS=$as_save_IFS
3402 case $as_dir in #(((
3403 '') as_dir=./ ;;
3404 */) ;;
3405 *) as_dir=$as_dir/ ;;
3406 esac
3407 for ac_exec_ext in '' $ac_executable_extensions; do
3408 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3409 ac_cv_prog_ac_ct_CC="gcc"
3410 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3411 break 2
3412 fi
3413 done
3414 done
3415 IFS=$as_save_IFS
3416
3417 fi
3418 fi
3419 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3420 if test -n "$ac_ct_CC"; then
3421 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3422 printf "%s\n" "$ac_ct_CC" >&6; }
3423 else
3424 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3425 printf "%s\n" "no" >&6; }
3426 fi
3427
3428 if test "x$ac_ct_CC" = x; then
3429 CC=""
3430 else
3431 case $cross_compiling:$ac_tool_warned in
3432 yes:)
3433 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3434 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3435 ac_tool_warned=yes ;;
3436 esac
3437 CC=$ac_ct_CC
3438 fi
3439 else
3440 CC="$ac_cv_prog_CC"
3441 fi
3442
3443 if test -z "$CC"; then
3444 if test -n "$ac_tool_prefix"; then
3445 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3446 set dummy ${ac_tool_prefix}cc; ac_word=$2
3447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3448 printf %s "checking for $ac_word... " >&6; }
3449 if test ${ac_cv_prog_CC+y}
3450 then :
3451 printf %s "(cached) " >&6
3452 else $as_nop
3453 if test -n "$CC"; then
3454 ac_cv_prog_CC="$CC" # Let the user override the test.
3455 else
3456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3457 for as_dir in $PATH
3458 do
3459 IFS=$as_save_IFS
3460 case $as_dir in #(((
3461 '') as_dir=./ ;;
3462 */) ;;
3463 *) as_dir=$as_dir/ ;;
3464 esac
3465 for ac_exec_ext in '' $ac_executable_extensions; do
3466 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3467 ac_cv_prog_CC="${ac_tool_prefix}cc"
3468 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3469 break 2
3470 fi
3471 done
3472 done
3473 IFS=$as_save_IFS
3474
3475 fi
3476 fi
3477 CC=$ac_cv_prog_CC
3478 if test -n "$CC"; then
3479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3480 printf "%s\n" "$CC" >&6; }
3481 else
3482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3483 printf "%s\n" "no" >&6; }
3484 fi
3485
3486
3487 fi
3488 fi
3489 if test -z "$CC"; then
3490 # Extract the first word of "cc", so it can be a program name with args.
3491 set dummy cc; ac_word=$2
3492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3493 printf %s "checking for $ac_word... " >&6; }
3494 if test ${ac_cv_prog_CC+y}
3495 then :
3496 printf %s "(cached) " >&6
3497 else $as_nop
3498 if test -n "$CC"; then
3499 ac_cv_prog_CC="$CC" # Let the user override the test.
3500 else
3501 ac_prog_rejected=no
3502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3503 for as_dir in $PATH
3504 do
3505 IFS=$as_save_IFS
3506 case $as_dir in #(((
3507 '') as_dir=./ ;;
3508 */) ;;
3509 *) as_dir=$as_dir/ ;;
3510 esac
3511 for ac_exec_ext in '' $ac_executable_extensions; do
3512 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3513 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3514 ac_prog_rejected=yes
3515 continue
3516 fi
3517 ac_cv_prog_CC="cc"
3518 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3519 break 2
3520 fi
3521 done
3522 done
3523 IFS=$as_save_IFS
3524
3525 if test $ac_prog_rejected = yes; then
3526 # We found a bogon in the path, so make sure we never use it.
3527 set dummy $ac_cv_prog_CC
3528 shift
3529 if test $# != 0; then
3530 # We chose a different compiler from the bogus one.
3531 # However, it has the same basename, so the bogon will be chosen
3532 # first if we set CC to just the basename; use the full file name.
3533 shift
3534 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3535 fi
3536 fi
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 if test -z "$CC"; then
3551 if test -n "$ac_tool_prefix"; then
3552 for ac_prog in cl.exe
3553 do
3554 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3555 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3557 printf %s "checking for $ac_word... " >&6; }
3558 if test ${ac_cv_prog_CC+y}
3559 then :
3560 printf %s "(cached) " >&6
3561 else $as_nop
3562 if test -n "$CC"; then
3563 ac_cv_prog_CC="$CC" # Let the user override the test.
3564 else
3565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3566 for as_dir in $PATH
3567 do
3568 IFS=$as_save_IFS
3569 case $as_dir in #(((
3570 '') as_dir=./ ;;
3571 */) ;;
3572 *) as_dir=$as_dir/ ;;
3573 esac
3574 for ac_exec_ext in '' $ac_executable_extensions; do
3575 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3576 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3577 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3578 break 2
3579 fi
3580 done
3581 done
3582 IFS=$as_save_IFS
3583
3584 fi
3585 fi
3586 CC=$ac_cv_prog_CC
3587 if test -n "$CC"; then
3588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3589 printf "%s\n" "$CC" >&6; }
3590 else
3591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3592 printf "%s\n" "no" >&6; }
3593 fi
3594
3595
3596 test -n "$CC" && break
3597 done
3598 fi
3599 if test -z "$CC"; then
3600 ac_ct_CC=$CC
3601 for ac_prog in cl.exe
3602 do
3603 # Extract the first word of "$ac_prog", so it can be a program name with args.
3604 set dummy $ac_prog; ac_word=$2
3605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3606 printf %s "checking for $ac_word... " >&6; }
3607 if test ${ac_cv_prog_ac_ct_CC+y}
3608 then :
3609 printf %s "(cached) " >&6
3610 else $as_nop
3611 if test -n "$ac_ct_CC"; then
3612 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3613 else
3614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3615 for as_dir in $PATH
3616 do
3617 IFS=$as_save_IFS
3618 case $as_dir in #(((
3619 '') as_dir=./ ;;
3620 */) ;;
3621 *) as_dir=$as_dir/ ;;
3622 esac
3623 for ac_exec_ext in '' $ac_executable_extensions; do
3624 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3625 ac_cv_prog_ac_ct_CC="$ac_prog"
3626 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3627 break 2
3628 fi
3629 done
3630 done
3631 IFS=$as_save_IFS
3632
3633 fi
3634 fi
3635 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3636 if test -n "$ac_ct_CC"; then
3637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3638 printf "%s\n" "$ac_ct_CC" >&6; }
3639 else
3640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3641 printf "%s\n" "no" >&6; }
3642 fi
3643
3644
3645 test -n "$ac_ct_CC" && break
3646 done
3647
3648 if test "x$ac_ct_CC" = x; then
3649 CC=""
3650 else
3651 case $cross_compiling:$ac_tool_warned in
3652 yes:)
3653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3654 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3655 ac_tool_warned=yes ;;
3656 esac
3657 CC=$ac_ct_CC
3658 fi
3659 fi
3660
3661 fi
3662 if test -z "$CC"; then
3663 if test -n "$ac_tool_prefix"; then
3664 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3665 set dummy ${ac_tool_prefix}clang; ac_word=$2
3666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3667 printf %s "checking for $ac_word... " >&6; }
3668 if test ${ac_cv_prog_CC+y}
3669 then :
3670 printf %s "(cached) " >&6
3671 else $as_nop
3672 if test -n "$CC"; then
3673 ac_cv_prog_CC="$CC" # Let the user override the test.
3674 else
3675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3676 for as_dir in $PATH
3677 do
3678 IFS=$as_save_IFS
3679 case $as_dir in #(((
3680 '') as_dir=./ ;;
3681 */) ;;
3682 *) as_dir=$as_dir/ ;;
3683 esac
3684 for ac_exec_ext in '' $ac_executable_extensions; do
3685 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3686 ac_cv_prog_CC="${ac_tool_prefix}clang"
3687 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3688 break 2
3689 fi
3690 done
3691 done
3692 IFS=$as_save_IFS
3693
3694 fi
3695 fi
3696 CC=$ac_cv_prog_CC
3697 if test -n "$CC"; then
3698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3699 printf "%s\n" "$CC" >&6; }
3700 else
3701 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3702 printf "%s\n" "no" >&6; }
3703 fi
3704
3705
3706 fi
3707 if test -z "$ac_cv_prog_CC"; then
3708 ac_ct_CC=$CC
3709 # Extract the first word of "clang", so it can be a program name with args.
3710 set dummy clang; ac_word=$2
3711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3712 printf %s "checking for $ac_word... " >&6; }
3713 if test ${ac_cv_prog_ac_ct_CC+y}
3714 then :
3715 printf %s "(cached) " >&6
3716 else $as_nop
3717 if test -n "$ac_ct_CC"; then
3718 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3719 else
3720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3721 for as_dir in $PATH
3722 do
3723 IFS=$as_save_IFS
3724 case $as_dir in #(((
3725 '') as_dir=./ ;;
3726 */) ;;
3727 *) as_dir=$as_dir/ ;;
3728 esac
3729 for ac_exec_ext in '' $ac_executable_extensions; do
3730 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3731 ac_cv_prog_ac_ct_CC="clang"
3732 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3733 break 2
3734 fi
3735 done
3736 done
3737 IFS=$as_save_IFS
3738
3739 fi
3740 fi
3741 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3742 if test -n "$ac_ct_CC"; then
3743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3744 printf "%s\n" "$ac_ct_CC" >&6; }
3745 else
3746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3747 printf "%s\n" "no" >&6; }
3748 fi
3749
3750 if test "x$ac_ct_CC" = x; then
3751 CC=""
3752 else
3753 case $cross_compiling:$ac_tool_warned in
3754 yes:)
3755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3756 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3757 ac_tool_warned=yes ;;
3758 esac
3759 CC=$ac_ct_CC
3760 fi
3761 else
3762 CC="$ac_cv_prog_CC"
3763 fi
3764
3765 fi
3766
3767
3768 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3769 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3770 as_fn_error $? "no acceptable C compiler found in \$PATH
3771 See \`config.log' for more details" "$LINENO" 5; }
3772
3773 # Provide some information about the compiler.
3774 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3775 set X $ac_compile
3776 ac_compiler=$2
3777 for ac_option in --version -v -V -qversion -version; do
3778 { { ac_try="$ac_compiler $ac_option >&5"
3779 case "(($ac_try" in
3780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3781 *) ac_try_echo=$ac_try;;
3782 esac
3783 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3784 printf "%s\n" "$ac_try_echo"; } >&5
3785 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3786 ac_status=$?
3787 if test -s conftest.err; then
3788 sed '10a\
3789 ... rest of stderr output deleted ...
3790 10q' conftest.err >conftest.er1
3791 cat conftest.er1 >&5
3792 fi
3793 rm -f conftest.er1 conftest.err
3794 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3795 test $ac_status = 0; }
3796 done
3797
3798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3799 /* end confdefs.h. */
3800
3801 int
3802 main (void)
3803 {
3804
3805 ;
3806 return 0;
3807 }
3808 _ACEOF
3809 ac_clean_files_save=$ac_clean_files
3810 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3811 # Try to create an executable without -o first, disregard a.out.
3812 # It will help us diagnose broken compilers, and finding out an intuition
3813 # of exeext.
3814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3815 printf %s "checking whether the C compiler works... " >&6; }
3816 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3817
3818 # The possible output files:
3819 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3820
3821 ac_rmfiles=
3822 for ac_file in $ac_files
3823 do
3824 case $ac_file in
3825 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3826 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3827 esac
3828 done
3829 rm -f $ac_rmfiles
3830
3831 if { { ac_try="$ac_link_default"
3832 case "(($ac_try" in
3833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3834 *) ac_try_echo=$ac_try;;
3835 esac
3836 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3837 printf "%s\n" "$ac_try_echo"; } >&5
3838 (eval "$ac_link_default") 2>&5
3839 ac_status=$?
3840 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3841 test $ac_status = 0; }
3842 then :
3843 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3844 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3845 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3846 # so that the user can short-circuit this test for compilers unknown to
3847 # Autoconf.
3848 for ac_file in $ac_files ''
3849 do
3850 test -f "$ac_file" || continue
3851 case $ac_file in
3852 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3853 ;;
3854 [ab].out )
3855 # We found the default executable, but exeext='' is most
3856 # certainly right.
3857 break;;
3858 *.* )
3859 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3860 then :; else
3861 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3862 fi
3863 # We set ac_cv_exeext here because the later test for it is not
3864 # safe: cross compilers may not add the suffix if given an `-o'
3865 # argument, so we may need to know it at that point already.
3866 # Even if this section looks crufty: it has the advantage of
3867 # actually working.
3868 break;;
3869 * )
3870 break;;
3871 esac
3872 done
3873 test "$ac_cv_exeext" = no && ac_cv_exeext=
3874
3875 else $as_nop
3876 ac_file=''
3877 fi
3878 if test -z "$ac_file"
3879 then :
3880 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3881 printf "%s\n" "no" >&6; }
3882 printf "%s\n" "$as_me: failed program was:" >&5
3883 sed 's/^/| /' conftest.$ac_ext >&5
3884
3885 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3886 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3887 as_fn_error 77 "C compiler cannot create executables
3888 See \`config.log' for more details" "$LINENO" 5; }
3889 else $as_nop
3890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3891 printf "%s\n" "yes" >&6; }
3892 fi
3893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3894 printf %s "checking for C compiler default output file name... " >&6; }
3895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3896 printf "%s\n" "$ac_file" >&6; }
3897 ac_exeext=$ac_cv_exeext
3898
3899 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3900 ac_clean_files=$ac_clean_files_save
3901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3902 printf %s "checking for suffix of executables... " >&6; }
3903 if { { ac_try="$ac_link"
3904 case "(($ac_try" in
3905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3906 *) ac_try_echo=$ac_try;;
3907 esac
3908 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3909 printf "%s\n" "$ac_try_echo"; } >&5
3910 (eval "$ac_link") 2>&5
3911 ac_status=$?
3912 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3913 test $ac_status = 0; }
3914 then :
3915 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3916 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3917 # work properly (i.e., refer to `conftest.exe'), while it won't with
3918 # `rm'.
3919 for ac_file in conftest.exe conftest conftest.*; do
3920 test -f "$ac_file" || continue
3921 case $ac_file in
3922 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3923 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3924 break;;
3925 * ) break;;
3926 esac
3927 done
3928 else $as_nop
3929 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3930 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3931 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3932 See \`config.log' for more details" "$LINENO" 5; }
3933 fi
3934 rm -f conftest conftest$ac_cv_exeext
3935 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3936 printf "%s\n" "$ac_cv_exeext" >&6; }
3937
3938 rm -f conftest.$ac_ext
3939 EXEEXT=$ac_cv_exeext
3940 ac_exeext=$EXEEXT
3941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3942 /* end confdefs.h. */
3943 #include <stdio.h>
3944 int
3945 main (void)
3946 {
3947 FILE *f = fopen ("conftest.out", "w");
3948 return ferror (f) || fclose (f) != 0;
3949
3950 ;
3951 return 0;
3952 }
3953 _ACEOF
3954 ac_clean_files="$ac_clean_files conftest.out"
3955 # Check that the compiler produces executables we can run. If not, either
3956 # the compiler is broken, or we cross compile.
3957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3958 printf %s "checking whether we are cross compiling... " >&6; }
3959 if test "$cross_compiling" != yes; then
3960 { { ac_try="$ac_link"
3961 case "(($ac_try" in
3962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3963 *) ac_try_echo=$ac_try;;
3964 esac
3965 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3966 printf "%s\n" "$ac_try_echo"; } >&5
3967 (eval "$ac_link") 2>&5
3968 ac_status=$?
3969 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3970 test $ac_status = 0; }
3971 if { ac_try='./conftest$ac_cv_exeext'
3972 { { case "(($ac_try" in
3973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3974 *) ac_try_echo=$ac_try;;
3975 esac
3976 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3977 printf "%s\n" "$ac_try_echo"; } >&5
3978 (eval "$ac_try") 2>&5
3979 ac_status=$?
3980 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3981 test $ac_status = 0; }; }; then
3982 cross_compiling=no
3983 else
3984 if test "$cross_compiling" = maybe; then
3985 cross_compiling=yes
3986 else
3987 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3988 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3989 as_fn_error 77 "cannot run C compiled programs.
3990 If you meant to cross compile, use \`--host'.
3991 See \`config.log' for more details" "$LINENO" 5; }
3992 fi
3993 fi
3994 fi
3995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3996 printf "%s\n" "$cross_compiling" >&6; }
3997
3998 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3999 ac_clean_files=$ac_clean_files_save
4000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4001 printf %s "checking for suffix of object files... " >&6; }
4002 if test ${ac_cv_objext+y}
4003 then :
4004 printf %s "(cached) " >&6
4005 else $as_nop
4006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4007 /* end confdefs.h. */
4008
4009 int
4010 main (void)
4011 {
4012
4013 ;
4014 return 0;
4015 }
4016 _ACEOF
4017 rm -f conftest.o conftest.obj
4018 if { { ac_try="$ac_compile"
4019 case "(($ac_try" in
4020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4021 *) ac_try_echo=$ac_try;;
4022 esac
4023 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4024 printf "%s\n" "$ac_try_echo"; } >&5
4025 (eval "$ac_compile") 2>&5
4026 ac_status=$?
4027 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4028 test $ac_status = 0; }
4029 then :
4030 for ac_file in conftest.o conftest.obj conftest.*; do
4031 test -f "$ac_file" || continue;
4032 case $ac_file in
4033 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4034 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4035 break;;
4036 esac
4037 done
4038 else $as_nop
4039 printf "%s\n" "$as_me: failed program was:" >&5
4040 sed 's/^/| /' conftest.$ac_ext >&5
4041
4042 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4043 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4044 as_fn_error $? "cannot compute suffix of object files: cannot compile
4045 See \`config.log' for more details" "$LINENO" 5; }
4046 fi
4047 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4048 fi
4049 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4050 printf "%s\n" "$ac_cv_objext" >&6; }
4051 OBJEXT=$ac_cv_objext
4052 ac_objext=$OBJEXT
4053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4054 printf %s "checking whether the compiler supports GNU C... " >&6; }
4055 if test ${ac_cv_c_compiler_gnu+y}
4056 then :
4057 printf %s "(cached) " >&6
4058 else $as_nop
4059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4060 /* end confdefs.h. */
4061
4062 int
4063 main (void)
4064 {
4065 #ifndef __GNUC__
4066 choke me
4067 #endif
4068
4069 ;
4070 return 0;
4071 }
4072 _ACEOF
4073 if ac_fn_c_try_compile "$LINENO"
4074 then :
4075 ac_compiler_gnu=yes
4076 else $as_nop
4077 ac_compiler_gnu=no
4078 fi
4079 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4080 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4081
4082 fi
4083 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4084 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4085 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4086
4087 if test $ac_compiler_gnu = yes; then
4088 GCC=yes
4089 else
4090 GCC=
4091 fi
4092 ac_test_CFLAGS=${CFLAGS+y}
4093 ac_save_CFLAGS=$CFLAGS
4094 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4095 printf %s "checking whether $CC accepts -g... " >&6; }
4096 if test ${ac_cv_prog_cc_g+y}
4097 then :
4098 printf %s "(cached) " >&6
4099 else $as_nop
4100 ac_save_c_werror_flag=$ac_c_werror_flag
4101 ac_c_werror_flag=yes
4102 ac_cv_prog_cc_g=no
4103 CFLAGS="-g"
4104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4105 /* end confdefs.h. */
4106
4107 int
4108 main (void)
4109 {
4110
4111 ;
4112 return 0;
4113 }
4114 _ACEOF
4115 if ac_fn_c_try_compile "$LINENO"
4116 then :
4117 ac_cv_prog_cc_g=yes
4118 else $as_nop
4119 CFLAGS=""
4120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4121 /* end confdefs.h. */
4122
4123 int
4124 main (void)
4125 {
4126
4127 ;
4128 return 0;
4129 }
4130 _ACEOF
4131 if ac_fn_c_try_compile "$LINENO"
4132 then :
4133
4134 else $as_nop
4135 ac_c_werror_flag=$ac_save_c_werror_flag
4136 CFLAGS="-g"
4137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4138 /* end confdefs.h. */
4139
4140 int
4141 main (void)
4142 {
4143
4144 ;
4145 return 0;
4146 }
4147 _ACEOF
4148 if ac_fn_c_try_compile "$LINENO"
4149 then :
4150 ac_cv_prog_cc_g=yes
4151 fi
4152 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4153 fi
4154 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4155 fi
4156 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4157 ac_c_werror_flag=$ac_save_c_werror_flag
4158 fi
4159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4160 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4161 if test $ac_test_CFLAGS; then
4162 CFLAGS=$ac_save_CFLAGS
4163 elif test $ac_cv_prog_cc_g = yes; then
4164 if test "$GCC" = yes; then
4165 CFLAGS="-g -O2"
4166 else
4167 CFLAGS="-g"
4168 fi
4169 else
4170 if test "$GCC" = yes; then
4171 CFLAGS="-O2"
4172 else
4173 CFLAGS=
4174 fi
4175 fi
4176 ac_prog_cc_stdc=no
4177 if test x$ac_prog_cc_stdc = xno
4178 then :
4179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4180 printf %s "checking for $CC option to enable C11 features... " >&6; }
4181 if test ${ac_cv_prog_cc_c11+y}
4182 then :
4183 printf %s "(cached) " >&6
4184 else $as_nop
4185 ac_cv_prog_cc_c11=no
4186 ac_save_CC=$CC
4187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4188 /* end confdefs.h. */
4189 $ac_c_conftest_c11_program
4190 _ACEOF
4191 for ac_arg in '' -std=gnu11
4192 do
4193 CC="$ac_save_CC $ac_arg"
4194 if ac_fn_c_try_compile "$LINENO"
4195 then :
4196 ac_cv_prog_cc_c11=$ac_arg
4197 fi
4198 rm -f core conftest.err conftest.$ac_objext conftest.beam
4199 test "x$ac_cv_prog_cc_c11" != "xno" && break
4200 done
4201 rm -f conftest.$ac_ext
4202 CC=$ac_save_CC
4203 fi
4204
4205 if test "x$ac_cv_prog_cc_c11" = xno
4206 then :
4207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4208 printf "%s\n" "unsupported" >&6; }
4209 else $as_nop
4210 if test "x$ac_cv_prog_cc_c11" = x
4211 then :
4212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4213 printf "%s\n" "none needed" >&6; }
4214 else $as_nop
4215 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4216 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4217 CC="$CC $ac_cv_prog_cc_c11"
4218 fi
4219 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4220 ac_prog_cc_stdc=c11
4221 fi
4222 fi
4223 if test x$ac_prog_cc_stdc = xno
4224 then :
4225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4226 printf %s "checking for $CC option to enable C99 features... " >&6; }
4227 if test ${ac_cv_prog_cc_c99+y}
4228 then :
4229 printf %s "(cached) " >&6
4230 else $as_nop
4231 ac_cv_prog_cc_c99=no
4232 ac_save_CC=$CC
4233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4234 /* end confdefs.h. */
4235 $ac_c_conftest_c99_program
4236 _ACEOF
4237 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4238 do
4239 CC="$ac_save_CC $ac_arg"
4240 if ac_fn_c_try_compile "$LINENO"
4241 then :
4242 ac_cv_prog_cc_c99=$ac_arg
4243 fi
4244 rm -f core conftest.err conftest.$ac_objext conftest.beam
4245 test "x$ac_cv_prog_cc_c99" != "xno" && break
4246 done
4247 rm -f conftest.$ac_ext
4248 CC=$ac_save_CC
4249 fi
4250
4251 if test "x$ac_cv_prog_cc_c99" = xno
4252 then :
4253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4254 printf "%s\n" "unsupported" >&6; }
4255 else $as_nop
4256 if test "x$ac_cv_prog_cc_c99" = x
4257 then :
4258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4259 printf "%s\n" "none needed" >&6; }
4260 else $as_nop
4261 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4262 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4263 CC="$CC $ac_cv_prog_cc_c99"
4264 fi
4265 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4266 ac_prog_cc_stdc=c99
4267 fi
4268 fi
4269 if test x$ac_prog_cc_stdc = xno
4270 then :
4271 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4272 printf %s "checking for $CC option to enable C89 features... " >&6; }
4273 if test ${ac_cv_prog_cc_c89+y}
4274 then :
4275 printf %s "(cached) " >&6
4276 else $as_nop
4277 ac_cv_prog_cc_c89=no
4278 ac_save_CC=$CC
4279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4280 /* end confdefs.h. */
4281 $ac_c_conftest_c89_program
4282 _ACEOF
4283 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4284 do
4285 CC="$ac_save_CC $ac_arg"
4286 if ac_fn_c_try_compile "$LINENO"
4287 then :
4288 ac_cv_prog_cc_c89=$ac_arg
4289 fi
4290 rm -f core conftest.err conftest.$ac_objext conftest.beam
4291 test "x$ac_cv_prog_cc_c89" != "xno" && break
4292 done
4293 rm -f conftest.$ac_ext
4294 CC=$ac_save_CC
4295 fi
4296
4297 if test "x$ac_cv_prog_cc_c89" = xno
4298 then :
4299 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4300 printf "%s\n" "unsupported" >&6; }
4301 else $as_nop
4302 if test "x$ac_cv_prog_cc_c89" = x
4303 then :
4304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4305 printf "%s\n" "none needed" >&6; }
4306 else $as_nop
4307 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4308 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4309 CC="$CC $ac_cv_prog_cc_c89"
4310 fi
4311 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4312 ac_prog_cc_stdc=c89
4313 fi
4314 fi
4315
4316 ac_ext=c
4317 ac_cpp='$CPP $CPPFLAGS'
4318 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4319 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4320 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4321
4322
4323 ac_ext=c
4324 ac_cpp='$CPP $CPPFLAGS'
4325 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4326 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4327 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4329 printf %s "checking whether $CC understands -c and -o together... " >&6; }
4330 if test ${am_cv_prog_cc_c_o+y}
4331 then :
4332 printf %s "(cached) " >&6
4333 else $as_nop
4334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4335 /* end confdefs.h. */
4336
4337 int
4338 main (void)
4339 {
4340
4341 ;
4342 return 0;
4343 }
4344 _ACEOF
4345 # Make sure it works both with $CC and with simple cc.
4346 # Following AC_PROG_CC_C_O, we do the test twice because some
4347 # compilers refuse to overwrite an existing .o file with -o,
4348 # though they will create one.
4349 am_cv_prog_cc_c_o=yes
4350 for am_i in 1 2; do
4351 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4352 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4353 ac_status=$?
4354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4355 (exit $ac_status); } \
4356 && test -f conftest2.$ac_objext; then
4357 : OK
4358 else
4359 am_cv_prog_cc_c_o=no
4360 break
4361 fi
4362 done
4363 rm -f core conftest*
4364 unset am_i
4365 fi
4366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4367 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4368 if test "$am_cv_prog_cc_c_o" != yes; then
4369 # Losing compiler, so override with the script.
4370 # FIXME: It is wrong to rewrite CC.
4371 # But if we don't then we get into trouble of one sort or another.
4372 # A longer-term fix would be to have automake use am__CC in this case,
4373 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4374 CC="$am_aux_dir/compile $CC"
4375 fi
4376 ac_ext=c
4377 ac_cpp='$CPP $CPPFLAGS'
4378 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4379 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4380 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4381
4382
4383 depcc="$CC" am_compiler_list=
4384
4385 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4386 printf %s "checking dependency style of $depcc... " >&6; }
4387 if test ${am_cv_CC_dependencies_compiler_type+y}
4388 then :
4389 printf %s "(cached) " >&6
4390 else $as_nop
4391 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4392 # We make a subdir and do the tests there. Otherwise we can end up
4393 # making bogus files that we don't know about and never remove. For
4394 # instance it was reported that on HP-UX the gcc test will end up
4395 # making a dummy file named 'D' -- because '-MD' means "put the output
4396 # in D".
4397 rm -rf conftest.dir
4398 mkdir conftest.dir
4399 # Copy depcomp to subdir because otherwise we won't find it if we're
4400 # using a relative directory.
4401 cp "$am_depcomp" conftest.dir
4402 cd conftest.dir
4403 # We will build objects and dependencies in a subdirectory because
4404 # it helps to detect inapplicable dependency modes. For instance
4405 # both Tru64's cc and ICC support -MD to output dependencies as a
4406 # side effect of compilation, but ICC will put the dependencies in
4407 # the current directory while Tru64 will put them in the object
4408 # directory.
4409 mkdir sub
4410
4411 am_cv_CC_dependencies_compiler_type=none
4412 if test "$am_compiler_list" = ""; then
4413 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4414 fi
4415 am__universal=false
4416 case " $depcc " in #(
4417 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4418 esac
4419
4420 for depmode in $am_compiler_list; do
4421 # Setup a source with many dependencies, because some compilers
4422 # like to wrap large dependency lists on column 80 (with \), and
4423 # we should not choose a depcomp mode which is confused by this.
4424 #
4425 # We need to recreate these files for each test, as the compiler may
4426 # overwrite some of them when testing with obscure command lines.
4427 # This happens at least with the AIX C compiler.
4428 : > sub/conftest.c
4429 for i in 1 2 3 4 5 6; do
4430 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4431 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4432 # Solaris 10 /bin/sh.
4433 echo '/* dummy */' > sub/conftst$i.h
4434 done
4435 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4436
4437 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4438 # mode. It turns out that the SunPro C++ compiler does not properly
4439 # handle '-M -o', and we need to detect this. Also, some Intel
4440 # versions had trouble with output in subdirs.
4441 am__obj=sub/conftest.${OBJEXT-o}
4442 am__minus_obj="-o $am__obj"
4443 case $depmode in
4444 gcc)
4445 # This depmode causes a compiler race in universal mode.
4446 test "$am__universal" = false || continue
4447 ;;
4448 nosideeffect)
4449 # After this tag, mechanisms are not by side-effect, so they'll
4450 # only be used when explicitly requested.
4451 if test "x$enable_dependency_tracking" = xyes; then
4452 continue
4453 else
4454 break
4455 fi
4456 ;;
4457 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4458 # This compiler won't grok '-c -o', but also, the minuso test has
4459 # not run yet. These depmodes are late enough in the game, and
4460 # so weak that their functioning should not be impacted.
4461 am__obj=conftest.${OBJEXT-o}
4462 am__minus_obj=
4463 ;;
4464 none) break ;;
4465 esac
4466 if depmode=$depmode \
4467 source=sub/conftest.c object=$am__obj \
4468 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4469 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4470 >/dev/null 2>conftest.err &&
4471 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4472 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4473 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4474 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4475 # icc doesn't choke on unknown options, it will just issue warnings
4476 # or remarks (even with -Werror). So we grep stderr for any message
4477 # that says an option was ignored or not supported.
4478 # When given -MP, icc 7.0 and 7.1 complain thusly:
4479 # icc: Command line warning: ignoring option '-M'; no argument required
4480 # The diagnosis changed in icc 8.0:
4481 # icc: Command line remark: option '-MP' not supported
4482 if (grep 'ignoring option' conftest.err ||
4483 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4484 am_cv_CC_dependencies_compiler_type=$depmode
4485 break
4486 fi
4487 fi
4488 done
4489
4490 cd ..
4491 rm -rf conftest.dir
4492 else
4493 am_cv_CC_dependencies_compiler_type=none
4494 fi
4495
4496 fi
4497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4498 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4499 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4500
4501 if
4502 test "x$enable_dependency_tracking" != xno \
4503 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4504 am__fastdepCC_TRUE=
4505 am__fastdepCC_FALSE='#'
4506 else
4507 am__fastdepCC_TRUE='#'
4508 am__fastdepCC_FALSE=
4509 fi
4510
4511
4512
4513
4514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
4515 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
4516 if test ${ac_cv_c_undeclared_builtin_options+y}
4517 then :
4518 printf %s "(cached) " >&6
4519 else $as_nop
4520 ac_save_CFLAGS=$CFLAGS
4521 ac_cv_c_undeclared_builtin_options='cannot detect'
4522 for ac_arg in '' -fno-builtin; do
4523 CFLAGS="$ac_save_CFLAGS $ac_arg"
4524 # This test program should *not* compile successfully.
4525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4526 /* end confdefs.h. */
4527
4528 int
4529 main (void)
4530 {
4531 (void) strchr;
4532 ;
4533 return 0;
4534 }
4535 _ACEOF
4536 if ac_fn_c_try_compile "$LINENO"
4537 then :
4538
4539 else $as_nop
4540 # This test program should compile successfully.
4541 # No library function is consistently available on
4542 # freestanding implementations, so test against a dummy
4543 # declaration. Include always-available headers on the
4544 # off chance that they somehow elicit warnings.
4545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4546 /* end confdefs.h. */
4547 #include <float.h>
4548 #include <limits.h>
4549 #include <stdarg.h>
4550 #include <stddef.h>
4551 extern void ac_decl (int, char *);
4552
4553 int
4554 main (void)
4555 {
4556 (void) ac_decl (0, (char *) 0);
4557 (void) ac_decl;
4558
4559 ;
4560 return 0;
4561 }
4562 _ACEOF
4563 if ac_fn_c_try_compile "$LINENO"
4564 then :
4565 if test x"$ac_arg" = x
4566 then :
4567 ac_cv_c_undeclared_builtin_options='none needed'
4568 else $as_nop
4569 ac_cv_c_undeclared_builtin_options=$ac_arg
4570 fi
4571 break
4572 fi
4573 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4574 fi
4575 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4576 done
4577 CFLAGS=$ac_save_CFLAGS
4578
4579 fi
4580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
4581 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
4582 case $ac_cv_c_undeclared_builtin_options in #(
4583 'cannot detect') :
4584 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4585 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4586 as_fn_error $? "cannot make $CC report undeclared builtins
4587 See \`config.log' for more details" "$LINENO" 5; } ;; #(
4588 'none needed') :
4589 ac_c_undeclared_builtin_options='' ;; #(
4590 *) :
4591 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
4592 esac
4593
4594 ac_header= ac_cache=
4595 for ac_item in $ac_header_c_list
4596 do
4597 if test $ac_cache; then
4598 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
4599 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
4600 printf "%s\n" "#define $ac_item 1" >> confdefs.h
4601 fi
4602 ac_header= ac_cache=
4603 elif test $ac_header; then
4604 ac_cache=$ac_item
4605 else
4606 ac_header=$ac_item
4607 fi
4608 done
4609
4610
4611
4612
4613
4614
4615
4616
4617 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
4618 then :
4619
4620 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
4621
4622 fi
4623
4624
4625
4626
4627 ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4628 if test "x$ac_cv_have_decl___clang__" = xyes
4629 then :
4630 CLANGCC="yes"
4631 else $as_nop
4632 CLANGCC="no"
4633 fi
4634 ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4635 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes
4636 then :
4637 INTELCC="yes"
4638 else $as_nop
4639 INTELCC="no"
4640 fi
4641 ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4642 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes
4643 then :
4644 SUNCC="yes"
4645 else $as_nop
4646 SUNCC="no"
4647 fi
4648
4649
4650
4651
4652
4653
4654
4655
4656 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4657 if test -n "$ac_tool_prefix"; then
4658 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4659 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4661 printf %s "checking for $ac_word... " >&6; }
4662 if test ${ac_cv_path_PKG_CONFIG+y}
4663 then :
4664 printf %s "(cached) " >&6
4665 else $as_nop
4666 case $PKG_CONFIG in
4667 [\\/]* | ?:[\\/]*)
4668 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4669 ;;
4670 *)
4671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4672 for as_dir in $PATH
4673 do
4674 IFS=$as_save_IFS
4675 case $as_dir in #(((
4676 '') as_dir=./ ;;
4677 */) ;;
4678 *) as_dir=$as_dir/ ;;
4679 esac
4680 for ac_exec_ext in '' $ac_executable_extensions; do
4681 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4682 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
4683 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4684 break 2
4685 fi
4686 done
4687 done
4688 IFS=$as_save_IFS
4689
4690 ;;
4691 esac
4692 fi
4693 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4694 if test -n "$PKG_CONFIG"; then
4695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4696 printf "%s\n" "$PKG_CONFIG" >&6; }
4697 else
4698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4699 printf "%s\n" "no" >&6; }
4700 fi
4701
4702
4703 fi
4704 if test -z "$ac_cv_path_PKG_CONFIG"; then
4705 ac_pt_PKG_CONFIG=$PKG_CONFIG
4706 # Extract the first word of "pkg-config", so it can be a program name with args.
4707 set dummy pkg-config; ac_word=$2
4708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4709 printf %s "checking for $ac_word... " >&6; }
4710 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
4711 then :
4712 printf %s "(cached) " >&6
4713 else $as_nop
4714 case $ac_pt_PKG_CONFIG in
4715 [\\/]* | ?:[\\/]*)
4716 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4717 ;;
4718 *)
4719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4720 for as_dir in $PATH
4721 do
4722 IFS=$as_save_IFS
4723 case $as_dir in #(((
4724 '') as_dir=./ ;;
4725 */) ;;
4726 *) as_dir=$as_dir/ ;;
4727 esac
4728 for ac_exec_ext in '' $ac_executable_extensions; do
4729 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4730 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
4731 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4732 break 2
4733 fi
4734 done
4735 done
4736 IFS=$as_save_IFS
4737
4738 ;;
4739 esac
4740 fi
4741 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4742 if test -n "$ac_pt_PKG_CONFIG"; then
4743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4744 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
4745 else
4746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4747 printf "%s\n" "no" >&6; }
4748 fi
4749
4750 if test "x$ac_pt_PKG_CONFIG" = x; then
4751 PKG_CONFIG=""
4752 else
4753 case $cross_compiling:$ac_tool_warned in
4754 yes:)
4755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4756 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4757 ac_tool_warned=yes ;;
4758 esac
4759 PKG_CONFIG=$ac_pt_PKG_CONFIG
4760 fi
4761 else
4762 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4763 fi
4764
4765 fi
4766 if test -n "$PKG_CONFIG"; then
4767 _pkg_min_version=0.9.0
4768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4769 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4770 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4772 printf "%s\n" "yes" >&6; }
4773 else
4774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4775 printf "%s\n" "no" >&6; }
4776 PKG_CONFIG=""
4777 fi
4778 fi
4779
4780
4781 # Make sure we can run config.sub.
4782 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
4783 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
4784
4785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4786 printf %s "checking build system type... " >&6; }
4787 if test ${ac_cv_build+y}
4788 then :
4789 printf %s "(cached) " >&6
4790 else $as_nop
4791 ac_build_alias=$build_alias
4792 test "x$ac_build_alias" = x &&
4793 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
4794 test "x$ac_build_alias" = x &&
4795 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4796 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
4797 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
4798
4799 fi
4800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4801 printf "%s\n" "$ac_cv_build" >&6; }
4802 case $ac_cv_build in
4803 *-*-*) ;;
4804 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4805 esac
4806 build=$ac_cv_build
4807 ac_save_IFS=$IFS; IFS='-'
4808 set x $ac_cv_build
4809 shift
4810 build_cpu=$1
4811 build_vendor=$2
4812 shift; shift
4813 # Remember, the first character of IFS is used to create $*,
4814 # except with old shells:
4815 build_os=$*
4816 IFS=$ac_save_IFS
4817 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4818
4819
4820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4821 printf %s "checking host system type... " >&6; }
4822 if test ${ac_cv_host+y}
4823 then :
4824 printf %s "(cached) " >&6
4825 else $as_nop
4826 if test "x$host_alias" = x; then
4827 ac_cv_host=$ac_cv_build
4828 else
4829 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
4830 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
4831 fi
4832
4833 fi
4834 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4835 printf "%s\n" "$ac_cv_host" >&6; }
4836 case $ac_cv_host in
4837 *-*-*) ;;
4838 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4839 esac
4840 host=$ac_cv_host
4841 ac_save_IFS=$IFS; IFS='-'
4842 set x $ac_cv_host
4843 shift
4844 host_cpu=$1
4845 host_vendor=$2
4846 shift; shift
4847 # Remember, the first character of IFS is used to create $*,
4848 # except with old shells:
4849 host_os=$*
4850 IFS=$ac_save_IFS
4851 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4852
4853
4854 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4855 printf %s "checking for a sed that does not truncate output... " >&6; }
4856 if test ${ac_cv_path_SED+y}
4857 then :
4858 printf %s "(cached) " >&6
4859 else $as_nop
4860 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4861 for ac_i in 1 2 3 4 5 6 7; do
4862 ac_script="$ac_script$as_nl$ac_script"
4863 done
4864 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4865 { ac_script=; unset ac_script;}
4866 if test -z "$SED"; then
4867 ac_path_SED_found=false
4868 # Loop through the user's path and test for each of PROGNAME-LIST
4869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4870 for as_dir in $PATH
4871 do
4872 IFS=$as_save_IFS
4873 case $as_dir in #(((
4874 '') as_dir=./ ;;
4875 */) ;;
4876 *) as_dir=$as_dir/ ;;
4877 esac
4878 for ac_prog in sed gsed
4879 do
4880 for ac_exec_ext in '' $ac_executable_extensions; do
4881 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
4882 as_fn_executable_p "$ac_path_SED" || continue
4883 # Check for GNU ac_path_SED and select it if it is found.
4884 # Check for GNU $ac_path_SED
4885 case `"$ac_path_SED" --version 2>&1` in
4886 *GNU*)
4887 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4888 *)
4889 ac_count=0
4890 printf %s 0123456789 >"conftest.in"
4891 while :
4892 do
4893 cat "conftest.in" "conftest.in" >"conftest.tmp"
4894 mv "conftest.tmp" "conftest.in"
4895 cp "conftest.in" "conftest.nl"
4896 printf "%s\n" '' >> "conftest.nl"
4897 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4898 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4899 as_fn_arith $ac_count + 1 && ac_count=$as_val
4900 if test $ac_count -gt ${ac_path_SED_max-0}; then
4901 # Best one so far, save it but keep looking for a better one
4902 ac_cv_path_SED="$ac_path_SED"
4903 ac_path_SED_max=$ac_count
4904 fi
4905 # 10*(2^10) chars as input seems more than enough
4906 test $ac_count -gt 10 && break
4907 done
4908 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4909 esac
4910
4911 $ac_path_SED_found && break 3
4912 done
4913 done
4914 done
4915 IFS=$as_save_IFS
4916 if test -z "$ac_cv_path_SED"; then
4917 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4918 fi
4919 else
4920 ac_cv_path_SED=$SED
4921 fi
4922
4923 fi
4924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4925 printf "%s\n" "$ac_cv_path_SED" >&6; }
4926 SED="$ac_cv_path_SED"
4927 rm -f conftest.sed
4928
4929
4930
4931
4932
4933
4934 # Check whether --enable-selective-werror was given.
4935 if test ${enable_selective_werror+y}
4936 then :
4937 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4938 else $as_nop
4939 SELECTIVE_WERROR=yes
4940 fi
4941
4942
4943
4944
4945
4946 # -v is too short to test reliably with XORG_TESTSET_CFLAG
4947 if test "x$SUNCC" = "xyes"; then
4948 BASE_CFLAGS="-v"
4949 else
4950 BASE_CFLAGS=""
4951 fi
4952
4953 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
4954
4955
4956
4957
4958
4959
4960
4961
4962
4963
4964
4965
4966
4967 xorg_testset_save_CFLAGS="$CFLAGS"
4968
4969 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4970 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4971 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4972 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4973 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
4974 then :
4975 printf %s "(cached) " >&6
4976 else $as_nop
4977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4978 /* end confdefs.h. */
4979 int i;
4980 _ACEOF
4981 if ac_fn_c_try_compile "$LINENO"
4982 then :
4983 xorg_cv_cc_flag_unknown_warning_option=yes
4984 else $as_nop
4985 xorg_cv_cc_flag_unknown_warning_option=no
4986 fi
4987 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4988 fi
4989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4990 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4991 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4992 CFLAGS="$xorg_testset_save_CFLAGS"
4993 fi
4994
4995 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4996 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4997 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4998 fi
4999 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5001 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5002 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5003 then :
5004 printf %s "(cached) " >&6
5005 else $as_nop
5006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5007 /* end confdefs.h. */
5008 int i;
5009 _ACEOF
5010 if ac_fn_c_try_compile "$LINENO"
5011 then :
5012 xorg_cv_cc_flag_unused_command_line_argument=yes
5013 else $as_nop
5014 xorg_cv_cc_flag_unused_command_line_argument=no
5015 fi
5016 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5017 fi
5018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5019 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5020 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5021 CFLAGS="$xorg_testset_save_CFLAGS"
5022 fi
5023
5024 found="no"
5025
5026 if test $found = "no" ; then
5027 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5028 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5029 fi
5030
5031 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5032 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5033 fi
5034
5035 CFLAGS="$CFLAGS -Wall"
5036
5037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
5038 printf %s "checking if $CC supports -Wall... " >&6; }
5039 cacheid=xorg_cv_cc_flag__Wall
5040 if eval test \${$cacheid+y}
5041 then :
5042 printf %s "(cached) " >&6
5043 else $as_nop
5044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5045 /* end confdefs.h. */
5046 int i;
5047 int
5048 main (void)
5049 {
5050
5051 ;
5052 return 0;
5053 }
5054 _ACEOF
5055 if ac_fn_c_try_link "$LINENO"
5056 then :
5057 eval $cacheid=yes
5058 else $as_nop
5059 eval $cacheid=no
5060 fi
5061 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5062 conftest$ac_exeext conftest.$ac_ext
5063 fi
5064
5065
5066 CFLAGS="$xorg_testset_save_CFLAGS"
5067
5068 eval supported=\$$cacheid
5069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5070 printf "%s\n" "$supported" >&6; }
5071 if test "$supported" = "yes" ; then
5072 BASE_CFLAGS="$BASE_CFLAGS -Wall"
5073 found="yes"
5074 fi
5075 fi
5076
5077
5078
5079
5080
5081
5082
5083
5084
5085
5086
5087
5088
5089
5090
5091 xorg_testset_save_CFLAGS="$CFLAGS"
5092
5093 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5094 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5095 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5096 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5097 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5098 then :
5099 printf %s "(cached) " >&6
5100 else $as_nop
5101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5102 /* end confdefs.h. */
5103 int i;
5104 _ACEOF
5105 if ac_fn_c_try_compile "$LINENO"
5106 then :
5107 xorg_cv_cc_flag_unknown_warning_option=yes
5108 else $as_nop
5109 xorg_cv_cc_flag_unknown_warning_option=no
5110 fi
5111 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5112 fi
5113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5114 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5115 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5116 CFLAGS="$xorg_testset_save_CFLAGS"
5117 fi
5118
5119 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5120 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5121 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5122 fi
5123 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5125 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5126 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5127 then :
5128 printf %s "(cached) " >&6
5129 else $as_nop
5130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5131 /* end confdefs.h. */
5132 int i;
5133 _ACEOF
5134 if ac_fn_c_try_compile "$LINENO"
5135 then :
5136 xorg_cv_cc_flag_unused_command_line_argument=yes
5137 else $as_nop
5138 xorg_cv_cc_flag_unused_command_line_argument=no
5139 fi
5140 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5141 fi
5142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5143 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5144 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5145 CFLAGS="$xorg_testset_save_CFLAGS"
5146 fi
5147
5148 found="no"
5149
5150 if test $found = "no" ; then
5151 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5152 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5153 fi
5154
5155 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5156 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5157 fi
5158
5159 CFLAGS="$CFLAGS -Wpointer-arith"
5160
5161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
5162 printf %s "checking if $CC supports -Wpointer-arith... " >&6; }
5163 cacheid=xorg_cv_cc_flag__Wpointer_arith
5164 if eval test \${$cacheid+y}
5165 then :
5166 printf %s "(cached) " >&6
5167 else $as_nop
5168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5169 /* end confdefs.h. */
5170 int i;
5171 int
5172 main (void)
5173 {
5174
5175 ;
5176 return 0;
5177 }
5178 _ACEOF
5179 if ac_fn_c_try_link "$LINENO"
5180 then :
5181 eval $cacheid=yes
5182 else $as_nop
5183 eval $cacheid=no
5184 fi
5185 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5186 conftest$ac_exeext conftest.$ac_ext
5187 fi
5188
5189
5190 CFLAGS="$xorg_testset_save_CFLAGS"
5191
5192 eval supported=\$$cacheid
5193 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5194 printf "%s\n" "$supported" >&6; }
5195 if test "$supported" = "yes" ; then
5196 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
5197 found="yes"
5198 fi
5199 fi
5200
5201
5202
5203
5204
5205
5206
5207
5208
5209
5210
5211
5212
5213
5214
5215 xorg_testset_save_CFLAGS="$CFLAGS"
5216
5217 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5218 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5220 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5221 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5222 then :
5223 printf %s "(cached) " >&6
5224 else $as_nop
5225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5226 /* end confdefs.h. */
5227 int i;
5228 _ACEOF
5229 if ac_fn_c_try_compile "$LINENO"
5230 then :
5231 xorg_cv_cc_flag_unknown_warning_option=yes
5232 else $as_nop
5233 xorg_cv_cc_flag_unknown_warning_option=no
5234 fi
5235 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5236 fi
5237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5238 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5239 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5240 CFLAGS="$xorg_testset_save_CFLAGS"
5241 fi
5242
5243 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5244 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5245 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5246 fi
5247 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5248 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5249 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5250 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5251 then :
5252 printf %s "(cached) " >&6
5253 else $as_nop
5254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5255 /* end confdefs.h. */
5256 int i;
5257 _ACEOF
5258 if ac_fn_c_try_compile "$LINENO"
5259 then :
5260 xorg_cv_cc_flag_unused_command_line_argument=yes
5261 else $as_nop
5262 xorg_cv_cc_flag_unused_command_line_argument=no
5263 fi
5264 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5265 fi
5266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5267 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5268 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5269 CFLAGS="$xorg_testset_save_CFLAGS"
5270 fi
5271
5272 found="no"
5273
5274 if test $found = "no" ; then
5275 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5276 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5277 fi
5278
5279 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5280 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5281 fi
5282
5283 CFLAGS="$CFLAGS -Wmissing-declarations"
5284
5285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
5286 printf %s "checking if $CC supports -Wmissing-declarations... " >&6; }
5287 cacheid=xorg_cv_cc_flag__Wmissing_declarations
5288 if eval test \${$cacheid+y}
5289 then :
5290 printf %s "(cached) " >&6
5291 else $as_nop
5292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5293 /* end confdefs.h. */
5294 int i;
5295 int
5296 main (void)
5297 {
5298
5299 ;
5300 return 0;
5301 }
5302 _ACEOF
5303 if ac_fn_c_try_link "$LINENO"
5304 then :
5305 eval $cacheid=yes
5306 else $as_nop
5307 eval $cacheid=no
5308 fi
5309 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5310 conftest$ac_exeext conftest.$ac_ext
5311 fi
5312
5313
5314 CFLAGS="$xorg_testset_save_CFLAGS"
5315
5316 eval supported=\$$cacheid
5317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5318 printf "%s\n" "$supported" >&6; }
5319 if test "$supported" = "yes" ; then
5320 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5321 found="yes"
5322 fi
5323 fi
5324
5325
5326
5327
5328
5329
5330
5331
5332
5333
5334
5335
5336
5337
5338
5339 xorg_testset_save_CFLAGS="$CFLAGS"
5340
5341 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5342 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5343 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5344 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5345 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5346 then :
5347 printf %s "(cached) " >&6
5348 else $as_nop
5349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5350 /* end confdefs.h. */
5351 int i;
5352 _ACEOF
5353 if ac_fn_c_try_compile "$LINENO"
5354 then :
5355 xorg_cv_cc_flag_unknown_warning_option=yes
5356 else $as_nop
5357 xorg_cv_cc_flag_unknown_warning_option=no
5358 fi
5359 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5360 fi
5361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5362 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5363 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5364 CFLAGS="$xorg_testset_save_CFLAGS"
5365 fi
5366
5367 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5368 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5369 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5370 fi
5371 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5372 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5373 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5374 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5375 then :
5376 printf %s "(cached) " >&6
5377 else $as_nop
5378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5379 /* end confdefs.h. */
5380 int i;
5381 _ACEOF
5382 if ac_fn_c_try_compile "$LINENO"
5383 then :
5384 xorg_cv_cc_flag_unused_command_line_argument=yes
5385 else $as_nop
5386 xorg_cv_cc_flag_unused_command_line_argument=no
5387 fi
5388 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5389 fi
5390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5391 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5392 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5393 CFLAGS="$xorg_testset_save_CFLAGS"
5394 fi
5395
5396 found="no"
5397
5398 if test $found = "no" ; then
5399 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5400 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5401 fi
5402
5403 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5404 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5405 fi
5406
5407 CFLAGS="$CFLAGS -Wformat=2"
5408
5409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5410 printf %s "checking if $CC supports -Wformat=2... " >&6; }
5411 cacheid=xorg_cv_cc_flag__Wformat_2
5412 if eval test \${$cacheid+y}
5413 then :
5414 printf %s "(cached) " >&6
5415 else $as_nop
5416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5417 /* end confdefs.h. */
5418 int i;
5419 int
5420 main (void)
5421 {
5422
5423 ;
5424 return 0;
5425 }
5426 _ACEOF
5427 if ac_fn_c_try_link "$LINENO"
5428 then :
5429 eval $cacheid=yes
5430 else $as_nop
5431 eval $cacheid=no
5432 fi
5433 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5434 conftest$ac_exeext conftest.$ac_ext
5435 fi
5436
5437
5438 CFLAGS="$xorg_testset_save_CFLAGS"
5439
5440 eval supported=\$$cacheid
5441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5442 printf "%s\n" "$supported" >&6; }
5443 if test "$supported" = "yes" ; then
5444 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5445 found="yes"
5446 fi
5447 fi
5448
5449 if test $found = "no" ; then
5450 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5451 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5452 fi
5453
5454 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5455 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5456 fi
5457
5458 CFLAGS="$CFLAGS -Wformat"
5459
5460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5461 printf %s "checking if $CC supports -Wformat... " >&6; }
5462 cacheid=xorg_cv_cc_flag__Wformat
5463 if eval test \${$cacheid+y}
5464 then :
5465 printf %s "(cached) " >&6
5466 else $as_nop
5467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5468 /* end confdefs.h. */
5469 int i;
5470 int
5471 main (void)
5472 {
5473
5474 ;
5475 return 0;
5476 }
5477 _ACEOF
5478 if ac_fn_c_try_link "$LINENO"
5479 then :
5480 eval $cacheid=yes
5481 else $as_nop
5482 eval $cacheid=no
5483 fi
5484 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5485 conftest$ac_exeext conftest.$ac_ext
5486 fi
5487
5488
5489 CFLAGS="$xorg_testset_save_CFLAGS"
5490
5491 eval supported=\$$cacheid
5492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5493 printf "%s\n" "$supported" >&6; }
5494 if test "$supported" = "yes" ; then
5495 BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5496 found="yes"
5497 fi
5498 fi
5499
5500
5501
5502
5503
5504
5505
5506
5507
5508
5509
5510
5511
5512
5513
5514
5515
5516 xorg_testset_save_CFLAGS="$CFLAGS"
5517
5518 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5519 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5521 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5522 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5523 then :
5524 printf %s "(cached) " >&6
5525 else $as_nop
5526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5527 /* end confdefs.h. */
5528 int i;
5529 _ACEOF
5530 if ac_fn_c_try_compile "$LINENO"
5531 then :
5532 xorg_cv_cc_flag_unknown_warning_option=yes
5533 else $as_nop
5534 xorg_cv_cc_flag_unknown_warning_option=no
5535 fi
5536 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5537 fi
5538 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5539 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5540 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5541 CFLAGS="$xorg_testset_save_CFLAGS"
5542 fi
5543
5544 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5545 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5546 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5547 fi
5548 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5550 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5551 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5552 then :
5553 printf %s "(cached) " >&6
5554 else $as_nop
5555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5556 /* end confdefs.h. */
5557 int i;
5558 _ACEOF
5559 if ac_fn_c_try_compile "$LINENO"
5560 then :
5561 xorg_cv_cc_flag_unused_command_line_argument=yes
5562 else $as_nop
5563 xorg_cv_cc_flag_unused_command_line_argument=no
5564 fi
5565 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5566 fi
5567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5568 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5569 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5570 CFLAGS="$xorg_testset_save_CFLAGS"
5571 fi
5572
5573 found="no"
5574
5575 if test $found = "no" ; then
5576 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5577 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5578 fi
5579
5580 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5581 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5582 fi
5583
5584 CFLAGS="$CFLAGS -Wstrict-prototypes"
5585
5586 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5587 printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; }
5588 cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5589 if eval test \${$cacheid+y}
5590 then :
5591 printf %s "(cached) " >&6
5592 else $as_nop
5593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5594 /* end confdefs.h. */
5595 int i;
5596 int
5597 main (void)
5598 {
5599
5600 ;
5601 return 0;
5602 }
5603 _ACEOF
5604 if ac_fn_c_try_link "$LINENO"
5605 then :
5606 eval $cacheid=yes
5607 else $as_nop
5608 eval $cacheid=no
5609 fi
5610 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5611 conftest$ac_exeext conftest.$ac_ext
5612 fi
5613
5614
5615 CFLAGS="$xorg_testset_save_CFLAGS"
5616
5617 eval supported=\$$cacheid
5618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5619 printf "%s\n" "$supported" >&6; }
5620 if test "$supported" = "yes" ; then
5621 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5622 found="yes"
5623 fi
5624 fi
5625
5626
5627
5628
5629
5630
5631
5632
5633
5634
5635
5636
5637
5638
5639
5640 xorg_testset_save_CFLAGS="$CFLAGS"
5641
5642 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5643 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5645 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5646 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5647 then :
5648 printf %s "(cached) " >&6
5649 else $as_nop
5650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5651 /* end confdefs.h. */
5652 int i;
5653 _ACEOF
5654 if ac_fn_c_try_compile "$LINENO"
5655 then :
5656 xorg_cv_cc_flag_unknown_warning_option=yes
5657 else $as_nop
5658 xorg_cv_cc_flag_unknown_warning_option=no
5659 fi
5660 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5661 fi
5662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5663 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5664 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5665 CFLAGS="$xorg_testset_save_CFLAGS"
5666 fi
5667
5668 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5669 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5670 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5671 fi
5672 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5674 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5675 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5676 then :
5677 printf %s "(cached) " >&6
5678 else $as_nop
5679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5680 /* end confdefs.h. */
5681 int i;
5682 _ACEOF
5683 if ac_fn_c_try_compile "$LINENO"
5684 then :
5685 xorg_cv_cc_flag_unused_command_line_argument=yes
5686 else $as_nop
5687 xorg_cv_cc_flag_unused_command_line_argument=no
5688 fi
5689 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5690 fi
5691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5692 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5693 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5694 CFLAGS="$xorg_testset_save_CFLAGS"
5695 fi
5696
5697 found="no"
5698
5699 if test $found = "no" ; then
5700 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5701 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5702 fi
5703
5704 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5705 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5706 fi
5707
5708 CFLAGS="$CFLAGS -Wmissing-prototypes"
5709
5710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5711 printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; }
5712 cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5713 if eval test \${$cacheid+y}
5714 then :
5715 printf %s "(cached) " >&6
5716 else $as_nop
5717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5718 /* end confdefs.h. */
5719 int i;
5720 int
5721 main (void)
5722 {
5723
5724 ;
5725 return 0;
5726 }
5727 _ACEOF
5728 if ac_fn_c_try_link "$LINENO"
5729 then :
5730 eval $cacheid=yes
5731 else $as_nop
5732 eval $cacheid=no
5733 fi
5734 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5735 conftest$ac_exeext conftest.$ac_ext
5736 fi
5737
5738
5739 CFLAGS="$xorg_testset_save_CFLAGS"
5740
5741 eval supported=\$$cacheid
5742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5743 printf "%s\n" "$supported" >&6; }
5744 if test "$supported" = "yes" ; then
5745 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5746 found="yes"
5747 fi
5748 fi
5749
5750
5751
5752
5753
5754
5755
5756
5757
5758
5759
5760
5761
5762
5763
5764 xorg_testset_save_CFLAGS="$CFLAGS"
5765
5766 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5767 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5769 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5770 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5771 then :
5772 printf %s "(cached) " >&6
5773 else $as_nop
5774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5775 /* end confdefs.h. */
5776 int i;
5777 _ACEOF
5778 if ac_fn_c_try_compile "$LINENO"
5779 then :
5780 xorg_cv_cc_flag_unknown_warning_option=yes
5781 else $as_nop
5782 xorg_cv_cc_flag_unknown_warning_option=no
5783 fi
5784 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5785 fi
5786 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5787 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5788 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5789 CFLAGS="$xorg_testset_save_CFLAGS"
5790 fi
5791
5792 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5793 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5794 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5795 fi
5796 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5798 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5799 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5800 then :
5801 printf %s "(cached) " >&6
5802 else $as_nop
5803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5804 /* end confdefs.h. */
5805 int i;
5806 _ACEOF
5807 if ac_fn_c_try_compile "$LINENO"
5808 then :
5809 xorg_cv_cc_flag_unused_command_line_argument=yes
5810 else $as_nop
5811 xorg_cv_cc_flag_unused_command_line_argument=no
5812 fi
5813 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5814 fi
5815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5816 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5817 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5818 CFLAGS="$xorg_testset_save_CFLAGS"
5819 fi
5820
5821 found="no"
5822
5823 if test $found = "no" ; then
5824 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5825 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5826 fi
5827
5828 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5829 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5830 fi
5831
5832 CFLAGS="$CFLAGS -Wnested-externs"
5833
5834 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5835 printf %s "checking if $CC supports -Wnested-externs... " >&6; }
5836 cacheid=xorg_cv_cc_flag__Wnested_externs
5837 if eval test \${$cacheid+y}
5838 then :
5839 printf %s "(cached) " >&6
5840 else $as_nop
5841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5842 /* end confdefs.h. */
5843 int i;
5844 int
5845 main (void)
5846 {
5847
5848 ;
5849 return 0;
5850 }
5851 _ACEOF
5852 if ac_fn_c_try_link "$LINENO"
5853 then :
5854 eval $cacheid=yes
5855 else $as_nop
5856 eval $cacheid=no
5857 fi
5858 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5859 conftest$ac_exeext conftest.$ac_ext
5860 fi
5861
5862
5863 CFLAGS="$xorg_testset_save_CFLAGS"
5864
5865 eval supported=\$$cacheid
5866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5867 printf "%s\n" "$supported" >&6; }
5868 if test "$supported" = "yes" ; then
5869 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5870 found="yes"
5871 fi
5872 fi
5873
5874
5875
5876
5877
5878
5879
5880
5881
5882
5883
5884
5885
5886
5887
5888 xorg_testset_save_CFLAGS="$CFLAGS"
5889
5890 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5891 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5893 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5894 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5895 then :
5896 printf %s "(cached) " >&6
5897 else $as_nop
5898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5899 /* end confdefs.h. */
5900 int i;
5901 _ACEOF
5902 if ac_fn_c_try_compile "$LINENO"
5903 then :
5904 xorg_cv_cc_flag_unknown_warning_option=yes
5905 else $as_nop
5906 xorg_cv_cc_flag_unknown_warning_option=no
5907 fi
5908 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5909 fi
5910 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5911 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5912 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5913 CFLAGS="$xorg_testset_save_CFLAGS"
5914 fi
5915
5916 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5917 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5918 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5919 fi
5920 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5922 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5923 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5924 then :
5925 printf %s "(cached) " >&6
5926 else $as_nop
5927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5928 /* end confdefs.h. */
5929 int i;
5930 _ACEOF
5931 if ac_fn_c_try_compile "$LINENO"
5932 then :
5933 xorg_cv_cc_flag_unused_command_line_argument=yes
5934 else $as_nop
5935 xorg_cv_cc_flag_unused_command_line_argument=no
5936 fi
5937 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5938 fi
5939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5940 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5941 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5942 CFLAGS="$xorg_testset_save_CFLAGS"
5943 fi
5944
5945 found="no"
5946
5947 if test $found = "no" ; then
5948 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5949 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5950 fi
5951
5952 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5953 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5954 fi
5955
5956 CFLAGS="$CFLAGS -Wbad-function-cast"
5957
5958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
5959 printf %s "checking if $CC supports -Wbad-function-cast... " >&6; }
5960 cacheid=xorg_cv_cc_flag__Wbad_function_cast
5961 if eval test \${$cacheid+y}
5962 then :
5963 printf %s "(cached) " >&6
5964 else $as_nop
5965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5966 /* end confdefs.h. */
5967 int i;
5968 int
5969 main (void)
5970 {
5971
5972 ;
5973 return 0;
5974 }
5975 _ACEOF
5976 if ac_fn_c_try_link "$LINENO"
5977 then :
5978 eval $cacheid=yes
5979 else $as_nop
5980 eval $cacheid=no
5981 fi
5982 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5983 conftest$ac_exeext conftest.$ac_ext
5984 fi
5985
5986
5987 CFLAGS="$xorg_testset_save_CFLAGS"
5988
5989 eval supported=\$$cacheid
5990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5991 printf "%s\n" "$supported" >&6; }
5992 if test "$supported" = "yes" ; then
5993 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
5994 found="yes"
5995 fi
5996 fi
5997
5998
5999
6000
6001
6002
6003
6004
6005
6006
6007
6008
6009
6010
6011
6012 xorg_testset_save_CFLAGS="$CFLAGS"
6013
6014 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6015 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6017 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6018 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6019 then :
6020 printf %s "(cached) " >&6
6021 else $as_nop
6022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6023 /* end confdefs.h. */
6024 int i;
6025 _ACEOF
6026 if ac_fn_c_try_compile "$LINENO"
6027 then :
6028 xorg_cv_cc_flag_unknown_warning_option=yes
6029 else $as_nop
6030 xorg_cv_cc_flag_unknown_warning_option=no
6031 fi
6032 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6033 fi
6034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6035 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6036 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6037 CFLAGS="$xorg_testset_save_CFLAGS"
6038 fi
6039
6040 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6041 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6042 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6043 fi
6044 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6045 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6046 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6047 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6048 then :
6049 printf %s "(cached) " >&6
6050 else $as_nop
6051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6052 /* end confdefs.h. */
6053 int i;
6054 _ACEOF
6055 if ac_fn_c_try_compile "$LINENO"
6056 then :
6057 xorg_cv_cc_flag_unused_command_line_argument=yes
6058 else $as_nop
6059 xorg_cv_cc_flag_unused_command_line_argument=no
6060 fi
6061 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6062 fi
6063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6064 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6065 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6066 CFLAGS="$xorg_testset_save_CFLAGS"
6067 fi
6068
6069 found="no"
6070
6071 if test $found = "no" ; then
6072 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6073 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6074 fi
6075
6076 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6077 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6078 fi
6079
6080 CFLAGS="$CFLAGS -Wold-style-definition"
6081
6082 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
6083 printf %s "checking if $CC supports -Wold-style-definition... " >&6; }
6084 cacheid=xorg_cv_cc_flag__Wold_style_definition
6085 if eval test \${$cacheid+y}
6086 then :
6087 printf %s "(cached) " >&6
6088 else $as_nop
6089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6090 /* end confdefs.h. */
6091 int i;
6092 int
6093 main (void)
6094 {
6095
6096 ;
6097 return 0;
6098 }
6099 _ACEOF
6100 if ac_fn_c_try_link "$LINENO"
6101 then :
6102 eval $cacheid=yes
6103 else $as_nop
6104 eval $cacheid=no
6105 fi
6106 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6107 conftest$ac_exeext conftest.$ac_ext
6108 fi
6109
6110
6111 CFLAGS="$xorg_testset_save_CFLAGS"
6112
6113 eval supported=\$$cacheid
6114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6115 printf "%s\n" "$supported" >&6; }
6116 if test "$supported" = "yes" ; then
6117 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
6118 found="yes"
6119 fi
6120 fi
6121
6122 if test $found = "no" ; then
6123 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6124 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6125 fi
6126
6127 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6128 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6129 fi
6130
6131 CFLAGS="$CFLAGS -fd"
6132
6133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
6134 printf %s "checking if $CC supports -fd... " >&6; }
6135 cacheid=xorg_cv_cc_flag__fd
6136 if eval test \${$cacheid+y}
6137 then :
6138 printf %s "(cached) " >&6
6139 else $as_nop
6140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6141 /* end confdefs.h. */
6142 int i;
6143 int
6144 main (void)
6145 {
6146
6147 ;
6148 return 0;
6149 }
6150 _ACEOF
6151 if ac_fn_c_try_link "$LINENO"
6152 then :
6153 eval $cacheid=yes
6154 else $as_nop
6155 eval $cacheid=no
6156 fi
6157 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6158 conftest$ac_exeext conftest.$ac_ext
6159 fi
6160
6161
6162 CFLAGS="$xorg_testset_save_CFLAGS"
6163
6164 eval supported=\$$cacheid
6165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6166 printf "%s\n" "$supported" >&6; }
6167 if test "$supported" = "yes" ; then
6168 BASE_CFLAGS="$BASE_CFLAGS -fd"
6169 found="yes"
6170 fi
6171 fi
6172
6173
6174
6175
6176
6177
6178
6179
6180
6181
6182
6183
6184
6185
6186
6187 xorg_testset_save_CFLAGS="$CFLAGS"
6188
6189 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6190 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6191 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6192 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6193 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6194 then :
6195 printf %s "(cached) " >&6
6196 else $as_nop
6197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6198 /* end confdefs.h. */
6199 int i;
6200 _ACEOF
6201 if ac_fn_c_try_compile "$LINENO"
6202 then :
6203 xorg_cv_cc_flag_unknown_warning_option=yes
6204 else $as_nop
6205 xorg_cv_cc_flag_unknown_warning_option=no
6206 fi
6207 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6208 fi
6209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6210 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6211 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6212 CFLAGS="$xorg_testset_save_CFLAGS"
6213 fi
6214
6215 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6216 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6217 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6218 fi
6219 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6220 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6221 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6222 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6223 then :
6224 printf %s "(cached) " >&6
6225 else $as_nop
6226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6227 /* end confdefs.h. */
6228 int i;
6229 _ACEOF
6230 if ac_fn_c_try_compile "$LINENO"
6231 then :
6232 xorg_cv_cc_flag_unused_command_line_argument=yes
6233 else $as_nop
6234 xorg_cv_cc_flag_unused_command_line_argument=no
6235 fi
6236 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6237 fi
6238 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6239 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6240 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6241 CFLAGS="$xorg_testset_save_CFLAGS"
6242 fi
6243
6244 found="no"
6245
6246 if test $found = "no" ; then
6247 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6248 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6249 fi
6250
6251 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6252 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6253 fi
6254
6255 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
6256
6257 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
6258 printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
6259 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
6260 if eval test \${$cacheid+y}
6261 then :
6262 printf %s "(cached) " >&6
6263 else $as_nop
6264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6265 /* end confdefs.h. */
6266 int i;
6267 int
6268 main (void)
6269 {
6270
6271 ;
6272 return 0;
6273 }
6274 _ACEOF
6275 if ac_fn_c_try_link "$LINENO"
6276 then :
6277 eval $cacheid=yes
6278 else $as_nop
6279 eval $cacheid=no
6280 fi
6281 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6282 conftest$ac_exeext conftest.$ac_ext
6283 fi
6284
6285
6286 CFLAGS="$xorg_testset_save_CFLAGS"
6287
6288 eval supported=\$$cacheid
6289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6290 printf "%s\n" "$supported" >&6; }
6291 if test "$supported" = "yes" ; then
6292 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
6293 found="yes"
6294 fi
6295 fi
6296
6297
6298
6299
6300
6301 # This chunk adds additional warnings that could catch undesired effects.
6302
6303
6304
6305
6306
6307
6308
6309
6310
6311
6312
6313
6314
6315 xorg_testset_save_CFLAGS="$CFLAGS"
6316
6317 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6318 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6320 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6321 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6322 then :
6323 printf %s "(cached) " >&6
6324 else $as_nop
6325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6326 /* end confdefs.h. */
6327 int i;
6328 _ACEOF
6329 if ac_fn_c_try_compile "$LINENO"
6330 then :
6331 xorg_cv_cc_flag_unknown_warning_option=yes
6332 else $as_nop
6333 xorg_cv_cc_flag_unknown_warning_option=no
6334 fi
6335 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6336 fi
6337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6338 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6339 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6340 CFLAGS="$xorg_testset_save_CFLAGS"
6341 fi
6342
6343 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6344 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6345 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6346 fi
6347 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6348 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6349 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6350 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6351 then :
6352 printf %s "(cached) " >&6
6353 else $as_nop
6354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6355 /* end confdefs.h. */
6356 int i;
6357 _ACEOF
6358 if ac_fn_c_try_compile "$LINENO"
6359 then :
6360 xorg_cv_cc_flag_unused_command_line_argument=yes
6361 else $as_nop
6362 xorg_cv_cc_flag_unused_command_line_argument=no
6363 fi
6364 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6365 fi
6366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6367 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6368 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6369 CFLAGS="$xorg_testset_save_CFLAGS"
6370 fi
6371
6372 found="no"
6373
6374 if test $found = "no" ; then
6375 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6376 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6377 fi
6378
6379 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6380 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6381 fi
6382
6383 CFLAGS="$CFLAGS -Wunused"
6384
6385 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
6386 printf %s "checking if $CC supports -Wunused... " >&6; }
6387 cacheid=xorg_cv_cc_flag__Wunused
6388 if eval test \${$cacheid+y}
6389 then :
6390 printf %s "(cached) " >&6
6391 else $as_nop
6392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6393 /* end confdefs.h. */
6394 int i;
6395 int
6396 main (void)
6397 {
6398
6399 ;
6400 return 0;
6401 }
6402 _ACEOF
6403 if ac_fn_c_try_link "$LINENO"
6404 then :
6405 eval $cacheid=yes
6406 else $as_nop
6407 eval $cacheid=no
6408 fi
6409 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6410 conftest$ac_exeext conftest.$ac_ext
6411 fi
6412
6413
6414 CFLAGS="$xorg_testset_save_CFLAGS"
6415
6416 eval supported=\$$cacheid
6417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6418 printf "%s\n" "$supported" >&6; }
6419 if test "$supported" = "yes" ; then
6420 BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6421 found="yes"
6422 fi
6423 fi
6424
6425
6426
6427
6428
6429
6430
6431
6432
6433
6434
6435
6436
6437
6438
6439 xorg_testset_save_CFLAGS="$CFLAGS"
6440
6441 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6442 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6443 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6444 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6445 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6446 then :
6447 printf %s "(cached) " >&6
6448 else $as_nop
6449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6450 /* end confdefs.h. */
6451 int i;
6452 _ACEOF
6453 if ac_fn_c_try_compile "$LINENO"
6454 then :
6455 xorg_cv_cc_flag_unknown_warning_option=yes
6456 else $as_nop
6457 xorg_cv_cc_flag_unknown_warning_option=no
6458 fi
6459 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6460 fi
6461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6462 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6463 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6464 CFLAGS="$xorg_testset_save_CFLAGS"
6465 fi
6466
6467 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6468 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6469 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6470 fi
6471 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6473 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6474 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6475 then :
6476 printf %s "(cached) " >&6
6477 else $as_nop
6478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6479 /* end confdefs.h. */
6480 int i;
6481 _ACEOF
6482 if ac_fn_c_try_compile "$LINENO"
6483 then :
6484 xorg_cv_cc_flag_unused_command_line_argument=yes
6485 else $as_nop
6486 xorg_cv_cc_flag_unused_command_line_argument=no
6487 fi
6488 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6489 fi
6490 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6491 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6492 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6493 CFLAGS="$xorg_testset_save_CFLAGS"
6494 fi
6495
6496 found="no"
6497
6498 if test $found = "no" ; then
6499 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6500 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6501 fi
6502
6503 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6504 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6505 fi
6506
6507 CFLAGS="$CFLAGS -Wuninitialized"
6508
6509 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6510 printf %s "checking if $CC supports -Wuninitialized... " >&6; }
6511 cacheid=xorg_cv_cc_flag__Wuninitialized
6512 if eval test \${$cacheid+y}
6513 then :
6514 printf %s "(cached) " >&6
6515 else $as_nop
6516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6517 /* end confdefs.h. */
6518 int i;
6519 int
6520 main (void)
6521 {
6522
6523 ;
6524 return 0;
6525 }
6526 _ACEOF
6527 if ac_fn_c_try_link "$LINENO"
6528 then :
6529 eval $cacheid=yes
6530 else $as_nop
6531 eval $cacheid=no
6532 fi
6533 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6534 conftest$ac_exeext conftest.$ac_ext
6535 fi
6536
6537
6538 CFLAGS="$xorg_testset_save_CFLAGS"
6539
6540 eval supported=\$$cacheid
6541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6542 printf "%s\n" "$supported" >&6; }
6543 if test "$supported" = "yes" ; then
6544 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6545 found="yes"
6546 fi
6547 fi
6548
6549
6550
6551
6552
6553
6554
6555
6556
6557
6558
6559
6560
6561
6562
6563 xorg_testset_save_CFLAGS="$CFLAGS"
6564
6565 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6566 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6568 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6569 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6570 then :
6571 printf %s "(cached) " >&6
6572 else $as_nop
6573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6574 /* end confdefs.h. */
6575 int i;
6576 _ACEOF
6577 if ac_fn_c_try_compile "$LINENO"
6578 then :
6579 xorg_cv_cc_flag_unknown_warning_option=yes
6580 else $as_nop
6581 xorg_cv_cc_flag_unknown_warning_option=no
6582 fi
6583 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6584 fi
6585 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6586 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6587 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6588 CFLAGS="$xorg_testset_save_CFLAGS"
6589 fi
6590
6591 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6592 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6593 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6594 fi
6595 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6597 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6598 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6599 then :
6600 printf %s "(cached) " >&6
6601 else $as_nop
6602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6603 /* end confdefs.h. */
6604 int i;
6605 _ACEOF
6606 if ac_fn_c_try_compile "$LINENO"
6607 then :
6608 xorg_cv_cc_flag_unused_command_line_argument=yes
6609 else $as_nop
6610 xorg_cv_cc_flag_unused_command_line_argument=no
6611 fi
6612 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6613 fi
6614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6615 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6616 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6617 CFLAGS="$xorg_testset_save_CFLAGS"
6618 fi
6619
6620 found="no"
6621
6622 if test $found = "no" ; then
6623 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6624 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6625 fi
6626
6627 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6628 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6629 fi
6630
6631 CFLAGS="$CFLAGS -Wshadow"
6632
6633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6634 printf %s "checking if $CC supports -Wshadow... " >&6; }
6635 cacheid=xorg_cv_cc_flag__Wshadow
6636 if eval test \${$cacheid+y}
6637 then :
6638 printf %s "(cached) " >&6
6639 else $as_nop
6640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6641 /* end confdefs.h. */
6642 int i;
6643 int
6644 main (void)
6645 {
6646
6647 ;
6648 return 0;
6649 }
6650 _ACEOF
6651 if ac_fn_c_try_link "$LINENO"
6652 then :
6653 eval $cacheid=yes
6654 else $as_nop
6655 eval $cacheid=no
6656 fi
6657 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6658 conftest$ac_exeext conftest.$ac_ext
6659 fi
6660
6661
6662 CFLAGS="$xorg_testset_save_CFLAGS"
6663
6664 eval supported=\$$cacheid
6665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6666 printf "%s\n" "$supported" >&6; }
6667 if test "$supported" = "yes" ; then
6668 BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6669 found="yes"
6670 fi
6671 fi
6672
6673
6674
6675
6676
6677
6678
6679
6680
6681
6682
6683
6684
6685
6686
6687 xorg_testset_save_CFLAGS="$CFLAGS"
6688
6689 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6690 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6692 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6693 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6694 then :
6695 printf %s "(cached) " >&6
6696 else $as_nop
6697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6698 /* end confdefs.h. */
6699 int i;
6700 _ACEOF
6701 if ac_fn_c_try_compile "$LINENO"
6702 then :
6703 xorg_cv_cc_flag_unknown_warning_option=yes
6704 else $as_nop
6705 xorg_cv_cc_flag_unknown_warning_option=no
6706 fi
6707 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6708 fi
6709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6710 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6711 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6712 CFLAGS="$xorg_testset_save_CFLAGS"
6713 fi
6714
6715 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6716 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6717 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6718 fi
6719 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6721 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6722 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6723 then :
6724 printf %s "(cached) " >&6
6725 else $as_nop
6726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6727 /* end confdefs.h. */
6728 int i;
6729 _ACEOF
6730 if ac_fn_c_try_compile "$LINENO"
6731 then :
6732 xorg_cv_cc_flag_unused_command_line_argument=yes
6733 else $as_nop
6734 xorg_cv_cc_flag_unused_command_line_argument=no
6735 fi
6736 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6737 fi
6738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6739 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6740 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6741 CFLAGS="$xorg_testset_save_CFLAGS"
6742 fi
6743
6744 found="no"
6745
6746 if test $found = "no" ; then
6747 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6748 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6749 fi
6750
6751 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6752 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6753 fi
6754
6755 CFLAGS="$CFLAGS -Wmissing-noreturn"
6756
6757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6758 printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; }
6759 cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6760 if eval test \${$cacheid+y}
6761 then :
6762 printf %s "(cached) " >&6
6763 else $as_nop
6764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6765 /* end confdefs.h. */
6766 int i;
6767 int
6768 main (void)
6769 {
6770
6771 ;
6772 return 0;
6773 }
6774 _ACEOF
6775 if ac_fn_c_try_link "$LINENO"
6776 then :
6777 eval $cacheid=yes
6778 else $as_nop
6779 eval $cacheid=no
6780 fi
6781 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6782 conftest$ac_exeext conftest.$ac_ext
6783 fi
6784
6785
6786 CFLAGS="$xorg_testset_save_CFLAGS"
6787
6788 eval supported=\$$cacheid
6789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6790 printf "%s\n" "$supported" >&6; }
6791 if test "$supported" = "yes" ; then
6792 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6793 found="yes"
6794 fi
6795 fi
6796
6797
6798
6799
6800
6801
6802
6803
6804
6805
6806
6807
6808
6809
6810
6811 xorg_testset_save_CFLAGS="$CFLAGS"
6812
6813 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6814 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6816 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6817 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6818 then :
6819 printf %s "(cached) " >&6
6820 else $as_nop
6821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6822 /* end confdefs.h. */
6823 int i;
6824 _ACEOF
6825 if ac_fn_c_try_compile "$LINENO"
6826 then :
6827 xorg_cv_cc_flag_unknown_warning_option=yes
6828 else $as_nop
6829 xorg_cv_cc_flag_unknown_warning_option=no
6830 fi
6831 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6832 fi
6833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6834 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6835 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6836 CFLAGS="$xorg_testset_save_CFLAGS"
6837 fi
6838
6839 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6840 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6841 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6842 fi
6843 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6845 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6846 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6847 then :
6848 printf %s "(cached) " >&6
6849 else $as_nop
6850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6851 /* end confdefs.h. */
6852 int i;
6853 _ACEOF
6854 if ac_fn_c_try_compile "$LINENO"
6855 then :
6856 xorg_cv_cc_flag_unused_command_line_argument=yes
6857 else $as_nop
6858 xorg_cv_cc_flag_unused_command_line_argument=no
6859 fi
6860 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6861 fi
6862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6863 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6864 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6865 CFLAGS="$xorg_testset_save_CFLAGS"
6866 fi
6867
6868 found="no"
6869
6870 if test $found = "no" ; then
6871 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6872 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6873 fi
6874
6875 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6876 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6877 fi
6878
6879 CFLAGS="$CFLAGS -Wmissing-format-attribute"
6880
6881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6882 printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6883 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6884 if eval test \${$cacheid+y}
6885 then :
6886 printf %s "(cached) " >&6
6887 else $as_nop
6888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6889 /* end confdefs.h. */
6890 int i;
6891 int
6892 main (void)
6893 {
6894
6895 ;
6896 return 0;
6897 }
6898 _ACEOF
6899 if ac_fn_c_try_link "$LINENO"
6900 then :
6901 eval $cacheid=yes
6902 else $as_nop
6903 eval $cacheid=no
6904 fi
6905 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6906 conftest$ac_exeext conftest.$ac_ext
6907 fi
6908
6909
6910 CFLAGS="$xorg_testset_save_CFLAGS"
6911
6912 eval supported=\$$cacheid
6913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6914 printf "%s\n" "$supported" >&6; }
6915 if test "$supported" = "yes" ; then
6916 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6917 found="yes"
6918 fi
6919 fi
6920
6921
6922
6923
6924
6925
6926
6927
6928
6929
6930
6931
6932
6933
6934
6935 xorg_testset_save_CFLAGS="$CFLAGS"
6936
6937 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6938 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6940 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6941 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6942 then :
6943 printf %s "(cached) " >&6
6944 else $as_nop
6945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6946 /* end confdefs.h. */
6947 int i;
6948 _ACEOF
6949 if ac_fn_c_try_compile "$LINENO"
6950 then :
6951 xorg_cv_cc_flag_unknown_warning_option=yes
6952 else $as_nop
6953 xorg_cv_cc_flag_unknown_warning_option=no
6954 fi
6955 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6956 fi
6957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6958 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6959 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6960 CFLAGS="$xorg_testset_save_CFLAGS"
6961 fi
6962
6963 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6964 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6965 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6966 fi
6967 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6968 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6969 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6970 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6971 then :
6972 printf %s "(cached) " >&6
6973 else $as_nop
6974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6975 /* end confdefs.h. */
6976 int i;
6977 _ACEOF
6978 if ac_fn_c_try_compile "$LINENO"
6979 then :
6980 xorg_cv_cc_flag_unused_command_line_argument=yes
6981 else $as_nop
6982 xorg_cv_cc_flag_unused_command_line_argument=no
6983 fi
6984 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6985 fi
6986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6987 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6988 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6989 CFLAGS="$xorg_testset_save_CFLAGS"
6990 fi
6991
6992 found="no"
6993
6994 if test $found = "no" ; then
6995 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6996 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6997 fi
6998
6999 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7000 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7001 fi
7002
7003 CFLAGS="$CFLAGS -Wredundant-decls"
7004
7005 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
7006 printf %s "checking if $CC supports -Wredundant-decls... " >&6; }
7007 cacheid=xorg_cv_cc_flag__Wredundant_decls
7008 if eval test \${$cacheid+y}
7009 then :
7010 printf %s "(cached) " >&6
7011 else $as_nop
7012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7013 /* end confdefs.h. */
7014 int i;
7015 int
7016 main (void)
7017 {
7018
7019 ;
7020 return 0;
7021 }
7022 _ACEOF
7023 if ac_fn_c_try_link "$LINENO"
7024 then :
7025 eval $cacheid=yes
7026 else $as_nop
7027 eval $cacheid=no
7028 fi
7029 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7030 conftest$ac_exeext conftest.$ac_ext
7031 fi
7032
7033
7034 CFLAGS="$xorg_testset_save_CFLAGS"
7035
7036 eval supported=\$$cacheid
7037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7038 printf "%s\n" "$supported" >&6; }
7039 if test "$supported" = "yes" ; then
7040 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
7041 found="yes"
7042 fi
7043 fi
7044
7045
7046
7047
7048
7049
7050
7051
7052
7053
7054
7055
7056
7057
7058
7059 xorg_testset_save_CFLAGS="$CFLAGS"
7060
7061 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7062 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7064 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7065 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7066 then :
7067 printf %s "(cached) " >&6
7068 else $as_nop
7069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7070 /* end confdefs.h. */
7071 int i;
7072 _ACEOF
7073 if ac_fn_c_try_compile "$LINENO"
7074 then :
7075 xorg_cv_cc_flag_unknown_warning_option=yes
7076 else $as_nop
7077 xorg_cv_cc_flag_unknown_warning_option=no
7078 fi
7079 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7080 fi
7081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7082 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7083 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7084 CFLAGS="$xorg_testset_save_CFLAGS"
7085 fi
7086
7087 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7088 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7089 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7090 fi
7091 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7093 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7094 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7095 then :
7096 printf %s "(cached) " >&6
7097 else $as_nop
7098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7099 /* end confdefs.h. */
7100 int i;
7101 _ACEOF
7102 if ac_fn_c_try_compile "$LINENO"
7103 then :
7104 xorg_cv_cc_flag_unused_command_line_argument=yes
7105 else $as_nop
7106 xorg_cv_cc_flag_unused_command_line_argument=no
7107 fi
7108 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7109 fi
7110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7111 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7112 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7113 CFLAGS="$xorg_testset_save_CFLAGS"
7114 fi
7115
7116 found="no"
7117
7118 if test $found = "no" ; then
7119 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7120 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7121 fi
7122
7123 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7124 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7125 fi
7126
7127 CFLAGS="$CFLAGS -Wlogical-op"
7128
7129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
7130 printf %s "checking if $CC supports -Wlogical-op... " >&6; }
7131 cacheid=xorg_cv_cc_flag__Wlogical_op
7132 if eval test \${$cacheid+y}
7133 then :
7134 printf %s "(cached) " >&6
7135 else $as_nop
7136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7137 /* end confdefs.h. */
7138 int i;
7139 int
7140 main (void)
7141 {
7142
7143 ;
7144 return 0;
7145 }
7146 _ACEOF
7147 if ac_fn_c_try_link "$LINENO"
7148 then :
7149 eval $cacheid=yes
7150 else $as_nop
7151 eval $cacheid=no
7152 fi
7153 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7154 conftest$ac_exeext conftest.$ac_ext
7155 fi
7156
7157
7158 CFLAGS="$xorg_testset_save_CFLAGS"
7159
7160 eval supported=\$$cacheid
7161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7162 printf "%s\n" "$supported" >&6; }
7163 if test "$supported" = "yes" ; then
7164 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
7165 found="yes"
7166 fi
7167 fi
7168
7169
7170
7171 # These are currently disabled because they are noisy. They will be enabled
7172 # in the future once the codebase is sufficiently modernized to silence
7173 # them. For now, I don't want them to drown out the other warnings.
7174 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
7175 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
7176 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
7177
7178 # Turn some warnings into errors, so we don't accidently get successful builds
7179 # when there are problems that should be fixed.
7180
7181 if test "x$SELECTIVE_WERROR" = "xyes" ; then
7182
7183
7184
7185
7186
7187
7188
7189
7190
7191
7192
7193
7194
7195 xorg_testset_save_CFLAGS="$CFLAGS"
7196
7197 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7198 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7200 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7201 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7202 then :
7203 printf %s "(cached) " >&6
7204 else $as_nop
7205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7206 /* end confdefs.h. */
7207 int i;
7208 _ACEOF
7209 if ac_fn_c_try_compile "$LINENO"
7210 then :
7211 xorg_cv_cc_flag_unknown_warning_option=yes
7212 else $as_nop
7213 xorg_cv_cc_flag_unknown_warning_option=no
7214 fi
7215 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7216 fi
7217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7218 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7219 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7220 CFLAGS="$xorg_testset_save_CFLAGS"
7221 fi
7222
7223 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7224 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7225 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7226 fi
7227 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7229 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7230 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7231 then :
7232 printf %s "(cached) " >&6
7233 else $as_nop
7234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7235 /* end confdefs.h. */
7236 int i;
7237 _ACEOF
7238 if ac_fn_c_try_compile "$LINENO"
7239 then :
7240 xorg_cv_cc_flag_unused_command_line_argument=yes
7241 else $as_nop
7242 xorg_cv_cc_flag_unused_command_line_argument=no
7243 fi
7244 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7245 fi
7246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7247 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7248 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7249 CFLAGS="$xorg_testset_save_CFLAGS"
7250 fi
7251
7252 found="no"
7253
7254 if test $found = "no" ; then
7255 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7256 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7257 fi
7258
7259 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7260 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7261 fi
7262
7263 CFLAGS="$CFLAGS -Werror=implicit"
7264
7265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
7266 printf %s "checking if $CC supports -Werror=implicit... " >&6; }
7267 cacheid=xorg_cv_cc_flag__Werror_implicit
7268 if eval test \${$cacheid+y}
7269 then :
7270 printf %s "(cached) " >&6
7271 else $as_nop
7272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7273 /* end confdefs.h. */
7274 int i;
7275 int
7276 main (void)
7277 {
7278
7279 ;
7280 return 0;
7281 }
7282 _ACEOF
7283 if ac_fn_c_try_link "$LINENO"
7284 then :
7285 eval $cacheid=yes
7286 else $as_nop
7287 eval $cacheid=no
7288 fi
7289 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7290 conftest$ac_exeext conftest.$ac_ext
7291 fi
7292
7293
7294 CFLAGS="$xorg_testset_save_CFLAGS"
7295
7296 eval supported=\$$cacheid
7297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7298 printf "%s\n" "$supported" >&6; }
7299 if test "$supported" = "yes" ; then
7300 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
7301 found="yes"
7302 fi
7303 fi
7304
7305 if test $found = "no" ; then
7306 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7307 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7308 fi
7309
7310 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7311 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7312 fi
7313
7314 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7315
7316 { 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
7317 printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
7318 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
7319 if eval test \${$cacheid+y}
7320 then :
7321 printf %s "(cached) " >&6
7322 else $as_nop
7323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7324 /* end confdefs.h. */
7325 int i;
7326 int
7327 main (void)
7328 {
7329
7330 ;
7331 return 0;
7332 }
7333 _ACEOF
7334 if ac_fn_c_try_link "$LINENO"
7335 then :
7336 eval $cacheid=yes
7337 else $as_nop
7338 eval $cacheid=no
7339 fi
7340 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7341 conftest$ac_exeext conftest.$ac_ext
7342 fi
7343
7344
7345 CFLAGS="$xorg_testset_save_CFLAGS"
7346
7347 eval supported=\$$cacheid
7348 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7349 printf "%s\n" "$supported" >&6; }
7350 if test "$supported" = "yes" ; then
7351 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7352 found="yes"
7353 fi
7354 fi
7355
7356
7357
7358
7359
7360
7361
7362
7363
7364
7365
7366
7367
7368
7369
7370 xorg_testset_save_CFLAGS="$CFLAGS"
7371
7372 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7373 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7374 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7375 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7376 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7377 then :
7378 printf %s "(cached) " >&6
7379 else $as_nop
7380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7381 /* end confdefs.h. */
7382 int i;
7383 _ACEOF
7384 if ac_fn_c_try_compile "$LINENO"
7385 then :
7386 xorg_cv_cc_flag_unknown_warning_option=yes
7387 else $as_nop
7388 xorg_cv_cc_flag_unknown_warning_option=no
7389 fi
7390 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7391 fi
7392 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7393 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7394 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7395 CFLAGS="$xorg_testset_save_CFLAGS"
7396 fi
7397
7398 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7399 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7400 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7401 fi
7402 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7404 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7405 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7406 then :
7407 printf %s "(cached) " >&6
7408 else $as_nop
7409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7410 /* end confdefs.h. */
7411 int i;
7412 _ACEOF
7413 if ac_fn_c_try_compile "$LINENO"
7414 then :
7415 xorg_cv_cc_flag_unused_command_line_argument=yes
7416 else $as_nop
7417 xorg_cv_cc_flag_unused_command_line_argument=no
7418 fi
7419 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7420 fi
7421 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7422 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7423 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7424 CFLAGS="$xorg_testset_save_CFLAGS"
7425 fi
7426
7427 found="no"
7428
7429 if test $found = "no" ; then
7430 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7431 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7432 fi
7433
7434 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7435 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7436 fi
7437
7438 CFLAGS="$CFLAGS -Werror=nonnull"
7439
7440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
7441 printf %s "checking if $CC supports -Werror=nonnull... " >&6; }
7442 cacheid=xorg_cv_cc_flag__Werror_nonnull
7443 if eval test \${$cacheid+y}
7444 then :
7445 printf %s "(cached) " >&6
7446 else $as_nop
7447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7448 /* end confdefs.h. */
7449 int i;
7450 int
7451 main (void)
7452 {
7453
7454 ;
7455 return 0;
7456 }
7457 _ACEOF
7458 if ac_fn_c_try_link "$LINENO"
7459 then :
7460 eval $cacheid=yes
7461 else $as_nop
7462 eval $cacheid=no
7463 fi
7464 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7465 conftest$ac_exeext conftest.$ac_ext
7466 fi
7467
7468
7469 CFLAGS="$xorg_testset_save_CFLAGS"
7470
7471 eval supported=\$$cacheid
7472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7473 printf "%s\n" "$supported" >&6; }
7474 if test "$supported" = "yes" ; then
7475 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7476 found="yes"
7477 fi
7478 fi
7479
7480
7481
7482
7483
7484
7485
7486
7487
7488
7489
7490
7491
7492
7493
7494 xorg_testset_save_CFLAGS="$CFLAGS"
7495
7496 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7497 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7498 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7499 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7500 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7501 then :
7502 printf %s "(cached) " >&6
7503 else $as_nop
7504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7505 /* end confdefs.h. */
7506 int i;
7507 _ACEOF
7508 if ac_fn_c_try_compile "$LINENO"
7509 then :
7510 xorg_cv_cc_flag_unknown_warning_option=yes
7511 else $as_nop
7512 xorg_cv_cc_flag_unknown_warning_option=no
7513 fi
7514 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7515 fi
7516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7517 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7518 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7519 CFLAGS="$xorg_testset_save_CFLAGS"
7520 fi
7521
7522 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7523 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7524 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7525 fi
7526 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7528 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7529 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7530 then :
7531 printf %s "(cached) " >&6
7532 else $as_nop
7533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7534 /* end confdefs.h. */
7535 int i;
7536 _ACEOF
7537 if ac_fn_c_try_compile "$LINENO"
7538 then :
7539 xorg_cv_cc_flag_unused_command_line_argument=yes
7540 else $as_nop
7541 xorg_cv_cc_flag_unused_command_line_argument=no
7542 fi
7543 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7544 fi
7545 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7546 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7547 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7548 CFLAGS="$xorg_testset_save_CFLAGS"
7549 fi
7550
7551 found="no"
7552
7553 if test $found = "no" ; then
7554 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7555 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7556 fi
7557
7558 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7559 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7560 fi
7561
7562 CFLAGS="$CFLAGS -Werror=init-self"
7563
7564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7565 printf %s "checking if $CC supports -Werror=init-self... " >&6; }
7566 cacheid=xorg_cv_cc_flag__Werror_init_self
7567 if eval test \${$cacheid+y}
7568 then :
7569 printf %s "(cached) " >&6
7570 else $as_nop
7571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7572 /* end confdefs.h. */
7573 int i;
7574 int
7575 main (void)
7576 {
7577
7578 ;
7579 return 0;
7580 }
7581 _ACEOF
7582 if ac_fn_c_try_link "$LINENO"
7583 then :
7584 eval $cacheid=yes
7585 else $as_nop
7586 eval $cacheid=no
7587 fi
7588 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7589 conftest$ac_exeext conftest.$ac_ext
7590 fi
7591
7592
7593 CFLAGS="$xorg_testset_save_CFLAGS"
7594
7595 eval supported=\$$cacheid
7596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7597 printf "%s\n" "$supported" >&6; }
7598 if test "$supported" = "yes" ; then
7599 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7600 found="yes"
7601 fi
7602 fi
7603
7604
7605
7606
7607
7608
7609
7610
7611
7612
7613
7614
7615
7616
7617
7618 xorg_testset_save_CFLAGS="$CFLAGS"
7619
7620 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7621 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7623 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7624 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7625 then :
7626 printf %s "(cached) " >&6
7627 else $as_nop
7628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7629 /* end confdefs.h. */
7630 int i;
7631 _ACEOF
7632 if ac_fn_c_try_compile "$LINENO"
7633 then :
7634 xorg_cv_cc_flag_unknown_warning_option=yes
7635 else $as_nop
7636 xorg_cv_cc_flag_unknown_warning_option=no
7637 fi
7638 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7639 fi
7640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7641 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7642 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7643 CFLAGS="$xorg_testset_save_CFLAGS"
7644 fi
7645
7646 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7647 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7648 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7649 fi
7650 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7652 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7653 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7654 then :
7655 printf %s "(cached) " >&6
7656 else $as_nop
7657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7658 /* end confdefs.h. */
7659 int i;
7660 _ACEOF
7661 if ac_fn_c_try_compile "$LINENO"
7662 then :
7663 xorg_cv_cc_flag_unused_command_line_argument=yes
7664 else $as_nop
7665 xorg_cv_cc_flag_unused_command_line_argument=no
7666 fi
7667 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7668 fi
7669 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7670 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7671 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7672 CFLAGS="$xorg_testset_save_CFLAGS"
7673 fi
7674
7675 found="no"
7676
7677 if test $found = "no" ; then
7678 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7679 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7680 fi
7681
7682 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7683 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7684 fi
7685
7686 CFLAGS="$CFLAGS -Werror=main"
7687
7688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7689 printf %s "checking if $CC supports -Werror=main... " >&6; }
7690 cacheid=xorg_cv_cc_flag__Werror_main
7691 if eval test \${$cacheid+y}
7692 then :
7693 printf %s "(cached) " >&6
7694 else $as_nop
7695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7696 /* end confdefs.h. */
7697 int i;
7698 int
7699 main (void)
7700 {
7701
7702 ;
7703 return 0;
7704 }
7705 _ACEOF
7706 if ac_fn_c_try_link "$LINENO"
7707 then :
7708 eval $cacheid=yes
7709 else $as_nop
7710 eval $cacheid=no
7711 fi
7712 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7713 conftest$ac_exeext conftest.$ac_ext
7714 fi
7715
7716
7717 CFLAGS="$xorg_testset_save_CFLAGS"
7718
7719 eval supported=\$$cacheid
7720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7721 printf "%s\n" "$supported" >&6; }
7722 if test "$supported" = "yes" ; then
7723 BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7724 found="yes"
7725 fi
7726 fi
7727
7728
7729
7730
7731
7732
7733
7734
7735
7736
7737
7738
7739
7740
7741
7742 xorg_testset_save_CFLAGS="$CFLAGS"
7743
7744 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7745 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7747 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7748 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7749 then :
7750 printf %s "(cached) " >&6
7751 else $as_nop
7752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7753 /* end confdefs.h. */
7754 int i;
7755 _ACEOF
7756 if ac_fn_c_try_compile "$LINENO"
7757 then :
7758 xorg_cv_cc_flag_unknown_warning_option=yes
7759 else $as_nop
7760 xorg_cv_cc_flag_unknown_warning_option=no
7761 fi
7762 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7763 fi
7764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7765 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7766 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7767 CFLAGS="$xorg_testset_save_CFLAGS"
7768 fi
7769
7770 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7771 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7772 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7773 fi
7774 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7776 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7777 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7778 then :
7779 printf %s "(cached) " >&6
7780 else $as_nop
7781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7782 /* end confdefs.h. */
7783 int i;
7784 _ACEOF
7785 if ac_fn_c_try_compile "$LINENO"
7786 then :
7787 xorg_cv_cc_flag_unused_command_line_argument=yes
7788 else $as_nop
7789 xorg_cv_cc_flag_unused_command_line_argument=no
7790 fi
7791 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7792 fi
7793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7794 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7795 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7796 CFLAGS="$xorg_testset_save_CFLAGS"
7797 fi
7798
7799 found="no"
7800
7801 if test $found = "no" ; then
7802 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7803 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7804 fi
7805
7806 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7807 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7808 fi
7809
7810 CFLAGS="$CFLAGS -Werror=missing-braces"
7811
7812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
7813 printf %s "checking if $CC supports -Werror=missing-braces... " >&6; }
7814 cacheid=xorg_cv_cc_flag__Werror_missing_braces
7815 if eval test \${$cacheid+y}
7816 then :
7817 printf %s "(cached) " >&6
7818 else $as_nop
7819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7820 /* end confdefs.h. */
7821 int i;
7822 int
7823 main (void)
7824 {
7825
7826 ;
7827 return 0;
7828 }
7829 _ACEOF
7830 if ac_fn_c_try_link "$LINENO"
7831 then :
7832 eval $cacheid=yes
7833 else $as_nop
7834 eval $cacheid=no
7835 fi
7836 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7837 conftest$ac_exeext conftest.$ac_ext
7838 fi
7839
7840
7841 CFLAGS="$xorg_testset_save_CFLAGS"
7842
7843 eval supported=\$$cacheid
7844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7845 printf "%s\n" "$supported" >&6; }
7846 if test "$supported" = "yes" ; then
7847 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7848 found="yes"
7849 fi
7850 fi
7851
7852
7853
7854
7855
7856
7857
7858
7859
7860
7861
7862
7863
7864
7865
7866 xorg_testset_save_CFLAGS="$CFLAGS"
7867
7868 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7869 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7870 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7871 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7872 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7873 then :
7874 printf %s "(cached) " >&6
7875 else $as_nop
7876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7877 /* end confdefs.h. */
7878 int i;
7879 _ACEOF
7880 if ac_fn_c_try_compile "$LINENO"
7881 then :
7882 xorg_cv_cc_flag_unknown_warning_option=yes
7883 else $as_nop
7884 xorg_cv_cc_flag_unknown_warning_option=no
7885 fi
7886 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7887 fi
7888 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7889 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7890 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7891 CFLAGS="$xorg_testset_save_CFLAGS"
7892 fi
7893
7894 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7895 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7896 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7897 fi
7898 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7900 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7901 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7902 then :
7903 printf %s "(cached) " >&6
7904 else $as_nop
7905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7906 /* end confdefs.h. */
7907 int i;
7908 _ACEOF
7909 if ac_fn_c_try_compile "$LINENO"
7910 then :
7911 xorg_cv_cc_flag_unused_command_line_argument=yes
7912 else $as_nop
7913 xorg_cv_cc_flag_unused_command_line_argument=no
7914 fi
7915 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7916 fi
7917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7918 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7919 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7920 CFLAGS="$xorg_testset_save_CFLAGS"
7921 fi
7922
7923 found="no"
7924
7925 if test $found = "no" ; then
7926 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7927 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7928 fi
7929
7930 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7931 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7932 fi
7933
7934 CFLAGS="$CFLAGS -Werror=sequence-point"
7935
7936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
7937 printf %s "checking if $CC supports -Werror=sequence-point... " >&6; }
7938 cacheid=xorg_cv_cc_flag__Werror_sequence_point
7939 if eval test \${$cacheid+y}
7940 then :
7941 printf %s "(cached) " >&6
7942 else $as_nop
7943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7944 /* end confdefs.h. */
7945 int i;
7946 int
7947 main (void)
7948 {
7949
7950 ;
7951 return 0;
7952 }
7953 _ACEOF
7954 if ac_fn_c_try_link "$LINENO"
7955 then :
7956 eval $cacheid=yes
7957 else $as_nop
7958 eval $cacheid=no
7959 fi
7960 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7961 conftest$ac_exeext conftest.$ac_ext
7962 fi
7963
7964
7965 CFLAGS="$xorg_testset_save_CFLAGS"
7966
7967 eval supported=\$$cacheid
7968 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7969 printf "%s\n" "$supported" >&6; }
7970 if test "$supported" = "yes" ; then
7971 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
7972 found="yes"
7973 fi
7974 fi
7975
7976
7977
7978
7979
7980
7981
7982
7983
7984
7985
7986
7987
7988
7989
7990 xorg_testset_save_CFLAGS="$CFLAGS"
7991
7992 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7993 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7995 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7996 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7997 then :
7998 printf %s "(cached) " >&6
7999 else $as_nop
8000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8001 /* end confdefs.h. */
8002 int i;
8003 _ACEOF
8004 if ac_fn_c_try_compile "$LINENO"
8005 then :
8006 xorg_cv_cc_flag_unknown_warning_option=yes
8007 else $as_nop
8008 xorg_cv_cc_flag_unknown_warning_option=no
8009 fi
8010 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8011 fi
8012 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8013 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8014 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8015 CFLAGS="$xorg_testset_save_CFLAGS"
8016 fi
8017
8018 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8019 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8020 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8021 fi
8022 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8024 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8025 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8026 then :
8027 printf %s "(cached) " >&6
8028 else $as_nop
8029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8030 /* end confdefs.h. */
8031 int i;
8032 _ACEOF
8033 if ac_fn_c_try_compile "$LINENO"
8034 then :
8035 xorg_cv_cc_flag_unused_command_line_argument=yes
8036 else $as_nop
8037 xorg_cv_cc_flag_unused_command_line_argument=no
8038 fi
8039 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8040 fi
8041 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8042 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8043 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8044 CFLAGS="$xorg_testset_save_CFLAGS"
8045 fi
8046
8047 found="no"
8048
8049 if test $found = "no" ; then
8050 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8051 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8052 fi
8053
8054 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8055 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8056 fi
8057
8058 CFLAGS="$CFLAGS -Werror=return-type"
8059
8060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
8061 printf %s "checking if $CC supports -Werror=return-type... " >&6; }
8062 cacheid=xorg_cv_cc_flag__Werror_return_type
8063 if eval test \${$cacheid+y}
8064 then :
8065 printf %s "(cached) " >&6
8066 else $as_nop
8067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8068 /* end confdefs.h. */
8069 int i;
8070 int
8071 main (void)
8072 {
8073
8074 ;
8075 return 0;
8076 }
8077 _ACEOF
8078 if ac_fn_c_try_link "$LINENO"
8079 then :
8080 eval $cacheid=yes
8081 else $as_nop
8082 eval $cacheid=no
8083 fi
8084 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8085 conftest$ac_exeext conftest.$ac_ext
8086 fi
8087
8088
8089 CFLAGS="$xorg_testset_save_CFLAGS"
8090
8091 eval supported=\$$cacheid
8092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8093 printf "%s\n" "$supported" >&6; }
8094 if test "$supported" = "yes" ; then
8095 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
8096 found="yes"
8097 fi
8098 fi
8099
8100 if test $found = "no" ; then
8101 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8102 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8103 fi
8104
8105 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8106 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8107 fi
8108
8109 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8110
8111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
8112 printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
8113 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
8114 if eval test \${$cacheid+y}
8115 then :
8116 printf %s "(cached) " >&6
8117 else $as_nop
8118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8119 /* end confdefs.h. */
8120 int i;
8121 int
8122 main (void)
8123 {
8124
8125 ;
8126 return 0;
8127 }
8128 _ACEOF
8129 if ac_fn_c_try_link "$LINENO"
8130 then :
8131 eval $cacheid=yes
8132 else $as_nop
8133 eval $cacheid=no
8134 fi
8135 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8136 conftest$ac_exeext conftest.$ac_ext
8137 fi
8138
8139
8140 CFLAGS="$xorg_testset_save_CFLAGS"
8141
8142 eval supported=\$$cacheid
8143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8144 printf "%s\n" "$supported" >&6; }
8145 if test "$supported" = "yes" ; then
8146 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8147 found="yes"
8148 fi
8149 fi
8150
8151
8152
8153
8154
8155
8156
8157
8158
8159
8160
8161
8162
8163
8164
8165 xorg_testset_save_CFLAGS="$CFLAGS"
8166
8167 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8168 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8170 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8171 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8172 then :
8173 printf %s "(cached) " >&6
8174 else $as_nop
8175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8176 /* end confdefs.h. */
8177 int i;
8178 _ACEOF
8179 if ac_fn_c_try_compile "$LINENO"
8180 then :
8181 xorg_cv_cc_flag_unknown_warning_option=yes
8182 else $as_nop
8183 xorg_cv_cc_flag_unknown_warning_option=no
8184 fi
8185 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8186 fi
8187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8188 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8189 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8190 CFLAGS="$xorg_testset_save_CFLAGS"
8191 fi
8192
8193 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8194 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8195 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8196 fi
8197 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8199 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8200 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8201 then :
8202 printf %s "(cached) " >&6
8203 else $as_nop
8204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8205 /* end confdefs.h. */
8206 int i;
8207 _ACEOF
8208 if ac_fn_c_try_compile "$LINENO"
8209 then :
8210 xorg_cv_cc_flag_unused_command_line_argument=yes
8211 else $as_nop
8212 xorg_cv_cc_flag_unused_command_line_argument=no
8213 fi
8214 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8215 fi
8216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8217 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8218 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8219 CFLAGS="$xorg_testset_save_CFLAGS"
8220 fi
8221
8222 found="no"
8223
8224 if test $found = "no" ; then
8225 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8226 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8227 fi
8228
8229 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8230 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8231 fi
8232
8233 CFLAGS="$CFLAGS -Werror=trigraphs"
8234
8235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
8236 printf %s "checking if $CC supports -Werror=trigraphs... " >&6; }
8237 cacheid=xorg_cv_cc_flag__Werror_trigraphs
8238 if eval test \${$cacheid+y}
8239 then :
8240 printf %s "(cached) " >&6
8241 else $as_nop
8242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8243 /* end confdefs.h. */
8244 int i;
8245 int
8246 main (void)
8247 {
8248
8249 ;
8250 return 0;
8251 }
8252 _ACEOF
8253 if ac_fn_c_try_link "$LINENO"
8254 then :
8255 eval $cacheid=yes
8256 else $as_nop
8257 eval $cacheid=no
8258 fi
8259 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8260 conftest$ac_exeext conftest.$ac_ext
8261 fi
8262
8263
8264 CFLAGS="$xorg_testset_save_CFLAGS"
8265
8266 eval supported=\$$cacheid
8267 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8268 printf "%s\n" "$supported" >&6; }
8269 if test "$supported" = "yes" ; then
8270 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
8271 found="yes"
8272 fi
8273 fi
8274
8275
8276
8277
8278
8279
8280
8281
8282
8283
8284
8285
8286
8287
8288
8289 xorg_testset_save_CFLAGS="$CFLAGS"
8290
8291 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8292 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8293 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8294 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8295 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8296 then :
8297 printf %s "(cached) " >&6
8298 else $as_nop
8299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8300 /* end confdefs.h. */
8301 int i;
8302 _ACEOF
8303 if ac_fn_c_try_compile "$LINENO"
8304 then :
8305 xorg_cv_cc_flag_unknown_warning_option=yes
8306 else $as_nop
8307 xorg_cv_cc_flag_unknown_warning_option=no
8308 fi
8309 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8310 fi
8311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8312 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8313 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8314 CFLAGS="$xorg_testset_save_CFLAGS"
8315 fi
8316
8317 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8318 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8319 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8320 fi
8321 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8323 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8324 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8325 then :
8326 printf %s "(cached) " >&6
8327 else $as_nop
8328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8329 /* end confdefs.h. */
8330 int i;
8331 _ACEOF
8332 if ac_fn_c_try_compile "$LINENO"
8333 then :
8334 xorg_cv_cc_flag_unused_command_line_argument=yes
8335 else $as_nop
8336 xorg_cv_cc_flag_unused_command_line_argument=no
8337 fi
8338 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8339 fi
8340 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8341 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8342 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8343 CFLAGS="$xorg_testset_save_CFLAGS"
8344 fi
8345
8346 found="no"
8347
8348 if test $found = "no" ; then
8349 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8350 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8351 fi
8352
8353 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8354 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8355 fi
8356
8357 CFLAGS="$CFLAGS -Werror=array-bounds"
8358
8359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
8360 printf %s "checking if $CC supports -Werror=array-bounds... " >&6; }
8361 cacheid=xorg_cv_cc_flag__Werror_array_bounds
8362 if eval test \${$cacheid+y}
8363 then :
8364 printf %s "(cached) " >&6
8365 else $as_nop
8366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8367 /* end confdefs.h. */
8368 int i;
8369 int
8370 main (void)
8371 {
8372
8373 ;
8374 return 0;
8375 }
8376 _ACEOF
8377 if ac_fn_c_try_link "$LINENO"
8378 then :
8379 eval $cacheid=yes
8380 else $as_nop
8381 eval $cacheid=no
8382 fi
8383 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8384 conftest$ac_exeext conftest.$ac_ext
8385 fi
8386
8387
8388 CFLAGS="$xorg_testset_save_CFLAGS"
8389
8390 eval supported=\$$cacheid
8391 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8392 printf "%s\n" "$supported" >&6; }
8393 if test "$supported" = "yes" ; then
8394 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
8395 found="yes"
8396 fi
8397 fi
8398
8399
8400
8401
8402
8403
8404
8405
8406
8407
8408
8409
8410
8411
8412
8413 xorg_testset_save_CFLAGS="$CFLAGS"
8414
8415 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8416 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8418 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8419 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8420 then :
8421 printf %s "(cached) " >&6
8422 else $as_nop
8423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8424 /* end confdefs.h. */
8425 int i;
8426 _ACEOF
8427 if ac_fn_c_try_compile "$LINENO"
8428 then :
8429 xorg_cv_cc_flag_unknown_warning_option=yes
8430 else $as_nop
8431 xorg_cv_cc_flag_unknown_warning_option=no
8432 fi
8433 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8434 fi
8435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8436 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8437 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8438 CFLAGS="$xorg_testset_save_CFLAGS"
8439 fi
8440
8441 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8442 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8443 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8444 fi
8445 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8446 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8447 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8448 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8449 then :
8450 printf %s "(cached) " >&6
8451 else $as_nop
8452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8453 /* end confdefs.h. */
8454 int i;
8455 _ACEOF
8456 if ac_fn_c_try_compile "$LINENO"
8457 then :
8458 xorg_cv_cc_flag_unused_command_line_argument=yes
8459 else $as_nop
8460 xorg_cv_cc_flag_unused_command_line_argument=no
8461 fi
8462 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8463 fi
8464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8465 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8466 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8467 CFLAGS="$xorg_testset_save_CFLAGS"
8468 fi
8469
8470 found="no"
8471
8472 if test $found = "no" ; then
8473 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8474 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8475 fi
8476
8477 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8478 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8479 fi
8480
8481 CFLAGS="$CFLAGS -Werror=write-strings"
8482
8483 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
8484 printf %s "checking if $CC supports -Werror=write-strings... " >&6; }
8485 cacheid=xorg_cv_cc_flag__Werror_write_strings
8486 if eval test \${$cacheid+y}
8487 then :
8488 printf %s "(cached) " >&6
8489 else $as_nop
8490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8491 /* end confdefs.h. */
8492 int i;
8493 int
8494 main (void)
8495 {
8496
8497 ;
8498 return 0;
8499 }
8500 _ACEOF
8501 if ac_fn_c_try_link "$LINENO"
8502 then :
8503 eval $cacheid=yes
8504 else $as_nop
8505 eval $cacheid=no
8506 fi
8507 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8508 conftest$ac_exeext conftest.$ac_ext
8509 fi
8510
8511
8512 CFLAGS="$xorg_testset_save_CFLAGS"
8513
8514 eval supported=\$$cacheid
8515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8516 printf "%s\n" "$supported" >&6; }
8517 if test "$supported" = "yes" ; then
8518 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
8519 found="yes"
8520 fi
8521 fi
8522
8523
8524
8525
8526
8527
8528
8529
8530
8531
8532
8533
8534
8535
8536
8537 xorg_testset_save_CFLAGS="$CFLAGS"
8538
8539 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8540 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8542 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8543 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8544 then :
8545 printf %s "(cached) " >&6
8546 else $as_nop
8547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8548 /* end confdefs.h. */
8549 int i;
8550 _ACEOF
8551 if ac_fn_c_try_compile "$LINENO"
8552 then :
8553 xorg_cv_cc_flag_unknown_warning_option=yes
8554 else $as_nop
8555 xorg_cv_cc_flag_unknown_warning_option=no
8556 fi
8557 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8558 fi
8559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8560 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8561 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8562 CFLAGS="$xorg_testset_save_CFLAGS"
8563 fi
8564
8565 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8566 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8567 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8568 fi
8569 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8570 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8571 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8572 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8573 then :
8574 printf %s "(cached) " >&6
8575 else $as_nop
8576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8577 /* end confdefs.h. */
8578 int i;
8579 _ACEOF
8580 if ac_fn_c_try_compile "$LINENO"
8581 then :
8582 xorg_cv_cc_flag_unused_command_line_argument=yes
8583 else $as_nop
8584 xorg_cv_cc_flag_unused_command_line_argument=no
8585 fi
8586 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8587 fi
8588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8589 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8590 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8591 CFLAGS="$xorg_testset_save_CFLAGS"
8592 fi
8593
8594 found="no"
8595
8596 if test $found = "no" ; then
8597 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8598 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8599 fi
8600
8601 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8602 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8603 fi
8604
8605 CFLAGS="$CFLAGS -Werror=address"
8606
8607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
8608 printf %s "checking if $CC supports -Werror=address... " >&6; }
8609 cacheid=xorg_cv_cc_flag__Werror_address
8610 if eval test \${$cacheid+y}
8611 then :
8612 printf %s "(cached) " >&6
8613 else $as_nop
8614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8615 /* end confdefs.h. */
8616 int i;
8617 int
8618 main (void)
8619 {
8620
8621 ;
8622 return 0;
8623 }
8624 _ACEOF
8625 if ac_fn_c_try_link "$LINENO"
8626 then :
8627 eval $cacheid=yes
8628 else $as_nop
8629 eval $cacheid=no
8630 fi
8631 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8632 conftest$ac_exeext conftest.$ac_ext
8633 fi
8634
8635
8636 CFLAGS="$xorg_testset_save_CFLAGS"
8637
8638 eval supported=\$$cacheid
8639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8640 printf "%s\n" "$supported" >&6; }
8641 if test "$supported" = "yes" ; then
8642 BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8643 found="yes"
8644 fi
8645 fi
8646
8647
8648
8649
8650
8651
8652
8653
8654
8655
8656
8657
8658
8659
8660
8661 xorg_testset_save_CFLAGS="$CFLAGS"
8662
8663 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8664 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8666 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8667 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8668 then :
8669 printf %s "(cached) " >&6
8670 else $as_nop
8671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8672 /* end confdefs.h. */
8673 int i;
8674 _ACEOF
8675 if ac_fn_c_try_compile "$LINENO"
8676 then :
8677 xorg_cv_cc_flag_unknown_warning_option=yes
8678 else $as_nop
8679 xorg_cv_cc_flag_unknown_warning_option=no
8680 fi
8681 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8682 fi
8683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8684 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8685 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8686 CFLAGS="$xorg_testset_save_CFLAGS"
8687 fi
8688
8689 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8690 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8691 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8692 fi
8693 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8695 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8696 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8697 then :
8698 printf %s "(cached) " >&6
8699 else $as_nop
8700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8701 /* end confdefs.h. */
8702 int i;
8703 _ACEOF
8704 if ac_fn_c_try_compile "$LINENO"
8705 then :
8706 xorg_cv_cc_flag_unused_command_line_argument=yes
8707 else $as_nop
8708 xorg_cv_cc_flag_unused_command_line_argument=no
8709 fi
8710 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8711 fi
8712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8713 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8714 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8715 CFLAGS="$xorg_testset_save_CFLAGS"
8716 fi
8717
8718 found="no"
8719
8720 if test $found = "no" ; then
8721 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8722 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8723 fi
8724
8725 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8726 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8727 fi
8728
8729 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8730
8731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
8732 printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
8733 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
8734 if eval test \${$cacheid+y}
8735 then :
8736 printf %s "(cached) " >&6
8737 else $as_nop
8738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8739 /* end confdefs.h. */
8740 int i;
8741 int
8742 main (void)
8743 {
8744
8745 ;
8746 return 0;
8747 }
8748 _ACEOF
8749 if ac_fn_c_try_link "$LINENO"
8750 then :
8751 eval $cacheid=yes
8752 else $as_nop
8753 eval $cacheid=no
8754 fi
8755 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8756 conftest$ac_exeext conftest.$ac_ext
8757 fi
8758
8759
8760 CFLAGS="$xorg_testset_save_CFLAGS"
8761
8762 eval supported=\$$cacheid
8763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8764 printf "%s\n" "$supported" >&6; }
8765 if test "$supported" = "yes" ; then
8766 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8767 found="yes"
8768 fi
8769 fi
8770
8771 if test $found = "no" ; then
8772 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8773 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8774 fi
8775
8776 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8777 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8778 fi
8779
8780 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8781
8782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8783 printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8784 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
8785 if eval test \${$cacheid+y}
8786 then :
8787 printf %s "(cached) " >&6
8788 else $as_nop
8789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8790 /* end confdefs.h. */
8791 int i;
8792 int
8793 main (void)
8794 {
8795
8796 ;
8797 return 0;
8798 }
8799 _ACEOF
8800 if ac_fn_c_try_link "$LINENO"
8801 then :
8802 eval $cacheid=yes
8803 else $as_nop
8804 eval $cacheid=no
8805 fi
8806 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8807 conftest$ac_exeext conftest.$ac_ext
8808 fi
8809
8810
8811 CFLAGS="$xorg_testset_save_CFLAGS"
8812
8813 eval supported=\$$cacheid
8814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8815 printf "%s\n" "$supported" >&6; }
8816 if test "$supported" = "yes" ; then
8817 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8818 found="yes"
8819 fi
8820 fi
8821
8822
8823
8824
8825
8826
8827
8828
8829
8830
8831
8832
8833
8834
8835
8836 xorg_testset_save_CFLAGS="$CFLAGS"
8837
8838 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8839 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8841 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8842 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8843 then :
8844 printf %s "(cached) " >&6
8845 else $as_nop
8846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8847 /* end confdefs.h. */
8848 int i;
8849 _ACEOF
8850 if ac_fn_c_try_compile "$LINENO"
8851 then :
8852 xorg_cv_cc_flag_unknown_warning_option=yes
8853 else $as_nop
8854 xorg_cv_cc_flag_unknown_warning_option=no
8855 fi
8856 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8857 fi
8858 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8859 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8860 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8861 CFLAGS="$xorg_testset_save_CFLAGS"
8862 fi
8863
8864 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8865 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8866 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8867 fi
8868 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8869 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8870 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8871 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8872 then :
8873 printf %s "(cached) " >&6
8874 else $as_nop
8875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8876 /* end confdefs.h. */
8877 int i;
8878 _ACEOF
8879 if ac_fn_c_try_compile "$LINENO"
8880 then :
8881 xorg_cv_cc_flag_unused_command_line_argument=yes
8882 else $as_nop
8883 xorg_cv_cc_flag_unused_command_line_argument=no
8884 fi
8885 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8886 fi
8887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8888 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8889 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8890 CFLAGS="$xorg_testset_save_CFLAGS"
8891 fi
8892
8893 found="no"
8894
8895 if test $found = "no" ; then
8896 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8897 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8898 fi
8899
8900 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8901 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8902 fi
8903
8904 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
8905
8906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
8907 printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
8908 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
8909 if eval test \${$cacheid+y}
8910 then :
8911 printf %s "(cached) " >&6
8912 else $as_nop
8913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8914 /* end confdefs.h. */
8915 int i;
8916 int
8917 main (void)
8918 {
8919
8920 ;
8921 return 0;
8922 }
8923 _ACEOF
8924 if ac_fn_c_try_link "$LINENO"
8925 then :
8926 eval $cacheid=yes
8927 else $as_nop
8928 eval $cacheid=no
8929 fi
8930 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8931 conftest$ac_exeext conftest.$ac_ext
8932 fi
8933
8934
8935 CFLAGS="$xorg_testset_save_CFLAGS"
8936
8937 eval supported=\$$cacheid
8938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8939 printf "%s\n" "$supported" >&6; }
8940 if test "$supported" = "yes" ; then
8941 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
8942 found="yes"
8943 fi
8944 fi
8945
8946 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
8947 else
8948 { 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
8949 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;}
8950
8951
8952
8953
8954
8955
8956
8957
8958
8959
8960
8961
8962
8963 xorg_testset_save_CFLAGS="$CFLAGS"
8964
8965 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8966 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8968 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8969 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8970 then :
8971 printf %s "(cached) " >&6
8972 else $as_nop
8973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8974 /* end confdefs.h. */
8975 int i;
8976 _ACEOF
8977 if ac_fn_c_try_compile "$LINENO"
8978 then :
8979 xorg_cv_cc_flag_unknown_warning_option=yes
8980 else $as_nop
8981 xorg_cv_cc_flag_unknown_warning_option=no
8982 fi
8983 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8984 fi
8985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8986 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8987 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8988 CFLAGS="$xorg_testset_save_CFLAGS"
8989 fi
8990
8991 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8992 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8993 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8994 fi
8995 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8997 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8998 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8999 then :
9000 printf %s "(cached) " >&6
9001 else $as_nop
9002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9003 /* end confdefs.h. */
9004 int i;
9005 _ACEOF
9006 if ac_fn_c_try_compile "$LINENO"
9007 then :
9008 xorg_cv_cc_flag_unused_command_line_argument=yes
9009 else $as_nop
9010 xorg_cv_cc_flag_unused_command_line_argument=no
9011 fi
9012 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9013 fi
9014 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9015 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9016 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9017 CFLAGS="$xorg_testset_save_CFLAGS"
9018 fi
9019
9020 found="no"
9021
9022 if test $found = "no" ; then
9023 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9024 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9025 fi
9026
9027 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9028 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9029 fi
9030
9031 CFLAGS="$CFLAGS -Wimplicit"
9032
9033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
9034 printf %s "checking if $CC supports -Wimplicit... " >&6; }
9035 cacheid=xorg_cv_cc_flag__Wimplicit
9036 if eval test \${$cacheid+y}
9037 then :
9038 printf %s "(cached) " >&6
9039 else $as_nop
9040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9041 /* end confdefs.h. */
9042 int i;
9043 int
9044 main (void)
9045 {
9046
9047 ;
9048 return 0;
9049 }
9050 _ACEOF
9051 if ac_fn_c_try_link "$LINENO"
9052 then :
9053 eval $cacheid=yes
9054 else $as_nop
9055 eval $cacheid=no
9056 fi
9057 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9058 conftest$ac_exeext conftest.$ac_ext
9059 fi
9060
9061
9062 CFLAGS="$xorg_testset_save_CFLAGS"
9063
9064 eval supported=\$$cacheid
9065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9066 printf "%s\n" "$supported" >&6; }
9067 if test "$supported" = "yes" ; then
9068 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
9069 found="yes"
9070 fi
9071 fi
9072
9073
9074
9075
9076
9077
9078
9079
9080
9081
9082
9083
9084
9085
9086
9087 xorg_testset_save_CFLAGS="$CFLAGS"
9088
9089 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9090 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9092 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9093 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9094 then :
9095 printf %s "(cached) " >&6
9096 else $as_nop
9097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9098 /* end confdefs.h. */
9099 int i;
9100 _ACEOF
9101 if ac_fn_c_try_compile "$LINENO"
9102 then :
9103 xorg_cv_cc_flag_unknown_warning_option=yes
9104 else $as_nop
9105 xorg_cv_cc_flag_unknown_warning_option=no
9106 fi
9107 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9108 fi
9109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9110 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9111 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9112 CFLAGS="$xorg_testset_save_CFLAGS"
9113 fi
9114
9115 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9116 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9117 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9118 fi
9119 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9121 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9122 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9123 then :
9124 printf %s "(cached) " >&6
9125 else $as_nop
9126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9127 /* end confdefs.h. */
9128 int i;
9129 _ACEOF
9130 if ac_fn_c_try_compile "$LINENO"
9131 then :
9132 xorg_cv_cc_flag_unused_command_line_argument=yes
9133 else $as_nop
9134 xorg_cv_cc_flag_unused_command_line_argument=no
9135 fi
9136 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9137 fi
9138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9139 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9140 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9141 CFLAGS="$xorg_testset_save_CFLAGS"
9142 fi
9143
9144 found="no"
9145
9146 if test $found = "no" ; then
9147 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9148 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9149 fi
9150
9151 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9152 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9153 fi
9154
9155 CFLAGS="$CFLAGS -Wnonnull"
9156
9157 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
9158 printf %s "checking if $CC supports -Wnonnull... " >&6; }
9159 cacheid=xorg_cv_cc_flag__Wnonnull
9160 if eval test \${$cacheid+y}
9161 then :
9162 printf %s "(cached) " >&6
9163 else $as_nop
9164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9165 /* end confdefs.h. */
9166 int i;
9167 int
9168 main (void)
9169 {
9170
9171 ;
9172 return 0;
9173 }
9174 _ACEOF
9175 if ac_fn_c_try_link "$LINENO"
9176 then :
9177 eval $cacheid=yes
9178 else $as_nop
9179 eval $cacheid=no
9180 fi
9181 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9182 conftest$ac_exeext conftest.$ac_ext
9183 fi
9184
9185
9186 CFLAGS="$xorg_testset_save_CFLAGS"
9187
9188 eval supported=\$$cacheid
9189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9190 printf "%s\n" "$supported" >&6; }
9191 if test "$supported" = "yes" ; then
9192 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
9193 found="yes"
9194 fi
9195 fi
9196
9197
9198
9199
9200
9201
9202
9203
9204
9205
9206
9207
9208
9209
9210
9211 xorg_testset_save_CFLAGS="$CFLAGS"
9212
9213 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9214 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9215 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9216 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9217 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9218 then :
9219 printf %s "(cached) " >&6
9220 else $as_nop
9221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9222 /* end confdefs.h. */
9223 int i;
9224 _ACEOF
9225 if ac_fn_c_try_compile "$LINENO"
9226 then :
9227 xorg_cv_cc_flag_unknown_warning_option=yes
9228 else $as_nop
9229 xorg_cv_cc_flag_unknown_warning_option=no
9230 fi
9231 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9232 fi
9233 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9234 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9235 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9236 CFLAGS="$xorg_testset_save_CFLAGS"
9237 fi
9238
9239 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9240 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9241 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9242 fi
9243 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9244 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9245 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9246 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9247 then :
9248 printf %s "(cached) " >&6
9249 else $as_nop
9250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9251 /* end confdefs.h. */
9252 int i;
9253 _ACEOF
9254 if ac_fn_c_try_compile "$LINENO"
9255 then :
9256 xorg_cv_cc_flag_unused_command_line_argument=yes
9257 else $as_nop
9258 xorg_cv_cc_flag_unused_command_line_argument=no
9259 fi
9260 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9261 fi
9262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9263 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9264 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9265 CFLAGS="$xorg_testset_save_CFLAGS"
9266 fi
9267
9268 found="no"
9269
9270 if test $found = "no" ; then
9271 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9272 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9273 fi
9274
9275 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9276 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9277 fi
9278
9279 CFLAGS="$CFLAGS -Winit-self"
9280
9281 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
9282 printf %s "checking if $CC supports -Winit-self... " >&6; }
9283 cacheid=xorg_cv_cc_flag__Winit_self
9284 if eval test \${$cacheid+y}
9285 then :
9286 printf %s "(cached) " >&6
9287 else $as_nop
9288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9289 /* end confdefs.h. */
9290 int i;
9291 int
9292 main (void)
9293 {
9294
9295 ;
9296 return 0;
9297 }
9298 _ACEOF
9299 if ac_fn_c_try_link "$LINENO"
9300 then :
9301 eval $cacheid=yes
9302 else $as_nop
9303 eval $cacheid=no
9304 fi
9305 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9306 conftest$ac_exeext conftest.$ac_ext
9307 fi
9308
9309
9310 CFLAGS="$xorg_testset_save_CFLAGS"
9311
9312 eval supported=\$$cacheid
9313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9314 printf "%s\n" "$supported" >&6; }
9315 if test "$supported" = "yes" ; then
9316 BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
9317 found="yes"
9318 fi
9319 fi
9320
9321
9322
9323
9324
9325
9326
9327
9328
9329
9330
9331
9332
9333
9334
9335 xorg_testset_save_CFLAGS="$CFLAGS"
9336
9337 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9338 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9339 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9340 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9341 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9342 then :
9343 printf %s "(cached) " >&6
9344 else $as_nop
9345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9346 /* end confdefs.h. */
9347 int i;
9348 _ACEOF
9349 if ac_fn_c_try_compile "$LINENO"
9350 then :
9351 xorg_cv_cc_flag_unknown_warning_option=yes
9352 else $as_nop
9353 xorg_cv_cc_flag_unknown_warning_option=no
9354 fi
9355 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9356 fi
9357 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9358 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9359 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9360 CFLAGS="$xorg_testset_save_CFLAGS"
9361 fi
9362
9363 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9364 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9365 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9366 fi
9367 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9369 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9370 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9371 then :
9372 printf %s "(cached) " >&6
9373 else $as_nop
9374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9375 /* end confdefs.h. */
9376 int i;
9377 _ACEOF
9378 if ac_fn_c_try_compile "$LINENO"
9379 then :
9380 xorg_cv_cc_flag_unused_command_line_argument=yes
9381 else $as_nop
9382 xorg_cv_cc_flag_unused_command_line_argument=no
9383 fi
9384 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9385 fi
9386 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9387 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9388 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9389 CFLAGS="$xorg_testset_save_CFLAGS"
9390 fi
9391
9392 found="no"
9393
9394 if test $found = "no" ; then
9395 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9396 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9397 fi
9398
9399 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9400 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9401 fi
9402
9403 CFLAGS="$CFLAGS -Wmain"
9404
9405 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
9406 printf %s "checking if $CC supports -Wmain... " >&6; }
9407 cacheid=xorg_cv_cc_flag__Wmain
9408 if eval test \${$cacheid+y}
9409 then :
9410 printf %s "(cached) " >&6
9411 else $as_nop
9412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9413 /* end confdefs.h. */
9414 int i;
9415 int
9416 main (void)
9417 {
9418
9419 ;
9420 return 0;
9421 }
9422 _ACEOF
9423 if ac_fn_c_try_link "$LINENO"
9424 then :
9425 eval $cacheid=yes
9426 else $as_nop
9427 eval $cacheid=no
9428 fi
9429 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9430 conftest$ac_exeext conftest.$ac_ext
9431 fi
9432
9433
9434 CFLAGS="$xorg_testset_save_CFLAGS"
9435
9436 eval supported=\$$cacheid
9437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9438 printf "%s\n" "$supported" >&6; }
9439 if test "$supported" = "yes" ; then
9440 BASE_CFLAGS="$BASE_CFLAGS -Wmain"
9441 found="yes"
9442 fi
9443 fi
9444
9445
9446
9447
9448
9449
9450
9451
9452
9453
9454
9455
9456
9457
9458
9459 xorg_testset_save_CFLAGS="$CFLAGS"
9460
9461 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9462 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9464 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9465 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9466 then :
9467 printf %s "(cached) " >&6
9468 else $as_nop
9469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9470 /* end confdefs.h. */
9471 int i;
9472 _ACEOF
9473 if ac_fn_c_try_compile "$LINENO"
9474 then :
9475 xorg_cv_cc_flag_unknown_warning_option=yes
9476 else $as_nop
9477 xorg_cv_cc_flag_unknown_warning_option=no
9478 fi
9479 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9480 fi
9481 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9482 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9483 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9484 CFLAGS="$xorg_testset_save_CFLAGS"
9485 fi
9486
9487 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9488 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9489 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9490 fi
9491 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9493 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9494 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9495 then :
9496 printf %s "(cached) " >&6
9497 else $as_nop
9498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9499 /* end confdefs.h. */
9500 int i;
9501 _ACEOF
9502 if ac_fn_c_try_compile "$LINENO"
9503 then :
9504 xorg_cv_cc_flag_unused_command_line_argument=yes
9505 else $as_nop
9506 xorg_cv_cc_flag_unused_command_line_argument=no
9507 fi
9508 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9509 fi
9510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9511 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9512 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9513 CFLAGS="$xorg_testset_save_CFLAGS"
9514 fi
9515
9516 found="no"
9517
9518 if test $found = "no" ; then
9519 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9520 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9521 fi
9522
9523 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9524 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9525 fi
9526
9527 CFLAGS="$CFLAGS -Wmissing-braces"
9528
9529 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
9530 printf %s "checking if $CC supports -Wmissing-braces... " >&6; }
9531 cacheid=xorg_cv_cc_flag__Wmissing_braces
9532 if eval test \${$cacheid+y}
9533 then :
9534 printf %s "(cached) " >&6
9535 else $as_nop
9536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9537 /* end confdefs.h. */
9538 int i;
9539 int
9540 main (void)
9541 {
9542
9543 ;
9544 return 0;
9545 }
9546 _ACEOF
9547 if ac_fn_c_try_link "$LINENO"
9548 then :
9549 eval $cacheid=yes
9550 else $as_nop
9551 eval $cacheid=no
9552 fi
9553 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9554 conftest$ac_exeext conftest.$ac_ext
9555 fi
9556
9557
9558 CFLAGS="$xorg_testset_save_CFLAGS"
9559
9560 eval supported=\$$cacheid
9561 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9562 printf "%s\n" "$supported" >&6; }
9563 if test "$supported" = "yes" ; then
9564 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
9565 found="yes"
9566 fi
9567 fi
9568
9569
9570
9571
9572
9573
9574
9575
9576
9577
9578
9579
9580
9581
9582
9583 xorg_testset_save_CFLAGS="$CFLAGS"
9584
9585 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9586 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9588 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9589 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9590 then :
9591 printf %s "(cached) " >&6
9592 else $as_nop
9593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9594 /* end confdefs.h. */
9595 int i;
9596 _ACEOF
9597 if ac_fn_c_try_compile "$LINENO"
9598 then :
9599 xorg_cv_cc_flag_unknown_warning_option=yes
9600 else $as_nop
9601 xorg_cv_cc_flag_unknown_warning_option=no
9602 fi
9603 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9604 fi
9605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9606 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9607 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9608 CFLAGS="$xorg_testset_save_CFLAGS"
9609 fi
9610
9611 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9612 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9613 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9614 fi
9615 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9617 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9618 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9619 then :
9620 printf %s "(cached) " >&6
9621 else $as_nop
9622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9623 /* end confdefs.h. */
9624 int i;
9625 _ACEOF
9626 if ac_fn_c_try_compile "$LINENO"
9627 then :
9628 xorg_cv_cc_flag_unused_command_line_argument=yes
9629 else $as_nop
9630 xorg_cv_cc_flag_unused_command_line_argument=no
9631 fi
9632 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9633 fi
9634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9635 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9636 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9637 CFLAGS="$xorg_testset_save_CFLAGS"
9638 fi
9639
9640 found="no"
9641
9642 if test $found = "no" ; then
9643 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9644 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9645 fi
9646
9647 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9648 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9649 fi
9650
9651 CFLAGS="$CFLAGS -Wsequence-point"
9652
9653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
9654 printf %s "checking if $CC supports -Wsequence-point... " >&6; }
9655 cacheid=xorg_cv_cc_flag__Wsequence_point
9656 if eval test \${$cacheid+y}
9657 then :
9658 printf %s "(cached) " >&6
9659 else $as_nop
9660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9661 /* end confdefs.h. */
9662 int i;
9663 int
9664 main (void)
9665 {
9666
9667 ;
9668 return 0;
9669 }
9670 _ACEOF
9671 if ac_fn_c_try_link "$LINENO"
9672 then :
9673 eval $cacheid=yes
9674 else $as_nop
9675 eval $cacheid=no
9676 fi
9677 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9678 conftest$ac_exeext conftest.$ac_ext
9679 fi
9680
9681
9682 CFLAGS="$xorg_testset_save_CFLAGS"
9683
9684 eval supported=\$$cacheid
9685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9686 printf "%s\n" "$supported" >&6; }
9687 if test "$supported" = "yes" ; then
9688 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9689 found="yes"
9690 fi
9691 fi
9692
9693
9694
9695
9696
9697
9698
9699
9700
9701
9702
9703
9704
9705
9706
9707 xorg_testset_save_CFLAGS="$CFLAGS"
9708
9709 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9710 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9712 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9713 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9714 then :
9715 printf %s "(cached) " >&6
9716 else $as_nop
9717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9718 /* end confdefs.h. */
9719 int i;
9720 _ACEOF
9721 if ac_fn_c_try_compile "$LINENO"
9722 then :
9723 xorg_cv_cc_flag_unknown_warning_option=yes
9724 else $as_nop
9725 xorg_cv_cc_flag_unknown_warning_option=no
9726 fi
9727 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9728 fi
9729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9730 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9731 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9732 CFLAGS="$xorg_testset_save_CFLAGS"
9733 fi
9734
9735 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9736 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9737 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9738 fi
9739 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9741 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9742 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9743 then :
9744 printf %s "(cached) " >&6
9745 else $as_nop
9746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9747 /* end confdefs.h. */
9748 int i;
9749 _ACEOF
9750 if ac_fn_c_try_compile "$LINENO"
9751 then :
9752 xorg_cv_cc_flag_unused_command_line_argument=yes
9753 else $as_nop
9754 xorg_cv_cc_flag_unused_command_line_argument=no
9755 fi
9756 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9757 fi
9758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9759 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9760 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9761 CFLAGS="$xorg_testset_save_CFLAGS"
9762 fi
9763
9764 found="no"
9765
9766 if test $found = "no" ; then
9767 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9768 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9769 fi
9770
9771 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9772 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9773 fi
9774
9775 CFLAGS="$CFLAGS -Wreturn-type"
9776
9777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
9778 printf %s "checking if $CC supports -Wreturn-type... " >&6; }
9779 cacheid=xorg_cv_cc_flag__Wreturn_type
9780 if eval test \${$cacheid+y}
9781 then :
9782 printf %s "(cached) " >&6
9783 else $as_nop
9784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9785 /* end confdefs.h. */
9786 int i;
9787 int
9788 main (void)
9789 {
9790
9791 ;
9792 return 0;
9793 }
9794 _ACEOF
9795 if ac_fn_c_try_link "$LINENO"
9796 then :
9797 eval $cacheid=yes
9798 else $as_nop
9799 eval $cacheid=no
9800 fi
9801 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9802 conftest$ac_exeext conftest.$ac_ext
9803 fi
9804
9805
9806 CFLAGS="$xorg_testset_save_CFLAGS"
9807
9808 eval supported=\$$cacheid
9809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9810 printf "%s\n" "$supported" >&6; }
9811 if test "$supported" = "yes" ; then
9812 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9813 found="yes"
9814 fi
9815 fi
9816
9817
9818
9819
9820
9821
9822
9823
9824
9825
9826
9827
9828
9829
9830
9831 xorg_testset_save_CFLAGS="$CFLAGS"
9832
9833 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9834 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9836 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9837 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9838 then :
9839 printf %s "(cached) " >&6
9840 else $as_nop
9841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9842 /* end confdefs.h. */
9843 int i;
9844 _ACEOF
9845 if ac_fn_c_try_compile "$LINENO"
9846 then :
9847 xorg_cv_cc_flag_unknown_warning_option=yes
9848 else $as_nop
9849 xorg_cv_cc_flag_unknown_warning_option=no
9850 fi
9851 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9852 fi
9853 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9854 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9855 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9856 CFLAGS="$xorg_testset_save_CFLAGS"
9857 fi
9858
9859 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9860 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9861 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9862 fi
9863 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9865 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9866 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9867 then :
9868 printf %s "(cached) " >&6
9869 else $as_nop
9870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9871 /* end confdefs.h. */
9872 int i;
9873 _ACEOF
9874 if ac_fn_c_try_compile "$LINENO"
9875 then :
9876 xorg_cv_cc_flag_unused_command_line_argument=yes
9877 else $as_nop
9878 xorg_cv_cc_flag_unused_command_line_argument=no
9879 fi
9880 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9881 fi
9882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9883 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9884 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9885 CFLAGS="$xorg_testset_save_CFLAGS"
9886 fi
9887
9888 found="no"
9889
9890 if test $found = "no" ; then
9891 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9892 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9893 fi
9894
9895 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9896 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9897 fi
9898
9899 CFLAGS="$CFLAGS -Wtrigraphs"
9900
9901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
9902 printf %s "checking if $CC supports -Wtrigraphs... " >&6; }
9903 cacheid=xorg_cv_cc_flag__Wtrigraphs
9904 if eval test \${$cacheid+y}
9905 then :
9906 printf %s "(cached) " >&6
9907 else $as_nop
9908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9909 /* end confdefs.h. */
9910 int i;
9911 int
9912 main (void)
9913 {
9914
9915 ;
9916 return 0;
9917 }
9918 _ACEOF
9919 if ac_fn_c_try_link "$LINENO"
9920 then :
9921 eval $cacheid=yes
9922 else $as_nop
9923 eval $cacheid=no
9924 fi
9925 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9926 conftest$ac_exeext conftest.$ac_ext
9927 fi
9928
9929
9930 CFLAGS="$xorg_testset_save_CFLAGS"
9931
9932 eval supported=\$$cacheid
9933 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9934 printf "%s\n" "$supported" >&6; }
9935 if test "$supported" = "yes" ; then
9936 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
9937 found="yes"
9938 fi
9939 fi
9940
9941
9942
9943
9944
9945
9946
9947
9948
9949
9950
9951
9952
9953
9954
9955 xorg_testset_save_CFLAGS="$CFLAGS"
9956
9957 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9958 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9959 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9960 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9961 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9962 then :
9963 printf %s "(cached) " >&6
9964 else $as_nop
9965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9966 /* end confdefs.h. */
9967 int i;
9968 _ACEOF
9969 if ac_fn_c_try_compile "$LINENO"
9970 then :
9971 xorg_cv_cc_flag_unknown_warning_option=yes
9972 else $as_nop
9973 xorg_cv_cc_flag_unknown_warning_option=no
9974 fi
9975 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9976 fi
9977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9978 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9979 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9980 CFLAGS="$xorg_testset_save_CFLAGS"
9981 fi
9982
9983 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9984 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9985 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9986 fi
9987 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9989 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9990 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9991 then :
9992 printf %s "(cached) " >&6
9993 else $as_nop
9994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9995 /* end confdefs.h. */
9996 int i;
9997 _ACEOF
9998 if ac_fn_c_try_compile "$LINENO"
9999 then :
10000 xorg_cv_cc_flag_unused_command_line_argument=yes
10001 else $as_nop
10002 xorg_cv_cc_flag_unused_command_line_argument=no
10003 fi
10004 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10005 fi
10006 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10007 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10008 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10009 CFLAGS="$xorg_testset_save_CFLAGS"
10010 fi
10011
10012 found="no"
10013
10014 if test $found = "no" ; then
10015 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10016 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10017 fi
10018
10019 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10020 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10021 fi
10022
10023 CFLAGS="$CFLAGS -Warray-bounds"
10024
10025 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
10026 printf %s "checking if $CC supports -Warray-bounds... " >&6; }
10027 cacheid=xorg_cv_cc_flag__Warray_bounds
10028 if eval test \${$cacheid+y}
10029 then :
10030 printf %s "(cached) " >&6
10031 else $as_nop
10032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10033 /* end confdefs.h. */
10034 int i;
10035 int
10036 main (void)
10037 {
10038
10039 ;
10040 return 0;
10041 }
10042 _ACEOF
10043 if ac_fn_c_try_link "$LINENO"
10044 then :
10045 eval $cacheid=yes
10046 else $as_nop
10047 eval $cacheid=no
10048 fi
10049 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10050 conftest$ac_exeext conftest.$ac_ext
10051 fi
10052
10053
10054 CFLAGS="$xorg_testset_save_CFLAGS"
10055
10056 eval supported=\$$cacheid
10057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10058 printf "%s\n" "$supported" >&6; }
10059 if test "$supported" = "yes" ; then
10060 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
10061 found="yes"
10062 fi
10063 fi
10064
10065
10066
10067
10068
10069
10070
10071
10072
10073
10074
10075
10076
10077
10078
10079 xorg_testset_save_CFLAGS="$CFLAGS"
10080
10081 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10082 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10083 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10084 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10085 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10086 then :
10087 printf %s "(cached) " >&6
10088 else $as_nop
10089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10090 /* end confdefs.h. */
10091 int i;
10092 _ACEOF
10093 if ac_fn_c_try_compile "$LINENO"
10094 then :
10095 xorg_cv_cc_flag_unknown_warning_option=yes
10096 else $as_nop
10097 xorg_cv_cc_flag_unknown_warning_option=no
10098 fi
10099 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10100 fi
10101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10102 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10103 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10104 CFLAGS="$xorg_testset_save_CFLAGS"
10105 fi
10106
10107 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10108 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10109 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10110 fi
10111 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10113 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10114 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10115 then :
10116 printf %s "(cached) " >&6
10117 else $as_nop
10118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10119 /* end confdefs.h. */
10120 int i;
10121 _ACEOF
10122 if ac_fn_c_try_compile "$LINENO"
10123 then :
10124 xorg_cv_cc_flag_unused_command_line_argument=yes
10125 else $as_nop
10126 xorg_cv_cc_flag_unused_command_line_argument=no
10127 fi
10128 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10129 fi
10130 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10131 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10132 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10133 CFLAGS="$xorg_testset_save_CFLAGS"
10134 fi
10135
10136 found="no"
10137
10138 if test $found = "no" ; then
10139 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10140 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10141 fi
10142
10143 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10144 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10145 fi
10146
10147 CFLAGS="$CFLAGS -Wwrite-strings"
10148
10149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
10150 printf %s "checking if $CC supports -Wwrite-strings... " >&6; }
10151 cacheid=xorg_cv_cc_flag__Wwrite_strings
10152 if eval test \${$cacheid+y}
10153 then :
10154 printf %s "(cached) " >&6
10155 else $as_nop
10156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10157 /* end confdefs.h. */
10158 int i;
10159 int
10160 main (void)
10161 {
10162
10163 ;
10164 return 0;
10165 }
10166 _ACEOF
10167 if ac_fn_c_try_link "$LINENO"
10168 then :
10169 eval $cacheid=yes
10170 else $as_nop
10171 eval $cacheid=no
10172 fi
10173 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10174 conftest$ac_exeext conftest.$ac_ext
10175 fi
10176
10177
10178 CFLAGS="$xorg_testset_save_CFLAGS"
10179
10180 eval supported=\$$cacheid
10181 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10182 printf "%s\n" "$supported" >&6; }
10183 if test "$supported" = "yes" ; then
10184 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
10185 found="yes"
10186 fi
10187 fi
10188
10189
10190
10191
10192
10193
10194
10195
10196
10197
10198
10199
10200
10201
10202
10203 xorg_testset_save_CFLAGS="$CFLAGS"
10204
10205 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10206 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10208 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10209 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10210 then :
10211 printf %s "(cached) " >&6
10212 else $as_nop
10213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10214 /* end confdefs.h. */
10215 int i;
10216 _ACEOF
10217 if ac_fn_c_try_compile "$LINENO"
10218 then :
10219 xorg_cv_cc_flag_unknown_warning_option=yes
10220 else $as_nop
10221 xorg_cv_cc_flag_unknown_warning_option=no
10222 fi
10223 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10224 fi
10225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10226 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10227 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10228 CFLAGS="$xorg_testset_save_CFLAGS"
10229 fi
10230
10231 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10232 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10233 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10234 fi
10235 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10237 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10238 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10239 then :
10240 printf %s "(cached) " >&6
10241 else $as_nop
10242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10243 /* end confdefs.h. */
10244 int i;
10245 _ACEOF
10246 if ac_fn_c_try_compile "$LINENO"
10247 then :
10248 xorg_cv_cc_flag_unused_command_line_argument=yes
10249 else $as_nop
10250 xorg_cv_cc_flag_unused_command_line_argument=no
10251 fi
10252 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10253 fi
10254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10255 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10256 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10257 CFLAGS="$xorg_testset_save_CFLAGS"
10258 fi
10259
10260 found="no"
10261
10262 if test $found = "no" ; then
10263 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10264 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10265 fi
10266
10267 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10268 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10269 fi
10270
10271 CFLAGS="$CFLAGS -Waddress"
10272
10273 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
10274 printf %s "checking if $CC supports -Waddress... " >&6; }
10275 cacheid=xorg_cv_cc_flag__Waddress
10276 if eval test \${$cacheid+y}
10277 then :
10278 printf %s "(cached) " >&6
10279 else $as_nop
10280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10281 /* end confdefs.h. */
10282 int i;
10283 int
10284 main (void)
10285 {
10286
10287 ;
10288 return 0;
10289 }
10290 _ACEOF
10291 if ac_fn_c_try_link "$LINENO"
10292 then :
10293 eval $cacheid=yes
10294 else $as_nop
10295 eval $cacheid=no
10296 fi
10297 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10298 conftest$ac_exeext conftest.$ac_ext
10299 fi
10300
10301
10302 CFLAGS="$xorg_testset_save_CFLAGS"
10303
10304 eval supported=\$$cacheid
10305 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10306 printf "%s\n" "$supported" >&6; }
10307 if test "$supported" = "yes" ; then
10308 BASE_CFLAGS="$BASE_CFLAGS -Waddress"
10309 found="yes"
10310 fi
10311 fi
10312
10313
10314
10315
10316
10317
10318
10319
10320
10321
10322
10323
10324
10325
10326
10327 xorg_testset_save_CFLAGS="$CFLAGS"
10328
10329 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10330 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10331 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10332 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10333 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10334 then :
10335 printf %s "(cached) " >&6
10336 else $as_nop
10337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10338 /* end confdefs.h. */
10339 int i;
10340 _ACEOF
10341 if ac_fn_c_try_compile "$LINENO"
10342 then :
10343 xorg_cv_cc_flag_unknown_warning_option=yes
10344 else $as_nop
10345 xorg_cv_cc_flag_unknown_warning_option=no
10346 fi
10347 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10348 fi
10349 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10350 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10351 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10352 CFLAGS="$xorg_testset_save_CFLAGS"
10353 fi
10354
10355 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10356 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10357 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10358 fi
10359 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10361 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10362 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10363 then :
10364 printf %s "(cached) " >&6
10365 else $as_nop
10366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10367 /* end confdefs.h. */
10368 int i;
10369 _ACEOF
10370 if ac_fn_c_try_compile "$LINENO"
10371 then :
10372 xorg_cv_cc_flag_unused_command_line_argument=yes
10373 else $as_nop
10374 xorg_cv_cc_flag_unused_command_line_argument=no
10375 fi
10376 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10377 fi
10378 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10379 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10380 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10381 CFLAGS="$xorg_testset_save_CFLAGS"
10382 fi
10383
10384 found="no"
10385
10386 if test $found = "no" ; then
10387 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10388 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10389 fi
10390
10391 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10392 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10393 fi
10394
10395 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
10396
10397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
10398 printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
10399 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
10400 if eval test \${$cacheid+y}
10401 then :
10402 printf %s "(cached) " >&6
10403 else $as_nop
10404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10405 /* end confdefs.h. */
10406 int i;
10407 int
10408 main (void)
10409 {
10410
10411 ;
10412 return 0;
10413 }
10414 _ACEOF
10415 if ac_fn_c_try_link "$LINENO"
10416 then :
10417 eval $cacheid=yes
10418 else $as_nop
10419 eval $cacheid=no
10420 fi
10421 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10422 conftest$ac_exeext conftest.$ac_ext
10423 fi
10424
10425
10426 CFLAGS="$xorg_testset_save_CFLAGS"
10427
10428 eval supported=\$$cacheid
10429 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10430 printf "%s\n" "$supported" >&6; }
10431 if test "$supported" = "yes" ; then
10432 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
10433 found="yes"
10434 fi
10435 fi
10436
10437
10438
10439
10440
10441
10442
10443
10444
10445
10446
10447
10448
10449
10450
10451 xorg_testset_save_CFLAGS="$CFLAGS"
10452
10453 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10454 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10456 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10457 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10458 then :
10459 printf %s "(cached) " >&6
10460 else $as_nop
10461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10462 /* end confdefs.h. */
10463 int i;
10464 _ACEOF
10465 if ac_fn_c_try_compile "$LINENO"
10466 then :
10467 xorg_cv_cc_flag_unknown_warning_option=yes
10468 else $as_nop
10469 xorg_cv_cc_flag_unknown_warning_option=no
10470 fi
10471 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10472 fi
10473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10474 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10475 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10476 CFLAGS="$xorg_testset_save_CFLAGS"
10477 fi
10478
10479 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10480 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10481 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10482 fi
10483 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10485 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10486 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10487 then :
10488 printf %s "(cached) " >&6
10489 else $as_nop
10490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10491 /* end confdefs.h. */
10492 int i;
10493 _ACEOF
10494 if ac_fn_c_try_compile "$LINENO"
10495 then :
10496 xorg_cv_cc_flag_unused_command_line_argument=yes
10497 else $as_nop
10498 xorg_cv_cc_flag_unused_command_line_argument=no
10499 fi
10500 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10501 fi
10502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10503 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10504 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10505 CFLAGS="$xorg_testset_save_CFLAGS"
10506 fi
10507
10508 found="no"
10509
10510 if test $found = "no" ; then
10511 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10512 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10513 fi
10514
10515 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10516 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10517 fi
10518
10519 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
10520
10521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
10522 printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
10523 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
10524 if eval test \${$cacheid+y}
10525 then :
10526 printf %s "(cached) " >&6
10527 else $as_nop
10528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10529 /* end confdefs.h. */
10530 int i;
10531 int
10532 main (void)
10533 {
10534
10535 ;
10536 return 0;
10537 }
10538 _ACEOF
10539 if ac_fn_c_try_link "$LINENO"
10540 then :
10541 eval $cacheid=yes
10542 else $as_nop
10543 eval $cacheid=no
10544 fi
10545 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10546 conftest$ac_exeext conftest.$ac_ext
10547 fi
10548
10549
10550 CFLAGS="$xorg_testset_save_CFLAGS"
10551
10552 eval supported=\$$cacheid
10553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10554 printf "%s\n" "$supported" >&6; }
10555 if test "$supported" = "yes" ; then
10556 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
10557 found="yes"
10558 fi
10559 fi
10560
10561
10562 fi
10563
10564
10565
10566
10567
10568
10569
10570 CWARNFLAGS="$BASE_CFLAGS"
10571 if test "x$GCC" = xyes ; then
10572 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
10573 fi
10574
10575
10576
10577
10578
10579
10580
10581
10582 # Check whether --enable-strict-compilation was given.
10583 if test ${enable_strict_compilation+y}
10584 then :
10585 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
10586 else $as_nop
10587 STRICT_COMPILE=no
10588 fi
10589
10590
10591
10592
10593
10594
10595 STRICT_CFLAGS=""
10596
10597
10598
10599
10600
10601
10602
10603
10604
10605
10606
10607
10608
10609 xorg_testset_save_CFLAGS="$CFLAGS"
10610
10611 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10612 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10614 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10615 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10616 then :
10617 printf %s "(cached) " >&6
10618 else $as_nop
10619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10620 /* end confdefs.h. */
10621 int i;
10622 _ACEOF
10623 if ac_fn_c_try_compile "$LINENO"
10624 then :
10625 xorg_cv_cc_flag_unknown_warning_option=yes
10626 else $as_nop
10627 xorg_cv_cc_flag_unknown_warning_option=no
10628 fi
10629 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10630 fi
10631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10632 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10633 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10634 CFLAGS="$xorg_testset_save_CFLAGS"
10635 fi
10636
10637 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10638 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10639 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10640 fi
10641 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10643 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10644 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10645 then :
10646 printf %s "(cached) " >&6
10647 else $as_nop
10648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10649 /* end confdefs.h. */
10650 int i;
10651 _ACEOF
10652 if ac_fn_c_try_compile "$LINENO"
10653 then :
10654 xorg_cv_cc_flag_unused_command_line_argument=yes
10655 else $as_nop
10656 xorg_cv_cc_flag_unused_command_line_argument=no
10657 fi
10658 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10659 fi
10660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10661 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10662 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10663 CFLAGS="$xorg_testset_save_CFLAGS"
10664 fi
10665
10666 found="no"
10667
10668 if test $found = "no" ; then
10669 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10670 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10671 fi
10672
10673 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10674 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10675 fi
10676
10677 CFLAGS="$CFLAGS -pedantic"
10678
10679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
10680 printf %s "checking if $CC supports -pedantic... " >&6; }
10681 cacheid=xorg_cv_cc_flag__pedantic
10682 if eval test \${$cacheid+y}
10683 then :
10684 printf %s "(cached) " >&6
10685 else $as_nop
10686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10687 /* end confdefs.h. */
10688 int i;
10689 int
10690 main (void)
10691 {
10692
10693 ;
10694 return 0;
10695 }
10696 _ACEOF
10697 if ac_fn_c_try_link "$LINENO"
10698 then :
10699 eval $cacheid=yes
10700 else $as_nop
10701 eval $cacheid=no
10702 fi
10703 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10704 conftest$ac_exeext conftest.$ac_ext
10705 fi
10706
10707
10708 CFLAGS="$xorg_testset_save_CFLAGS"
10709
10710 eval supported=\$$cacheid
10711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10712 printf "%s\n" "$supported" >&6; }
10713 if test "$supported" = "yes" ; then
10714 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
10715 found="yes"
10716 fi
10717 fi
10718
10719
10720
10721
10722
10723
10724
10725
10726
10727
10728
10729
10730
10731
10732
10733 xorg_testset_save_CFLAGS="$CFLAGS"
10734
10735 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10736 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10738 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10739 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10740 then :
10741 printf %s "(cached) " >&6
10742 else $as_nop
10743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10744 /* end confdefs.h. */
10745 int i;
10746 _ACEOF
10747 if ac_fn_c_try_compile "$LINENO"
10748 then :
10749 xorg_cv_cc_flag_unknown_warning_option=yes
10750 else $as_nop
10751 xorg_cv_cc_flag_unknown_warning_option=no
10752 fi
10753 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10754 fi
10755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10756 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10757 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10758 CFLAGS="$xorg_testset_save_CFLAGS"
10759 fi
10760
10761 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10762 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10763 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10764 fi
10765 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10767 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10768 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10769 then :
10770 printf %s "(cached) " >&6
10771 else $as_nop
10772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10773 /* end confdefs.h. */
10774 int i;
10775 _ACEOF
10776 if ac_fn_c_try_compile "$LINENO"
10777 then :
10778 xorg_cv_cc_flag_unused_command_line_argument=yes
10779 else $as_nop
10780 xorg_cv_cc_flag_unused_command_line_argument=no
10781 fi
10782 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10783 fi
10784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10785 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10786 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10787 CFLAGS="$xorg_testset_save_CFLAGS"
10788 fi
10789
10790 found="no"
10791
10792 if test $found = "no" ; then
10793 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10794 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10795 fi
10796
10797 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10798 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10799 fi
10800
10801 CFLAGS="$CFLAGS -Werror"
10802
10803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
10804 printf %s "checking if $CC supports -Werror... " >&6; }
10805 cacheid=xorg_cv_cc_flag__Werror
10806 if eval test \${$cacheid+y}
10807 then :
10808 printf %s "(cached) " >&6
10809 else $as_nop
10810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10811 /* end confdefs.h. */
10812 int i;
10813 int
10814 main (void)
10815 {
10816
10817 ;
10818 return 0;
10819 }
10820 _ACEOF
10821 if ac_fn_c_try_link "$LINENO"
10822 then :
10823 eval $cacheid=yes
10824 else $as_nop
10825 eval $cacheid=no
10826 fi
10827 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10828 conftest$ac_exeext conftest.$ac_ext
10829 fi
10830
10831
10832 CFLAGS="$xorg_testset_save_CFLAGS"
10833
10834 eval supported=\$$cacheid
10835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10836 printf "%s\n" "$supported" >&6; }
10837 if test "$supported" = "yes" ; then
10838 STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
10839 found="yes"
10840 fi
10841 fi
10842
10843 if test $found = "no" ; then
10844 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10845 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10846 fi
10847
10848 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10849 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10850 fi
10851
10852 CFLAGS="$CFLAGS -errwarn"
10853
10854 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
10855 printf %s "checking if $CC supports -errwarn... " >&6; }
10856 cacheid=xorg_cv_cc_flag__errwarn
10857 if eval test \${$cacheid+y}
10858 then :
10859 printf %s "(cached) " >&6
10860 else $as_nop
10861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10862 /* end confdefs.h. */
10863 int i;
10864 int
10865 main (void)
10866 {
10867
10868 ;
10869 return 0;
10870 }
10871 _ACEOF
10872 if ac_fn_c_try_link "$LINENO"
10873 then :
10874 eval $cacheid=yes
10875 else $as_nop
10876 eval $cacheid=no
10877 fi
10878 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10879 conftest$ac_exeext conftest.$ac_ext
10880 fi
10881
10882
10883 CFLAGS="$xorg_testset_save_CFLAGS"
10884
10885 eval supported=\$$cacheid
10886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10887 printf "%s\n" "$supported" >&6; }
10888 if test "$supported" = "yes" ; then
10889 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
10890 found="yes"
10891 fi
10892 fi
10893
10894
10895
10896 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
10897 # activate it with -Werror, so we add it here explicitly.
10898
10899
10900
10901
10902
10903
10904
10905
10906
10907
10908
10909
10910
10911 xorg_testset_save_CFLAGS="$CFLAGS"
10912
10913 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10914 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10915 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10916 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10917 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10918 then :
10919 printf %s "(cached) " >&6
10920 else $as_nop
10921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10922 /* end confdefs.h. */
10923 int i;
10924 _ACEOF
10925 if ac_fn_c_try_compile "$LINENO"
10926 then :
10927 xorg_cv_cc_flag_unknown_warning_option=yes
10928 else $as_nop
10929 xorg_cv_cc_flag_unknown_warning_option=no
10930 fi
10931 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10932 fi
10933 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10934 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10935 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10936 CFLAGS="$xorg_testset_save_CFLAGS"
10937 fi
10938
10939 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10940 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10941 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10942 fi
10943 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10944 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10945 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10946 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10947 then :
10948 printf %s "(cached) " >&6
10949 else $as_nop
10950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10951 /* end confdefs.h. */
10952 int i;
10953 _ACEOF
10954 if ac_fn_c_try_compile "$LINENO"
10955 then :
10956 xorg_cv_cc_flag_unused_command_line_argument=yes
10957 else $as_nop
10958 xorg_cv_cc_flag_unused_command_line_argument=no
10959 fi
10960 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10961 fi
10962 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10963 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10964 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10965 CFLAGS="$xorg_testset_save_CFLAGS"
10966 fi
10967
10968 found="no"
10969
10970 if test $found = "no" ; then
10971 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10972 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10973 fi
10974
10975 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10976 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10977 fi
10978
10979 CFLAGS="$CFLAGS -Werror=attributes"
10980
10981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
10982 printf %s "checking if $CC supports -Werror=attributes... " >&6; }
10983 cacheid=xorg_cv_cc_flag__Werror_attributes
10984 if eval test \${$cacheid+y}
10985 then :
10986 printf %s "(cached) " >&6
10987 else $as_nop
10988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10989 /* end confdefs.h. */
10990 int i;
10991 int
10992 main (void)
10993 {
10994
10995 ;
10996 return 0;
10997 }
10998 _ACEOF
10999 if ac_fn_c_try_link "$LINENO"
11000 then :
11001 eval $cacheid=yes
11002 else $as_nop
11003 eval $cacheid=no
11004 fi
11005 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11006 conftest$ac_exeext conftest.$ac_ext
11007 fi
11008
11009
11010 CFLAGS="$xorg_testset_save_CFLAGS"
11011
11012 eval supported=\$$cacheid
11013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11014 printf "%s\n" "$supported" >&6; }
11015 if test "$supported" = "yes" ; then
11016 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
11017 found="yes"
11018 fi
11019 fi
11020
11021
11022
11023 if test "x$STRICT_COMPILE" = "xyes"; then
11024 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
11025 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
11026 fi
11027
11028
11029
11030
11031
11032
11033 cat >>confdefs.h <<_ACEOF
11034 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
11035 _ACEOF
11036
11037 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
11038 if test "x$PVM" = "x"; then
11039 PVM="0"
11040 fi
11041
11042 printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h
11043
11044 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
11045 if test "x$PVP" = "x"; then
11046 PVP="0"
11047 fi
11048
11049 printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h
11050
11051
11052
11053 CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \
11054 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
11055 || (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \
11056 touch \$(top_srcdir)/ChangeLog; \
11057 echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))"
11058
11059
11060
11061
11062 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
11063 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
11064 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
11065 || (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \
11066 touch \$(top_srcdir)/INSTALL; \
11067 echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))"
11068
11069
11070
11071
11072
11073
11074 case $host_os in
11075 solaris*)
11076 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we
11077 # check for a man page file found in later versions that use
11078 # traditional section numbers instead
11079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5
11080 printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; }
11081 if test ${ac_cv_file__usr_share_man_man7_attributes_7+y}
11082 then :
11083 printf %s "(cached) " >&6
11084 else $as_nop
11085 test "$cross_compiling" = yes &&
11086 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
11087 if test -r "/usr/share/man/man7/attributes.7"; then
11088 ac_cv_file__usr_share_man_man7_attributes_7=yes
11089 else
11090 ac_cv_file__usr_share_man_man7_attributes_7=no
11091 fi
11092 fi
11093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5
11094 printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; }
11095 if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes
11096 then :
11097 SYSV_MAN_SECTIONS=false
11098 else $as_nop
11099 SYSV_MAN_SECTIONS=true
11100 fi
11101
11102 ;;
11103 *) SYSV_MAN_SECTIONS=false ;;
11104 esac
11105
11106 if test x$APP_MAN_SUFFIX = x ; then
11107 APP_MAN_SUFFIX=1
11108 fi
11109 if test x$APP_MAN_DIR = x ; then
11110 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
11111 fi
11112
11113 if test x$LIB_MAN_SUFFIX = x ; then
11114 LIB_MAN_SUFFIX=3
11115 fi
11116 if test x$LIB_MAN_DIR = x ; then
11117 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
11118 fi
11119
11120 if test x$FILE_MAN_SUFFIX = x ; then
11121 case $SYSV_MAN_SECTIONS in
11122 true) FILE_MAN_SUFFIX=4 ;;
11123 *) FILE_MAN_SUFFIX=5 ;;
11124 esac
11125 fi
11126 if test x$FILE_MAN_DIR = x ; then
11127 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
11128 fi
11129
11130 if test x$MISC_MAN_SUFFIX = x ; then
11131 case $SYSV_MAN_SECTIONS in
11132 true) MISC_MAN_SUFFIX=5 ;;
11133 *) MISC_MAN_SUFFIX=7 ;;
11134 esac
11135 fi
11136 if test x$MISC_MAN_DIR = x ; then
11137 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
11138 fi
11139
11140 if test x$DRIVER_MAN_SUFFIX = x ; then
11141 case $SYSV_MAN_SECTIONS in
11142 true) DRIVER_MAN_SUFFIX=7 ;;
11143 *) DRIVER_MAN_SUFFIX=4 ;;
11144 esac
11145 fi
11146 if test x$DRIVER_MAN_DIR = x ; then
11147 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
11148 fi
11149
11150 if test x$ADMIN_MAN_SUFFIX = x ; then
11151 case $SYSV_MAN_SECTIONS in
11152 true) ADMIN_MAN_SUFFIX=1m ;;
11153 *) ADMIN_MAN_SUFFIX=8 ;;
11154 esac
11155 fi
11156 if test x$ADMIN_MAN_DIR = x ; then
11157 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
11158 fi
11159
11160
11161
11162
11163
11164
11165
11166
11167
11168
11169
11170
11171
11172
11173
11174 XORG_MAN_PAGE="X Version 11"
11175
11176 MAN_SUBSTS="\
11177 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11178 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11179 -e 's|__xservername__|Xorg|g' \
11180 -e 's|__xconfigfile__|xorg.conf|g' \
11181 -e 's|__projectroot__|\$(prefix)|g' \
11182 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
11183 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
11184 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
11185 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
11186 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
11187 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
11188 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
11189
11190
11191
11192 # Check whether --enable-silent-rules was given.
11193 if test ${enable_silent_rules+y}
11194 then :
11195 enableval=$enable_silent_rules;
11196 fi
11197
11198 case $enable_silent_rules in # (((
11199 yes) AM_DEFAULT_VERBOSITY=0;;
11200 no) AM_DEFAULT_VERBOSITY=1;;
11201 *) AM_DEFAULT_VERBOSITY=0;;
11202 esac
11203 am_make=${MAKE-make}
11204 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
11205 printf %s "checking whether $am_make supports nested variables... " >&6; }
11206 if test ${am_cv_make_support_nested_variables+y}
11207 then :
11208 printf %s "(cached) " >&6
11209 else $as_nop
11210 if printf "%s\n" 'TRUE=$(BAR$(V))
11211 BAR0=false
11212 BAR1=true
11213 V=1
11214 am__doit:
11215 @$(TRUE)
11216 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
11217 am_cv_make_support_nested_variables=yes
11218 else
11219 am_cv_make_support_nested_variables=no
11220 fi
11221 fi
11222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
11223 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
11224 if test $am_cv_make_support_nested_variables = yes; then
11225 AM_V='$(V)'
11226 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
11227 else
11228 AM_V=$AM_DEFAULT_VERBOSITY
11229 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
11230 fi
11231 AM_BACKSLASH='\'
11232
11233
11234
11235 # Initialize libtool
11236 # Check whether --enable-static was given.
11237 if test ${enable_static+y}
11238 then :
11239 enableval=$enable_static; p=${PACKAGE-default}
11240 case $enableval in
11241 yes) enable_static=yes ;;
11242 no) enable_static=no ;;
11243 *)
11244 enable_static=no
11245 # Look at the argument we got. We use all the common list separators.
11246 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11247 for pkg in $enableval; do
11248 IFS=$lt_save_ifs
11249 if test "X$pkg" = "X$p"; then
11250 enable_static=yes
11251 fi
11252 done
11253 IFS=$lt_save_ifs
11254 ;;
11255 esac
11256 else $as_nop
11257 enable_static=no
11258 fi
11259
11260
11261
11262
11263
11264
11265
11266
11267
11268 case `pwd` in
11269 *\ * | *\ *)
11270 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
11271 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
11272 esac
11273
11274
11275
11276 macro_version='2.4.7'
11277 macro_revision='2.4.7'
11278
11279
11280
11281
11282
11283
11284
11285
11286
11287
11288
11289
11290
11291
11292 ltmain=$ac_aux_dir/ltmain.sh
11293
11294 # Backslashify metacharacters that are still active within
11295 # double-quoted strings.
11296 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
11297
11298 # Same as above, but do not quote variable references.
11299 double_quote_subst='s/\(["`\\]\)/\\\1/g'
11300
11301 # Sed substitution to delay expansion of an escaped shell variable in a
11302 # double_quote_subst'ed string.
11303 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11304
11305 # Sed substitution to delay expansion of an escaped single quote.
11306 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
11307
11308 # Sed substitution to avoid accidental globbing in evaled expressions
11309 no_glob_subst='s/\*/\\\*/g'
11310
11311 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11312 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
11313 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
11314
11315 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
11316 printf %s "checking how to print strings... " >&6; }
11317 # Test print first, because it will be a builtin if present.
11318 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
11319 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
11320 ECHO='print -r --'
11321 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
11322 ECHO='printf %s\n'
11323 else
11324 # Use this function as a fallback that always works.
11325 func_fallback_echo ()
11326 {
11327 eval 'cat <<_LTECHO_EOF
11328 $1
11329 _LTECHO_EOF'
11330 }
11331 ECHO='func_fallback_echo'
11332 fi
11333
11334 # func_echo_all arg...
11335 # Invoke $ECHO with all args, space-separated.
11336 func_echo_all ()
11337 {
11338 $ECHO ""
11339 }
11340
11341 case $ECHO in
11342 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
11343 printf "%s\n" "printf" >&6; } ;;
11344 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
11345 printf "%s\n" "print -r" >&6; } ;;
11346 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
11347 printf "%s\n" "cat" >&6; } ;;
11348 esac
11349
11350
11351
11352
11353
11354
11355
11356
11357
11358
11359
11360
11361
11362
11363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
11364 printf %s "checking for a sed that does not truncate output... " >&6; }
11365 if test ${ac_cv_path_SED+y}
11366 then :
11367 printf %s "(cached) " >&6
11368 else $as_nop
11369 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
11370 for ac_i in 1 2 3 4 5 6 7; do
11371 ac_script="$ac_script$as_nl$ac_script"
11372 done
11373 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
11374 { ac_script=; unset ac_script;}
11375 if test -z "$SED"; then
11376 ac_path_SED_found=false
11377 # Loop through the user's path and test for each of PROGNAME-LIST
11378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11379 for as_dir in $PATH
11380 do
11381 IFS=$as_save_IFS
11382 case $as_dir in #(((
11383 '') as_dir=./ ;;
11384 */) ;;
11385 *) as_dir=$as_dir/ ;;
11386 esac
11387 for ac_prog in sed gsed
11388 do
11389 for ac_exec_ext in '' $ac_executable_extensions; do
11390 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
11391 as_fn_executable_p "$ac_path_SED" || continue
11392 # Check for GNU ac_path_SED and select it if it is found.
11393 # Check for GNU $ac_path_SED
11394 case `"$ac_path_SED" --version 2>&1` in
11395 *GNU*)
11396 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
11397 *)
11398 ac_count=0
11399 printf %s 0123456789 >"conftest.in"
11400 while :
11401 do
11402 cat "conftest.in" "conftest.in" >"conftest.tmp"
11403 mv "conftest.tmp" "conftest.in"
11404 cp "conftest.in" "conftest.nl"
11405 printf "%s\n" '' >> "conftest.nl"
11406 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
11407 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11408 as_fn_arith $ac_count + 1 && ac_count=$as_val
11409 if test $ac_count -gt ${ac_path_SED_max-0}; then
11410 # Best one so far, save it but keep looking for a better one
11411 ac_cv_path_SED="$ac_path_SED"
11412 ac_path_SED_max=$ac_count
11413 fi
11414 # 10*(2^10) chars as input seems more than enough
11415 test $ac_count -gt 10 && break
11416 done
11417 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11418 esac
11419
11420 $ac_path_SED_found && break 3
11421 done
11422 done
11423 done
11424 IFS=$as_save_IFS
11425 if test -z "$ac_cv_path_SED"; then
11426 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
11427 fi
11428 else
11429 ac_cv_path_SED=$SED
11430 fi
11431
11432 fi
11433 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
11434 printf "%s\n" "$ac_cv_path_SED" >&6; }
11435 SED="$ac_cv_path_SED"
11436 rm -f conftest.sed
11437
11438 test -z "$SED" && SED=sed
11439 Xsed="$SED -e 1s/^X//"
11440
11441
11442
11443
11444
11445
11446
11447
11448
11449
11450
11451 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
11452 printf %s "checking for grep that handles long lines and -e... " >&6; }
11453 if test ${ac_cv_path_GREP+y}
11454 then :
11455 printf %s "(cached) " >&6
11456 else $as_nop
11457 if test -z "$GREP"; then
11458 ac_path_GREP_found=false
11459 # Loop through the user's path and test for each of PROGNAME-LIST
11460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11461 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11462 do
11463 IFS=$as_save_IFS
11464 case $as_dir in #(((
11465 '') as_dir=./ ;;
11466 */) ;;
11467 *) as_dir=$as_dir/ ;;
11468 esac
11469 for ac_prog in grep ggrep
11470 do
11471 for ac_exec_ext in '' $ac_executable_extensions; do
11472 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
11473 as_fn_executable_p "$ac_path_GREP" || continue
11474 # Check for GNU ac_path_GREP and select it if it is found.
11475 # Check for GNU $ac_path_GREP
11476 case `"$ac_path_GREP" --version 2>&1` in
11477 *GNU*)
11478 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
11479 *)
11480 ac_count=0
11481 printf %s 0123456789 >"conftest.in"
11482 while :
11483 do
11484 cat "conftest.in" "conftest.in" >"conftest.tmp"
11485 mv "conftest.tmp" "conftest.in"
11486 cp "conftest.in" "conftest.nl"
11487 printf "%s\n" 'GREP' >> "conftest.nl"
11488 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11489 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11490 as_fn_arith $ac_count + 1 && ac_count=$as_val
11491 if test $ac_count -gt ${ac_path_GREP_max-0}; then
11492 # Best one so far, save it but keep looking for a better one
11493 ac_cv_path_GREP="$ac_path_GREP"
11494 ac_path_GREP_max=$ac_count
11495 fi
11496 # 10*(2^10) chars as input seems more than enough
11497 test $ac_count -gt 10 && break
11498 done
11499 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11500 esac
11501
11502 $ac_path_GREP_found && break 3
11503 done
11504 done
11505 done
11506 IFS=$as_save_IFS
11507 if test -z "$ac_cv_path_GREP"; then
11508 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11509 fi
11510 else
11511 ac_cv_path_GREP=$GREP
11512 fi
11513
11514 fi
11515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
11516 printf "%s\n" "$ac_cv_path_GREP" >&6; }
11517 GREP="$ac_cv_path_GREP"
11518
11519
11520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
11521 printf %s "checking for egrep... " >&6; }
11522 if test ${ac_cv_path_EGREP+y}
11523 then :
11524 printf %s "(cached) " >&6
11525 else $as_nop
11526 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
11527 then ac_cv_path_EGREP="$GREP -E"
11528 else
11529 if test -z "$EGREP"; then
11530 ac_path_EGREP_found=false
11531 # Loop through the user's path and test for each of PROGNAME-LIST
11532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11533 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11534 do
11535 IFS=$as_save_IFS
11536 case $as_dir in #(((
11537 '') as_dir=./ ;;
11538 */) ;;
11539 *) as_dir=$as_dir/ ;;
11540 esac
11541 for ac_prog in egrep
11542 do
11543 for ac_exec_ext in '' $ac_executable_extensions; do
11544 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
11545 as_fn_executable_p "$ac_path_EGREP" || continue
11546 # Check for GNU ac_path_EGREP and select it if it is found.
11547 # Check for GNU $ac_path_EGREP
11548 case `"$ac_path_EGREP" --version 2>&1` in
11549 *GNU*)
11550 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
11551 *)
11552 ac_count=0
11553 printf %s 0123456789 >"conftest.in"
11554 while :
11555 do
11556 cat "conftest.in" "conftest.in" >"conftest.tmp"
11557 mv "conftest.tmp" "conftest.in"
11558 cp "conftest.in" "conftest.nl"
11559 printf "%s\n" 'EGREP' >> "conftest.nl"
11560 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11561 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11562 as_fn_arith $ac_count + 1 && ac_count=$as_val
11563 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
11564 # Best one so far, save it but keep looking for a better one
11565 ac_cv_path_EGREP="$ac_path_EGREP"
11566 ac_path_EGREP_max=$ac_count
11567 fi
11568 # 10*(2^10) chars as input seems more than enough
11569 test $ac_count -gt 10 && break
11570 done
11571 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11572 esac
11573
11574 $ac_path_EGREP_found && break 3
11575 done
11576 done
11577 done
11578 IFS=$as_save_IFS
11579 if test -z "$ac_cv_path_EGREP"; then
11580 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11581 fi
11582 else
11583 ac_cv_path_EGREP=$EGREP
11584 fi
11585
11586 fi
11587 fi
11588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
11589 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
11590 EGREP="$ac_cv_path_EGREP"
11591
11592
11593 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
11594 printf %s "checking for fgrep... " >&6; }
11595 if test ${ac_cv_path_FGREP+y}
11596 then :
11597 printf %s "(cached) " >&6
11598 else $as_nop
11599 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
11600 then ac_cv_path_FGREP="$GREP -F"
11601 else
11602 if test -z "$FGREP"; then
11603 ac_path_FGREP_found=false
11604 # Loop through the user's path and test for each of PROGNAME-LIST
11605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11606 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11607 do
11608 IFS=$as_save_IFS
11609 case $as_dir in #(((
11610 '') as_dir=./ ;;
11611 */) ;;
11612 *) as_dir=$as_dir/ ;;
11613 esac
11614 for ac_prog in fgrep
11615 do
11616 for ac_exec_ext in '' $ac_executable_extensions; do
11617 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
11618 as_fn_executable_p "$ac_path_FGREP" || continue
11619 # Check for GNU ac_path_FGREP and select it if it is found.
11620 # Check for GNU $ac_path_FGREP
11621 case `"$ac_path_FGREP" --version 2>&1` in
11622 *GNU*)
11623 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
11624 *)
11625 ac_count=0
11626 printf %s 0123456789 >"conftest.in"
11627 while :
11628 do
11629 cat "conftest.in" "conftest.in" >"conftest.tmp"
11630 mv "conftest.tmp" "conftest.in"
11631 cp "conftest.in" "conftest.nl"
11632 printf "%s\n" 'FGREP' >> "conftest.nl"
11633 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
11634 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11635 as_fn_arith $ac_count + 1 && ac_count=$as_val
11636 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
11637 # Best one so far, save it but keep looking for a better one
11638 ac_cv_path_FGREP="$ac_path_FGREP"
11639 ac_path_FGREP_max=$ac_count
11640 fi
11641 # 10*(2^10) chars as input seems more than enough
11642 test $ac_count -gt 10 && break
11643 done
11644 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11645 esac
11646
11647 $ac_path_FGREP_found && break 3
11648 done
11649 done
11650 done
11651 IFS=$as_save_IFS
11652 if test -z "$ac_cv_path_FGREP"; then
11653 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11654 fi
11655 else
11656 ac_cv_path_FGREP=$FGREP
11657 fi
11658
11659 fi
11660 fi
11661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
11662 printf "%s\n" "$ac_cv_path_FGREP" >&6; }
11663 FGREP="$ac_cv_path_FGREP"
11664
11665
11666 test -z "$GREP" && GREP=grep
11667
11668
11669
11670
11671
11672
11673
11674
11675
11676
11677
11678
11679
11680
11681
11682
11683
11684
11685
11686 # Check whether --with-gnu-ld was given.
11687 if test ${with_gnu_ld+y}
11688 then :
11689 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
11690 else $as_nop
11691 with_gnu_ld=no
11692 fi
11693
11694 ac_prog=ld
11695 if test yes = "$GCC"; then
11696 # Check if gcc -print-prog-name=ld gives a path.
11697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
11698 printf %s "checking for ld used by $CC... " >&6; }
11699 case $host in
11700 *-*-mingw*)
11701 # gcc leaves a trailing carriage return, which upsets mingw
11702 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11703 *)
11704 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11705 esac
11706 case $ac_prog in
11707 # Accept absolute paths.
11708 [\\/]* | ?:[\\/]*)
11709 re_direlt='/[^/][^/]*/\.\./'
11710 # Canonicalize the pathname of ld
11711 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
11712 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
11713 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
11714 done
11715 test -z "$LD" && LD=$ac_prog
11716 ;;
11717 "")
11718 # If it fails, then pretend we aren't using GCC.
11719 ac_prog=ld
11720 ;;
11721 *)
11722 # If it is relative, then search for the first ld in PATH.
11723 with_gnu_ld=unknown
11724 ;;
11725 esac
11726 elif test yes = "$with_gnu_ld"; then
11727 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11728 printf %s "checking for GNU ld... " >&6; }
11729 else
11730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11731 printf %s "checking for non-GNU ld... " >&6; }
11732 fi
11733 if test ${lt_cv_path_LD+y}
11734 then :
11735 printf %s "(cached) " >&6
11736 else $as_nop
11737 if test -z "$LD"; then
11738 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11739 for ac_dir in $PATH; do
11740 IFS=$lt_save_ifs
11741 test -z "$ac_dir" && ac_dir=.
11742 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11743 lt_cv_path_LD=$ac_dir/$ac_prog
11744 # Check to see if the program is GNU ld. I'd rather use --version,
11745 # but apparently some variants of GNU ld only accept -v.
11746 # Break only if it was the GNU/non-GNU ld that we prefer.
11747 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11748 *GNU* | *'with BFD'*)
11749 test no != "$with_gnu_ld" && break
11750 ;;
11751 *)
11752 test yes != "$with_gnu_ld" && break
11753 ;;
11754 esac
11755 fi
11756 done
11757 IFS=$lt_save_ifs
11758 else
11759 lt_cv_path_LD=$LD # Let the user override the test with a path.
11760 fi
11761 fi
11762
11763 LD=$lt_cv_path_LD
11764 if test -n "$LD"; then
11765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11766 printf "%s\n" "$LD" >&6; }
11767 else
11768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11769 printf "%s\n" "no" >&6; }
11770 fi
11771 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
11772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11773 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
11774 if test ${lt_cv_prog_gnu_ld+y}
11775 then :
11776 printf %s "(cached) " >&6
11777 else $as_nop
11778 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11779 case `$LD -v 2>&1 </dev/null` in
11780 *GNU* | *'with BFD'*)
11781 lt_cv_prog_gnu_ld=yes
11782 ;;
11783 *)
11784 lt_cv_prog_gnu_ld=no
11785 ;;
11786 esac
11787 fi
11788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
11789 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
11790 with_gnu_ld=$lt_cv_prog_gnu_ld
11791
11792
11793
11794
11795
11796
11797
11798
11799
11800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
11801 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
11802 if test ${lt_cv_path_NM+y}
11803 then :
11804 printf %s "(cached) " >&6
11805 else $as_nop
11806 if test -n "$NM"; then
11807 # Let the user override the test.
11808 lt_cv_path_NM=$NM
11809 else
11810 lt_nm_to_check=${ac_tool_prefix}nm
11811 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
11812 lt_nm_to_check="$lt_nm_to_check nm"
11813 fi
11814 for lt_tmp_nm in $lt_nm_to_check; do
11815 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11816 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
11817 IFS=$lt_save_ifs
11818 test -z "$ac_dir" && ac_dir=.
11819 tmp_nm=$ac_dir/$lt_tmp_nm
11820 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
11821 # Check to see if the nm accepts a BSD-compat flag.
11822 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
11823 # nm: unknown option "B" ignored
11824 # Tru64's nm complains that /dev/null is an invalid object file
11825 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
11826 case $build_os in
11827 mingw*) lt_bad_file=conftest.nm/nofile ;;
11828 *) lt_bad_file=/dev/null ;;
11829 esac
11830 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
11831 *$lt_bad_file* | *'Invalid file or object type'*)
11832 lt_cv_path_NM="$tmp_nm -B"
11833 break 2
11834 ;;
11835 *)
11836 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
11837 */dev/null*)
11838 lt_cv_path_NM="$tmp_nm -p"
11839 break 2
11840 ;;
11841 *)
11842 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
11843 continue # so that we can try to find one that supports BSD flags
11844 ;;
11845 esac
11846 ;;
11847 esac
11848 fi
11849 done
11850 IFS=$lt_save_ifs
11851 done
11852 : ${lt_cv_path_NM=no}
11853 fi
11854 fi
11855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
11856 printf "%s\n" "$lt_cv_path_NM" >&6; }
11857 if test no != "$lt_cv_path_NM"; then
11858 NM=$lt_cv_path_NM
11859 else
11860 # Didn't find any BSD compatible name lister, look for dumpbin.
11861 if test -n "$DUMPBIN"; then :
11862 # Let the user override the test.
11863 else
11864 if test -n "$ac_tool_prefix"; then
11865 for ac_prog in dumpbin "link -dump"
11866 do
11867 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11868 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11869 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11870 printf %s "checking for $ac_word... " >&6; }
11871 if test ${ac_cv_prog_DUMPBIN+y}
11872 then :
11873 printf %s "(cached) " >&6
11874 else $as_nop
11875 if test -n "$DUMPBIN"; then
11876 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
11877 else
11878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11879 for as_dir in $PATH
11880 do
11881 IFS=$as_save_IFS
11882 case $as_dir in #(((
11883 '') as_dir=./ ;;
11884 */) ;;
11885 *) as_dir=$as_dir/ ;;
11886 esac
11887 for ac_exec_ext in '' $ac_executable_extensions; do
11888 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11889 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
11890 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11891 break 2
11892 fi
11893 done
11894 done
11895 IFS=$as_save_IFS
11896
11897 fi
11898 fi
11899 DUMPBIN=$ac_cv_prog_DUMPBIN
11900 if test -n "$DUMPBIN"; then
11901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
11902 printf "%s\n" "$DUMPBIN" >&6; }
11903 else
11904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11905 printf "%s\n" "no" >&6; }
11906 fi
11907
11908
11909 test -n "$DUMPBIN" && break
11910 done
11911 fi
11912 if test -z "$DUMPBIN"; then
11913 ac_ct_DUMPBIN=$DUMPBIN
11914 for ac_prog in dumpbin "link -dump"
11915 do
11916 # Extract the first word of "$ac_prog", so it can be a program name with args.
11917 set dummy $ac_prog; ac_word=$2
11918 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11919 printf %s "checking for $ac_word... " >&6; }
11920 if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
11921 then :
11922 printf %s "(cached) " >&6
11923 else $as_nop
11924 if test -n "$ac_ct_DUMPBIN"; then
11925 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
11926 else
11927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11928 for as_dir in $PATH
11929 do
11930 IFS=$as_save_IFS
11931 case $as_dir in #(((
11932 '') as_dir=./ ;;
11933 */) ;;
11934 *) as_dir=$as_dir/ ;;
11935 esac
11936 for ac_exec_ext in '' $ac_executable_extensions; do
11937 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11938 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
11939 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11940 break 2
11941 fi
11942 done
11943 done
11944 IFS=$as_save_IFS
11945
11946 fi
11947 fi
11948 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
11949 if test -n "$ac_ct_DUMPBIN"; then
11950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
11951 printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
11952 else
11953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11954 printf "%s\n" "no" >&6; }
11955 fi
11956
11957
11958 test -n "$ac_ct_DUMPBIN" && break
11959 done
11960
11961 if test "x$ac_ct_DUMPBIN" = x; then
11962 DUMPBIN=":"
11963 else
11964 case $cross_compiling:$ac_tool_warned in
11965 yes:)
11966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11967 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11968 ac_tool_warned=yes ;;
11969 esac
11970 DUMPBIN=$ac_ct_DUMPBIN
11971 fi
11972 fi
11973
11974 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
11975 *COFF*)
11976 DUMPBIN="$DUMPBIN -symbols -headers"
11977 ;;
11978 *)
11979 DUMPBIN=:
11980 ;;
11981 esac
11982 fi
11983
11984 if test : != "$DUMPBIN"; then
11985 NM=$DUMPBIN
11986 fi
11987 fi
11988 test -z "$NM" && NM=nm
11989
11990
11991
11992
11993
11994
11995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
11996 printf %s "checking the name lister ($NM) interface... " >&6; }
11997 if test ${lt_cv_nm_interface+y}
11998 then :
11999 printf %s "(cached) " >&6
12000 else $as_nop
12001 lt_cv_nm_interface="BSD nm"
12002 echo "int some_variable = 0;" > conftest.$ac_ext
12003 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
12004 (eval "$ac_compile" 2>conftest.err)
12005 cat conftest.err >&5
12006 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
12007 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
12008 cat conftest.err >&5
12009 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
12010 cat conftest.out >&5
12011 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
12012 lt_cv_nm_interface="MS dumpbin"
12013 fi
12014 rm -f conftest*
12015 fi
12016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
12017 printf "%s\n" "$lt_cv_nm_interface" >&6; }
12018
12019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
12020 printf %s "checking whether ln -s works... " >&6; }
12021 LN_S=$as_ln_s
12022 if test "$LN_S" = "ln -s"; then
12023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12024 printf "%s\n" "yes" >&6; }
12025 else
12026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
12027 printf "%s\n" "no, using $LN_S" >&6; }
12028 fi
12029
12030 # find the maximum length of command line arguments
12031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
12032 printf %s "checking the maximum length of command line arguments... " >&6; }
12033 if test ${lt_cv_sys_max_cmd_len+y}
12034 then :
12035 printf %s "(cached) " >&6
12036 else $as_nop
12037 i=0
12038 teststring=ABCD
12039
12040 case $build_os in
12041 msdosdjgpp*)
12042 # On DJGPP, this test can blow up pretty badly due to problems in libc
12043 # (any single argument exceeding 2000 bytes causes a buffer overrun
12044 # during glob expansion). Even if it were fixed, the result of this
12045 # check would be larger than it should be.
12046 lt_cv_sys_max_cmd_len=12288; # 12K is about right
12047 ;;
12048
12049 gnu*)
12050 # Under GNU Hurd, this test is not required because there is
12051 # no limit to the length of command line arguments.
12052 # Libtool will interpret -1 as no limit whatsoever
12053 lt_cv_sys_max_cmd_len=-1;
12054 ;;
12055
12056 cygwin* | mingw* | cegcc*)
12057 # On Win9x/ME, this test blows up -- it succeeds, but takes
12058 # about 5 minutes as the teststring grows exponentially.
12059 # Worse, since 9x/ME are not pre-emptively multitasking,
12060 # you end up with a "frozen" computer, even though with patience
12061 # the test eventually succeeds (with a max line length of 256k).
12062 # Instead, let's just punt: use the minimum linelength reported by
12063 # all of the supported platforms: 8192 (on NT/2K/XP).
12064 lt_cv_sys_max_cmd_len=8192;
12065 ;;
12066
12067 mint*)
12068 # On MiNT this can take a long time and run out of memory.
12069 lt_cv_sys_max_cmd_len=8192;
12070 ;;
12071
12072 amigaos*)
12073 # On AmigaOS with pdksh, this test takes hours, literally.
12074 # So we just punt and use a minimum line length of 8192.
12075 lt_cv_sys_max_cmd_len=8192;
12076 ;;
12077
12078 bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
12079 # This has been around since 386BSD, at least. Likely further.
12080 if test -x /sbin/sysctl; then
12081 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
12082 elif test -x /usr/sbin/sysctl; then
12083 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
12084 else
12085 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
12086 fi
12087 # And add a safety zone
12088 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12089 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12090 ;;
12091
12092 interix*)
12093 # We know the value 262144 and hardcode it with a safety zone (like BSD)
12094 lt_cv_sys_max_cmd_len=196608
12095 ;;
12096
12097 os2*)
12098 # The test takes a long time on OS/2.
12099 lt_cv_sys_max_cmd_len=8192
12100 ;;
12101
12102 osf*)
12103 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
12104 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
12105 # nice to cause kernel panics so lets avoid the loop below.
12106 # First set a reasonable default.
12107 lt_cv_sys_max_cmd_len=16384
12108 #
12109 if test -x /sbin/sysconfig; then
12110 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
12111 *1*) lt_cv_sys_max_cmd_len=-1 ;;
12112 esac
12113 fi
12114 ;;
12115 sco3.2v5*)
12116 lt_cv_sys_max_cmd_len=102400
12117 ;;
12118 sysv5* | sco5v6* | sysv4.2uw2*)
12119 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
12120 if test -n "$kargmax"; then
12121 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'`
12122 else
12123 lt_cv_sys_max_cmd_len=32768
12124 fi
12125 ;;
12126 *)
12127 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
12128 if test -n "$lt_cv_sys_max_cmd_len" && \
12129 test undefined != "$lt_cv_sys_max_cmd_len"; then
12130 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12131 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12132 else
12133 # Make teststring a little bigger before we do anything with it.
12134 # a 1K string should be a reasonable start.
12135 for i in 1 2 3 4 5 6 7 8; do
12136 teststring=$teststring$teststring
12137 done
12138 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
12139 # If test is not a shell built-in, we'll probably end up computing a
12140 # maximum length that is only half of the actual maximum length, but
12141 # we can't tell.
12142 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
12143 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
12144 test 17 != "$i" # 1/2 MB should be enough
12145 do
12146 i=`expr $i + 1`
12147 teststring=$teststring$teststring
12148 done
12149 # Only check the string length outside the loop.
12150 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
12151 teststring=
12152 # Add a significant safety factor because C++ compilers can tack on
12153 # massive amounts of additional arguments before passing them to the
12154 # linker. It appears as though 1/2 is a usable value.
12155 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
12156 fi
12157 ;;
12158 esac
12159
12160 fi
12161
12162 if test -n "$lt_cv_sys_max_cmd_len"; then
12163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
12164 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
12165 else
12166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
12167 printf "%s\n" "none" >&6; }
12168 fi
12169 max_cmd_len=$lt_cv_sys_max_cmd_len
12170
12171
12172
12173
12174
12175
12176 : ${CP="cp -f"}
12177 : ${MV="mv -f"}
12178 : ${RM="rm -f"}
12179
12180 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12181 lt_unset=unset
12182 else
12183 lt_unset=false
12184 fi
12185
12186
12187
12188
12189
12190 # test EBCDIC or ASCII
12191 case `echo X|tr X '\101'` in
12192 A) # ASCII based system
12193 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
12194 lt_SP2NL='tr \040 \012'
12195 lt_NL2SP='tr \015\012 \040\040'
12196 ;;
12197 *) # EBCDIC based system
12198 lt_SP2NL='tr \100 \n'
12199 lt_NL2SP='tr \r\n \100\100'
12200 ;;
12201 esac
12202
12203
12204
12205
12206
12207
12208
12209
12210
12211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
12212 printf %s "checking how to convert $build file names to $host format... " >&6; }
12213 if test ${lt_cv_to_host_file_cmd+y}
12214 then :
12215 printf %s "(cached) " >&6
12216 else $as_nop
12217 case $host in
12218 *-*-mingw* )
12219 case $build in
12220 *-*-mingw* ) # actually msys
12221 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
12222 ;;
12223 *-*-cygwin* )
12224 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
12225 ;;
12226 * ) # otherwise, assume *nix
12227 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
12228 ;;
12229 esac
12230 ;;
12231 *-*-cygwin* )
12232 case $build in
12233 *-*-mingw* ) # actually msys
12234 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
12235 ;;
12236 *-*-cygwin* )
12237 lt_cv_to_host_file_cmd=func_convert_file_noop
12238 ;;
12239 * ) # otherwise, assume *nix
12240 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
12241 ;;
12242 esac
12243 ;;
12244 * ) # unhandled hosts (and "normal" native builds)
12245 lt_cv_to_host_file_cmd=func_convert_file_noop
12246 ;;
12247 esac
12248
12249 fi
12250
12251 to_host_file_cmd=$lt_cv_to_host_file_cmd
12252 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
12253 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
12254
12255
12256
12257
12258
12259 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
12260 printf %s "checking how to convert $build file names to toolchain format... " >&6; }
12261 if test ${lt_cv_to_tool_file_cmd+y}
12262 then :
12263 printf %s "(cached) " >&6
12264 else $as_nop
12265 #assume ordinary cross tools, or native build.
12266 lt_cv_to_tool_file_cmd=func_convert_file_noop
12267 case $host in
12268 *-*-mingw* )
12269 case $build in
12270 *-*-mingw* ) # actually msys
12271 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
12272 ;;
12273 esac
12274 ;;
12275 esac
12276
12277 fi
12278
12279 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
12280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
12281 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
12282
12283
12284
12285
12286
12287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
12288 printf %s "checking for $LD option to reload object files... " >&6; }
12289 if test ${lt_cv_ld_reload_flag+y}
12290 then :
12291 printf %s "(cached) " >&6
12292 else $as_nop
12293 lt_cv_ld_reload_flag='-r'
12294 fi
12295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
12296 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
12297 reload_flag=$lt_cv_ld_reload_flag
12298 case $reload_flag in
12299 "" | " "*) ;;
12300 *) reload_flag=" $reload_flag" ;;
12301 esac
12302 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12303 case $host_os in
12304 cygwin* | mingw* | pw32* | cegcc*)
12305 if test yes != "$GCC"; then
12306 reload_cmds=false
12307 fi
12308 ;;
12309 darwin*)
12310 if test yes = "$GCC"; then
12311 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
12312 else
12313 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12314 fi
12315 ;;
12316 esac
12317
12318
12319
12320
12321
12322
12323
12324
12325
12326 if test -n "$ac_tool_prefix"; then
12327 # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args.
12328 set dummy ${ac_tool_prefix}file; ac_word=$2
12329 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12330 printf %s "checking for $ac_word... " >&6; }
12331 if test ${ac_cv_prog_FILECMD+y}
12332 then :
12333 printf %s "(cached) " >&6
12334 else $as_nop
12335 if test -n "$FILECMD"; then
12336 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
12337 else
12338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12339 for as_dir in $PATH
12340 do
12341 IFS=$as_save_IFS
12342 case $as_dir in #(((
12343 '') as_dir=./ ;;
12344 */) ;;
12345 *) as_dir=$as_dir/ ;;
12346 esac
12347 for ac_exec_ext in '' $ac_executable_extensions; do
12348 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12349 ac_cv_prog_FILECMD="${ac_tool_prefix}file"
12350 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12351 break 2
12352 fi
12353 done
12354 done
12355 IFS=$as_save_IFS
12356
12357 fi
12358 fi
12359 FILECMD=$ac_cv_prog_FILECMD
12360 if test -n "$FILECMD"; then
12361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
12362 printf "%s\n" "$FILECMD" >&6; }
12363 else
12364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12365 printf "%s\n" "no" >&6; }
12366 fi
12367
12368
12369 fi
12370 if test -z "$ac_cv_prog_FILECMD"; then
12371 ac_ct_FILECMD=$FILECMD
12372 # Extract the first word of "file", so it can be a program name with args.
12373 set dummy file; ac_word=$2
12374 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12375 printf %s "checking for $ac_word... " >&6; }
12376 if test ${ac_cv_prog_ac_ct_FILECMD+y}
12377 then :
12378 printf %s "(cached) " >&6
12379 else $as_nop
12380 if test -n "$ac_ct_FILECMD"; then
12381 ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test.
12382 else
12383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12384 for as_dir in $PATH
12385 do
12386 IFS=$as_save_IFS
12387 case $as_dir in #(((
12388 '') as_dir=./ ;;
12389 */) ;;
12390 *) as_dir=$as_dir/ ;;
12391 esac
12392 for ac_exec_ext in '' $ac_executable_extensions; do
12393 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12394 ac_cv_prog_ac_ct_FILECMD="file"
12395 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12396 break 2
12397 fi
12398 done
12399 done
12400 IFS=$as_save_IFS
12401
12402 fi
12403 fi
12404 ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD
12405 if test -n "$ac_ct_FILECMD"; then
12406 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5
12407 printf "%s\n" "$ac_ct_FILECMD" >&6; }
12408 else
12409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12410 printf "%s\n" "no" >&6; }
12411 fi
12412
12413 if test "x$ac_ct_FILECMD" = x; then
12414 FILECMD=":"
12415 else
12416 case $cross_compiling:$ac_tool_warned in
12417 yes:)
12418 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12419 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12420 ac_tool_warned=yes ;;
12421 esac
12422 FILECMD=$ac_ct_FILECMD
12423 fi
12424 else
12425 FILECMD="$ac_cv_prog_FILECMD"
12426 fi
12427
12428
12429
12430
12431
12432
12433
12434 if test -n "$ac_tool_prefix"; then
12435 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
12436 set dummy ${ac_tool_prefix}objdump; ac_word=$2
12437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12438 printf %s "checking for $ac_word... " >&6; }
12439 if test ${ac_cv_prog_OBJDUMP+y}
12440 then :
12441 printf %s "(cached) " >&6
12442 else $as_nop
12443 if test -n "$OBJDUMP"; then
12444 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12445 else
12446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12447 for as_dir in $PATH
12448 do
12449 IFS=$as_save_IFS
12450 case $as_dir in #(((
12451 '') as_dir=./ ;;
12452 */) ;;
12453 *) as_dir=$as_dir/ ;;
12454 esac
12455 for ac_exec_ext in '' $ac_executable_extensions; do
12456 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12457 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
12458 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12459 break 2
12460 fi
12461 done
12462 done
12463 IFS=$as_save_IFS
12464
12465 fi
12466 fi
12467 OBJDUMP=$ac_cv_prog_OBJDUMP
12468 if test -n "$OBJDUMP"; then
12469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12470 printf "%s\n" "$OBJDUMP" >&6; }
12471 else
12472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12473 printf "%s\n" "no" >&6; }
12474 fi
12475
12476
12477 fi
12478 if test -z "$ac_cv_prog_OBJDUMP"; then
12479 ac_ct_OBJDUMP=$OBJDUMP
12480 # Extract the first word of "objdump", so it can be a program name with args.
12481 set dummy objdump; ac_word=$2
12482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12483 printf %s "checking for $ac_word... " >&6; }
12484 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
12485 then :
12486 printf %s "(cached) " >&6
12487 else $as_nop
12488 if test -n "$ac_ct_OBJDUMP"; then
12489 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
12490 else
12491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12492 for as_dir in $PATH
12493 do
12494 IFS=$as_save_IFS
12495 case $as_dir in #(((
12496 '') as_dir=./ ;;
12497 */) ;;
12498 *) as_dir=$as_dir/ ;;
12499 esac
12500 for ac_exec_ext in '' $ac_executable_extensions; do
12501 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12502 ac_cv_prog_ac_ct_OBJDUMP="objdump"
12503 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12504 break 2
12505 fi
12506 done
12507 done
12508 IFS=$as_save_IFS
12509
12510 fi
12511 fi
12512 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
12513 if test -n "$ac_ct_OBJDUMP"; then
12514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
12515 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
12516 else
12517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12518 printf "%s\n" "no" >&6; }
12519 fi
12520
12521 if test "x$ac_ct_OBJDUMP" = x; then
12522 OBJDUMP="false"
12523 else
12524 case $cross_compiling:$ac_tool_warned in
12525 yes:)
12526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12527 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12528 ac_tool_warned=yes ;;
12529 esac
12530 OBJDUMP=$ac_ct_OBJDUMP
12531 fi
12532 else
12533 OBJDUMP="$ac_cv_prog_OBJDUMP"
12534 fi
12535
12536 test -z "$OBJDUMP" && OBJDUMP=objdump
12537
12538
12539
12540
12541
12542
12543
12544
12545
12546 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
12547 printf %s "checking how to recognize dependent libraries... " >&6; }
12548 if test ${lt_cv_deplibs_check_method+y}
12549 then :
12550 printf %s "(cached) " >&6
12551 else $as_nop
12552 lt_cv_file_magic_cmd='$MAGIC_CMD'
12553 lt_cv_file_magic_test_file=
12554 lt_cv_deplibs_check_method='unknown'
12555 # Need to set the preceding variable on all platforms that support
12556 # interlibrary dependencies.
12557 # 'none' -- dependencies not supported.
12558 # 'unknown' -- same as none, but documents that we really don't know.
12559 # 'pass_all' -- all dependencies passed with no checks.
12560 # 'test_compile' -- check by making test program.
12561 # 'file_magic [[regex]]' -- check by looking for files in library path
12562 # that responds to the $file_magic_cmd with a given extended regex.
12563 # If you have 'file' or equivalent on your system and you're not sure
12564 # whether 'pass_all' will *always* work, you probably want this one.
12565
12566 case $host_os in
12567 aix[4-9]*)
12568 lt_cv_deplibs_check_method=pass_all
12569 ;;
12570
12571 beos*)
12572 lt_cv_deplibs_check_method=pass_all
12573 ;;
12574
12575 bsdi[45]*)
12576 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12577 lt_cv_file_magic_cmd='$FILECMD -L'
12578 lt_cv_file_magic_test_file=/shlib/libc.so
12579 ;;
12580
12581 cygwin*)
12582 # func_win32_libid is a shell function defined in ltmain.sh
12583 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12584 lt_cv_file_magic_cmd='func_win32_libid'
12585 ;;
12586
12587 mingw* | pw32*)
12588 # Base MSYS/MinGW do not provide the 'file' command needed by
12589 # func_win32_libid shell function, so use a weaker test based on 'objdump',
12590 # unless we find 'file', for example because we are cross-compiling.
12591 if ( file / ) >/dev/null 2>&1; then
12592 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12593 lt_cv_file_magic_cmd='func_win32_libid'
12594 else
12595 # Keep this pattern in sync with the one in func_win32_libid.
12596 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
12597 lt_cv_file_magic_cmd='$OBJDUMP -f'
12598 fi
12599 ;;
12600
12601 cegcc*)
12602 # use the weaker test based on 'objdump'. See mingw*.
12603 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
12604 lt_cv_file_magic_cmd='$OBJDUMP -f'
12605 ;;
12606
12607 darwin* | rhapsody*)
12608 lt_cv_deplibs_check_method=pass_all
12609 ;;
12610
12611 freebsd* | dragonfly* | midnightbsd*)
12612 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12613 case $host_cpu in
12614 i*86 )
12615 # Not sure whether the presence of OpenBSD here was a mistake.
12616 # Let's accept both of them until this is cleared up.
12617 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12618 lt_cv_file_magic_cmd=$FILECMD
12619 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12620 ;;
12621 esac
12622 else
12623 lt_cv_deplibs_check_method=pass_all
12624 fi
12625 ;;
12626
12627 haiku*)
12628 lt_cv_deplibs_check_method=pass_all
12629 ;;
12630
12631 hpux10.20* | hpux11*)
12632 lt_cv_file_magic_cmd=$FILECMD
12633 case $host_cpu in
12634 ia64*)
12635 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12636 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12637 ;;
12638 hppa*64*)
12639 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]'
12640 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12641 ;;
12642 *)
12643 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
12644 lt_cv_file_magic_test_file=/usr/lib/libc.sl
12645 ;;
12646 esac
12647 ;;
12648
12649 interix[3-9]*)
12650 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12651 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12652 ;;
12653
12654 irix5* | irix6* | nonstopux*)
12655 case $LD in
12656 *-32|*"-32 ") libmagic=32-bit;;
12657 *-n32|*"-n32 ") libmagic=N32;;
12658 *-64|*"-64 ") libmagic=64-bit;;
12659 *) libmagic=never-match;;
12660 esac
12661 lt_cv_deplibs_check_method=pass_all
12662 ;;
12663
12664 # This must be glibc/ELF.
12665 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12666 lt_cv_deplibs_check_method=pass_all
12667 ;;
12668
12669 netbsd*)
12670 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12671 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12672 else
12673 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12674 fi
12675 ;;
12676
12677 newos6*)
12678 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12679 lt_cv_file_magic_cmd=$FILECMD
12680 lt_cv_file_magic_test_file=/usr/lib/libnls.so
12681 ;;
12682
12683 *nto* | *qnx*)
12684 lt_cv_deplibs_check_method=pass_all
12685 ;;
12686
12687 openbsd* | bitrig*)
12688 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12689 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12690 else
12691 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12692 fi
12693 ;;
12694
12695 osf3* | osf4* | osf5*)
12696 lt_cv_deplibs_check_method=pass_all
12697 ;;
12698
12699 rdos*)
12700 lt_cv_deplibs_check_method=pass_all
12701 ;;
12702
12703 solaris*)
12704 lt_cv_deplibs_check_method=pass_all
12705 ;;
12706
12707 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12708 lt_cv_deplibs_check_method=pass_all
12709 ;;
12710
12711 sysv4 | sysv4.3*)
12712 case $host_vendor in
12713 motorola)
12714 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]'
12715 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12716 ;;
12717 ncr)
12718 lt_cv_deplibs_check_method=pass_all
12719 ;;
12720 sequent)
12721 lt_cv_file_magic_cmd='/bin/file'
12722 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12723 ;;
12724 sni)
12725 lt_cv_file_magic_cmd='/bin/file'
12726 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12727 lt_cv_file_magic_test_file=/lib/libc.so
12728 ;;
12729 siemens)
12730 lt_cv_deplibs_check_method=pass_all
12731 ;;
12732 pc)
12733 lt_cv_deplibs_check_method=pass_all
12734 ;;
12735 esac
12736 ;;
12737
12738 tpf*)
12739 lt_cv_deplibs_check_method=pass_all
12740 ;;
12741 os2*)
12742 lt_cv_deplibs_check_method=pass_all
12743 ;;
12744 esac
12745
12746 fi
12747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
12748 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
12749
12750 file_magic_glob=
12751 want_nocaseglob=no
12752 if test "$build" = "$host"; then
12753 case $host_os in
12754 mingw* | pw32*)
12755 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
12756 want_nocaseglob=yes
12757 else
12758 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
12759 fi
12760 ;;
12761 esac
12762 fi
12763
12764 file_magic_cmd=$lt_cv_file_magic_cmd
12765 deplibs_check_method=$lt_cv_deplibs_check_method
12766 test -z "$deplibs_check_method" && deplibs_check_method=unknown
12767
12768
12769
12770
12771
12772
12773
12774
12775
12776
12777
12778
12779
12780
12781
12782
12783
12784
12785
12786
12787
12788
12789 if test -n "$ac_tool_prefix"; then
12790 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
12791 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
12792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12793 printf %s "checking for $ac_word... " >&6; }
12794 if test ${ac_cv_prog_DLLTOOL+y}
12795 then :
12796 printf %s "(cached) " >&6
12797 else $as_nop
12798 if test -n "$DLLTOOL"; then
12799 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
12800 else
12801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12802 for as_dir in $PATH
12803 do
12804 IFS=$as_save_IFS
12805 case $as_dir in #(((
12806 '') as_dir=./ ;;
12807 */) ;;
12808 *) as_dir=$as_dir/ ;;
12809 esac
12810 for ac_exec_ext in '' $ac_executable_extensions; do
12811 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12812 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
12813 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12814 break 2
12815 fi
12816 done
12817 done
12818 IFS=$as_save_IFS
12819
12820 fi
12821 fi
12822 DLLTOOL=$ac_cv_prog_DLLTOOL
12823 if test -n "$DLLTOOL"; then
12824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
12825 printf "%s\n" "$DLLTOOL" >&6; }
12826 else
12827 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12828 printf "%s\n" "no" >&6; }
12829 fi
12830
12831
12832 fi
12833 if test -z "$ac_cv_prog_DLLTOOL"; then
12834 ac_ct_DLLTOOL=$DLLTOOL
12835 # Extract the first word of "dlltool", so it can be a program name with args.
12836 set dummy dlltool; ac_word=$2
12837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12838 printf %s "checking for $ac_word... " >&6; }
12839 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
12840 then :
12841 printf %s "(cached) " >&6
12842 else $as_nop
12843 if test -n "$ac_ct_DLLTOOL"; then
12844 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
12845 else
12846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12847 for as_dir in $PATH
12848 do
12849 IFS=$as_save_IFS
12850 case $as_dir in #(((
12851 '') as_dir=./ ;;
12852 */) ;;
12853 *) as_dir=$as_dir/ ;;
12854 esac
12855 for ac_exec_ext in '' $ac_executable_extensions; do
12856 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12857 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
12858 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12859 break 2
12860 fi
12861 done
12862 done
12863 IFS=$as_save_IFS
12864
12865 fi
12866 fi
12867 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
12868 if test -n "$ac_ct_DLLTOOL"; then
12869 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
12870 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
12871 else
12872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12873 printf "%s\n" "no" >&6; }
12874 fi
12875
12876 if test "x$ac_ct_DLLTOOL" = x; then
12877 DLLTOOL="false"
12878 else
12879 case $cross_compiling:$ac_tool_warned in
12880 yes:)
12881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12882 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12883 ac_tool_warned=yes ;;
12884 esac
12885 DLLTOOL=$ac_ct_DLLTOOL
12886 fi
12887 else
12888 DLLTOOL="$ac_cv_prog_DLLTOOL"
12889 fi
12890
12891 test -z "$DLLTOOL" && DLLTOOL=dlltool
12892
12893
12894
12895
12896
12897
12898
12899
12900
12901
12902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
12903 printf %s "checking how to associate runtime and link libraries... " >&6; }
12904 if test ${lt_cv_sharedlib_from_linklib_cmd+y}
12905 then :
12906 printf %s "(cached) " >&6
12907 else $as_nop
12908 lt_cv_sharedlib_from_linklib_cmd='unknown'
12909
12910 case $host_os in
12911 cygwin* | mingw* | pw32* | cegcc*)
12912 # two different shell functions defined in ltmain.sh;
12913 # decide which one to use based on capabilities of $DLLTOOL
12914 case `$DLLTOOL --help 2>&1` in
12915 *--identify-strict*)
12916 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
12917 ;;
12918 *)
12919 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
12920 ;;
12921 esac
12922 ;;
12923 *)
12924 # fallback: assume linklib IS sharedlib
12925 lt_cv_sharedlib_from_linklib_cmd=$ECHO
12926 ;;
12927 esac
12928
12929 fi
12930 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
12931 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
12932 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
12933 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
12934
12935
12936
12937
12938
12939
12940
12941 if test -n "$ac_tool_prefix"; then
12942 for ac_prog in ar
12943 do
12944 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12945 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12947 printf %s "checking for $ac_word... " >&6; }
12948 if test ${ac_cv_prog_AR+y}
12949 then :
12950 printf %s "(cached) " >&6
12951 else $as_nop
12952 if test -n "$AR"; then
12953 ac_cv_prog_AR="$AR" # Let the user override the test.
12954 else
12955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12956 for as_dir in $PATH
12957 do
12958 IFS=$as_save_IFS
12959 case $as_dir in #(((
12960 '') as_dir=./ ;;
12961 */) ;;
12962 *) as_dir=$as_dir/ ;;
12963 esac
12964 for ac_exec_ext in '' $ac_executable_extensions; do
12965 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12966 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
12967 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12968 break 2
12969 fi
12970 done
12971 done
12972 IFS=$as_save_IFS
12973
12974 fi
12975 fi
12976 AR=$ac_cv_prog_AR
12977 if test -n "$AR"; then
12978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
12979 printf "%s\n" "$AR" >&6; }
12980 else
12981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12982 printf "%s\n" "no" >&6; }
12983 fi
12984
12985
12986 test -n "$AR" && break
12987 done
12988 fi
12989 if test -z "$AR"; then
12990 ac_ct_AR=$AR
12991 for ac_prog in ar
12992 do
12993 # Extract the first word of "$ac_prog", so it can be a program name with args.
12994 set dummy $ac_prog; ac_word=$2
12995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12996 printf %s "checking for $ac_word... " >&6; }
12997 if test ${ac_cv_prog_ac_ct_AR+y}
12998 then :
12999 printf %s "(cached) " >&6
13000 else $as_nop
13001 if test -n "$ac_ct_AR"; then
13002 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13003 else
13004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13005 for as_dir in $PATH
13006 do
13007 IFS=$as_save_IFS
13008 case $as_dir in #(((
13009 '') as_dir=./ ;;
13010 */) ;;
13011 *) as_dir=$as_dir/ ;;
13012 esac
13013 for ac_exec_ext in '' $ac_executable_extensions; do
13014 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13015 ac_cv_prog_ac_ct_AR="$ac_prog"
13016 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13017 break 2
13018 fi
13019 done
13020 done
13021 IFS=$as_save_IFS
13022
13023 fi
13024 fi
13025 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13026 if test -n "$ac_ct_AR"; then
13027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
13028 printf "%s\n" "$ac_ct_AR" >&6; }
13029 else
13030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13031 printf "%s\n" "no" >&6; }
13032 fi
13033
13034
13035 test -n "$ac_ct_AR" && break
13036 done
13037
13038 if test "x$ac_ct_AR" = x; then
13039 AR="false"
13040 else
13041 case $cross_compiling:$ac_tool_warned in
13042 yes:)
13043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13044 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13045 ac_tool_warned=yes ;;
13046 esac
13047 AR=$ac_ct_AR
13048 fi
13049 fi
13050
13051 : ${AR=ar}
13052
13053
13054
13055
13056
13057
13058 # Use ARFLAGS variable as AR's operation code to sync the variable naming with
13059 # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
13060 # higher priority because thats what people were doing historically (setting
13061 # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS
13062 # variable obsoleted/removed.
13063
13064 test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
13065 lt_ar_flags=$AR_FLAGS
13066
13067
13068
13069
13070
13071
13072 # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override
13073 # by AR_FLAGS because that was never working and AR_FLAGS is about to die.
13074
13075
13076
13077
13078
13079
13080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
13081 printf %s "checking for archiver @FILE support... " >&6; }
13082 if test ${lt_cv_ar_at_file+y}
13083 then :
13084 printf %s "(cached) " >&6
13085 else $as_nop
13086 lt_cv_ar_at_file=no
13087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13088 /* end confdefs.h. */
13089
13090 int
13091 main (void)
13092 {
13093
13094 ;
13095 return 0;
13096 }
13097 _ACEOF
13098 if ac_fn_c_try_compile "$LINENO"
13099 then :
13100 echo conftest.$ac_objext > conftest.lst
13101 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
13102 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
13103 (eval $lt_ar_try) 2>&5
13104 ac_status=$?
13105 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13106 test $ac_status = 0; }
13107 if test 0 -eq "$ac_status"; then
13108 # Ensure the archiver fails upon bogus file names.
13109 rm -f conftest.$ac_objext libconftest.a
13110 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
13111 (eval $lt_ar_try) 2>&5
13112 ac_status=$?
13113 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13114 test $ac_status = 0; }
13115 if test 0 -ne "$ac_status"; then
13116 lt_cv_ar_at_file=@
13117 fi
13118 fi
13119 rm -f conftest.* libconftest.a
13120
13121 fi
13122 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13123
13124 fi
13125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
13126 printf "%s\n" "$lt_cv_ar_at_file" >&6; }
13127
13128 if test no = "$lt_cv_ar_at_file"; then
13129 archiver_list_spec=
13130 else
13131 archiver_list_spec=$lt_cv_ar_at_file
13132 fi
13133
13134
13135
13136
13137
13138
13139
13140 if test -n "$ac_tool_prefix"; then
13141 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13142 set dummy ${ac_tool_prefix}strip; ac_word=$2
13143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13144 printf %s "checking for $ac_word... " >&6; }
13145 if test ${ac_cv_prog_STRIP+y}
13146 then :
13147 printf %s "(cached) " >&6
13148 else $as_nop
13149 if test -n "$STRIP"; then
13150 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13151 else
13152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13153 for as_dir in $PATH
13154 do
13155 IFS=$as_save_IFS
13156 case $as_dir in #(((
13157 '') as_dir=./ ;;
13158 */) ;;
13159 *) as_dir=$as_dir/ ;;
13160 esac
13161 for ac_exec_ext in '' $ac_executable_extensions; do
13162 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13163 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
13164 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13165 break 2
13166 fi
13167 done
13168 done
13169 IFS=$as_save_IFS
13170
13171 fi
13172 fi
13173 STRIP=$ac_cv_prog_STRIP
13174 if test -n "$STRIP"; then
13175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
13176 printf "%s\n" "$STRIP" >&6; }
13177 else
13178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13179 printf "%s\n" "no" >&6; }
13180 fi
13181
13182
13183 fi
13184 if test -z "$ac_cv_prog_STRIP"; then
13185 ac_ct_STRIP=$STRIP
13186 # Extract the first word of "strip", so it can be a program name with args.
13187 set dummy strip; ac_word=$2
13188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13189 printf %s "checking for $ac_word... " >&6; }
13190 if test ${ac_cv_prog_ac_ct_STRIP+y}
13191 then :
13192 printf %s "(cached) " >&6
13193 else $as_nop
13194 if test -n "$ac_ct_STRIP"; then
13195 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13196 else
13197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13198 for as_dir in $PATH
13199 do
13200 IFS=$as_save_IFS
13201 case $as_dir in #(((
13202 '') as_dir=./ ;;
13203 */) ;;
13204 *) as_dir=$as_dir/ ;;
13205 esac
13206 for ac_exec_ext in '' $ac_executable_extensions; do
13207 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13208 ac_cv_prog_ac_ct_STRIP="strip"
13209 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13210 break 2
13211 fi
13212 done
13213 done
13214 IFS=$as_save_IFS
13215
13216 fi
13217 fi
13218 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13219 if test -n "$ac_ct_STRIP"; then
13220 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
13221 printf "%s\n" "$ac_ct_STRIP" >&6; }
13222 else
13223 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13224 printf "%s\n" "no" >&6; }
13225 fi
13226
13227 if test "x$ac_ct_STRIP" = x; then
13228 STRIP=":"
13229 else
13230 case $cross_compiling:$ac_tool_warned in
13231 yes:)
13232 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13233 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13234 ac_tool_warned=yes ;;
13235 esac
13236 STRIP=$ac_ct_STRIP
13237 fi
13238 else
13239 STRIP="$ac_cv_prog_STRIP"
13240 fi
13241
13242 test -z "$STRIP" && STRIP=:
13243
13244
13245
13246
13247
13248
13249 if test -n "$ac_tool_prefix"; then
13250 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13251 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13252 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13253 printf %s "checking for $ac_word... " >&6; }
13254 if test ${ac_cv_prog_RANLIB+y}
13255 then :
13256 printf %s "(cached) " >&6
13257 else $as_nop
13258 if test -n "$RANLIB"; then
13259 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13260 else
13261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13262 for as_dir in $PATH
13263 do
13264 IFS=$as_save_IFS
13265 case $as_dir in #(((
13266 '') as_dir=./ ;;
13267 */) ;;
13268 *) as_dir=$as_dir/ ;;
13269 esac
13270 for ac_exec_ext in '' $ac_executable_extensions; do
13271 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13272 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13273 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13274 break 2
13275 fi
13276 done
13277 done
13278 IFS=$as_save_IFS
13279
13280 fi
13281 fi
13282 RANLIB=$ac_cv_prog_RANLIB
13283 if test -n "$RANLIB"; then
13284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
13285 printf "%s\n" "$RANLIB" >&6; }
13286 else
13287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13288 printf "%s\n" "no" >&6; }
13289 fi
13290
13291
13292 fi
13293 if test -z "$ac_cv_prog_RANLIB"; then
13294 ac_ct_RANLIB=$RANLIB
13295 # Extract the first word of "ranlib", so it can be a program name with args.
13296 set dummy ranlib; ac_word=$2
13297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13298 printf %s "checking for $ac_word... " >&6; }
13299 if test ${ac_cv_prog_ac_ct_RANLIB+y}
13300 then :
13301 printf %s "(cached) " >&6
13302 else $as_nop
13303 if test -n "$ac_ct_RANLIB"; then
13304 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13305 else
13306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13307 for as_dir in $PATH
13308 do
13309 IFS=$as_save_IFS
13310 case $as_dir in #(((
13311 '') as_dir=./ ;;
13312 */) ;;
13313 *) as_dir=$as_dir/ ;;
13314 esac
13315 for ac_exec_ext in '' $ac_executable_extensions; do
13316 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13317 ac_cv_prog_ac_ct_RANLIB="ranlib"
13318 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13319 break 2
13320 fi
13321 done
13322 done
13323 IFS=$as_save_IFS
13324
13325 fi
13326 fi
13327 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13328 if test -n "$ac_ct_RANLIB"; then
13329 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
13330 printf "%s\n" "$ac_ct_RANLIB" >&6; }
13331 else
13332 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13333 printf "%s\n" "no" >&6; }
13334 fi
13335
13336 if test "x$ac_ct_RANLIB" = x; then
13337 RANLIB=":"
13338 else
13339 case $cross_compiling:$ac_tool_warned in
13340 yes:)
13341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13342 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13343 ac_tool_warned=yes ;;
13344 esac
13345 RANLIB=$ac_ct_RANLIB
13346 fi
13347 else
13348 RANLIB="$ac_cv_prog_RANLIB"
13349 fi
13350
13351 test -z "$RANLIB" && RANLIB=:
13352
13353
13354
13355
13356
13357
13358 # Determine commands to create old-style static archives.
13359 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
13360 old_postinstall_cmds='chmod 644 $oldlib'
13361 old_postuninstall_cmds=
13362
13363 if test -n "$RANLIB"; then
13364 case $host_os in
13365 bitrig* | openbsd*)
13366 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
13367 ;;
13368 *)
13369 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
13370 ;;
13371 esac
13372 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
13373 fi
13374
13375 case $host_os in
13376 darwin*)
13377 lock_old_archive_extraction=yes ;;
13378 *)
13379 lock_old_archive_extraction=no ;;
13380 esac
13381
13382
13383
13384
13385
13386
13387
13388
13389
13390
13391
13392
13393
13394
13395
13396
13397
13398
13399
13400
13401
13402
13403
13404
13405
13406
13407
13408
13409
13410
13411
13412
13413
13414
13415
13416
13417
13418
13419
13420 # If no C compiler was specified, use CC.
13421 LTCC=${LTCC-"$CC"}
13422
13423 # If no C compiler flags were specified, use CFLAGS.
13424 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13425
13426 # Allow CC to be a program name with arguments.
13427 compiler=$CC
13428
13429
13430 # Check for command to grab the raw symbol name followed by C symbol from nm.
13431 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
13432 printf %s "checking command to parse $NM output from $compiler object... " >&6; }
13433 if test ${lt_cv_sys_global_symbol_pipe+y}
13434 then :
13435 printf %s "(cached) " >&6
13436 else $as_nop
13437
13438 # These are sane defaults that work on at least a few old systems.
13439 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
13440
13441 # Character class describing NM global symbol codes.
13442 symcode='[BCDEGRST]'
13443
13444 # Regexp to match symbols that can be accessed directly from C.
13445 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13446
13447 # Define system-specific variables.
13448 case $host_os in
13449 aix*)
13450 symcode='[BCDT]'
13451 ;;
13452 cygwin* | mingw* | pw32* | cegcc*)
13453 symcode='[ABCDGISTW]'
13454 ;;
13455 hpux*)
13456 if test ia64 = "$host_cpu"; then
13457 symcode='[ABCDEGRST]'
13458 fi
13459 ;;
13460 irix* | nonstopux*)
13461 symcode='[BCDEGRST]'
13462 ;;
13463 osf*)
13464 symcode='[BCDEGQRST]'
13465 ;;
13466 solaris*)
13467 symcode='[BDRT]'
13468 ;;
13469 sco3.2v5*)
13470 symcode='[DT]'
13471 ;;
13472 sysv4.2uw2*)
13473 symcode='[DT]'
13474 ;;
13475 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13476 symcode='[ABDT]'
13477 ;;
13478 sysv4)
13479 symcode='[DFNSTU]'
13480 ;;
13481 esac
13482
13483 # If we're using GNU nm, then use its standard symbol codes.
13484 case `$NM -V 2>&1` in
13485 *GNU* | *'with BFD'*)
13486 symcode='[ABCDGIRSTW]' ;;
13487 esac
13488
13489 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
13490 # Gets list of data symbols to import.
13491 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
13492 # Adjust the below global symbol transforms to fixup imported variables.
13493 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
13494 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
13495 lt_c_name_lib_hook="\
13496 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
13497 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
13498 else
13499 # Disable hooks by default.
13500 lt_cv_sys_global_symbol_to_import=
13501 lt_cdecl_hook=
13502 lt_c_name_hook=
13503 lt_c_name_lib_hook=
13504 fi
13505
13506 # Transform an extracted symbol line into a proper C declaration.
13507 # Some systems (esp. on ia64) link data and code symbols differently,
13508 # so use this general approach.
13509 lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
13510 $lt_cdecl_hook\
13511 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
13512 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
13513
13514 # Transform an extracted symbol line into symbol name and symbol address
13515 lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
13516 $lt_c_name_hook\
13517 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
13518 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
13519
13520 # Transform an extracted symbol line into symbol name with lib prefix and
13521 # symbol address.
13522 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
13523 $lt_c_name_lib_hook\
13524 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
13525 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
13526 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
13527
13528 # Handle CRLF in mingw tool chain
13529 opt_cr=
13530 case $build_os in
13531 mingw*)
13532 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13533 ;;
13534 esac
13535
13536 # Try without a prefix underscore, then with it.
13537 for ac_symprfx in "" "_"; do
13538
13539 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13540 symxfrm="\\1 $ac_symprfx\\2 \\2"
13541
13542 # Write the raw and C identifiers.
13543 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
13544 # Fake it for dumpbin and say T for any non-static function,
13545 # D for any global variable and I for any imported variable.
13546 # Also find C++ and __fastcall symbols from MSVC++ or ICC,
13547 # which start with @ or ?.
13548 lt_cv_sys_global_symbol_pipe="$AWK '"\
13549 " {last_section=section; section=\$ 3};"\
13550 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
13551 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
13552 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
13553 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
13554 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
13555 " \$ 0!~/External *\|/{next};"\
13556 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
13557 " {if(hide[section]) next};"\
13558 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
13559 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
13560 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
13561 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
13562 " ' prfx=^$ac_symprfx"
13563 else
13564 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13565 fi
13566 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
13567
13568 # Check to see that the pipe works correctly.
13569 pipe_works=no
13570
13571 rm -f conftest*
13572 cat > conftest.$ac_ext <<_LT_EOF
13573 #ifdef __cplusplus
13574 extern "C" {
13575 #endif
13576 char nm_test_var;
13577 void nm_test_func(void);
13578 void nm_test_func(void){}
13579 #ifdef __cplusplus
13580 }
13581 #endif
13582 int main(){nm_test_var='a';nm_test_func();return(0);}
13583 _LT_EOF
13584
13585 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13586 (eval $ac_compile) 2>&5
13587 ac_status=$?
13588 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13589 test $ac_status = 0; }; then
13590 # Now try to grab the symbols.
13591 nlist=conftest.nm
13592 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
13593 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
13594 ac_status=$?
13595 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13596 test $ac_status = 0; } && test -s "$nlist"; then
13597 # Try sorting and uniquifying the output.
13598 if sort "$nlist" | uniq > "$nlist"T; then
13599 mv -f "$nlist"T "$nlist"
13600 else
13601 rm -f "$nlist"T
13602 fi
13603
13604 # Make sure that we snagged all the symbols we need.
13605 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
13606 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
13607 cat <<_LT_EOF > conftest.$ac_ext
13608 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
13609 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
13610 /* DATA imports from DLLs on WIN32 can't be const, because runtime
13611 relocations are performed -- see ld's documentation on pseudo-relocs. */
13612 # define LT_DLSYM_CONST
13613 #elif defined __osf__
13614 /* This system does not cope well with relocations in const data. */
13615 # define LT_DLSYM_CONST
13616 #else
13617 # define LT_DLSYM_CONST const
13618 #endif
13619
13620 #ifdef __cplusplus
13621 extern "C" {
13622 #endif
13623
13624 _LT_EOF
13625 # Now generate the symbol file.
13626 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
13627
13628 cat <<_LT_EOF >> conftest.$ac_ext
13629
13630 /* The mapping between symbol names and symbols. */
13631 LT_DLSYM_CONST struct {
13632 const char *name;
13633 void *address;
13634 }
13635 lt__PROGRAM__LTX_preloaded_symbols[] =
13636 {
13637 { "@PROGRAM@", (void *) 0 },
13638 _LT_EOF
13639 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
13640 cat <<\_LT_EOF >> conftest.$ac_ext
13641 {0, (void *) 0}
13642 };
13643
13644 /* This works around a problem in FreeBSD linker */
13645 #ifdef FREEBSD_WORKAROUND
13646 static const void *lt_preloaded_setup() {
13647 return lt__PROGRAM__LTX_preloaded_symbols;
13648 }
13649 #endif
13650
13651 #ifdef __cplusplus
13652 }
13653 #endif
13654 _LT_EOF
13655 # Now try linking the two files.
13656 mv conftest.$ac_objext conftstm.$ac_objext
13657 lt_globsym_save_LIBS=$LIBS
13658 lt_globsym_save_CFLAGS=$CFLAGS
13659 LIBS=conftstm.$ac_objext
13660 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13661 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13662 (eval $ac_link) 2>&5
13663 ac_status=$?
13664 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13665 test $ac_status = 0; } && test -s conftest$ac_exeext; then
13666 pipe_works=yes
13667 fi
13668 LIBS=$lt_globsym_save_LIBS
13669 CFLAGS=$lt_globsym_save_CFLAGS
13670 else
13671 echo "cannot find nm_test_func in $nlist" >&5
13672 fi
13673 else
13674 echo "cannot find nm_test_var in $nlist" >&5
13675 fi
13676 else
13677 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13678 fi
13679 else
13680 echo "$progname: failed program was:" >&5
13681 cat conftest.$ac_ext >&5
13682 fi
13683 rm -rf conftest* conftst*
13684
13685 # Do not use the global_symbol_pipe unless it works.
13686 if test yes = "$pipe_works"; then
13687 break
13688 else
13689 lt_cv_sys_global_symbol_pipe=
13690 fi
13691 done
13692
13693 fi
13694
13695 if test -z "$lt_cv_sys_global_symbol_pipe"; then
13696 lt_cv_sys_global_symbol_to_cdecl=
13697 fi
13698 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
13700 printf "%s\n" "failed" >&6; }
13701 else
13702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
13703 printf "%s\n" "ok" >&6; }
13704 fi
13705
13706 # Response file support.
13707 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
13708 nm_file_list_spec='@'
13709 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
13710 nm_file_list_spec='@'
13711 fi
13712
13713
13714
13715
13716
13717
13718
13719
13720
13721
13722
13723
13724
13725
13726
13727
13728
13729
13730
13731
13732
13733
13734
13735
13736
13737
13738
13739
13740
13741
13742
13743
13744
13745
13746
13747
13748
13749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
13750 printf %s "checking for sysroot... " >&6; }
13751
13752 # Check whether --with-sysroot was given.
13753 if test ${with_sysroot+y}
13754 then :
13755 withval=$with_sysroot;
13756 else $as_nop
13757 with_sysroot=no
13758 fi
13759
13760
13761 lt_sysroot=
13762 case $with_sysroot in #(
13763 yes)
13764 if test yes = "$GCC"; then
13765 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
13766 fi
13767 ;; #(
13768 /*)
13769 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
13770 ;; #(
13771 no|'')
13772 ;; #(
13773 *)
13774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
13775 printf "%s\n" "$with_sysroot" >&6; }
13776 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
13777 ;;
13778 esac
13779
13780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
13781 printf "%s\n" "${lt_sysroot:-no}" >&6; }
13782
13783
13784
13785
13786
13787 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
13788 printf %s "checking for a working dd... " >&6; }
13789 if test ${ac_cv_path_lt_DD+y}
13790 then :
13791 printf %s "(cached) " >&6
13792 else $as_nop
13793 printf 0123456789abcdef0123456789abcdef >conftest.i
13794 cat conftest.i conftest.i >conftest2.i
13795 : ${lt_DD:=$DD}
13796 if test -z "$lt_DD"; then
13797 ac_path_lt_DD_found=false
13798 # Loop through the user's path and test for each of PROGNAME-LIST
13799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13800 for as_dir in $PATH
13801 do
13802 IFS=$as_save_IFS
13803 case $as_dir in #(((
13804 '') as_dir=./ ;;
13805 */) ;;
13806 *) as_dir=$as_dir/ ;;
13807 esac
13808 for ac_prog in dd
13809 do
13810 for ac_exec_ext in '' $ac_executable_extensions; do
13811 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
13812 as_fn_executable_p "$ac_path_lt_DD" || continue
13813 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
13814 cmp -s conftest.i conftest.out \
13815 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
13816 fi
13817 $ac_path_lt_DD_found && break 3
13818 done
13819 done
13820 done
13821 IFS=$as_save_IFS
13822 if test -z "$ac_cv_path_lt_DD"; then
13823 :
13824 fi
13825 else
13826 ac_cv_path_lt_DD=$lt_DD
13827 fi
13828
13829 rm -f conftest.i conftest2.i conftest.out
13830 fi
13831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
13832 printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
13833
13834
13835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
13836 printf %s "checking how to truncate binary pipes... " >&6; }
13837 if test ${lt_cv_truncate_bin+y}
13838 then :
13839 printf %s "(cached) " >&6
13840 else $as_nop
13841 printf 0123456789abcdef0123456789abcdef >conftest.i
13842 cat conftest.i conftest.i >conftest2.i
13843 lt_cv_truncate_bin=
13844 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
13845 cmp -s conftest.i conftest.out \
13846 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
13847 fi
13848 rm -f conftest.i conftest2.i conftest.out
13849 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
13850 fi
13851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
13852 printf "%s\n" "$lt_cv_truncate_bin" >&6; }
13853
13854
13855
13856
13857
13858
13859
13860 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
13861 func_cc_basename ()
13862 {
13863 for cc_temp in $*""; do
13864 case $cc_temp in
13865 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13866 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13867 \-*) ;;
13868 *) break;;
13869 esac
13870 done
13871 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13872 }
13873
13874 # Check whether --enable-libtool-lock was given.
13875 if test ${enable_libtool_lock+y}
13876 then :
13877 enableval=$enable_libtool_lock;
13878 fi
13879
13880 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
13881
13882 # Some flags need to be propagated to the compiler or linker for good
13883 # libtool support.
13884 case $host in
13885 ia64-*-hpux*)
13886 # Find out what ABI is being produced by ac_compile, and set mode
13887 # options accordingly.
13888 echo 'int i;' > conftest.$ac_ext
13889 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13890 (eval $ac_compile) 2>&5
13891 ac_status=$?
13892 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13893 test $ac_status = 0; }; then
13894 case `$FILECMD conftest.$ac_objext` in
13895 *ELF-32*)
13896 HPUX_IA64_MODE=32
13897 ;;
13898 *ELF-64*)
13899 HPUX_IA64_MODE=64
13900 ;;
13901 esac
13902 fi
13903 rm -rf conftest*
13904 ;;
13905 *-*-irix6*)
13906 # Find out what ABI is being produced by ac_compile, and set linker
13907 # options accordingly.
13908 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
13909 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13910 (eval $ac_compile) 2>&5
13911 ac_status=$?
13912 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13913 test $ac_status = 0; }; then
13914 if test yes = "$lt_cv_prog_gnu_ld"; then
13915 case `$FILECMD conftest.$ac_objext` in
13916 *32-bit*)
13917 LD="${LD-ld} -melf32bsmip"
13918 ;;
13919 *N32*)
13920 LD="${LD-ld} -melf32bmipn32"
13921 ;;
13922 *64-bit*)
13923 LD="${LD-ld} -melf64bmip"
13924 ;;
13925 esac
13926 else
13927 case `$FILECMD conftest.$ac_objext` in
13928 *32-bit*)
13929 LD="${LD-ld} -32"
13930 ;;
13931 *N32*)
13932 LD="${LD-ld} -n32"
13933 ;;
13934 *64-bit*)
13935 LD="${LD-ld} -64"
13936 ;;
13937 esac
13938 fi
13939 fi
13940 rm -rf conftest*
13941 ;;
13942
13943 mips64*-*linux*)
13944 # Find out what ABI is being produced by ac_compile, and set linker
13945 # options accordingly.
13946 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
13947 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13948 (eval $ac_compile) 2>&5
13949 ac_status=$?
13950 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13951 test $ac_status = 0; }; then
13952 emul=elf
13953 case `$FILECMD conftest.$ac_objext` in
13954 *32-bit*)
13955 emul="${emul}32"
13956 ;;
13957 *64-bit*)
13958 emul="${emul}64"
13959 ;;
13960 esac
13961 case `$FILECMD conftest.$ac_objext` in
13962 *MSB*)
13963 emul="${emul}btsmip"
13964 ;;
13965 *LSB*)
13966 emul="${emul}ltsmip"
13967 ;;
13968 esac
13969 case `$FILECMD conftest.$ac_objext` in
13970 *N32*)
13971 emul="${emul}n32"
13972 ;;
13973 esac
13974 LD="${LD-ld} -m $emul"
13975 fi
13976 rm -rf conftest*
13977 ;;
13978
13979 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
13980 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
13981 # Find out what ABI is being produced by ac_compile, and set linker
13982 # options accordingly. Note that the listed cases only cover the
13983 # situations where additional linker options are needed (such as when
13984 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
13985 # vice versa); the common cases where no linker options are needed do
13986 # not appear in the list.
13987 echo 'int i;' > conftest.$ac_ext
13988 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13989 (eval $ac_compile) 2>&5
13990 ac_status=$?
13991 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13992 test $ac_status = 0; }; then
13993 case `$FILECMD conftest.o` in
13994 *32-bit*)
13995 case $host in
13996 x86_64-*kfreebsd*-gnu)
13997 LD="${LD-ld} -m elf_i386_fbsd"
13998 ;;
13999 x86_64-*linux*)
14000 case `$FILECMD conftest.o` in
14001 *x86-64*)
14002 LD="${LD-ld} -m elf32_x86_64"
14003 ;;
14004 *)
14005 LD="${LD-ld} -m elf_i386"
14006 ;;
14007 esac
14008 ;;
14009 powerpc64le-*linux*)
14010 LD="${LD-ld} -m elf32lppclinux"
14011 ;;
14012 powerpc64-*linux*)
14013 LD="${LD-ld} -m elf32ppclinux"
14014 ;;
14015 s390x-*linux*)
14016 LD="${LD-ld} -m elf_s390"
14017 ;;
14018 sparc64-*linux*)
14019 LD="${LD-ld} -m elf32_sparc"
14020 ;;
14021 esac
14022 ;;
14023 *64-bit*)
14024 case $host in
14025 x86_64-*kfreebsd*-gnu)
14026 LD="${LD-ld} -m elf_x86_64_fbsd"
14027 ;;
14028 x86_64-*linux*)
14029 LD="${LD-ld} -m elf_x86_64"
14030 ;;
14031 powerpcle-*linux*)
14032 LD="${LD-ld} -m elf64lppc"
14033 ;;
14034 powerpc-*linux*)
14035 LD="${LD-ld} -m elf64ppc"
14036 ;;
14037 s390*-*linux*|s390*-*tpf*)
14038 LD="${LD-ld} -m elf64_s390"
14039 ;;
14040 sparc*-*linux*)
14041 LD="${LD-ld} -m elf64_sparc"
14042 ;;
14043 esac
14044 ;;
14045 esac
14046 fi
14047 rm -rf conftest*
14048 ;;
14049
14050 *-*-sco3.2v5*)
14051 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
14052 SAVE_CFLAGS=$CFLAGS
14053 CFLAGS="$CFLAGS -belf"
14054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
14055 printf %s "checking whether the C compiler needs -belf... " >&6; }
14056 if test ${lt_cv_cc_needs_belf+y}
14057 then :
14058 printf %s "(cached) " >&6
14059 else $as_nop
14060 ac_ext=c
14061 ac_cpp='$CPP $CPPFLAGS'
14062 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14063 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14064 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14065
14066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14067 /* end confdefs.h. */
14068
14069 int
14070 main (void)
14071 {
14072
14073 ;
14074 return 0;
14075 }
14076 _ACEOF
14077 if ac_fn_c_try_link "$LINENO"
14078 then :
14079 lt_cv_cc_needs_belf=yes
14080 else $as_nop
14081 lt_cv_cc_needs_belf=no
14082 fi
14083 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14084 conftest$ac_exeext conftest.$ac_ext
14085 ac_ext=c
14086 ac_cpp='$CPP $CPPFLAGS'
14087 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14088 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14089 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14090
14091 fi
14092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
14093 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
14094 if test yes != "$lt_cv_cc_needs_belf"; then
14095 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
14096 CFLAGS=$SAVE_CFLAGS
14097 fi
14098 ;;
14099 *-*solaris*)
14100 # Find out what ABI is being produced by ac_compile, and set linker
14101 # options accordingly.
14102 echo 'int i;' > conftest.$ac_ext
14103 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14104 (eval $ac_compile) 2>&5
14105 ac_status=$?
14106 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14107 test $ac_status = 0; }; then
14108 case `$FILECMD conftest.o` in
14109 *64-bit*)
14110 case $lt_cv_prog_gnu_ld in
14111 yes*)
14112 case $host in
14113 i?86-*-solaris*|x86_64-*-solaris*)
14114 LD="${LD-ld} -m elf_x86_64"
14115 ;;
14116 sparc*-*-solaris*)
14117 LD="${LD-ld} -m elf64_sparc"
14118 ;;
14119 esac
14120 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
14121 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
14122 LD=${LD-ld}_sol2
14123 fi
14124 ;;
14125 *)
14126 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
14127 LD="${LD-ld} -64"
14128 fi
14129 ;;
14130 esac
14131 ;;
14132 esac
14133 fi
14134 rm -rf conftest*
14135 ;;
14136 esac
14137
14138 need_locks=$enable_libtool_lock
14139
14140 if test -n "$ac_tool_prefix"; then
14141 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
14142 set dummy ${ac_tool_prefix}mt; ac_word=$2
14143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14144 printf %s "checking for $ac_word... " >&6; }
14145 if test ${ac_cv_prog_MANIFEST_TOOL+y}
14146 then :
14147 printf %s "(cached) " >&6
14148 else $as_nop
14149 if test -n "$MANIFEST_TOOL"; then
14150 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
14151 else
14152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14153 for as_dir in $PATH
14154 do
14155 IFS=$as_save_IFS
14156 case $as_dir in #(((
14157 '') as_dir=./ ;;
14158 */) ;;
14159 *) as_dir=$as_dir/ ;;
14160 esac
14161 for ac_exec_ext in '' $ac_executable_extensions; do
14162 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14163 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
14164 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14165 break 2
14166 fi
14167 done
14168 done
14169 IFS=$as_save_IFS
14170
14171 fi
14172 fi
14173 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
14174 if test -n "$MANIFEST_TOOL"; then
14175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
14176 printf "%s\n" "$MANIFEST_TOOL" >&6; }
14177 else
14178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14179 printf "%s\n" "no" >&6; }
14180 fi
14181
14182
14183 fi
14184 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
14185 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
14186 # Extract the first word of "mt", so it can be a program name with args.
14187 set dummy mt; ac_word=$2
14188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14189 printf %s "checking for $ac_word... " >&6; }
14190 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
14191 then :
14192 printf %s "(cached) " >&6
14193 else $as_nop
14194 if test -n "$ac_ct_MANIFEST_TOOL"; then
14195 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
14196 else
14197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14198 for as_dir in $PATH
14199 do
14200 IFS=$as_save_IFS
14201 case $as_dir in #(((
14202 '') as_dir=./ ;;
14203 */) ;;
14204 *) as_dir=$as_dir/ ;;
14205 esac
14206 for ac_exec_ext in '' $ac_executable_extensions; do
14207 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14208 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
14209 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14210 break 2
14211 fi
14212 done
14213 done
14214 IFS=$as_save_IFS
14215
14216 fi
14217 fi
14218 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
14219 if test -n "$ac_ct_MANIFEST_TOOL"; then
14220 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
14221 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
14222 else
14223 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14224 printf "%s\n" "no" >&6; }
14225 fi
14226
14227 if test "x$ac_ct_MANIFEST_TOOL" = x; then
14228 MANIFEST_TOOL=":"
14229 else
14230 case $cross_compiling:$ac_tool_warned in
14231 yes:)
14232 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14233 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14234 ac_tool_warned=yes ;;
14235 esac
14236 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
14237 fi
14238 else
14239 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
14240 fi
14241
14242 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
14243 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
14244 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
14245 if test ${lt_cv_path_mainfest_tool+y}
14246 then :
14247 printf %s "(cached) " >&6
14248 else $as_nop
14249 lt_cv_path_mainfest_tool=no
14250 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
14251 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
14252 cat conftest.err >&5
14253 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
14254 lt_cv_path_mainfest_tool=yes
14255 fi
14256 rm -f conftest*
14257 fi
14258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
14259 printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
14260 if test yes != "$lt_cv_path_mainfest_tool"; then
14261 MANIFEST_TOOL=:
14262 fi
14263
14264
14265
14266
14267
14268
14269 case $host_os in
14270 rhapsody* | darwin*)
14271 if test -n "$ac_tool_prefix"; then
14272 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
14273 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
14274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14275 printf %s "checking for $ac_word... " >&6; }
14276 if test ${ac_cv_prog_DSYMUTIL+y}
14277 then :
14278 printf %s "(cached) " >&6
14279 else $as_nop
14280 if test -n "$DSYMUTIL"; then
14281 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
14282 else
14283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14284 for as_dir in $PATH
14285 do
14286 IFS=$as_save_IFS
14287 case $as_dir in #(((
14288 '') as_dir=./ ;;
14289 */) ;;
14290 *) as_dir=$as_dir/ ;;
14291 esac
14292 for ac_exec_ext in '' $ac_executable_extensions; do
14293 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14294 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
14295 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14296 break 2
14297 fi
14298 done
14299 done
14300 IFS=$as_save_IFS
14301
14302 fi
14303 fi
14304 DSYMUTIL=$ac_cv_prog_DSYMUTIL
14305 if test -n "$DSYMUTIL"; then
14306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
14307 printf "%s\n" "$DSYMUTIL" >&6; }
14308 else
14309 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14310 printf "%s\n" "no" >&6; }
14311 fi
14312
14313
14314 fi
14315 if test -z "$ac_cv_prog_DSYMUTIL"; then
14316 ac_ct_DSYMUTIL=$DSYMUTIL
14317 # Extract the first word of "dsymutil", so it can be a program name with args.
14318 set dummy dsymutil; ac_word=$2
14319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14320 printf %s "checking for $ac_word... " >&6; }
14321 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
14322 then :
14323 printf %s "(cached) " >&6
14324 else $as_nop
14325 if test -n "$ac_ct_DSYMUTIL"; then
14326 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
14327 else
14328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14329 for as_dir in $PATH
14330 do
14331 IFS=$as_save_IFS
14332 case $as_dir in #(((
14333 '') as_dir=./ ;;
14334 */) ;;
14335 *) as_dir=$as_dir/ ;;
14336 esac
14337 for ac_exec_ext in '' $ac_executable_extensions; do
14338 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14339 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
14340 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14341 break 2
14342 fi
14343 done
14344 done
14345 IFS=$as_save_IFS
14346
14347 fi
14348 fi
14349 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
14350 if test -n "$ac_ct_DSYMUTIL"; then
14351 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
14352 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
14353 else
14354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14355 printf "%s\n" "no" >&6; }
14356 fi
14357
14358 if test "x$ac_ct_DSYMUTIL" = x; then
14359 DSYMUTIL=":"
14360 else
14361 case $cross_compiling:$ac_tool_warned in
14362 yes:)
14363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14364 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14365 ac_tool_warned=yes ;;
14366 esac
14367 DSYMUTIL=$ac_ct_DSYMUTIL
14368 fi
14369 else
14370 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
14371 fi
14372
14373 if test -n "$ac_tool_prefix"; then
14374 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
14375 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
14376 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14377 printf %s "checking for $ac_word... " >&6; }
14378 if test ${ac_cv_prog_NMEDIT+y}
14379 then :
14380 printf %s "(cached) " >&6
14381 else $as_nop
14382 if test -n "$NMEDIT"; then
14383 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
14384 else
14385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14386 for as_dir in $PATH
14387 do
14388 IFS=$as_save_IFS
14389 case $as_dir in #(((
14390 '') as_dir=./ ;;
14391 */) ;;
14392 *) as_dir=$as_dir/ ;;
14393 esac
14394 for ac_exec_ext in '' $ac_executable_extensions; do
14395 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14396 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
14397 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14398 break 2
14399 fi
14400 done
14401 done
14402 IFS=$as_save_IFS
14403
14404 fi
14405 fi
14406 NMEDIT=$ac_cv_prog_NMEDIT
14407 if test -n "$NMEDIT"; then
14408 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
14409 printf "%s\n" "$NMEDIT" >&6; }
14410 else
14411 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14412 printf "%s\n" "no" >&6; }
14413 fi
14414
14415
14416 fi
14417 if test -z "$ac_cv_prog_NMEDIT"; then
14418 ac_ct_NMEDIT=$NMEDIT
14419 # Extract the first word of "nmedit", so it can be a program name with args.
14420 set dummy nmedit; ac_word=$2
14421 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14422 printf %s "checking for $ac_word... " >&6; }
14423 if test ${ac_cv_prog_ac_ct_NMEDIT+y}
14424 then :
14425 printf %s "(cached) " >&6
14426 else $as_nop
14427 if test -n "$ac_ct_NMEDIT"; then
14428 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
14429 else
14430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14431 for as_dir in $PATH
14432 do
14433 IFS=$as_save_IFS
14434 case $as_dir in #(((
14435 '') as_dir=./ ;;
14436 */) ;;
14437 *) as_dir=$as_dir/ ;;
14438 esac
14439 for ac_exec_ext in '' $ac_executable_extensions; do
14440 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14441 ac_cv_prog_ac_ct_NMEDIT="nmedit"
14442 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14443 break 2
14444 fi
14445 done
14446 done
14447 IFS=$as_save_IFS
14448
14449 fi
14450 fi
14451 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
14452 if test -n "$ac_ct_NMEDIT"; then
14453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
14454 printf "%s\n" "$ac_ct_NMEDIT" >&6; }
14455 else
14456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14457 printf "%s\n" "no" >&6; }
14458 fi
14459
14460 if test "x$ac_ct_NMEDIT" = x; then
14461 NMEDIT=":"
14462 else
14463 case $cross_compiling:$ac_tool_warned in
14464 yes:)
14465 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14466 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14467 ac_tool_warned=yes ;;
14468 esac
14469 NMEDIT=$ac_ct_NMEDIT
14470 fi
14471 else
14472 NMEDIT="$ac_cv_prog_NMEDIT"
14473 fi
14474
14475 if test -n "$ac_tool_prefix"; then
14476 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
14477 set dummy ${ac_tool_prefix}lipo; ac_word=$2
14478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14479 printf %s "checking for $ac_word... " >&6; }
14480 if test ${ac_cv_prog_LIPO+y}
14481 then :
14482 printf %s "(cached) " >&6
14483 else $as_nop
14484 if test -n "$LIPO"; then
14485 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
14486 else
14487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14488 for as_dir in $PATH
14489 do
14490 IFS=$as_save_IFS
14491 case $as_dir in #(((
14492 '') as_dir=./ ;;
14493 */) ;;
14494 *) as_dir=$as_dir/ ;;
14495 esac
14496 for ac_exec_ext in '' $ac_executable_extensions; do
14497 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14498 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
14499 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14500 break 2
14501 fi
14502 done
14503 done
14504 IFS=$as_save_IFS
14505
14506 fi
14507 fi
14508 LIPO=$ac_cv_prog_LIPO
14509 if test -n "$LIPO"; then
14510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
14511 printf "%s\n" "$LIPO" >&6; }
14512 else
14513 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14514 printf "%s\n" "no" >&6; }
14515 fi
14516
14517
14518 fi
14519 if test -z "$ac_cv_prog_LIPO"; then
14520 ac_ct_LIPO=$LIPO
14521 # Extract the first word of "lipo", so it can be a program name with args.
14522 set dummy lipo; ac_word=$2
14523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14524 printf %s "checking for $ac_word... " >&6; }
14525 if test ${ac_cv_prog_ac_ct_LIPO+y}
14526 then :
14527 printf %s "(cached) " >&6
14528 else $as_nop
14529 if test -n "$ac_ct_LIPO"; then
14530 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
14531 else
14532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14533 for as_dir in $PATH
14534 do
14535 IFS=$as_save_IFS
14536 case $as_dir in #(((
14537 '') as_dir=./ ;;
14538 */) ;;
14539 *) as_dir=$as_dir/ ;;
14540 esac
14541 for ac_exec_ext in '' $ac_executable_extensions; do
14542 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14543 ac_cv_prog_ac_ct_LIPO="lipo"
14544 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14545 break 2
14546 fi
14547 done
14548 done
14549 IFS=$as_save_IFS
14550
14551 fi
14552 fi
14553 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
14554 if test -n "$ac_ct_LIPO"; then
14555 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
14556 printf "%s\n" "$ac_ct_LIPO" >&6; }
14557 else
14558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14559 printf "%s\n" "no" >&6; }
14560 fi
14561
14562 if test "x$ac_ct_LIPO" = x; then
14563 LIPO=":"
14564 else
14565 case $cross_compiling:$ac_tool_warned in
14566 yes:)
14567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14568 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14569 ac_tool_warned=yes ;;
14570 esac
14571 LIPO=$ac_ct_LIPO
14572 fi
14573 else
14574 LIPO="$ac_cv_prog_LIPO"
14575 fi
14576
14577 if test -n "$ac_tool_prefix"; then
14578 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
14579 set dummy ${ac_tool_prefix}otool; ac_word=$2
14580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14581 printf %s "checking for $ac_word... " >&6; }
14582 if test ${ac_cv_prog_OTOOL+y}
14583 then :
14584 printf %s "(cached) " >&6
14585 else $as_nop
14586 if test -n "$OTOOL"; then
14587 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
14588 else
14589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14590 for as_dir in $PATH
14591 do
14592 IFS=$as_save_IFS
14593 case $as_dir in #(((
14594 '') as_dir=./ ;;
14595 */) ;;
14596 *) as_dir=$as_dir/ ;;
14597 esac
14598 for ac_exec_ext in '' $ac_executable_extensions; do
14599 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14600 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
14601 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14602 break 2
14603 fi
14604 done
14605 done
14606 IFS=$as_save_IFS
14607
14608 fi
14609 fi
14610 OTOOL=$ac_cv_prog_OTOOL
14611 if test -n "$OTOOL"; then
14612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
14613 printf "%s\n" "$OTOOL" >&6; }
14614 else
14615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14616 printf "%s\n" "no" >&6; }
14617 fi
14618
14619
14620 fi
14621 if test -z "$ac_cv_prog_OTOOL"; then
14622 ac_ct_OTOOL=$OTOOL
14623 # Extract the first word of "otool", so it can be a program name with args.
14624 set dummy otool; ac_word=$2
14625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14626 printf %s "checking for $ac_word... " >&6; }
14627 if test ${ac_cv_prog_ac_ct_OTOOL+y}
14628 then :
14629 printf %s "(cached) " >&6
14630 else $as_nop
14631 if test -n "$ac_ct_OTOOL"; then
14632 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
14633 else
14634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14635 for as_dir in $PATH
14636 do
14637 IFS=$as_save_IFS
14638 case $as_dir in #(((
14639 '') as_dir=./ ;;
14640 */) ;;
14641 *) as_dir=$as_dir/ ;;
14642 esac
14643 for ac_exec_ext in '' $ac_executable_extensions; do
14644 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14645 ac_cv_prog_ac_ct_OTOOL="otool"
14646 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14647 break 2
14648 fi
14649 done
14650 done
14651 IFS=$as_save_IFS
14652
14653 fi
14654 fi
14655 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
14656 if test -n "$ac_ct_OTOOL"; then
14657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
14658 printf "%s\n" "$ac_ct_OTOOL" >&6; }
14659 else
14660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14661 printf "%s\n" "no" >&6; }
14662 fi
14663
14664 if test "x$ac_ct_OTOOL" = x; then
14665 OTOOL=":"
14666 else
14667 case $cross_compiling:$ac_tool_warned in
14668 yes:)
14669 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14670 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14671 ac_tool_warned=yes ;;
14672 esac
14673 OTOOL=$ac_ct_OTOOL
14674 fi
14675 else
14676 OTOOL="$ac_cv_prog_OTOOL"
14677 fi
14678
14679 if test -n "$ac_tool_prefix"; then
14680 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
14681 set dummy ${ac_tool_prefix}otool64; ac_word=$2
14682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14683 printf %s "checking for $ac_word... " >&6; }
14684 if test ${ac_cv_prog_OTOOL64+y}
14685 then :
14686 printf %s "(cached) " >&6
14687 else $as_nop
14688 if test -n "$OTOOL64"; then
14689 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
14690 else
14691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14692 for as_dir in $PATH
14693 do
14694 IFS=$as_save_IFS
14695 case $as_dir in #(((
14696 '') as_dir=./ ;;
14697 */) ;;
14698 *) as_dir=$as_dir/ ;;
14699 esac
14700 for ac_exec_ext in '' $ac_executable_extensions; do
14701 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14702 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
14703 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14704 break 2
14705 fi
14706 done
14707 done
14708 IFS=$as_save_IFS
14709
14710 fi
14711 fi
14712 OTOOL64=$ac_cv_prog_OTOOL64
14713 if test -n "$OTOOL64"; then
14714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
14715 printf "%s\n" "$OTOOL64" >&6; }
14716 else
14717 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14718 printf "%s\n" "no" >&6; }
14719 fi
14720
14721
14722 fi
14723 if test -z "$ac_cv_prog_OTOOL64"; then
14724 ac_ct_OTOOL64=$OTOOL64
14725 # Extract the first word of "otool64", so it can be a program name with args.
14726 set dummy otool64; ac_word=$2
14727 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14728 printf %s "checking for $ac_word... " >&6; }
14729 if test ${ac_cv_prog_ac_ct_OTOOL64+y}
14730 then :
14731 printf %s "(cached) " >&6
14732 else $as_nop
14733 if test -n "$ac_ct_OTOOL64"; then
14734 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
14735 else
14736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14737 for as_dir in $PATH
14738 do
14739 IFS=$as_save_IFS
14740 case $as_dir in #(((
14741 '') as_dir=./ ;;
14742 */) ;;
14743 *) as_dir=$as_dir/ ;;
14744 esac
14745 for ac_exec_ext in '' $ac_executable_extensions; do
14746 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14747 ac_cv_prog_ac_ct_OTOOL64="otool64"
14748 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14749 break 2
14750 fi
14751 done
14752 done
14753 IFS=$as_save_IFS
14754
14755 fi
14756 fi
14757 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
14758 if test -n "$ac_ct_OTOOL64"; then
14759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
14760 printf "%s\n" "$ac_ct_OTOOL64" >&6; }
14761 else
14762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14763 printf "%s\n" "no" >&6; }
14764 fi
14765
14766 if test "x$ac_ct_OTOOL64" = x; then
14767 OTOOL64=":"
14768 else
14769 case $cross_compiling:$ac_tool_warned in
14770 yes:)
14771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14772 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14773 ac_tool_warned=yes ;;
14774 esac
14775 OTOOL64=$ac_ct_OTOOL64
14776 fi
14777 else
14778 OTOOL64="$ac_cv_prog_OTOOL64"
14779 fi
14780
14781
14782
14783
14784
14785
14786
14787
14788
14789
14790
14791
14792
14793
14794
14795
14796
14797
14798
14799
14800
14801
14802
14803
14804
14805
14806
14807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
14808 printf %s "checking for -single_module linker flag... " >&6; }
14809 if test ${lt_cv_apple_cc_single_mod+y}
14810 then :
14811 printf %s "(cached) " >&6
14812 else $as_nop
14813 lt_cv_apple_cc_single_mod=no
14814 if test -z "$LT_MULTI_MODULE"; then
14815 # By default we will add the -single_module flag. You can override
14816 # by either setting the environment variable LT_MULTI_MODULE
14817 # non-empty at configure time, or by adding -multi_module to the
14818 # link flags.
14819 rm -rf libconftest.dylib*
14820 echo "int foo(void){return 1;}" > conftest.c
14821 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14822 -dynamiclib -Wl,-single_module conftest.c" >&5
14823 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14824 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
14825 _lt_result=$?
14826 # If there is a non-empty error log, and "single_module"
14827 # appears in it, assume the flag caused a linker warning
14828 if test -s conftest.err && $GREP single_module conftest.err; then
14829 cat conftest.err >&5
14830 # Otherwise, if the output was created with a 0 exit code from
14831 # the compiler, it worked.
14832 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
14833 lt_cv_apple_cc_single_mod=yes
14834 else
14835 cat conftest.err >&5
14836 fi
14837 rm -rf libconftest.dylib*
14838 rm -f conftest.*
14839 fi
14840 fi
14841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
14842 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
14843
14844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
14845 printf %s "checking for -exported_symbols_list linker flag... " >&6; }
14846 if test ${lt_cv_ld_exported_symbols_list+y}
14847 then :
14848 printf %s "(cached) " >&6
14849 else $as_nop
14850 lt_cv_ld_exported_symbols_list=no
14851 save_LDFLAGS=$LDFLAGS
14852 echo "_main" > conftest.sym
14853 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
14854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14855 /* end confdefs.h. */
14856
14857 int
14858 main (void)
14859 {
14860
14861 ;
14862 return 0;
14863 }
14864 _ACEOF
14865 if ac_fn_c_try_link "$LINENO"
14866 then :
14867 lt_cv_ld_exported_symbols_list=yes
14868 else $as_nop
14869 lt_cv_ld_exported_symbols_list=no
14870 fi
14871 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14872 conftest$ac_exeext conftest.$ac_ext
14873 LDFLAGS=$save_LDFLAGS
14874
14875 fi
14876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
14877 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
14878
14879 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
14880 printf %s "checking for -force_load linker flag... " >&6; }
14881 if test ${lt_cv_ld_force_load+y}
14882 then :
14883 printf %s "(cached) " >&6
14884 else $as_nop
14885 lt_cv_ld_force_load=no
14886 cat > conftest.c << _LT_EOF
14887 int forced_loaded() { return 2;}
14888 _LT_EOF
14889 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
14890 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
14891 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
14892 $AR $AR_FLAGS libconftest.a conftest.o 2>&5
14893 echo "$RANLIB libconftest.a" >&5
14894 $RANLIB libconftest.a 2>&5
14895 cat > conftest.c << _LT_EOF
14896 int main() { return 0;}
14897 _LT_EOF
14898 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
14899 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
14900 _lt_result=$?
14901 if test -s conftest.err && $GREP force_load conftest.err; then
14902 cat conftest.err >&5
14903 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
14904 lt_cv_ld_force_load=yes
14905 else
14906 cat conftest.err >&5
14907 fi
14908 rm -f conftest.err libconftest.a conftest conftest.c
14909 rm -rf conftest.dSYM
14910
14911 fi
14912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
14913 printf "%s\n" "$lt_cv_ld_force_load" >&6; }
14914 case $host_os in
14915 rhapsody* | darwin1.[012])
14916 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
14917 darwin1.*)
14918 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
14919 darwin*)
14920 case $MACOSX_DEPLOYMENT_TARGET,$host in
14921 10.[012],*|,*powerpc*-darwin[5-8]*)
14922 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
14923 *)
14924 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
14925 esac
14926 ;;
14927 esac
14928 if test yes = "$lt_cv_apple_cc_single_mod"; then
14929 _lt_dar_single_mod='$single_module'
14930 fi
14931 if test yes = "$lt_cv_ld_exported_symbols_list"; then
14932 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
14933 else
14934 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
14935 fi
14936 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
14937 _lt_dsymutil='~$DSYMUTIL $lib || :'
14938 else
14939 _lt_dsymutil=
14940 fi
14941 ;;
14942 esac
14943
14944 # func_munge_path_list VARIABLE PATH
14945 # -----------------------------------
14946 # VARIABLE is name of variable containing _space_ separated list of
14947 # directories to be munged by the contents of PATH, which is string
14948 # having a format:
14949 # "DIR[:DIR]:"
14950 # string "DIR[ DIR]" will be prepended to VARIABLE
14951 # ":DIR[:DIR]"
14952 # string "DIR[ DIR]" will be appended to VARIABLE
14953 # "DIRP[:DIRP]::[DIRA:]DIRA"
14954 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
14955 # "DIRA[ DIRA]" will be appended to VARIABLE
14956 # "DIR[:DIR]"
14957 # VARIABLE will be replaced by "DIR[ DIR]"
14958 func_munge_path_list ()
14959 {
14960 case x$2 in
14961 x)
14962 ;;
14963 *:)
14964 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
14965 ;;
14966 x:*)
14967 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
14968 ;;
14969 *::*)
14970 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
14971 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
14972 ;;
14973 *)
14974 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
14975 ;;
14976 esac
14977 }
14978
14979 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
14980 "
14981 if test "x$ac_cv_header_dlfcn_h" = xyes
14982 then :
14983 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
14984
14985 fi
14986
14987
14988
14989
14990
14991 # Set options
14992
14993
14994
14995 enable_dlopen=no
14996
14997
14998 enable_win32_dll=no
14999
15000
15001 # Check whether --enable-shared was given.
15002 if test ${enable_shared+y}
15003 then :
15004 enableval=$enable_shared; p=${PACKAGE-default}
15005 case $enableval in
15006 yes) enable_shared=yes ;;
15007 no) enable_shared=no ;;
15008 *)
15009 enable_shared=no
15010 # Look at the argument we got. We use all the common list separators.
15011 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
15012 for pkg in $enableval; do
15013 IFS=$lt_save_ifs
15014 if test "X$pkg" = "X$p"; then
15015 enable_shared=yes
15016 fi
15017 done
15018 IFS=$lt_save_ifs
15019 ;;
15020 esac
15021 else $as_nop
15022 enable_shared=yes
15023 fi
15024
15025
15026
15027
15028
15029
15030
15031
15032
15033
15034
15035 # Check whether --with-pic was given.
15036 if test ${with_pic+y}
15037 then :
15038 withval=$with_pic; lt_p=${PACKAGE-default}
15039 case $withval in
15040 yes|no) pic_mode=$withval ;;
15041 *)
15042 pic_mode=default
15043 # Look at the argument we got. We use all the common list separators.
15044 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
15045 for lt_pkg in $withval; do
15046 IFS=$lt_save_ifs
15047 if test "X$lt_pkg" = "X$lt_p"; then
15048 pic_mode=yes
15049 fi
15050 done
15051 IFS=$lt_save_ifs
15052 ;;
15053 esac
15054 else $as_nop
15055 pic_mode=default
15056 fi
15057
15058
15059
15060
15061
15062
15063
15064
15065 # Check whether --enable-fast-install was given.
15066 if test ${enable_fast_install+y}
15067 then :
15068 enableval=$enable_fast_install; p=${PACKAGE-default}
15069 case $enableval in
15070 yes) enable_fast_install=yes ;;
15071 no) enable_fast_install=no ;;
15072 *)
15073 enable_fast_install=no
15074 # Look at the argument we got. We use all the common list separators.
15075 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
15076 for pkg in $enableval; do
15077 IFS=$lt_save_ifs
15078 if test "X$pkg" = "X$p"; then
15079 enable_fast_install=yes
15080 fi
15081 done
15082 IFS=$lt_save_ifs
15083 ;;
15084 esac
15085 else $as_nop
15086 enable_fast_install=yes
15087 fi
15088
15089
15090
15091
15092
15093
15094
15095
15096 shared_archive_member_spec=
15097 case $host,$enable_shared in
15098 power*-*-aix[5-9]*,yes)
15099 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
15100 printf %s "checking which variant of shared library versioning to provide... " >&6; }
15101
15102 # Check whether --with-aix-soname was given.
15103 if test ${with_aix_soname+y}
15104 then :
15105 withval=$with_aix_soname; case $withval in
15106 aix|svr4|both)
15107 ;;
15108 *)
15109 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
15110 ;;
15111 esac
15112 lt_cv_with_aix_soname=$with_aix_soname
15113 else $as_nop
15114 if test ${lt_cv_with_aix_soname+y}
15115 then :
15116 printf %s "(cached) " >&6
15117 else $as_nop
15118 lt_cv_with_aix_soname=aix
15119 fi
15120
15121 with_aix_soname=$lt_cv_with_aix_soname
15122 fi
15123
15124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
15125 printf "%s\n" "$with_aix_soname" >&6; }
15126 if test aix != "$with_aix_soname"; then
15127 # For the AIX way of multilib, we name the shared archive member
15128 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
15129 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
15130 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
15131 # the AIX toolchain works better with OBJECT_MODE set (default 32).
15132 if test 64 = "${OBJECT_MODE-32}"; then
15133 shared_archive_member_spec=shr_64
15134 else
15135 shared_archive_member_spec=shr
15136 fi
15137 fi
15138 ;;
15139 *)
15140 with_aix_soname=aix
15141 ;;
15142 esac
15143
15144
15145
15146
15147
15148
15149
15150
15151
15152
15153 # This can be used to rebuild libtool when needed
15154 LIBTOOL_DEPS=$ltmain
15155
15156 # Always use our own libtool.
15157 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
15158
15159
15160
15161
15162
15163
15164
15165
15166
15167
15168
15169
15170
15171
15172
15173
15174
15175
15176
15177
15178
15179
15180
15181
15182
15183
15184
15185
15186
15187
15188 test -z "$LN_S" && LN_S="ln -s"
15189
15190
15191
15192
15193
15194
15195
15196
15197
15198
15199
15200
15201
15202
15203 if test -n "${ZSH_VERSION+set}"; then
15204 setopt NO_GLOB_SUBST
15205 fi
15206
15207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
15208 printf %s "checking for objdir... " >&6; }
15209 if test ${lt_cv_objdir+y}
15210 then :
15211 printf %s "(cached) " >&6
15212 else $as_nop
15213 rm -f .libs 2>/dev/null
15214 mkdir .libs 2>/dev/null
15215 if test -d .libs; then
15216 lt_cv_objdir=.libs
15217 else
15218 # MS-DOS does not allow filenames that begin with a dot.
15219 lt_cv_objdir=_libs
15220 fi
15221 rmdir .libs 2>/dev/null
15222 fi
15223 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
15224 printf "%s\n" "$lt_cv_objdir" >&6; }
15225 objdir=$lt_cv_objdir
15226
15227
15228
15229
15230
15231 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
15232
15233
15234
15235
15236 case $host_os in
15237 aix3*)
15238 # AIX sometimes has problems with the GCC collect2 program. For some
15239 # reason, if we set the COLLECT_NAMES environment variable, the problems
15240 # vanish in a puff of smoke.
15241 if test set != "${COLLECT_NAMES+set}"; then
15242 COLLECT_NAMES=
15243 export COLLECT_NAMES
15244 fi
15245 ;;
15246 esac
15247
15248 # Global variables:
15249 ofile=libtool
15250 can_build_shared=yes
15251
15252 # All known linkers require a '.a' archive for static linking (except MSVC and
15253 # ICC, which need '.lib').
15254 libext=a
15255
15256 with_gnu_ld=$lt_cv_prog_gnu_ld
15257
15258 old_CC=$CC
15259 old_CFLAGS=$CFLAGS
15260
15261 # Set sane defaults for various variables
15262 test -z "$CC" && CC=cc
15263 test -z "$LTCC" && LTCC=$CC
15264 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
15265 test -z "$LD" && LD=ld
15266 test -z "$ac_objext" && ac_objext=o
15267
15268 func_cc_basename $compiler
15269 cc_basename=$func_cc_basename_result
15270
15271
15272 # Only perform the check for file, if the check method requires it
15273 test -z "$MAGIC_CMD" && MAGIC_CMD=file
15274 case $deplibs_check_method in
15275 file_magic*)
15276 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
15277 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
15278 printf %s "checking for ${ac_tool_prefix}file... " >&6; }
15279 if test ${lt_cv_path_MAGIC_CMD+y}
15280 then :
15281 printf %s "(cached) " >&6
15282 else $as_nop
15283 case $MAGIC_CMD in
15284 [\\/*] | ?:[\\/]*)
15285 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
15286 ;;
15287 *)
15288 lt_save_MAGIC_CMD=$MAGIC_CMD
15289 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
15290 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
15291 for ac_dir in $ac_dummy; do
15292 IFS=$lt_save_ifs
15293 test -z "$ac_dir" && ac_dir=.
15294 if test -f "$ac_dir/${ac_tool_prefix}file"; then
15295 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
15296 if test -n "$file_magic_test_file"; then
15297 case $deplibs_check_method in
15298 "file_magic "*)
15299 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
15300 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
15301 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15302 $EGREP "$file_magic_regex" > /dev/null; then
15303 :
15304 else
15305 cat <<_LT_EOF 1>&2
15306
15307 *** Warning: the command libtool uses to detect shared libraries,
15308 *** $file_magic_cmd, produces output that libtool cannot recognize.
15309 *** The result is that libtool may fail to recognize shared libraries
15310 *** as such. This will affect the creation of libtool libraries that
15311 *** depend on shared libraries, but programs linked with such libtool
15312 *** libraries will work regardless of this problem. Nevertheless, you
15313 *** may want to report the problem to your system manager and/or to
15314 *** bug-libtool@gnu.org
15315
15316 _LT_EOF
15317 fi ;;
15318 esac
15319 fi
15320 break
15321 fi
15322 done
15323 IFS=$lt_save_ifs
15324 MAGIC_CMD=$lt_save_MAGIC_CMD
15325 ;;
15326 esac
15327 fi
15328
15329 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
15330 if test -n "$MAGIC_CMD"; then
15331 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
15332 printf "%s\n" "$MAGIC_CMD" >&6; }
15333 else
15334 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15335 printf "%s\n" "no" >&6; }
15336 fi
15337
15338
15339
15340
15341
15342 if test -z "$lt_cv_path_MAGIC_CMD"; then
15343 if test -n "$ac_tool_prefix"; then
15344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
15345 printf %s "checking for file... " >&6; }
15346 if test ${lt_cv_path_MAGIC_CMD+y}
15347 then :
15348 printf %s "(cached) " >&6
15349 else $as_nop
15350 case $MAGIC_CMD in
15351 [\\/*] | ?:[\\/]*)
15352 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
15353 ;;
15354 *)
15355 lt_save_MAGIC_CMD=$MAGIC_CMD
15356 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
15357 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
15358 for ac_dir in $ac_dummy; do
15359 IFS=$lt_save_ifs
15360 test -z "$ac_dir" && ac_dir=.
15361 if test -f "$ac_dir/file"; then
15362 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
15363 if test -n "$file_magic_test_file"; then
15364 case $deplibs_check_method in
15365 "file_magic "*)
15366 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
15367 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
15368 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15369 $EGREP "$file_magic_regex" > /dev/null; then
15370 :
15371 else
15372 cat <<_LT_EOF 1>&2
15373
15374 *** Warning: the command libtool uses to detect shared libraries,
15375 *** $file_magic_cmd, produces output that libtool cannot recognize.
15376 *** The result is that libtool may fail to recognize shared libraries
15377 *** as such. This will affect the creation of libtool libraries that
15378 *** depend on shared libraries, but programs linked with such libtool
15379 *** libraries will work regardless of this problem. Nevertheless, you
15380 *** may want to report the problem to your system manager and/or to
15381 *** bug-libtool@gnu.org
15382
15383 _LT_EOF
15384 fi ;;
15385 esac
15386 fi
15387 break
15388 fi
15389 done
15390 IFS=$lt_save_ifs
15391 MAGIC_CMD=$lt_save_MAGIC_CMD
15392 ;;
15393 esac
15394 fi
15395
15396 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
15397 if test -n "$MAGIC_CMD"; then
15398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
15399 printf "%s\n" "$MAGIC_CMD" >&6; }
15400 else
15401 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15402 printf "%s\n" "no" >&6; }
15403 fi
15404
15405
15406 else
15407 MAGIC_CMD=:
15408 fi
15409 fi
15410
15411 fi
15412 ;;
15413 esac
15414
15415 # Use C for the default configuration in the libtool script
15416
15417 lt_save_CC=$CC
15418 ac_ext=c
15419 ac_cpp='$CPP $CPPFLAGS'
15420 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15421 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15422 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15423
15424
15425 # Source file extension for C test sources.
15426 ac_ext=c
15427
15428 # Object file extension for compiled C test sources.
15429 objext=o
15430 objext=$objext
15431
15432 # Code to be used in simple compile tests
15433 lt_simple_compile_test_code="int some_variable = 0;"
15434
15435 # Code to be used in simple link tests
15436 lt_simple_link_test_code='int main(){return(0);}'
15437
15438
15439
15440
15441
15442
15443
15444 # If no C compiler was specified, use CC.
15445 LTCC=${LTCC-"$CC"}
15446
15447 # If no C compiler flags were specified, use CFLAGS.
15448 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15449
15450 # Allow CC to be a program name with arguments.
15451 compiler=$CC
15452
15453 # Save the default compiler, since it gets overwritten when the other
15454 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
15455 compiler_DEFAULT=$CC
15456
15457 # save warnings/boilerplate of simple test code
15458 ac_outfile=conftest.$ac_objext
15459 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15460 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15461 _lt_compiler_boilerplate=`cat conftest.err`
15462 $RM conftest*
15463
15464 ac_outfile=conftest.$ac_objext
15465 echo "$lt_simple_link_test_code" >conftest.$ac_ext
15466 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15467 _lt_linker_boilerplate=`cat conftest.err`
15468 $RM -r conftest*
15469
15470
15471 if test -n "$compiler"; then
15472
15473 lt_prog_compiler_no_builtin_flag=
15474
15475 if test yes = "$GCC"; then
15476 case $cc_basename in
15477 nvcc*)
15478 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
15479 *)
15480 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
15481 esac
15482
15483 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15484 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
15485 if test ${lt_cv_prog_compiler_rtti_exceptions+y}
15486 then :
15487 printf %s "(cached) " >&6
15488 else $as_nop
15489 lt_cv_prog_compiler_rtti_exceptions=no
15490 ac_outfile=conftest.$ac_objext
15491 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15492 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
15493 # Insert the option either (1) after the last *FLAGS variable, or
15494 # (2) before a word containing "conftest.", or (3) at the end.
15495 # Note that $ac_compile itself does not contain backslashes and begins
15496 # with a dollar sign (not a hyphen), so the echo should work correctly.
15497 # The option is referenced via a variable to avoid confusing sed.
15498 lt_compile=`echo "$ac_compile" | $SED \
15499 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15500 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15501 -e 's:$: $lt_compiler_flag:'`
15502 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15503 (eval "$lt_compile" 2>conftest.err)
15504 ac_status=$?
15505 cat conftest.err >&5
15506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15507 if (exit $ac_status) && test -s "$ac_outfile"; then
15508 # The compiler can only warn and ignore the option if not recognized
15509 # So say no if there are warnings other than the usual output.
15510 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15511 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15512 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15513 lt_cv_prog_compiler_rtti_exceptions=yes
15514 fi
15515 fi
15516 $RM conftest*
15517
15518 fi
15519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15520 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
15521
15522 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
15523 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
15524 else
15525 :
15526 fi
15527
15528 fi
15529
15530
15531
15532
15533
15534
15535 lt_prog_compiler_wl=
15536 lt_prog_compiler_pic=
15537 lt_prog_compiler_static=
15538
15539
15540 if test yes = "$GCC"; then
15541 lt_prog_compiler_wl='-Wl,'
15542 lt_prog_compiler_static='-static'
15543
15544 case $host_os in
15545 aix*)
15546 # All AIX code is PIC.
15547 if test ia64 = "$host_cpu"; then
15548 # AIX 5 now supports IA64 processor
15549 lt_prog_compiler_static='-Bstatic'
15550 fi
15551 lt_prog_compiler_pic='-fPIC'
15552 ;;
15553
15554 amigaos*)
15555 case $host_cpu in
15556 powerpc)
15557 # see comment about AmigaOS4 .so support
15558 lt_prog_compiler_pic='-fPIC'
15559 ;;
15560 m68k)
15561 # FIXME: we need at least 68020 code to build shared libraries, but
15562 # adding the '-m68020' flag to GCC prevents building anything better,
15563 # like '-m68040'.
15564 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
15565 ;;
15566 esac
15567 ;;
15568
15569 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15570 # PIC is the default for these OSes.
15571 ;;
15572
15573 mingw* | cygwin* | pw32* | os2* | cegcc*)
15574 # This hack is so that the source file can tell whether it is being
15575 # built for inclusion in a dll (and should export symbols for example).
15576 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15577 # (--disable-auto-import) libraries
15578 lt_prog_compiler_pic='-DDLL_EXPORT'
15579 case $host_os in
15580 os2*)
15581 lt_prog_compiler_static='$wl-static'
15582 ;;
15583 esac
15584 ;;
15585
15586 darwin* | rhapsody*)
15587 # PIC is the default on this platform
15588 # Common symbols not allowed in MH_DYLIB files
15589 lt_prog_compiler_pic='-fno-common'
15590 ;;
15591
15592 haiku*)
15593 # PIC is the default for Haiku.
15594 # The "-static" flag exists, but is broken.
15595 lt_prog_compiler_static=
15596 ;;
15597
15598 hpux*)
15599 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15600 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
15601 # sets the default TLS model and affects inlining.
15602 case $host_cpu in
15603 hppa*64*)
15604 # +Z the default
15605 ;;
15606 *)
15607 lt_prog_compiler_pic='-fPIC'
15608 ;;
15609 esac
15610 ;;
15611
15612 interix[3-9]*)
15613 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15614 # Instead, we relocate shared libraries at runtime.
15615 ;;
15616
15617 msdosdjgpp*)
15618 # Just because we use GCC doesn't mean we suddenly get shared libraries
15619 # on systems that don't support them.
15620 lt_prog_compiler_can_build_shared=no
15621 enable_shared=no
15622 ;;
15623
15624 *nto* | *qnx*)
15625 # QNX uses GNU C++, but need to define -shared option too, otherwise
15626 # it will coredump.
15627 lt_prog_compiler_pic='-fPIC -shared'
15628 ;;
15629
15630 sysv4*MP*)
15631 if test -d /usr/nec; then
15632 lt_prog_compiler_pic=-Kconform_pic
15633 fi
15634 ;;
15635
15636 *)
15637 lt_prog_compiler_pic='-fPIC'
15638 ;;
15639 esac
15640
15641 case $cc_basename in
15642 nvcc*) # Cuda Compiler Driver 2.2
15643 lt_prog_compiler_wl='-Xlinker '
15644 if test -n "$lt_prog_compiler_pic"; then
15645 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
15646 fi
15647 ;;
15648 esac
15649 else
15650 # PORTME Check for flag to pass linker flags through the system compiler.
15651 case $host_os in
15652 aix*)
15653 lt_prog_compiler_wl='-Wl,'
15654 if test ia64 = "$host_cpu"; then
15655 # AIX 5 now supports IA64 processor
15656 lt_prog_compiler_static='-Bstatic'
15657 else
15658 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
15659 fi
15660 ;;
15661
15662 darwin* | rhapsody*)
15663 # PIC is the default on this platform
15664 # Common symbols not allowed in MH_DYLIB files
15665 lt_prog_compiler_pic='-fno-common'
15666 case $cc_basename in
15667 nagfor*)
15668 # NAG Fortran compiler
15669 lt_prog_compiler_wl='-Wl,-Wl,,'
15670 lt_prog_compiler_pic='-PIC'
15671 lt_prog_compiler_static='-Bstatic'
15672 ;;
15673 esac
15674 ;;
15675
15676 mingw* | cygwin* | pw32* | os2* | cegcc*)
15677 # This hack is so that the source file can tell whether it is being
15678 # built for inclusion in a dll (and should export symbols for example).
15679 lt_prog_compiler_pic='-DDLL_EXPORT'
15680 case $host_os in
15681 os2*)
15682 lt_prog_compiler_static='$wl-static'
15683 ;;
15684 esac
15685 ;;
15686
15687 hpux9* | hpux10* | hpux11*)
15688 lt_prog_compiler_wl='-Wl,'
15689 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15690 # not for PA HP-UX.
15691 case $host_cpu in
15692 hppa*64*|ia64*)
15693 # +Z the default
15694 ;;
15695 *)
15696 lt_prog_compiler_pic='+Z'
15697 ;;
15698 esac
15699 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15700 lt_prog_compiler_static='$wl-a ${wl}archive'
15701 ;;
15702
15703 irix5* | irix6* | nonstopux*)
15704 lt_prog_compiler_wl='-Wl,'
15705 # PIC (with -KPIC) is the default.
15706 lt_prog_compiler_static='-non_shared'
15707 ;;
15708
15709 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15710 case $cc_basename in
15711 # old Intel for x86_64, which still supported -KPIC.
15712 ecc*)
15713 lt_prog_compiler_wl='-Wl,'
15714 lt_prog_compiler_pic='-KPIC'
15715 lt_prog_compiler_static='-static'
15716 ;;
15717 # icc used to be incompatible with GCC.
15718 # ICC 10 doesn't accept -KPIC any more.
15719 icc* | ifort*)
15720 lt_prog_compiler_wl='-Wl,'
15721 lt_prog_compiler_pic='-fPIC'
15722 lt_prog_compiler_static='-static'
15723 ;;
15724 # Lahey Fortran 8.1.
15725 lf95*)
15726 lt_prog_compiler_wl='-Wl,'
15727 lt_prog_compiler_pic='--shared'
15728 lt_prog_compiler_static='--static'
15729 ;;
15730 nagfor*)
15731 # NAG Fortran compiler
15732 lt_prog_compiler_wl='-Wl,-Wl,,'
15733 lt_prog_compiler_pic='-PIC'
15734 lt_prog_compiler_static='-Bstatic'
15735 ;;
15736 tcc*)
15737 # Fabrice Bellard et al's Tiny C Compiler
15738 lt_prog_compiler_wl='-Wl,'
15739 lt_prog_compiler_pic='-fPIC'
15740 lt_prog_compiler_static='-static'
15741 ;;
15742 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
15743 # Portland Group compilers (*not* the Pentium gcc compiler,
15744 # which looks to be a dead project)
15745 lt_prog_compiler_wl='-Wl,'
15746 lt_prog_compiler_pic='-fpic'
15747 lt_prog_compiler_static='-Bstatic'
15748 ;;
15749 ccc*)
15750 lt_prog_compiler_wl='-Wl,'
15751 # All Alpha code is PIC.
15752 lt_prog_compiler_static='-non_shared'
15753 ;;
15754 xl* | bgxl* | bgf* | mpixl*)
15755 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
15756 lt_prog_compiler_wl='-Wl,'
15757 lt_prog_compiler_pic='-qpic'
15758 lt_prog_compiler_static='-qstaticlink'
15759 ;;
15760 *)
15761 case `$CC -V 2>&1 | $SED 5q` in
15762 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
15763 # Sun Fortran 8.3 passes all unrecognized flags to the linker
15764 lt_prog_compiler_pic='-KPIC'
15765 lt_prog_compiler_static='-Bstatic'
15766 lt_prog_compiler_wl=''
15767 ;;
15768 *Sun\ F* | *Sun*Fortran*)
15769 lt_prog_compiler_pic='-KPIC'
15770 lt_prog_compiler_static='-Bstatic'
15771 lt_prog_compiler_wl='-Qoption ld '
15772 ;;
15773 *Sun\ C*)
15774 # Sun C 5.9
15775 lt_prog_compiler_pic='-KPIC'
15776 lt_prog_compiler_static='-Bstatic'
15777 lt_prog_compiler_wl='-Wl,'
15778 ;;
15779 *Intel*\ [CF]*Compiler*)
15780 lt_prog_compiler_wl='-Wl,'
15781 lt_prog_compiler_pic='-fPIC'
15782 lt_prog_compiler_static='-static'
15783 ;;
15784 *Portland\ Group*)
15785 lt_prog_compiler_wl='-Wl,'
15786 lt_prog_compiler_pic='-fpic'
15787 lt_prog_compiler_static='-Bstatic'
15788 ;;
15789 esac
15790 ;;
15791 esac
15792 ;;
15793
15794 newsos6)
15795 lt_prog_compiler_pic='-KPIC'
15796 lt_prog_compiler_static='-Bstatic'
15797 ;;
15798
15799 *nto* | *qnx*)
15800 # QNX uses GNU C++, but need to define -shared option too, otherwise
15801 # it will coredump.
15802 lt_prog_compiler_pic='-fPIC -shared'
15803 ;;
15804
15805 osf3* | osf4* | osf5*)
15806 lt_prog_compiler_wl='-Wl,'
15807 # All OSF/1 code is PIC.
15808 lt_prog_compiler_static='-non_shared'
15809 ;;
15810
15811 rdos*)
15812 lt_prog_compiler_static='-non_shared'
15813 ;;
15814
15815 solaris*)
15816 lt_prog_compiler_pic='-KPIC'
15817 lt_prog_compiler_static='-Bstatic'
15818 case $cc_basename in
15819 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
15820 lt_prog_compiler_wl='-Qoption ld ';;
15821 *)
15822 lt_prog_compiler_wl='-Wl,';;
15823 esac
15824 ;;
15825
15826 sunos4*)
15827 lt_prog_compiler_wl='-Qoption ld '
15828 lt_prog_compiler_pic='-PIC'
15829 lt_prog_compiler_static='-Bstatic'
15830 ;;
15831
15832 sysv4 | sysv4.2uw2* | sysv4.3*)
15833 lt_prog_compiler_wl='-Wl,'
15834 lt_prog_compiler_pic='-KPIC'
15835 lt_prog_compiler_static='-Bstatic'
15836 ;;
15837
15838 sysv4*MP*)
15839 if test -d /usr/nec; then
15840 lt_prog_compiler_pic='-Kconform_pic'
15841 lt_prog_compiler_static='-Bstatic'
15842 fi
15843 ;;
15844
15845 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15846 lt_prog_compiler_wl='-Wl,'
15847 lt_prog_compiler_pic='-KPIC'
15848 lt_prog_compiler_static='-Bstatic'
15849 ;;
15850
15851 unicos*)
15852 lt_prog_compiler_wl='-Wl,'
15853 lt_prog_compiler_can_build_shared=no
15854 ;;
15855
15856 uts4*)
15857 lt_prog_compiler_pic='-pic'
15858 lt_prog_compiler_static='-Bstatic'
15859 ;;
15860
15861 *)
15862 lt_prog_compiler_can_build_shared=no
15863 ;;
15864 esac
15865 fi
15866
15867 case $host_os in
15868 # For platforms that do not support PIC, -DPIC is meaningless:
15869 *djgpp*)
15870 lt_prog_compiler_pic=
15871 ;;
15872 *)
15873 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15874 ;;
15875 esac
15876
15877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15878 printf %s "checking for $compiler option to produce PIC... " >&6; }
15879 if test ${lt_cv_prog_compiler_pic+y}
15880 then :
15881 printf %s "(cached) " >&6
15882 else $as_nop
15883 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
15884 fi
15885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
15886 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
15887 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
15888
15889 #
15890 # Check to make sure the PIC flag actually works.
15891 #
15892 if test -n "$lt_prog_compiler_pic"; then
15893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
15894 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
15895 if test ${lt_cv_prog_compiler_pic_works+y}
15896 then :
15897 printf %s "(cached) " >&6
15898 else $as_nop
15899 lt_cv_prog_compiler_pic_works=no
15900 ac_outfile=conftest.$ac_objext
15901 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15902 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
15903 # Insert the option either (1) after the last *FLAGS variable, or
15904 # (2) before a word containing "conftest.", or (3) at the end.
15905 # Note that $ac_compile itself does not contain backslashes and begins
15906 # with a dollar sign (not a hyphen), so the echo should work correctly.
15907 # The option is referenced via a variable to avoid confusing sed.
15908 lt_compile=`echo "$ac_compile" | $SED \
15909 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15910 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15911 -e 's:$: $lt_compiler_flag:'`
15912 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15913 (eval "$lt_compile" 2>conftest.err)
15914 ac_status=$?
15915 cat conftest.err >&5
15916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15917 if (exit $ac_status) && test -s "$ac_outfile"; then
15918 # The compiler can only warn and ignore the option if not recognized
15919 # So say no if there are warnings other than the usual output.
15920 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15921 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15922 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15923 lt_cv_prog_compiler_pic_works=yes
15924 fi
15925 fi
15926 $RM conftest*
15927
15928 fi
15929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
15930 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
15931
15932 if test yes = "$lt_cv_prog_compiler_pic_works"; then
15933 case $lt_prog_compiler_pic in
15934 "" | " "*) ;;
15935 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15936 esac
15937 else
15938 lt_prog_compiler_pic=
15939 lt_prog_compiler_can_build_shared=no
15940 fi
15941
15942 fi
15943
15944
15945
15946
15947
15948
15949
15950
15951
15952
15953
15954 #
15955 # Check to make sure the static flag actually works.
15956 #
15957 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15959 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15960 if test ${lt_cv_prog_compiler_static_works+y}
15961 then :
15962 printf %s "(cached) " >&6
15963 else $as_nop
15964 lt_cv_prog_compiler_static_works=no
15965 save_LDFLAGS=$LDFLAGS
15966 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15967 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15968 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15969 # The linker can only warn and ignore the option if not recognized
15970 # So say no if there are warnings
15971 if test -s conftest.err; then
15972 # Append any errors to the config.log.
15973 cat conftest.err 1>&5
15974 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15975 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15976 if diff conftest.exp conftest.er2 >/dev/null; then
15977 lt_cv_prog_compiler_static_works=yes
15978 fi
15979 else
15980 lt_cv_prog_compiler_static_works=yes
15981 fi
15982 fi
15983 $RM -r conftest*
15984 LDFLAGS=$save_LDFLAGS
15985
15986 fi
15987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
15988 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
15989
15990 if test yes = "$lt_cv_prog_compiler_static_works"; then
15991 :
15992 else
15993 lt_prog_compiler_static=
15994 fi
15995
15996
15997
15998
15999
16000
16001
16002 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16003 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16004 if test ${lt_cv_prog_compiler_c_o+y}
16005 then :
16006 printf %s "(cached) " >&6
16007 else $as_nop
16008 lt_cv_prog_compiler_c_o=no
16009 $RM -r conftest 2>/dev/null
16010 mkdir conftest
16011 cd conftest
16012 mkdir out
16013 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16014
16015 lt_compiler_flag="-o out/conftest2.$ac_objext"
16016 # Insert the option either (1) after the last *FLAGS variable, or
16017 # (2) before a word containing "conftest.", or (3) at the end.
16018 # Note that $ac_compile itself does not contain backslashes and begins
16019 # with a dollar sign (not a hyphen), so the echo should work correctly.
16020 lt_compile=`echo "$ac_compile" | $SED \
16021 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16022 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16023 -e 's:$: $lt_compiler_flag:'`
16024 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16025 (eval "$lt_compile" 2>out/conftest.err)
16026 ac_status=$?
16027 cat out/conftest.err >&5
16028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16029 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16030 then
16031 # The compiler can only warn and ignore the option if not recognized
16032 # So say no if there are warnings
16033 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16034 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16035 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16036 lt_cv_prog_compiler_c_o=yes
16037 fi
16038 fi
16039 chmod u+w . 2>&5
16040 $RM conftest*
16041 # SGI C++ compiler will create directory out/ii_files/ for
16042 # template instantiation
16043 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16044 $RM out/* && rmdir out
16045 cd ..
16046 $RM -r conftest
16047 $RM conftest*
16048
16049 fi
16050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
16051 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
16052
16053
16054
16055
16056
16057
16058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16059 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16060 if test ${lt_cv_prog_compiler_c_o+y}
16061 then :
16062 printf %s "(cached) " >&6
16063 else $as_nop
16064 lt_cv_prog_compiler_c_o=no
16065 $RM -r conftest 2>/dev/null
16066 mkdir conftest
16067 cd conftest
16068 mkdir out
16069 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16070
16071 lt_compiler_flag="-o out/conftest2.$ac_objext"
16072 # Insert the option either (1) after the last *FLAGS variable, or
16073 # (2) before a word containing "conftest.", or (3) at the end.
16074 # Note that $ac_compile itself does not contain backslashes and begins
16075 # with a dollar sign (not a hyphen), so the echo should work correctly.
16076 lt_compile=`echo "$ac_compile" | $SED \
16077 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16078 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16079 -e 's:$: $lt_compiler_flag:'`
16080 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16081 (eval "$lt_compile" 2>out/conftest.err)
16082 ac_status=$?
16083 cat out/conftest.err >&5
16084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16085 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16086 then
16087 # The compiler can only warn and ignore the option if not recognized
16088 # So say no if there are warnings
16089 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16090 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16091 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16092 lt_cv_prog_compiler_c_o=yes
16093 fi
16094 fi
16095 chmod u+w . 2>&5
16096 $RM conftest*
16097 # SGI C++ compiler will create directory out/ii_files/ for
16098 # template instantiation
16099 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16100 $RM out/* && rmdir out
16101 cd ..
16102 $RM -r conftest
16103 $RM conftest*
16104
16105 fi
16106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
16107 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
16108
16109
16110
16111
16112 hard_links=nottested
16113 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
16114 # do not overwrite the value of need_locks provided by the user
16115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
16116 printf %s "checking if we can lock with hard links... " >&6; }
16117 hard_links=yes
16118 $RM conftest*
16119 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16120 touch conftest.a
16121 ln conftest.a conftest.b 2>&5 || hard_links=no
16122 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
16124 printf "%s\n" "$hard_links" >&6; }
16125 if test no = "$hard_links"; then
16126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
16127 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
16128 need_locks=warn
16129 fi
16130 else
16131 need_locks=no
16132 fi
16133
16134
16135
16136
16137
16138
16139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16140 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16141
16142 runpath_var=
16143 allow_undefined_flag=
16144 always_export_symbols=no
16145 archive_cmds=
16146 archive_expsym_cmds=
16147 compiler_needs_object=no
16148 enable_shared_with_static_runtimes=no
16149 export_dynamic_flag_spec=
16150 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16151 hardcode_automatic=no
16152 hardcode_direct=no
16153 hardcode_direct_absolute=no
16154 hardcode_libdir_flag_spec=
16155 hardcode_libdir_separator=
16156 hardcode_minus_L=no
16157 hardcode_shlibpath_var=unsupported
16158 inherit_rpath=no
16159 link_all_deplibs=unknown
16160 module_cmds=
16161 module_expsym_cmds=
16162 old_archive_from_new_cmds=
16163 old_archive_from_expsyms_cmds=
16164 thread_safe_flag_spec=
16165 whole_archive_flag_spec=
16166 # include_expsyms should be a list of space-separated symbols to be *always*
16167 # included in the symbol list
16168 include_expsyms=
16169 # exclude_expsyms can be an extended regexp of symbols to exclude
16170 # it will be wrapped by ' (' and ')$', so one must not match beginning or
16171 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
16172 # as well as any symbol that contains 'd'.
16173 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16174 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16175 # platforms (ab)use it in PIC code, but their linkers get confused if
16176 # the symbol is explicitly referenced. Since portable code cannot
16177 # rely on this symbol name, it's probably fine to never include it in
16178 # preloaded symbol tables.
16179 # Exclude shared library initialization/finalization symbols.
16180 extract_expsyms_cmds=
16181
16182 case $host_os in
16183 cygwin* | mingw* | pw32* | cegcc*)
16184 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
16185 # When not using gcc, we currently assume that we are using
16186 # Microsoft Visual C++ or Intel C++ Compiler.
16187 if test yes != "$GCC"; then
16188 with_gnu_ld=no
16189 fi
16190 ;;
16191 interix*)
16192 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
16193 with_gnu_ld=yes
16194 ;;
16195 openbsd* | bitrig*)
16196 with_gnu_ld=no
16197 ;;
16198 esac
16199
16200 ld_shlibs=yes
16201
16202 # On some targets, GNU ld is compatible enough with the native linker
16203 # that we're better off using the native interface for both.
16204 lt_use_gnu_ld_interface=no
16205 if test yes = "$with_gnu_ld"; then
16206 case $host_os in
16207 aix*)
16208 # The AIX port of GNU ld has always aspired to compatibility
16209 # with the native linker. However, as the warning in the GNU ld
16210 # block says, versions before 2.19.5* couldn't really create working
16211 # shared libraries, regardless of the interface used.
16212 case `$LD -v 2>&1` in
16213 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
16214 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
16215 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
16216 *)
16217 lt_use_gnu_ld_interface=yes
16218 ;;
16219 esac
16220 ;;
16221 *)
16222 lt_use_gnu_ld_interface=yes
16223 ;;
16224 esac
16225 fi
16226
16227 if test yes = "$lt_use_gnu_ld_interface"; then
16228 # If archive_cmds runs LD, not CC, wlarc should be empty
16229 wlarc='$wl'
16230
16231 # Set some defaults for GNU ld with shared library support. These
16232 # are reset later if shared libraries are not supported. Putting them
16233 # here allows them to be overridden if necessary.
16234 runpath_var=LD_RUN_PATH
16235 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
16236 export_dynamic_flag_spec='$wl--export-dynamic'
16237 # ancient GNU ld didn't support --whole-archive et. al.
16238 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
16239 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
16240 else
16241 whole_archive_flag_spec=
16242 fi
16243 supports_anon_versioning=no
16244 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
16245 *GNU\ gold*) supports_anon_versioning=yes ;;
16246 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16247 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16248 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16249 *\ 2.11.*) ;; # other 2.11 versions
16250 *) supports_anon_versioning=yes ;;
16251 esac
16252
16253 # See if GNU ld supports shared libraries.
16254 case $host_os in
16255 aix[3-9]*)
16256 # On AIX/PPC, the GNU linker is very broken
16257 if test ia64 != "$host_cpu"; then
16258 ld_shlibs=no
16259 cat <<_LT_EOF 1>&2
16260
16261 *** Warning: the GNU linker, at least up to release 2.19, is reported
16262 *** to be unable to reliably create shared libraries on AIX.
16263 *** Therefore, libtool is disabling shared libraries support. If you
16264 *** really care for shared libraries, you may want to install binutils
16265 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
16266 *** You will then need to restart the configuration process.
16267
16268 _LT_EOF
16269 fi
16270 ;;
16271
16272 amigaos*)
16273 case $host_cpu in
16274 powerpc)
16275 # see comment about AmigaOS4 .so support
16276 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16277 archive_expsym_cmds=''
16278 ;;
16279 m68k)
16280 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)'
16281 hardcode_libdir_flag_spec='-L$libdir'
16282 hardcode_minus_L=yes
16283 ;;
16284 esac
16285 ;;
16286
16287 beos*)
16288 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16289 allow_undefined_flag=unsupported
16290 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
16291 # support --undefined. This deserves some investigation. FIXME
16292 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16293 else
16294 ld_shlibs=no
16295 fi
16296 ;;
16297
16298 cygwin* | mingw* | pw32* | cegcc*)
16299 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
16300 # as there is no search path for DLLs.
16301 hardcode_libdir_flag_spec='-L$libdir'
16302 export_dynamic_flag_spec='$wl--export-all-symbols'
16303 allow_undefined_flag=unsupported
16304 always_export_symbols=no
16305 enable_shared_with_static_runtimes=yes
16306 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'
16307 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
16308
16309 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
16310 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16311 # If the export-symbols file already is a .def file, use it as
16312 # is; otherwise, prepend EXPORTS...
16313 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
16314 cp $export_symbols $output_objdir/$soname.def;
16315 else
16316 echo EXPORTS > $output_objdir/$soname.def;
16317 cat $export_symbols >> $output_objdir/$soname.def;
16318 fi~
16319 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16320 else
16321 ld_shlibs=no
16322 fi
16323 ;;
16324
16325 haiku*)
16326 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16327 link_all_deplibs=yes
16328 ;;
16329
16330 os2*)
16331 hardcode_libdir_flag_spec='-L$libdir'
16332 hardcode_minus_L=yes
16333 allow_undefined_flag=unsupported
16334 shrext_cmds=.dll
16335 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
16336 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
16337 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
16338 $ECHO EXPORTS >> $output_objdir/$libname.def~
16339 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
16340 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
16341 emximp -o $lib $output_objdir/$libname.def'
16342 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
16343 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
16344 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
16345 $ECHO EXPORTS >> $output_objdir/$libname.def~
16346 prefix_cmds="$SED"~
16347 if test EXPORTS = "`$SED 1q $export_symbols`"; then
16348 prefix_cmds="$prefix_cmds -e 1d";
16349 fi~
16350 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
16351 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
16352 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
16353 emximp -o $lib $output_objdir/$libname.def'
16354 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
16355 enable_shared_with_static_runtimes=yes
16356 file_list_spec='@'
16357 ;;
16358
16359 interix[3-9]*)
16360 hardcode_direct=no
16361 hardcode_shlibpath_var=no
16362 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
16363 export_dynamic_flag_spec='$wl-E'
16364 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16365 # Instead, shared libraries are loaded at an image base (0x10000000 by
16366 # default) and relocated if they conflict, which is a slow very memory
16367 # consuming and fragmenting process. To avoid this, we pick a random,
16368 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16369 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16370 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16371 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'
16372 ;;
16373
16374 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
16375 tmp_diet=no
16376 if test linux-dietlibc = "$host_os"; then
16377 case $cc_basename in
16378 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
16379 esac
16380 fi
16381 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
16382 && test no = "$tmp_diet"
16383 then
16384 tmp_addflag=' $pic_flag'
16385 tmp_sharedflag='-shared'
16386 case $cc_basename,$host_cpu in
16387 pgcc*) # Portland Group C compiler
16388 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'
16389 tmp_addflag=' $pic_flag'
16390 ;;
16391 pgf77* | pgf90* | pgf95* | pgfortran*)
16392 # Portland Group f77 and f90 compilers
16393 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'
16394 tmp_addflag=' $pic_flag -Mnomain' ;;
16395 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16396 tmp_addflag=' -i_dynamic' ;;
16397 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16398 tmp_addflag=' -i_dynamic -nofor_main' ;;
16399 ifc* | ifort*) # Intel Fortran compiler
16400 tmp_addflag=' -nofor_main' ;;
16401 lf95*) # Lahey Fortran 8.1
16402 whole_archive_flag_spec=
16403 tmp_sharedflag='--shared' ;;
16404 nagfor*) # NAGFOR 5.3
16405 tmp_sharedflag='-Wl,-shared' ;;
16406 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
16407 tmp_sharedflag='-qmkshrobj'
16408 tmp_addflag= ;;
16409 nvcc*) # Cuda Compiler Driver 2.2
16410 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'
16411 compiler_needs_object=yes
16412 ;;
16413 esac
16414 case `$CC -V 2>&1 | $SED 5q` in
16415 *Sun\ C*) # Sun C 5.9
16416 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'
16417 compiler_needs_object=yes
16418 tmp_sharedflag='-G' ;;
16419 *Sun\ F*) # Sun Fortran 8.3
16420 tmp_sharedflag='-G' ;;
16421 esac
16422 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16423
16424 if test yes = "$supports_anon_versioning"; then
16425 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
16426 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16427 echo "local: *; };" >> $output_objdir/$libname.ver~
16428 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
16429 fi
16430
16431 case $cc_basename in
16432 tcc*)
16433 export_dynamic_flag_spec='-rdynamic'
16434 ;;
16435 xlf* | bgf* | bgxlf* | mpixlf*)
16436 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
16437 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
16438 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
16439 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
16440 if test yes = "$supports_anon_versioning"; then
16441 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
16442 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16443 echo "local: *; };" >> $output_objdir/$libname.ver~
16444 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
16445 fi
16446 ;;
16447 esac
16448 else
16449 ld_shlibs=no
16450 fi
16451 ;;
16452
16453 netbsd*)
16454 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16455 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16456 wlarc=
16457 else
16458 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16459 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
16460 fi
16461 ;;
16462
16463 solaris*)
16464 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
16465 ld_shlibs=no
16466 cat <<_LT_EOF 1>&2
16467
16468 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16469 *** create shared libraries on Solaris systems. Therefore, libtool
16470 *** is disabling shared libraries support. We urge you to upgrade GNU
16471 *** binutils to release 2.9.1 or newer. Another option is to modify
16472 *** your PATH or compiler configuration so that the native linker is
16473 *** used, and then restart.
16474
16475 _LT_EOF
16476 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16477 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16478 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
16479 else
16480 ld_shlibs=no
16481 fi
16482 ;;
16483
16484 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16485 case `$LD -v 2>&1` in
16486 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16487 ld_shlibs=no
16488 cat <<_LT_EOF 1>&2
16489
16490 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
16491 *** reliably create shared libraries on SCO systems. Therefore, libtool
16492 *** is disabling shared libraries support. We urge you to upgrade GNU
16493 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16494 *** your PATH or compiler configuration so that the native linker is
16495 *** used, and then restart.
16496
16497 _LT_EOF
16498 ;;
16499 *)
16500 # For security reasons, it is highly recommended that you always
16501 # use absolute paths for naming shared libraries, and exclude the
16502 # DT_RUNPATH tag from executables and libraries. But doing so
16503 # requires that you compile everything twice, which is a pain.
16504 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16505 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
16506 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16507 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
16508 else
16509 ld_shlibs=no
16510 fi
16511 ;;
16512 esac
16513 ;;
16514
16515 sunos4*)
16516 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16517 wlarc=
16518 hardcode_direct=yes
16519 hardcode_shlibpath_var=no
16520 ;;
16521
16522 *)
16523 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16524 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16525 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
16526 else
16527 ld_shlibs=no
16528 fi
16529 ;;
16530 esac
16531
16532 if test no = "$ld_shlibs"; then
16533 runpath_var=
16534 hardcode_libdir_flag_spec=
16535 export_dynamic_flag_spec=
16536 whole_archive_flag_spec=
16537 fi
16538 else
16539 # PORTME fill in a description of your system's linker (not GNU ld)
16540 case $host_os in
16541 aix3*)
16542 allow_undefined_flag=unsupported
16543 always_export_symbols=yes
16544 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'
16545 # Note: this linker hardcodes the directories in LIBPATH if there
16546 # are no directories specified by -L.
16547 hardcode_minus_L=yes
16548 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
16549 # Neither direct hardcoding nor static linking is supported with a
16550 # broken collect2.
16551 hardcode_direct=unsupported
16552 fi
16553 ;;
16554
16555 aix[4-9]*)
16556 if test ia64 = "$host_cpu"; then
16557 # On IA64, the linker does run time linking by default, so we don't
16558 # have to do anything special.
16559 aix_use_runtimelinking=no
16560 exp_sym_flag='-Bexport'
16561 no_entry_flag=
16562 else
16563 # If we're using GNU nm, then we don't want the "-C" option.
16564 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
16565 # Without the "-l" option, or with the "-B" option, AIX nm treats
16566 # weak defined symbols like other global defined symbols, whereas
16567 # GNU nm marks them as "W".
16568 # While the 'weak' keyword is ignored in the Export File, we need
16569 # it in the Import File for the 'aix-soname' feature, so we have
16570 # to replace the "-B" option with "-P" for AIX nm.
16571 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
16572 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'
16573 else
16574 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'
16575 fi
16576 aix_use_runtimelinking=no
16577
16578 # Test if we are trying to use run time linking or normal
16579 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16580 # have runtime linking enabled, and use it for executables.
16581 # For shared libraries, we enable/disable runtime linking
16582 # depending on the kind of the shared library created -
16583 # when "with_aix_soname,aix_use_runtimelinking" is:
16584 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
16585 # "aix,yes" lib.so shared, rtl:yes, for executables
16586 # lib.a static archive
16587 # "both,no" lib.so.V(shr.o) shared, rtl:yes
16588 # lib.a(lib.so.V) shared, rtl:no, for executables
16589 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
16590 # lib.a(lib.so.V) shared, rtl:no
16591 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
16592 # lib.a static archive
16593 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
16594 for ld_flag in $LDFLAGS; do
16595 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
16596 aix_use_runtimelinking=yes
16597 break
16598 fi
16599 done
16600 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
16601 # With aix-soname=svr4, we create the lib.so.V shared archives only,
16602 # so we don't have lib.a shared libs to link our executables.
16603 # We have to force runtime linking in this case.
16604 aix_use_runtimelinking=yes
16605 LDFLAGS="$LDFLAGS -Wl,-brtl"
16606 fi
16607 ;;
16608 esac
16609
16610 exp_sym_flag='-bexport'
16611 no_entry_flag='-bnoentry'
16612 fi
16613
16614 # When large executables or shared objects are built, AIX ld can
16615 # have problems creating the table of contents. If linking a library
16616 # or program results in "error TOC overflow" add -mminimal-toc to
16617 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16618 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16619
16620 archive_cmds=''
16621 hardcode_direct=yes
16622 hardcode_direct_absolute=yes
16623 hardcode_libdir_separator=':'
16624 link_all_deplibs=yes
16625 file_list_spec='$wl-f,'
16626 case $with_aix_soname,$aix_use_runtimelinking in
16627 aix,*) ;; # traditional, no import file
16628 svr4,* | *,yes) # use import file
16629 # The Import File defines what to hardcode.
16630 hardcode_direct=no
16631 hardcode_direct_absolute=no
16632 ;;
16633 esac
16634
16635 if test yes = "$GCC"; then
16636 case $host_os in aix4.[012]|aix4.[012].*)
16637 # We only want to do this on AIX 4.2 and lower, the check
16638 # below for broken collect2 doesn't work under 4.3+
16639 collect2name=`$CC -print-prog-name=collect2`
16640 if test -f "$collect2name" &&
16641 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
16642 then
16643 # We have reworked collect2
16644 :
16645 else
16646 # We have old collect2
16647 hardcode_direct=unsupported
16648 # It fails to find uninstalled libraries when the uninstalled
16649 # path is not listed in the libpath. Setting hardcode_minus_L
16650 # to unsupported forces relinking
16651 hardcode_minus_L=yes
16652 hardcode_libdir_flag_spec='-L$libdir'
16653 hardcode_libdir_separator=
16654 fi
16655 ;;
16656 esac
16657 shared_flag='-shared'
16658 if test yes = "$aix_use_runtimelinking"; then
16659 shared_flag="$shared_flag "'$wl-G'
16660 fi
16661 # Need to ensure runtime linking is disabled for the traditional
16662 # shared library, or the linker may eventually find shared libraries
16663 # /with/ Import File - we do not want to mix them.
16664 shared_flag_aix='-shared'
16665 shared_flag_svr4='-shared $wl-G'
16666 else
16667 # not using gcc
16668 if test ia64 = "$host_cpu"; then
16669 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16670 # chokes on -Wl,-G. The following line is correct:
16671 shared_flag='-G'
16672 else
16673 if test yes = "$aix_use_runtimelinking"; then
16674 shared_flag='$wl-G'
16675 else
16676 shared_flag='$wl-bM:SRE'
16677 fi
16678 shared_flag_aix='$wl-bM:SRE'
16679 shared_flag_svr4='$wl-G'
16680 fi
16681 fi
16682
16683 export_dynamic_flag_spec='$wl-bexpall'
16684 # It seems that -bexpall does not export symbols beginning with
16685 # underscore (_), so it is better to generate a list of symbols to export.
16686 always_export_symbols=yes
16687 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
16688 # Warning - without using the other runtime loading flags (-brtl),
16689 # -berok will link without error, but may produce a broken library.
16690 allow_undefined_flag='-berok'
16691 # Determine the default libpath from the value encoded in an
16692 # empty executable.
16693 if test set = "${lt_cv_aix_libpath+set}"; then
16694 aix_libpath=$lt_cv_aix_libpath
16695 else
16696 if test ${lt_cv_aix_libpath_+y}
16697 then :
16698 printf %s "(cached) " >&6
16699 else $as_nop
16700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16701 /* end confdefs.h. */
16702
16703 int
16704 main (void)
16705 {
16706
16707 ;
16708 return 0;
16709 }
16710 _ACEOF
16711 if ac_fn_c_try_link "$LINENO"
16712 then :
16713
16714 lt_aix_libpath_sed='
16715 /Import File Strings/,/^$/ {
16716 /^0/ {
16717 s/^0 *\([^ ]*\) *$/\1/
16718 p
16719 }
16720 }'
16721 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16722 # Check for a 64-bit object if we didn't find anything.
16723 if test -z "$lt_cv_aix_libpath_"; then
16724 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16725 fi
16726 fi
16727 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16728 conftest$ac_exeext conftest.$ac_ext
16729 if test -z "$lt_cv_aix_libpath_"; then
16730 lt_cv_aix_libpath_=/usr/lib:/lib
16731 fi
16732
16733 fi
16734
16735 aix_libpath=$lt_cv_aix_libpath_
16736 fi
16737
16738 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
16739 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
16740 else
16741 if test ia64 = "$host_cpu"; then
16742 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
16743 allow_undefined_flag="-z nodefs"
16744 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"
16745 else
16746 # Determine the default libpath from the value encoded in an
16747 # empty executable.
16748 if test set = "${lt_cv_aix_libpath+set}"; then
16749 aix_libpath=$lt_cv_aix_libpath
16750 else
16751 if test ${lt_cv_aix_libpath_+y}
16752 then :
16753 printf %s "(cached) " >&6
16754 else $as_nop
16755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16756 /* end confdefs.h. */
16757
16758 int
16759 main (void)
16760 {
16761
16762 ;
16763 return 0;
16764 }
16765 _ACEOF
16766 if ac_fn_c_try_link "$LINENO"
16767 then :
16768
16769 lt_aix_libpath_sed='
16770 /Import File Strings/,/^$/ {
16771 /^0/ {
16772 s/^0 *\([^ ]*\) *$/\1/
16773 p
16774 }
16775 }'
16776 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16777 # Check for a 64-bit object if we didn't find anything.
16778 if test -z "$lt_cv_aix_libpath_"; then
16779 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16780 fi
16781 fi
16782 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16783 conftest$ac_exeext conftest.$ac_ext
16784 if test -z "$lt_cv_aix_libpath_"; then
16785 lt_cv_aix_libpath_=/usr/lib:/lib
16786 fi
16787
16788 fi
16789
16790 aix_libpath=$lt_cv_aix_libpath_
16791 fi
16792
16793 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
16794 # Warning - without using the other run time loading flags,
16795 # -berok will link without error, but may produce a broken library.
16796 no_undefined_flag=' $wl-bernotok'
16797 allow_undefined_flag=' $wl-berok'
16798 if test yes = "$with_gnu_ld"; then
16799 # We only use this code for GNU lds that support --whole-archive.
16800 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
16801 else
16802 # Exported symbols can be pulled into shared objects from archives
16803 whole_archive_flag_spec='$convenience'
16804 fi
16805 archive_cmds_need_lc=yes
16806 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
16807 # -brtl affects multiple linker settings, -berok does not and is overridden later
16808 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
16809 if test svr4 != "$with_aix_soname"; then
16810 # This is similar to how AIX traditionally builds its shared libraries.
16811 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'
16812 fi
16813 if test aix != "$with_aix_soname"; then
16814 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'
16815 else
16816 # used by -dlpreopen to get the symbols
16817 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
16818 fi
16819 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
16820 fi
16821 fi
16822 ;;
16823
16824 amigaos*)
16825 case $host_cpu in
16826 powerpc)
16827 # see comment about AmigaOS4 .so support
16828 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16829 archive_expsym_cmds=''
16830 ;;
16831 m68k)
16832 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)'
16833 hardcode_libdir_flag_spec='-L$libdir'
16834 hardcode_minus_L=yes
16835 ;;
16836 esac
16837 ;;
16838
16839 bsdi[45]*)
16840 export_dynamic_flag_spec=-rdynamic
16841 ;;
16842
16843 cygwin* | mingw* | pw32* | cegcc*)
16844 # When not using gcc, we currently assume that we are using
16845 # Microsoft Visual C++ or Intel C++ Compiler.
16846 # hardcode_libdir_flag_spec is actually meaningless, as there is
16847 # no search path for DLLs.
16848 case $cc_basename in
16849 cl* | icl*)
16850 # Native MSVC or ICC
16851 hardcode_libdir_flag_spec=' '
16852 allow_undefined_flag=unsupported
16853 always_export_symbols=yes
16854 file_list_spec='@'
16855 # Tell ltmain to make .lib files, not .a files.
16856 libext=lib
16857 # Tell ltmain to make .dll files, not .so files.
16858 shrext_cmds=.dll
16859 # FIXME: Setting linknames here is a bad hack.
16860 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
16861 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
16862 cp "$export_symbols" "$output_objdir/$soname.def";
16863 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
16864 else
16865 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
16866 fi~
16867 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
16868 linknames='
16869 # The linker will not automatically build a static lib if we build a DLL.
16870 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
16871 enable_shared_with_static_runtimes=yes
16872 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
16873 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16874 # Don't use ranlib
16875 old_postinstall_cmds='chmod 644 $oldlib'
16876 postlink_cmds='lt_outputfile="@OUTPUT@"~
16877 lt_tool_outputfile="@TOOL_OUTPUT@"~
16878 case $lt_outputfile in
16879 *.exe|*.EXE) ;;
16880 *)
16881 lt_outputfile=$lt_outputfile.exe
16882 lt_tool_outputfile=$lt_tool_outputfile.exe
16883 ;;
16884 esac~
16885 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
16886 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
16887 $RM "$lt_outputfile.manifest";
16888 fi'
16889 ;;
16890 *)
16891 # Assume MSVC and ICC wrapper
16892 hardcode_libdir_flag_spec=' '
16893 allow_undefined_flag=unsupported
16894 # Tell ltmain to make .lib files, not .a files.
16895 libext=lib
16896 # Tell ltmain to make .dll files, not .so files.
16897 shrext_cmds=.dll
16898 # FIXME: Setting linknames here is a bad hack.
16899 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
16900 # The linker will automatically build a .lib file if we build a DLL.
16901 old_archive_from_new_cmds='true'
16902 # FIXME: Should let the user specify the lib program.
16903 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
16904 enable_shared_with_static_runtimes=yes
16905 ;;
16906 esac
16907 ;;
16908
16909 darwin* | rhapsody*)
16910
16911
16912 archive_cmds_need_lc=no
16913 hardcode_direct=no
16914 hardcode_automatic=yes
16915 hardcode_shlibpath_var=unsupported
16916 if test yes = "$lt_cv_ld_force_load"; then
16917 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\"`'
16918
16919 else
16920 whole_archive_flag_spec=''
16921 fi
16922 link_all_deplibs=yes
16923 allow_undefined_flag=$_lt_dar_allow_undefined
16924 case $cc_basename in
16925 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
16926 *) _lt_dar_can_shared=$GCC ;;
16927 esac
16928 if test yes = "$_lt_dar_can_shared"; then
16929 output_verbose_link_cmd=func_echo_all
16930 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
16931 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
16932 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"
16933 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"
16934
16935 else
16936 ld_shlibs=no
16937 fi
16938
16939 ;;
16940
16941 dgux*)
16942 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16943 hardcode_libdir_flag_spec='-L$libdir'
16944 hardcode_shlibpath_var=no
16945 ;;
16946
16947 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16948 # support. Future versions do this automatically, but an explicit c++rt0.o
16949 # does not break anything, and helps significantly (at the cost of a little
16950 # extra space).
16951 freebsd2.2*)
16952 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16953 hardcode_libdir_flag_spec='-R$libdir'
16954 hardcode_direct=yes
16955 hardcode_shlibpath_var=no
16956 ;;
16957
16958 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16959 freebsd2.*)
16960 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16961 hardcode_direct=yes
16962 hardcode_minus_L=yes
16963 hardcode_shlibpath_var=no
16964 ;;
16965
16966 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16967 freebsd* | dragonfly* | midnightbsd*)
16968 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16969 hardcode_libdir_flag_spec='-R$libdir'
16970 hardcode_direct=yes
16971 hardcode_shlibpath_var=no
16972 ;;
16973
16974 hpux9*)
16975 if test yes = "$GCC"; then
16976 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'
16977 else
16978 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'
16979 fi
16980 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
16981 hardcode_libdir_separator=:
16982 hardcode_direct=yes
16983
16984 # hardcode_minus_L: Not really in the search PATH,
16985 # but as the default location of the library.
16986 hardcode_minus_L=yes
16987 export_dynamic_flag_spec='$wl-E'
16988 ;;
16989
16990 hpux10*)
16991 if test yes,no = "$GCC,$with_gnu_ld"; then
16992 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16993 else
16994 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16995 fi
16996 if test no = "$with_gnu_ld"; then
16997 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
16998 hardcode_libdir_separator=:
16999 hardcode_direct=yes
17000 hardcode_direct_absolute=yes
17001 export_dynamic_flag_spec='$wl-E'
17002 # hardcode_minus_L: Not really in the search PATH,
17003 # but as the default location of the library.
17004 hardcode_minus_L=yes
17005 fi
17006 ;;
17007
17008 hpux11*)
17009 if test yes,no = "$GCC,$with_gnu_ld"; then
17010 case $host_cpu in
17011 hppa*64*)
17012 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
17013 ;;
17014 ia64*)
17015 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17016 ;;
17017 *)
17018 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17019 ;;
17020 esac
17021 else
17022 case $host_cpu in
17023 hppa*64*)
17024 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
17025 ;;
17026 ia64*)
17027 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17028 ;;
17029 *)
17030
17031 # Older versions of the 11.00 compiler do not understand -b yet
17032 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
17033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
17034 printf %s "checking if $CC understands -b... " >&6; }
17035 if test ${lt_cv_prog_compiler__b+y}
17036 then :
17037 printf %s "(cached) " >&6
17038 else $as_nop
17039 lt_cv_prog_compiler__b=no
17040 save_LDFLAGS=$LDFLAGS
17041 LDFLAGS="$LDFLAGS -b"
17042 echo "$lt_simple_link_test_code" > conftest.$ac_ext
17043 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17044 # The linker can only warn and ignore the option if not recognized
17045 # So say no if there are warnings
17046 if test -s conftest.err; then
17047 # Append any errors to the config.log.
17048 cat conftest.err 1>&5
17049 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
17050 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17051 if diff conftest.exp conftest.er2 >/dev/null; then
17052 lt_cv_prog_compiler__b=yes
17053 fi
17054 else
17055 lt_cv_prog_compiler__b=yes
17056 fi
17057 fi
17058 $RM -r conftest*
17059 LDFLAGS=$save_LDFLAGS
17060
17061 fi
17062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
17063 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
17064
17065 if test yes = "$lt_cv_prog_compiler__b"; then
17066 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17067 else
17068 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17069 fi
17070
17071 ;;
17072 esac
17073 fi
17074 if test no = "$with_gnu_ld"; then
17075 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
17076 hardcode_libdir_separator=:
17077
17078 case $host_cpu in
17079 hppa*64*|ia64*)
17080 hardcode_direct=no
17081 hardcode_shlibpath_var=no
17082 ;;
17083 *)
17084 hardcode_direct=yes
17085 hardcode_direct_absolute=yes
17086 export_dynamic_flag_spec='$wl-E'
17087
17088 # hardcode_minus_L: Not really in the search PATH,
17089 # but as the default location of the library.
17090 hardcode_minus_L=yes
17091 ;;
17092 esac
17093 fi
17094 ;;
17095
17096 irix5* | irix6* | nonstopux*)
17097 if test yes = "$GCC"; then
17098 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'
17099 # Try to use the -exported_symbol ld option, if it does not
17100 # work, assume that -exports_file does not work either and
17101 # implicitly export all symbols.
17102 # This should be the same for all languages, so no per-tag cache variable.
17103 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
17104 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
17105 if test ${lt_cv_irix_exported_symbol+y}
17106 then :
17107 printf %s "(cached) " >&6
17108 else $as_nop
17109 save_LDFLAGS=$LDFLAGS
17110 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
17111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17112 /* end confdefs.h. */
17113 int foo (void) { return 0; }
17114 _ACEOF
17115 if ac_fn_c_try_link "$LINENO"
17116 then :
17117 lt_cv_irix_exported_symbol=yes
17118 else $as_nop
17119 lt_cv_irix_exported_symbol=no
17120 fi
17121 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17122 conftest$ac_exeext conftest.$ac_ext
17123 LDFLAGS=$save_LDFLAGS
17124 fi
17125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
17126 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
17127 if test yes = "$lt_cv_irix_exported_symbol"; then
17128 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'
17129 fi
17130 else
17131 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'
17132 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'
17133 fi
17134 archive_cmds_need_lc='no'
17135 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
17136 hardcode_libdir_separator=:
17137 inherit_rpath=yes
17138 link_all_deplibs=yes
17139 ;;
17140
17141 linux*)
17142 case $cc_basename in
17143 tcc*)
17144 # Fabrice Bellard et al's Tiny C Compiler
17145 ld_shlibs=yes
17146 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17147 ;;
17148 esac
17149 ;;
17150
17151 netbsd*)
17152 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17153 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17154 else
17155 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17156 fi
17157 hardcode_libdir_flag_spec='-R$libdir'
17158 hardcode_direct=yes
17159 hardcode_shlibpath_var=no
17160 ;;
17161
17162 newsos6)
17163 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17164 hardcode_direct=yes
17165 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
17166 hardcode_libdir_separator=:
17167 hardcode_shlibpath_var=no
17168 ;;
17169
17170 *nto* | *qnx*)
17171 ;;
17172
17173 openbsd* | bitrig*)
17174 if test -f /usr/libexec/ld.so; then
17175 hardcode_direct=yes
17176 hardcode_shlibpath_var=no
17177 hardcode_direct_absolute=yes
17178 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
17179 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17180 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
17181 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
17182 export_dynamic_flag_spec='$wl-E'
17183 else
17184 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17185 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
17186 fi
17187 else
17188 ld_shlibs=no
17189 fi
17190 ;;
17191
17192 os2*)
17193 hardcode_libdir_flag_spec='-L$libdir'
17194 hardcode_minus_L=yes
17195 allow_undefined_flag=unsupported
17196 shrext_cmds=.dll
17197 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
17198 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
17199 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
17200 $ECHO EXPORTS >> $output_objdir/$libname.def~
17201 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
17202 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
17203 emximp -o $lib $output_objdir/$libname.def'
17204 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
17205 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
17206 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
17207 $ECHO EXPORTS >> $output_objdir/$libname.def~
17208 prefix_cmds="$SED"~
17209 if test EXPORTS = "`$SED 1q $export_symbols`"; then
17210 prefix_cmds="$prefix_cmds -e 1d";
17211 fi~
17212 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
17213 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
17214 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
17215 emximp -o $lib $output_objdir/$libname.def'
17216 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
17217 enable_shared_with_static_runtimes=yes
17218 file_list_spec='@'
17219 ;;
17220
17221 osf3*)
17222 if test yes = "$GCC"; then
17223 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
17224 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'
17225 else
17226 allow_undefined_flag=' -expect_unresolved \*'
17227 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'
17228 fi
17229 archive_cmds_need_lc='no'
17230 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
17231 hardcode_libdir_separator=:
17232 ;;
17233
17234 osf4* | osf5*) # as osf3* with the addition of -msym flag
17235 if test yes = "$GCC"; then
17236 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
17237 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'
17238 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
17239 else
17240 allow_undefined_flag=' -expect_unresolved \*'
17241 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'
17242 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~
17243 $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'
17244
17245 # Both c and cxx compiler support -rpath directly
17246 hardcode_libdir_flag_spec='-rpath $libdir'
17247 fi
17248 archive_cmds_need_lc='no'
17249 hardcode_libdir_separator=:
17250 ;;
17251
17252 solaris*)
17253 no_undefined_flag=' -z defs'
17254 if test yes = "$GCC"; then
17255 wlarc='$wl'
17256 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
17257 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17258 $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'
17259 else
17260 case `$CC -V 2>&1` in
17261 *"Compilers 5.0"*)
17262 wlarc=''
17263 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
17264 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17265 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
17266 ;;
17267 *)
17268 wlarc='$wl'
17269 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
17270 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17271 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
17272 ;;
17273 esac
17274 fi
17275 hardcode_libdir_flag_spec='-R$libdir'
17276 hardcode_shlibpath_var=no
17277 case $host_os in
17278 solaris2.[0-5] | solaris2.[0-5].*) ;;
17279 *)
17280 # The compiler driver will combine and reorder linker options,
17281 # but understands '-z linker_flag'. GCC discards it without '$wl',
17282 # but is careful enough not to reorder.
17283 # Supported since Solaris 2.6 (maybe 2.5.1?)
17284 if test yes = "$GCC"; then
17285 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
17286 else
17287 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
17288 fi
17289 ;;
17290 esac
17291 link_all_deplibs=yes
17292 ;;
17293
17294 sunos4*)
17295 if test sequent = "$host_vendor"; then
17296 # Use $CC to link under sequent, because it throws in some extra .o
17297 # files that make .init and .fini sections work.
17298 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17299 else
17300 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17301 fi
17302 hardcode_libdir_flag_spec='-L$libdir'
17303 hardcode_direct=yes
17304 hardcode_minus_L=yes
17305 hardcode_shlibpath_var=no
17306 ;;
17307
17308 sysv4)
17309 case $host_vendor in
17310 sni)
17311 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17312 hardcode_direct=yes # is this really true???
17313 ;;
17314 siemens)
17315 ## LD is ld it makes a PLAMLIB
17316 ## CC just makes a GrossModule.
17317 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17318 reload_cmds='$CC -r -o $output$reload_objs'
17319 hardcode_direct=no
17320 ;;
17321 motorola)
17322 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17323 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
17324 ;;
17325 esac
17326 runpath_var='LD_RUN_PATH'
17327 hardcode_shlibpath_var=no
17328 ;;
17329
17330 sysv4.3*)
17331 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17332 hardcode_shlibpath_var=no
17333 export_dynamic_flag_spec='-Bexport'
17334 ;;
17335
17336 sysv4*MP*)
17337 if test -d /usr/nec; then
17338 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17339 hardcode_shlibpath_var=no
17340 runpath_var=LD_RUN_PATH
17341 hardcode_runpath_var=yes
17342 ld_shlibs=yes
17343 fi
17344 ;;
17345
17346 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17347 no_undefined_flag='$wl-z,text'
17348 archive_cmds_need_lc=no
17349 hardcode_shlibpath_var=no
17350 runpath_var='LD_RUN_PATH'
17351
17352 if test yes = "$GCC"; then
17353 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17354 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17355 else
17356 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17357 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17358 fi
17359 ;;
17360
17361 sysv5* | sco3.2v5* | sco5v6*)
17362 # Note: We CANNOT use -z defs as we might desire, because we do not
17363 # link with -lc, and that would cause any symbols used from libc to
17364 # always be unresolved, which means just about no library would
17365 # ever link correctly. If we're not using GNU ld we use -z text
17366 # though, which does catch some bad symbols but isn't as heavy-handed
17367 # as -z defs.
17368 no_undefined_flag='$wl-z,text'
17369 allow_undefined_flag='$wl-z,nodefs'
17370 archive_cmds_need_lc=no
17371 hardcode_shlibpath_var=no
17372 hardcode_libdir_flag_spec='$wl-R,$libdir'
17373 hardcode_libdir_separator=':'
17374 link_all_deplibs=yes
17375 export_dynamic_flag_spec='$wl-Bexport'
17376 runpath_var='LD_RUN_PATH'
17377
17378 if test yes = "$GCC"; then
17379 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17380 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17381 else
17382 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17383 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17384 fi
17385 ;;
17386
17387 uts4*)
17388 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17389 hardcode_libdir_flag_spec='-L$libdir'
17390 hardcode_shlibpath_var=no
17391 ;;
17392
17393 *)
17394 ld_shlibs=no
17395 ;;
17396 esac
17397
17398 if test sni = "$host_vendor"; then
17399 case $host in
17400 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17401 export_dynamic_flag_spec='$wl-Blargedynsym'
17402 ;;
17403 esac
17404 fi
17405 fi
17406
17407 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
17408 printf "%s\n" "$ld_shlibs" >&6; }
17409 test no = "$ld_shlibs" && can_build_shared=no
17410
17411 with_gnu_ld=$with_gnu_ld
17412
17413
17414
17415
17416
17417
17418
17419
17420
17421
17422
17423
17424
17425
17426
17427 #
17428 # Do we need to explicitly link libc?
17429 #
17430 case "x$archive_cmds_need_lc" in
17431 x|xyes)
17432 # Assume -lc should be added
17433 archive_cmds_need_lc=yes
17434
17435 if test yes,yes = "$GCC,$enable_shared"; then
17436 case $archive_cmds in
17437 *'~'*)
17438 # FIXME: we may have to deal with multi-command sequences.
17439 ;;
17440 '$CC '*)
17441 # Test whether the compiler implicitly links with -lc since on some
17442 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17443 # to ld, don't add -lc before -lgcc.
17444 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
17445 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
17446 if test ${lt_cv_archive_cmds_need_lc+y}
17447 then :
17448 printf %s "(cached) " >&6
17449 else $as_nop
17450 $RM conftest*
17451 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17452
17453 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17454 (eval $ac_compile) 2>&5
17455 ac_status=$?
17456 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17457 test $ac_status = 0; } 2>conftest.err; then
17458 soname=conftest
17459 lib=conftest
17460 libobjs=conftest.$ac_objext
17461 deplibs=
17462 wl=$lt_prog_compiler_wl
17463 pic_flag=$lt_prog_compiler_pic
17464 compiler_flags=-v
17465 linker_flags=-v
17466 verstring=
17467 output_objdir=.
17468 libname=conftest
17469 lt_save_allow_undefined_flag=$allow_undefined_flag
17470 allow_undefined_flag=
17471 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
17472 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
17473 ac_status=$?
17474 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17475 test $ac_status = 0; }
17476 then
17477 lt_cv_archive_cmds_need_lc=no
17478 else
17479 lt_cv_archive_cmds_need_lc=yes
17480 fi
17481 allow_undefined_flag=$lt_save_allow_undefined_flag
17482 else
17483 cat conftest.err 1>&5
17484 fi
17485 $RM conftest*
17486
17487 fi
17488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
17489 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
17490 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
17491 ;;
17492 esac
17493 fi
17494 ;;
17495 esac
17496
17497
17498
17499
17500
17501
17502
17503
17504
17505
17506
17507
17508
17509
17510
17511
17512
17513
17514
17515
17516
17517
17518
17519
17520
17521
17522
17523
17524
17525
17526
17527
17528
17529
17530
17531
17532
17533
17534
17535
17536
17537
17538
17539
17540
17541
17542
17543
17544
17545
17546
17547
17548
17549
17550
17551
17552
17553
17554
17555
17556
17557
17558
17559
17560
17561
17562
17563
17564
17565
17566
17567
17568
17569
17570
17571
17572
17573
17574
17575
17576
17577
17578
17579
17580
17581
17582
17583
17584
17585
17586
17587
17588
17589
17590
17591
17592
17593
17594
17595
17596
17597
17598
17599
17600
17601
17602
17603
17604
17605
17606
17607
17608
17609
17610
17611
17612
17613
17614
17615
17616
17617
17618
17619
17620
17621
17622
17623
17624
17625
17626
17627
17628
17629
17630
17631
17632
17633
17634
17635
17636
17637
17638
17639
17640
17641
17642
17643
17644
17645
17646
17647
17648 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17649 printf %s "checking dynamic linker characteristics... " >&6; }
17650
17651 if test yes = "$GCC"; then
17652 case $host_os in
17653 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
17654 *) lt_awk_arg='/^libraries:/' ;;
17655 esac
17656 case $host_os in
17657 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
17658 *) lt_sed_strip_eq='s|=/|/|g' ;;
17659 esac
17660 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
17661 case $lt_search_path_spec in
17662 *\;*)
17663 # if the path contains ";" then we assume it to be the separator
17664 # otherwise default to the standard path separator (i.e. ":") - it is
17665 # assumed that no part of a normal pathname contains ";" but that should
17666 # okay in the real world where ";" in dirpaths is itself problematic.
17667 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
17668 ;;
17669 *)
17670 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
17671 ;;
17672 esac
17673 # Ok, now we have the path, separated by spaces, we can step through it
17674 # and add multilib dir if necessary...
17675 lt_tmp_lt_search_path_spec=
17676 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
17677 # ...but if some path component already ends with the multilib dir we assume
17678 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
17679 case "$lt_multi_os_dir; $lt_search_path_spec " in
17680 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
17681 lt_multi_os_dir=
17682 ;;
17683 esac
17684 for lt_sys_path in $lt_search_path_spec; do
17685 if test -d "$lt_sys_path$lt_multi_os_dir"; then
17686 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
17687 elif test -n "$lt_multi_os_dir"; then
17688 test -d "$lt_sys_path" && \
17689 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
17690 fi
17691 done
17692 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
17693 BEGIN {RS = " "; FS = "/|\n";} {
17694 lt_foo = "";
17695 lt_count = 0;
17696 for (lt_i = NF; lt_i > 0; lt_i--) {
17697 if ($lt_i != "" && $lt_i != ".") {
17698 if ($lt_i == "..") {
17699 lt_count++;
17700 } else {
17701 if (lt_count == 0) {
17702 lt_foo = "/" $lt_i lt_foo;
17703 } else {
17704 lt_count--;
17705 }
17706 }
17707 }
17708 }
17709 if (lt_foo != "") { lt_freq[lt_foo]++; }
17710 if (lt_freq[lt_foo] == 1) { print lt_foo; }
17711 }'`
17712 # AWK program above erroneously prepends '/' to C:/dos/paths
17713 # for these hosts.
17714 case $host_os in
17715 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
17716 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
17717 esac
17718 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
17719 else
17720 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17721 fi
17722 library_names_spec=
17723 libname_spec='lib$name'
17724 soname_spec=
17725 shrext_cmds=.so
17726 postinstall_cmds=
17727 postuninstall_cmds=
17728 finish_cmds=
17729 finish_eval=
17730 shlibpath_var=
17731 shlibpath_overrides_runpath=unknown
17732 version_type=none
17733 dynamic_linker="$host_os ld.so"
17734 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17735 need_lib_prefix=unknown
17736 hardcode_into_libs=no
17737
17738 # when you set need_version to no, make sure it does not cause -set_version
17739 # flags to be left without arguments
17740 need_version=unknown
17741
17742
17743
17744 case $host_os in
17745 aix3*)
17746 version_type=linux # correct to gnu/linux during the next big refactor
17747 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
17748 shlibpath_var=LIBPATH
17749
17750 # AIX 3 has no versioning support, so we append a major version to the name.
17751 soname_spec='$libname$release$shared_ext$major'
17752 ;;
17753
17754 aix[4-9]*)
17755 version_type=linux # correct to gnu/linux during the next big refactor
17756 need_lib_prefix=no
17757 need_version=no
17758 hardcode_into_libs=yes
17759 if test ia64 = "$host_cpu"; then
17760 # AIX 5 supports IA64
17761 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
17762 shlibpath_var=LD_LIBRARY_PATH
17763 else
17764 # With GCC up to 2.95.x, collect2 would create an import file
17765 # for dependence libraries. The import file would start with
17766 # the line '#! .'. This would cause the generated library to
17767 # depend on '.', always an invalid library. This was fixed in
17768 # development snapshots of GCC prior to 3.0.
17769 case $host_os in
17770 aix4 | aix4.[01] | aix4.[01].*)
17771 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17772 echo ' yes '
17773 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
17774 :
17775 else
17776 can_build_shared=no
17777 fi
17778 ;;
17779 esac
17780 # Using Import Files as archive members, it is possible to support
17781 # filename-based versioning of shared library archives on AIX. While
17782 # this would work for both with and without runtime linking, it will
17783 # prevent static linking of such archives. So we do filename-based
17784 # shared library versioning with .so extension only, which is used
17785 # when both runtime linking and shared linking is enabled.
17786 # Unfortunately, runtime linking may impact performance, so we do
17787 # not want this to be the default eventually. Also, we use the
17788 # versioned .so libs for executables only if there is the -brtl
17789 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
17790 # To allow for filename-based versioning support, we need to create
17791 # libNAME.so.V as an archive file, containing:
17792 # *) an Import File, referring to the versioned filename of the
17793 # archive as well as the shared archive member, telling the
17794 # bitwidth (32 or 64) of that shared object, and providing the
17795 # list of exported symbols of that shared object, eventually
17796 # decorated with the 'weak' keyword
17797 # *) the shared object with the F_LOADONLY flag set, to really avoid
17798 # it being seen by the linker.
17799 # At run time we better use the real file rather than another symlink,
17800 # but for link time we create the symlink libNAME.so -> libNAME.so.V
17801
17802 case $with_aix_soname,$aix_use_runtimelinking in
17803 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
17804 # soname into executable. Probably we can add versioning support to
17805 # collect2, so additional links can be useful in future.
17806 aix,yes) # traditional libtool
17807 dynamic_linker='AIX unversionable lib.so'
17808 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17809 # instead of lib<name>.a to let people know that these are not
17810 # typical AIX shared libraries.
17811 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17812 ;;
17813 aix,no) # traditional AIX only
17814 dynamic_linker='AIX lib.a(lib.so.V)'
17815 # We preserve .a as extension for shared libraries through AIX4.2
17816 # and later when we are not doing run time linking.
17817 library_names_spec='$libname$release.a $libname.a'
17818 soname_spec='$libname$release$shared_ext$major'
17819 ;;
17820 svr4,*) # full svr4 only
17821 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
17822 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
17823 # We do not specify a path in Import Files, so LIBPATH fires.
17824 shlibpath_overrides_runpath=yes
17825 ;;
17826 *,yes) # both, prefer svr4
17827 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
17828 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
17829 # unpreferred sharedlib libNAME.a needs extra handling
17830 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"'
17831 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"'
17832 # We do not specify a path in Import Files, so LIBPATH fires.
17833 shlibpath_overrides_runpath=yes
17834 ;;
17835 *,no) # both, prefer aix
17836 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
17837 library_names_spec='$libname$release.a $libname.a'
17838 soname_spec='$libname$release$shared_ext$major'
17839 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
17840 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)'
17841 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"'
17842 ;;
17843 esac
17844 shlibpath_var=LIBPATH
17845 fi
17846 ;;
17847
17848 amigaos*)
17849 case $host_cpu in
17850 powerpc)
17851 # Since July 2007 AmigaOS4 officially supports .so libraries.
17852 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17853 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17854 ;;
17855 m68k)
17856 library_names_spec='$libname.ixlibrary $libname.a'
17857 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17858 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'
17859 ;;
17860 esac
17861 ;;
17862
17863 beos*)
17864 library_names_spec='$libname$shared_ext'
17865 dynamic_linker="$host_os ld.so"
17866 shlibpath_var=LIBRARY_PATH
17867 ;;
17868
17869 bsdi[45]*)
17870 version_type=linux # correct to gnu/linux during the next big refactor
17871 need_version=no
17872 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17873 soname_spec='$libname$release$shared_ext$major'
17874 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17875 shlibpath_var=LD_LIBRARY_PATH
17876 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17877 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17878 # the default ld.so.conf also contains /usr/contrib/lib and
17879 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17880 # libtool to hard-code these into programs
17881 ;;
17882
17883 cygwin* | mingw* | pw32* | cegcc*)
17884 version_type=windows
17885 shrext_cmds=.dll
17886 need_version=no
17887 need_lib_prefix=no
17888
17889 case $GCC,$cc_basename in
17890 yes,*)
17891 # gcc
17892 library_names_spec='$libname.dll.a'
17893 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17894 postinstall_cmds='base_file=`basename \$file`~
17895 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
17896 dldir=$destdir/`dirname \$dlpath`~
17897 test -d \$dldir || mkdir -p \$dldir~
17898 $install_prog $dir/$dlname \$dldir/$dlname~
17899 chmod a+x \$dldir/$dlname~
17900 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17901 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17902 fi'
17903 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17904 dlpath=$dir/\$dldll~
17905 $RM \$dlpath'
17906 shlibpath_overrides_runpath=yes
17907
17908 case $host_os in
17909 cygwin*)
17910 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17911 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17912
17913 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
17914 ;;
17915 mingw* | cegcc*)
17916 # MinGW DLLs use traditional 'lib' prefix
17917 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17918 ;;
17919 pw32*)
17920 # pw32 DLLs use 'pw' prefix rather than 'lib'
17921 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17922 ;;
17923 esac
17924 dynamic_linker='Win32 ld.exe'
17925 ;;
17926
17927 *,cl* | *,icl*)
17928 # Native MSVC or ICC
17929 libname_spec='$name'
17930 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17931 library_names_spec='$libname.dll.lib'
17932
17933 case $build_os in
17934 mingw*)
17935 sys_lib_search_path_spec=
17936 lt_save_ifs=$IFS
17937 IFS=';'
17938 for lt_path in $LIB
17939 do
17940 IFS=$lt_save_ifs
17941 # Let DOS variable expansion print the short 8.3 style file name.
17942 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
17943 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
17944 done
17945 IFS=$lt_save_ifs
17946 # Convert to MSYS style.
17947 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
17948 ;;
17949 cygwin*)
17950 # Convert to unix form, then to dos form, then back to unix form
17951 # but this time dos style (no spaces!) so that the unix form looks
17952 # like /cygdrive/c/PROGRA~1:/cygdr...
17953 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
17954 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
17955 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17956 ;;
17957 *)
17958 sys_lib_search_path_spec=$LIB
17959 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
17960 # It is most probably a Windows format PATH.
17961 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17962 else
17963 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17964 fi
17965 # FIXME: find the short name or the path components, as spaces are
17966 # common. (e.g. "Program Files" -> "PROGRA~1")
17967 ;;
17968 esac
17969
17970 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17971 postinstall_cmds='base_file=`basename \$file`~
17972 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
17973 dldir=$destdir/`dirname \$dlpath`~
17974 test -d \$dldir || mkdir -p \$dldir~
17975 $install_prog $dir/$dlname \$dldir/$dlname'
17976 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17977 dlpath=$dir/\$dldll~
17978 $RM \$dlpath'
17979 shlibpath_overrides_runpath=yes
17980 dynamic_linker='Win32 link.exe'
17981 ;;
17982
17983 *)
17984 # Assume MSVC and ICC wrapper
17985 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
17986 dynamic_linker='Win32 ld.exe'
17987 ;;
17988 esac
17989 # FIXME: first we should search . and the directory the executable is in
17990 shlibpath_var=PATH
17991 ;;
17992
17993 darwin* | rhapsody*)
17994 dynamic_linker="$host_os dyld"
17995 version_type=darwin
17996 need_lib_prefix=no
17997 need_version=no
17998 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
17999 soname_spec='$libname$release$major$shared_ext'
18000 shlibpath_overrides_runpath=yes
18001 shlibpath_var=DYLD_LIBRARY_PATH
18002 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18003
18004 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
18005 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18006 ;;
18007
18008 dgux*)
18009 version_type=linux # correct to gnu/linux during the next big refactor
18010 need_lib_prefix=no
18011 need_version=no
18012 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18013 soname_spec='$libname$release$shared_ext$major'
18014 shlibpath_var=LD_LIBRARY_PATH
18015 ;;
18016
18017 freebsd* | dragonfly* | midnightbsd*)
18018 # DragonFly does not have aout. When/if they implement a new
18019 # versioning mechanism, adjust this.
18020 if test -x /usr/bin/objformat; then
18021 objformat=`/usr/bin/objformat`
18022 else
18023 case $host_os in
18024 freebsd[23].*) objformat=aout ;;
18025 *) objformat=elf ;;
18026 esac
18027 fi
18028 version_type=freebsd-$objformat
18029 case $version_type in
18030 freebsd-elf*)
18031 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18032 soname_spec='$libname$release$shared_ext$major'
18033 need_version=no
18034 need_lib_prefix=no
18035 ;;
18036 freebsd-*)
18037 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
18038 need_version=yes
18039 ;;
18040 esac
18041 shlibpath_var=LD_LIBRARY_PATH
18042 case $host_os in
18043 freebsd2.*)
18044 shlibpath_overrides_runpath=yes
18045 ;;
18046 freebsd3.[01]* | freebsdelf3.[01]*)
18047 shlibpath_overrides_runpath=yes
18048 hardcode_into_libs=yes
18049 ;;
18050 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18051 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18052 shlibpath_overrides_runpath=no
18053 hardcode_into_libs=yes
18054 ;;
18055 *) # from 4.6 on, and DragonFly
18056 shlibpath_overrides_runpath=yes
18057 hardcode_into_libs=yes
18058 ;;
18059 esac
18060 ;;
18061
18062 haiku*)
18063 version_type=linux # correct to gnu/linux during the next big refactor
18064 need_lib_prefix=no
18065 need_version=no
18066 dynamic_linker="$host_os runtime_loader"
18067 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18068 soname_spec='$libname$release$shared_ext$major'
18069 shlibpath_var=LIBRARY_PATH
18070 shlibpath_overrides_runpath=no
18071 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
18072 hardcode_into_libs=yes
18073 ;;
18074
18075 hpux9* | hpux10* | hpux11*)
18076 # Give a soname corresponding to the major version so that dld.sl refuses to
18077 # link against other versions.
18078 version_type=sunos
18079 need_lib_prefix=no
18080 need_version=no
18081 case $host_cpu in
18082 ia64*)
18083 shrext_cmds='.so'
18084 hardcode_into_libs=yes
18085 dynamic_linker="$host_os dld.so"
18086 shlibpath_var=LD_LIBRARY_PATH
18087 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18088 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18089 soname_spec='$libname$release$shared_ext$major'
18090 if test 32 = "$HPUX_IA64_MODE"; then
18091 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18092 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
18093 else
18094 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18095 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
18096 fi
18097 ;;
18098 hppa*64*)
18099 shrext_cmds='.sl'
18100 hardcode_into_libs=yes
18101 dynamic_linker="$host_os dld.sl"
18102 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18103 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18104 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18105 soname_spec='$libname$release$shared_ext$major'
18106 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18107 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18108 ;;
18109 *)
18110 shrext_cmds='.sl'
18111 dynamic_linker="$host_os dld.sl"
18112 shlibpath_var=SHLIB_PATH
18113 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18114 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18115 soname_spec='$libname$release$shared_ext$major'
18116 ;;
18117 esac
18118 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
18119 postinstall_cmds='chmod 555 $lib'
18120 # or fails outright, so override atomically:
18121 install_override_mode=555
18122 ;;
18123
18124 interix[3-9]*)
18125 version_type=linux # correct to gnu/linux during the next big refactor
18126 need_lib_prefix=no
18127 need_version=no
18128 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18129 soname_spec='$libname$release$shared_ext$major'
18130 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18131 shlibpath_var=LD_LIBRARY_PATH
18132 shlibpath_overrides_runpath=no
18133 hardcode_into_libs=yes
18134 ;;
18135
18136 irix5* | irix6* | nonstopux*)
18137 case $host_os in
18138 nonstopux*) version_type=nonstopux ;;
18139 *)
18140 if test yes = "$lt_cv_prog_gnu_ld"; then
18141 version_type=linux # correct to gnu/linux during the next big refactor
18142 else
18143 version_type=irix
18144 fi ;;
18145 esac
18146 need_lib_prefix=no
18147 need_version=no
18148 soname_spec='$libname$release$shared_ext$major'
18149 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
18150 case $host_os in
18151 irix5* | nonstopux*)
18152 libsuff= shlibsuff=
18153 ;;
18154 *)
18155 case $LD in # libtool.m4 will add one of these switches to LD
18156 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18157 libsuff= shlibsuff= libmagic=32-bit;;
18158 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18159 libsuff=32 shlibsuff=N32 libmagic=N32;;
18160 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18161 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18162 *) libsuff= shlibsuff= libmagic=never-match;;
18163 esac
18164 ;;
18165 esac
18166 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18167 shlibpath_overrides_runpath=no
18168 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
18169 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
18170 hardcode_into_libs=yes
18171 ;;
18172
18173 # No shared lib support for Linux oldld, aout, or coff.
18174 linux*oldld* | linux*aout* | linux*coff*)
18175 dynamic_linker=no
18176 ;;
18177
18178 linux*android*)
18179 version_type=none # Android doesn't support versioned libraries.
18180 need_lib_prefix=no
18181 need_version=no
18182 library_names_spec='$libname$release$shared_ext'
18183 soname_spec='$libname$release$shared_ext'
18184 finish_cmds=
18185 shlibpath_var=LD_LIBRARY_PATH
18186 shlibpath_overrides_runpath=yes
18187
18188 # This implies no fast_install, which is unacceptable.
18189 # Some rework will be needed to allow for fast_install
18190 # before this can be enabled.
18191 hardcode_into_libs=yes
18192
18193 dynamic_linker='Android linker'
18194 # Don't embed -rpath directories since the linker doesn't support them.
18195 hardcode_libdir_flag_spec='-L$libdir'
18196 ;;
18197
18198 # This must be glibc/ELF.
18199 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
18200 version_type=linux # correct to gnu/linux during the next big refactor
18201 need_lib_prefix=no
18202 need_version=no
18203 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18204 soname_spec='$libname$release$shared_ext$major'
18205 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18206 shlibpath_var=LD_LIBRARY_PATH
18207 shlibpath_overrides_runpath=no
18208
18209 # Some binutils ld are patched to set DT_RUNPATH
18210 if test ${lt_cv_shlibpath_overrides_runpath+y}
18211 then :
18212 printf %s "(cached) " >&6
18213 else $as_nop
18214 lt_cv_shlibpath_overrides_runpath=no
18215 save_LDFLAGS=$LDFLAGS
18216 save_libdir=$libdir
18217 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
18218 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
18219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18220 /* end confdefs.h. */
18221
18222 int
18223 main (void)
18224 {
18225
18226 ;
18227 return 0;
18228 }
18229 _ACEOF
18230 if ac_fn_c_try_link "$LINENO"
18231 then :
18232 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
18233 then :
18234 lt_cv_shlibpath_overrides_runpath=yes
18235 fi
18236 fi
18237 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18238 conftest$ac_exeext conftest.$ac_ext
18239 LDFLAGS=$save_LDFLAGS
18240 libdir=$save_libdir
18241
18242 fi
18243
18244 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
18245
18246 # This implies no fast_install, which is unacceptable.
18247 # Some rework will be needed to allow for fast_install
18248 # before this can be enabled.
18249 hardcode_into_libs=yes
18250
18251 # Ideally, we could use ldconfig to report *all* directores which are
18252 # searched for libraries, however this is still not possible. Aside from not
18253 # being certain /sbin/ldconfig is available, command
18254 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
18255 # even though it is searched at run-time. Try to do the best guess by
18256 # appending ld.so.conf contents (and includes) to the search path.
18257 if test -f /etc/ld.so.conf; then
18258 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' ' '`
18259 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18260 fi
18261
18262 # We used to test for /lib/ld.so.1 and disable shared libraries on
18263 # powerpc, because MkLinux only supported shared libraries with the
18264 # GNU dynamic linker. Since this was broken with cross compilers,
18265 # most powerpc-linux boxes support dynamic linking these days and
18266 # people can always --disable-shared, the test was removed, and we
18267 # assume the GNU/Linux dynamic linker is in use.
18268 dynamic_linker='GNU/Linux ld.so'
18269 ;;
18270
18271 netbsd*)
18272 version_type=sunos
18273 need_lib_prefix=no
18274 need_version=no
18275 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18276 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
18277 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18278 dynamic_linker='NetBSD (a.out) ld.so'
18279 else
18280 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18281 soname_spec='$libname$release$shared_ext$major'
18282 dynamic_linker='NetBSD ld.elf_so'
18283 fi
18284 shlibpath_var=LD_LIBRARY_PATH
18285 shlibpath_overrides_runpath=yes
18286 hardcode_into_libs=yes
18287 ;;
18288
18289 newsos6)
18290 version_type=linux # correct to gnu/linux during the next big refactor
18291 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18292 shlibpath_var=LD_LIBRARY_PATH
18293 shlibpath_overrides_runpath=yes
18294 ;;
18295
18296 *nto* | *qnx*)
18297 version_type=qnx
18298 need_lib_prefix=no
18299 need_version=no
18300 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18301 soname_spec='$libname$release$shared_ext$major'
18302 shlibpath_var=LD_LIBRARY_PATH
18303 shlibpath_overrides_runpath=no
18304 hardcode_into_libs=yes
18305 dynamic_linker='ldqnx.so'
18306 ;;
18307
18308 openbsd* | bitrig*)
18309 version_type=sunos
18310 sys_lib_dlsearch_path_spec=/usr/lib
18311 need_lib_prefix=no
18312 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
18313 need_version=no
18314 else
18315 need_version=yes
18316 fi
18317 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
18318 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18319 shlibpath_var=LD_LIBRARY_PATH
18320 shlibpath_overrides_runpath=yes
18321 ;;
18322
18323 os2*)
18324 libname_spec='$name'
18325 version_type=windows
18326 shrext_cmds=.dll
18327 need_version=no
18328 need_lib_prefix=no
18329 # OS/2 can only load a DLL with a base name of 8 characters or less.
18330 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
18331 v=$($ECHO $release$versuffix | tr -d .-);
18332 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
18333 $ECHO $n$v`$shared_ext'
18334 library_names_spec='${libname}_dll.$libext'
18335 dynamic_linker='OS/2 ld.exe'
18336 shlibpath_var=BEGINLIBPATH
18337 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18338 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18339 postinstall_cmds='base_file=`basename \$file`~
18340 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
18341 dldir=$destdir/`dirname \$dlpath`~
18342 test -d \$dldir || mkdir -p \$dldir~
18343 $install_prog $dir/$dlname \$dldir/$dlname~
18344 chmod a+x \$dldir/$dlname~
18345 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
18346 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
18347 fi'
18348 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
18349 dlpath=$dir/\$dldll~
18350 $RM \$dlpath'
18351 ;;
18352
18353 osf3* | osf4* | osf5*)
18354 version_type=osf
18355 need_lib_prefix=no
18356 need_version=no
18357 soname_spec='$libname$release$shared_ext$major'
18358 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18359 shlibpath_var=LD_LIBRARY_PATH
18360 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18361 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18362 ;;
18363
18364 rdos*)
18365 dynamic_linker=no
18366 ;;
18367
18368 solaris*)
18369 version_type=linux # correct to gnu/linux during the next big refactor
18370 need_lib_prefix=no
18371 need_version=no
18372 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18373 soname_spec='$libname$release$shared_ext$major'
18374 shlibpath_var=LD_LIBRARY_PATH
18375 shlibpath_overrides_runpath=yes
18376 hardcode_into_libs=yes
18377 # ldd complains unless libraries are executable
18378 postinstall_cmds='chmod +x $lib'
18379 ;;
18380
18381 sunos4*)
18382 version_type=sunos
18383 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
18384 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18385 shlibpath_var=LD_LIBRARY_PATH
18386 shlibpath_overrides_runpath=yes
18387 if test yes = "$with_gnu_ld"; then
18388 need_lib_prefix=no
18389 fi
18390 need_version=yes
18391 ;;
18392
18393 sysv4 | sysv4.3*)
18394 version_type=linux # correct to gnu/linux during the next big refactor
18395 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18396 soname_spec='$libname$release$shared_ext$major'
18397 shlibpath_var=LD_LIBRARY_PATH
18398 case $host_vendor in
18399 sni)
18400 shlibpath_overrides_runpath=no
18401 need_lib_prefix=no
18402 runpath_var=LD_RUN_PATH
18403 ;;
18404 siemens)
18405 need_lib_prefix=no
18406 ;;
18407 motorola)
18408 need_lib_prefix=no
18409 need_version=no
18410 shlibpath_overrides_runpath=no
18411 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18412 ;;
18413 esac
18414 ;;
18415
18416 sysv4*MP*)
18417 if test -d /usr/nec; then
18418 version_type=linux # correct to gnu/linux during the next big refactor
18419 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
18420 soname_spec='$libname$shared_ext.$major'
18421 shlibpath_var=LD_LIBRARY_PATH
18422 fi
18423 ;;
18424
18425 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18426 version_type=sco
18427 need_lib_prefix=no
18428 need_version=no
18429 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
18430 soname_spec='$libname$release$shared_ext$major'
18431 shlibpath_var=LD_LIBRARY_PATH
18432 shlibpath_overrides_runpath=yes
18433 hardcode_into_libs=yes
18434 if test yes = "$with_gnu_ld"; then
18435 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18436 else
18437 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18438 case $host_os in
18439 sco3.2v5*)
18440 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18441 ;;
18442 esac
18443 fi
18444 sys_lib_dlsearch_path_spec='/usr/lib'
18445 ;;
18446
18447 tpf*)
18448 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
18449 version_type=linux # correct to gnu/linux during the next big refactor
18450 need_lib_prefix=no
18451 need_version=no
18452 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18453 shlibpath_var=LD_LIBRARY_PATH
18454 shlibpath_overrides_runpath=no
18455 hardcode_into_libs=yes
18456 ;;
18457
18458 uts4*)
18459 version_type=linux # correct to gnu/linux during the next big refactor
18460 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18461 soname_spec='$libname$release$shared_ext$major'
18462 shlibpath_var=LD_LIBRARY_PATH
18463 ;;
18464
18465 *)
18466 dynamic_linker=no
18467 ;;
18468 esac
18469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
18470 printf "%s\n" "$dynamic_linker" >&6; }
18471 test no = "$dynamic_linker" && can_build_shared=no
18472
18473 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18474 if test yes = "$GCC"; then
18475 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18476 fi
18477
18478 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
18479 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
18480 fi
18481
18482 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
18483 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
18484 fi
18485
18486 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
18487 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
18488
18489 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
18490 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
18491
18492 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
18493 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
18494
18495
18496
18497
18498
18499
18500
18501
18502
18503
18504
18505
18506
18507
18508
18509
18510
18511
18512
18513
18514
18515
18516
18517
18518
18519
18520
18521
18522
18523
18524
18525
18526
18527
18528
18529
18530
18531
18532
18533
18534
18535
18536
18537
18538
18539
18540
18541
18542
18543
18544
18545
18546
18547
18548
18549
18550
18551
18552
18553
18554
18555
18556
18557
18558
18559
18560
18561
18562
18563
18564
18565
18566
18567
18568
18569
18570
18571
18572
18573
18574
18575
18576
18577
18578
18579
18580
18581
18582
18583
18584
18585
18586
18587
18588
18589
18590
18591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
18592 printf %s "checking how to hardcode library paths into programs... " >&6; }
18593 hardcode_action=
18594 if test -n "$hardcode_libdir_flag_spec" ||
18595 test -n "$runpath_var" ||
18596 test yes = "$hardcode_automatic"; then
18597
18598 # We can hardcode non-existent directories.
18599 if test no != "$hardcode_direct" &&
18600 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18601 # have to relink, otherwise we might link with an installed library
18602 # when we should be linking with a yet-to-be-installed one
18603 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
18604 test no != "$hardcode_minus_L"; then
18605 # Linking always hardcodes the temporary library directory.
18606 hardcode_action=relink
18607 else
18608 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18609 hardcode_action=immediate
18610 fi
18611 else
18612 # We cannot hardcode anything, or else we can only hardcode existing
18613 # directories.
18614 hardcode_action=unsupported
18615 fi
18616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
18617 printf "%s\n" "$hardcode_action" >&6; }
18618
18619 if test relink = "$hardcode_action" ||
18620 test yes = "$inherit_rpath"; then
18621 # Fast installation is not supported
18622 enable_fast_install=no
18623 elif test yes = "$shlibpath_overrides_runpath" ||
18624 test no = "$enable_shared"; then
18625 # Fast installation is not necessary
18626 enable_fast_install=needless
18627 fi
18628
18629
18630
18631
18632
18633
18634 if test yes != "$enable_dlopen"; then
18635 enable_dlopen=unknown
18636 enable_dlopen_self=unknown
18637 enable_dlopen_self_static=unknown
18638 else
18639 lt_cv_dlopen=no
18640 lt_cv_dlopen_libs=
18641
18642 case $host_os in
18643 beos*)
18644 lt_cv_dlopen=load_add_on
18645 lt_cv_dlopen_libs=
18646 lt_cv_dlopen_self=yes
18647 ;;
18648
18649 mingw* | pw32* | cegcc*)
18650 lt_cv_dlopen=LoadLibrary
18651 lt_cv_dlopen_libs=
18652 ;;
18653
18654 cygwin*)
18655 lt_cv_dlopen=dlopen
18656 lt_cv_dlopen_libs=
18657 ;;
18658
18659 darwin*)
18660 # if libdl is installed we need to link against it
18661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
18662 printf %s "checking for dlopen in -ldl... " >&6; }
18663 if test ${ac_cv_lib_dl_dlopen+y}
18664 then :
18665 printf %s "(cached) " >&6
18666 else $as_nop
18667 ac_check_lib_save_LIBS=$LIBS
18668 LIBS="-ldl $LIBS"
18669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18670 /* end confdefs.h. */
18671
18672 /* Override any GCC internal prototype to avoid an error.
18673 Use char because int might match the return type of a GCC
18674 builtin and then its argument prototype would still apply. */
18675 char dlopen ();
18676 int
18677 main (void)
18678 {
18679 return dlopen ();
18680 ;
18681 return 0;
18682 }
18683 _ACEOF
18684 if ac_fn_c_try_link "$LINENO"
18685 then :
18686 ac_cv_lib_dl_dlopen=yes
18687 else $as_nop
18688 ac_cv_lib_dl_dlopen=no
18689 fi
18690 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18691 conftest$ac_exeext conftest.$ac_ext
18692 LIBS=$ac_check_lib_save_LIBS
18693 fi
18694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18695 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
18696 if test "x$ac_cv_lib_dl_dlopen" = xyes
18697 then :
18698 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
18699 else $as_nop
18700
18701 lt_cv_dlopen=dyld
18702 lt_cv_dlopen_libs=
18703 lt_cv_dlopen_self=yes
18704
18705 fi
18706
18707 ;;
18708
18709 tpf*)
18710 # Don't try to run any link tests for TPF. We know it's impossible
18711 # because TPF is a cross-compiler, and we know how we open DSOs.
18712 lt_cv_dlopen=dlopen
18713 lt_cv_dlopen_libs=
18714 lt_cv_dlopen_self=no
18715 ;;
18716
18717 *)
18718 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
18719 if test "x$ac_cv_func_shl_load" = xyes
18720 then :
18721 lt_cv_dlopen=shl_load
18722 else $as_nop
18723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
18724 printf %s "checking for shl_load in -ldld... " >&6; }
18725 if test ${ac_cv_lib_dld_shl_load+y}
18726 then :
18727 printf %s "(cached) " >&6
18728 else $as_nop
18729 ac_check_lib_save_LIBS=$LIBS
18730 LIBS="-ldld $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 shl_load ();
18738 int
18739 main (void)
18740 {
18741 return shl_load ();
18742 ;
18743 return 0;
18744 }
18745 _ACEOF
18746 if ac_fn_c_try_link "$LINENO"
18747 then :
18748 ac_cv_lib_dld_shl_load=yes
18749 else $as_nop
18750 ac_cv_lib_dld_shl_load=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_dld_shl_load" >&5
18757 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
18758 if test "x$ac_cv_lib_dld_shl_load" = xyes
18759 then :
18760 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
18761 else $as_nop
18762 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
18763 if test "x$ac_cv_func_dlopen" = xyes
18764 then :
18765 lt_cv_dlopen=dlopen
18766 else $as_nop
18767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
18768 printf %s "checking for dlopen in -ldl... " >&6; }
18769 if test ${ac_cv_lib_dl_dlopen+y}
18770 then :
18771 printf %s "(cached) " >&6
18772 else $as_nop
18773 ac_check_lib_save_LIBS=$LIBS
18774 LIBS="-ldl $LIBS"
18775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18776 /* end confdefs.h. */
18777
18778 /* Override any GCC internal prototype to avoid an error.
18779 Use char because int might match the return type of a GCC
18780 builtin and then its argument prototype would still apply. */
18781 char dlopen ();
18782 int
18783 main (void)
18784 {
18785 return dlopen ();
18786 ;
18787 return 0;
18788 }
18789 _ACEOF
18790 if ac_fn_c_try_link "$LINENO"
18791 then :
18792 ac_cv_lib_dl_dlopen=yes
18793 else $as_nop
18794 ac_cv_lib_dl_dlopen=no
18795 fi
18796 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18797 conftest$ac_exeext conftest.$ac_ext
18798 LIBS=$ac_check_lib_save_LIBS
18799 fi
18800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18801 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
18802 if test "x$ac_cv_lib_dl_dlopen" = xyes
18803 then :
18804 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
18805 else $as_nop
18806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
18807 printf %s "checking for dlopen in -lsvld... " >&6; }
18808 if test ${ac_cv_lib_svld_dlopen+y}
18809 then :
18810 printf %s "(cached) " >&6
18811 else $as_nop
18812 ac_check_lib_save_LIBS=$LIBS
18813 LIBS="-lsvld $LIBS"
18814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18815 /* end confdefs.h. */
18816
18817 /* Override any GCC internal prototype to avoid an error.
18818 Use char because int might match the return type of a GCC
18819 builtin and then its argument prototype would still apply. */
18820 char dlopen ();
18821 int
18822 main (void)
18823 {
18824 return dlopen ();
18825 ;
18826 return 0;
18827 }
18828 _ACEOF
18829 if ac_fn_c_try_link "$LINENO"
18830 then :
18831 ac_cv_lib_svld_dlopen=yes
18832 else $as_nop
18833 ac_cv_lib_svld_dlopen=no
18834 fi
18835 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18836 conftest$ac_exeext conftest.$ac_ext
18837 LIBS=$ac_check_lib_save_LIBS
18838 fi
18839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
18840 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
18841 if test "x$ac_cv_lib_svld_dlopen" = xyes
18842 then :
18843 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
18844 else $as_nop
18845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
18846 printf %s "checking for dld_link in -ldld... " >&6; }
18847 if test ${ac_cv_lib_dld_dld_link+y}
18848 then :
18849 printf %s "(cached) " >&6
18850 else $as_nop
18851 ac_check_lib_save_LIBS=$LIBS
18852 LIBS="-ldld $LIBS"
18853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18854 /* end confdefs.h. */
18855
18856 /* Override any GCC internal prototype to avoid an error.
18857 Use char because int might match the return type of a GCC
18858 builtin and then its argument prototype would still apply. */
18859 char dld_link ();
18860 int
18861 main (void)
18862 {
18863 return dld_link ();
18864 ;
18865 return 0;
18866 }
18867 _ACEOF
18868 if ac_fn_c_try_link "$LINENO"
18869 then :
18870 ac_cv_lib_dld_dld_link=yes
18871 else $as_nop
18872 ac_cv_lib_dld_dld_link=no
18873 fi
18874 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18875 conftest$ac_exeext conftest.$ac_ext
18876 LIBS=$ac_check_lib_save_LIBS
18877 fi
18878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
18879 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
18880 if test "x$ac_cv_lib_dld_dld_link" = xyes
18881 then :
18882 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
18883 fi
18884
18885
18886 fi
18887
18888
18889 fi
18890
18891
18892 fi
18893
18894
18895 fi
18896
18897
18898 fi
18899
18900 ;;
18901 esac
18902
18903 if test no = "$lt_cv_dlopen"; then
18904 enable_dlopen=no
18905 else
18906 enable_dlopen=yes
18907 fi
18908
18909 case $lt_cv_dlopen in
18910 dlopen)
18911 save_CPPFLAGS=$CPPFLAGS
18912 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18913
18914 save_LDFLAGS=$LDFLAGS
18915 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18916
18917 save_LIBS=$LIBS
18918 LIBS="$lt_cv_dlopen_libs $LIBS"
18919
18920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
18921 printf %s "checking whether a program can dlopen itself... " >&6; }
18922 if test ${lt_cv_dlopen_self+y}
18923 then :
18924 printf %s "(cached) " >&6
18925 else $as_nop
18926 if test yes = "$cross_compiling"; then :
18927 lt_cv_dlopen_self=cross
18928 else
18929 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18930 lt_status=$lt_dlunknown
18931 cat > conftest.$ac_ext <<_LT_EOF
18932 #line $LINENO "configure"
18933 #include "confdefs.h"
18934
18935 #if HAVE_DLFCN_H
18936 #include <dlfcn.h>
18937 #endif
18938
18939 #include <stdio.h>
18940
18941 #ifdef RTLD_GLOBAL
18942 # define LT_DLGLOBAL RTLD_GLOBAL
18943 #else
18944 # ifdef DL_GLOBAL
18945 # define LT_DLGLOBAL DL_GLOBAL
18946 # else
18947 # define LT_DLGLOBAL 0
18948 # endif
18949 #endif
18950
18951 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18952 find out it does not work in some platform. */
18953 #ifndef LT_DLLAZY_OR_NOW
18954 # ifdef RTLD_LAZY
18955 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18956 # else
18957 # ifdef DL_LAZY
18958 # define LT_DLLAZY_OR_NOW DL_LAZY
18959 # else
18960 # ifdef RTLD_NOW
18961 # define LT_DLLAZY_OR_NOW RTLD_NOW
18962 # else
18963 # ifdef DL_NOW
18964 # define LT_DLLAZY_OR_NOW DL_NOW
18965 # else
18966 # define LT_DLLAZY_OR_NOW 0
18967 # endif
18968 # endif
18969 # endif
18970 # endif
18971 #endif
18972
18973 /* When -fvisibility=hidden is used, assume the code has been annotated
18974 correspondingly for the symbols needed. */
18975 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18976 int fnord () __attribute__((visibility("default")));
18977 #endif
18978
18979 int fnord () { return 42; }
18980 int main ()
18981 {
18982 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18983 int status = $lt_dlunknown;
18984
18985 if (self)
18986 {
18987 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18988 else
18989 {
18990 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18991 else puts (dlerror ());
18992 }
18993 /* dlclose (self); */
18994 }
18995 else
18996 puts (dlerror ());
18997
18998 return status;
18999 }
19000 _LT_EOF
19001 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
19002 (eval $ac_link) 2>&5
19003 ac_status=$?
19004 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19005 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
19006 (./conftest; exit; ) >&5 2>/dev/null
19007 lt_status=$?
19008 case x$lt_status in
19009 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
19010 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
19011 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
19012 esac
19013 else :
19014 # compilation failed
19015 lt_cv_dlopen_self=no
19016 fi
19017 fi
19018 rm -fr conftest*
19019
19020
19021 fi
19022 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
19023 printf "%s\n" "$lt_cv_dlopen_self" >&6; }
19024
19025 if test yes = "$lt_cv_dlopen_self"; then
19026 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
19027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
19028 printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
19029 if test ${lt_cv_dlopen_self_static+y}
19030 then :
19031 printf %s "(cached) " >&6
19032 else $as_nop
19033 if test yes = "$cross_compiling"; then :
19034 lt_cv_dlopen_self_static=cross
19035 else
19036 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19037 lt_status=$lt_dlunknown
19038 cat > conftest.$ac_ext <<_LT_EOF
19039 #line $LINENO "configure"
19040 #include "confdefs.h"
19041
19042 #if HAVE_DLFCN_H
19043 #include <dlfcn.h>
19044 #endif
19045
19046 #include <stdio.h>
19047
19048 #ifdef RTLD_GLOBAL
19049 # define LT_DLGLOBAL RTLD_GLOBAL
19050 #else
19051 # ifdef DL_GLOBAL
19052 # define LT_DLGLOBAL DL_GLOBAL
19053 # else
19054 # define LT_DLGLOBAL 0
19055 # endif
19056 #endif
19057
19058 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19059 find out it does not work in some platform. */
19060 #ifndef LT_DLLAZY_OR_NOW
19061 # ifdef RTLD_LAZY
19062 # define LT_DLLAZY_OR_NOW RTLD_LAZY
19063 # else
19064 # ifdef DL_LAZY
19065 # define LT_DLLAZY_OR_NOW DL_LAZY
19066 # else
19067 # ifdef RTLD_NOW
19068 # define LT_DLLAZY_OR_NOW RTLD_NOW
19069 # else
19070 # ifdef DL_NOW
19071 # define LT_DLLAZY_OR_NOW DL_NOW
19072 # else
19073 # define LT_DLLAZY_OR_NOW 0
19074 # endif
19075 # endif
19076 # endif
19077 # endif
19078 #endif
19079
19080 /* When -fvisibility=hidden is used, assume the code has been annotated
19081 correspondingly for the symbols needed. */
19082 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
19083 int fnord () __attribute__((visibility("default")));
19084 #endif
19085
19086 int fnord () { return 42; }
19087 int main ()
19088 {
19089 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19090 int status = $lt_dlunknown;
19091
19092 if (self)
19093 {
19094 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
19095 else
19096 {
19097 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19098 else puts (dlerror ());
19099 }
19100 /* dlclose (self); */
19101 }
19102 else
19103 puts (dlerror ());
19104
19105 return status;
19106 }
19107 _LT_EOF
19108 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
19109 (eval $ac_link) 2>&5
19110 ac_status=$?
19111 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19112 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
19113 (./conftest; exit; ) >&5 2>/dev/null
19114 lt_status=$?
19115 case x$lt_status in
19116 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
19117 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
19118 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
19119 esac
19120 else :
19121 # compilation failed
19122 lt_cv_dlopen_self_static=no
19123 fi
19124 fi
19125 rm -fr conftest*
19126
19127
19128 fi
19129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
19130 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
19131 fi
19132
19133 CPPFLAGS=$save_CPPFLAGS
19134 LDFLAGS=$save_LDFLAGS
19135 LIBS=$save_LIBS
19136 ;;
19137 esac
19138
19139 case $lt_cv_dlopen_self in
19140 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
19141 *) enable_dlopen_self=unknown ;;
19142 esac
19143
19144 case $lt_cv_dlopen_self_static in
19145 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
19146 *) enable_dlopen_self_static=unknown ;;
19147 esac
19148 fi
19149
19150
19151
19152
19153
19154
19155
19156
19157
19158
19159
19160
19161
19162
19163
19164
19165
19166 striplib=
19167 old_striplib=
19168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
19169 printf %s "checking whether stripping libraries is possible... " >&6; }
19170 if test -z "$STRIP"; then
19171 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19172 printf "%s\n" "no" >&6; }
19173 else
19174 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
19175 old_striplib="$STRIP --strip-debug"
19176 striplib="$STRIP --strip-unneeded"
19177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19178 printf "%s\n" "yes" >&6; }
19179 else
19180 case $host_os in
19181 darwin*)
19182 # FIXME - insert some real tests, host_os isn't really good enough
19183 striplib="$STRIP -x"
19184 old_striplib="$STRIP -S"
19185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19186 printf "%s\n" "yes" >&6; }
19187 ;;
19188 freebsd*)
19189 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
19190 old_striplib="$STRIP --strip-debug"
19191 striplib="$STRIP --strip-unneeded"
19192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19193 printf "%s\n" "yes" >&6; }
19194 else
19195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19196 printf "%s\n" "no" >&6; }
19197 fi
19198 ;;
19199 *)
19200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19201 printf "%s\n" "no" >&6; }
19202 ;;
19203 esac
19204 fi
19205 fi
19206
19207
19208
19209
19210
19211
19212
19213
19214
19215
19216
19217
19218 # Report what library types will actually be built
19219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
19220 printf %s "checking if libtool supports shared libraries... " >&6; }
19221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
19222 printf "%s\n" "$can_build_shared" >&6; }
19223
19224 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
19225 printf %s "checking whether to build shared libraries... " >&6; }
19226 test no = "$can_build_shared" && enable_shared=no
19227
19228 # On AIX, shared libraries and static libraries use the same namespace, and
19229 # are all built from PIC.
19230 case $host_os in
19231 aix3*)
19232 test yes = "$enable_shared" && enable_static=no
19233 if test -n "$RANLIB"; then
19234 archive_cmds="$archive_cmds~\$RANLIB \$lib"
19235 postinstall_cmds='$RANLIB $lib'
19236 fi
19237 ;;
19238
19239 aix[4-9]*)
19240 if test ia64 != "$host_cpu"; then
19241 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
19242 yes,aix,yes) ;; # shared object as lib.so file only
19243 yes,svr4,*) ;; # shared object as lib.so archive member only
19244 yes,*) enable_static=no ;; # shared object in lib.a archive as well
19245 esac
19246 fi
19247 ;;
19248 esac
19249 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
19250 printf "%s\n" "$enable_shared" >&6; }
19251
19252 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
19253 printf %s "checking whether to build static libraries... " >&6; }
19254 # Make sure either enable_shared or enable_static is yes.
19255 test yes = "$enable_shared" || enable_static=yes
19256 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
19257 printf "%s\n" "$enable_static" >&6; }
19258
19259
19260
19261
19262 fi
19263 ac_ext=c
19264 ac_cpp='$CPP $CPPFLAGS'
19265 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19266 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19267 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19268
19269 CC=$lt_save_CC
19270
19271
19272
19273
19274
19275
19276
19277
19278
19279
19280
19281
19282
19283
19284
19285 ac_config_commands="$ac_config_commands libtool"
19286
19287
19288
19289
19290 # Only expand once:
19291
19292
19293
19294
19295
19296 # Define a configure option for an alternate module directory
19297
19298 # Check whether --with-xorg-module-dir was given.
19299 if test ${with_xorg_module_dir+y}
19300 then :
19301 withval=$with_xorg_module_dir; moduledir="$withval"
19302 else $as_nop
19303 moduledir="$libdir/xorg/modules"
19304 fi
19305
19306
19307 # Store the list of server defined optional extensions in REQUIRED_MODULES
19308
19309
19310 SAVE_CFLAGS="$CFLAGS"
19311 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
19312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19313 /* end confdefs.h. */
19314
19315 #include "xorg-server.h"
19316 #if !defined RANDR
19317 #error RANDR not defined
19318 #endif
19319
19320 int
19321 main (void)
19322 {
19323
19324 ;
19325 return 0;
19326 }
19327 _ACEOF
19328 if ac_fn_c_try_compile "$LINENO"
19329 then :
19330 _EXT_CHECK=yes
19331 else $as_nop
19332 _EXT_CHECK=no
19333 fi
19334 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19335 CFLAGS="$SAVE_CFLAGS"
19336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if RANDR is defined" >&5
19337 printf %s "checking if RANDR is defined... " >&6; }
19338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
19339 printf "%s\n" "$_EXT_CHECK" >&6; }
19340 if test "$_EXT_CHECK" != no; then
19341 REQUIRED_MODULES="$REQUIRED_MODULES randrproto"
19342 fi
19343
19344
19345
19346 SAVE_CFLAGS="$CFLAGS"
19347 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
19348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19349 /* end confdefs.h. */
19350
19351 #include "xorg-server.h"
19352 #if !defined RENDER
19353 #error RENDER not defined
19354 #endif
19355
19356 int
19357 main (void)
19358 {
19359
19360 ;
19361 return 0;
19362 }
19363 _ACEOF
19364 if ac_fn_c_try_compile "$LINENO"
19365 then :
19366 _EXT_CHECK=yes
19367 else $as_nop
19368 _EXT_CHECK=no
19369 fi
19370 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19371 CFLAGS="$SAVE_CFLAGS"
19372 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if RENDER is defined" >&5
19373 printf %s "checking if RENDER is defined... " >&6; }
19374 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
19375 printf "%s\n" "$_EXT_CHECK" >&6; }
19376 if test "$_EXT_CHECK" != no; then
19377 REQUIRED_MODULES="$REQUIRED_MODULES renderproto"
19378 fi
19379
19380
19381
19382 SAVE_CFLAGS="$CFLAGS"
19383 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
19384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19385 /* end confdefs.h. */
19386
19387 #include "xorg-server.h"
19388 #if !defined XV
19389 #error XV not defined
19390 #endif
19391
19392 int
19393 main (void)
19394 {
19395
19396 ;
19397 return 0;
19398 }
19399 _ACEOF
19400 if ac_fn_c_try_compile "$LINENO"
19401 then :
19402 _EXT_CHECK=yes
19403 else $as_nop
19404 _EXT_CHECK=no
19405 fi
19406 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19407 CFLAGS="$SAVE_CFLAGS"
19408 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if XV is defined" >&5
19409 printf %s "checking if XV is defined... " >&6; }
19410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
19411 printf "%s\n" "$_EXT_CHECK" >&6; }
19412 if test "$_EXT_CHECK" != no; then
19413 REQUIRED_MODULES="$REQUIRED_MODULES videoproto"
19414 fi
19415
19416
19417
19418 SAVE_CFLAGS="$CFLAGS"
19419 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
19420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19421 /* end confdefs.h. */
19422
19423 #include "xorg-server.h"
19424 #if !defined DPMSExtension
19425 #error DPMSExtension not defined
19426 #endif
19427
19428 int
19429 main (void)
19430 {
19431
19432 ;
19433 return 0;
19434 }
19435 _ACEOF
19436 if ac_fn_c_try_compile "$LINENO"
19437 then :
19438 _EXT_CHECK=yes
19439 else $as_nop
19440 _EXT_CHECK=no
19441 fi
19442 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19443 CFLAGS="$SAVE_CFLAGS"
19444 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if DPMSExtension is defined" >&5
19445 printf %s "checking if DPMSExtension is defined... " >&6; }
19446 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
19447 printf "%s\n" "$_EXT_CHECK" >&6; }
19448 if test "$_EXT_CHECK" != no; then
19449 REQUIRED_MODULES="$REQUIRED_MODULES xextproto"
19450 fi
19451
19452
19453 # Obtain compiler/linker options for the driver dependencies
19454
19455 pkg_failed=no
19456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XORG" >&5
19457 printf %s "checking for XORG... " >&6; }
19458
19459 if test -n "$XORG_CFLAGS"; then
19460 pkg_cv_XORG_CFLAGS="$XORG_CFLAGS"
19461 elif test -n "$PKG_CONFIG"; then
19462 if test -n "$PKG_CONFIG" && \
19463 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.4 xproto fontsproto \$REQUIRED_MODULES\""; } >&5
19464 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.4 xproto fontsproto $REQUIRED_MODULES") 2>&5
19465 ac_status=$?
19466 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19467 test $ac_status = 0; }; then
19468 pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.4 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
19469 test "x$?" != "x0" && pkg_failed=yes
19470 else
19471 pkg_failed=yes
19472 fi
19473 else
19474 pkg_failed=untried
19475 fi
19476 if test -n "$XORG_LIBS"; then
19477 pkg_cv_XORG_LIBS="$XORG_LIBS"
19478 elif test -n "$PKG_CONFIG"; then
19479 if test -n "$PKG_CONFIG" && \
19480 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.4 xproto fontsproto \$REQUIRED_MODULES\""; } >&5
19481 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.4 xproto fontsproto $REQUIRED_MODULES") 2>&5
19482 ac_status=$?
19483 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19484 test $ac_status = 0; }; then
19485 pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.4 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
19486 test "x$?" != "x0" && pkg_failed=yes
19487 else
19488 pkg_failed=yes
19489 fi
19490 else
19491 pkg_failed=untried
19492 fi
19493
19494
19495
19496 if test $pkg_failed = yes; then
19497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19498 printf "%s\n" "no" >&6; }
19499
19500 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19501 _pkg_short_errors_supported=yes
19502 else
19503 _pkg_short_errors_supported=no
19504 fi
19505 if test $_pkg_short_errors_supported = yes; then
19506 XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xorg-server >= 1.4 xproto fontsproto $REQUIRED_MODULES" 2>&1`
19507 else
19508 XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xorg-server >= 1.4 xproto fontsproto $REQUIRED_MODULES" 2>&1`
19509 fi
19510 # Put the nasty error message in config.log where it belongs
19511 echo "$XORG_PKG_ERRORS" >&5
19512
19513 as_fn_error $? "Package requirements (xorg-server >= 1.4 xproto fontsproto $REQUIRED_MODULES) were not met:
19514
19515 $XORG_PKG_ERRORS
19516
19517 Consider adjusting the PKG_CONFIG_PATH environment variable if you
19518 installed software in a non-standard prefix.
19519
19520 Alternatively, you may set the environment variables XORG_CFLAGS
19521 and XORG_LIBS to avoid the need to call pkg-config.
19522 See the pkg-config man page for more details." "$LINENO" 5
19523 elif test $pkg_failed = untried; then
19524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19525 printf "%s\n" "no" >&6; }
19526 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19527 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
19528 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
19529 is in your PATH or set the PKG_CONFIG environment variable to the full
19530 path to pkg-config.
19531
19532 Alternatively, you may set the environment variables XORG_CFLAGS
19533 and XORG_LIBS to avoid the need to call pkg-config.
19534 See the pkg-config man page for more details.
19535
19536 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
19537 See \`config.log' for more details" "$LINENO" 5; }
19538 else
19539 XORG_CFLAGS=$pkg_cv_XORG_CFLAGS
19540 XORG_LIBS=$pkg_cv_XORG_LIBS
19541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19542 printf "%s\n" "yes" >&6; }
19543
19544 fi
19545
19546 # Checks for libraries.
19547 SAVE_CPPFLAGS="$CPPFLAGS"
19548 CPPFLAGS="$CPPFLAGS $XORG_CFLAGS"
19549 ac_fn_check_decl "$LINENO" "XSERVER_LIBPCIACCESS" "ac_cv_have_decl_XSERVER_LIBPCIACCESS" "#include \"xorg-server.h\"
19550 " "$ac_c_undeclared_builtin_options" "CFLAGS"
19551 if test "x$ac_cv_have_decl_XSERVER_LIBPCIACCESS" = xyes
19552 then :
19553 XSERVER_LIBPCIACCESS=yes
19554 else $as_nop
19555 XSERVER_LIBPCIACCESS=no
19556 fi
19557 ac_fn_c_check_header_compile "$LINENO" "xf1bpp.h" "ac_cv_header_xf1bpp_h" "$ac_includes_default"
19558 if test "x$ac_cv_header_xf1bpp_h" = xyes
19559 then :
19560
19561 printf "%s\n" "#define HAVE_XF1BPP 1" >>confdefs.h
19562
19563 fi
19564
19565 ac_fn_c_check_header_compile "$LINENO" "xf4bpp.h" "ac_cv_header_xf4bpp_h" "$ac_includes_default"
19566 if test "x$ac_cv_header_xf4bpp_h" = xyes
19567 then :
19568
19569 printf "%s\n" "#define HAVE_XF4BPP 1" >>confdefs.h
19570
19571 fi
19572
19573 CPPFLAGS="$SAVE_CPPFLAGS"
19574
19575 # Check whether --enable-xaa was given.
19576 if test ${enable_xaa+y}
19577 then :
19578 enableval=$enable_xaa; XAA="$enableval"
19579 else $as_nop
19580 XAA=auto
19581 fi
19582
19583 if test "x$XAA" != xno; then
19584 save_CFLAGS=$CFLAGS
19585 save_CPPFLAGS=$CPPFLAGS
19586 CFLAGS=$XORG_CFLAGS
19587 CPPFLAGS="$XORG_CFLAGS"
19588 for ac_header in xaa.h
19589 do :
19590 ac_fn_c_check_header_compile "$LINENO" "xaa.h" "ac_cv_header_xaa_h" "$ac_includes_default"
19591 if test "x$ac_cv_header_xaa_h" = xyes
19592 then :
19593 printf "%s\n" "#define HAVE_XAA_H 1" >>confdefs.h
19594 XAA=yes
19595 else $as_nop
19596 XAA=no
19597 fi
19598
19599 done
19600 CFLAGS=$save_CFLAGS
19601 CPPFLAGS=$save_CPPFLAGS
19602 fi
19603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to include XAA support" >&5
19604 printf %s "checking whether to include XAA support... " >&6; }
19605 if test "x$XAA" = xyes; then
19606 XAA_TRUE=
19607 XAA_FALSE='#'
19608 else
19609 XAA_TRUE='#'
19610 XAA_FALSE=
19611 fi
19612
19613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XAA" >&5
19614 printf "%s\n" "$XAA" >&6; }
19615
19616 if test "x$XSERVER_LIBPCIACCESS" = xyes; then
19617
19618 pkg_failed=no
19619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for PCIACCESS" >&5
19620 printf %s "checking for PCIACCESS... " >&6; }
19621
19622 if test -n "$PCIACCESS_CFLAGS"; then
19623 pkg_cv_PCIACCESS_CFLAGS="$PCIACCESS_CFLAGS"
19624 elif test -n "$PKG_CONFIG"; then
19625 if test -n "$PKG_CONFIG" && \
19626 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\""; } >&5
19627 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5
19628 ac_status=$?
19629 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19630 test $ac_status = 0; }; then
19631 pkg_cv_PCIACCESS_CFLAGS=`$PKG_CONFIG --cflags "pciaccess >= 0.8.0" 2>/dev/null`
19632 test "x$?" != "x0" && pkg_failed=yes
19633 else
19634 pkg_failed=yes
19635 fi
19636 else
19637 pkg_failed=untried
19638 fi
19639 if test -n "$PCIACCESS_LIBS"; then
19640 pkg_cv_PCIACCESS_LIBS="$PCIACCESS_LIBS"
19641 elif test -n "$PKG_CONFIG"; then
19642 if test -n "$PKG_CONFIG" && \
19643 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\""; } >&5
19644 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5
19645 ac_status=$?
19646 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19647 test $ac_status = 0; }; then
19648 pkg_cv_PCIACCESS_LIBS=`$PKG_CONFIG --libs "pciaccess >= 0.8.0" 2>/dev/null`
19649 test "x$?" != "x0" && pkg_failed=yes
19650 else
19651 pkg_failed=yes
19652 fi
19653 else
19654 pkg_failed=untried
19655 fi
19656
19657
19658
19659 if test $pkg_failed = yes; then
19660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19661 printf "%s\n" "no" >&6; }
19662
19663 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19664 _pkg_short_errors_supported=yes
19665 else
19666 _pkg_short_errors_supported=no
19667 fi
19668 if test $_pkg_short_errors_supported = yes; then
19669 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "pciaccess >= 0.8.0" 2>&1`
19670 else
19671 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "pciaccess >= 0.8.0" 2>&1`
19672 fi
19673 # Put the nasty error message in config.log where it belongs
19674 echo "$PCIACCESS_PKG_ERRORS" >&5
19675
19676 as_fn_error $? "Package requirements (pciaccess >= 0.8.0) were not met:
19677
19678 $PCIACCESS_PKG_ERRORS
19679
19680 Consider adjusting the PKG_CONFIG_PATH environment variable if you
19681 installed software in a non-standard prefix.
19682
19683 Alternatively, you may set the environment variables PCIACCESS_CFLAGS
19684 and PCIACCESS_LIBS to avoid the need to call pkg-config.
19685 See the pkg-config man page for more details." "$LINENO" 5
19686 elif test $pkg_failed = untried; then
19687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19688 printf "%s\n" "no" >&6; }
19689 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19690 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
19691 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
19692 is in your PATH or set the PKG_CONFIG environment variable to the full
19693 path to pkg-config.
19694
19695 Alternatively, you may set the environment variables PCIACCESS_CFLAGS
19696 and PCIACCESS_LIBS to avoid the need to call pkg-config.
19697 See the pkg-config man page for more details.
19698
19699 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
19700 See \`config.log' for more details" "$LINENO" 5; }
19701 else
19702 PCIACCESS_CFLAGS=$pkg_cv_PCIACCESS_CFLAGS
19703 PCIACCESS_LIBS=$pkg_cv_PCIACCESS_LIBS
19704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19705 printf "%s\n" "yes" >&6; }
19706
19707 fi
19708 XORG_CFLAGS="$XORG_CFLAGS $PCIACCESS_CFLAGS"
19709 fi
19710 if test "x$XSERVER_LIBPCIACCESS" = xyes; then
19711 XSERVER_LIBPCIACCESS_TRUE=
19712 XSERVER_LIBPCIACCESS_FALSE='#'
19713 else
19714 XSERVER_LIBPCIACCESS_TRUE='#'
19715 XSERVER_LIBPCIACCESS_FALSE=
19716 fi
19717
19718
19719
19720
19721
19722 DRIVER_NAME=cirrus
19723
19724
19725 ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile"
19726
19727 cat >confcache <<\_ACEOF
19728 # This file is a shell script that caches the results of configure
19729 # tests run on this system so they can be shared between configure
19730 # scripts and configure runs, see configure's option --config-cache.
19731 # It is not useful on other systems. If it contains results you don't
19732 # want to keep, you may remove or edit it.
19733 #
19734 # config.status only pays attention to the cache file if you give it
19735 # the --recheck option to rerun configure.
19736 #
19737 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19738 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19739 # following values.
19740
19741 _ACEOF
19742
19743 # The following way of writing the cache mishandles newlines in values,
19744 # but we know of no workaround that is simple, portable, and efficient.
19745 # So, we kill variables containing newlines.
19746 # Ultrix sh set writes to stderr and can't be redirected directly,
19747 # and sets the high bit in the cache file unless we assign to the vars.
19748 (
19749 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19750 eval ac_val=\$$ac_var
19751 case $ac_val in #(
19752 *${as_nl}*)
19753 case $ac_var in #(
19754 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
19755 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19756 esac
19757 case $ac_var in #(
19758 _ | IFS | as_nl) ;; #(
19759 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
19760 *) { eval $ac_var=; unset $ac_var;} ;;
19761 esac ;;
19762 esac
19763 done
19764
19765 (set) 2>&1 |
19766 case $as_nl`(ac_space=' '; set) 2>&1` in #(
19767 *${as_nl}ac_space=\ *)
19768 # `set' does not quote correctly, so add quotes: double-quote
19769 # substitution turns \\\\ into \\, and sed turns \\ into \.
19770 sed -n \
19771 "s/'/'\\\\''/g;
19772 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19773 ;; #(
19774 *)
19775 # `set' quotes correctly as required by POSIX, so do not add quotes.
19776 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19777 ;;
19778 esac |
19779 sort
19780 ) |
19781 sed '
19782 /^ac_cv_env_/b end
19783 t clear
19784 :clear
19785 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
19786 t end
19787 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19788 :end' >>confcache
19789 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19790 if test -w "$cache_file"; then
19791 if test "x$cache_file" != "x/dev/null"; then
19792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
19793 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
19794 if test ! -f "$cache_file" || test -h "$cache_file"; then
19795 cat confcache >"$cache_file"
19796 else
19797 case $cache_file in #(
19798 */* | ?:*)
19799 mv -f confcache "$cache_file"$$ &&
19800 mv -f "$cache_file"$$ "$cache_file" ;; #(
19801 *)
19802 mv -f confcache "$cache_file" ;;
19803 esac
19804 fi
19805 fi
19806 else
19807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
19808 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
19809 fi
19810 fi
19811 rm -f confcache
19812
19813 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19814 # Let make expand exec_prefix.
19815 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19816
19817 DEFS=-DHAVE_CONFIG_H
19818
19819 ac_libobjs=
19820 ac_ltlibobjs=
19821 U=
19822 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19823 # 1. Remove the extension, and $U if already installed.
19824 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19825 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
19826 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
19827 # will be set to the directory where LIBOBJS objects are built.
19828 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19829 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
19830 done
19831 LIBOBJS=$ac_libobjs
19832
19833 LTLIBOBJS=$ac_ltlibobjs
19834
19835
19836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
19837 printf %s "checking that generated files are newer than configure... " >&6; }
19838 if test -n "$am_sleep_pid"; then
19839 # Hide warnings about reused PIDs.
19840 wait $am_sleep_pid 2>/dev/null
19841 fi
19842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
19843 printf "%s\n" "done" >&6; }
19844 if test -n "$EXEEXT"; then
19845 am__EXEEXT_TRUE=
19846 am__EXEEXT_FALSE='#'
19847 else
19848 am__EXEEXT_TRUE='#'
19849 am__EXEEXT_FALSE=
19850 fi
19851
19852 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19853 as_fn_error $? "conditional \"AMDEP\" was never defined.
19854 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19855 fi
19856 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19857 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
19858 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19859 fi
19860 if test -z "${XAA_TRUE}" && test -z "${XAA_FALSE}"; then
19861 as_fn_error $? "conditional \"XAA\" was never defined.
19862 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19863 fi
19864 if test -z "${XSERVER_LIBPCIACCESS_TRUE}" && test -z "${XSERVER_LIBPCIACCESS_FALSE}"; then
19865 as_fn_error $? "conditional \"XSERVER_LIBPCIACCESS\" was never defined.
19866 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19867 fi
19868
19869 : "${CONFIG_STATUS=./config.status}"
19870 ac_write_fail=0
19871 ac_clean_files_save=$ac_clean_files
19872 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19873 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19874 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
19875 as_write_fail=0
19876 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
19877 #! $SHELL
19878 # Generated by $as_me.
19879 # Run this file to recreate the current configuration.
19880 # Compiler output produced by configure, useful for debugging
19881 # configure, is in config.log if it exists.
19882
19883 debug=false
19884 ac_cs_recheck=false
19885 ac_cs_silent=false
19886
19887 SHELL=\${CONFIG_SHELL-$SHELL}
19888 export SHELL
19889 _ASEOF
19890 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
19891 ## -------------------- ##
19892 ## M4sh Initialization. ##
19893 ## -------------------- ##
19894
19895 # Be more Bourne compatible
19896 DUALCASE=1; export DUALCASE # for MKS sh
19897 as_nop=:
19898 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
19899 then :
19900 emulate sh
19901 NULLCMD=:
19902 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19903 # is contrary to our usage. Disable this feature.
19904 alias -g '${1+"$@"}'='"$@"'
19905 setopt NO_GLOB_SUBST
19906 else $as_nop
19907 case `(set -o) 2>/dev/null` in #(
19908 *posix*) :
19909 set -o posix ;; #(
19910 *) :
19911 ;;
19912 esac
19913 fi
19914
19915
19916
19917 # Reset variables that may have inherited troublesome values from
19918 # the environment.
19919
19920 # IFS needs to be set, to space, tab, and newline, in precisely that order.
19921 # (If _AS_PATH_WALK were called with IFS unset, it would have the
19922 # side effect of setting IFS to empty, thus disabling word splitting.)
19923 # Quoting is to prevent editors from complaining about space-tab.
19924 as_nl='
19925 '
19926 export as_nl
19927 IFS=" "" $as_nl"
19928
19929 PS1='$ '
19930 PS2='> '
19931 PS4='+ '
19932
19933 # Ensure predictable behavior from utilities with locale-dependent output.
19934 LC_ALL=C
19935 export LC_ALL
19936 LANGUAGE=C
19937 export LANGUAGE
19938
19939 # We cannot yet rely on "unset" to work, but we need these variables
19940 # to be unset--not just set to an empty or harmless value--now, to
19941 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
19942 # also avoids known problems related to "unset" and subshell syntax
19943 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
19944 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
19945 do eval test \${$as_var+y} \
19946 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
19947 done
19948
19949 # Ensure that fds 0, 1, and 2 are open.
19950 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
19951 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
19952 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
19953
19954 # The user is always right.
19955 if ${PATH_SEPARATOR+false} :; then
19956 PATH_SEPARATOR=:
19957 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19958 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19959 PATH_SEPARATOR=';'
19960 }
19961 fi
19962
19963
19964 # Find who we are. Look in the path if we contain no directory separator.
19965 as_myself=
19966 case $0 in #((
19967 *[\\/]* ) as_myself=$0 ;;
19968 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19969 for as_dir in $PATH
19970 do
19971 IFS=$as_save_IFS
19972 case $as_dir in #(((
19973 '') as_dir=./ ;;
19974 */) ;;
19975 *) as_dir=$as_dir/ ;;
19976 esac
19977 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
19978 done
19979 IFS=$as_save_IFS
19980
19981 ;;
19982 esac
19983 # We did not find ourselves, most probably we were run as `sh COMMAND'
19984 # in which case we are not to be found in the path.
19985 if test "x$as_myself" = x; then
19986 as_myself=$0
19987 fi
19988 if test ! -f "$as_myself"; then
19989 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19990 exit 1
19991 fi
19992
19993
19994
19995 # as_fn_error STATUS ERROR [LINENO LOG_FD]
19996 # ----------------------------------------
19997 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19998 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19999 # script with STATUS, using 1 if that was 0.
20000 as_fn_error ()
20001 {
20002 as_status=$1; test $as_status -eq 0 && as_status=1
20003 if test "$4"; then
20004 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
20005 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
20006 fi
20007 printf "%s\n" "$as_me: error: $2" >&2
20008 as_fn_exit $as_status
20009 } # as_fn_error
20010
20011
20012
20013 # as_fn_set_status STATUS
20014 # -----------------------
20015 # Set $? to STATUS, without forking.
20016 as_fn_set_status ()
20017 {
20018 return $1
20019 } # as_fn_set_status
20020
20021 # as_fn_exit STATUS
20022 # -----------------
20023 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
20024 as_fn_exit ()
20025 {
20026 set +e
20027 as_fn_set_status $1
20028 exit $1
20029 } # as_fn_exit
20030
20031 # as_fn_unset VAR
20032 # ---------------
20033 # Portably unset VAR.
20034 as_fn_unset ()
20035 {
20036 { eval $1=; unset $1;}
20037 }
20038 as_unset=as_fn_unset
20039
20040 # as_fn_append VAR VALUE
20041 # ----------------------
20042 # Append the text in VALUE to the end of the definition contained in VAR. Take
20043 # advantage of any shell optimizations that allow amortized linear growth over
20044 # repeated appends, instead of the typical quadratic growth present in naive
20045 # implementations.
20046 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
20047 then :
20048 eval 'as_fn_append ()
20049 {
20050 eval $1+=\$2
20051 }'
20052 else $as_nop
20053 as_fn_append ()
20054 {
20055 eval $1=\$$1\$2
20056 }
20057 fi # as_fn_append
20058
20059 # as_fn_arith ARG...
20060 # ------------------
20061 # Perform arithmetic evaluation on the ARGs, and store the result in the
20062 # global $as_val. Take advantage of shells that can avoid forks. The arguments
20063 # must be portable across $(()) and expr.
20064 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
20065 then :
20066 eval 'as_fn_arith ()
20067 {
20068 as_val=$(( $* ))
20069 }'
20070 else $as_nop
20071 as_fn_arith ()
20072 {
20073 as_val=`expr "$@" || test $? -eq 1`
20074 }
20075 fi # as_fn_arith
20076
20077
20078 if expr a : '\(a\)' >/dev/null 2>&1 &&
20079 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20080 as_expr=expr
20081 else
20082 as_expr=false
20083 fi
20084
20085 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20086 as_basename=basename
20087 else
20088 as_basename=false
20089 fi
20090
20091 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20092 as_dirname=dirname
20093 else
20094 as_dirname=false
20095 fi
20096
20097 as_me=`$as_basename -- "$0" ||
20098 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20099 X"$0" : 'X\(//\)$' \| \
20100 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20101 printf "%s\n" X/"$0" |
20102 sed '/^.*\/\([^/][^/]*\)\/*$/{
20103 s//\1/
20104 q
20105 }
20106 /^X\/\(\/\/\)$/{
20107 s//\1/
20108 q
20109 }
20110 /^X\/\(\/\).*/{
20111 s//\1/
20112 q
20113 }
20114 s/.*/./; q'`
20115
20116 # Avoid depending upon Character Ranges.
20117 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20118 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20119 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20120 as_cr_digits='0123456789'
20121 as_cr_alnum=$as_cr_Letters$as_cr_digits
20122
20123
20124 # Determine whether it's possible to make 'echo' print without a newline.
20125 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
20126 # for compatibility with existing Makefiles.
20127 ECHO_C= ECHO_N= ECHO_T=
20128 case `echo -n x` in #(((((
20129 -n*)
20130 case `echo 'xy\c'` in
20131 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
20132 xy) ECHO_C='\c';;
20133 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
20134 ECHO_T=' ';;
20135 esac;;
20136 *)
20137 ECHO_N='-n';;
20138 esac
20139
20140 # For backward compatibility with old third-party macros, we provide
20141 # the shell variables $as_echo and $as_echo_n. New code should use
20142 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
20143 as_echo='printf %s\n'
20144 as_echo_n='printf %s'
20145
20146 rm -f conf$$ conf$$.exe conf$$.file
20147 if test -d conf$$.dir; then
20148 rm -f conf$$.dir/conf$$.file
20149 else
20150 rm -f conf$$.dir
20151 mkdir conf$$.dir 2>/dev/null
20152 fi
20153 if (echo >conf$$.file) 2>/dev/null; then
20154 if ln -s conf$$.file conf$$ 2>/dev/null; then
20155 as_ln_s='ln -s'
20156 # ... but there are two gotchas:
20157 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20158 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20159 # In both cases, we have to default to `cp -pR'.
20160 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20161 as_ln_s='cp -pR'
20162 elif ln conf$$.file conf$$ 2>/dev/null; then
20163 as_ln_s=ln
20164 else
20165 as_ln_s='cp -pR'
20166 fi
20167 else
20168 as_ln_s='cp -pR'
20169 fi
20170 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20171 rmdir conf$$.dir 2>/dev/null
20172
20173
20174 # as_fn_mkdir_p
20175 # -------------
20176 # Create "$as_dir" as a directory, including parents if necessary.
20177 as_fn_mkdir_p ()
20178 {
20179
20180 case $as_dir in #(
20181 -*) as_dir=./$as_dir;;
20182 esac
20183 test -d "$as_dir" || eval $as_mkdir_p || {
20184 as_dirs=
20185 while :; do
20186 case $as_dir in #(
20187 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20188 *) as_qdir=$as_dir;;
20189 esac
20190 as_dirs="'$as_qdir' $as_dirs"
20191 as_dir=`$as_dirname -- "$as_dir" ||
20192 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20193 X"$as_dir" : 'X\(//\)[^/]' \| \
20194 X"$as_dir" : 'X\(//\)$' \| \
20195 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20196 printf "%s\n" X"$as_dir" |
20197 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20198 s//\1/
20199 q
20200 }
20201 /^X\(\/\/\)[^/].*/{
20202 s//\1/
20203 q
20204 }
20205 /^X\(\/\/\)$/{
20206 s//\1/
20207 q
20208 }
20209 /^X\(\/\).*/{
20210 s//\1/
20211 q
20212 }
20213 s/.*/./; q'`
20214 test -d "$as_dir" && break
20215 done
20216 test -z "$as_dirs" || eval "mkdir $as_dirs"
20217 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
20218
20219
20220 } # as_fn_mkdir_p
20221 if mkdir -p . 2>/dev/null; then
20222 as_mkdir_p='mkdir -p "$as_dir"'
20223 else
20224 test -d ./-p && rmdir ./-p
20225 as_mkdir_p=false
20226 fi
20227
20228
20229 # as_fn_executable_p FILE
20230 # -----------------------
20231 # Test if FILE is an executable regular file.
20232 as_fn_executable_p ()
20233 {
20234 test -f "$1" && test -x "$1"
20235 } # as_fn_executable_p
20236 as_test_x='test -x'
20237 as_executable_p=as_fn_executable_p
20238
20239 # Sed expression to map a string onto a valid CPP name.
20240 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20241
20242 # Sed expression to map a string onto a valid variable name.
20243 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20244
20245
20246 exec 6>&1
20247 ## ----------------------------------- ##
20248 ## Main body of $CONFIG_STATUS script. ##
20249 ## ----------------------------------- ##
20250 _ASEOF
20251 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
20252
20253 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20254 # Save the log message, to keep $0 and so on meaningful, and to
20255 # report actual input values of CONFIG_FILES etc. instead of their
20256 # values after options handling.
20257 ac_log="
20258 This file was extended by xf86-video-cirrus $as_me 1.6.0, which was
20259 generated by GNU Autoconf 2.71. Invocation command line was
20260
20261 CONFIG_FILES = $CONFIG_FILES
20262 CONFIG_HEADERS = $CONFIG_HEADERS
20263 CONFIG_LINKS = $CONFIG_LINKS
20264 CONFIG_COMMANDS = $CONFIG_COMMANDS
20265 $ $0 $@
20266
20267 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20268 "
20269
20270 _ACEOF
20271
20272 case $ac_config_files in *"
20273 "*) set x $ac_config_files; shift; ac_config_files=$*;;
20274 esac
20275
20276 case $ac_config_headers in *"
20277 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
20278 esac
20279
20280
20281 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20282 # Files that config.status was made for.
20283 config_files="$ac_config_files"
20284 config_headers="$ac_config_headers"
20285 config_commands="$ac_config_commands"
20286
20287 _ACEOF
20288
20289 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20290 ac_cs_usage="\
20291 \`$as_me' instantiates files and other configuration actions
20292 from templates according to the current configuration. Unless the files
20293 and actions are specified as TAGs, all are instantiated by default.
20294
20295 Usage: $0 [OPTION]... [TAG]...
20296
20297 -h, --help print this help, then exit
20298 -V, --version print version number and configuration settings, then exit
20299 --config print configuration, then exit
20300 -q, --quiet, --silent
20301 do not print progress messages
20302 -d, --debug don't remove temporary files
20303 --recheck update $as_me by reconfiguring in the same conditions
20304 --file=FILE[:TEMPLATE]
20305 instantiate the configuration file FILE
20306 --header=FILE[:TEMPLATE]
20307 instantiate the configuration header FILE
20308
20309 Configuration files:
20310 $config_files
20311
20312 Configuration headers:
20313 $config_headers
20314
20315 Configuration commands:
20316 $config_commands
20317
20318 Report bugs to <https://gitlab.freedesktop.org/xorg/driver/xf86-video-cirrus/issues>."
20319
20320 _ACEOF
20321 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
20322 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
20323 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20324 ac_cs_config='$ac_cs_config_escaped'
20325 ac_cs_version="\\
20326 xf86-video-cirrus config.status 1.6.0
20327 configured by $0, generated by GNU Autoconf 2.71,
20328 with options \\"\$ac_cs_config\\"
20329
20330 Copyright (C) 2021 Free Software Foundation, Inc.
20331 This config.status script is free software; the Free Software Foundation
20332 gives unlimited permission to copy, distribute and modify it."
20333
20334 ac_pwd='$ac_pwd'
20335 srcdir='$srcdir'
20336 INSTALL='$INSTALL'
20337 MKDIR_P='$MKDIR_P'
20338 AWK='$AWK'
20339 test -n "\$AWK" || AWK=awk
20340 _ACEOF
20341
20342 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20343 # The default lists apply if the user does not specify any file.
20344 ac_need_defaults=:
20345 while test $# != 0
20346 do
20347 case $1 in
20348 --*=?*)
20349 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20350 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20351 ac_shift=:
20352 ;;
20353 --*=)
20354 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20355 ac_optarg=
20356 ac_shift=:
20357 ;;
20358 *)
20359 ac_option=$1
20360 ac_optarg=$2
20361 ac_shift=shift
20362 ;;
20363 esac
20364
20365 case $ac_option in
20366 # Handling of the options.
20367 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20368 ac_cs_recheck=: ;;
20369 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20370 printf "%s\n" "$ac_cs_version"; exit ;;
20371 --config | --confi | --conf | --con | --co | --c )
20372 printf "%s\n" "$ac_cs_config"; exit ;;
20373 --debug | --debu | --deb | --de | --d | -d )
20374 debug=: ;;
20375 --file | --fil | --fi | --f )
20376 $ac_shift
20377 case $ac_optarg in
20378 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20379 '') as_fn_error $? "missing file argument" ;;
20380 esac
20381 as_fn_append CONFIG_FILES " '$ac_optarg'"
20382 ac_need_defaults=false;;
20383 --header | --heade | --head | --hea )
20384 $ac_shift
20385 case $ac_optarg in
20386 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20387 esac
20388 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
20389 ac_need_defaults=false;;
20390 --he | --h)
20391 # Conflict between --help and --header
20392 as_fn_error $? "ambiguous option: \`$1'
20393 Try \`$0 --help' for more information.";;
20394 --help | --hel | -h )
20395 printf "%s\n" "$ac_cs_usage"; exit ;;
20396 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20397 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20398 ac_cs_silent=: ;;
20399
20400 # This is an error.
20401 -*) as_fn_error $? "unrecognized option: \`$1'
20402 Try \`$0 --help' for more information." ;;
20403
20404 *) as_fn_append ac_config_targets " $1"
20405 ac_need_defaults=false ;;
20406
20407 esac
20408 shift
20409 done
20410
20411 ac_configure_extra_args=
20412
20413 if $ac_cs_silent; then
20414 exec 6>/dev/null
20415 ac_configure_extra_args="$ac_configure_extra_args --silent"
20416 fi
20417
20418 _ACEOF
20419 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20420 if \$ac_cs_recheck; then
20421 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20422 shift
20423 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
20424 CONFIG_SHELL='$SHELL'
20425 export CONFIG_SHELL
20426 exec "\$@"
20427 fi
20428
20429 _ACEOF
20430 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20431 exec 5>>config.log
20432 {
20433 echo
20434 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20435 ## Running $as_me. ##
20436 _ASBOX
20437 printf "%s\n" "$ac_log"
20438 } >&5
20439
20440 _ACEOF
20441 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20442 #
20443 # INIT-COMMANDS
20444 #
20445 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
20446
20447
20448 # The HP-UX ksh and POSIX shell print the target directory to stdout
20449 # if CDPATH is set.
20450 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20451
20452 sed_quote_subst='$sed_quote_subst'
20453 double_quote_subst='$double_quote_subst'
20454 delay_variable_subst='$delay_variable_subst'
20455 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
20456 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
20457 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
20458 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
20459 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
20460 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
20461 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
20462 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
20463 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
20464 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
20465 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
20466 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
20467 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
20468 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
20469 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
20470 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
20471 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
20472 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
20473 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
20474 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
20475 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
20476 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
20477 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
20478 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
20479 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
20480 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
20481 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
20482 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
20483 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
20484 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
20485 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
20486 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
20487 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
20488 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
20489 FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
20490 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
20491 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
20492 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
20493 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
20494 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
20495 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
20496 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
20497 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
20498 lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
20499 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
20500 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
20501 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
20502 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
20503 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20504 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20505 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
20506 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
20507 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
20508 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
20509 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
20510 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
20511 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
20512 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
20513 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
20514 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
20515 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"`'
20516 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
20517 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
20518 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
20519 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
20520 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
20521 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
20522 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
20523 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
20524 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
20525 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
20526 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
20527 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
20528 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
20529 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
20530 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
20531 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
20532 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
20533 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
20534 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
20535 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
20536 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20537 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
20538 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
20539 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
20540 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
20541 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
20542 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
20543 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20544 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
20545 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20546 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
20547 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20548 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
20549 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
20550 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
20551 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
20552 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
20553 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
20554 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
20555 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
20556 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
20557 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
20558 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
20559 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
20560 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
20561 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
20562 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
20563 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
20564 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
20565 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
20566 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
20567 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
20568 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
20569 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
20570 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
20571 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
20572 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
20573 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
20574 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
20575 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
20576 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
20577 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
20578 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20579 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20580 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
20581 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
20582 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
20583 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
20584 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
20585 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
20586 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
20587 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
20588 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
20589 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
20590 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
20591 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
20592
20593 LTCC='$LTCC'
20594 LTCFLAGS='$LTCFLAGS'
20595 compiler='$compiler_DEFAULT'
20596
20597 # A function that is used when there is no print builtin or printf.
20598 func_fallback_echo ()
20599 {
20600 eval 'cat <<_LTECHO_EOF
20601 \$1
20602 _LTECHO_EOF'
20603 }
20604
20605 # Quote evaled strings.
20606 for var in SHELL \
20607 ECHO \
20608 PATH_SEPARATOR \
20609 SED \
20610 GREP \
20611 EGREP \
20612 FGREP \
20613 LD \
20614 NM \
20615 LN_S \
20616 lt_SP2NL \
20617 lt_NL2SP \
20618 reload_flag \
20619 FILECMD \
20620 OBJDUMP \
20621 deplibs_check_method \
20622 file_magic_cmd \
20623 file_magic_glob \
20624 want_nocaseglob \
20625 DLLTOOL \
20626 sharedlib_from_linklib_cmd \
20627 AR \
20628 archiver_list_spec \
20629 STRIP \
20630 RANLIB \
20631 CC \
20632 CFLAGS \
20633 compiler \
20634 lt_cv_sys_global_symbol_pipe \
20635 lt_cv_sys_global_symbol_to_cdecl \
20636 lt_cv_sys_global_symbol_to_import \
20637 lt_cv_sys_global_symbol_to_c_name_address \
20638 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
20639 lt_cv_nm_interface \
20640 nm_file_list_spec \
20641 lt_cv_truncate_bin \
20642 lt_prog_compiler_no_builtin_flag \
20643 lt_prog_compiler_pic \
20644 lt_prog_compiler_wl \
20645 lt_prog_compiler_static \
20646 lt_cv_prog_compiler_c_o \
20647 need_locks \
20648 MANIFEST_TOOL \
20649 DSYMUTIL \
20650 NMEDIT \
20651 LIPO \
20652 OTOOL \
20653 OTOOL64 \
20654 shrext_cmds \
20655 export_dynamic_flag_spec \
20656 whole_archive_flag_spec \
20657 compiler_needs_object \
20658 with_gnu_ld \
20659 allow_undefined_flag \
20660 no_undefined_flag \
20661 hardcode_libdir_flag_spec \
20662 hardcode_libdir_separator \
20663 exclude_expsyms \
20664 include_expsyms \
20665 file_list_spec \
20666 variables_saved_for_relink \
20667 libname_spec \
20668 library_names_spec \
20669 soname_spec \
20670 install_override_mode \
20671 finish_eval \
20672 old_striplib \
20673 striplib; do
20674 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20675 *[\\\\\\\`\\"\\\$]*)
20676 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
20677 ;;
20678 *)
20679 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20680 ;;
20681 esac
20682 done
20683
20684 # Double-quote double-evaled strings.
20685 for var in reload_cmds \
20686 old_postinstall_cmds \
20687 old_postuninstall_cmds \
20688 old_archive_cmds \
20689 extract_expsyms_cmds \
20690 old_archive_from_new_cmds \
20691 old_archive_from_expsyms_cmds \
20692 archive_cmds \
20693 archive_expsym_cmds \
20694 module_cmds \
20695 module_expsym_cmds \
20696 export_symbols_cmds \
20697 prelink_cmds \
20698 postlink_cmds \
20699 postinstall_cmds \
20700 postuninstall_cmds \
20701 finish_cmds \
20702 sys_lib_search_path_spec \
20703 configure_time_dlsearch_path \
20704 configure_time_lt_sys_library_path; do
20705 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20706 *[\\\\\\\`\\"\\\$]*)
20707 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
20708 ;;
20709 *)
20710 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20711 ;;
20712 esac
20713 done
20714
20715 ac_aux_dir='$ac_aux_dir'
20716
20717 # See if we are running on zsh, and set the options that allow our
20718 # commands through without removal of \ escapes INIT.
20719 if test -n "\${ZSH_VERSION+set}"; then
20720 setopt NO_GLOB_SUBST
20721 fi
20722
20723
20724 PACKAGE='$PACKAGE'
20725 VERSION='$VERSION'
20726 RM='$RM'
20727 ofile='$ofile'
20728
20729
20730
20731
20732 _ACEOF
20733
20734 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20735
20736 # Handling of arguments.
20737 for ac_config_target in $ac_config_targets
20738 do
20739 case $ac_config_target in
20740 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
20741 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20742 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
20743 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20744 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
20745 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
20746
20747 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
20748 esac
20749 done
20750
20751
20752 # If the user did not use the arguments to specify the items to instantiate,
20753 # then the envvar interface is used. Set only those that are not.
20754 # We use the long form for the default assignment because of an extremely
20755 # bizarre bug on SunOS 4.1.3.
20756 if $ac_need_defaults; then
20757 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
20758 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
20759 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
20760 fi
20761
20762 # Have a temporary directory for convenience. Make it in the build tree
20763 # simply because there is no reason against having it here, and in addition,
20764 # creating and moving files from /tmp can sometimes cause problems.
20765 # Hook for its removal unless debugging.
20766 # Note that there is a small window in which the directory will not be cleaned:
20767 # after its creation but before its name has been assigned to `$tmp'.
20768 $debug ||
20769 {
20770 tmp= ac_tmp=
20771 trap 'exit_status=$?
20772 : "${ac_tmp:=$tmp}"
20773 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
20774 ' 0
20775 trap 'as_fn_exit 1' 1 2 13 15
20776 }
20777 # Create a (secure) tmp directory for tmp files.
20778
20779 {
20780 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20781 test -d "$tmp"
20782 } ||
20783 {
20784 tmp=./conf$$-$RANDOM
20785 (umask 077 && mkdir "$tmp")
20786 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
20787 ac_tmp=$tmp
20788
20789 # Set up the scripts for CONFIG_FILES section.
20790 # No need to generate them if there are no CONFIG_FILES.
20791 # This happens for instance with `./config.status config.h'.
20792 if test -n "$CONFIG_FILES"; then
20793
20794
20795 ac_cr=`echo X | tr X '\015'`
20796 # On cygwin, bash can eat \r inside `` if the user requested igncr.
20797 # But we know of no other shell where ac_cr would be empty at this
20798 # point, so we can use a bashism as a fallback.
20799 if test "x$ac_cr" = x; then
20800 eval ac_cr=\$\'\\r\'
20801 fi
20802 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20803 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20804 ac_cs_awk_cr='\\r'
20805 else
20806 ac_cs_awk_cr=$ac_cr
20807 fi
20808
20809 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
20810 _ACEOF
20811
20812
20813 {
20814 echo "cat >conf$$subs.awk <<_ACEOF" &&
20815 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20816 echo "_ACEOF"
20817 } >conf$$subs.sh ||
20818 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20819 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
20820 ac_delim='%!_!# '
20821 for ac_last_try in false false false false false :; do
20822 . ./conf$$subs.sh ||
20823 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20824
20825 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
20826 if test $ac_delim_n = $ac_delim_num; then
20827 break
20828 elif $ac_last_try; then
20829 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20830 else
20831 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20832 fi
20833 done
20834 rm -f conf$$subs.sh
20835
20836 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20837 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
20838 _ACEOF
20839 sed -n '
20840 h
20841 s/^/S["/; s/!.*/"]=/
20842 p
20843 g
20844 s/^[^!]*!//
20845 :repl
20846 t repl
20847 s/'"$ac_delim"'$//
20848 t delim
20849 :nl
20850 h
20851 s/\(.\{148\}\)..*/\1/
20852 t more1
20853 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
20854 p
20855 n
20856 b repl
20857 :more1
20858 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20859 p
20860 g
20861 s/.\{148\}//
20862 t nl
20863 :delim
20864 h
20865 s/\(.\{148\}\)..*/\1/
20866 t more2
20867 s/["\\]/\\&/g; s/^/"/; s/$/"/
20868 p
20869 b
20870 :more2
20871 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20872 p
20873 g
20874 s/.\{148\}//
20875 t delim
20876 ' <conf$$subs.awk | sed '
20877 /^[^""]/{
20878 N
20879 s/\n//
20880 }
20881 ' >>$CONFIG_STATUS || ac_write_fail=1
20882 rm -f conf$$subs.awk
20883 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20884 _ACAWK
20885 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
20886 for (key in S) S_is_set[key] = 1
20887 FS = ""
20888
20889 }
20890 {
20891 line = $ 0
20892 nfields = split(line, field, "@")
20893 substed = 0
20894 len = length(field[1])
20895 for (i = 2; i < nfields; i++) {
20896 key = field[i]
20897 keylen = length(key)
20898 if (S_is_set[key]) {
20899 value = S[key]
20900 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20901 len += length(value) + length(field[++i])
20902 substed = 1
20903 } else
20904 len += 1 + keylen
20905 }
20906
20907 print line
20908 }
20909
20910 _ACAWK
20911 _ACEOF
20912 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20913 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20914 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
20915 else
20916 cat
20917 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
20918 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
20919 _ACEOF
20920
20921 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
20922 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
20923 # trailing colons and then remove the whole line if VPATH becomes empty
20924 # (actually we leave an empty line to preserve line numbers).
20925 if test "x$srcdir" = x.; then
20926 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
20927 h
20928 s///
20929 s/^/:/
20930 s/[ ]*$/:/
20931 s/:\$(srcdir):/:/g
20932 s/:\${srcdir}:/:/g
20933 s/:@srcdir@:/:/g
20934 s/^:*//
20935 s/:*$//
20936 x
20937 s/\(=[ ]*\).*/\1/
20938 G
20939 s/\n//
20940 s/^[^=]*=[ ]*$//
20941 }'
20942 fi
20943
20944 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20945 fi # test -n "$CONFIG_FILES"
20946
20947 # Set up the scripts for CONFIG_HEADERS section.
20948 # No need to generate them if there are no CONFIG_HEADERS.
20949 # This happens for instance with `./config.status Makefile'.
20950 if test -n "$CONFIG_HEADERS"; then
20951 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
20952 BEGIN {
20953 _ACEOF
20954
20955 # Transform confdefs.h into an awk script `defines.awk', embedded as
20956 # here-document in config.status, that substitutes the proper values into
20957 # config.h.in to produce config.h.
20958
20959 # Create a delimiter string that does not exist in confdefs.h, to ease
20960 # handling of long lines.
20961 ac_delim='%!_!# '
20962 for ac_last_try in false false :; do
20963 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
20964 if test -z "$ac_tt"; then
20965 break
20966 elif $ac_last_try; then
20967 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
20968 else
20969 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20970 fi
20971 done
20972
20973 # For the awk script, D is an array of macro values keyed by name,
20974 # likewise P contains macro parameters if any. Preserve backslash
20975 # newline sequences.
20976
20977 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20978 sed -n '
20979 s/.\{148\}/&'"$ac_delim"'/g
20980 t rset
20981 :rset
20982 s/^[ ]*#[ ]*define[ ][ ]*/ /
20983 t def
20984 d
20985 :def
20986 s/\\$//
20987 t bsnl
20988 s/["\\]/\\&/g
20989 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20990 D["\1"]=" \3"/p
20991 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
20992 d
20993 :bsnl
20994 s/["\\]/\\&/g
20995 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20996 D["\1"]=" \3\\\\\\n"\\/p
20997 t cont
20998 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
20999 t cont
21000 d
21001 :cont
21002 n
21003 s/.\{148\}/&'"$ac_delim"'/g
21004 t clear
21005 :clear
21006 s/\\$//
21007 t bsnlc
21008 s/["\\]/\\&/g; s/^/"/; s/$/"/p
21009 d
21010 :bsnlc
21011 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
21012 b cont
21013 ' <confdefs.h | sed '
21014 s/'"$ac_delim"'/"\\\
21015 "/g' >>$CONFIG_STATUS || ac_write_fail=1
21016
21017 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21018 for (key in D) D_is_set[key] = 1
21019 FS = ""
21020 }
21021 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
21022 line = \$ 0
21023 split(line, arg, " ")
21024 if (arg[1] == "#") {
21025 defundef = arg[2]
21026 mac1 = arg[3]
21027 } else {
21028 defundef = substr(arg[1], 2)
21029 mac1 = arg[2]
21030 }
21031 split(mac1, mac2, "(") #)
21032 macro = mac2[1]
21033 prefix = substr(line, 1, index(line, defundef) - 1)
21034 if (D_is_set[macro]) {
21035 # Preserve the white space surrounding the "#".
21036 print prefix "define", macro P[macro] D[macro]
21037 next
21038 } else {
21039 # Replace #undef with comments. This is necessary, for example,
21040 # in the case of _POSIX_SOURCE, which is predefined and required
21041 # on some systems where configure will not decide to define it.
21042 if (defundef == "undef") {
21043 print "/*", prefix defundef, macro, "*/"
21044 next
21045 }
21046 }
21047 }
21048 { print }
21049 _ACAWK
21050 _ACEOF
21051 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21052 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
21053 fi # test -n "$CONFIG_HEADERS"
21054
21055
21056 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
21057 shift
21058 for ac_tag
21059 do
21060 case $ac_tag in
21061 :[FHLC]) ac_mode=$ac_tag; continue;;
21062 esac
21063 case $ac_mode$ac_tag in
21064 :[FHL]*:*);;
21065 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
21066 :[FH]-) ac_tag=-:-;;
21067 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21068 esac
21069 ac_save_IFS=$IFS
21070 IFS=:
21071 set x $ac_tag
21072 IFS=$ac_save_IFS
21073 shift
21074 ac_file=$1
21075 shift
21076
21077 case $ac_mode in
21078 :L) ac_source=$1;;
21079 :[FH])
21080 ac_file_inputs=
21081 for ac_f
21082 do
21083 case $ac_f in
21084 -) ac_f="$ac_tmp/stdin";;
21085 *) # Look for the file first in the build tree, then in the source tree
21086 # (if the path is not absolute). The absolute path cannot be DOS-style,
21087 # because $ac_f cannot contain `:'.
21088 test -f "$ac_f" ||
21089 case $ac_f in
21090 [\\/$]*) false;;
21091 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21092 esac ||
21093 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
21094 esac
21095 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
21096 as_fn_append ac_file_inputs " '$ac_f'"
21097 done
21098
21099 # Let's still pretend it is `configure' which instantiates (i.e., don't
21100 # use $as_me), people would be surprised to read:
21101 # /* config.h. Generated by config.status. */
21102 configure_input='Generated from '`
21103 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
21104 `' by configure.'
21105 if test x"$ac_file" != x-; then
21106 configure_input="$ac_file. $configure_input"
21107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
21108 printf "%s\n" "$as_me: creating $ac_file" >&6;}
21109 fi
21110 # Neutralize special characters interpreted by sed in replacement strings.
21111 case $configure_input in #(
21112 *\&* | *\|* | *\\* )
21113 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
21114 sed 's/[\\\\&|]/\\\\&/g'`;; #(
21115 *) ac_sed_conf_input=$configure_input;;
21116 esac
21117
21118 case $ac_tag in
21119 *:-:* | *:-) cat >"$ac_tmp/stdin" \
21120 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
21121 esac
21122 ;;
21123 esac
21124
21125 ac_dir=`$as_dirname -- "$ac_file" ||
21126 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21127 X"$ac_file" : 'X\(//\)[^/]' \| \
21128 X"$ac_file" : 'X\(//\)$' \| \
21129 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21130 printf "%s\n" X"$ac_file" |
21131 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21132 s//\1/
21133 q
21134 }
21135 /^X\(\/\/\)[^/].*/{
21136 s//\1/
21137 q
21138 }
21139 /^X\(\/\/\)$/{
21140 s//\1/
21141 q
21142 }
21143 /^X\(\/\).*/{
21144 s//\1/
21145 q
21146 }
21147 s/.*/./; q'`
21148 as_dir="$ac_dir"; as_fn_mkdir_p
21149 ac_builddir=.
21150
21151 case "$ac_dir" in
21152 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21153 *)
21154 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
21155 # A ".." for each directory in $ac_dir_suffix.
21156 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21157 case $ac_top_builddir_sub in
21158 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21159 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21160 esac ;;
21161 esac
21162 ac_abs_top_builddir=$ac_pwd
21163 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21164 # for backward compatibility:
21165 ac_top_builddir=$ac_top_build_prefix
21166
21167 case $srcdir in
21168 .) # We are building in place.
21169 ac_srcdir=.
21170 ac_top_srcdir=$ac_top_builddir_sub
21171 ac_abs_top_srcdir=$ac_pwd ;;
21172 [\\/]* | ?:[\\/]* ) # Absolute name.
21173 ac_srcdir=$srcdir$ac_dir_suffix;
21174 ac_top_srcdir=$srcdir
21175 ac_abs_top_srcdir=$srcdir ;;
21176 *) # Relative name.
21177 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21178 ac_top_srcdir=$ac_top_build_prefix$srcdir
21179 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21180 esac
21181 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21182
21183
21184 case $ac_mode in
21185 :F)
21186 #
21187 # CONFIG_FILE
21188 #
21189
21190 case $INSTALL in
21191 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21192 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21193 esac
21194 ac_MKDIR_P=$MKDIR_P
21195 case $MKDIR_P in
21196 [\\/$]* | ?:[\\/]* ) ;;
21197 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
21198 esac
21199 _ACEOF
21200
21201 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21202 # If the template does not know about datarootdir, expand it.
21203 # FIXME: This hack should be removed a few years after 2.60.
21204 ac_datarootdir_hack=; ac_datarootdir_seen=
21205 ac_sed_dataroot='
21206 /datarootdir/ {
21207 p
21208 q
21209 }
21210 /@datadir@/p
21211 /@docdir@/p
21212 /@infodir@/p
21213 /@localedir@/p
21214 /@mandir@/p'
21215 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
21216 *datarootdir*) ac_datarootdir_seen=yes;;
21217 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21218 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21219 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21220 _ACEOF
21221 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21222 ac_datarootdir_hack='
21223 s&@datadir@&$datadir&g
21224 s&@docdir@&$docdir&g
21225 s&@infodir@&$infodir&g
21226 s&@localedir@&$localedir&g
21227 s&@mandir@&$mandir&g
21228 s&\\\${datarootdir}&$datarootdir&g' ;;
21229 esac
21230 _ACEOF
21231
21232 # Neutralize VPATH when `$srcdir' = `.'.
21233 # Shell code in configure.ac might set extrasub.
21234 # FIXME: do we really want to maintain this feature?
21235 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21236 ac_sed_extra="$ac_vpsub
21237 $extrasub
21238 _ACEOF
21239 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21240 :t
21241 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21242 s|@configure_input@|$ac_sed_conf_input|;t t
21243 s&@top_builddir@&$ac_top_builddir_sub&;t t
21244 s&@top_build_prefix@&$ac_top_build_prefix&;t t
21245 s&@srcdir@&$ac_srcdir&;t t
21246 s&@abs_srcdir@&$ac_abs_srcdir&;t t
21247 s&@top_srcdir@&$ac_top_srcdir&;t t
21248 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21249 s&@builddir@&$ac_builddir&;t t
21250 s&@abs_builddir@&$ac_abs_builddir&;t t
21251 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21252 s&@INSTALL@&$ac_INSTALL&;t t
21253 s&@MKDIR_P@&$ac_MKDIR_P&;t t
21254 $ac_datarootdir_hack
21255 "
21256 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
21257 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21258
21259 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21260 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
21261 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
21262 "$ac_tmp/out"`; test -z "$ac_out"; } &&
21263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21264 which seems to be undefined. Please make sure it is defined" >&5
21265 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21266 which seems to be undefined. Please make sure it is defined" >&2;}
21267
21268 rm -f "$ac_tmp/stdin"
21269 case $ac_file in
21270 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
21271 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
21272 esac \
21273 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21274 ;;
21275 :H)
21276 #
21277 # CONFIG_HEADER
21278 #
21279 if test x"$ac_file" != x-; then
21280 {
21281 printf "%s\n" "/* $configure_input */" >&1 \
21282 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
21283 } >"$ac_tmp/config.h" \
21284 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21285 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
21286 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
21287 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
21288 else
21289 rm -f "$ac_file"
21290 mv "$ac_tmp/config.h" "$ac_file" \
21291 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21292 fi
21293 else
21294 printf "%s\n" "/* $configure_input */" >&1 \
21295 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
21296 || as_fn_error $? "could not create -" "$LINENO" 5
21297 fi
21298 # Compute "$ac_file"'s index in $config_headers.
21299 _am_arg="$ac_file"
21300 _am_stamp_count=1
21301 for _am_header in $config_headers :; do
21302 case $_am_header in
21303 $_am_arg | $_am_arg:* )
21304 break ;;
21305 * )
21306 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21307 esac
21308 done
21309 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
21310 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21311 X"$_am_arg" : 'X\(//\)[^/]' \| \
21312 X"$_am_arg" : 'X\(//\)$' \| \
21313 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
21314 printf "%s\n" X"$_am_arg" |
21315 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21316 s//\1/
21317 q
21318 }
21319 /^X\(\/\/\)[^/].*/{
21320 s//\1/
21321 q
21322 }
21323 /^X\(\/\/\)$/{
21324 s//\1/
21325 q
21326 }
21327 /^X\(\/\).*/{
21328 s//\1/
21329 q
21330 }
21331 s/.*/./; q'`/stamp-h$_am_stamp_count
21332 ;;
21333
21334 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
21335 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
21336 ;;
21337 esac
21338
21339
21340 case $ac_file$ac_mode in
21341 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
21342 # Older Autoconf quotes --file arguments for eval, but not when files
21343 # are listed without --file. Let's play safe and only enable the eval
21344 # if we detect the quoting.
21345 # TODO: see whether this extra hack can be removed once we start
21346 # requiring Autoconf 2.70 or later.
21347 case $CONFIG_FILES in #(
21348 *\'*) :
21349 eval set x "$CONFIG_FILES" ;; #(
21350 *) :
21351 set x $CONFIG_FILES ;; #(
21352 *) :
21353 ;;
21354 esac
21355 shift
21356 # Used to flag and report bootstrapping failures.
21357 am_rc=0
21358 for am_mf
21359 do
21360 # Strip MF so we end up with the name of the file.
21361 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
21362 # Check whether this is an Automake generated Makefile which includes
21363 # dependency-tracking related rules and includes.
21364 # Grep'ing the whole file directly is not great: AIX grep has a line
21365 # limit of 2048, but all sed's we know have understand at least 4000.
21366 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
21367 || continue
21368 am_dirpart=`$as_dirname -- "$am_mf" ||
21369 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21370 X"$am_mf" : 'X\(//\)[^/]' \| \
21371 X"$am_mf" : 'X\(//\)$' \| \
21372 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
21373 printf "%s\n" X"$am_mf" |
21374 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21375 s//\1/
21376 q
21377 }
21378 /^X\(\/\/\)[^/].*/{
21379 s//\1/
21380 q
21381 }
21382 /^X\(\/\/\)$/{
21383 s//\1/
21384 q
21385 }
21386 /^X\(\/\).*/{
21387 s//\1/
21388 q
21389 }
21390 s/.*/./; q'`
21391 am_filepart=`$as_basename -- "$am_mf" ||
21392 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
21393 X"$am_mf" : 'X\(//\)$' \| \
21394 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
21395 printf "%s\n" X/"$am_mf" |
21396 sed '/^.*\/\([^/][^/]*\)\/*$/{
21397 s//\1/
21398 q
21399 }
21400 /^X\/\(\/\/\)$/{
21401 s//\1/
21402 q
21403 }
21404 /^X\/\(\/\).*/{
21405 s//\1/
21406 q
21407 }
21408 s/.*/./; q'`
21409 { echo "$as_me:$LINENO: cd "$am_dirpart" \
21410 && sed -e '/# am--include-marker/d' "$am_filepart" \
21411 | $MAKE -f - am--depfiles" >&5
21412 (cd "$am_dirpart" \
21413 && sed -e '/# am--include-marker/d' "$am_filepart" \
21414 | $MAKE -f - am--depfiles) >&5 2>&5
21415 ac_status=$?
21416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21417 (exit $ac_status); } || am_rc=$?
21418 done
21419 if test $am_rc -ne 0; then
21420 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21421 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
21422 as_fn_error $? "Something went wrong bootstrapping makefile fragments
21423 for automatic dependency tracking. If GNU make was not used, consider
21424 re-running the configure script with MAKE=\"gmake\" (or whatever is
21425 necessary). You can also try re-running configure with the
21426 '--disable-dependency-tracking' option to at least be able to build
21427 the package (albeit without support for automatic dependency tracking).
21428 See \`config.log' for more details" "$LINENO" 5; }
21429 fi
21430 { am_dirpart=; unset am_dirpart;}
21431 { am_filepart=; unset am_filepart;}
21432 { am_mf=; unset am_mf;}
21433 { am_rc=; unset am_rc;}
21434 rm -f conftest-deps.mk
21435 }
21436 ;;
21437 "libtool":C)
21438
21439 # See if we are running on zsh, and set the options that allow our
21440 # commands through without removal of \ escapes.
21441 if test -n "${ZSH_VERSION+set}"; then
21442 setopt NO_GLOB_SUBST
21443 fi
21444
21445 cfgfile=${ofile}T
21446 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
21447 $RM "$cfgfile"
21448
21449 cat <<_LT_EOF >> "$cfgfile"
21450 #! $SHELL
21451 # Generated automatically by $as_me ($PACKAGE) $VERSION
21452 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21453 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
21454
21455 # Provide generalized library-building support services.
21456 # Written by Gordon Matzigkeit, 1996
21457
21458 # Copyright (C) 2014 Free Software Foundation, Inc.
21459 # This is free software; see the source for copying conditions. There is NO
21460 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
21461
21462 # GNU Libtool is free software; you can redistribute it and/or modify
21463 # it under the terms of the GNU General Public License as published by
21464 # the Free Software Foundation; either version 2 of of the License, or
21465 # (at your option) any later version.
21466 #
21467 # As a special exception to the GNU General Public License, if you
21468 # distribute this file as part of a program or library that is built
21469 # using GNU Libtool, you may include this file under the same
21470 # distribution terms that you use for the rest of that program.
21471 #
21472 # GNU Libtool is distributed in the hope that it will be useful, but
21473 # WITHOUT ANY WARRANTY; without even the implied warranty of
21474 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21475 # GNU General Public License for more details.
21476 #
21477 # You should have received a copy of the GNU General Public License
21478 # along with this program. If not, see <http://www.gnu.org/licenses/>.
21479
21480
21481 # The names of the tagged configurations supported by this script.
21482 available_tags=''
21483
21484 # Configured defaults for sys_lib_dlsearch_path munging.
21485 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
21486
21487 # ### BEGIN LIBTOOL CONFIG
21488
21489 # Whether or not to build static libraries.
21490 build_old_libs=$enable_static
21491
21492 # Which release of libtool.m4 was used?
21493 macro_version=$macro_version
21494 macro_revision=$macro_revision
21495
21496 # Whether or not to build shared libraries.
21497 build_libtool_libs=$enable_shared
21498
21499 # What type of objects to build.
21500 pic_mode=$pic_mode
21501
21502 # Whether or not to optimize for fast installation.
21503 fast_install=$enable_fast_install
21504
21505 # Shared archive member basename,for filename based shared library versioning on AIX.
21506 shared_archive_member_spec=$shared_archive_member_spec
21507
21508 # Shell to use when invoking shell scripts.
21509 SHELL=$lt_SHELL
21510
21511 # An echo program that protects backslashes.
21512 ECHO=$lt_ECHO
21513
21514 # The PATH separator for the build system.
21515 PATH_SEPARATOR=$lt_PATH_SEPARATOR
21516
21517 # The host system.
21518 host_alias=$host_alias
21519 host=$host
21520 host_os=$host_os
21521
21522 # The build system.
21523 build_alias=$build_alias
21524 build=$build
21525 build_os=$build_os
21526
21527 # A sed program that does not truncate output.
21528 SED=$lt_SED
21529
21530 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
21531 Xsed="\$SED -e 1s/^X//"
21532
21533 # A grep program that handles long lines.
21534 GREP=$lt_GREP
21535
21536 # An ERE matcher.
21537 EGREP=$lt_EGREP
21538
21539 # A literal string matcher.
21540 FGREP=$lt_FGREP
21541
21542 # A BSD- or MS-compatible name lister.
21543 NM=$lt_NM
21544
21545 # Whether we need soft or hard links.
21546 LN_S=$lt_LN_S
21547
21548 # What is the maximum length of a command?
21549 max_cmd_len=$max_cmd_len
21550
21551 # Object file suffix (normally "o").
21552 objext=$ac_objext
21553
21554 # Executable file suffix (normally "").
21555 exeext=$exeext
21556
21557 # whether the shell understands "unset".
21558 lt_unset=$lt_unset
21559
21560 # turn spaces into newlines.
21561 SP2NL=$lt_lt_SP2NL
21562
21563 # turn newlines into spaces.
21564 NL2SP=$lt_lt_NL2SP
21565
21566 # convert \$build file names to \$host format.
21567 to_host_file_cmd=$lt_cv_to_host_file_cmd
21568
21569 # convert \$build files to toolchain format.
21570 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
21571
21572 # A file(cmd) program that detects file types.
21573 FILECMD=$lt_FILECMD
21574
21575 # An object symbol dumper.
21576 OBJDUMP=$lt_OBJDUMP
21577
21578 # Method to check whether dependent libraries are shared objects.
21579 deplibs_check_method=$lt_deplibs_check_method
21580
21581 # Command to use when deplibs_check_method = "file_magic".
21582 file_magic_cmd=$lt_file_magic_cmd
21583
21584 # How to find potential files when deplibs_check_method = "file_magic".
21585 file_magic_glob=$lt_file_magic_glob
21586
21587 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
21588 want_nocaseglob=$lt_want_nocaseglob
21589
21590 # DLL creation program.
21591 DLLTOOL=$lt_DLLTOOL
21592
21593 # Command to associate shared and link libraries.
21594 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
21595
21596 # The archiver.
21597 AR=$lt_AR
21598
21599 # Flags to create an archive (by configure).
21600 lt_ar_flags=$lt_ar_flags
21601
21602 # Flags to create an archive.
21603 AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
21604
21605 # How to feed a file listing to the archiver.
21606 archiver_list_spec=$lt_archiver_list_spec
21607
21608 # A symbol stripping program.
21609 STRIP=$lt_STRIP
21610
21611 # Commands used to install an old-style archive.
21612 RANLIB=$lt_RANLIB
21613 old_postinstall_cmds=$lt_old_postinstall_cmds
21614 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21615
21616 # Whether to use a lock for old archive extraction.
21617 lock_old_archive_extraction=$lock_old_archive_extraction
21618
21619 # A C compiler.
21620 LTCC=$lt_CC
21621
21622 # LTCC compiler flags.
21623 LTCFLAGS=$lt_CFLAGS
21624
21625 # Take the output of nm and produce a listing of raw symbols and C names.
21626 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21627
21628 # Transform the output of nm in a proper C declaration.
21629 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21630
21631 # Transform the output of nm into a list of symbols to manually relocate.
21632 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
21633
21634 # Transform the output of nm in a C name address pair.
21635 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21636
21637 # Transform the output of nm in a C name address pair when lib prefix is needed.
21638 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
21639
21640 # The name lister interface.
21641 nm_interface=$lt_lt_cv_nm_interface
21642
21643 # Specify filename containing input files for \$NM.
21644 nm_file_list_spec=$lt_nm_file_list_spec
21645
21646 # The root where to search for dependent libraries,and where our libraries should be installed.
21647 lt_sysroot=$lt_sysroot
21648
21649 # Command to truncate a binary pipe.
21650 lt_truncate_bin=$lt_lt_cv_truncate_bin
21651
21652 # The name of the directory that contains temporary libtool files.
21653 objdir=$objdir
21654
21655 # Used to examine libraries when file_magic_cmd begins with "file".
21656 MAGIC_CMD=$MAGIC_CMD
21657
21658 # Must we lock files when doing compilation?
21659 need_locks=$lt_need_locks
21660
21661 # Manifest tool.
21662 MANIFEST_TOOL=$lt_MANIFEST_TOOL
21663
21664 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
21665 DSYMUTIL=$lt_DSYMUTIL
21666
21667 # Tool to change global to local symbols on Mac OS X.
21668 NMEDIT=$lt_NMEDIT
21669
21670 # Tool to manipulate fat objects and archives on Mac OS X.
21671 LIPO=$lt_LIPO
21672
21673 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
21674 OTOOL=$lt_OTOOL
21675
21676 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
21677 OTOOL64=$lt_OTOOL64
21678
21679 # Old archive suffix (normally "a").
21680 libext=$libext
21681
21682 # Shared library suffix (normally ".so").
21683 shrext_cmds=$lt_shrext_cmds
21684
21685 # The commands to extract the exported symbol list from a shared archive.
21686 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21687
21688 # Variables whose values should be saved in libtool wrapper scripts and
21689 # restored at link time.
21690 variables_saved_for_relink=$lt_variables_saved_for_relink
21691
21692 # Do we need the "lib" prefix for modules?
21693 need_lib_prefix=$need_lib_prefix
21694
21695 # Do we need a version for libraries?
21696 need_version=$need_version
21697
21698 # Library versioning type.
21699 version_type=$version_type
21700
21701 # Shared library runtime path variable.
21702 runpath_var=$runpath_var
21703
21704 # Shared library path variable.
21705 shlibpath_var=$shlibpath_var
21706
21707 # Is shlibpath searched before the hard-coded library search path?
21708 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21709
21710 # Format of library name prefix.
21711 libname_spec=$lt_libname_spec
21712
21713 # List of archive names. First name is the real one, the rest are links.
21714 # The last name is the one that the linker finds with -lNAME
21715 library_names_spec=$lt_library_names_spec
21716
21717 # The coded name of the library, if different from the real name.
21718 soname_spec=$lt_soname_spec
21719
21720 # Permission mode override for installation of shared libraries.
21721 install_override_mode=$lt_install_override_mode
21722
21723 # Command to use after installation of a shared archive.
21724 postinstall_cmds=$lt_postinstall_cmds
21725
21726 # Command to use after uninstallation of a shared archive.
21727 postuninstall_cmds=$lt_postuninstall_cmds
21728
21729 # Commands used to finish a libtool library installation in a directory.
21730 finish_cmds=$lt_finish_cmds
21731
21732 # As "finish_cmds", except a single script fragment to be evaled but
21733 # not shown.
21734 finish_eval=$lt_finish_eval
21735
21736 # Whether we should hardcode library paths into libraries.
21737 hardcode_into_libs=$hardcode_into_libs
21738
21739 # Compile-time system search path for libraries.
21740 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21741
21742 # Detected run-time system search path for libraries.
21743 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
21744
21745 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
21746 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
21747
21748 # Whether dlopen is supported.
21749 dlopen_support=$enable_dlopen
21750
21751 # Whether dlopen of programs is supported.
21752 dlopen_self=$enable_dlopen_self
21753
21754 # Whether dlopen of statically linked programs is supported.
21755 dlopen_self_static=$enable_dlopen_self_static
21756
21757 # Commands to strip libraries.
21758 old_striplib=$lt_old_striplib
21759 striplib=$lt_striplib
21760
21761
21762 # The linker used to build libraries.
21763 LD=$lt_LD
21764
21765 # How to create reloadable object files.
21766 reload_flag=$lt_reload_flag
21767 reload_cmds=$lt_reload_cmds
21768
21769 # Commands used to build an old-style archive.
21770 old_archive_cmds=$lt_old_archive_cmds
21771
21772 # A language specific compiler.
21773 CC=$lt_compiler
21774
21775 # Is the compiler the GNU compiler?
21776 with_gcc=$GCC
21777
21778 # Compiler flag to turn off builtin functions.
21779 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
21780
21781 # Additional compiler flags for building library objects.
21782 pic_flag=$lt_lt_prog_compiler_pic
21783
21784 # How to pass a linker flag through the compiler.
21785 wl=$lt_lt_prog_compiler_wl
21786
21787 # Compiler flag to prevent dynamic linking.
21788 link_static_flag=$lt_lt_prog_compiler_static
21789
21790 # Does compiler simultaneously support -c and -o options?
21791 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
21792
21793 # Whether or not to add -lc for building shared libraries.
21794 build_libtool_need_lc=$archive_cmds_need_lc
21795
21796 # Whether or not to disallow shared libs when runtime libs are static.
21797 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
21798
21799 # Compiler flag to allow reflexive dlopens.
21800 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
21801
21802 # Compiler flag to generate shared objects directly from archives.
21803 whole_archive_flag_spec=$lt_whole_archive_flag_spec
21804
21805 # Whether the compiler copes with passing no objects directly.
21806 compiler_needs_object=$lt_compiler_needs_object
21807
21808 # Create an old-style archive from a shared archive.
21809 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
21810
21811 # Create a temporary old-style archive to link instead of a shared archive.
21812 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
21813
21814 # Commands used to build a shared archive.
21815 archive_cmds=$lt_archive_cmds
21816 archive_expsym_cmds=$lt_archive_expsym_cmds
21817
21818 # Commands used to build a loadable module if different from building
21819 # a shared archive.
21820 module_cmds=$lt_module_cmds
21821 module_expsym_cmds=$lt_module_expsym_cmds
21822
21823 # Whether we are building with GNU ld or not.
21824 with_gnu_ld=$lt_with_gnu_ld
21825
21826 # Flag that allows shared libraries with undefined symbols to be built.
21827 allow_undefined_flag=$lt_allow_undefined_flag
21828
21829 # Flag that enforces no undefined symbols.
21830 no_undefined_flag=$lt_no_undefined_flag
21831
21832 # Flag to hardcode \$libdir into a binary during linking.
21833 # This must work even if \$libdir does not exist
21834 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
21835
21836 # Whether we need a single "-rpath" flag with a separated argument.
21837 hardcode_libdir_separator=$lt_hardcode_libdir_separator
21838
21839 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21840 # DIR into the resulting binary.
21841 hardcode_direct=$hardcode_direct
21842
21843 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21844 # DIR into the resulting binary and the resulting library dependency is
21845 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
21846 # library is relocated.
21847 hardcode_direct_absolute=$hardcode_direct_absolute
21848
21849 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21850 # into the resulting binary.
21851 hardcode_minus_L=$hardcode_minus_L
21852
21853 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21854 # into the resulting binary.
21855 hardcode_shlibpath_var=$hardcode_shlibpath_var
21856
21857 # Set to "yes" if building a shared library automatically hardcodes DIR
21858 # into the library and all subsequent libraries and executables linked
21859 # against it.
21860 hardcode_automatic=$hardcode_automatic
21861
21862 # Set to yes if linker adds runtime paths of dependent libraries
21863 # to runtime path list.
21864 inherit_rpath=$inherit_rpath
21865
21866 # Whether libtool must link a program against all its dependency libraries.
21867 link_all_deplibs=$link_all_deplibs
21868
21869 # Set to "yes" if exported symbols are required.
21870 always_export_symbols=$always_export_symbols
21871
21872 # The commands to list exported symbols.
21873 export_symbols_cmds=$lt_export_symbols_cmds
21874
21875 # Symbols that should not be listed in the preloaded symbols.
21876 exclude_expsyms=$lt_exclude_expsyms
21877
21878 # Symbols that must always be exported.
21879 include_expsyms=$lt_include_expsyms
21880
21881 # Commands necessary for linking programs (against libraries) with templates.
21882 prelink_cmds=$lt_prelink_cmds
21883
21884 # Commands necessary for finishing linking programs.
21885 postlink_cmds=$lt_postlink_cmds
21886
21887 # Specify filename containing input files.
21888 file_list_spec=$lt_file_list_spec
21889
21890 # How to hardcode a shared library path into an executable.
21891 hardcode_action=$hardcode_action
21892
21893 # ### END LIBTOOL CONFIG
21894
21895 _LT_EOF
21896
21897 cat <<'_LT_EOF' >> "$cfgfile"
21898
21899 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
21900
21901 # func_munge_path_list VARIABLE PATH
21902 # -----------------------------------
21903 # VARIABLE is name of variable containing _space_ separated list of
21904 # directories to be munged by the contents of PATH, which is string
21905 # having a format:
21906 # "DIR[:DIR]:"
21907 # string "DIR[ DIR]" will be prepended to VARIABLE
21908 # ":DIR[:DIR]"
21909 # string "DIR[ DIR]" will be appended to VARIABLE
21910 # "DIRP[:DIRP]::[DIRA:]DIRA"
21911 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
21912 # "DIRA[ DIRA]" will be appended to VARIABLE
21913 # "DIR[:DIR]"
21914 # VARIABLE will be replaced by "DIR[ DIR]"
21915 func_munge_path_list ()
21916 {
21917 case x$2 in
21918 x)
21919 ;;
21920 *:)
21921 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
21922 ;;
21923 x:*)
21924 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
21925 ;;
21926 *::*)
21927 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
21928 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
21929 ;;
21930 *)
21931 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
21932 ;;
21933 esac
21934 }
21935
21936
21937 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
21938 func_cc_basename ()
21939 {
21940 for cc_temp in $*""; do
21941 case $cc_temp in
21942 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21943 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21944 \-*) ;;
21945 *) break;;
21946 esac
21947 done
21948 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
21949 }
21950
21951
21952 # ### END FUNCTIONS SHARED WITH CONFIGURE
21953
21954 _LT_EOF
21955
21956 case $host_os in
21957 aix3*)
21958 cat <<\_LT_EOF >> "$cfgfile"
21959 # AIX sometimes has problems with the GCC collect2 program. For some
21960 # reason, if we set the COLLECT_NAMES environment variable, the problems
21961 # vanish in a puff of smoke.
21962 if test set != "${COLLECT_NAMES+set}"; then
21963 COLLECT_NAMES=
21964 export COLLECT_NAMES
21965 fi
21966 _LT_EOF
21967 ;;
21968 esac
21969
21970
21971
21972 ltmain=$ac_aux_dir/ltmain.sh
21973
21974
21975 # We use sed instead of cat because bash on DJGPP gets confused if
21976 # if finds mixed CR/LF and LF-only lines. Since sed operates in
21977 # text mode, it properly converts lines to CR/LF. This bash problem
21978 # is reportedly fixed, but why not run on old versions too?
21979 $SED '$q' "$ltmain" >> "$cfgfile" \
21980 || (rm -f "$cfgfile"; exit 1)
21981
21982 mv -f "$cfgfile" "$ofile" ||
21983 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
21984 chmod +x "$ofile"
21985
21986 ;;
21987
21988 esac
21989 done # for ac_tag
21990
21991
21992 as_fn_exit 0
21993 _ACEOF
21994 ac_clean_files=$ac_clean_files_save
21995
21996 test $ac_write_fail = 0 ||
21997 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
21998
21999
22000 # configure is writing to config.log, and then calls config.status.
22001 # config.status does its own redirection, appending to config.log.
22002 # Unfortunately, on DOS this fails, as config.log is still kept open
22003 # by configure, so config.status won't be able to write to it; its
22004 # output is simply discarded. So we exec the FD to /dev/null,
22005 # effectively closing config.log, so it can be properly (re)opened and
22006 # appended to by config.status. When coming back to configure, we
22007 # need to make the FD available again.
22008 if test "$no_create" != yes; then
22009 ac_cs_success=:
22010 ac_config_status_args=
22011 test "$silent" = yes &&
22012 ac_config_status_args="$ac_config_status_args --quiet"
22013 exec 5>/dev/null
22014 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22015 exec 5>>config.log
22016 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22017 # would make configure fail if this is the last instruction.
22018 $ac_cs_success || as_fn_exit 1
22019 fi
22020 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
22021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
22022 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
22023 fi
22024
22025
22026