configure revision 1.1.1.6 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.71 for xf86-video-ark 0.7.6.
4 #
5 # Report bugs to <https://gitlab.freedesktop.org/xorg/driver/xf86-video-ark/-/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-ark/-/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-ark'
624 PACKAGE_TARNAME='xf86-video-ark'
625 PACKAGE_VERSION='0.7.6'
626 PACKAGE_STRING='xf86-video-ark 0.7.6'
627 PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/driver/xf86-video-ark/-/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 XAA_FALSE
669 XAA_TRUE
670 XSERVER_LIBPCIACCESS_FALSE
671 XSERVER_LIBPCIACCESS_TRUE
672 PCIACCESS_LIBS
673 PCIACCESS_CFLAGS
674 XORG_LIBS
675 XORG_CFLAGS
676 moduledir
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 MAINT
747 MAINTAINER_MODE_FALSE
748 MAINTAINER_MODE_TRUE
749 AM_BACKSLASH
750 AM_DEFAULT_VERBOSITY
751 AM_DEFAULT_V
752 AM_V
753 CSCOPE
754 ETAGS
755 CTAGS
756 am__untar
757 am__tar
758 AMTAR
759 am__leading_dot
760 SET_MAKE
761 AWK
762 mkdir_p
763 MKDIR_P
764 INSTALL_STRIP_PROGRAM
765 STRIP
766 install_sh
767 MAKEINFO
768 AUTOHEADER
769 AUTOMAKE
770 AUTOCONF
771 ACLOCAL
772 VERSION
773 PACKAGE
774 CYGPATH_W
775 am__isrc
776 INSTALL_DATA
777 INSTALL_SCRIPT
778 INSTALL_PROGRAM
779 target_alias
780 host_alias
781 build_alias
782 LIBS
783 ECHO_T
784 ECHO_N
785 ECHO_C
786 DEFS
787 mandir
788 localedir
789 libdir
790 psdir
791 pdfdir
792 dvidir
793 htmldir
794 infodir
795 docdir
796 oldincludedir
797 includedir
798 runstatedir
799 localstatedir
800 sharedstatedir
801 sysconfdir
802 datadir
803 datarootdir
804 libexecdir
805 sbindir
806 bindir
807 program_transform_name
808 prefix
809 exec_prefix
810 PACKAGE_URL
811 PACKAGE_BUGREPORT
812 PACKAGE_STRING
813 PACKAGE_VERSION
814 PACKAGE_TARNAME
815 PACKAGE_NAME
816 PATH_SEPARATOR
817 SHELL
818 am__quote'
819 ac_subst_files=''
820 ac_user_opts='
821 enable_option_checking
822 enable_silent_rules
823 enable_maintainer_mode
824 enable_dependency_tracking
825 enable_selective_werror
826 enable_strict_compilation
827 enable_static
828 enable_shared
829 with_pic
830 enable_fast_install
831 with_aix_soname
832 with_gnu_ld
833 with_sysroot
834 enable_libtool_lock
835 with_xorg_module_dir
836 enable_xaa
837 '
838 ac_precious_vars='build_alias
839 host_alias
840 target_alias
841 CC
842 CFLAGS
843 LDFLAGS
844 LIBS
845 CPPFLAGS
846 PKG_CONFIG
847 PKG_CONFIG_PATH
848 PKG_CONFIG_LIBDIR
849 LT_SYS_LIBRARY_PATH
850 XORG_CFLAGS
851 XORG_LIBS
852 PCIACCESS_CFLAGS
853 PCIACCESS_LIBS'
854
855
856 # Initialize some variables set by options.
857 ac_init_help=
858 ac_init_version=false
859 ac_unrecognized_opts=
860 ac_unrecognized_sep=
861 # The variables have the same names as the options, with
862 # dashes changed to underlines.
863 cache_file=/dev/null
864 exec_prefix=NONE
865 no_create=
866 no_recursion=
867 prefix=NONE
868 program_prefix=NONE
869 program_suffix=NONE
870 program_transform_name=s,x,x,
871 silent=
872 site=
873 srcdir=
874 verbose=
875 x_includes=NONE
876 x_libraries=NONE
877
878 # Installation directory options.
879 # These are left unexpanded so users can "make install exec_prefix=/foo"
880 # and all the variables that are supposed to be based on exec_prefix
881 # by default will actually change.
882 # Use braces instead of parens because sh, perl, etc. also accept them.
883 # (The list follows the same order as the GNU Coding Standards.)
884 bindir='${exec_prefix}/bin'
885 sbindir='${exec_prefix}/sbin'
886 libexecdir='${exec_prefix}/libexec'
887 datarootdir='${prefix}/share'
888 datadir='${datarootdir}'
889 sysconfdir='${prefix}/etc'
890 sharedstatedir='${prefix}/com'
891 localstatedir='${prefix}/var'
892 runstatedir='${localstatedir}/run'
893 includedir='${prefix}/include'
894 oldincludedir='/usr/include'
895 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
896 infodir='${datarootdir}/info'
897 htmldir='${docdir}'
898 dvidir='${docdir}'
899 pdfdir='${docdir}'
900 psdir='${docdir}'
901 libdir='${exec_prefix}/lib'
902 localedir='${datarootdir}/locale'
903 mandir='${datarootdir}/man'
904
905 ac_prev=
906 ac_dashdash=
907 for ac_option
908 do
909 # If the previous option needs an argument, assign it.
910 if test -n "$ac_prev"; then
911 eval $ac_prev=\$ac_option
912 ac_prev=
913 continue
914 fi
915
916 case $ac_option in
917 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
918 *=) ac_optarg= ;;
919 *) ac_optarg=yes ;;
920 esac
921
922 case $ac_dashdash$ac_option in
923 --)
924 ac_dashdash=yes ;;
925
926 -bindir | --bindir | --bindi | --bind | --bin | --bi)
927 ac_prev=bindir ;;
928 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
929 bindir=$ac_optarg ;;
930
931 -build | --build | --buil | --bui | --bu)
932 ac_prev=build_alias ;;
933 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
934 build_alias=$ac_optarg ;;
935
936 -cache-file | --cache-file | --cache-fil | --cache-fi \
937 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
938 ac_prev=cache_file ;;
939 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
940 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
941 cache_file=$ac_optarg ;;
942
943 --config-cache | -C)
944 cache_file=config.cache ;;
945
946 -datadir | --datadir | --datadi | --datad)
947 ac_prev=datadir ;;
948 -datadir=* | --datadir=* | --datadi=* | --datad=*)
949 datadir=$ac_optarg ;;
950
951 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
952 | --dataroo | --dataro | --datar)
953 ac_prev=datarootdir ;;
954 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
955 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
956 datarootdir=$ac_optarg ;;
957
958 -disable-* | --disable-*)
959 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
960 # Reject names that are not valid shell variable names.
961 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
962 as_fn_error $? "invalid feature name: \`$ac_useropt'"
963 ac_useropt_orig=$ac_useropt
964 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
965 case $ac_user_opts in
966 *"
967 "enable_$ac_useropt"
968 "*) ;;
969 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
970 ac_unrecognized_sep=', ';;
971 esac
972 eval enable_$ac_useropt=no ;;
973
974 -docdir | --docdir | --docdi | --doc | --do)
975 ac_prev=docdir ;;
976 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
977 docdir=$ac_optarg ;;
978
979 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
980 ac_prev=dvidir ;;
981 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
982 dvidir=$ac_optarg ;;
983
984 -enable-* | --enable-*)
985 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
986 # Reject names that are not valid shell variable names.
987 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
988 as_fn_error $? "invalid feature name: \`$ac_useropt'"
989 ac_useropt_orig=$ac_useropt
990 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
991 case $ac_user_opts in
992 *"
993 "enable_$ac_useropt"
994 "*) ;;
995 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
996 ac_unrecognized_sep=', ';;
997 esac
998 eval enable_$ac_useropt=\$ac_optarg ;;
999
1000 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1001 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1002 | --exec | --exe | --ex)
1003 ac_prev=exec_prefix ;;
1004 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1005 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1006 | --exec=* | --exe=* | --ex=*)
1007 exec_prefix=$ac_optarg ;;
1008
1009 -gas | --gas | --ga | --g)
1010 # Obsolete; use --with-gas.
1011 with_gas=yes ;;
1012
1013 -help | --help | --hel | --he | -h)
1014 ac_init_help=long ;;
1015 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1016 ac_init_help=recursive ;;
1017 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1018 ac_init_help=short ;;
1019
1020 -host | --host | --hos | --ho)
1021 ac_prev=host_alias ;;
1022 -host=* | --host=* | --hos=* | --ho=*)
1023 host_alias=$ac_optarg ;;
1024
1025 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1026 ac_prev=htmldir ;;
1027 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1028 | --ht=*)
1029 htmldir=$ac_optarg ;;
1030
1031 -includedir | --includedir | --includedi | --included | --include \
1032 | --includ | --inclu | --incl | --inc)
1033 ac_prev=includedir ;;
1034 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1035 | --includ=* | --inclu=* | --incl=* | --inc=*)
1036 includedir=$ac_optarg ;;
1037
1038 -infodir | --infodir | --infodi | --infod | --info | --inf)
1039 ac_prev=infodir ;;
1040 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1041 infodir=$ac_optarg ;;
1042
1043 -libdir | --libdir | --libdi | --libd)
1044 ac_prev=libdir ;;
1045 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1046 libdir=$ac_optarg ;;
1047
1048 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1049 | --libexe | --libex | --libe)
1050 ac_prev=libexecdir ;;
1051 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1052 | --libexe=* | --libex=* | --libe=*)
1053 libexecdir=$ac_optarg ;;
1054
1055 -localedir | --localedir | --localedi | --localed | --locale)
1056 ac_prev=localedir ;;
1057 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1058 localedir=$ac_optarg ;;
1059
1060 -localstatedir | --localstatedir | --localstatedi | --localstated \
1061 | --localstate | --localstat | --localsta | --localst | --locals)
1062 ac_prev=localstatedir ;;
1063 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1064 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1065 localstatedir=$ac_optarg ;;
1066
1067 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1068 ac_prev=mandir ;;
1069 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1070 mandir=$ac_optarg ;;
1071
1072 -nfp | --nfp | --nf)
1073 # Obsolete; use --without-fp.
1074 with_fp=no ;;
1075
1076 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1077 | --no-cr | --no-c | -n)
1078 no_create=yes ;;
1079
1080 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1081 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1082 no_recursion=yes ;;
1083
1084 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1085 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1086 | --oldin | --oldi | --old | --ol | --o)
1087 ac_prev=oldincludedir ;;
1088 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1089 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1090 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1091 oldincludedir=$ac_optarg ;;
1092
1093 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1094 ac_prev=prefix ;;
1095 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1096 prefix=$ac_optarg ;;
1097
1098 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1099 | --program-pre | --program-pr | --program-p)
1100 ac_prev=program_prefix ;;
1101 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1102 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1103 program_prefix=$ac_optarg ;;
1104
1105 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1106 | --program-suf | --program-su | --program-s)
1107 ac_prev=program_suffix ;;
1108 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1109 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1110 program_suffix=$ac_optarg ;;
1111
1112 -program-transform-name | --program-transform-name \
1113 | --program-transform-nam | --program-transform-na \
1114 | --program-transform-n | --program-transform- \
1115 | --program-transform | --program-transfor \
1116 | --program-transfo | --program-transf \
1117 | --program-trans | --program-tran \
1118 | --progr-tra | --program-tr | --program-t)
1119 ac_prev=program_transform_name ;;
1120 -program-transform-name=* | --program-transform-name=* \
1121 | --program-transform-nam=* | --program-transform-na=* \
1122 | --program-transform-n=* | --program-transform-=* \
1123 | --program-transform=* | --program-transfor=* \
1124 | --program-transfo=* | --program-transf=* \
1125 | --program-trans=* | --program-tran=* \
1126 | --progr-tra=* | --program-tr=* | --program-t=*)
1127 program_transform_name=$ac_optarg ;;
1128
1129 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1130 ac_prev=pdfdir ;;
1131 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1132 pdfdir=$ac_optarg ;;
1133
1134 -psdir | --psdir | --psdi | --psd | --ps)
1135 ac_prev=psdir ;;
1136 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1137 psdir=$ac_optarg ;;
1138
1139 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1140 | -silent | --silent | --silen | --sile | --sil)
1141 silent=yes ;;
1142
1143 -runstatedir | --runstatedir | --runstatedi | --runstated \
1144 | --runstate | --runstat | --runsta | --runst | --runs \
1145 | --run | --ru | --r)
1146 ac_prev=runstatedir ;;
1147 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1148 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1149 | --run=* | --ru=* | --r=*)
1150 runstatedir=$ac_optarg ;;
1151
1152 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1153 ac_prev=sbindir ;;
1154 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1155 | --sbi=* | --sb=*)
1156 sbindir=$ac_optarg ;;
1157
1158 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1159 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1160 | --sharedst | --shareds | --shared | --share | --shar \
1161 | --sha | --sh)
1162 ac_prev=sharedstatedir ;;
1163 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1164 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1165 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1166 | --sha=* | --sh=*)
1167 sharedstatedir=$ac_optarg ;;
1168
1169 -site | --site | --sit)
1170 ac_prev=site ;;
1171 -site=* | --site=* | --sit=*)
1172 site=$ac_optarg ;;
1173
1174 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1175 ac_prev=srcdir ;;
1176 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1177 srcdir=$ac_optarg ;;
1178
1179 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1180 | --syscon | --sysco | --sysc | --sys | --sy)
1181 ac_prev=sysconfdir ;;
1182 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1183 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1184 sysconfdir=$ac_optarg ;;
1185
1186 -target | --target | --targe | --targ | --tar | --ta | --t)
1187 ac_prev=target_alias ;;
1188 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1189 target_alias=$ac_optarg ;;
1190
1191 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1192 verbose=yes ;;
1193
1194 -version | --version | --versio | --versi | --vers | -V)
1195 ac_init_version=: ;;
1196
1197 -with-* | --with-*)
1198 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1199 # Reject names that are not valid shell variable names.
1200 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1201 as_fn_error $? "invalid package name: \`$ac_useropt'"
1202 ac_useropt_orig=$ac_useropt
1203 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1204 case $ac_user_opts in
1205 *"
1206 "with_$ac_useropt"
1207 "*) ;;
1208 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1209 ac_unrecognized_sep=', ';;
1210 esac
1211 eval with_$ac_useropt=\$ac_optarg ;;
1212
1213 -without-* | --without-*)
1214 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1215 # Reject names that are not valid shell variable names.
1216 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1217 as_fn_error $? "invalid package name: \`$ac_useropt'"
1218 ac_useropt_orig=$ac_useropt
1219 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1220 case $ac_user_opts in
1221 *"
1222 "with_$ac_useropt"
1223 "*) ;;
1224 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1225 ac_unrecognized_sep=', ';;
1226 esac
1227 eval with_$ac_useropt=no ;;
1228
1229 --x)
1230 # Obsolete; use --with-x.
1231 with_x=yes ;;
1232
1233 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1234 | --x-incl | --x-inc | --x-in | --x-i)
1235 ac_prev=x_includes ;;
1236 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1237 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1238 x_includes=$ac_optarg ;;
1239
1240 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1241 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1242 ac_prev=x_libraries ;;
1243 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1244 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1245 x_libraries=$ac_optarg ;;
1246
1247 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1248 Try \`$0 --help' for more information"
1249 ;;
1250
1251 *=*)
1252 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1253 # Reject names that are not valid shell variable names.
1254 case $ac_envvar in #(
1255 '' | [0-9]* | *[!_$as_cr_alnum]* )
1256 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1257 esac
1258 eval $ac_envvar=\$ac_optarg
1259 export $ac_envvar ;;
1260
1261 *)
1262 # FIXME: should be removed in autoconf 3.0.
1263 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1264 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1265 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1266 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1267 ;;
1268
1269 esac
1270 done
1271
1272 if test -n "$ac_prev"; then
1273 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1274 as_fn_error $? "missing argument to $ac_option"
1275 fi
1276
1277 if test -n "$ac_unrecognized_opts"; then
1278 case $enable_option_checking in
1279 no) ;;
1280 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1281 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1282 esac
1283 fi
1284
1285 # Check all directory arguments for consistency.
1286 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1287 datadir sysconfdir sharedstatedir localstatedir includedir \
1288 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1289 libdir localedir mandir runstatedir
1290 do
1291 eval ac_val=\$$ac_var
1292 # Remove trailing slashes.
1293 case $ac_val in
1294 */ )
1295 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1296 eval $ac_var=\$ac_val;;
1297 esac
1298 # Be sure to have absolute directory names.
1299 case $ac_val in
1300 [\\/$]* | ?:[\\/]* ) continue;;
1301 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1302 esac
1303 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1304 done
1305
1306 # There might be people who depend on the old broken behavior: `$host'
1307 # used to hold the argument of --host etc.
1308 # FIXME: To remove some day.
1309 build=$build_alias
1310 host=$host_alias
1311 target=$target_alias
1312
1313 # FIXME: To remove some day.
1314 if test "x$host_alias" != x; then
1315 if test "x$build_alias" = x; then
1316 cross_compiling=maybe
1317 elif test "x$build_alias" != "x$host_alias"; then
1318 cross_compiling=yes
1319 fi
1320 fi
1321
1322 ac_tool_prefix=
1323 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1324
1325 test "$silent" = yes && exec 6>/dev/null
1326
1327
1328 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1329 ac_ls_di=`ls -di .` &&
1330 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1331 as_fn_error $? "working directory cannot be determined"
1332 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1333 as_fn_error $? "pwd does not report name of working directory"
1334
1335
1336 # Find the source files, if location was not specified.
1337 if test -z "$srcdir"; then
1338 ac_srcdir_defaulted=yes
1339 # Try the directory containing this script, then the parent directory.
1340 ac_confdir=`$as_dirname -- "$as_myself" ||
1341 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1342 X"$as_myself" : 'X\(//\)[^/]' \| \
1343 X"$as_myself" : 'X\(//\)$' \| \
1344 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1345 printf "%s\n" X"$as_myself" |
1346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1347 s//\1/
1348 q
1349 }
1350 /^X\(\/\/\)[^/].*/{
1351 s//\1/
1352 q
1353 }
1354 /^X\(\/\/\)$/{
1355 s//\1/
1356 q
1357 }
1358 /^X\(\/\).*/{
1359 s//\1/
1360 q
1361 }
1362 s/.*/./; q'`
1363 srcdir=$ac_confdir
1364 if test ! -r "$srcdir/$ac_unique_file"; then
1365 srcdir=..
1366 fi
1367 else
1368 ac_srcdir_defaulted=no
1369 fi
1370 if test ! -r "$srcdir/$ac_unique_file"; then
1371 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1372 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1373 fi
1374 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1375 ac_abs_confdir=`(
1376 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1377 pwd)`
1378 # When building in place, set srcdir=.
1379 if test "$ac_abs_confdir" = "$ac_pwd"; then
1380 srcdir=.
1381 fi
1382 # Remove unnecessary trailing slashes from srcdir.
1383 # Double slashes in file names in object file debugging info
1384 # mess up M-x gdb in Emacs.
1385 case $srcdir in
1386 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1387 esac
1388 for ac_var in $ac_precious_vars; do
1389 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1390 eval ac_env_${ac_var}_value=\$${ac_var}
1391 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1392 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1393 done
1394
1395 #
1396 # Report the --help message.
1397 #
1398 if test "$ac_init_help" = "long"; then
1399 # Omit some internal or obsolete options to make the list less imposing.
1400 # This message is too long to be a string in the A/UX 3.1 sh.
1401 cat <<_ACEOF
1402 \`configure' configures xf86-video-ark 0.7.6 to adapt to many kinds of systems.
1403
1404 Usage: $0 [OPTION]... [VAR=VALUE]...
1405
1406 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1407 VAR=VALUE. See below for descriptions of some of the useful variables.
1408
1409 Defaults for the options are specified in brackets.
1410
1411 Configuration:
1412 -h, --help display this help and exit
1413 --help=short display options specific to this package
1414 --help=recursive display the short help of all the included packages
1415 -V, --version display version information and exit
1416 -q, --quiet, --silent do not print \`checking ...' messages
1417 --cache-file=FILE cache test results in FILE [disabled]
1418 -C, --config-cache alias for \`--cache-file=config.cache'
1419 -n, --no-create do not create output files
1420 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1421
1422 Installation directories:
1423 --prefix=PREFIX install architecture-independent files in PREFIX
1424 [$ac_default_prefix]
1425 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1426 [PREFIX]
1427
1428 By default, \`make install' will install all the files in
1429 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1430 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1431 for instance \`--prefix=\$HOME'.
1432
1433 For better control, use the options below.
1434
1435 Fine tuning of the installation directories:
1436 --bindir=DIR user executables [EPREFIX/bin]
1437 --sbindir=DIR system admin executables [EPREFIX/sbin]
1438 --libexecdir=DIR program executables [EPREFIX/libexec]
1439 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1440 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1441 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1442 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1443 --libdir=DIR object code libraries [EPREFIX/lib]
1444 --includedir=DIR C header files [PREFIX/include]
1445 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1446 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1447 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1448 --infodir=DIR info documentation [DATAROOTDIR/info]
1449 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1450 --mandir=DIR man documentation [DATAROOTDIR/man]
1451 --docdir=DIR documentation root [DATAROOTDIR/doc/xf86-video-ark]
1452 --htmldir=DIR html documentation [DOCDIR]
1453 --dvidir=DIR dvi documentation [DOCDIR]
1454 --pdfdir=DIR pdf documentation [DOCDIR]
1455 --psdir=DIR ps documentation [DOCDIR]
1456 _ACEOF
1457
1458 cat <<\_ACEOF
1459
1460 Program names:
1461 --program-prefix=PREFIX prepend PREFIX to installed program names
1462 --program-suffix=SUFFIX append SUFFIX to installed program names
1463 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1464
1465 System types:
1466 --build=BUILD configure for building on BUILD [guessed]
1467 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1468 _ACEOF
1469 fi
1470
1471 if test -n "$ac_init_help"; then
1472 case $ac_init_help in
1473 short | recursive ) echo "Configuration of xf86-video-ark 0.7.6:";;
1474 esac
1475 cat <<\_ACEOF
1476
1477 Optional Features:
1478 --disable-option-checking ignore unrecognized --enable/--with options
1479 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1480 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1481 --enable-silent-rules less verbose build output (undo: "make V=1")
1482 --disable-silent-rules verbose build output (undo: "make V=0")
1483 --enable-maintainer-mode
1484 enable make rules and dependencies not useful (and
1485 sometimes confusing) to the casual installer
1486 --enable-dependency-tracking
1487 do not reject slow dependency extractors
1488 --disable-dependency-tracking
1489 speeds up one-time build
1490 --disable-selective-werror
1491 Turn off selective compiler errors. (default:
1492 enabled)
1493 --enable-strict-compilation
1494 Enable all warnings from compiler and make them
1495 errors (default: disabled)
1496 --enable-static[=PKGS] build static libraries [default=no]
1497 --enable-shared[=PKGS] build shared libraries [default=yes]
1498 --enable-fast-install[=PKGS]
1499 optimize for fast installation [default=yes]
1500 --disable-libtool-lock avoid locking (might break parallel builds)
1501 --enable-xaa Enable legacy X Acceleration Architecture (XAA)
1502 [default=auto]
1503
1504 Optional Packages:
1505 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1506 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1507 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1508 both]
1509 --with-aix-soname=aix|svr4|both
1510 shared library versioning (aka "SONAME") variant to
1511 provide on AIX, [default=aix].
1512 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1513 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1514 compiler's sysroot if not specified).
1515 --with-xorg-module-dir=DIR
1516
1517 Some influential environment variables:
1518 CC C compiler command
1519 CFLAGS C compiler flags
1520 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1521 nonstandard directory <lib dir>
1522 LIBS libraries to pass to the linker, e.g. -l<library>
1523 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1524 you have headers in a nonstandard directory <include dir>
1525 PKG_CONFIG path to pkg-config utility
1526 PKG_CONFIG_PATH
1527 directories to add to pkg-config's search path
1528 PKG_CONFIG_LIBDIR
1529 path overriding pkg-config's built-in search path
1530 LT_SYS_LIBRARY_PATH
1531 User-defined run-time library search path.
1532 XORG_CFLAGS C compiler flags for XORG, overriding pkg-config
1533 XORG_LIBS linker flags for XORG, overriding pkg-config
1534 PCIACCESS_CFLAGS
1535 C compiler flags for PCIACCESS, overriding pkg-config
1536 PCIACCESS_LIBS
1537 linker flags for PCIACCESS, overriding pkg-config
1538
1539 Use these variables to override the choices made by `configure' or to help
1540 it to find libraries and programs with nonstandard names/locations.
1541
1542 Report bugs to <https://gitlab.freedesktop.org/xorg/driver/xf86-video-ark/-/issues>.
1543 _ACEOF
1544 ac_status=$?
1545 fi
1546
1547 if test "$ac_init_help" = "recursive"; then
1548 # If there are subdirs, report their specific --help.
1549 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1550 test -d "$ac_dir" ||
1551 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1552 continue
1553 ac_builddir=.
1554
1555 case "$ac_dir" in
1556 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1557 *)
1558 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1559 # A ".." for each directory in $ac_dir_suffix.
1560 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1561 case $ac_top_builddir_sub in
1562 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1563 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1564 esac ;;
1565 esac
1566 ac_abs_top_builddir=$ac_pwd
1567 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1568 # for backward compatibility:
1569 ac_top_builddir=$ac_top_build_prefix
1570
1571 case $srcdir in
1572 .) # We are building in place.
1573 ac_srcdir=.
1574 ac_top_srcdir=$ac_top_builddir_sub
1575 ac_abs_top_srcdir=$ac_pwd ;;
1576 [\\/]* | ?:[\\/]* ) # Absolute name.
1577 ac_srcdir=$srcdir$ac_dir_suffix;
1578 ac_top_srcdir=$srcdir
1579 ac_abs_top_srcdir=$srcdir ;;
1580 *) # Relative name.
1581 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1582 ac_top_srcdir=$ac_top_build_prefix$srcdir
1583 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1584 esac
1585 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1586
1587 cd "$ac_dir" || { ac_status=$?; continue; }
1588 # Check for configure.gnu first; this name is used for a wrapper for
1589 # Metaconfig's "Configure" on case-insensitive file systems.
1590 if test -f "$ac_srcdir/configure.gnu"; then
1591 echo &&
1592 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1593 elif test -f "$ac_srcdir/configure"; then
1594 echo &&
1595 $SHELL "$ac_srcdir/configure" --help=recursive
1596 else
1597 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1598 fi || ac_status=$?
1599 cd "$ac_pwd" || { ac_status=$?; break; }
1600 done
1601 fi
1602
1603 test -n "$ac_init_help" && exit $ac_status
1604 if $ac_init_version; then
1605 cat <<\_ACEOF
1606 xf86-video-ark configure 0.7.6
1607 generated by GNU Autoconf 2.71
1608
1609 Copyright (C) 2021 Free Software Foundation, Inc.
1610 This configure script is free software; the Free Software Foundation
1611 gives unlimited permission to copy, distribute and modify it.
1612 _ACEOF
1613 exit
1614 fi
1615
1616 ## ------------------------ ##
1617 ## Autoconf initialization. ##
1618 ## ------------------------ ##
1619
1620 # ac_fn_c_try_compile LINENO
1621 # --------------------------
1622 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1623 ac_fn_c_try_compile ()
1624 {
1625 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1626 rm -f conftest.$ac_objext conftest.beam
1627 if { { ac_try="$ac_compile"
1628 case "(($ac_try" in
1629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1630 *) ac_try_echo=$ac_try;;
1631 esac
1632 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1633 printf "%s\n" "$ac_try_echo"; } >&5
1634 (eval "$ac_compile") 2>conftest.err
1635 ac_status=$?
1636 if test -s conftest.err; then
1637 grep -v '^ *+' conftest.err >conftest.er1
1638 cat conftest.er1 >&5
1639 mv -f conftest.er1 conftest.err
1640 fi
1641 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1642 test $ac_status = 0; } && {
1643 test -z "$ac_c_werror_flag" ||
1644 test ! -s conftest.err
1645 } && test -s conftest.$ac_objext
1646 then :
1647 ac_retval=0
1648 else $as_nop
1649 printf "%s\n" "$as_me: failed program was:" >&5
1650 sed 's/^/| /' conftest.$ac_ext >&5
1651
1652 ac_retval=1
1653 fi
1654 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1655 as_fn_set_status $ac_retval
1656
1657 } # ac_fn_c_try_compile
1658
1659 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
1660 # ------------------------------------------------------------------
1661 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1662 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
1663 ac_fn_check_decl ()
1664 {
1665 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1666 as_decl_name=`echo $2|sed 's/ *(.*//'`
1667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1668 printf %s "checking whether $as_decl_name is declared... " >&6; }
1669 if eval test \${$3+y}
1670 then :
1671 printf %s "(cached) " >&6
1672 else $as_nop
1673 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1674 eval ac_save_FLAGS=\$$6
1675 as_fn_append $6 " $5"
1676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1677 /* end confdefs.h. */
1678 $4
1679 int
1680 main (void)
1681 {
1682 #ifndef $as_decl_name
1683 #ifdef __cplusplus
1684 (void) $as_decl_use;
1685 #else
1686 (void) $as_decl_name;
1687 #endif
1688 #endif
1689
1690 ;
1691 return 0;
1692 }
1693 _ACEOF
1694 if ac_fn_c_try_compile "$LINENO"
1695 then :
1696 eval "$3=yes"
1697 else $as_nop
1698 eval "$3=no"
1699 fi
1700 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1701 eval $6=\$ac_save_FLAGS
1702
1703 fi
1704 eval ac_res=\$$3
1705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1706 printf "%s\n" "$ac_res" >&6; }
1707 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1708
1709 } # ac_fn_check_decl
1710
1711 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1712 # -------------------------------------------------------
1713 # Tests whether HEADER exists and can be compiled using the include files in
1714 # INCLUDES, setting the cache variable VAR accordingly.
1715 ac_fn_c_check_header_compile ()
1716 {
1717 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1719 printf %s "checking for $2... " >&6; }
1720 if eval test \${$3+y}
1721 then :
1722 printf %s "(cached) " >&6
1723 else $as_nop
1724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1725 /* end confdefs.h. */
1726 $4
1727 #include <$2>
1728 _ACEOF
1729 if ac_fn_c_try_compile "$LINENO"
1730 then :
1731 eval "$3=yes"
1732 else $as_nop
1733 eval "$3=no"
1734 fi
1735 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1736 fi
1737 eval ac_res=\$$3
1738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1739 printf "%s\n" "$ac_res" >&6; }
1740 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1741
1742 } # ac_fn_c_check_header_compile
1743
1744 # ac_fn_c_try_link LINENO
1745 # -----------------------
1746 # Try to link conftest.$ac_ext, and return whether this succeeded.
1747 ac_fn_c_try_link ()
1748 {
1749 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1750 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1751 if { { ac_try="$ac_link"
1752 case "(($ac_try" in
1753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1754 *) ac_try_echo=$ac_try;;
1755 esac
1756 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1757 printf "%s\n" "$ac_try_echo"; } >&5
1758 (eval "$ac_link") 2>conftest.err
1759 ac_status=$?
1760 if test -s conftest.err; then
1761 grep -v '^ *+' conftest.err >conftest.er1
1762 cat conftest.er1 >&5
1763 mv -f conftest.er1 conftest.err
1764 fi
1765 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1766 test $ac_status = 0; } && {
1767 test -z "$ac_c_werror_flag" ||
1768 test ! -s conftest.err
1769 } && test -s conftest$ac_exeext && {
1770 test "$cross_compiling" = yes ||
1771 test -x conftest$ac_exeext
1772 }
1773 then :
1774 ac_retval=0
1775 else $as_nop
1776 printf "%s\n" "$as_me: failed program was:" >&5
1777 sed 's/^/| /' conftest.$ac_ext >&5
1778
1779 ac_retval=1
1780 fi
1781 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1782 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1783 # interfere with the next link command; also delete a directory that is
1784 # left behind by Apple's compiler. We do this before executing the actions.
1785 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1786 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1787 as_fn_set_status $ac_retval
1788
1789 } # ac_fn_c_try_link
1790
1791 # ac_fn_c_check_func LINENO FUNC VAR
1792 # ----------------------------------
1793 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1794 ac_fn_c_check_func ()
1795 {
1796 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1798 printf %s "checking for $2... " >&6; }
1799 if eval test \${$3+y}
1800 then :
1801 printf %s "(cached) " >&6
1802 else $as_nop
1803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1804 /* end confdefs.h. */
1805 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1806 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1807 #define $2 innocuous_$2
1808
1809 /* System header to define __stub macros and hopefully few prototypes,
1810 which can conflict with char $2 (); below. */
1811
1812 #include <limits.h>
1813 #undef $2
1814
1815 /* Override any GCC internal prototype to avoid an error.
1816 Use char because int might match the return type of a GCC
1817 builtin and then its argument prototype would still apply. */
1818 #ifdef __cplusplus
1819 extern "C"
1820 #endif
1821 char $2 ();
1822 /* The GNU C library defines this for functions which it implements
1823 to always fail with ENOSYS. Some functions are actually named
1824 something starting with __ and the normal name is an alias. */
1825 #if defined __stub_$2 || defined __stub___$2
1826 choke me
1827 #endif
1828
1829 int
1830 main (void)
1831 {
1832 return $2 ();
1833 ;
1834 return 0;
1835 }
1836 _ACEOF
1837 if ac_fn_c_try_link "$LINENO"
1838 then :
1839 eval "$3=yes"
1840 else $as_nop
1841 eval "$3=no"
1842 fi
1843 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1844 conftest$ac_exeext conftest.$ac_ext
1845 fi
1846 eval ac_res=\$$3
1847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1848 printf "%s\n" "$ac_res" >&6; }
1849 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1850
1851 } # ac_fn_c_check_func
1852 ac_configure_args_raw=
1853 for ac_arg
1854 do
1855 case $ac_arg in
1856 *\'*)
1857 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1858 esac
1859 as_fn_append ac_configure_args_raw " '$ac_arg'"
1860 done
1861
1862 case $ac_configure_args_raw in
1863 *$as_nl*)
1864 ac_safe_unquote= ;;
1865 *)
1866 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
1867 ac_unsafe_a="$ac_unsafe_z#~"
1868 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1869 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1870 esac
1871
1872 cat >config.log <<_ACEOF
1873 This file contains any messages produced by compilers while
1874 running configure, to aid debugging if configure makes a mistake.
1875
1876 It was created by xf86-video-ark $as_me 0.7.6, which was
1877 generated by GNU Autoconf 2.71. Invocation command line was
1878
1879 $ $0$ac_configure_args_raw
1880
1881 _ACEOF
1882 exec 5>>config.log
1883 {
1884 cat <<_ASUNAME
1885 ## --------- ##
1886 ## Platform. ##
1887 ## --------- ##
1888
1889 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1890 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1891 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1892 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1893 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1894
1895 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1896 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1897
1898 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1899 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1900 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1901 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1902 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1903 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1904 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1905
1906 _ASUNAME
1907
1908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1909 for as_dir in $PATH
1910 do
1911 IFS=$as_save_IFS
1912 case $as_dir in #(((
1913 '') as_dir=./ ;;
1914 */) ;;
1915 *) as_dir=$as_dir/ ;;
1916 esac
1917 printf "%s\n" "PATH: $as_dir"
1918 done
1919 IFS=$as_save_IFS
1920
1921 } >&5
1922
1923 cat >&5 <<_ACEOF
1924
1925
1926 ## ----------- ##
1927 ## Core tests. ##
1928 ## ----------- ##
1929
1930 _ACEOF
1931
1932
1933 # Keep a trace of the command line.
1934 # Strip out --no-create and --no-recursion so they do not pile up.
1935 # Strip out --silent because we don't want to record it for future runs.
1936 # Also quote any args containing shell meta-characters.
1937 # Make two passes to allow for proper duplicate-argument suppression.
1938 ac_configure_args=
1939 ac_configure_args0=
1940 ac_configure_args1=
1941 ac_must_keep_next=false
1942 for ac_pass in 1 2
1943 do
1944 for ac_arg
1945 do
1946 case $ac_arg in
1947 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1948 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1949 | -silent | --silent | --silen | --sile | --sil)
1950 continue ;;
1951 *\'*)
1952 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1953 esac
1954 case $ac_pass in
1955 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1956 2)
1957 as_fn_append ac_configure_args1 " '$ac_arg'"
1958 if test $ac_must_keep_next = true; then
1959 ac_must_keep_next=false # Got value, back to normal.
1960 else
1961 case $ac_arg in
1962 *=* | --config-cache | -C | -disable-* | --disable-* \
1963 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1964 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1965 | -with-* | --with-* | -without-* | --without-* | --x)
1966 case "$ac_configure_args0 " in
1967 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1968 esac
1969 ;;
1970 -* ) ac_must_keep_next=true ;;
1971 esac
1972 fi
1973 as_fn_append ac_configure_args " '$ac_arg'"
1974 ;;
1975 esac
1976 done
1977 done
1978 { ac_configure_args0=; unset ac_configure_args0;}
1979 { ac_configure_args1=; unset ac_configure_args1;}
1980
1981 # When interrupted or exit'd, cleanup temporary files, and complete
1982 # config.log. We remove comments because anyway the quotes in there
1983 # would cause problems or look ugly.
1984 # WARNING: Use '\'' to represent an apostrophe within the trap.
1985 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1986 trap 'exit_status=$?
1987 # Sanitize IFS.
1988 IFS=" "" $as_nl"
1989 # Save into config.log some information that might help in debugging.
1990 {
1991 echo
1992
1993 printf "%s\n" "## ---------------- ##
1994 ## Cache variables. ##
1995 ## ---------------- ##"
1996 echo
1997 # The following way of writing the cache mishandles newlines in values,
1998 (
1999 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2000 eval ac_val=\$$ac_var
2001 case $ac_val in #(
2002 *${as_nl}*)
2003 case $ac_var in #(
2004 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2005 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2006 esac
2007 case $ac_var in #(
2008 _ | IFS | as_nl) ;; #(
2009 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2010 *) { eval $ac_var=; unset $ac_var;} ;;
2011 esac ;;
2012 esac
2013 done
2014 (set) 2>&1 |
2015 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2016 *${as_nl}ac_space=\ *)
2017 sed -n \
2018 "s/'\''/'\''\\\\'\'''\''/g;
2019 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2020 ;; #(
2021 *)
2022 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2023 ;;
2024 esac |
2025 sort
2026 )
2027 echo
2028
2029 printf "%s\n" "## ----------------- ##
2030 ## Output variables. ##
2031 ## ----------------- ##"
2032 echo
2033 for ac_var in $ac_subst_vars
2034 do
2035 eval ac_val=\$$ac_var
2036 case $ac_val in
2037 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2038 esac
2039 printf "%s\n" "$ac_var='\''$ac_val'\''"
2040 done | sort
2041 echo
2042
2043 if test -n "$ac_subst_files"; then
2044 printf "%s\n" "## ------------------- ##
2045 ## File substitutions. ##
2046 ## ------------------- ##"
2047 echo
2048 for ac_var in $ac_subst_files
2049 do
2050 eval ac_val=\$$ac_var
2051 case $ac_val in
2052 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2053 esac
2054 printf "%s\n" "$ac_var='\''$ac_val'\''"
2055 done | sort
2056 echo
2057 fi
2058
2059 if test -s confdefs.h; then
2060 printf "%s\n" "## ----------- ##
2061 ## confdefs.h. ##
2062 ## ----------- ##"
2063 echo
2064 cat confdefs.h
2065 echo
2066 fi
2067 test "$ac_signal" != 0 &&
2068 printf "%s\n" "$as_me: caught signal $ac_signal"
2069 printf "%s\n" "$as_me: exit $exit_status"
2070 } >&5
2071 rm -f core *.core core.conftest.* &&
2072 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2073 exit $exit_status
2074 ' 0
2075 for ac_signal in 1 2 13 15; do
2076 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2077 done
2078 ac_signal=0
2079
2080 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2081 rm -f -r conftest* confdefs.h
2082
2083 printf "%s\n" "/* confdefs.h */" > confdefs.h
2084
2085 # Predefined preprocessor variables.
2086
2087 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2088
2089 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2090
2091 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2092
2093 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2094
2095 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2096
2097 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2098
2099
2100 # Let the site file select an alternate cache file if it wants to.
2101 # Prefer an explicitly selected file to automatically selected ones.
2102 if test -n "$CONFIG_SITE"; then
2103 ac_site_files="$CONFIG_SITE"
2104 elif test "x$prefix" != xNONE; then
2105 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2106 else
2107 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2108 fi
2109
2110 for ac_site_file in $ac_site_files
2111 do
2112 case $ac_site_file in #(
2113 */*) :
2114 ;; #(
2115 *) :
2116 ac_site_file=./$ac_site_file ;;
2117 esac
2118 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2120 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2121 sed 's/^/| /' "$ac_site_file" >&5
2122 . "$ac_site_file" \
2123 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2124 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2125 as_fn_error $? "failed to load site script $ac_site_file
2126 See \`config.log' for more details" "$LINENO" 5; }
2127 fi
2128 done
2129
2130 if test -r "$cache_file"; then
2131 # Some versions of bash will fail to source /dev/null (special files
2132 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2133 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2135 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2136 case $cache_file in
2137 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2138 *) . "./$cache_file";;
2139 esac
2140 fi
2141 else
2142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2143 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2144 >$cache_file
2145 fi
2146
2147 # Test code for whether the C compiler supports C89 (global declarations)
2148 ac_c_conftest_c89_globals='
2149 /* Does the compiler advertise C89 conformance?
2150 Do not test the value of __STDC__, because some compilers set it to 0
2151 while being otherwise adequately conformant. */
2152 #if !defined __STDC__
2153 # error "Compiler does not advertise C89 conformance"
2154 #endif
2155
2156 #include <stddef.h>
2157 #include <stdarg.h>
2158 struct stat;
2159 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2160 struct buf { int x; };
2161 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2162 static char *e (p, i)
2163 char **p;
2164 int i;
2165 {
2166 return p[i];
2167 }
2168 static char *f (char * (*g) (char **, int), char **p, ...)
2169 {
2170 char *s;
2171 va_list v;
2172 va_start (v,p);
2173 s = g (p, va_arg (v,int));
2174 va_end (v);
2175 return s;
2176 }
2177
2178 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2179 function prototypes and stuff, but not \xHH hex character constants.
2180 These do not provoke an error unfortunately, instead are silently treated
2181 as an "x". The following induces an error, until -std is added to get
2182 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2183 array size at least. It is necessary to write \x00 == 0 to get something
2184 that is true only with -std. */
2185 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2186
2187 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2188 inside strings and character constants. */
2189 #define FOO(x) '\''x'\''
2190 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2191
2192 int test (int i, double x);
2193 struct s1 {int (*f) (int a);};
2194 struct s2 {int (*f) (double a);};
2195 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2196 int, int);'
2197
2198 # Test code for whether the C compiler supports C89 (body of main).
2199 ac_c_conftest_c89_main='
2200 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2201 '
2202
2203 # Test code for whether the C compiler supports C99 (global declarations)
2204 ac_c_conftest_c99_globals='
2205 // Does the compiler advertise C99 conformance?
2206 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2207 # error "Compiler does not advertise C99 conformance"
2208 #endif
2209
2210 #include <stdbool.h>
2211 extern int puts (const char *);
2212 extern int printf (const char *, ...);
2213 extern int dprintf (int, const char *, ...);
2214 extern void *malloc (size_t);
2215
2216 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2217 // dprintf is used instead of fprintf to avoid needing to declare
2218 // FILE and stderr.
2219 #define debug(...) dprintf (2, __VA_ARGS__)
2220 #define showlist(...) puts (#__VA_ARGS__)
2221 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2222 static void
2223 test_varargs_macros (void)
2224 {
2225 int x = 1234;
2226 int y = 5678;
2227 debug ("Flag");
2228 debug ("X = %d\n", x);
2229 showlist (The first, second, and third items.);
2230 report (x>y, "x is %d but y is %d", x, y);
2231 }
2232
2233 // Check long long types.
2234 #define BIG64 18446744073709551615ull
2235 #define BIG32 4294967295ul
2236 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2237 #if !BIG_OK
2238 #error "your preprocessor is broken"
2239 #endif
2240 #if BIG_OK
2241 #else
2242 #error "your preprocessor is broken"
2243 #endif
2244 static long long int bignum = -9223372036854775807LL;
2245 static unsigned long long int ubignum = BIG64;
2246
2247 struct incomplete_array
2248 {
2249 int datasize;
2250 double data[];
2251 };
2252
2253 struct named_init {
2254 int number;
2255 const wchar_t *name;
2256 double average;
2257 };
2258
2259 typedef const char *ccp;
2260
2261 static inline int
2262 test_restrict (ccp restrict text)
2263 {
2264 // See if C++-style comments work.
2265 // Iterate through items via the restricted pointer.
2266 // Also check for declarations in for loops.
2267 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2268 continue;
2269 return 0;
2270 }
2271
2272 // Check varargs and va_copy.
2273 static bool
2274 test_varargs (const char *format, ...)
2275 {
2276 va_list args;
2277 va_start (args, format);
2278 va_list args_copy;
2279 va_copy (args_copy, args);
2280
2281 const char *str = "";
2282 int number = 0;
2283 float fnumber = 0;
2284
2285 while (*format)
2286 {
2287 switch (*format++)
2288 {
2289 case '\''s'\'': // string
2290 str = va_arg (args_copy, const char *);
2291 break;
2292 case '\''d'\'': // int
2293 number = va_arg (args_copy, int);
2294 break;
2295 case '\''f'\'': // float
2296 fnumber = va_arg (args_copy, double);
2297 break;
2298 default:
2299 break;
2300 }
2301 }
2302 va_end (args_copy);
2303 va_end (args);
2304
2305 return *str && number && fnumber;
2306 }
2307 '
2308
2309 # Test code for whether the C compiler supports C99 (body of main).
2310 ac_c_conftest_c99_main='
2311 // Check bool.
2312 _Bool success = false;
2313 success |= (argc != 0);
2314
2315 // Check restrict.
2316 if (test_restrict ("String literal") == 0)
2317 success = true;
2318 char *restrict newvar = "Another string";
2319
2320 // Check varargs.
2321 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2322 test_varargs_macros ();
2323
2324 // Check flexible array members.
2325 struct incomplete_array *ia =
2326 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2327 ia->datasize = 10;
2328 for (int i = 0; i < ia->datasize; ++i)
2329 ia->data[i] = i * 1.234;
2330
2331 // Check named initializers.
2332 struct named_init ni = {
2333 .number = 34,
2334 .name = L"Test wide string",
2335 .average = 543.34343,
2336 };
2337
2338 ni.number = 58;
2339
2340 int dynamic_array[ni.number];
2341 dynamic_array[0] = argv[0][0];
2342 dynamic_array[ni.number - 1] = 543;
2343
2344 // work around unused variable warnings
2345 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2346 || dynamic_array[ni.number - 1] != 543);
2347 '
2348
2349 # Test code for whether the C compiler supports C11 (global declarations)
2350 ac_c_conftest_c11_globals='
2351 // Does the compiler advertise C11 conformance?
2352 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2353 # error "Compiler does not advertise C11 conformance"
2354 #endif
2355
2356 // Check _Alignas.
2357 char _Alignas (double) aligned_as_double;
2358 char _Alignas (0) no_special_alignment;
2359 extern char aligned_as_int;
2360 char _Alignas (0) _Alignas (int) aligned_as_int;
2361
2362 // Check _Alignof.
2363 enum
2364 {
2365 int_alignment = _Alignof (int),
2366 int_array_alignment = _Alignof (int[100]),
2367 char_alignment = _Alignof (char)
2368 };
2369 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2370
2371 // Check _Noreturn.
2372 int _Noreturn does_not_return (void) { for (;;) continue; }
2373
2374 // Check _Static_assert.
2375 struct test_static_assert
2376 {
2377 int x;
2378 _Static_assert (sizeof (int) <= sizeof (long int),
2379 "_Static_assert does not work in struct");
2380 long int y;
2381 };
2382
2383 // Check UTF-8 literals.
2384 #define u8 syntax error!
2385 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2386
2387 // Check duplicate typedefs.
2388 typedef long *long_ptr;
2389 typedef long int *long_ptr;
2390 typedef long_ptr long_ptr;
2391
2392 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2393 struct anonymous
2394 {
2395 union {
2396 struct { int i; int j; };
2397 struct { int k; long int l; } w;
2398 };
2399 int m;
2400 } v1;
2401 '
2402
2403 # Test code for whether the C compiler supports C11 (body of main).
2404 ac_c_conftest_c11_main='
2405 _Static_assert ((offsetof (struct anonymous, i)
2406 == offsetof (struct anonymous, w.k)),
2407 "Anonymous union alignment botch");
2408 v1.i = 2;
2409 v1.w.k = 5;
2410 ok |= v1.i != 5;
2411 '
2412
2413 # Test code for whether the C compiler supports C11 (complete).
2414 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2415 ${ac_c_conftest_c99_globals}
2416 ${ac_c_conftest_c11_globals}
2417
2418 int
2419 main (int argc, char **argv)
2420 {
2421 int ok = 0;
2422 ${ac_c_conftest_c89_main}
2423 ${ac_c_conftest_c99_main}
2424 ${ac_c_conftest_c11_main}
2425 return ok;
2426 }
2427 "
2428
2429 # Test code for whether the C compiler supports C99 (complete).
2430 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2431 ${ac_c_conftest_c99_globals}
2432
2433 int
2434 main (int argc, char **argv)
2435 {
2436 int ok = 0;
2437 ${ac_c_conftest_c89_main}
2438 ${ac_c_conftest_c99_main}
2439 return ok;
2440 }
2441 "
2442
2443 # Test code for whether the C compiler supports C89 (complete).
2444 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2445
2446 int
2447 main (int argc, char **argv)
2448 {
2449 int ok = 0;
2450 ${ac_c_conftest_c89_main}
2451 return ok;
2452 }
2453 "
2454
2455 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2456 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2457 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2458 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2459 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2460 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2461 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2462 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2463 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2464
2465 # Auxiliary files required by this configure script.
2466 ac_aux_files="ltmain.sh config.guess config.sub compile missing install-sh"
2467
2468 # Locations in which to look for auxiliary files.
2469 ac_aux_dir_candidates="${srcdir}/."
2470
2471 # Search for a directory containing all of the required auxiliary files,
2472 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2473 # If we don't find one directory that contains all the files we need,
2474 # we report the set of missing files from the *first* directory in
2475 # $ac_aux_dir_candidates and give up.
2476 ac_missing_aux_files=""
2477 ac_first_candidate=:
2478 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2480 as_found=false
2481 for as_dir in $ac_aux_dir_candidates
2482 do
2483 IFS=$as_save_IFS
2484 case $as_dir in #(((
2485 '') as_dir=./ ;;
2486 */) ;;
2487 *) as_dir=$as_dir/ ;;
2488 esac
2489 as_found=:
2490
2491 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2492 ac_aux_dir_found=yes
2493 ac_install_sh=
2494 for ac_aux in $ac_aux_files
2495 do
2496 # As a special case, if "install-sh" is required, that requirement
2497 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2498 # and $ac_install_sh is set appropriately for whichever one is found.
2499 if test x"$ac_aux" = x"install-sh"
2500 then
2501 if test -f "${as_dir}install-sh"; then
2502 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2503 ac_install_sh="${as_dir}install-sh -c"
2504 elif test -f "${as_dir}install.sh"; then
2505 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2506 ac_install_sh="${as_dir}install.sh -c"
2507 elif test -f "${as_dir}shtool"; then
2508 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2509 ac_install_sh="${as_dir}shtool install -c"
2510 else
2511 ac_aux_dir_found=no
2512 if $ac_first_candidate; then
2513 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2514 else
2515 break
2516 fi
2517 fi
2518 else
2519 if test -f "${as_dir}${ac_aux}"; then
2520 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2521 else
2522 ac_aux_dir_found=no
2523 if $ac_first_candidate; then
2524 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2525 else
2526 break
2527 fi
2528 fi
2529 fi
2530 done
2531 if test "$ac_aux_dir_found" = yes; then
2532 ac_aux_dir="$as_dir"
2533 break
2534 fi
2535 ac_first_candidate=false
2536
2537 as_found=false
2538 done
2539 IFS=$as_save_IFS
2540 if $as_found
2541 then :
2542
2543 else $as_nop
2544 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2545 fi
2546
2547
2548 # These three variables are undocumented and unsupported,
2549 # and are intended to be withdrawn in a future Autoconf release.
2550 # They can cause serious problems if a builder's source tree is in a directory
2551 # whose full name contains unusual characters.
2552 if test -f "${ac_aux_dir}config.guess"; then
2553 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2554 fi
2555 if test -f "${ac_aux_dir}config.sub"; then
2556 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2557 fi
2558 if test -f "$ac_aux_dir/configure"; then
2559 ac_configure="$SHELL ${ac_aux_dir}configure"
2560 fi
2561
2562 # Check that the precious variables saved in the cache have kept the same
2563 # value.
2564 ac_cache_corrupted=false
2565 for ac_var in $ac_precious_vars; do
2566 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2567 eval ac_new_set=\$ac_env_${ac_var}_set
2568 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2569 eval ac_new_val=\$ac_env_${ac_var}_value
2570 case $ac_old_set,$ac_new_set in
2571 set,)
2572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2573 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2574 ac_cache_corrupted=: ;;
2575 ,set)
2576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2577 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2578 ac_cache_corrupted=: ;;
2579 ,);;
2580 *)
2581 if test "x$ac_old_val" != "x$ac_new_val"; then
2582 # differences in whitespace do not lead to failure.
2583 ac_old_val_w=`echo x $ac_old_val`
2584 ac_new_val_w=`echo x $ac_new_val`
2585 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2586 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2587 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2588 ac_cache_corrupted=:
2589 else
2590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2591 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2592 eval $ac_var=\$ac_old_val
2593 fi
2594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2595 printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
2596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2597 printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
2598 fi;;
2599 esac
2600 # Pass precious variables to config.status.
2601 if test "$ac_new_set" = set; then
2602 case $ac_new_val in
2603 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2604 *) ac_arg=$ac_var=$ac_new_val ;;
2605 esac
2606 case " $ac_configure_args " in
2607 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2608 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2609 esac
2610 fi
2611 done
2612 if $ac_cache_corrupted; then
2613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2614 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2616 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2617 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2618 and start over" "$LINENO" 5
2619 fi
2620 ## -------------------- ##
2621 ## Main body of script. ##
2622 ## -------------------- ##
2623
2624 ac_ext=c
2625 ac_cpp='$CPP $CPPFLAGS'
2626 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2627 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2628 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2629
2630
2631
2632 ac_config_headers="$ac_config_headers config.h"
2633
2634
2635
2636 # Initialize Automake
2637 am__api_version='1.16'
2638
2639
2640
2641 # Find a good install program. We prefer a C program (faster),
2642 # so one script is as good as another. But avoid the broken or
2643 # incompatible versions:
2644 # SysV /etc/install, /usr/sbin/install
2645 # SunOS /usr/etc/install
2646 # IRIX /sbin/install
2647 # AIX /bin/install
2648 # AmigaOS /C/install, which installs bootblocks on floppy discs
2649 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2650 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2651 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2652 # OS/2's system install, which has a completely different semantic
2653 # ./install, which can be erroneously created by make from ./install.sh.
2654 # Reject install programs that cannot install multiple files.
2655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2656 printf %s "checking for a BSD-compatible install... " >&6; }
2657 if test -z "$INSTALL"; then
2658 if test ${ac_cv_path_install+y}
2659 then :
2660 printf %s "(cached) " >&6
2661 else $as_nop
2662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2663 for as_dir in $PATH
2664 do
2665 IFS=$as_save_IFS
2666 case $as_dir in #(((
2667 '') as_dir=./ ;;
2668 */) ;;
2669 *) as_dir=$as_dir/ ;;
2670 esac
2671 # Account for fact that we put trailing slashes in our PATH walk.
2672 case $as_dir in #((
2673 ./ | /[cC]/* | \
2674 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2675 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2676 /usr/ucb/* ) ;;
2677 *)
2678 # OSF1 and SCO ODT 3.0 have their own names for install.
2679 # Don't use installbsd from OSF since it installs stuff as root
2680 # by default.
2681 for ac_prog in ginstall scoinst install; do
2682 for ac_exec_ext in '' $ac_executable_extensions; do
2683 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
2684 if test $ac_prog = install &&
2685 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2686 # AIX install. It has an incompatible calling convention.
2687 :
2688 elif test $ac_prog = install &&
2689 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2690 # program-specific install script used by HP pwplus--don't use.
2691 :
2692 else
2693 rm -rf conftest.one conftest.two conftest.dir
2694 echo one > conftest.one
2695 echo two > conftest.two
2696 mkdir conftest.dir
2697 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
2698 test -s conftest.one && test -s conftest.two &&
2699 test -s conftest.dir/conftest.one &&
2700 test -s conftest.dir/conftest.two
2701 then
2702 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
2703 break 3
2704 fi
2705 fi
2706 fi
2707 done
2708 done
2709 ;;
2710 esac
2711
2712 done
2713 IFS=$as_save_IFS
2714
2715 rm -rf conftest.one conftest.two conftest.dir
2716
2717 fi
2718 if test ${ac_cv_path_install+y}; then
2719 INSTALL=$ac_cv_path_install
2720 else
2721 # As a last resort, use the slow shell script. Don't cache a
2722 # value for INSTALL within a source directory, because that will
2723 # break other packages using the cache if that directory is
2724 # removed, or if the value is a relative name.
2725 INSTALL=$ac_install_sh
2726 fi
2727 fi
2728 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2729 printf "%s\n" "$INSTALL" >&6; }
2730
2731 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2732 # It thinks the first close brace ends the variable substitution.
2733 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2734
2735 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2736
2737 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2738
2739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2740 printf %s "checking whether build environment is sane... " >&6; }
2741 # Reject unsafe characters in $srcdir or the absolute working directory
2742 # name. Accept space and tab only in the latter.
2743 am_lf='
2744 '
2745 case `pwd` in
2746 *[\\\"\#\$\&\'\`$am_lf]*)
2747 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2748 esac
2749 case $srcdir in
2750 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2751 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2752 esac
2753
2754 # Do 'set' in a subshell so we don't clobber the current shell's
2755 # arguments. Must try -L first in case configure is actually a
2756 # symlink; some systems play weird games with the mod time of symlinks
2757 # (eg FreeBSD returns the mod time of the symlink's containing
2758 # directory).
2759 if (
2760 am_has_slept=no
2761 for am_try in 1 2; do
2762 echo "timestamp, slept: $am_has_slept" > conftest.file
2763 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2764 if test "$*" = "X"; then
2765 # -L didn't work.
2766 set X `ls -t "$srcdir/configure" conftest.file`
2767 fi
2768 if test "$*" != "X $srcdir/configure conftest.file" \
2769 && test "$*" != "X conftest.file $srcdir/configure"; then
2770
2771 # If neither matched, then we have a broken ls. This can happen
2772 # if, for instance, CONFIG_SHELL is bash and it inherits a
2773 # broken ls alias from the environment. This has actually
2774 # happened. Such a system could not be considered "sane".
2775 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2776 alias in your environment" "$LINENO" 5
2777 fi
2778 if test "$2" = conftest.file || test $am_try -eq 2; then
2779 break
2780 fi
2781 # Just in case.
2782 sleep 1
2783 am_has_slept=yes
2784 done
2785 test "$2" = conftest.file
2786 )
2787 then
2788 # Ok.
2789 :
2790 else
2791 as_fn_error $? "newly created file is older than distributed files!
2792 Check your system clock" "$LINENO" 5
2793 fi
2794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2795 printf "%s\n" "yes" >&6; }
2796 # If we didn't sleep, we still need to ensure time stamps of config.status and
2797 # generated files are strictly newer.
2798 am_sleep_pid=
2799 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2800 ( sleep 1 ) &
2801 am_sleep_pid=$!
2802 fi
2803
2804 rm -f conftest.file
2805
2806 test "$program_prefix" != NONE &&
2807 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2808 # Use a double $ so make ignores it.
2809 test "$program_suffix" != NONE &&
2810 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2811 # Double any \ or $.
2812 # By default was `s,x,x', remove it if useless.
2813 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2814 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
2815
2816
2817 # Expand $ac_aux_dir to an absolute path.
2818 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2819
2820
2821 if test x"${MISSING+set}" != xset; then
2822 MISSING="\${SHELL} '$am_aux_dir/missing'"
2823 fi
2824 # Use eval to expand $SHELL
2825 if eval "$MISSING --is-lightweight"; then
2826 am_missing_run="$MISSING "
2827 else
2828 am_missing_run=
2829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2830 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2831 fi
2832
2833 if test x"${install_sh+set}" != xset; then
2834 case $am_aux_dir in
2835 *\ * | *\ *)
2836 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2837 *)
2838 install_sh="\${SHELL} $am_aux_dir/install-sh"
2839 esac
2840 fi
2841
2842 # Installed binaries are usually stripped using 'strip' when the user
2843 # run "make install-strip". However 'strip' might not be the right
2844 # tool to use in cross-compilation environments, therefore Automake
2845 # will honor the 'STRIP' environment variable to overrule this program.
2846 if test "$cross_compiling" != no; then
2847 if test -n "$ac_tool_prefix"; then
2848 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2849 set dummy ${ac_tool_prefix}strip; ac_word=$2
2850 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2851 printf %s "checking for $ac_word... " >&6; }
2852 if test ${ac_cv_prog_STRIP+y}
2853 then :
2854 printf %s "(cached) " >&6
2855 else $as_nop
2856 if test -n "$STRIP"; then
2857 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2858 else
2859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2860 for as_dir in $PATH
2861 do
2862 IFS=$as_save_IFS
2863 case $as_dir in #(((
2864 '') as_dir=./ ;;
2865 */) ;;
2866 *) as_dir=$as_dir/ ;;
2867 esac
2868 for ac_exec_ext in '' $ac_executable_extensions; do
2869 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2870 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2871 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2872 break 2
2873 fi
2874 done
2875 done
2876 IFS=$as_save_IFS
2877
2878 fi
2879 fi
2880 STRIP=$ac_cv_prog_STRIP
2881 if test -n "$STRIP"; then
2882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2883 printf "%s\n" "$STRIP" >&6; }
2884 else
2885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2886 printf "%s\n" "no" >&6; }
2887 fi
2888
2889
2890 fi
2891 if test -z "$ac_cv_prog_STRIP"; then
2892 ac_ct_STRIP=$STRIP
2893 # Extract the first word of "strip", so it can be a program name with args.
2894 set dummy strip; ac_word=$2
2895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2896 printf %s "checking for $ac_word... " >&6; }
2897 if test ${ac_cv_prog_ac_ct_STRIP+y}
2898 then :
2899 printf %s "(cached) " >&6
2900 else $as_nop
2901 if test -n "$ac_ct_STRIP"; then
2902 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2903 else
2904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2905 for as_dir in $PATH
2906 do
2907 IFS=$as_save_IFS
2908 case $as_dir in #(((
2909 '') as_dir=./ ;;
2910 */) ;;
2911 *) as_dir=$as_dir/ ;;
2912 esac
2913 for ac_exec_ext in '' $ac_executable_extensions; do
2914 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2915 ac_cv_prog_ac_ct_STRIP="strip"
2916 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2917 break 2
2918 fi
2919 done
2920 done
2921 IFS=$as_save_IFS
2922
2923 fi
2924 fi
2925 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2926 if test -n "$ac_ct_STRIP"; then
2927 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2928 printf "%s\n" "$ac_ct_STRIP" >&6; }
2929 else
2930 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2931 printf "%s\n" "no" >&6; }
2932 fi
2933
2934 if test "x$ac_ct_STRIP" = x; then
2935 STRIP=":"
2936 else
2937 case $cross_compiling:$ac_tool_warned in
2938 yes:)
2939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2940 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2941 ac_tool_warned=yes ;;
2942 esac
2943 STRIP=$ac_ct_STRIP
2944 fi
2945 else
2946 STRIP="$ac_cv_prog_STRIP"
2947 fi
2948
2949 fi
2950 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2951
2952
2953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
2954 printf %s "checking for a race-free mkdir -p... " >&6; }
2955 if test -z "$MKDIR_P"; then
2956 if test ${ac_cv_path_mkdir+y}
2957 then :
2958 printf %s "(cached) " >&6
2959 else $as_nop
2960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2961 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2962 do
2963 IFS=$as_save_IFS
2964 case $as_dir in #(((
2965 '') as_dir=./ ;;
2966 */) ;;
2967 *) as_dir=$as_dir/ ;;
2968 esac
2969 for ac_prog in mkdir gmkdir; do
2970 for ac_exec_ext in '' $ac_executable_extensions; do
2971 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
2972 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
2973 'mkdir ('*'coreutils) '* | \
2974 'BusyBox '* | \
2975 'mkdir (fileutils) '4.1*)
2976 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
2977 break 3;;
2978 esac
2979 done
2980 done
2981 done
2982 IFS=$as_save_IFS
2983
2984 fi
2985
2986 test -d ./--version && rmdir ./--version
2987 if test ${ac_cv_path_mkdir+y}; then
2988 MKDIR_P="$ac_cv_path_mkdir -p"
2989 else
2990 # As a last resort, use the slow shell script. Don't cache a
2991 # value for MKDIR_P within a source directory, because that will
2992 # break other packages using the cache if that directory is
2993 # removed, or if the value is a relative name.
2994 MKDIR_P="$ac_install_sh -d"
2995 fi
2996 fi
2997 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2998 printf "%s\n" "$MKDIR_P" >&6; }
2999
3000 for ac_prog in gawk mawk nawk awk
3001 do
3002 # Extract the first word of "$ac_prog", so it can be a program name with args.
3003 set dummy $ac_prog; ac_word=$2
3004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3005 printf %s "checking for $ac_word... " >&6; }
3006 if test ${ac_cv_prog_AWK+y}
3007 then :
3008 printf %s "(cached) " >&6
3009 else $as_nop
3010 if test -n "$AWK"; then
3011 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3012 else
3013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3014 for as_dir in $PATH
3015 do
3016 IFS=$as_save_IFS
3017 case $as_dir in #(((
3018 '') as_dir=./ ;;
3019 */) ;;
3020 *) as_dir=$as_dir/ ;;
3021 esac
3022 for ac_exec_ext in '' $ac_executable_extensions; do
3023 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3024 ac_cv_prog_AWK="$ac_prog"
3025 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3026 break 2
3027 fi
3028 done
3029 done
3030 IFS=$as_save_IFS
3031
3032 fi
3033 fi
3034 AWK=$ac_cv_prog_AWK
3035 if test -n "$AWK"; then
3036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3037 printf "%s\n" "$AWK" >&6; }
3038 else
3039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3040 printf "%s\n" "no" >&6; }
3041 fi
3042
3043
3044 test -n "$AWK" && break
3045 done
3046
3047 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3048 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3049 set x ${MAKE-make}
3050 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3051 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3052 then :
3053 printf %s "(cached) " >&6
3054 else $as_nop
3055 cat >conftest.make <<\_ACEOF
3056 SHELL = /bin/sh
3057 all:
3058 @echo '@@@%%%=$(MAKE)=@@@%%%'
3059 _ACEOF
3060 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3061 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3062 *@@@%%%=?*=@@@%%%*)
3063 eval ac_cv_prog_make_${ac_make}_set=yes;;
3064 *)
3065 eval ac_cv_prog_make_${ac_make}_set=no;;
3066 esac
3067 rm -f conftest.make
3068 fi
3069 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3071 printf "%s\n" "yes" >&6; }
3072 SET_MAKE=
3073 else
3074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3075 printf "%s\n" "no" >&6; }
3076 SET_MAKE="MAKE=${MAKE-make}"
3077 fi
3078
3079 rm -rf .tst 2>/dev/null
3080 mkdir .tst 2>/dev/null
3081 if test -d .tst; then
3082 am__leading_dot=.
3083 else
3084 am__leading_dot=_
3085 fi
3086 rmdir .tst 2>/dev/null
3087
3088 # Check whether --enable-silent-rules was given.
3089 if test ${enable_silent_rules+y}
3090 then :
3091 enableval=$enable_silent_rules;
3092 fi
3093
3094 case $enable_silent_rules in # (((
3095 yes) AM_DEFAULT_VERBOSITY=0;;
3096 no) AM_DEFAULT_VERBOSITY=1;;
3097 *) AM_DEFAULT_VERBOSITY=1;;
3098 esac
3099 am_make=${MAKE-make}
3100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3101 printf %s "checking whether $am_make supports nested variables... " >&6; }
3102 if test ${am_cv_make_support_nested_variables+y}
3103 then :
3104 printf %s "(cached) " >&6
3105 else $as_nop
3106 if printf "%s\n" 'TRUE=$(BAR$(V))
3107 BAR0=false
3108 BAR1=true
3109 V=1
3110 am__doit:
3111 @$(TRUE)
3112 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3113 am_cv_make_support_nested_variables=yes
3114 else
3115 am_cv_make_support_nested_variables=no
3116 fi
3117 fi
3118 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3119 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3120 if test $am_cv_make_support_nested_variables = yes; then
3121 AM_V='$(V)'
3122 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3123 else
3124 AM_V=$AM_DEFAULT_VERBOSITY
3125 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3126 fi
3127 AM_BACKSLASH='\'
3128
3129 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3130 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3131 # is not polluted with repeated "-I."
3132 am__isrc=' -I$(srcdir)'
3133 # test to see if srcdir already configured
3134 if test -f $srcdir/config.status; then
3135 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3136 fi
3137 fi
3138
3139 # test whether we have cygpath
3140 if test -z "$CYGPATH_W"; then
3141 if (cygpath --version) >/dev/null 2>/dev/null; then
3142 CYGPATH_W='cygpath -w'
3143 else
3144 CYGPATH_W=echo
3145 fi
3146 fi
3147
3148
3149 # Define the identity of the package.
3150 PACKAGE='xf86-video-ark'
3151 VERSION='0.7.6'
3152
3153
3154 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3155
3156
3157 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3158
3159 # Some tools Automake needs.
3160
3161 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3162
3163
3164 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3165
3166
3167 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3168
3169
3170 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3171
3172
3173 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3174
3175 # For better backward compatibility. To be removed once Automake 1.9.x
3176 # dies out for good. For more background, see:
3177 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3178 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3179 mkdir_p='$(MKDIR_P)'
3180
3181 # We need awk for the "check" target (and possibly the TAP driver). The
3182 # system "awk" is bad on some platforms.
3183 # Always define AMTAR for backward compatibility. Yes, it's still used
3184 # in the wild :-( We should find a proper way to deprecate it ...
3185 AMTAR='$${TAR-tar}'
3186
3187
3188 # We'll loop over all known methods to create a tar archive until one works.
3189 _am_tools='gnutar pax cpio none'
3190
3191 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3192
3193
3194
3195
3196
3197 # Variables for tags utilities; see am/tags.am
3198 if test -z "$CTAGS"; then
3199 CTAGS=ctags
3200 fi
3201
3202 if test -z "$ETAGS"; then
3203 ETAGS=etags
3204 fi
3205
3206 if test -z "$CSCOPE"; then
3207 CSCOPE=cscope
3208 fi
3209
3210
3211
3212 # POSIX will say in a future version that running "rm -f" with no argument
3213 # is OK; and we want to be able to make that assumption in our Makefile
3214 # recipes. So use an aggressive probe to check that the usage we want is
3215 # actually supported "in the wild" to an acceptable degree.
3216 # See automake bug#10828.
3217 # To make any issue more visible, cause the running configure to be aborted
3218 # by default if the 'rm' program in use doesn't match our expectations; the
3219 # user can still override this though.
3220 if rm -f && rm -fr && rm -rf; then : OK; else
3221 cat >&2 <<'END'
3222 Oops!
3223
3224 Your 'rm' program seems unable to run without file operands specified
3225 on the command line, even when the '-f' option is present. This is contrary
3226 to the behaviour of most rm programs out there, and not conforming with
3227 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3228
3229 Please tell bug-automake@gnu.org about your system, including the value
3230 of your $PATH and any error possibly output before this message. This
3231 can help us improve future automake versions.
3232
3233 END
3234 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3235 echo 'Configuration will proceed anyway, since you have set the' >&2
3236 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3237 echo >&2
3238 else
3239 cat >&2 <<'END'
3240 Aborting the configuration process, to ensure you take notice of the issue.
3241
3242 You can download and install GNU coreutils to get an 'rm' implementation
3243 that behaves properly: <https://www.gnu.org/software/coreutils/>.
3244
3245 If you want to complete the configuration process using your problematic
3246 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3247 to "yes", and re-run configure.
3248
3249 END
3250 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3251 fi
3252 fi
3253
3254
3255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3256 printf %s "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3257 # Check whether --enable-maintainer-mode was given.
3258 if test ${enable_maintainer_mode+y}
3259 then :
3260 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3261 else $as_nop
3262 USE_MAINTAINER_MODE=no
3263 fi
3264
3265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3266 printf "%s\n" "$USE_MAINTAINER_MODE" >&6; }
3267 if test $USE_MAINTAINER_MODE = yes; then
3268 MAINTAINER_MODE_TRUE=
3269 MAINTAINER_MODE_FALSE='#'
3270 else
3271 MAINTAINER_MODE_TRUE='#'
3272 MAINTAINER_MODE_FALSE=
3273 fi
3274
3275 MAINT=$MAINTAINER_MODE_TRUE
3276
3277
3278
3279 # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
3280
3281
3282
3283
3284
3285
3286
3287
3288
3289
3290
3291
3292
3293
3294
3295
3296
3297
3298
3299
3300 DEPDIR="${am__leading_dot}deps"
3301
3302 ac_config_commands="$ac_config_commands depfiles"
3303
3304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3305 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
3306 cat > confinc.mk << 'END'
3307 am__doit:
3308 @echo this is the am__doit target >confinc.out
3309 .PHONY: am__doit
3310 END
3311 am__include="#"
3312 am__quote=
3313 # BSD make does it like this.
3314 echo '.include "confinc.mk" # ignored' > confmf.BSD
3315 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
3316 echo 'include confinc.mk # ignored' > confmf.GNU
3317 _am_result=no
3318 for s in GNU BSD; do
3319 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3320 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3321 ac_status=$?
3322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3323 (exit $ac_status); }
3324 case $?:`cat confinc.out 2>/dev/null` in #(
3325 '0:this is the am__doit target') :
3326 case $s in #(
3327 BSD) :
3328 am__include='.include' am__quote='"' ;; #(
3329 *) :
3330 am__include='include' am__quote='' ;;
3331 esac ;; #(
3332 *) :
3333 ;;
3334 esac
3335 if test "$am__include" != "#"; then
3336 _am_result="yes ($s style)"
3337 break
3338 fi
3339 done
3340 rm -f confinc.* confmf.*
3341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3342 printf "%s\n" "${_am_result}" >&6; }
3343
3344 # Check whether --enable-dependency-tracking was given.
3345 if test ${enable_dependency_tracking+y}
3346 then :
3347 enableval=$enable_dependency_tracking;
3348 fi
3349
3350 if test "x$enable_dependency_tracking" != xno; then
3351 am_depcomp="$ac_aux_dir/depcomp"
3352 AMDEPBACKSLASH='\'
3353 am__nodep='_no'
3354 fi
3355 if test "x$enable_dependency_tracking" != xno; then
3356 AMDEP_TRUE=
3357 AMDEP_FALSE='#'
3358 else
3359 AMDEP_TRUE='#'
3360 AMDEP_FALSE=
3361 fi
3362
3363
3364 ac_ext=c
3365 ac_cpp='$CPP $CPPFLAGS'
3366 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3367 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3368 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3369 if test -n "$ac_tool_prefix"; then
3370 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3371 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3372 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3373 printf %s "checking for $ac_word... " >&6; }
3374 if test ${ac_cv_prog_CC+y}
3375 then :
3376 printf %s "(cached) " >&6
3377 else $as_nop
3378 if test -n "$CC"; then
3379 ac_cv_prog_CC="$CC" # Let the user override the test.
3380 else
3381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3382 for as_dir in $PATH
3383 do
3384 IFS=$as_save_IFS
3385 case $as_dir in #(((
3386 '') as_dir=./ ;;
3387 */) ;;
3388 *) as_dir=$as_dir/ ;;
3389 esac
3390 for ac_exec_ext in '' $ac_executable_extensions; do
3391 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3392 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3393 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3394 break 2
3395 fi
3396 done
3397 done
3398 IFS=$as_save_IFS
3399
3400 fi
3401 fi
3402 CC=$ac_cv_prog_CC
3403 if test -n "$CC"; then
3404 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3405 printf "%s\n" "$CC" >&6; }
3406 else
3407 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3408 printf "%s\n" "no" >&6; }
3409 fi
3410
3411
3412 fi
3413 if test -z "$ac_cv_prog_CC"; then
3414 ac_ct_CC=$CC
3415 # Extract the first word of "gcc", so it can be a program name with args.
3416 set dummy gcc; ac_word=$2
3417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3418 printf %s "checking for $ac_word... " >&6; }
3419 if test ${ac_cv_prog_ac_ct_CC+y}
3420 then :
3421 printf %s "(cached) " >&6
3422 else $as_nop
3423 if test -n "$ac_ct_CC"; then
3424 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3425 else
3426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3427 for as_dir in $PATH
3428 do
3429 IFS=$as_save_IFS
3430 case $as_dir in #(((
3431 '') as_dir=./ ;;
3432 */) ;;
3433 *) as_dir=$as_dir/ ;;
3434 esac
3435 for ac_exec_ext in '' $ac_executable_extensions; do
3436 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3437 ac_cv_prog_ac_ct_CC="gcc"
3438 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3439 break 2
3440 fi
3441 done
3442 done
3443 IFS=$as_save_IFS
3444
3445 fi
3446 fi
3447 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3448 if test -n "$ac_ct_CC"; then
3449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3450 printf "%s\n" "$ac_ct_CC" >&6; }
3451 else
3452 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3453 printf "%s\n" "no" >&6; }
3454 fi
3455
3456 if test "x$ac_ct_CC" = x; then
3457 CC=""
3458 else
3459 case $cross_compiling:$ac_tool_warned in
3460 yes:)
3461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3462 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3463 ac_tool_warned=yes ;;
3464 esac
3465 CC=$ac_ct_CC
3466 fi
3467 else
3468 CC="$ac_cv_prog_CC"
3469 fi
3470
3471 if test -z "$CC"; then
3472 if test -n "$ac_tool_prefix"; then
3473 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3474 set dummy ${ac_tool_prefix}cc; ac_word=$2
3475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3476 printf %s "checking for $ac_word... " >&6; }
3477 if test ${ac_cv_prog_CC+y}
3478 then :
3479 printf %s "(cached) " >&6
3480 else $as_nop
3481 if test -n "$CC"; then
3482 ac_cv_prog_CC="$CC" # Let the user override the test.
3483 else
3484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3485 for as_dir in $PATH
3486 do
3487 IFS=$as_save_IFS
3488 case $as_dir in #(((
3489 '') as_dir=./ ;;
3490 */) ;;
3491 *) as_dir=$as_dir/ ;;
3492 esac
3493 for ac_exec_ext in '' $ac_executable_extensions; do
3494 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3495 ac_cv_prog_CC="${ac_tool_prefix}cc"
3496 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3497 break 2
3498 fi
3499 done
3500 done
3501 IFS=$as_save_IFS
3502
3503 fi
3504 fi
3505 CC=$ac_cv_prog_CC
3506 if test -n "$CC"; then
3507 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3508 printf "%s\n" "$CC" >&6; }
3509 else
3510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3511 printf "%s\n" "no" >&6; }
3512 fi
3513
3514
3515 fi
3516 fi
3517 if test -z "$CC"; then
3518 # Extract the first word of "cc", so it can be a program name with args.
3519 set dummy cc; ac_word=$2
3520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3521 printf %s "checking for $ac_word... " >&6; }
3522 if test ${ac_cv_prog_CC+y}
3523 then :
3524 printf %s "(cached) " >&6
3525 else $as_nop
3526 if test -n "$CC"; then
3527 ac_cv_prog_CC="$CC" # Let the user override the test.
3528 else
3529 ac_prog_rejected=no
3530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3531 for as_dir in $PATH
3532 do
3533 IFS=$as_save_IFS
3534 case $as_dir in #(((
3535 '') as_dir=./ ;;
3536 */) ;;
3537 *) as_dir=$as_dir/ ;;
3538 esac
3539 for ac_exec_ext in '' $ac_executable_extensions; do
3540 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3541 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3542 ac_prog_rejected=yes
3543 continue
3544 fi
3545 ac_cv_prog_CC="cc"
3546 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3547 break 2
3548 fi
3549 done
3550 done
3551 IFS=$as_save_IFS
3552
3553 if test $ac_prog_rejected = yes; then
3554 # We found a bogon in the path, so make sure we never use it.
3555 set dummy $ac_cv_prog_CC
3556 shift
3557 if test $# != 0; then
3558 # We chose a different compiler from the bogus one.
3559 # However, it has the same basename, so the bogon will be chosen
3560 # first if we set CC to just the basename; use the full file name.
3561 shift
3562 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3563 fi
3564 fi
3565 fi
3566 fi
3567 CC=$ac_cv_prog_CC
3568 if test -n "$CC"; then
3569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3570 printf "%s\n" "$CC" >&6; }
3571 else
3572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3573 printf "%s\n" "no" >&6; }
3574 fi
3575
3576
3577 fi
3578 if test -z "$CC"; then
3579 if test -n "$ac_tool_prefix"; then
3580 for ac_prog in cl.exe
3581 do
3582 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3583 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3585 printf %s "checking for $ac_word... " >&6; }
3586 if test ${ac_cv_prog_CC+y}
3587 then :
3588 printf %s "(cached) " >&6
3589 else $as_nop
3590 if test -n "$CC"; then
3591 ac_cv_prog_CC="$CC" # Let the user override the test.
3592 else
3593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3594 for as_dir in $PATH
3595 do
3596 IFS=$as_save_IFS
3597 case $as_dir in #(((
3598 '') as_dir=./ ;;
3599 */) ;;
3600 *) as_dir=$as_dir/ ;;
3601 esac
3602 for ac_exec_ext in '' $ac_executable_extensions; do
3603 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3604 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3605 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3606 break 2
3607 fi
3608 done
3609 done
3610 IFS=$as_save_IFS
3611
3612 fi
3613 fi
3614 CC=$ac_cv_prog_CC
3615 if test -n "$CC"; then
3616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3617 printf "%s\n" "$CC" >&6; }
3618 else
3619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3620 printf "%s\n" "no" >&6; }
3621 fi
3622
3623
3624 test -n "$CC" && break
3625 done
3626 fi
3627 if test -z "$CC"; then
3628 ac_ct_CC=$CC
3629 for ac_prog in cl.exe
3630 do
3631 # Extract the first word of "$ac_prog", so it can be a program name with args.
3632 set dummy $ac_prog; ac_word=$2
3633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3634 printf %s "checking for $ac_word... " >&6; }
3635 if test ${ac_cv_prog_ac_ct_CC+y}
3636 then :
3637 printf %s "(cached) " >&6
3638 else $as_nop
3639 if test -n "$ac_ct_CC"; then
3640 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3641 else
3642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3643 for as_dir in $PATH
3644 do
3645 IFS=$as_save_IFS
3646 case $as_dir in #(((
3647 '') as_dir=./ ;;
3648 */) ;;
3649 *) as_dir=$as_dir/ ;;
3650 esac
3651 for ac_exec_ext in '' $ac_executable_extensions; do
3652 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3653 ac_cv_prog_ac_ct_CC="$ac_prog"
3654 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3655 break 2
3656 fi
3657 done
3658 done
3659 IFS=$as_save_IFS
3660
3661 fi
3662 fi
3663 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3664 if test -n "$ac_ct_CC"; then
3665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3666 printf "%s\n" "$ac_ct_CC" >&6; }
3667 else
3668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3669 printf "%s\n" "no" >&6; }
3670 fi
3671
3672
3673 test -n "$ac_ct_CC" && break
3674 done
3675
3676 if test "x$ac_ct_CC" = x; then
3677 CC=""
3678 else
3679 case $cross_compiling:$ac_tool_warned in
3680 yes:)
3681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3682 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3683 ac_tool_warned=yes ;;
3684 esac
3685 CC=$ac_ct_CC
3686 fi
3687 fi
3688
3689 fi
3690 if test -z "$CC"; then
3691 if test -n "$ac_tool_prefix"; then
3692 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3693 set dummy ${ac_tool_prefix}clang; ac_word=$2
3694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3695 printf %s "checking for $ac_word... " >&6; }
3696 if test ${ac_cv_prog_CC+y}
3697 then :
3698 printf %s "(cached) " >&6
3699 else $as_nop
3700 if test -n "$CC"; then
3701 ac_cv_prog_CC="$CC" # Let the user override the test.
3702 else
3703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3704 for as_dir in $PATH
3705 do
3706 IFS=$as_save_IFS
3707 case $as_dir in #(((
3708 '') as_dir=./ ;;
3709 */) ;;
3710 *) as_dir=$as_dir/ ;;
3711 esac
3712 for ac_exec_ext in '' $ac_executable_extensions; do
3713 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3714 ac_cv_prog_CC="${ac_tool_prefix}clang"
3715 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3716 break 2
3717 fi
3718 done
3719 done
3720 IFS=$as_save_IFS
3721
3722 fi
3723 fi
3724 CC=$ac_cv_prog_CC
3725 if test -n "$CC"; then
3726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3727 printf "%s\n" "$CC" >&6; }
3728 else
3729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3730 printf "%s\n" "no" >&6; }
3731 fi
3732
3733
3734 fi
3735 if test -z "$ac_cv_prog_CC"; then
3736 ac_ct_CC=$CC
3737 # Extract the first word of "clang", so it can be a program name with args.
3738 set dummy clang; ac_word=$2
3739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3740 printf %s "checking for $ac_word... " >&6; }
3741 if test ${ac_cv_prog_ac_ct_CC+y}
3742 then :
3743 printf %s "(cached) " >&6
3744 else $as_nop
3745 if test -n "$ac_ct_CC"; then
3746 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3747 else
3748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3749 for as_dir in $PATH
3750 do
3751 IFS=$as_save_IFS
3752 case $as_dir in #(((
3753 '') as_dir=./ ;;
3754 */) ;;
3755 *) as_dir=$as_dir/ ;;
3756 esac
3757 for ac_exec_ext in '' $ac_executable_extensions; do
3758 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3759 ac_cv_prog_ac_ct_CC="clang"
3760 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3761 break 2
3762 fi
3763 done
3764 done
3765 IFS=$as_save_IFS
3766
3767 fi
3768 fi
3769 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3770 if test -n "$ac_ct_CC"; then
3771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3772 printf "%s\n" "$ac_ct_CC" >&6; }
3773 else
3774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3775 printf "%s\n" "no" >&6; }
3776 fi
3777
3778 if test "x$ac_ct_CC" = x; then
3779 CC=""
3780 else
3781 case $cross_compiling:$ac_tool_warned in
3782 yes:)
3783 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3784 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3785 ac_tool_warned=yes ;;
3786 esac
3787 CC=$ac_ct_CC
3788 fi
3789 else
3790 CC="$ac_cv_prog_CC"
3791 fi
3792
3793 fi
3794
3795
3796 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3797 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3798 as_fn_error $? "no acceptable C compiler found in \$PATH
3799 See \`config.log' for more details" "$LINENO" 5; }
3800
3801 # Provide some information about the compiler.
3802 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3803 set X $ac_compile
3804 ac_compiler=$2
3805 for ac_option in --version -v -V -qversion -version; do
3806 { { ac_try="$ac_compiler $ac_option >&5"
3807 case "(($ac_try" in
3808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3809 *) ac_try_echo=$ac_try;;
3810 esac
3811 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3812 printf "%s\n" "$ac_try_echo"; } >&5
3813 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3814 ac_status=$?
3815 if test -s conftest.err; then
3816 sed '10a\
3817 ... rest of stderr output deleted ...
3818 10q' conftest.err >conftest.er1
3819 cat conftest.er1 >&5
3820 fi
3821 rm -f conftest.er1 conftest.err
3822 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3823 test $ac_status = 0; }
3824 done
3825
3826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3827 /* end confdefs.h. */
3828
3829 int
3830 main (void)
3831 {
3832
3833 ;
3834 return 0;
3835 }
3836 _ACEOF
3837 ac_clean_files_save=$ac_clean_files
3838 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3839 # Try to create an executable without -o first, disregard a.out.
3840 # It will help us diagnose broken compilers, and finding out an intuition
3841 # of exeext.
3842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3843 printf %s "checking whether the C compiler works... " >&6; }
3844 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3845
3846 # The possible output files:
3847 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3848
3849 ac_rmfiles=
3850 for ac_file in $ac_files
3851 do
3852 case $ac_file in
3853 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3854 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3855 esac
3856 done
3857 rm -f $ac_rmfiles
3858
3859 if { { ac_try="$ac_link_default"
3860 case "(($ac_try" in
3861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3862 *) ac_try_echo=$ac_try;;
3863 esac
3864 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3865 printf "%s\n" "$ac_try_echo"; } >&5
3866 (eval "$ac_link_default") 2>&5
3867 ac_status=$?
3868 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3869 test $ac_status = 0; }
3870 then :
3871 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3872 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3873 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3874 # so that the user can short-circuit this test for compilers unknown to
3875 # Autoconf.
3876 for ac_file in $ac_files ''
3877 do
3878 test -f "$ac_file" || continue
3879 case $ac_file in
3880 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3881 ;;
3882 [ab].out )
3883 # We found the default executable, but exeext='' is most
3884 # certainly right.
3885 break;;
3886 *.* )
3887 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3888 then :; else
3889 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3890 fi
3891 # We set ac_cv_exeext here because the later test for it is not
3892 # safe: cross compilers may not add the suffix if given an `-o'
3893 # argument, so we may need to know it at that point already.
3894 # Even if this section looks crufty: it has the advantage of
3895 # actually working.
3896 break;;
3897 * )
3898 break;;
3899 esac
3900 done
3901 test "$ac_cv_exeext" = no && ac_cv_exeext=
3902
3903 else $as_nop
3904 ac_file=''
3905 fi
3906 if test -z "$ac_file"
3907 then :
3908 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3909 printf "%s\n" "no" >&6; }
3910 printf "%s\n" "$as_me: failed program was:" >&5
3911 sed 's/^/| /' conftest.$ac_ext >&5
3912
3913 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3914 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3915 as_fn_error 77 "C compiler cannot create executables
3916 See \`config.log' for more details" "$LINENO" 5; }
3917 else $as_nop
3918 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3919 printf "%s\n" "yes" >&6; }
3920 fi
3921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3922 printf %s "checking for C compiler default output file name... " >&6; }
3923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3924 printf "%s\n" "$ac_file" >&6; }
3925 ac_exeext=$ac_cv_exeext
3926
3927 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3928 ac_clean_files=$ac_clean_files_save
3929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3930 printf %s "checking for suffix of executables... " >&6; }
3931 if { { ac_try="$ac_link"
3932 case "(($ac_try" in
3933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3934 *) ac_try_echo=$ac_try;;
3935 esac
3936 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3937 printf "%s\n" "$ac_try_echo"; } >&5
3938 (eval "$ac_link") 2>&5
3939 ac_status=$?
3940 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3941 test $ac_status = 0; }
3942 then :
3943 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3944 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3945 # work properly (i.e., refer to `conftest.exe'), while it won't with
3946 # `rm'.
3947 for ac_file in conftest.exe conftest conftest.*; do
3948 test -f "$ac_file" || continue
3949 case $ac_file in
3950 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3951 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3952 break;;
3953 * ) break;;
3954 esac
3955 done
3956 else $as_nop
3957 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3958 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3959 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3960 See \`config.log' for more details" "$LINENO" 5; }
3961 fi
3962 rm -f conftest conftest$ac_cv_exeext
3963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3964 printf "%s\n" "$ac_cv_exeext" >&6; }
3965
3966 rm -f conftest.$ac_ext
3967 EXEEXT=$ac_cv_exeext
3968 ac_exeext=$EXEEXT
3969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3970 /* end confdefs.h. */
3971 #include <stdio.h>
3972 int
3973 main (void)
3974 {
3975 FILE *f = fopen ("conftest.out", "w");
3976 return ferror (f) || fclose (f) != 0;
3977
3978 ;
3979 return 0;
3980 }
3981 _ACEOF
3982 ac_clean_files="$ac_clean_files conftest.out"
3983 # Check that the compiler produces executables we can run. If not, either
3984 # the compiler is broken, or we cross compile.
3985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3986 printf %s "checking whether we are cross compiling... " >&6; }
3987 if test "$cross_compiling" != yes; then
3988 { { ac_try="$ac_link"
3989 case "(($ac_try" in
3990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3991 *) ac_try_echo=$ac_try;;
3992 esac
3993 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3994 printf "%s\n" "$ac_try_echo"; } >&5
3995 (eval "$ac_link") 2>&5
3996 ac_status=$?
3997 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3998 test $ac_status = 0; }
3999 if { ac_try='./conftest$ac_cv_exeext'
4000 { { case "(($ac_try" in
4001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4002 *) ac_try_echo=$ac_try;;
4003 esac
4004 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4005 printf "%s\n" "$ac_try_echo"; } >&5
4006 (eval "$ac_try") 2>&5
4007 ac_status=$?
4008 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4009 test $ac_status = 0; }; }; then
4010 cross_compiling=no
4011 else
4012 if test "$cross_compiling" = maybe; then
4013 cross_compiling=yes
4014 else
4015 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4016 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4017 as_fn_error 77 "cannot run C compiled programs.
4018 If you meant to cross compile, use \`--host'.
4019 See \`config.log' for more details" "$LINENO" 5; }
4020 fi
4021 fi
4022 fi
4023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4024 printf "%s\n" "$cross_compiling" >&6; }
4025
4026 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4027 ac_clean_files=$ac_clean_files_save
4028 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4029 printf %s "checking for suffix of object files... " >&6; }
4030 if test ${ac_cv_objext+y}
4031 then :
4032 printf %s "(cached) " >&6
4033 else $as_nop
4034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4035 /* end confdefs.h. */
4036
4037 int
4038 main (void)
4039 {
4040
4041 ;
4042 return 0;
4043 }
4044 _ACEOF
4045 rm -f conftest.o conftest.obj
4046 if { { ac_try="$ac_compile"
4047 case "(($ac_try" in
4048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4049 *) ac_try_echo=$ac_try;;
4050 esac
4051 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4052 printf "%s\n" "$ac_try_echo"; } >&5
4053 (eval "$ac_compile") 2>&5
4054 ac_status=$?
4055 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4056 test $ac_status = 0; }
4057 then :
4058 for ac_file in conftest.o conftest.obj conftest.*; do
4059 test -f "$ac_file" || continue;
4060 case $ac_file in
4061 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4062 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4063 break;;
4064 esac
4065 done
4066 else $as_nop
4067 printf "%s\n" "$as_me: failed program was:" >&5
4068 sed 's/^/| /' conftest.$ac_ext >&5
4069
4070 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4071 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4072 as_fn_error $? "cannot compute suffix of object files: cannot compile
4073 See \`config.log' for more details" "$LINENO" 5; }
4074 fi
4075 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4076 fi
4077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4078 printf "%s\n" "$ac_cv_objext" >&6; }
4079 OBJEXT=$ac_cv_objext
4080 ac_objext=$OBJEXT
4081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4082 printf %s "checking whether the compiler supports GNU C... " >&6; }
4083 if test ${ac_cv_c_compiler_gnu+y}
4084 then :
4085 printf %s "(cached) " >&6
4086 else $as_nop
4087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4088 /* end confdefs.h. */
4089
4090 int
4091 main (void)
4092 {
4093 #ifndef __GNUC__
4094 choke me
4095 #endif
4096
4097 ;
4098 return 0;
4099 }
4100 _ACEOF
4101 if ac_fn_c_try_compile "$LINENO"
4102 then :
4103 ac_compiler_gnu=yes
4104 else $as_nop
4105 ac_compiler_gnu=no
4106 fi
4107 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4108 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4109
4110 fi
4111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4112 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4113 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4114
4115 if test $ac_compiler_gnu = yes; then
4116 GCC=yes
4117 else
4118 GCC=
4119 fi
4120 ac_test_CFLAGS=${CFLAGS+y}
4121 ac_save_CFLAGS=$CFLAGS
4122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4123 printf %s "checking whether $CC accepts -g... " >&6; }
4124 if test ${ac_cv_prog_cc_g+y}
4125 then :
4126 printf %s "(cached) " >&6
4127 else $as_nop
4128 ac_save_c_werror_flag=$ac_c_werror_flag
4129 ac_c_werror_flag=yes
4130 ac_cv_prog_cc_g=no
4131 CFLAGS="-g"
4132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4133 /* end confdefs.h. */
4134
4135 int
4136 main (void)
4137 {
4138
4139 ;
4140 return 0;
4141 }
4142 _ACEOF
4143 if ac_fn_c_try_compile "$LINENO"
4144 then :
4145 ac_cv_prog_cc_g=yes
4146 else $as_nop
4147 CFLAGS=""
4148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4149 /* end confdefs.h. */
4150
4151 int
4152 main (void)
4153 {
4154
4155 ;
4156 return 0;
4157 }
4158 _ACEOF
4159 if ac_fn_c_try_compile "$LINENO"
4160 then :
4161
4162 else $as_nop
4163 ac_c_werror_flag=$ac_save_c_werror_flag
4164 CFLAGS="-g"
4165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4166 /* end confdefs.h. */
4167
4168 int
4169 main (void)
4170 {
4171
4172 ;
4173 return 0;
4174 }
4175 _ACEOF
4176 if ac_fn_c_try_compile "$LINENO"
4177 then :
4178 ac_cv_prog_cc_g=yes
4179 fi
4180 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4181 fi
4182 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4183 fi
4184 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4185 ac_c_werror_flag=$ac_save_c_werror_flag
4186 fi
4187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4188 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4189 if test $ac_test_CFLAGS; then
4190 CFLAGS=$ac_save_CFLAGS
4191 elif test $ac_cv_prog_cc_g = yes; then
4192 if test "$GCC" = yes; then
4193 CFLAGS="-g -O2"
4194 else
4195 CFLAGS="-g"
4196 fi
4197 else
4198 if test "$GCC" = yes; then
4199 CFLAGS="-O2"
4200 else
4201 CFLAGS=
4202 fi
4203 fi
4204 ac_prog_cc_stdc=no
4205 if test x$ac_prog_cc_stdc = xno
4206 then :
4207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4208 printf %s "checking for $CC option to enable C11 features... " >&6; }
4209 if test ${ac_cv_prog_cc_c11+y}
4210 then :
4211 printf %s "(cached) " >&6
4212 else $as_nop
4213 ac_cv_prog_cc_c11=no
4214 ac_save_CC=$CC
4215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4216 /* end confdefs.h. */
4217 $ac_c_conftest_c11_program
4218 _ACEOF
4219 for ac_arg in '' -std=gnu11
4220 do
4221 CC="$ac_save_CC $ac_arg"
4222 if ac_fn_c_try_compile "$LINENO"
4223 then :
4224 ac_cv_prog_cc_c11=$ac_arg
4225 fi
4226 rm -f core conftest.err conftest.$ac_objext conftest.beam
4227 test "x$ac_cv_prog_cc_c11" != "xno" && break
4228 done
4229 rm -f conftest.$ac_ext
4230 CC=$ac_save_CC
4231 fi
4232
4233 if test "x$ac_cv_prog_cc_c11" = xno
4234 then :
4235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4236 printf "%s\n" "unsupported" >&6; }
4237 else $as_nop
4238 if test "x$ac_cv_prog_cc_c11" = x
4239 then :
4240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4241 printf "%s\n" "none needed" >&6; }
4242 else $as_nop
4243 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4244 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4245 CC="$CC $ac_cv_prog_cc_c11"
4246 fi
4247 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4248 ac_prog_cc_stdc=c11
4249 fi
4250 fi
4251 if test x$ac_prog_cc_stdc = xno
4252 then :
4253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4254 printf %s "checking for $CC option to enable C99 features... " >&6; }
4255 if test ${ac_cv_prog_cc_c99+y}
4256 then :
4257 printf %s "(cached) " >&6
4258 else $as_nop
4259 ac_cv_prog_cc_c99=no
4260 ac_save_CC=$CC
4261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4262 /* end confdefs.h. */
4263 $ac_c_conftest_c99_program
4264 _ACEOF
4265 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4266 do
4267 CC="$ac_save_CC $ac_arg"
4268 if ac_fn_c_try_compile "$LINENO"
4269 then :
4270 ac_cv_prog_cc_c99=$ac_arg
4271 fi
4272 rm -f core conftest.err conftest.$ac_objext conftest.beam
4273 test "x$ac_cv_prog_cc_c99" != "xno" && break
4274 done
4275 rm -f conftest.$ac_ext
4276 CC=$ac_save_CC
4277 fi
4278
4279 if test "x$ac_cv_prog_cc_c99" = xno
4280 then :
4281 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4282 printf "%s\n" "unsupported" >&6; }
4283 else $as_nop
4284 if test "x$ac_cv_prog_cc_c99" = x
4285 then :
4286 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4287 printf "%s\n" "none needed" >&6; }
4288 else $as_nop
4289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4290 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4291 CC="$CC $ac_cv_prog_cc_c99"
4292 fi
4293 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4294 ac_prog_cc_stdc=c99
4295 fi
4296 fi
4297 if test x$ac_prog_cc_stdc = xno
4298 then :
4299 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4300 printf %s "checking for $CC option to enable C89 features... " >&6; }
4301 if test ${ac_cv_prog_cc_c89+y}
4302 then :
4303 printf %s "(cached) " >&6
4304 else $as_nop
4305 ac_cv_prog_cc_c89=no
4306 ac_save_CC=$CC
4307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4308 /* end confdefs.h. */
4309 $ac_c_conftest_c89_program
4310 _ACEOF
4311 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4312 do
4313 CC="$ac_save_CC $ac_arg"
4314 if ac_fn_c_try_compile "$LINENO"
4315 then :
4316 ac_cv_prog_cc_c89=$ac_arg
4317 fi
4318 rm -f core conftest.err conftest.$ac_objext conftest.beam
4319 test "x$ac_cv_prog_cc_c89" != "xno" && break
4320 done
4321 rm -f conftest.$ac_ext
4322 CC=$ac_save_CC
4323 fi
4324
4325 if test "x$ac_cv_prog_cc_c89" = xno
4326 then :
4327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4328 printf "%s\n" "unsupported" >&6; }
4329 else $as_nop
4330 if test "x$ac_cv_prog_cc_c89" = x
4331 then :
4332 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4333 printf "%s\n" "none needed" >&6; }
4334 else $as_nop
4335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4336 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4337 CC="$CC $ac_cv_prog_cc_c89"
4338 fi
4339 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4340 ac_prog_cc_stdc=c89
4341 fi
4342 fi
4343
4344 ac_ext=c
4345 ac_cpp='$CPP $CPPFLAGS'
4346 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4347 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4348 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4349
4350
4351 ac_ext=c
4352 ac_cpp='$CPP $CPPFLAGS'
4353 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4354 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4355 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4356 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4357 printf %s "checking whether $CC understands -c and -o together... " >&6; }
4358 if test ${am_cv_prog_cc_c_o+y}
4359 then :
4360 printf %s "(cached) " >&6
4361 else $as_nop
4362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4363 /* end confdefs.h. */
4364
4365 int
4366 main (void)
4367 {
4368
4369 ;
4370 return 0;
4371 }
4372 _ACEOF
4373 # Make sure it works both with $CC and with simple cc.
4374 # Following AC_PROG_CC_C_O, we do the test twice because some
4375 # compilers refuse to overwrite an existing .o file with -o,
4376 # though they will create one.
4377 am_cv_prog_cc_c_o=yes
4378 for am_i in 1 2; do
4379 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4380 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4381 ac_status=$?
4382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4383 (exit $ac_status); } \
4384 && test -f conftest2.$ac_objext; then
4385 : OK
4386 else
4387 am_cv_prog_cc_c_o=no
4388 break
4389 fi
4390 done
4391 rm -f core conftest*
4392 unset am_i
4393 fi
4394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4395 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4396 if test "$am_cv_prog_cc_c_o" != yes; then
4397 # Losing compiler, so override with the script.
4398 # FIXME: It is wrong to rewrite CC.
4399 # But if we don't then we get into trouble of one sort or another.
4400 # A longer-term fix would be to have automake use am__CC in this case,
4401 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4402 CC="$am_aux_dir/compile $CC"
4403 fi
4404 ac_ext=c
4405 ac_cpp='$CPP $CPPFLAGS'
4406 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4407 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4408 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4409
4410
4411 depcc="$CC" am_compiler_list=
4412
4413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4414 printf %s "checking dependency style of $depcc... " >&6; }
4415 if test ${am_cv_CC_dependencies_compiler_type+y}
4416 then :
4417 printf %s "(cached) " >&6
4418 else $as_nop
4419 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4420 # We make a subdir and do the tests there. Otherwise we can end up
4421 # making bogus files that we don't know about and never remove. For
4422 # instance it was reported that on HP-UX the gcc test will end up
4423 # making a dummy file named 'D' -- because '-MD' means "put the output
4424 # in D".
4425 rm -rf conftest.dir
4426 mkdir conftest.dir
4427 # Copy depcomp to subdir because otherwise we won't find it if we're
4428 # using a relative directory.
4429 cp "$am_depcomp" conftest.dir
4430 cd conftest.dir
4431 # We will build objects and dependencies in a subdirectory because
4432 # it helps to detect inapplicable dependency modes. For instance
4433 # both Tru64's cc and ICC support -MD to output dependencies as a
4434 # side effect of compilation, but ICC will put the dependencies in
4435 # the current directory while Tru64 will put them in the object
4436 # directory.
4437 mkdir sub
4438
4439 am_cv_CC_dependencies_compiler_type=none
4440 if test "$am_compiler_list" = ""; then
4441 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4442 fi
4443 am__universal=false
4444 case " $depcc " in #(
4445 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4446 esac
4447
4448 for depmode in $am_compiler_list; do
4449 # Setup a source with many dependencies, because some compilers
4450 # like to wrap large dependency lists on column 80 (with \), and
4451 # we should not choose a depcomp mode which is confused by this.
4452 #
4453 # We need to recreate these files for each test, as the compiler may
4454 # overwrite some of them when testing with obscure command lines.
4455 # This happens at least with the AIX C compiler.
4456 : > sub/conftest.c
4457 for i in 1 2 3 4 5 6; do
4458 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4459 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4460 # Solaris 10 /bin/sh.
4461 echo '/* dummy */' > sub/conftst$i.h
4462 done
4463 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4464
4465 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4466 # mode. It turns out that the SunPro C++ compiler does not properly
4467 # handle '-M -o', and we need to detect this. Also, some Intel
4468 # versions had trouble with output in subdirs.
4469 am__obj=sub/conftest.${OBJEXT-o}
4470 am__minus_obj="-o $am__obj"
4471 case $depmode in
4472 gcc)
4473 # This depmode causes a compiler race in universal mode.
4474 test "$am__universal" = false || continue
4475 ;;
4476 nosideeffect)
4477 # After this tag, mechanisms are not by side-effect, so they'll
4478 # only be used when explicitly requested.
4479 if test "x$enable_dependency_tracking" = xyes; then
4480 continue
4481 else
4482 break
4483 fi
4484 ;;
4485 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4486 # This compiler won't grok '-c -o', but also, the minuso test has
4487 # not run yet. These depmodes are late enough in the game, and
4488 # so weak that their functioning should not be impacted.
4489 am__obj=conftest.${OBJEXT-o}
4490 am__minus_obj=
4491 ;;
4492 none) break ;;
4493 esac
4494 if depmode=$depmode \
4495 source=sub/conftest.c object=$am__obj \
4496 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4497 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4498 >/dev/null 2>conftest.err &&
4499 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4500 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4501 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4502 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4503 # icc doesn't choke on unknown options, it will just issue warnings
4504 # or remarks (even with -Werror). So we grep stderr for any message
4505 # that says an option was ignored or not supported.
4506 # When given -MP, icc 7.0 and 7.1 complain thusly:
4507 # icc: Command line warning: ignoring option '-M'; no argument required
4508 # The diagnosis changed in icc 8.0:
4509 # icc: Command line remark: option '-MP' not supported
4510 if (grep 'ignoring option' conftest.err ||
4511 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4512 am_cv_CC_dependencies_compiler_type=$depmode
4513 break
4514 fi
4515 fi
4516 done
4517
4518 cd ..
4519 rm -rf conftest.dir
4520 else
4521 am_cv_CC_dependencies_compiler_type=none
4522 fi
4523
4524 fi
4525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4526 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4527 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4528
4529 if
4530 test "x$enable_dependency_tracking" != xno \
4531 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4532 am__fastdepCC_TRUE=
4533 am__fastdepCC_FALSE='#'
4534 else
4535 am__fastdepCC_TRUE='#'
4536 am__fastdepCC_FALSE=
4537 fi
4538
4539
4540
4541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
4542 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
4543 if test ${ac_cv_c_undeclared_builtin_options+y}
4544 then :
4545 printf %s "(cached) " >&6
4546 else $as_nop
4547 ac_save_CFLAGS=$CFLAGS
4548 ac_cv_c_undeclared_builtin_options='cannot detect'
4549 for ac_arg in '' -fno-builtin; do
4550 CFLAGS="$ac_save_CFLAGS $ac_arg"
4551 # This test program should *not* compile successfully.
4552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4553 /* end confdefs.h. */
4554
4555 int
4556 main (void)
4557 {
4558 (void) strchr;
4559 ;
4560 return 0;
4561 }
4562 _ACEOF
4563 if ac_fn_c_try_compile "$LINENO"
4564 then :
4565
4566 else $as_nop
4567 # This test program should compile successfully.
4568 # No library function is consistently available on
4569 # freestanding implementations, so test against a dummy
4570 # declaration. Include always-available headers on the
4571 # off chance that they somehow elicit warnings.
4572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4573 /* end confdefs.h. */
4574 #include <float.h>
4575 #include <limits.h>
4576 #include <stdarg.h>
4577 #include <stddef.h>
4578 extern void ac_decl (int, char *);
4579
4580 int
4581 main (void)
4582 {
4583 (void) ac_decl (0, (char *) 0);
4584 (void) ac_decl;
4585
4586 ;
4587 return 0;
4588 }
4589 _ACEOF
4590 if ac_fn_c_try_compile "$LINENO"
4591 then :
4592 if test x"$ac_arg" = x
4593 then :
4594 ac_cv_c_undeclared_builtin_options='none needed'
4595 else $as_nop
4596 ac_cv_c_undeclared_builtin_options=$ac_arg
4597 fi
4598 break
4599 fi
4600 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4601 fi
4602 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4603 done
4604 CFLAGS=$ac_save_CFLAGS
4605
4606 fi
4607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
4608 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
4609 case $ac_cv_c_undeclared_builtin_options in #(
4610 'cannot detect') :
4611 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4612 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4613 as_fn_error $? "cannot make $CC report undeclared builtins
4614 See \`config.log' for more details" "$LINENO" 5; } ;; #(
4615 'none needed') :
4616 ac_c_undeclared_builtin_options='' ;; #(
4617 *) :
4618 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
4619 esac
4620
4621 ac_header= ac_cache=
4622 for ac_item in $ac_header_c_list
4623 do
4624 if test $ac_cache; then
4625 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
4626 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
4627 printf "%s\n" "#define $ac_item 1" >> confdefs.h
4628 fi
4629 ac_header= ac_cache=
4630 elif test $ac_header; then
4631 ac_cache=$ac_item
4632 else
4633 ac_header=$ac_item
4634 fi
4635 done
4636
4637
4638
4639
4640
4641
4642
4643
4644 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
4645 then :
4646
4647 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
4648
4649 fi
4650
4651
4652
4653
4654 ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4655 if test "x$ac_cv_have_decl___clang__" = xyes
4656 then :
4657 CLANGCC="yes"
4658 else $as_nop
4659 CLANGCC="no"
4660 fi
4661 ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4662 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes
4663 then :
4664 INTELCC="yes"
4665 else $as_nop
4666 INTELCC="no"
4667 fi
4668 ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4669 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes
4670 then :
4671 SUNCC="yes"
4672 else $as_nop
4673 SUNCC="no"
4674 fi
4675
4676
4677
4678
4679
4680
4681
4682
4683 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4684 if test -n "$ac_tool_prefix"; then
4685 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4686 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4688 printf %s "checking for $ac_word... " >&6; }
4689 if test ${ac_cv_path_PKG_CONFIG+y}
4690 then :
4691 printf %s "(cached) " >&6
4692 else $as_nop
4693 case $PKG_CONFIG in
4694 [\\/]* | ?:[\\/]*)
4695 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4696 ;;
4697 *)
4698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4699 for as_dir in $PATH
4700 do
4701 IFS=$as_save_IFS
4702 case $as_dir in #(((
4703 '') as_dir=./ ;;
4704 */) ;;
4705 *) as_dir=$as_dir/ ;;
4706 esac
4707 for ac_exec_ext in '' $ac_executable_extensions; do
4708 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4709 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
4710 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4711 break 2
4712 fi
4713 done
4714 done
4715 IFS=$as_save_IFS
4716
4717 ;;
4718 esac
4719 fi
4720 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4721 if test -n "$PKG_CONFIG"; then
4722 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4723 printf "%s\n" "$PKG_CONFIG" >&6; }
4724 else
4725 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4726 printf "%s\n" "no" >&6; }
4727 fi
4728
4729
4730 fi
4731 if test -z "$ac_cv_path_PKG_CONFIG"; then
4732 ac_pt_PKG_CONFIG=$PKG_CONFIG
4733 # Extract the first word of "pkg-config", so it can be a program name with args.
4734 set dummy pkg-config; ac_word=$2
4735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4736 printf %s "checking for $ac_word... " >&6; }
4737 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
4738 then :
4739 printf %s "(cached) " >&6
4740 else $as_nop
4741 case $ac_pt_PKG_CONFIG in
4742 [\\/]* | ?:[\\/]*)
4743 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4744 ;;
4745 *)
4746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4747 for as_dir in $PATH
4748 do
4749 IFS=$as_save_IFS
4750 case $as_dir in #(((
4751 '') as_dir=./ ;;
4752 */) ;;
4753 *) as_dir=$as_dir/ ;;
4754 esac
4755 for ac_exec_ext in '' $ac_executable_extensions; do
4756 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4757 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
4758 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4759 break 2
4760 fi
4761 done
4762 done
4763 IFS=$as_save_IFS
4764
4765 ;;
4766 esac
4767 fi
4768 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4769 if test -n "$ac_pt_PKG_CONFIG"; then
4770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4771 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
4772 else
4773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4774 printf "%s\n" "no" >&6; }
4775 fi
4776
4777 if test "x$ac_pt_PKG_CONFIG" = x; then
4778 PKG_CONFIG=""
4779 else
4780 case $cross_compiling:$ac_tool_warned in
4781 yes:)
4782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4783 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4784 ac_tool_warned=yes ;;
4785 esac
4786 PKG_CONFIG=$ac_pt_PKG_CONFIG
4787 fi
4788 else
4789 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4790 fi
4791
4792 fi
4793 if test -n "$PKG_CONFIG"; then
4794 _pkg_min_version=0.9.0
4795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4796 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4797 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4799 printf "%s\n" "yes" >&6; }
4800 else
4801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4802 printf "%s\n" "no" >&6; }
4803 PKG_CONFIG=""
4804 fi
4805 fi
4806
4807
4808 # Make sure we can run config.sub.
4809 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
4810 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
4811
4812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4813 printf %s "checking build system type... " >&6; }
4814 if test ${ac_cv_build+y}
4815 then :
4816 printf %s "(cached) " >&6
4817 else $as_nop
4818 ac_build_alias=$build_alias
4819 test "x$ac_build_alias" = x &&
4820 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
4821 test "x$ac_build_alias" = x &&
4822 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4823 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
4824 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
4825
4826 fi
4827 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4828 printf "%s\n" "$ac_cv_build" >&6; }
4829 case $ac_cv_build in
4830 *-*-*) ;;
4831 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4832 esac
4833 build=$ac_cv_build
4834 ac_save_IFS=$IFS; IFS='-'
4835 set x $ac_cv_build
4836 shift
4837 build_cpu=$1
4838 build_vendor=$2
4839 shift; shift
4840 # Remember, the first character of IFS is used to create $*,
4841 # except with old shells:
4842 build_os=$*
4843 IFS=$ac_save_IFS
4844 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4845
4846
4847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4848 printf %s "checking host system type... " >&6; }
4849 if test ${ac_cv_host+y}
4850 then :
4851 printf %s "(cached) " >&6
4852 else $as_nop
4853 if test "x$host_alias" = x; then
4854 ac_cv_host=$ac_cv_build
4855 else
4856 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
4857 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
4858 fi
4859
4860 fi
4861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4862 printf "%s\n" "$ac_cv_host" >&6; }
4863 case $ac_cv_host in
4864 *-*-*) ;;
4865 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4866 esac
4867 host=$ac_cv_host
4868 ac_save_IFS=$IFS; IFS='-'
4869 set x $ac_cv_host
4870 shift
4871 host_cpu=$1
4872 host_vendor=$2
4873 shift; shift
4874 # Remember, the first character of IFS is used to create $*,
4875 # except with old shells:
4876 host_os=$*
4877 IFS=$ac_save_IFS
4878 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4879
4880
4881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4882 printf %s "checking for a sed that does not truncate output... " >&6; }
4883 if test ${ac_cv_path_SED+y}
4884 then :
4885 printf %s "(cached) " >&6
4886 else $as_nop
4887 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4888 for ac_i in 1 2 3 4 5 6 7; do
4889 ac_script="$ac_script$as_nl$ac_script"
4890 done
4891 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4892 { ac_script=; unset ac_script;}
4893 if test -z "$SED"; then
4894 ac_path_SED_found=false
4895 # Loop through the user's path and test for each of PROGNAME-LIST
4896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4897 for as_dir in $PATH
4898 do
4899 IFS=$as_save_IFS
4900 case $as_dir in #(((
4901 '') as_dir=./ ;;
4902 */) ;;
4903 *) as_dir=$as_dir/ ;;
4904 esac
4905 for ac_prog in sed gsed
4906 do
4907 for ac_exec_ext in '' $ac_executable_extensions; do
4908 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
4909 as_fn_executable_p "$ac_path_SED" || continue
4910 # Check for GNU ac_path_SED and select it if it is found.
4911 # Check for GNU $ac_path_SED
4912 case `"$ac_path_SED" --version 2>&1` in
4913 *GNU*)
4914 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4915 *)
4916 ac_count=0
4917 printf %s 0123456789 >"conftest.in"
4918 while :
4919 do
4920 cat "conftest.in" "conftest.in" >"conftest.tmp"
4921 mv "conftest.tmp" "conftest.in"
4922 cp "conftest.in" "conftest.nl"
4923 printf "%s\n" '' >> "conftest.nl"
4924 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4925 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4926 as_fn_arith $ac_count + 1 && ac_count=$as_val
4927 if test $ac_count -gt ${ac_path_SED_max-0}; then
4928 # Best one so far, save it but keep looking for a better one
4929 ac_cv_path_SED="$ac_path_SED"
4930 ac_path_SED_max=$ac_count
4931 fi
4932 # 10*(2^10) chars as input seems more than enough
4933 test $ac_count -gt 10 && break
4934 done
4935 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4936 esac
4937
4938 $ac_path_SED_found && break 3
4939 done
4940 done
4941 done
4942 IFS=$as_save_IFS
4943 if test -z "$ac_cv_path_SED"; then
4944 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4945 fi
4946 else
4947 ac_cv_path_SED=$SED
4948 fi
4949
4950 fi
4951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4952 printf "%s\n" "$ac_cv_path_SED" >&6; }
4953 SED="$ac_cv_path_SED"
4954 rm -f conftest.sed
4955
4956
4957
4958
4959
4960
4961 # Check whether --enable-selective-werror was given.
4962 if test ${enable_selective_werror+y}
4963 then :
4964 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4965 else $as_nop
4966 SELECTIVE_WERROR=yes
4967 fi
4968
4969
4970
4971
4972
4973 # -v is too short to test reliably with XORG_TESTSET_CFLAG
4974 if test "x$SUNCC" = "xyes"; then
4975 BASE_CFLAGS="-v"
4976 else
4977 BASE_CFLAGS=""
4978 fi
4979
4980 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
4981
4982
4983
4984
4985
4986
4987
4988
4989
4990
4991
4992
4993
4994 xorg_testset_save_CFLAGS="$CFLAGS"
4995
4996 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4997 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4999 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5000 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5001 then :
5002 printf %s "(cached) " >&6
5003 else $as_nop
5004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5005 /* end confdefs.h. */
5006 int i;
5007 _ACEOF
5008 if ac_fn_c_try_compile "$LINENO"
5009 then :
5010 xorg_cv_cc_flag_unknown_warning_option=yes
5011 else $as_nop
5012 xorg_cv_cc_flag_unknown_warning_option=no
5013 fi
5014 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5015 fi
5016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5017 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5018 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5019 CFLAGS="$xorg_testset_save_CFLAGS"
5020 fi
5021
5022 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5023 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5024 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5025 fi
5026 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5028 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5029 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5030 then :
5031 printf %s "(cached) " >&6
5032 else $as_nop
5033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5034 /* end confdefs.h. */
5035 int i;
5036 _ACEOF
5037 if ac_fn_c_try_compile "$LINENO"
5038 then :
5039 xorg_cv_cc_flag_unused_command_line_argument=yes
5040 else $as_nop
5041 xorg_cv_cc_flag_unused_command_line_argument=no
5042 fi
5043 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5044 fi
5045 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5046 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5047 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5048 CFLAGS="$xorg_testset_save_CFLAGS"
5049 fi
5050
5051 found="no"
5052
5053 if test $found = "no" ; then
5054 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5055 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5056 fi
5057
5058 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5059 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5060 fi
5061
5062 CFLAGS="$CFLAGS -Wall"
5063
5064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
5065 printf %s "checking if $CC supports -Wall... " >&6; }
5066 cacheid=xorg_cv_cc_flag__Wall
5067 if eval test \${$cacheid+y}
5068 then :
5069 printf %s "(cached) " >&6
5070 else $as_nop
5071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5072 /* end confdefs.h. */
5073 int i;
5074 int
5075 main (void)
5076 {
5077
5078 ;
5079 return 0;
5080 }
5081 _ACEOF
5082 if ac_fn_c_try_link "$LINENO"
5083 then :
5084 eval $cacheid=yes
5085 else $as_nop
5086 eval $cacheid=no
5087 fi
5088 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5089 conftest$ac_exeext conftest.$ac_ext
5090 fi
5091
5092
5093 CFLAGS="$xorg_testset_save_CFLAGS"
5094
5095 eval supported=\$$cacheid
5096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5097 printf "%s\n" "$supported" >&6; }
5098 if test "$supported" = "yes" ; then
5099 BASE_CFLAGS="$BASE_CFLAGS -Wall"
5100 found="yes"
5101 fi
5102 fi
5103
5104
5105
5106
5107
5108
5109
5110
5111
5112
5113
5114
5115
5116
5117
5118 xorg_testset_save_CFLAGS="$CFLAGS"
5119
5120 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5121 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5123 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5124 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5125 then :
5126 printf %s "(cached) " >&6
5127 else $as_nop
5128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5129 /* end confdefs.h. */
5130 int i;
5131 _ACEOF
5132 if ac_fn_c_try_compile "$LINENO"
5133 then :
5134 xorg_cv_cc_flag_unknown_warning_option=yes
5135 else $as_nop
5136 xorg_cv_cc_flag_unknown_warning_option=no
5137 fi
5138 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5139 fi
5140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5141 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5142 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5143 CFLAGS="$xorg_testset_save_CFLAGS"
5144 fi
5145
5146 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5147 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5148 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5149 fi
5150 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5152 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5153 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5154 then :
5155 printf %s "(cached) " >&6
5156 else $as_nop
5157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5158 /* end confdefs.h. */
5159 int i;
5160 _ACEOF
5161 if ac_fn_c_try_compile "$LINENO"
5162 then :
5163 xorg_cv_cc_flag_unused_command_line_argument=yes
5164 else $as_nop
5165 xorg_cv_cc_flag_unused_command_line_argument=no
5166 fi
5167 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5168 fi
5169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5170 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5171 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5172 CFLAGS="$xorg_testset_save_CFLAGS"
5173 fi
5174
5175 found="no"
5176
5177 if test $found = "no" ; then
5178 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5179 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5180 fi
5181
5182 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5183 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5184 fi
5185
5186 CFLAGS="$CFLAGS -Wpointer-arith"
5187
5188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
5189 printf %s "checking if $CC supports -Wpointer-arith... " >&6; }
5190 cacheid=xorg_cv_cc_flag__Wpointer_arith
5191 if eval test \${$cacheid+y}
5192 then :
5193 printf %s "(cached) " >&6
5194 else $as_nop
5195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5196 /* end confdefs.h. */
5197 int i;
5198 int
5199 main (void)
5200 {
5201
5202 ;
5203 return 0;
5204 }
5205 _ACEOF
5206 if ac_fn_c_try_link "$LINENO"
5207 then :
5208 eval $cacheid=yes
5209 else $as_nop
5210 eval $cacheid=no
5211 fi
5212 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5213 conftest$ac_exeext conftest.$ac_ext
5214 fi
5215
5216
5217 CFLAGS="$xorg_testset_save_CFLAGS"
5218
5219 eval supported=\$$cacheid
5220 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5221 printf "%s\n" "$supported" >&6; }
5222 if test "$supported" = "yes" ; then
5223 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
5224 found="yes"
5225 fi
5226 fi
5227
5228
5229
5230
5231
5232
5233
5234
5235
5236
5237
5238
5239
5240
5241
5242 xorg_testset_save_CFLAGS="$CFLAGS"
5243
5244 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5245 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5247 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5248 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5249 then :
5250 printf %s "(cached) " >&6
5251 else $as_nop
5252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5253 /* end confdefs.h. */
5254 int i;
5255 _ACEOF
5256 if ac_fn_c_try_compile "$LINENO"
5257 then :
5258 xorg_cv_cc_flag_unknown_warning_option=yes
5259 else $as_nop
5260 xorg_cv_cc_flag_unknown_warning_option=no
5261 fi
5262 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5263 fi
5264 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5265 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5266 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5267 CFLAGS="$xorg_testset_save_CFLAGS"
5268 fi
5269
5270 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5271 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5272 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5273 fi
5274 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5275 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5276 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5277 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5278 then :
5279 printf %s "(cached) " >&6
5280 else $as_nop
5281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5282 /* end confdefs.h. */
5283 int i;
5284 _ACEOF
5285 if ac_fn_c_try_compile "$LINENO"
5286 then :
5287 xorg_cv_cc_flag_unused_command_line_argument=yes
5288 else $as_nop
5289 xorg_cv_cc_flag_unused_command_line_argument=no
5290 fi
5291 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5292 fi
5293 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5294 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5295 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5296 CFLAGS="$xorg_testset_save_CFLAGS"
5297 fi
5298
5299 found="no"
5300
5301 if test $found = "no" ; then
5302 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5303 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5304 fi
5305
5306 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5307 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5308 fi
5309
5310 CFLAGS="$CFLAGS -Wmissing-declarations"
5311
5312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
5313 printf %s "checking if $CC supports -Wmissing-declarations... " >&6; }
5314 cacheid=xorg_cv_cc_flag__Wmissing_declarations
5315 if eval test \${$cacheid+y}
5316 then :
5317 printf %s "(cached) " >&6
5318 else $as_nop
5319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5320 /* end confdefs.h. */
5321 int i;
5322 int
5323 main (void)
5324 {
5325
5326 ;
5327 return 0;
5328 }
5329 _ACEOF
5330 if ac_fn_c_try_link "$LINENO"
5331 then :
5332 eval $cacheid=yes
5333 else $as_nop
5334 eval $cacheid=no
5335 fi
5336 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5337 conftest$ac_exeext conftest.$ac_ext
5338 fi
5339
5340
5341 CFLAGS="$xorg_testset_save_CFLAGS"
5342
5343 eval supported=\$$cacheid
5344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5345 printf "%s\n" "$supported" >&6; }
5346 if test "$supported" = "yes" ; then
5347 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5348 found="yes"
5349 fi
5350 fi
5351
5352
5353
5354
5355
5356
5357
5358
5359
5360
5361
5362
5363
5364
5365
5366 xorg_testset_save_CFLAGS="$CFLAGS"
5367
5368 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5369 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5370 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5371 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5372 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5373 then :
5374 printf %s "(cached) " >&6
5375 else $as_nop
5376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5377 /* end confdefs.h. */
5378 int i;
5379 _ACEOF
5380 if ac_fn_c_try_compile "$LINENO"
5381 then :
5382 xorg_cv_cc_flag_unknown_warning_option=yes
5383 else $as_nop
5384 xorg_cv_cc_flag_unknown_warning_option=no
5385 fi
5386 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5387 fi
5388 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5389 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5390 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5391 CFLAGS="$xorg_testset_save_CFLAGS"
5392 fi
5393
5394 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5395 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5396 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5397 fi
5398 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5400 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5401 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5402 then :
5403 printf %s "(cached) " >&6
5404 else $as_nop
5405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5406 /* end confdefs.h. */
5407 int i;
5408 _ACEOF
5409 if ac_fn_c_try_compile "$LINENO"
5410 then :
5411 xorg_cv_cc_flag_unused_command_line_argument=yes
5412 else $as_nop
5413 xorg_cv_cc_flag_unused_command_line_argument=no
5414 fi
5415 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5416 fi
5417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5418 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5419 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5420 CFLAGS="$xorg_testset_save_CFLAGS"
5421 fi
5422
5423 found="no"
5424
5425 if test $found = "no" ; then
5426 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5427 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5428 fi
5429
5430 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5431 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5432 fi
5433
5434 CFLAGS="$CFLAGS -Wformat=2"
5435
5436 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5437 printf %s "checking if $CC supports -Wformat=2... " >&6; }
5438 cacheid=xorg_cv_cc_flag__Wformat_2
5439 if eval test \${$cacheid+y}
5440 then :
5441 printf %s "(cached) " >&6
5442 else $as_nop
5443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5444 /* end confdefs.h. */
5445 int i;
5446 int
5447 main (void)
5448 {
5449
5450 ;
5451 return 0;
5452 }
5453 _ACEOF
5454 if ac_fn_c_try_link "$LINENO"
5455 then :
5456 eval $cacheid=yes
5457 else $as_nop
5458 eval $cacheid=no
5459 fi
5460 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5461 conftest$ac_exeext conftest.$ac_ext
5462 fi
5463
5464
5465 CFLAGS="$xorg_testset_save_CFLAGS"
5466
5467 eval supported=\$$cacheid
5468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5469 printf "%s\n" "$supported" >&6; }
5470 if test "$supported" = "yes" ; then
5471 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5472 found="yes"
5473 fi
5474 fi
5475
5476 if test $found = "no" ; then
5477 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5478 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5479 fi
5480
5481 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5482 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5483 fi
5484
5485 CFLAGS="$CFLAGS -Wformat"
5486
5487 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5488 printf %s "checking if $CC supports -Wformat... " >&6; }
5489 cacheid=xorg_cv_cc_flag__Wformat
5490 if eval test \${$cacheid+y}
5491 then :
5492 printf %s "(cached) " >&6
5493 else $as_nop
5494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5495 /* end confdefs.h. */
5496 int i;
5497 int
5498 main (void)
5499 {
5500
5501 ;
5502 return 0;
5503 }
5504 _ACEOF
5505 if ac_fn_c_try_link "$LINENO"
5506 then :
5507 eval $cacheid=yes
5508 else $as_nop
5509 eval $cacheid=no
5510 fi
5511 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5512 conftest$ac_exeext conftest.$ac_ext
5513 fi
5514
5515
5516 CFLAGS="$xorg_testset_save_CFLAGS"
5517
5518 eval supported=\$$cacheid
5519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5520 printf "%s\n" "$supported" >&6; }
5521 if test "$supported" = "yes" ; then
5522 BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5523 found="yes"
5524 fi
5525 fi
5526
5527
5528
5529
5530
5531
5532
5533
5534
5535
5536
5537
5538
5539
5540
5541
5542
5543 xorg_testset_save_CFLAGS="$CFLAGS"
5544
5545 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5546 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5547 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5548 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5549 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5550 then :
5551 printf %s "(cached) " >&6
5552 else $as_nop
5553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5554 /* end confdefs.h. */
5555 int i;
5556 _ACEOF
5557 if ac_fn_c_try_compile "$LINENO"
5558 then :
5559 xorg_cv_cc_flag_unknown_warning_option=yes
5560 else $as_nop
5561 xorg_cv_cc_flag_unknown_warning_option=no
5562 fi
5563 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5564 fi
5565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5566 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5567 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5568 CFLAGS="$xorg_testset_save_CFLAGS"
5569 fi
5570
5571 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5572 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5573 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5574 fi
5575 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5577 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5578 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5579 then :
5580 printf %s "(cached) " >&6
5581 else $as_nop
5582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5583 /* end confdefs.h. */
5584 int i;
5585 _ACEOF
5586 if ac_fn_c_try_compile "$LINENO"
5587 then :
5588 xorg_cv_cc_flag_unused_command_line_argument=yes
5589 else $as_nop
5590 xorg_cv_cc_flag_unused_command_line_argument=no
5591 fi
5592 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5593 fi
5594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5595 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5596 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5597 CFLAGS="$xorg_testset_save_CFLAGS"
5598 fi
5599
5600 found="no"
5601
5602 if test $found = "no" ; then
5603 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5604 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5605 fi
5606
5607 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5608 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5609 fi
5610
5611 CFLAGS="$CFLAGS -Wstrict-prototypes"
5612
5613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5614 printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; }
5615 cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5616 if eval test \${$cacheid+y}
5617 then :
5618 printf %s "(cached) " >&6
5619 else $as_nop
5620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5621 /* end confdefs.h. */
5622 int i;
5623 int
5624 main (void)
5625 {
5626
5627 ;
5628 return 0;
5629 }
5630 _ACEOF
5631 if ac_fn_c_try_link "$LINENO"
5632 then :
5633 eval $cacheid=yes
5634 else $as_nop
5635 eval $cacheid=no
5636 fi
5637 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5638 conftest$ac_exeext conftest.$ac_ext
5639 fi
5640
5641
5642 CFLAGS="$xorg_testset_save_CFLAGS"
5643
5644 eval supported=\$$cacheid
5645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5646 printf "%s\n" "$supported" >&6; }
5647 if test "$supported" = "yes" ; then
5648 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5649 found="yes"
5650 fi
5651 fi
5652
5653
5654
5655
5656
5657
5658
5659
5660
5661
5662
5663
5664
5665
5666
5667 xorg_testset_save_CFLAGS="$CFLAGS"
5668
5669 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5670 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5672 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5673 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5674 then :
5675 printf %s "(cached) " >&6
5676 else $as_nop
5677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5678 /* end confdefs.h. */
5679 int i;
5680 _ACEOF
5681 if ac_fn_c_try_compile "$LINENO"
5682 then :
5683 xorg_cv_cc_flag_unknown_warning_option=yes
5684 else $as_nop
5685 xorg_cv_cc_flag_unknown_warning_option=no
5686 fi
5687 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5688 fi
5689 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5690 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5691 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5692 CFLAGS="$xorg_testset_save_CFLAGS"
5693 fi
5694
5695 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5696 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5697 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5698 fi
5699 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5701 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5702 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5703 then :
5704 printf %s "(cached) " >&6
5705 else $as_nop
5706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5707 /* end confdefs.h. */
5708 int i;
5709 _ACEOF
5710 if ac_fn_c_try_compile "$LINENO"
5711 then :
5712 xorg_cv_cc_flag_unused_command_line_argument=yes
5713 else $as_nop
5714 xorg_cv_cc_flag_unused_command_line_argument=no
5715 fi
5716 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5717 fi
5718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5719 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5720 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5721 CFLAGS="$xorg_testset_save_CFLAGS"
5722 fi
5723
5724 found="no"
5725
5726 if test $found = "no" ; then
5727 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5728 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5729 fi
5730
5731 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5732 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5733 fi
5734
5735 CFLAGS="$CFLAGS -Wmissing-prototypes"
5736
5737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5738 printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; }
5739 cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5740 if eval test \${$cacheid+y}
5741 then :
5742 printf %s "(cached) " >&6
5743 else $as_nop
5744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5745 /* end confdefs.h. */
5746 int i;
5747 int
5748 main (void)
5749 {
5750
5751 ;
5752 return 0;
5753 }
5754 _ACEOF
5755 if ac_fn_c_try_link "$LINENO"
5756 then :
5757 eval $cacheid=yes
5758 else $as_nop
5759 eval $cacheid=no
5760 fi
5761 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5762 conftest$ac_exeext conftest.$ac_ext
5763 fi
5764
5765
5766 CFLAGS="$xorg_testset_save_CFLAGS"
5767
5768 eval supported=\$$cacheid
5769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5770 printf "%s\n" "$supported" >&6; }
5771 if test "$supported" = "yes" ; then
5772 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5773 found="yes"
5774 fi
5775 fi
5776
5777
5778
5779
5780
5781
5782
5783
5784
5785
5786
5787
5788
5789
5790
5791 xorg_testset_save_CFLAGS="$CFLAGS"
5792
5793 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5794 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5796 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5797 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5798 then :
5799 printf %s "(cached) " >&6
5800 else $as_nop
5801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5802 /* end confdefs.h. */
5803 int i;
5804 _ACEOF
5805 if ac_fn_c_try_compile "$LINENO"
5806 then :
5807 xorg_cv_cc_flag_unknown_warning_option=yes
5808 else $as_nop
5809 xorg_cv_cc_flag_unknown_warning_option=no
5810 fi
5811 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5812 fi
5813 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5814 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5815 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5816 CFLAGS="$xorg_testset_save_CFLAGS"
5817 fi
5818
5819 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5820 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5821 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5822 fi
5823 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5825 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5826 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5827 then :
5828 printf %s "(cached) " >&6
5829 else $as_nop
5830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5831 /* end confdefs.h. */
5832 int i;
5833 _ACEOF
5834 if ac_fn_c_try_compile "$LINENO"
5835 then :
5836 xorg_cv_cc_flag_unused_command_line_argument=yes
5837 else $as_nop
5838 xorg_cv_cc_flag_unused_command_line_argument=no
5839 fi
5840 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5841 fi
5842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5843 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5844 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5845 CFLAGS="$xorg_testset_save_CFLAGS"
5846 fi
5847
5848 found="no"
5849
5850 if test $found = "no" ; then
5851 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5852 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5853 fi
5854
5855 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5856 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5857 fi
5858
5859 CFLAGS="$CFLAGS -Wnested-externs"
5860
5861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5862 printf %s "checking if $CC supports -Wnested-externs... " >&6; }
5863 cacheid=xorg_cv_cc_flag__Wnested_externs
5864 if eval test \${$cacheid+y}
5865 then :
5866 printf %s "(cached) " >&6
5867 else $as_nop
5868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5869 /* end confdefs.h. */
5870 int i;
5871 int
5872 main (void)
5873 {
5874
5875 ;
5876 return 0;
5877 }
5878 _ACEOF
5879 if ac_fn_c_try_link "$LINENO"
5880 then :
5881 eval $cacheid=yes
5882 else $as_nop
5883 eval $cacheid=no
5884 fi
5885 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5886 conftest$ac_exeext conftest.$ac_ext
5887 fi
5888
5889
5890 CFLAGS="$xorg_testset_save_CFLAGS"
5891
5892 eval supported=\$$cacheid
5893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5894 printf "%s\n" "$supported" >&6; }
5895 if test "$supported" = "yes" ; then
5896 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5897 found="yes"
5898 fi
5899 fi
5900
5901
5902
5903
5904
5905
5906
5907
5908
5909
5910
5911
5912
5913
5914
5915 xorg_testset_save_CFLAGS="$CFLAGS"
5916
5917 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5918 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5920 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5921 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5922 then :
5923 printf %s "(cached) " >&6
5924 else $as_nop
5925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5926 /* end confdefs.h. */
5927 int i;
5928 _ACEOF
5929 if ac_fn_c_try_compile "$LINENO"
5930 then :
5931 xorg_cv_cc_flag_unknown_warning_option=yes
5932 else $as_nop
5933 xorg_cv_cc_flag_unknown_warning_option=no
5934 fi
5935 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5936 fi
5937 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5938 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5939 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5940 CFLAGS="$xorg_testset_save_CFLAGS"
5941 fi
5942
5943 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5944 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5945 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5946 fi
5947 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5949 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5950 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5951 then :
5952 printf %s "(cached) " >&6
5953 else $as_nop
5954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5955 /* end confdefs.h. */
5956 int i;
5957 _ACEOF
5958 if ac_fn_c_try_compile "$LINENO"
5959 then :
5960 xorg_cv_cc_flag_unused_command_line_argument=yes
5961 else $as_nop
5962 xorg_cv_cc_flag_unused_command_line_argument=no
5963 fi
5964 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5965 fi
5966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5967 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5968 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5969 CFLAGS="$xorg_testset_save_CFLAGS"
5970 fi
5971
5972 found="no"
5973
5974 if test $found = "no" ; then
5975 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5976 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5977 fi
5978
5979 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5980 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5981 fi
5982
5983 CFLAGS="$CFLAGS -Wbad-function-cast"
5984
5985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
5986 printf %s "checking if $CC supports -Wbad-function-cast... " >&6; }
5987 cacheid=xorg_cv_cc_flag__Wbad_function_cast
5988 if eval test \${$cacheid+y}
5989 then :
5990 printf %s "(cached) " >&6
5991 else $as_nop
5992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5993 /* end confdefs.h. */
5994 int i;
5995 int
5996 main (void)
5997 {
5998
5999 ;
6000 return 0;
6001 }
6002 _ACEOF
6003 if ac_fn_c_try_link "$LINENO"
6004 then :
6005 eval $cacheid=yes
6006 else $as_nop
6007 eval $cacheid=no
6008 fi
6009 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6010 conftest$ac_exeext conftest.$ac_ext
6011 fi
6012
6013
6014 CFLAGS="$xorg_testset_save_CFLAGS"
6015
6016 eval supported=\$$cacheid
6017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6018 printf "%s\n" "$supported" >&6; }
6019 if test "$supported" = "yes" ; then
6020 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
6021 found="yes"
6022 fi
6023 fi
6024
6025
6026
6027
6028
6029
6030
6031
6032
6033
6034
6035
6036
6037
6038
6039 xorg_testset_save_CFLAGS="$CFLAGS"
6040
6041 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6042 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6044 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6045 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6046 then :
6047 printf %s "(cached) " >&6
6048 else $as_nop
6049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6050 /* end confdefs.h. */
6051 int i;
6052 _ACEOF
6053 if ac_fn_c_try_compile "$LINENO"
6054 then :
6055 xorg_cv_cc_flag_unknown_warning_option=yes
6056 else $as_nop
6057 xorg_cv_cc_flag_unknown_warning_option=no
6058 fi
6059 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6060 fi
6061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6062 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6063 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6064 CFLAGS="$xorg_testset_save_CFLAGS"
6065 fi
6066
6067 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6068 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6069 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6070 fi
6071 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6073 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6074 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6075 then :
6076 printf %s "(cached) " >&6
6077 else $as_nop
6078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6079 /* end confdefs.h. */
6080 int i;
6081 _ACEOF
6082 if ac_fn_c_try_compile "$LINENO"
6083 then :
6084 xorg_cv_cc_flag_unused_command_line_argument=yes
6085 else $as_nop
6086 xorg_cv_cc_flag_unused_command_line_argument=no
6087 fi
6088 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6089 fi
6090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6091 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6092 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6093 CFLAGS="$xorg_testset_save_CFLAGS"
6094 fi
6095
6096 found="no"
6097
6098 if test $found = "no" ; then
6099 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6100 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6101 fi
6102
6103 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6104 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6105 fi
6106
6107 CFLAGS="$CFLAGS -Wold-style-definition"
6108
6109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
6110 printf %s "checking if $CC supports -Wold-style-definition... " >&6; }
6111 cacheid=xorg_cv_cc_flag__Wold_style_definition
6112 if eval test \${$cacheid+y}
6113 then :
6114 printf %s "(cached) " >&6
6115 else $as_nop
6116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6117 /* end confdefs.h. */
6118 int i;
6119 int
6120 main (void)
6121 {
6122
6123 ;
6124 return 0;
6125 }
6126 _ACEOF
6127 if ac_fn_c_try_link "$LINENO"
6128 then :
6129 eval $cacheid=yes
6130 else $as_nop
6131 eval $cacheid=no
6132 fi
6133 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6134 conftest$ac_exeext conftest.$ac_ext
6135 fi
6136
6137
6138 CFLAGS="$xorg_testset_save_CFLAGS"
6139
6140 eval supported=\$$cacheid
6141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6142 printf "%s\n" "$supported" >&6; }
6143 if test "$supported" = "yes" ; then
6144 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
6145 found="yes"
6146 fi
6147 fi
6148
6149 if test $found = "no" ; then
6150 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6151 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6152 fi
6153
6154 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6155 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6156 fi
6157
6158 CFLAGS="$CFLAGS -fd"
6159
6160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
6161 printf %s "checking if $CC supports -fd... " >&6; }
6162 cacheid=xorg_cv_cc_flag__fd
6163 if eval test \${$cacheid+y}
6164 then :
6165 printf %s "(cached) " >&6
6166 else $as_nop
6167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6168 /* end confdefs.h. */
6169 int i;
6170 int
6171 main (void)
6172 {
6173
6174 ;
6175 return 0;
6176 }
6177 _ACEOF
6178 if ac_fn_c_try_link "$LINENO"
6179 then :
6180 eval $cacheid=yes
6181 else $as_nop
6182 eval $cacheid=no
6183 fi
6184 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6185 conftest$ac_exeext conftest.$ac_ext
6186 fi
6187
6188
6189 CFLAGS="$xorg_testset_save_CFLAGS"
6190
6191 eval supported=\$$cacheid
6192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6193 printf "%s\n" "$supported" >&6; }
6194 if test "$supported" = "yes" ; then
6195 BASE_CFLAGS="$BASE_CFLAGS -fd"
6196 found="yes"
6197 fi
6198 fi
6199
6200
6201
6202
6203
6204
6205
6206
6207
6208
6209
6210
6211
6212
6213
6214 xorg_testset_save_CFLAGS="$CFLAGS"
6215
6216 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6217 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6218 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6219 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6220 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6221 then :
6222 printf %s "(cached) " >&6
6223 else $as_nop
6224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6225 /* end confdefs.h. */
6226 int i;
6227 _ACEOF
6228 if ac_fn_c_try_compile "$LINENO"
6229 then :
6230 xorg_cv_cc_flag_unknown_warning_option=yes
6231 else $as_nop
6232 xorg_cv_cc_flag_unknown_warning_option=no
6233 fi
6234 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6235 fi
6236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6237 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6238 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6239 CFLAGS="$xorg_testset_save_CFLAGS"
6240 fi
6241
6242 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6243 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6244 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6245 fi
6246 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6248 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6249 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6250 then :
6251 printf %s "(cached) " >&6
6252 else $as_nop
6253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6254 /* end confdefs.h. */
6255 int i;
6256 _ACEOF
6257 if ac_fn_c_try_compile "$LINENO"
6258 then :
6259 xorg_cv_cc_flag_unused_command_line_argument=yes
6260 else $as_nop
6261 xorg_cv_cc_flag_unused_command_line_argument=no
6262 fi
6263 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6264 fi
6265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6266 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6267 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6268 CFLAGS="$xorg_testset_save_CFLAGS"
6269 fi
6270
6271 found="no"
6272
6273 if test $found = "no" ; then
6274 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6275 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6276 fi
6277
6278 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6279 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6280 fi
6281
6282 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
6283
6284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
6285 printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
6286 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
6287 if eval test \${$cacheid+y}
6288 then :
6289 printf %s "(cached) " >&6
6290 else $as_nop
6291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6292 /* end confdefs.h. */
6293 int i;
6294 int
6295 main (void)
6296 {
6297
6298 ;
6299 return 0;
6300 }
6301 _ACEOF
6302 if ac_fn_c_try_link "$LINENO"
6303 then :
6304 eval $cacheid=yes
6305 else $as_nop
6306 eval $cacheid=no
6307 fi
6308 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6309 conftest$ac_exeext conftest.$ac_ext
6310 fi
6311
6312
6313 CFLAGS="$xorg_testset_save_CFLAGS"
6314
6315 eval supported=\$$cacheid
6316 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6317 printf "%s\n" "$supported" >&6; }
6318 if test "$supported" = "yes" ; then
6319 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
6320 found="yes"
6321 fi
6322 fi
6323
6324
6325
6326
6327
6328 # This chunk adds additional warnings that could catch undesired effects.
6329
6330
6331
6332
6333
6334
6335
6336
6337
6338
6339
6340
6341
6342 xorg_testset_save_CFLAGS="$CFLAGS"
6343
6344 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6345 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6347 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6348 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6349 then :
6350 printf %s "(cached) " >&6
6351 else $as_nop
6352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6353 /* end confdefs.h. */
6354 int i;
6355 _ACEOF
6356 if ac_fn_c_try_compile "$LINENO"
6357 then :
6358 xorg_cv_cc_flag_unknown_warning_option=yes
6359 else $as_nop
6360 xorg_cv_cc_flag_unknown_warning_option=no
6361 fi
6362 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6363 fi
6364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6365 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6366 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6367 CFLAGS="$xorg_testset_save_CFLAGS"
6368 fi
6369
6370 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6371 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6372 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6373 fi
6374 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6375 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6376 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6377 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6378 then :
6379 printf %s "(cached) " >&6
6380 else $as_nop
6381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6382 /* end confdefs.h. */
6383 int i;
6384 _ACEOF
6385 if ac_fn_c_try_compile "$LINENO"
6386 then :
6387 xorg_cv_cc_flag_unused_command_line_argument=yes
6388 else $as_nop
6389 xorg_cv_cc_flag_unused_command_line_argument=no
6390 fi
6391 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6392 fi
6393 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6394 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6395 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6396 CFLAGS="$xorg_testset_save_CFLAGS"
6397 fi
6398
6399 found="no"
6400
6401 if test $found = "no" ; then
6402 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6403 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6404 fi
6405
6406 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6407 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6408 fi
6409
6410 CFLAGS="$CFLAGS -Wunused"
6411
6412 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
6413 printf %s "checking if $CC supports -Wunused... " >&6; }
6414 cacheid=xorg_cv_cc_flag__Wunused
6415 if eval test \${$cacheid+y}
6416 then :
6417 printf %s "(cached) " >&6
6418 else $as_nop
6419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6420 /* end confdefs.h. */
6421 int i;
6422 int
6423 main (void)
6424 {
6425
6426 ;
6427 return 0;
6428 }
6429 _ACEOF
6430 if ac_fn_c_try_link "$LINENO"
6431 then :
6432 eval $cacheid=yes
6433 else $as_nop
6434 eval $cacheid=no
6435 fi
6436 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6437 conftest$ac_exeext conftest.$ac_ext
6438 fi
6439
6440
6441 CFLAGS="$xorg_testset_save_CFLAGS"
6442
6443 eval supported=\$$cacheid
6444 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6445 printf "%s\n" "$supported" >&6; }
6446 if test "$supported" = "yes" ; then
6447 BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6448 found="yes"
6449 fi
6450 fi
6451
6452
6453
6454
6455
6456
6457
6458
6459
6460
6461
6462
6463
6464
6465
6466 xorg_testset_save_CFLAGS="$CFLAGS"
6467
6468 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6469 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6471 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6472 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6473 then :
6474 printf %s "(cached) " >&6
6475 else $as_nop
6476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6477 /* end confdefs.h. */
6478 int i;
6479 _ACEOF
6480 if ac_fn_c_try_compile "$LINENO"
6481 then :
6482 xorg_cv_cc_flag_unknown_warning_option=yes
6483 else $as_nop
6484 xorg_cv_cc_flag_unknown_warning_option=no
6485 fi
6486 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6487 fi
6488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6489 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6490 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6491 CFLAGS="$xorg_testset_save_CFLAGS"
6492 fi
6493
6494 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6495 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6496 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6497 fi
6498 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6500 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6501 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6502 then :
6503 printf %s "(cached) " >&6
6504 else $as_nop
6505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6506 /* end confdefs.h. */
6507 int i;
6508 _ACEOF
6509 if ac_fn_c_try_compile "$LINENO"
6510 then :
6511 xorg_cv_cc_flag_unused_command_line_argument=yes
6512 else $as_nop
6513 xorg_cv_cc_flag_unused_command_line_argument=no
6514 fi
6515 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6516 fi
6517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6518 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6519 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6520 CFLAGS="$xorg_testset_save_CFLAGS"
6521 fi
6522
6523 found="no"
6524
6525 if test $found = "no" ; then
6526 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6527 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6528 fi
6529
6530 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6531 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6532 fi
6533
6534 CFLAGS="$CFLAGS -Wuninitialized"
6535
6536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6537 printf %s "checking if $CC supports -Wuninitialized... " >&6; }
6538 cacheid=xorg_cv_cc_flag__Wuninitialized
6539 if eval test \${$cacheid+y}
6540 then :
6541 printf %s "(cached) " >&6
6542 else $as_nop
6543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6544 /* end confdefs.h. */
6545 int i;
6546 int
6547 main (void)
6548 {
6549
6550 ;
6551 return 0;
6552 }
6553 _ACEOF
6554 if ac_fn_c_try_link "$LINENO"
6555 then :
6556 eval $cacheid=yes
6557 else $as_nop
6558 eval $cacheid=no
6559 fi
6560 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6561 conftest$ac_exeext conftest.$ac_ext
6562 fi
6563
6564
6565 CFLAGS="$xorg_testset_save_CFLAGS"
6566
6567 eval supported=\$$cacheid
6568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6569 printf "%s\n" "$supported" >&6; }
6570 if test "$supported" = "yes" ; then
6571 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6572 found="yes"
6573 fi
6574 fi
6575
6576
6577
6578
6579
6580
6581
6582
6583
6584
6585
6586
6587
6588
6589
6590 xorg_testset_save_CFLAGS="$CFLAGS"
6591
6592 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6593 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6595 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6596 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6597 then :
6598 printf %s "(cached) " >&6
6599 else $as_nop
6600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6601 /* end confdefs.h. */
6602 int i;
6603 _ACEOF
6604 if ac_fn_c_try_compile "$LINENO"
6605 then :
6606 xorg_cv_cc_flag_unknown_warning_option=yes
6607 else $as_nop
6608 xorg_cv_cc_flag_unknown_warning_option=no
6609 fi
6610 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6611 fi
6612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6613 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6614 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6615 CFLAGS="$xorg_testset_save_CFLAGS"
6616 fi
6617
6618 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6619 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6620 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6621 fi
6622 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6624 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6625 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6626 then :
6627 printf %s "(cached) " >&6
6628 else $as_nop
6629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6630 /* end confdefs.h. */
6631 int i;
6632 _ACEOF
6633 if ac_fn_c_try_compile "$LINENO"
6634 then :
6635 xorg_cv_cc_flag_unused_command_line_argument=yes
6636 else $as_nop
6637 xorg_cv_cc_flag_unused_command_line_argument=no
6638 fi
6639 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6640 fi
6641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6642 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6643 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6644 CFLAGS="$xorg_testset_save_CFLAGS"
6645 fi
6646
6647 found="no"
6648
6649 if test $found = "no" ; then
6650 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6651 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6652 fi
6653
6654 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6655 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6656 fi
6657
6658 CFLAGS="$CFLAGS -Wshadow"
6659
6660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6661 printf %s "checking if $CC supports -Wshadow... " >&6; }
6662 cacheid=xorg_cv_cc_flag__Wshadow
6663 if eval test \${$cacheid+y}
6664 then :
6665 printf %s "(cached) " >&6
6666 else $as_nop
6667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6668 /* end confdefs.h. */
6669 int i;
6670 int
6671 main (void)
6672 {
6673
6674 ;
6675 return 0;
6676 }
6677 _ACEOF
6678 if ac_fn_c_try_link "$LINENO"
6679 then :
6680 eval $cacheid=yes
6681 else $as_nop
6682 eval $cacheid=no
6683 fi
6684 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6685 conftest$ac_exeext conftest.$ac_ext
6686 fi
6687
6688
6689 CFLAGS="$xorg_testset_save_CFLAGS"
6690
6691 eval supported=\$$cacheid
6692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6693 printf "%s\n" "$supported" >&6; }
6694 if test "$supported" = "yes" ; then
6695 BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6696 found="yes"
6697 fi
6698 fi
6699
6700
6701
6702
6703
6704
6705
6706
6707
6708
6709
6710
6711
6712
6713
6714 xorg_testset_save_CFLAGS="$CFLAGS"
6715
6716 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6717 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6719 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6720 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6721 then :
6722 printf %s "(cached) " >&6
6723 else $as_nop
6724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6725 /* end confdefs.h. */
6726 int i;
6727 _ACEOF
6728 if ac_fn_c_try_compile "$LINENO"
6729 then :
6730 xorg_cv_cc_flag_unknown_warning_option=yes
6731 else $as_nop
6732 xorg_cv_cc_flag_unknown_warning_option=no
6733 fi
6734 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6735 fi
6736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6737 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6738 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6739 CFLAGS="$xorg_testset_save_CFLAGS"
6740 fi
6741
6742 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6743 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6744 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6745 fi
6746 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6748 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6749 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6750 then :
6751 printf %s "(cached) " >&6
6752 else $as_nop
6753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6754 /* end confdefs.h. */
6755 int i;
6756 _ACEOF
6757 if ac_fn_c_try_compile "$LINENO"
6758 then :
6759 xorg_cv_cc_flag_unused_command_line_argument=yes
6760 else $as_nop
6761 xorg_cv_cc_flag_unused_command_line_argument=no
6762 fi
6763 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6764 fi
6765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6766 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6767 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6768 CFLAGS="$xorg_testset_save_CFLAGS"
6769 fi
6770
6771 found="no"
6772
6773 if test $found = "no" ; then
6774 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6775 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6776 fi
6777
6778 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6779 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6780 fi
6781
6782 CFLAGS="$CFLAGS -Wmissing-noreturn"
6783
6784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6785 printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; }
6786 cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6787 if eval test \${$cacheid+y}
6788 then :
6789 printf %s "(cached) " >&6
6790 else $as_nop
6791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6792 /* end confdefs.h. */
6793 int i;
6794 int
6795 main (void)
6796 {
6797
6798 ;
6799 return 0;
6800 }
6801 _ACEOF
6802 if ac_fn_c_try_link "$LINENO"
6803 then :
6804 eval $cacheid=yes
6805 else $as_nop
6806 eval $cacheid=no
6807 fi
6808 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6809 conftest$ac_exeext conftest.$ac_ext
6810 fi
6811
6812
6813 CFLAGS="$xorg_testset_save_CFLAGS"
6814
6815 eval supported=\$$cacheid
6816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6817 printf "%s\n" "$supported" >&6; }
6818 if test "$supported" = "yes" ; then
6819 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6820 found="yes"
6821 fi
6822 fi
6823
6824
6825
6826
6827
6828
6829
6830
6831
6832
6833
6834
6835
6836
6837
6838 xorg_testset_save_CFLAGS="$CFLAGS"
6839
6840 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6841 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6843 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6844 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6845 then :
6846 printf %s "(cached) " >&6
6847 else $as_nop
6848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6849 /* end confdefs.h. */
6850 int i;
6851 _ACEOF
6852 if ac_fn_c_try_compile "$LINENO"
6853 then :
6854 xorg_cv_cc_flag_unknown_warning_option=yes
6855 else $as_nop
6856 xorg_cv_cc_flag_unknown_warning_option=no
6857 fi
6858 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6859 fi
6860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6861 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6862 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6863 CFLAGS="$xorg_testset_save_CFLAGS"
6864 fi
6865
6866 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6867 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6868 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6869 fi
6870 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6871 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6872 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6873 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6874 then :
6875 printf %s "(cached) " >&6
6876 else $as_nop
6877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6878 /* end confdefs.h. */
6879 int i;
6880 _ACEOF
6881 if ac_fn_c_try_compile "$LINENO"
6882 then :
6883 xorg_cv_cc_flag_unused_command_line_argument=yes
6884 else $as_nop
6885 xorg_cv_cc_flag_unused_command_line_argument=no
6886 fi
6887 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6888 fi
6889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6890 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6891 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6892 CFLAGS="$xorg_testset_save_CFLAGS"
6893 fi
6894
6895 found="no"
6896
6897 if test $found = "no" ; then
6898 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6899 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6900 fi
6901
6902 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6903 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6904 fi
6905
6906 CFLAGS="$CFLAGS -Wmissing-format-attribute"
6907
6908 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6909 printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6910 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6911 if eval test \${$cacheid+y}
6912 then :
6913 printf %s "(cached) " >&6
6914 else $as_nop
6915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6916 /* end confdefs.h. */
6917 int i;
6918 int
6919 main (void)
6920 {
6921
6922 ;
6923 return 0;
6924 }
6925 _ACEOF
6926 if ac_fn_c_try_link "$LINENO"
6927 then :
6928 eval $cacheid=yes
6929 else $as_nop
6930 eval $cacheid=no
6931 fi
6932 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6933 conftest$ac_exeext conftest.$ac_ext
6934 fi
6935
6936
6937 CFLAGS="$xorg_testset_save_CFLAGS"
6938
6939 eval supported=\$$cacheid
6940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6941 printf "%s\n" "$supported" >&6; }
6942 if test "$supported" = "yes" ; then
6943 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6944 found="yes"
6945 fi
6946 fi
6947
6948
6949
6950
6951
6952
6953
6954
6955
6956
6957
6958
6959
6960
6961
6962 xorg_testset_save_CFLAGS="$CFLAGS"
6963
6964 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6965 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6967 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6968 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6969 then :
6970 printf %s "(cached) " >&6
6971 else $as_nop
6972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6973 /* end confdefs.h. */
6974 int i;
6975 _ACEOF
6976 if ac_fn_c_try_compile "$LINENO"
6977 then :
6978 xorg_cv_cc_flag_unknown_warning_option=yes
6979 else $as_nop
6980 xorg_cv_cc_flag_unknown_warning_option=no
6981 fi
6982 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6983 fi
6984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6985 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6986 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6987 CFLAGS="$xorg_testset_save_CFLAGS"
6988 fi
6989
6990 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6991 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6992 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6993 fi
6994 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6996 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6997 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6998 then :
6999 printf %s "(cached) " >&6
7000 else $as_nop
7001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7002 /* end confdefs.h. */
7003 int i;
7004 _ACEOF
7005 if ac_fn_c_try_compile "$LINENO"
7006 then :
7007 xorg_cv_cc_flag_unused_command_line_argument=yes
7008 else $as_nop
7009 xorg_cv_cc_flag_unused_command_line_argument=no
7010 fi
7011 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7012 fi
7013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7014 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7015 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7016 CFLAGS="$xorg_testset_save_CFLAGS"
7017 fi
7018
7019 found="no"
7020
7021 if test $found = "no" ; then
7022 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7023 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7024 fi
7025
7026 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7027 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7028 fi
7029
7030 CFLAGS="$CFLAGS -Wredundant-decls"
7031
7032 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
7033 printf %s "checking if $CC supports -Wredundant-decls... " >&6; }
7034 cacheid=xorg_cv_cc_flag__Wredundant_decls
7035 if eval test \${$cacheid+y}
7036 then :
7037 printf %s "(cached) " >&6
7038 else $as_nop
7039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7040 /* end confdefs.h. */
7041 int i;
7042 int
7043 main (void)
7044 {
7045
7046 ;
7047 return 0;
7048 }
7049 _ACEOF
7050 if ac_fn_c_try_link "$LINENO"
7051 then :
7052 eval $cacheid=yes
7053 else $as_nop
7054 eval $cacheid=no
7055 fi
7056 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7057 conftest$ac_exeext conftest.$ac_ext
7058 fi
7059
7060
7061 CFLAGS="$xorg_testset_save_CFLAGS"
7062
7063 eval supported=\$$cacheid
7064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7065 printf "%s\n" "$supported" >&6; }
7066 if test "$supported" = "yes" ; then
7067 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
7068 found="yes"
7069 fi
7070 fi
7071
7072
7073
7074
7075
7076
7077
7078
7079
7080
7081
7082
7083
7084
7085
7086 xorg_testset_save_CFLAGS="$CFLAGS"
7087
7088 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7089 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7091 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7092 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7093 then :
7094 printf %s "(cached) " >&6
7095 else $as_nop
7096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7097 /* end confdefs.h. */
7098 int i;
7099 _ACEOF
7100 if ac_fn_c_try_compile "$LINENO"
7101 then :
7102 xorg_cv_cc_flag_unknown_warning_option=yes
7103 else $as_nop
7104 xorg_cv_cc_flag_unknown_warning_option=no
7105 fi
7106 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7107 fi
7108 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7109 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7110 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7111 CFLAGS="$xorg_testset_save_CFLAGS"
7112 fi
7113
7114 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7115 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7116 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7117 fi
7118 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7120 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7121 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7122 then :
7123 printf %s "(cached) " >&6
7124 else $as_nop
7125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7126 /* end confdefs.h. */
7127 int i;
7128 _ACEOF
7129 if ac_fn_c_try_compile "$LINENO"
7130 then :
7131 xorg_cv_cc_flag_unused_command_line_argument=yes
7132 else $as_nop
7133 xorg_cv_cc_flag_unused_command_line_argument=no
7134 fi
7135 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7136 fi
7137 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7138 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7139 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7140 CFLAGS="$xorg_testset_save_CFLAGS"
7141 fi
7142
7143 found="no"
7144
7145 if test $found = "no" ; then
7146 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7147 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7148 fi
7149
7150 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7151 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7152 fi
7153
7154 CFLAGS="$CFLAGS -Wlogical-op"
7155
7156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
7157 printf %s "checking if $CC supports -Wlogical-op... " >&6; }
7158 cacheid=xorg_cv_cc_flag__Wlogical_op
7159 if eval test \${$cacheid+y}
7160 then :
7161 printf %s "(cached) " >&6
7162 else $as_nop
7163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7164 /* end confdefs.h. */
7165 int i;
7166 int
7167 main (void)
7168 {
7169
7170 ;
7171 return 0;
7172 }
7173 _ACEOF
7174 if ac_fn_c_try_link "$LINENO"
7175 then :
7176 eval $cacheid=yes
7177 else $as_nop
7178 eval $cacheid=no
7179 fi
7180 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7181 conftest$ac_exeext conftest.$ac_ext
7182 fi
7183
7184
7185 CFLAGS="$xorg_testset_save_CFLAGS"
7186
7187 eval supported=\$$cacheid
7188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7189 printf "%s\n" "$supported" >&6; }
7190 if test "$supported" = "yes" ; then
7191 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
7192 found="yes"
7193 fi
7194 fi
7195
7196
7197
7198 # These are currently disabled because they are noisy. They will be enabled
7199 # in the future once the codebase is sufficiently modernized to silence
7200 # them. For now, I don't want them to drown out the other warnings.
7201 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
7202 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
7203 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
7204
7205 # Turn some warnings into errors, so we don't accidentally get successful builds
7206 # when there are problems that should be fixed.
7207
7208 if test "x$SELECTIVE_WERROR" = "xyes" ; then
7209
7210
7211
7212
7213
7214
7215
7216
7217
7218
7219
7220
7221
7222 xorg_testset_save_CFLAGS="$CFLAGS"
7223
7224 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7225 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7226 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7227 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7228 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7229 then :
7230 printf %s "(cached) " >&6
7231 else $as_nop
7232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7233 /* end confdefs.h. */
7234 int i;
7235 _ACEOF
7236 if ac_fn_c_try_compile "$LINENO"
7237 then :
7238 xorg_cv_cc_flag_unknown_warning_option=yes
7239 else $as_nop
7240 xorg_cv_cc_flag_unknown_warning_option=no
7241 fi
7242 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7243 fi
7244 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7245 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7246 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7247 CFLAGS="$xorg_testset_save_CFLAGS"
7248 fi
7249
7250 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7251 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7252 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7253 fi
7254 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7256 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7257 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7258 then :
7259 printf %s "(cached) " >&6
7260 else $as_nop
7261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7262 /* end confdefs.h. */
7263 int i;
7264 _ACEOF
7265 if ac_fn_c_try_compile "$LINENO"
7266 then :
7267 xorg_cv_cc_flag_unused_command_line_argument=yes
7268 else $as_nop
7269 xorg_cv_cc_flag_unused_command_line_argument=no
7270 fi
7271 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7272 fi
7273 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7274 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7275 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7276 CFLAGS="$xorg_testset_save_CFLAGS"
7277 fi
7278
7279 found="no"
7280
7281 if test $found = "no" ; then
7282 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7283 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7284 fi
7285
7286 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7287 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7288 fi
7289
7290 CFLAGS="$CFLAGS -Werror=implicit"
7291
7292 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
7293 printf %s "checking if $CC supports -Werror=implicit... " >&6; }
7294 cacheid=xorg_cv_cc_flag__Werror_implicit
7295 if eval test \${$cacheid+y}
7296 then :
7297 printf %s "(cached) " >&6
7298 else $as_nop
7299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7300 /* end confdefs.h. */
7301 int i;
7302 int
7303 main (void)
7304 {
7305
7306 ;
7307 return 0;
7308 }
7309 _ACEOF
7310 if ac_fn_c_try_link "$LINENO"
7311 then :
7312 eval $cacheid=yes
7313 else $as_nop
7314 eval $cacheid=no
7315 fi
7316 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7317 conftest$ac_exeext conftest.$ac_ext
7318 fi
7319
7320
7321 CFLAGS="$xorg_testset_save_CFLAGS"
7322
7323 eval supported=\$$cacheid
7324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7325 printf "%s\n" "$supported" >&6; }
7326 if test "$supported" = "yes" ; then
7327 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
7328 found="yes"
7329 fi
7330 fi
7331
7332 if test $found = "no" ; then
7333 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7334 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7335 fi
7336
7337 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7338 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7339 fi
7340
7341 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7342
7343 { 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
7344 printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
7345 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
7346 if eval test \${$cacheid+y}
7347 then :
7348 printf %s "(cached) " >&6
7349 else $as_nop
7350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7351 /* end confdefs.h. */
7352 int i;
7353 int
7354 main (void)
7355 {
7356
7357 ;
7358 return 0;
7359 }
7360 _ACEOF
7361 if ac_fn_c_try_link "$LINENO"
7362 then :
7363 eval $cacheid=yes
7364 else $as_nop
7365 eval $cacheid=no
7366 fi
7367 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7368 conftest$ac_exeext conftest.$ac_ext
7369 fi
7370
7371
7372 CFLAGS="$xorg_testset_save_CFLAGS"
7373
7374 eval supported=\$$cacheid
7375 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7376 printf "%s\n" "$supported" >&6; }
7377 if test "$supported" = "yes" ; then
7378 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7379 found="yes"
7380 fi
7381 fi
7382
7383
7384
7385
7386
7387
7388
7389
7390
7391
7392
7393
7394
7395
7396
7397 xorg_testset_save_CFLAGS="$CFLAGS"
7398
7399 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7400 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7401 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7402 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7403 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7404 then :
7405 printf %s "(cached) " >&6
7406 else $as_nop
7407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7408 /* end confdefs.h. */
7409 int i;
7410 _ACEOF
7411 if ac_fn_c_try_compile "$LINENO"
7412 then :
7413 xorg_cv_cc_flag_unknown_warning_option=yes
7414 else $as_nop
7415 xorg_cv_cc_flag_unknown_warning_option=no
7416 fi
7417 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7418 fi
7419 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7420 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7421 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7422 CFLAGS="$xorg_testset_save_CFLAGS"
7423 fi
7424
7425 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7426 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7427 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7428 fi
7429 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7430 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7431 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7432 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7433 then :
7434 printf %s "(cached) " >&6
7435 else $as_nop
7436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7437 /* end confdefs.h. */
7438 int i;
7439 _ACEOF
7440 if ac_fn_c_try_compile "$LINENO"
7441 then :
7442 xorg_cv_cc_flag_unused_command_line_argument=yes
7443 else $as_nop
7444 xorg_cv_cc_flag_unused_command_line_argument=no
7445 fi
7446 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7447 fi
7448 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7449 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7450 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7451 CFLAGS="$xorg_testset_save_CFLAGS"
7452 fi
7453
7454 found="no"
7455
7456 if test $found = "no" ; then
7457 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7458 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7459 fi
7460
7461 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7462 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7463 fi
7464
7465 CFLAGS="$CFLAGS -Werror=nonnull"
7466
7467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
7468 printf %s "checking if $CC supports -Werror=nonnull... " >&6; }
7469 cacheid=xorg_cv_cc_flag__Werror_nonnull
7470 if eval test \${$cacheid+y}
7471 then :
7472 printf %s "(cached) " >&6
7473 else $as_nop
7474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7475 /* end confdefs.h. */
7476 int i;
7477 int
7478 main (void)
7479 {
7480
7481 ;
7482 return 0;
7483 }
7484 _ACEOF
7485 if ac_fn_c_try_link "$LINENO"
7486 then :
7487 eval $cacheid=yes
7488 else $as_nop
7489 eval $cacheid=no
7490 fi
7491 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7492 conftest$ac_exeext conftest.$ac_ext
7493 fi
7494
7495
7496 CFLAGS="$xorg_testset_save_CFLAGS"
7497
7498 eval supported=\$$cacheid
7499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7500 printf "%s\n" "$supported" >&6; }
7501 if test "$supported" = "yes" ; then
7502 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7503 found="yes"
7504 fi
7505 fi
7506
7507
7508
7509
7510
7511
7512
7513
7514
7515
7516
7517
7518
7519
7520
7521 xorg_testset_save_CFLAGS="$CFLAGS"
7522
7523 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7524 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7526 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7527 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7528 then :
7529 printf %s "(cached) " >&6
7530 else $as_nop
7531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7532 /* end confdefs.h. */
7533 int i;
7534 _ACEOF
7535 if ac_fn_c_try_compile "$LINENO"
7536 then :
7537 xorg_cv_cc_flag_unknown_warning_option=yes
7538 else $as_nop
7539 xorg_cv_cc_flag_unknown_warning_option=no
7540 fi
7541 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7542 fi
7543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7544 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7545 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7546 CFLAGS="$xorg_testset_save_CFLAGS"
7547 fi
7548
7549 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7550 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7551 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7552 fi
7553 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7555 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7556 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7557 then :
7558 printf %s "(cached) " >&6
7559 else $as_nop
7560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7561 /* end confdefs.h. */
7562 int i;
7563 _ACEOF
7564 if ac_fn_c_try_compile "$LINENO"
7565 then :
7566 xorg_cv_cc_flag_unused_command_line_argument=yes
7567 else $as_nop
7568 xorg_cv_cc_flag_unused_command_line_argument=no
7569 fi
7570 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7571 fi
7572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7573 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7574 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7575 CFLAGS="$xorg_testset_save_CFLAGS"
7576 fi
7577
7578 found="no"
7579
7580 if test $found = "no" ; then
7581 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7582 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7583 fi
7584
7585 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7586 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7587 fi
7588
7589 CFLAGS="$CFLAGS -Werror=init-self"
7590
7591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7592 printf %s "checking if $CC supports -Werror=init-self... " >&6; }
7593 cacheid=xorg_cv_cc_flag__Werror_init_self
7594 if eval test \${$cacheid+y}
7595 then :
7596 printf %s "(cached) " >&6
7597 else $as_nop
7598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7599 /* end confdefs.h. */
7600 int i;
7601 int
7602 main (void)
7603 {
7604
7605 ;
7606 return 0;
7607 }
7608 _ACEOF
7609 if ac_fn_c_try_link "$LINENO"
7610 then :
7611 eval $cacheid=yes
7612 else $as_nop
7613 eval $cacheid=no
7614 fi
7615 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7616 conftest$ac_exeext conftest.$ac_ext
7617 fi
7618
7619
7620 CFLAGS="$xorg_testset_save_CFLAGS"
7621
7622 eval supported=\$$cacheid
7623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7624 printf "%s\n" "$supported" >&6; }
7625 if test "$supported" = "yes" ; then
7626 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7627 found="yes"
7628 fi
7629 fi
7630
7631
7632
7633
7634
7635
7636
7637
7638
7639
7640
7641
7642
7643
7644
7645 xorg_testset_save_CFLAGS="$CFLAGS"
7646
7647 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7648 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7650 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7651 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7652 then :
7653 printf %s "(cached) " >&6
7654 else $as_nop
7655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7656 /* end confdefs.h. */
7657 int i;
7658 _ACEOF
7659 if ac_fn_c_try_compile "$LINENO"
7660 then :
7661 xorg_cv_cc_flag_unknown_warning_option=yes
7662 else $as_nop
7663 xorg_cv_cc_flag_unknown_warning_option=no
7664 fi
7665 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7666 fi
7667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7668 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7669 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7670 CFLAGS="$xorg_testset_save_CFLAGS"
7671 fi
7672
7673 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7674 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7675 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7676 fi
7677 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7679 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7680 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7681 then :
7682 printf %s "(cached) " >&6
7683 else $as_nop
7684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7685 /* end confdefs.h. */
7686 int i;
7687 _ACEOF
7688 if ac_fn_c_try_compile "$LINENO"
7689 then :
7690 xorg_cv_cc_flag_unused_command_line_argument=yes
7691 else $as_nop
7692 xorg_cv_cc_flag_unused_command_line_argument=no
7693 fi
7694 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7695 fi
7696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7697 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7698 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7699 CFLAGS="$xorg_testset_save_CFLAGS"
7700 fi
7701
7702 found="no"
7703
7704 if test $found = "no" ; then
7705 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7706 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7707 fi
7708
7709 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7710 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7711 fi
7712
7713 CFLAGS="$CFLAGS -Werror=main"
7714
7715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7716 printf %s "checking if $CC supports -Werror=main... " >&6; }
7717 cacheid=xorg_cv_cc_flag__Werror_main
7718 if eval test \${$cacheid+y}
7719 then :
7720 printf %s "(cached) " >&6
7721 else $as_nop
7722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7723 /* end confdefs.h. */
7724 int i;
7725 int
7726 main (void)
7727 {
7728
7729 ;
7730 return 0;
7731 }
7732 _ACEOF
7733 if ac_fn_c_try_link "$LINENO"
7734 then :
7735 eval $cacheid=yes
7736 else $as_nop
7737 eval $cacheid=no
7738 fi
7739 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7740 conftest$ac_exeext conftest.$ac_ext
7741 fi
7742
7743
7744 CFLAGS="$xorg_testset_save_CFLAGS"
7745
7746 eval supported=\$$cacheid
7747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7748 printf "%s\n" "$supported" >&6; }
7749 if test "$supported" = "yes" ; then
7750 BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7751 found="yes"
7752 fi
7753 fi
7754
7755
7756
7757
7758
7759
7760
7761
7762
7763
7764
7765
7766
7767
7768
7769 xorg_testset_save_CFLAGS="$CFLAGS"
7770
7771 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7772 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7774 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7775 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7776 then :
7777 printf %s "(cached) " >&6
7778 else $as_nop
7779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7780 /* end confdefs.h. */
7781 int i;
7782 _ACEOF
7783 if ac_fn_c_try_compile "$LINENO"
7784 then :
7785 xorg_cv_cc_flag_unknown_warning_option=yes
7786 else $as_nop
7787 xorg_cv_cc_flag_unknown_warning_option=no
7788 fi
7789 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7790 fi
7791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7792 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7793 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7794 CFLAGS="$xorg_testset_save_CFLAGS"
7795 fi
7796
7797 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7798 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7799 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7800 fi
7801 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7803 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7804 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7805 then :
7806 printf %s "(cached) " >&6
7807 else $as_nop
7808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7809 /* end confdefs.h. */
7810 int i;
7811 _ACEOF
7812 if ac_fn_c_try_compile "$LINENO"
7813 then :
7814 xorg_cv_cc_flag_unused_command_line_argument=yes
7815 else $as_nop
7816 xorg_cv_cc_flag_unused_command_line_argument=no
7817 fi
7818 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7819 fi
7820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7821 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7822 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7823 CFLAGS="$xorg_testset_save_CFLAGS"
7824 fi
7825
7826 found="no"
7827
7828 if test $found = "no" ; then
7829 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7830 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7831 fi
7832
7833 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7834 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7835 fi
7836
7837 CFLAGS="$CFLAGS -Werror=missing-braces"
7838
7839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
7840 printf %s "checking if $CC supports -Werror=missing-braces... " >&6; }
7841 cacheid=xorg_cv_cc_flag__Werror_missing_braces
7842 if eval test \${$cacheid+y}
7843 then :
7844 printf %s "(cached) " >&6
7845 else $as_nop
7846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7847 /* end confdefs.h. */
7848 int i;
7849 int
7850 main (void)
7851 {
7852
7853 ;
7854 return 0;
7855 }
7856 _ACEOF
7857 if ac_fn_c_try_link "$LINENO"
7858 then :
7859 eval $cacheid=yes
7860 else $as_nop
7861 eval $cacheid=no
7862 fi
7863 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7864 conftest$ac_exeext conftest.$ac_ext
7865 fi
7866
7867
7868 CFLAGS="$xorg_testset_save_CFLAGS"
7869
7870 eval supported=\$$cacheid
7871 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7872 printf "%s\n" "$supported" >&6; }
7873 if test "$supported" = "yes" ; then
7874 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7875 found="yes"
7876 fi
7877 fi
7878
7879
7880
7881
7882
7883
7884
7885
7886
7887
7888
7889
7890
7891
7892
7893 xorg_testset_save_CFLAGS="$CFLAGS"
7894
7895 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7896 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7898 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7899 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7900 then :
7901 printf %s "(cached) " >&6
7902 else $as_nop
7903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7904 /* end confdefs.h. */
7905 int i;
7906 _ACEOF
7907 if ac_fn_c_try_compile "$LINENO"
7908 then :
7909 xorg_cv_cc_flag_unknown_warning_option=yes
7910 else $as_nop
7911 xorg_cv_cc_flag_unknown_warning_option=no
7912 fi
7913 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7914 fi
7915 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7916 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7917 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7918 CFLAGS="$xorg_testset_save_CFLAGS"
7919 fi
7920
7921 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7922 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7923 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7924 fi
7925 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7927 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7928 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7929 then :
7930 printf %s "(cached) " >&6
7931 else $as_nop
7932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7933 /* end confdefs.h. */
7934 int i;
7935 _ACEOF
7936 if ac_fn_c_try_compile "$LINENO"
7937 then :
7938 xorg_cv_cc_flag_unused_command_line_argument=yes
7939 else $as_nop
7940 xorg_cv_cc_flag_unused_command_line_argument=no
7941 fi
7942 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7943 fi
7944 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7945 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7946 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7947 CFLAGS="$xorg_testset_save_CFLAGS"
7948 fi
7949
7950 found="no"
7951
7952 if test $found = "no" ; then
7953 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7954 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7955 fi
7956
7957 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7958 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7959 fi
7960
7961 CFLAGS="$CFLAGS -Werror=sequence-point"
7962
7963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
7964 printf %s "checking if $CC supports -Werror=sequence-point... " >&6; }
7965 cacheid=xorg_cv_cc_flag__Werror_sequence_point
7966 if eval test \${$cacheid+y}
7967 then :
7968 printf %s "(cached) " >&6
7969 else $as_nop
7970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7971 /* end confdefs.h. */
7972 int i;
7973 int
7974 main (void)
7975 {
7976
7977 ;
7978 return 0;
7979 }
7980 _ACEOF
7981 if ac_fn_c_try_link "$LINENO"
7982 then :
7983 eval $cacheid=yes
7984 else $as_nop
7985 eval $cacheid=no
7986 fi
7987 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7988 conftest$ac_exeext conftest.$ac_ext
7989 fi
7990
7991
7992 CFLAGS="$xorg_testset_save_CFLAGS"
7993
7994 eval supported=\$$cacheid
7995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7996 printf "%s\n" "$supported" >&6; }
7997 if test "$supported" = "yes" ; then
7998 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
7999 found="yes"
8000 fi
8001 fi
8002
8003
8004
8005
8006
8007
8008
8009
8010
8011
8012
8013
8014
8015
8016
8017 xorg_testset_save_CFLAGS="$CFLAGS"
8018
8019 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8020 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8022 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8023 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8024 then :
8025 printf %s "(cached) " >&6
8026 else $as_nop
8027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8028 /* end confdefs.h. */
8029 int i;
8030 _ACEOF
8031 if ac_fn_c_try_compile "$LINENO"
8032 then :
8033 xorg_cv_cc_flag_unknown_warning_option=yes
8034 else $as_nop
8035 xorg_cv_cc_flag_unknown_warning_option=no
8036 fi
8037 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8038 fi
8039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8040 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8041 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8042 CFLAGS="$xorg_testset_save_CFLAGS"
8043 fi
8044
8045 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8046 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8047 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8048 fi
8049 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8051 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8052 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8053 then :
8054 printf %s "(cached) " >&6
8055 else $as_nop
8056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8057 /* end confdefs.h. */
8058 int i;
8059 _ACEOF
8060 if ac_fn_c_try_compile "$LINENO"
8061 then :
8062 xorg_cv_cc_flag_unused_command_line_argument=yes
8063 else $as_nop
8064 xorg_cv_cc_flag_unused_command_line_argument=no
8065 fi
8066 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8067 fi
8068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8069 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8070 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8071 CFLAGS="$xorg_testset_save_CFLAGS"
8072 fi
8073
8074 found="no"
8075
8076 if test $found = "no" ; then
8077 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8078 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8079 fi
8080
8081 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8082 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8083 fi
8084
8085 CFLAGS="$CFLAGS -Werror=return-type"
8086
8087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
8088 printf %s "checking if $CC supports -Werror=return-type... " >&6; }
8089 cacheid=xorg_cv_cc_flag__Werror_return_type
8090 if eval test \${$cacheid+y}
8091 then :
8092 printf %s "(cached) " >&6
8093 else $as_nop
8094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8095 /* end confdefs.h. */
8096 int i;
8097 int
8098 main (void)
8099 {
8100
8101 ;
8102 return 0;
8103 }
8104 _ACEOF
8105 if ac_fn_c_try_link "$LINENO"
8106 then :
8107 eval $cacheid=yes
8108 else $as_nop
8109 eval $cacheid=no
8110 fi
8111 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8112 conftest$ac_exeext conftest.$ac_ext
8113 fi
8114
8115
8116 CFLAGS="$xorg_testset_save_CFLAGS"
8117
8118 eval supported=\$$cacheid
8119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8120 printf "%s\n" "$supported" >&6; }
8121 if test "$supported" = "yes" ; then
8122 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
8123 found="yes"
8124 fi
8125 fi
8126
8127 if test $found = "no" ; then
8128 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8129 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8130 fi
8131
8132 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8133 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8134 fi
8135
8136 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8137
8138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
8139 printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
8140 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
8141 if eval test \${$cacheid+y}
8142 then :
8143 printf %s "(cached) " >&6
8144 else $as_nop
8145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8146 /* end confdefs.h. */
8147 int i;
8148 int
8149 main (void)
8150 {
8151
8152 ;
8153 return 0;
8154 }
8155 _ACEOF
8156 if ac_fn_c_try_link "$LINENO"
8157 then :
8158 eval $cacheid=yes
8159 else $as_nop
8160 eval $cacheid=no
8161 fi
8162 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8163 conftest$ac_exeext conftest.$ac_ext
8164 fi
8165
8166
8167 CFLAGS="$xorg_testset_save_CFLAGS"
8168
8169 eval supported=\$$cacheid
8170 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8171 printf "%s\n" "$supported" >&6; }
8172 if test "$supported" = "yes" ; then
8173 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8174 found="yes"
8175 fi
8176 fi
8177
8178
8179
8180
8181
8182
8183
8184
8185
8186
8187
8188
8189
8190
8191
8192 xorg_testset_save_CFLAGS="$CFLAGS"
8193
8194 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8195 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8197 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8198 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8199 then :
8200 printf %s "(cached) " >&6
8201 else $as_nop
8202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8203 /* end confdefs.h. */
8204 int i;
8205 _ACEOF
8206 if ac_fn_c_try_compile "$LINENO"
8207 then :
8208 xorg_cv_cc_flag_unknown_warning_option=yes
8209 else $as_nop
8210 xorg_cv_cc_flag_unknown_warning_option=no
8211 fi
8212 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8213 fi
8214 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8215 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8216 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8217 CFLAGS="$xorg_testset_save_CFLAGS"
8218 fi
8219
8220 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8221 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8222 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8223 fi
8224 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8226 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8227 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8228 then :
8229 printf %s "(cached) " >&6
8230 else $as_nop
8231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8232 /* end confdefs.h. */
8233 int i;
8234 _ACEOF
8235 if ac_fn_c_try_compile "$LINENO"
8236 then :
8237 xorg_cv_cc_flag_unused_command_line_argument=yes
8238 else $as_nop
8239 xorg_cv_cc_flag_unused_command_line_argument=no
8240 fi
8241 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8242 fi
8243 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8244 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8245 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8246 CFLAGS="$xorg_testset_save_CFLAGS"
8247 fi
8248
8249 found="no"
8250
8251 if test $found = "no" ; then
8252 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8253 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8254 fi
8255
8256 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8257 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8258 fi
8259
8260 CFLAGS="$CFLAGS -Werror=trigraphs"
8261
8262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
8263 printf %s "checking if $CC supports -Werror=trigraphs... " >&6; }
8264 cacheid=xorg_cv_cc_flag__Werror_trigraphs
8265 if eval test \${$cacheid+y}
8266 then :
8267 printf %s "(cached) " >&6
8268 else $as_nop
8269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8270 /* end confdefs.h. */
8271 int i;
8272 int
8273 main (void)
8274 {
8275
8276 ;
8277 return 0;
8278 }
8279 _ACEOF
8280 if ac_fn_c_try_link "$LINENO"
8281 then :
8282 eval $cacheid=yes
8283 else $as_nop
8284 eval $cacheid=no
8285 fi
8286 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8287 conftest$ac_exeext conftest.$ac_ext
8288 fi
8289
8290
8291 CFLAGS="$xorg_testset_save_CFLAGS"
8292
8293 eval supported=\$$cacheid
8294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8295 printf "%s\n" "$supported" >&6; }
8296 if test "$supported" = "yes" ; then
8297 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
8298 found="yes"
8299 fi
8300 fi
8301
8302
8303
8304
8305
8306
8307
8308
8309
8310
8311
8312
8313
8314
8315
8316 xorg_testset_save_CFLAGS="$CFLAGS"
8317
8318 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8319 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8321 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8322 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8323 then :
8324 printf %s "(cached) " >&6
8325 else $as_nop
8326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8327 /* end confdefs.h. */
8328 int i;
8329 _ACEOF
8330 if ac_fn_c_try_compile "$LINENO"
8331 then :
8332 xorg_cv_cc_flag_unknown_warning_option=yes
8333 else $as_nop
8334 xorg_cv_cc_flag_unknown_warning_option=no
8335 fi
8336 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8337 fi
8338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8339 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8340 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8341 CFLAGS="$xorg_testset_save_CFLAGS"
8342 fi
8343
8344 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8345 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8346 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8347 fi
8348 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8349 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8350 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8351 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8352 then :
8353 printf %s "(cached) " >&6
8354 else $as_nop
8355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8356 /* end confdefs.h. */
8357 int i;
8358 _ACEOF
8359 if ac_fn_c_try_compile "$LINENO"
8360 then :
8361 xorg_cv_cc_flag_unused_command_line_argument=yes
8362 else $as_nop
8363 xorg_cv_cc_flag_unused_command_line_argument=no
8364 fi
8365 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8366 fi
8367 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8368 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8369 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8370 CFLAGS="$xorg_testset_save_CFLAGS"
8371 fi
8372
8373 found="no"
8374
8375 if test $found = "no" ; then
8376 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8377 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8378 fi
8379
8380 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8381 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8382 fi
8383
8384 CFLAGS="$CFLAGS -Werror=array-bounds"
8385
8386 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
8387 printf %s "checking if $CC supports -Werror=array-bounds... " >&6; }
8388 cacheid=xorg_cv_cc_flag__Werror_array_bounds
8389 if eval test \${$cacheid+y}
8390 then :
8391 printf %s "(cached) " >&6
8392 else $as_nop
8393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8394 /* end confdefs.h. */
8395 int i;
8396 int
8397 main (void)
8398 {
8399
8400 ;
8401 return 0;
8402 }
8403 _ACEOF
8404 if ac_fn_c_try_link "$LINENO"
8405 then :
8406 eval $cacheid=yes
8407 else $as_nop
8408 eval $cacheid=no
8409 fi
8410 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8411 conftest$ac_exeext conftest.$ac_ext
8412 fi
8413
8414
8415 CFLAGS="$xorg_testset_save_CFLAGS"
8416
8417 eval supported=\$$cacheid
8418 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8419 printf "%s\n" "$supported" >&6; }
8420 if test "$supported" = "yes" ; then
8421 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
8422 found="yes"
8423 fi
8424 fi
8425
8426
8427
8428
8429
8430
8431
8432
8433
8434
8435
8436
8437
8438
8439
8440 xorg_testset_save_CFLAGS="$CFLAGS"
8441
8442 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8443 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8444 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8445 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8446 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8447 then :
8448 printf %s "(cached) " >&6
8449 else $as_nop
8450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8451 /* end confdefs.h. */
8452 int i;
8453 _ACEOF
8454 if ac_fn_c_try_compile "$LINENO"
8455 then :
8456 xorg_cv_cc_flag_unknown_warning_option=yes
8457 else $as_nop
8458 xorg_cv_cc_flag_unknown_warning_option=no
8459 fi
8460 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8461 fi
8462 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8463 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8464 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8465 CFLAGS="$xorg_testset_save_CFLAGS"
8466 fi
8467
8468 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8469 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8470 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8471 fi
8472 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8474 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8475 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8476 then :
8477 printf %s "(cached) " >&6
8478 else $as_nop
8479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8480 /* end confdefs.h. */
8481 int i;
8482 _ACEOF
8483 if ac_fn_c_try_compile "$LINENO"
8484 then :
8485 xorg_cv_cc_flag_unused_command_line_argument=yes
8486 else $as_nop
8487 xorg_cv_cc_flag_unused_command_line_argument=no
8488 fi
8489 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8490 fi
8491 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8492 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8493 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8494 CFLAGS="$xorg_testset_save_CFLAGS"
8495 fi
8496
8497 found="no"
8498
8499 if test $found = "no" ; then
8500 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8501 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8502 fi
8503
8504 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8505 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8506 fi
8507
8508 CFLAGS="$CFLAGS -Werror=write-strings"
8509
8510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
8511 printf %s "checking if $CC supports -Werror=write-strings... " >&6; }
8512 cacheid=xorg_cv_cc_flag__Werror_write_strings
8513 if eval test \${$cacheid+y}
8514 then :
8515 printf %s "(cached) " >&6
8516 else $as_nop
8517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8518 /* end confdefs.h. */
8519 int i;
8520 int
8521 main (void)
8522 {
8523
8524 ;
8525 return 0;
8526 }
8527 _ACEOF
8528 if ac_fn_c_try_link "$LINENO"
8529 then :
8530 eval $cacheid=yes
8531 else $as_nop
8532 eval $cacheid=no
8533 fi
8534 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8535 conftest$ac_exeext conftest.$ac_ext
8536 fi
8537
8538
8539 CFLAGS="$xorg_testset_save_CFLAGS"
8540
8541 eval supported=\$$cacheid
8542 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8543 printf "%s\n" "$supported" >&6; }
8544 if test "$supported" = "yes" ; then
8545 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
8546 found="yes"
8547 fi
8548 fi
8549
8550
8551
8552
8553
8554
8555
8556
8557
8558
8559
8560
8561
8562
8563
8564 xorg_testset_save_CFLAGS="$CFLAGS"
8565
8566 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8567 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8569 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8570 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8571 then :
8572 printf %s "(cached) " >&6
8573 else $as_nop
8574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8575 /* end confdefs.h. */
8576 int i;
8577 _ACEOF
8578 if ac_fn_c_try_compile "$LINENO"
8579 then :
8580 xorg_cv_cc_flag_unknown_warning_option=yes
8581 else $as_nop
8582 xorg_cv_cc_flag_unknown_warning_option=no
8583 fi
8584 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8585 fi
8586 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8587 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8588 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8589 CFLAGS="$xorg_testset_save_CFLAGS"
8590 fi
8591
8592 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8593 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8594 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8595 fi
8596 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8598 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8599 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8600 then :
8601 printf %s "(cached) " >&6
8602 else $as_nop
8603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8604 /* end confdefs.h. */
8605 int i;
8606 _ACEOF
8607 if ac_fn_c_try_compile "$LINENO"
8608 then :
8609 xorg_cv_cc_flag_unused_command_line_argument=yes
8610 else $as_nop
8611 xorg_cv_cc_flag_unused_command_line_argument=no
8612 fi
8613 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8614 fi
8615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8616 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8617 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8618 CFLAGS="$xorg_testset_save_CFLAGS"
8619 fi
8620
8621 found="no"
8622
8623 if test $found = "no" ; then
8624 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8625 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8626 fi
8627
8628 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8629 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8630 fi
8631
8632 CFLAGS="$CFLAGS -Werror=address"
8633
8634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
8635 printf %s "checking if $CC supports -Werror=address... " >&6; }
8636 cacheid=xorg_cv_cc_flag__Werror_address
8637 if eval test \${$cacheid+y}
8638 then :
8639 printf %s "(cached) " >&6
8640 else $as_nop
8641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8642 /* end confdefs.h. */
8643 int i;
8644 int
8645 main (void)
8646 {
8647
8648 ;
8649 return 0;
8650 }
8651 _ACEOF
8652 if ac_fn_c_try_link "$LINENO"
8653 then :
8654 eval $cacheid=yes
8655 else $as_nop
8656 eval $cacheid=no
8657 fi
8658 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8659 conftest$ac_exeext conftest.$ac_ext
8660 fi
8661
8662
8663 CFLAGS="$xorg_testset_save_CFLAGS"
8664
8665 eval supported=\$$cacheid
8666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8667 printf "%s\n" "$supported" >&6; }
8668 if test "$supported" = "yes" ; then
8669 BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8670 found="yes"
8671 fi
8672 fi
8673
8674
8675
8676
8677
8678
8679
8680
8681
8682
8683
8684
8685
8686
8687
8688 xorg_testset_save_CFLAGS="$CFLAGS"
8689
8690 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8691 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8693 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8694 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8695 then :
8696 printf %s "(cached) " >&6
8697 else $as_nop
8698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8699 /* end confdefs.h. */
8700 int i;
8701 _ACEOF
8702 if ac_fn_c_try_compile "$LINENO"
8703 then :
8704 xorg_cv_cc_flag_unknown_warning_option=yes
8705 else $as_nop
8706 xorg_cv_cc_flag_unknown_warning_option=no
8707 fi
8708 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8709 fi
8710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8711 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8712 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8713 CFLAGS="$xorg_testset_save_CFLAGS"
8714 fi
8715
8716 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8717 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8718 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8719 fi
8720 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8721 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8722 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8723 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8724 then :
8725 printf %s "(cached) " >&6
8726 else $as_nop
8727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8728 /* end confdefs.h. */
8729 int i;
8730 _ACEOF
8731 if ac_fn_c_try_compile "$LINENO"
8732 then :
8733 xorg_cv_cc_flag_unused_command_line_argument=yes
8734 else $as_nop
8735 xorg_cv_cc_flag_unused_command_line_argument=no
8736 fi
8737 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8738 fi
8739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8740 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8741 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8742 CFLAGS="$xorg_testset_save_CFLAGS"
8743 fi
8744
8745 found="no"
8746
8747 if test $found = "no" ; then
8748 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8749 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8750 fi
8751
8752 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8753 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8754 fi
8755
8756 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8757
8758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
8759 printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
8760 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
8761 if eval test \${$cacheid+y}
8762 then :
8763 printf %s "(cached) " >&6
8764 else $as_nop
8765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8766 /* end confdefs.h. */
8767 int i;
8768 int
8769 main (void)
8770 {
8771
8772 ;
8773 return 0;
8774 }
8775 _ACEOF
8776 if ac_fn_c_try_link "$LINENO"
8777 then :
8778 eval $cacheid=yes
8779 else $as_nop
8780 eval $cacheid=no
8781 fi
8782 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8783 conftest$ac_exeext conftest.$ac_ext
8784 fi
8785
8786
8787 CFLAGS="$xorg_testset_save_CFLAGS"
8788
8789 eval supported=\$$cacheid
8790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8791 printf "%s\n" "$supported" >&6; }
8792 if test "$supported" = "yes" ; then
8793 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8794 found="yes"
8795 fi
8796 fi
8797
8798 if test $found = "no" ; then
8799 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8800 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8801 fi
8802
8803 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8804 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8805 fi
8806
8807 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8808
8809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8810 printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8811 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
8812 if eval test \${$cacheid+y}
8813 then :
8814 printf %s "(cached) " >&6
8815 else $as_nop
8816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8817 /* end confdefs.h. */
8818 int i;
8819 int
8820 main (void)
8821 {
8822
8823 ;
8824 return 0;
8825 }
8826 _ACEOF
8827 if ac_fn_c_try_link "$LINENO"
8828 then :
8829 eval $cacheid=yes
8830 else $as_nop
8831 eval $cacheid=no
8832 fi
8833 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8834 conftest$ac_exeext conftest.$ac_ext
8835 fi
8836
8837
8838 CFLAGS="$xorg_testset_save_CFLAGS"
8839
8840 eval supported=\$$cacheid
8841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8842 printf "%s\n" "$supported" >&6; }
8843 if test "$supported" = "yes" ; then
8844 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8845 found="yes"
8846 fi
8847 fi
8848
8849
8850
8851
8852
8853
8854
8855
8856
8857
8858
8859
8860
8861
8862
8863 xorg_testset_save_CFLAGS="$CFLAGS"
8864
8865 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8866 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8868 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8869 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8870 then :
8871 printf %s "(cached) " >&6
8872 else $as_nop
8873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8874 /* end confdefs.h. */
8875 int i;
8876 _ACEOF
8877 if ac_fn_c_try_compile "$LINENO"
8878 then :
8879 xorg_cv_cc_flag_unknown_warning_option=yes
8880 else $as_nop
8881 xorg_cv_cc_flag_unknown_warning_option=no
8882 fi
8883 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8884 fi
8885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8886 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8887 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8888 CFLAGS="$xorg_testset_save_CFLAGS"
8889 fi
8890
8891 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8892 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8893 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8894 fi
8895 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8896 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8897 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8898 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8899 then :
8900 printf %s "(cached) " >&6
8901 else $as_nop
8902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8903 /* end confdefs.h. */
8904 int i;
8905 _ACEOF
8906 if ac_fn_c_try_compile "$LINENO"
8907 then :
8908 xorg_cv_cc_flag_unused_command_line_argument=yes
8909 else $as_nop
8910 xorg_cv_cc_flag_unused_command_line_argument=no
8911 fi
8912 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8913 fi
8914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8915 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8916 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8917 CFLAGS="$xorg_testset_save_CFLAGS"
8918 fi
8919
8920 found="no"
8921
8922 if test $found = "no" ; then
8923 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8924 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8925 fi
8926
8927 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8928 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8929 fi
8930
8931 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
8932
8933 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
8934 printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
8935 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
8936 if eval test \${$cacheid+y}
8937 then :
8938 printf %s "(cached) " >&6
8939 else $as_nop
8940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8941 /* end confdefs.h. */
8942 int i;
8943 int
8944 main (void)
8945 {
8946
8947 ;
8948 return 0;
8949 }
8950 _ACEOF
8951 if ac_fn_c_try_link "$LINENO"
8952 then :
8953 eval $cacheid=yes
8954 else $as_nop
8955 eval $cacheid=no
8956 fi
8957 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8958 conftest$ac_exeext conftest.$ac_ext
8959 fi
8960
8961
8962 CFLAGS="$xorg_testset_save_CFLAGS"
8963
8964 eval supported=\$$cacheid
8965 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8966 printf "%s\n" "$supported" >&6; }
8967 if test "$supported" = "yes" ; then
8968 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
8969 found="yes"
8970 fi
8971 fi
8972
8973 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
8974 else
8975 { 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
8976 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;}
8977
8978
8979
8980
8981
8982
8983
8984
8985
8986
8987
8988
8989
8990 xorg_testset_save_CFLAGS="$CFLAGS"
8991
8992 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8993 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8995 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8996 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8997 then :
8998 printf %s "(cached) " >&6
8999 else $as_nop
9000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9001 /* end confdefs.h. */
9002 int i;
9003 _ACEOF
9004 if ac_fn_c_try_compile "$LINENO"
9005 then :
9006 xorg_cv_cc_flag_unknown_warning_option=yes
9007 else $as_nop
9008 xorg_cv_cc_flag_unknown_warning_option=no
9009 fi
9010 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9011 fi
9012 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9013 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9014 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9015 CFLAGS="$xorg_testset_save_CFLAGS"
9016 fi
9017
9018 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9019 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9020 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9021 fi
9022 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9024 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9025 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9026 then :
9027 printf %s "(cached) " >&6
9028 else $as_nop
9029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9030 /* end confdefs.h. */
9031 int i;
9032 _ACEOF
9033 if ac_fn_c_try_compile "$LINENO"
9034 then :
9035 xorg_cv_cc_flag_unused_command_line_argument=yes
9036 else $as_nop
9037 xorg_cv_cc_flag_unused_command_line_argument=no
9038 fi
9039 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9040 fi
9041 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9042 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9043 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9044 CFLAGS="$xorg_testset_save_CFLAGS"
9045 fi
9046
9047 found="no"
9048
9049 if test $found = "no" ; then
9050 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9051 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9052 fi
9053
9054 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9055 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9056 fi
9057
9058 CFLAGS="$CFLAGS -Wimplicit"
9059
9060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
9061 printf %s "checking if $CC supports -Wimplicit... " >&6; }
9062 cacheid=xorg_cv_cc_flag__Wimplicit
9063 if eval test \${$cacheid+y}
9064 then :
9065 printf %s "(cached) " >&6
9066 else $as_nop
9067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9068 /* end confdefs.h. */
9069 int i;
9070 int
9071 main (void)
9072 {
9073
9074 ;
9075 return 0;
9076 }
9077 _ACEOF
9078 if ac_fn_c_try_link "$LINENO"
9079 then :
9080 eval $cacheid=yes
9081 else $as_nop
9082 eval $cacheid=no
9083 fi
9084 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9085 conftest$ac_exeext conftest.$ac_ext
9086 fi
9087
9088
9089 CFLAGS="$xorg_testset_save_CFLAGS"
9090
9091 eval supported=\$$cacheid
9092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9093 printf "%s\n" "$supported" >&6; }
9094 if test "$supported" = "yes" ; then
9095 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
9096 found="yes"
9097 fi
9098 fi
9099
9100
9101
9102
9103
9104
9105
9106
9107
9108
9109
9110
9111
9112
9113
9114 xorg_testset_save_CFLAGS="$CFLAGS"
9115
9116 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9117 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9118 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9119 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9120 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9121 then :
9122 printf %s "(cached) " >&6
9123 else $as_nop
9124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9125 /* end confdefs.h. */
9126 int i;
9127 _ACEOF
9128 if ac_fn_c_try_compile "$LINENO"
9129 then :
9130 xorg_cv_cc_flag_unknown_warning_option=yes
9131 else $as_nop
9132 xorg_cv_cc_flag_unknown_warning_option=no
9133 fi
9134 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9135 fi
9136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9137 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9138 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9139 CFLAGS="$xorg_testset_save_CFLAGS"
9140 fi
9141
9142 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9143 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9144 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9145 fi
9146 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9147 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9148 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9149 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9150 then :
9151 printf %s "(cached) " >&6
9152 else $as_nop
9153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9154 /* end confdefs.h. */
9155 int i;
9156 _ACEOF
9157 if ac_fn_c_try_compile "$LINENO"
9158 then :
9159 xorg_cv_cc_flag_unused_command_line_argument=yes
9160 else $as_nop
9161 xorg_cv_cc_flag_unused_command_line_argument=no
9162 fi
9163 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9164 fi
9165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9166 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9167 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9168 CFLAGS="$xorg_testset_save_CFLAGS"
9169 fi
9170
9171 found="no"
9172
9173 if test $found = "no" ; then
9174 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9175 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9176 fi
9177
9178 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9179 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9180 fi
9181
9182 CFLAGS="$CFLAGS -Wnonnull"
9183
9184 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
9185 printf %s "checking if $CC supports -Wnonnull... " >&6; }
9186 cacheid=xorg_cv_cc_flag__Wnonnull
9187 if eval test \${$cacheid+y}
9188 then :
9189 printf %s "(cached) " >&6
9190 else $as_nop
9191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9192 /* end confdefs.h. */
9193 int i;
9194 int
9195 main (void)
9196 {
9197
9198 ;
9199 return 0;
9200 }
9201 _ACEOF
9202 if ac_fn_c_try_link "$LINENO"
9203 then :
9204 eval $cacheid=yes
9205 else $as_nop
9206 eval $cacheid=no
9207 fi
9208 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9209 conftest$ac_exeext conftest.$ac_ext
9210 fi
9211
9212
9213 CFLAGS="$xorg_testset_save_CFLAGS"
9214
9215 eval supported=\$$cacheid
9216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9217 printf "%s\n" "$supported" >&6; }
9218 if test "$supported" = "yes" ; then
9219 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
9220 found="yes"
9221 fi
9222 fi
9223
9224
9225
9226
9227
9228
9229
9230
9231
9232
9233
9234
9235
9236
9237
9238 xorg_testset_save_CFLAGS="$CFLAGS"
9239
9240 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9241 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9242 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9243 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9244 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9245 then :
9246 printf %s "(cached) " >&6
9247 else $as_nop
9248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9249 /* end confdefs.h. */
9250 int i;
9251 _ACEOF
9252 if ac_fn_c_try_compile "$LINENO"
9253 then :
9254 xorg_cv_cc_flag_unknown_warning_option=yes
9255 else $as_nop
9256 xorg_cv_cc_flag_unknown_warning_option=no
9257 fi
9258 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9259 fi
9260 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9261 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9262 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9263 CFLAGS="$xorg_testset_save_CFLAGS"
9264 fi
9265
9266 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9267 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9268 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9269 fi
9270 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9271 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9272 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9273 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9274 then :
9275 printf %s "(cached) " >&6
9276 else $as_nop
9277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9278 /* end confdefs.h. */
9279 int i;
9280 _ACEOF
9281 if ac_fn_c_try_compile "$LINENO"
9282 then :
9283 xorg_cv_cc_flag_unused_command_line_argument=yes
9284 else $as_nop
9285 xorg_cv_cc_flag_unused_command_line_argument=no
9286 fi
9287 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9288 fi
9289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9290 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9291 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9292 CFLAGS="$xorg_testset_save_CFLAGS"
9293 fi
9294
9295 found="no"
9296
9297 if test $found = "no" ; then
9298 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9299 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9300 fi
9301
9302 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9303 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9304 fi
9305
9306 CFLAGS="$CFLAGS -Winit-self"
9307
9308 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
9309 printf %s "checking if $CC supports -Winit-self... " >&6; }
9310 cacheid=xorg_cv_cc_flag__Winit_self
9311 if eval test \${$cacheid+y}
9312 then :
9313 printf %s "(cached) " >&6
9314 else $as_nop
9315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9316 /* end confdefs.h. */
9317 int i;
9318 int
9319 main (void)
9320 {
9321
9322 ;
9323 return 0;
9324 }
9325 _ACEOF
9326 if ac_fn_c_try_link "$LINENO"
9327 then :
9328 eval $cacheid=yes
9329 else $as_nop
9330 eval $cacheid=no
9331 fi
9332 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9333 conftest$ac_exeext conftest.$ac_ext
9334 fi
9335
9336
9337 CFLAGS="$xorg_testset_save_CFLAGS"
9338
9339 eval supported=\$$cacheid
9340 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9341 printf "%s\n" "$supported" >&6; }
9342 if test "$supported" = "yes" ; then
9343 BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
9344 found="yes"
9345 fi
9346 fi
9347
9348
9349
9350
9351
9352
9353
9354
9355
9356
9357
9358
9359
9360
9361
9362 xorg_testset_save_CFLAGS="$CFLAGS"
9363
9364 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9365 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9367 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9368 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9369 then :
9370 printf %s "(cached) " >&6
9371 else $as_nop
9372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9373 /* end confdefs.h. */
9374 int i;
9375 _ACEOF
9376 if ac_fn_c_try_compile "$LINENO"
9377 then :
9378 xorg_cv_cc_flag_unknown_warning_option=yes
9379 else $as_nop
9380 xorg_cv_cc_flag_unknown_warning_option=no
9381 fi
9382 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9383 fi
9384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9385 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9386 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9387 CFLAGS="$xorg_testset_save_CFLAGS"
9388 fi
9389
9390 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9391 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9392 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9393 fi
9394 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9395 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9396 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9397 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9398 then :
9399 printf %s "(cached) " >&6
9400 else $as_nop
9401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9402 /* end confdefs.h. */
9403 int i;
9404 _ACEOF
9405 if ac_fn_c_try_compile "$LINENO"
9406 then :
9407 xorg_cv_cc_flag_unused_command_line_argument=yes
9408 else $as_nop
9409 xorg_cv_cc_flag_unused_command_line_argument=no
9410 fi
9411 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9412 fi
9413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9414 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9415 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9416 CFLAGS="$xorg_testset_save_CFLAGS"
9417 fi
9418
9419 found="no"
9420
9421 if test $found = "no" ; then
9422 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9423 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9424 fi
9425
9426 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9427 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9428 fi
9429
9430 CFLAGS="$CFLAGS -Wmain"
9431
9432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
9433 printf %s "checking if $CC supports -Wmain... " >&6; }
9434 cacheid=xorg_cv_cc_flag__Wmain
9435 if eval test \${$cacheid+y}
9436 then :
9437 printf %s "(cached) " >&6
9438 else $as_nop
9439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9440 /* end confdefs.h. */
9441 int i;
9442 int
9443 main (void)
9444 {
9445
9446 ;
9447 return 0;
9448 }
9449 _ACEOF
9450 if ac_fn_c_try_link "$LINENO"
9451 then :
9452 eval $cacheid=yes
9453 else $as_nop
9454 eval $cacheid=no
9455 fi
9456 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9457 conftest$ac_exeext conftest.$ac_ext
9458 fi
9459
9460
9461 CFLAGS="$xorg_testset_save_CFLAGS"
9462
9463 eval supported=\$$cacheid
9464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9465 printf "%s\n" "$supported" >&6; }
9466 if test "$supported" = "yes" ; then
9467 BASE_CFLAGS="$BASE_CFLAGS -Wmain"
9468 found="yes"
9469 fi
9470 fi
9471
9472
9473
9474
9475
9476
9477
9478
9479
9480
9481
9482
9483
9484
9485
9486 xorg_testset_save_CFLAGS="$CFLAGS"
9487
9488 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9489 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9490 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9491 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9492 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9493 then :
9494 printf %s "(cached) " >&6
9495 else $as_nop
9496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9497 /* end confdefs.h. */
9498 int i;
9499 _ACEOF
9500 if ac_fn_c_try_compile "$LINENO"
9501 then :
9502 xorg_cv_cc_flag_unknown_warning_option=yes
9503 else $as_nop
9504 xorg_cv_cc_flag_unknown_warning_option=no
9505 fi
9506 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9507 fi
9508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9509 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9510 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9511 CFLAGS="$xorg_testset_save_CFLAGS"
9512 fi
9513
9514 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9515 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9516 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9517 fi
9518 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9520 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9521 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9522 then :
9523 printf %s "(cached) " >&6
9524 else $as_nop
9525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9526 /* end confdefs.h. */
9527 int i;
9528 _ACEOF
9529 if ac_fn_c_try_compile "$LINENO"
9530 then :
9531 xorg_cv_cc_flag_unused_command_line_argument=yes
9532 else $as_nop
9533 xorg_cv_cc_flag_unused_command_line_argument=no
9534 fi
9535 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9536 fi
9537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9538 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9539 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9540 CFLAGS="$xorg_testset_save_CFLAGS"
9541 fi
9542
9543 found="no"
9544
9545 if test $found = "no" ; then
9546 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9547 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9548 fi
9549
9550 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9551 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9552 fi
9553
9554 CFLAGS="$CFLAGS -Wmissing-braces"
9555
9556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
9557 printf %s "checking if $CC supports -Wmissing-braces... " >&6; }
9558 cacheid=xorg_cv_cc_flag__Wmissing_braces
9559 if eval test \${$cacheid+y}
9560 then :
9561 printf %s "(cached) " >&6
9562 else $as_nop
9563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9564 /* end confdefs.h. */
9565 int i;
9566 int
9567 main (void)
9568 {
9569
9570 ;
9571 return 0;
9572 }
9573 _ACEOF
9574 if ac_fn_c_try_link "$LINENO"
9575 then :
9576 eval $cacheid=yes
9577 else $as_nop
9578 eval $cacheid=no
9579 fi
9580 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9581 conftest$ac_exeext conftest.$ac_ext
9582 fi
9583
9584
9585 CFLAGS="$xorg_testset_save_CFLAGS"
9586
9587 eval supported=\$$cacheid
9588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9589 printf "%s\n" "$supported" >&6; }
9590 if test "$supported" = "yes" ; then
9591 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
9592 found="yes"
9593 fi
9594 fi
9595
9596
9597
9598
9599
9600
9601
9602
9603
9604
9605
9606
9607
9608
9609
9610 xorg_testset_save_CFLAGS="$CFLAGS"
9611
9612 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9613 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9615 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9616 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9617 then :
9618 printf %s "(cached) " >&6
9619 else $as_nop
9620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9621 /* end confdefs.h. */
9622 int i;
9623 _ACEOF
9624 if ac_fn_c_try_compile "$LINENO"
9625 then :
9626 xorg_cv_cc_flag_unknown_warning_option=yes
9627 else $as_nop
9628 xorg_cv_cc_flag_unknown_warning_option=no
9629 fi
9630 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9631 fi
9632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9633 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9634 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9635 CFLAGS="$xorg_testset_save_CFLAGS"
9636 fi
9637
9638 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9639 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9640 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9641 fi
9642 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9644 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9645 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9646 then :
9647 printf %s "(cached) " >&6
9648 else $as_nop
9649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9650 /* end confdefs.h. */
9651 int i;
9652 _ACEOF
9653 if ac_fn_c_try_compile "$LINENO"
9654 then :
9655 xorg_cv_cc_flag_unused_command_line_argument=yes
9656 else $as_nop
9657 xorg_cv_cc_flag_unused_command_line_argument=no
9658 fi
9659 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9660 fi
9661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9662 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9663 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9664 CFLAGS="$xorg_testset_save_CFLAGS"
9665 fi
9666
9667 found="no"
9668
9669 if test $found = "no" ; then
9670 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9671 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9672 fi
9673
9674 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9675 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9676 fi
9677
9678 CFLAGS="$CFLAGS -Wsequence-point"
9679
9680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
9681 printf %s "checking if $CC supports -Wsequence-point... " >&6; }
9682 cacheid=xorg_cv_cc_flag__Wsequence_point
9683 if eval test \${$cacheid+y}
9684 then :
9685 printf %s "(cached) " >&6
9686 else $as_nop
9687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9688 /* end confdefs.h. */
9689 int i;
9690 int
9691 main (void)
9692 {
9693
9694 ;
9695 return 0;
9696 }
9697 _ACEOF
9698 if ac_fn_c_try_link "$LINENO"
9699 then :
9700 eval $cacheid=yes
9701 else $as_nop
9702 eval $cacheid=no
9703 fi
9704 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9705 conftest$ac_exeext conftest.$ac_ext
9706 fi
9707
9708
9709 CFLAGS="$xorg_testset_save_CFLAGS"
9710
9711 eval supported=\$$cacheid
9712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9713 printf "%s\n" "$supported" >&6; }
9714 if test "$supported" = "yes" ; then
9715 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9716 found="yes"
9717 fi
9718 fi
9719
9720
9721
9722
9723
9724
9725
9726
9727
9728
9729
9730
9731
9732
9733
9734 xorg_testset_save_CFLAGS="$CFLAGS"
9735
9736 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9737 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9739 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9740 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9741 then :
9742 printf %s "(cached) " >&6
9743 else $as_nop
9744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9745 /* end confdefs.h. */
9746 int i;
9747 _ACEOF
9748 if ac_fn_c_try_compile "$LINENO"
9749 then :
9750 xorg_cv_cc_flag_unknown_warning_option=yes
9751 else $as_nop
9752 xorg_cv_cc_flag_unknown_warning_option=no
9753 fi
9754 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9755 fi
9756 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9757 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9758 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9759 CFLAGS="$xorg_testset_save_CFLAGS"
9760 fi
9761
9762 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9763 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9764 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9765 fi
9766 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9768 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9769 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9770 then :
9771 printf %s "(cached) " >&6
9772 else $as_nop
9773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9774 /* end confdefs.h. */
9775 int i;
9776 _ACEOF
9777 if ac_fn_c_try_compile "$LINENO"
9778 then :
9779 xorg_cv_cc_flag_unused_command_line_argument=yes
9780 else $as_nop
9781 xorg_cv_cc_flag_unused_command_line_argument=no
9782 fi
9783 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9784 fi
9785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9786 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9787 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9788 CFLAGS="$xorg_testset_save_CFLAGS"
9789 fi
9790
9791 found="no"
9792
9793 if test $found = "no" ; then
9794 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9795 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9796 fi
9797
9798 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9799 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9800 fi
9801
9802 CFLAGS="$CFLAGS -Wreturn-type"
9803
9804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
9805 printf %s "checking if $CC supports -Wreturn-type... " >&6; }
9806 cacheid=xorg_cv_cc_flag__Wreturn_type
9807 if eval test \${$cacheid+y}
9808 then :
9809 printf %s "(cached) " >&6
9810 else $as_nop
9811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9812 /* end confdefs.h. */
9813 int i;
9814 int
9815 main (void)
9816 {
9817
9818 ;
9819 return 0;
9820 }
9821 _ACEOF
9822 if ac_fn_c_try_link "$LINENO"
9823 then :
9824 eval $cacheid=yes
9825 else $as_nop
9826 eval $cacheid=no
9827 fi
9828 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9829 conftest$ac_exeext conftest.$ac_ext
9830 fi
9831
9832
9833 CFLAGS="$xorg_testset_save_CFLAGS"
9834
9835 eval supported=\$$cacheid
9836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9837 printf "%s\n" "$supported" >&6; }
9838 if test "$supported" = "yes" ; then
9839 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9840 found="yes"
9841 fi
9842 fi
9843
9844
9845
9846
9847
9848
9849
9850
9851
9852
9853
9854
9855
9856
9857
9858 xorg_testset_save_CFLAGS="$CFLAGS"
9859
9860 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9861 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9863 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9864 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9865 then :
9866 printf %s "(cached) " >&6
9867 else $as_nop
9868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9869 /* end confdefs.h. */
9870 int i;
9871 _ACEOF
9872 if ac_fn_c_try_compile "$LINENO"
9873 then :
9874 xorg_cv_cc_flag_unknown_warning_option=yes
9875 else $as_nop
9876 xorg_cv_cc_flag_unknown_warning_option=no
9877 fi
9878 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9879 fi
9880 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9881 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9882 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9883 CFLAGS="$xorg_testset_save_CFLAGS"
9884 fi
9885
9886 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9887 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9888 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9889 fi
9890 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9891 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9892 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9893 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9894 then :
9895 printf %s "(cached) " >&6
9896 else $as_nop
9897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9898 /* end confdefs.h. */
9899 int i;
9900 _ACEOF
9901 if ac_fn_c_try_compile "$LINENO"
9902 then :
9903 xorg_cv_cc_flag_unused_command_line_argument=yes
9904 else $as_nop
9905 xorg_cv_cc_flag_unused_command_line_argument=no
9906 fi
9907 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9908 fi
9909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9910 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9911 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9912 CFLAGS="$xorg_testset_save_CFLAGS"
9913 fi
9914
9915 found="no"
9916
9917 if test $found = "no" ; then
9918 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9919 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9920 fi
9921
9922 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9923 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9924 fi
9925
9926 CFLAGS="$CFLAGS -Wtrigraphs"
9927
9928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
9929 printf %s "checking if $CC supports -Wtrigraphs... " >&6; }
9930 cacheid=xorg_cv_cc_flag__Wtrigraphs
9931 if eval test \${$cacheid+y}
9932 then :
9933 printf %s "(cached) " >&6
9934 else $as_nop
9935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9936 /* end confdefs.h. */
9937 int i;
9938 int
9939 main (void)
9940 {
9941
9942 ;
9943 return 0;
9944 }
9945 _ACEOF
9946 if ac_fn_c_try_link "$LINENO"
9947 then :
9948 eval $cacheid=yes
9949 else $as_nop
9950 eval $cacheid=no
9951 fi
9952 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9953 conftest$ac_exeext conftest.$ac_ext
9954 fi
9955
9956
9957 CFLAGS="$xorg_testset_save_CFLAGS"
9958
9959 eval supported=\$$cacheid
9960 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9961 printf "%s\n" "$supported" >&6; }
9962 if test "$supported" = "yes" ; then
9963 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
9964 found="yes"
9965 fi
9966 fi
9967
9968
9969
9970
9971
9972
9973
9974
9975
9976
9977
9978
9979
9980
9981
9982 xorg_testset_save_CFLAGS="$CFLAGS"
9983
9984 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9985 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9987 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9988 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9989 then :
9990 printf %s "(cached) " >&6
9991 else $as_nop
9992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9993 /* end confdefs.h. */
9994 int i;
9995 _ACEOF
9996 if ac_fn_c_try_compile "$LINENO"
9997 then :
9998 xorg_cv_cc_flag_unknown_warning_option=yes
9999 else $as_nop
10000 xorg_cv_cc_flag_unknown_warning_option=no
10001 fi
10002 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10003 fi
10004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10005 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10006 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10007 CFLAGS="$xorg_testset_save_CFLAGS"
10008 fi
10009
10010 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10011 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10012 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10013 fi
10014 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10016 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10017 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10018 then :
10019 printf %s "(cached) " >&6
10020 else $as_nop
10021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10022 /* end confdefs.h. */
10023 int i;
10024 _ACEOF
10025 if ac_fn_c_try_compile "$LINENO"
10026 then :
10027 xorg_cv_cc_flag_unused_command_line_argument=yes
10028 else $as_nop
10029 xorg_cv_cc_flag_unused_command_line_argument=no
10030 fi
10031 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10032 fi
10033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10034 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10035 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10036 CFLAGS="$xorg_testset_save_CFLAGS"
10037 fi
10038
10039 found="no"
10040
10041 if test $found = "no" ; then
10042 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10043 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10044 fi
10045
10046 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10047 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10048 fi
10049
10050 CFLAGS="$CFLAGS -Warray-bounds"
10051
10052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
10053 printf %s "checking if $CC supports -Warray-bounds... " >&6; }
10054 cacheid=xorg_cv_cc_flag__Warray_bounds
10055 if eval test \${$cacheid+y}
10056 then :
10057 printf %s "(cached) " >&6
10058 else $as_nop
10059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10060 /* end confdefs.h. */
10061 int i;
10062 int
10063 main (void)
10064 {
10065
10066 ;
10067 return 0;
10068 }
10069 _ACEOF
10070 if ac_fn_c_try_link "$LINENO"
10071 then :
10072 eval $cacheid=yes
10073 else $as_nop
10074 eval $cacheid=no
10075 fi
10076 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10077 conftest$ac_exeext conftest.$ac_ext
10078 fi
10079
10080
10081 CFLAGS="$xorg_testset_save_CFLAGS"
10082
10083 eval supported=\$$cacheid
10084 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10085 printf "%s\n" "$supported" >&6; }
10086 if test "$supported" = "yes" ; then
10087 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
10088 found="yes"
10089 fi
10090 fi
10091
10092
10093
10094
10095
10096
10097
10098
10099
10100
10101
10102
10103
10104
10105
10106 xorg_testset_save_CFLAGS="$CFLAGS"
10107
10108 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10109 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10111 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10112 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10113 then :
10114 printf %s "(cached) " >&6
10115 else $as_nop
10116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10117 /* end confdefs.h. */
10118 int i;
10119 _ACEOF
10120 if ac_fn_c_try_compile "$LINENO"
10121 then :
10122 xorg_cv_cc_flag_unknown_warning_option=yes
10123 else $as_nop
10124 xorg_cv_cc_flag_unknown_warning_option=no
10125 fi
10126 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10127 fi
10128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10129 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10130 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10131 CFLAGS="$xorg_testset_save_CFLAGS"
10132 fi
10133
10134 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10135 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10136 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10137 fi
10138 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10140 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10141 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10142 then :
10143 printf %s "(cached) " >&6
10144 else $as_nop
10145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10146 /* end confdefs.h. */
10147 int i;
10148 _ACEOF
10149 if ac_fn_c_try_compile "$LINENO"
10150 then :
10151 xorg_cv_cc_flag_unused_command_line_argument=yes
10152 else $as_nop
10153 xorg_cv_cc_flag_unused_command_line_argument=no
10154 fi
10155 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10156 fi
10157 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10158 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10159 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10160 CFLAGS="$xorg_testset_save_CFLAGS"
10161 fi
10162
10163 found="no"
10164
10165 if test $found = "no" ; then
10166 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10167 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10168 fi
10169
10170 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10171 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10172 fi
10173
10174 CFLAGS="$CFLAGS -Wwrite-strings"
10175
10176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
10177 printf %s "checking if $CC supports -Wwrite-strings... " >&6; }
10178 cacheid=xorg_cv_cc_flag__Wwrite_strings
10179 if eval test \${$cacheid+y}
10180 then :
10181 printf %s "(cached) " >&6
10182 else $as_nop
10183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10184 /* end confdefs.h. */
10185 int i;
10186 int
10187 main (void)
10188 {
10189
10190 ;
10191 return 0;
10192 }
10193 _ACEOF
10194 if ac_fn_c_try_link "$LINENO"
10195 then :
10196 eval $cacheid=yes
10197 else $as_nop
10198 eval $cacheid=no
10199 fi
10200 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10201 conftest$ac_exeext conftest.$ac_ext
10202 fi
10203
10204
10205 CFLAGS="$xorg_testset_save_CFLAGS"
10206
10207 eval supported=\$$cacheid
10208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10209 printf "%s\n" "$supported" >&6; }
10210 if test "$supported" = "yes" ; then
10211 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
10212 found="yes"
10213 fi
10214 fi
10215
10216
10217
10218
10219
10220
10221
10222
10223
10224
10225
10226
10227
10228
10229
10230 xorg_testset_save_CFLAGS="$CFLAGS"
10231
10232 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10233 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10235 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10236 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10237 then :
10238 printf %s "(cached) " >&6
10239 else $as_nop
10240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10241 /* end confdefs.h. */
10242 int i;
10243 _ACEOF
10244 if ac_fn_c_try_compile "$LINENO"
10245 then :
10246 xorg_cv_cc_flag_unknown_warning_option=yes
10247 else $as_nop
10248 xorg_cv_cc_flag_unknown_warning_option=no
10249 fi
10250 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10251 fi
10252 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10253 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10254 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10255 CFLAGS="$xorg_testset_save_CFLAGS"
10256 fi
10257
10258 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10259 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10260 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10261 fi
10262 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10264 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10265 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10266 then :
10267 printf %s "(cached) " >&6
10268 else $as_nop
10269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10270 /* end confdefs.h. */
10271 int i;
10272 _ACEOF
10273 if ac_fn_c_try_compile "$LINENO"
10274 then :
10275 xorg_cv_cc_flag_unused_command_line_argument=yes
10276 else $as_nop
10277 xorg_cv_cc_flag_unused_command_line_argument=no
10278 fi
10279 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10280 fi
10281 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10282 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10283 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10284 CFLAGS="$xorg_testset_save_CFLAGS"
10285 fi
10286
10287 found="no"
10288
10289 if test $found = "no" ; then
10290 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10291 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10292 fi
10293
10294 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10295 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10296 fi
10297
10298 CFLAGS="$CFLAGS -Waddress"
10299
10300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
10301 printf %s "checking if $CC supports -Waddress... " >&6; }
10302 cacheid=xorg_cv_cc_flag__Waddress
10303 if eval test \${$cacheid+y}
10304 then :
10305 printf %s "(cached) " >&6
10306 else $as_nop
10307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10308 /* end confdefs.h. */
10309 int i;
10310 int
10311 main (void)
10312 {
10313
10314 ;
10315 return 0;
10316 }
10317 _ACEOF
10318 if ac_fn_c_try_link "$LINENO"
10319 then :
10320 eval $cacheid=yes
10321 else $as_nop
10322 eval $cacheid=no
10323 fi
10324 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10325 conftest$ac_exeext conftest.$ac_ext
10326 fi
10327
10328
10329 CFLAGS="$xorg_testset_save_CFLAGS"
10330
10331 eval supported=\$$cacheid
10332 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10333 printf "%s\n" "$supported" >&6; }
10334 if test "$supported" = "yes" ; then
10335 BASE_CFLAGS="$BASE_CFLAGS -Waddress"
10336 found="yes"
10337 fi
10338 fi
10339
10340
10341
10342
10343
10344
10345
10346
10347
10348
10349
10350
10351
10352
10353
10354 xorg_testset_save_CFLAGS="$CFLAGS"
10355
10356 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10357 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10358 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10359 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10360 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10361 then :
10362 printf %s "(cached) " >&6
10363 else $as_nop
10364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10365 /* end confdefs.h. */
10366 int i;
10367 _ACEOF
10368 if ac_fn_c_try_compile "$LINENO"
10369 then :
10370 xorg_cv_cc_flag_unknown_warning_option=yes
10371 else $as_nop
10372 xorg_cv_cc_flag_unknown_warning_option=no
10373 fi
10374 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10375 fi
10376 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10377 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10378 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10379 CFLAGS="$xorg_testset_save_CFLAGS"
10380 fi
10381
10382 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10383 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10384 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10385 fi
10386 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10388 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10389 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10390 then :
10391 printf %s "(cached) " >&6
10392 else $as_nop
10393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10394 /* end confdefs.h. */
10395 int i;
10396 _ACEOF
10397 if ac_fn_c_try_compile "$LINENO"
10398 then :
10399 xorg_cv_cc_flag_unused_command_line_argument=yes
10400 else $as_nop
10401 xorg_cv_cc_flag_unused_command_line_argument=no
10402 fi
10403 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10404 fi
10405 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10406 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10407 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10408 CFLAGS="$xorg_testset_save_CFLAGS"
10409 fi
10410
10411 found="no"
10412
10413 if test $found = "no" ; then
10414 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10415 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10416 fi
10417
10418 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10419 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10420 fi
10421
10422 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
10423
10424 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
10425 printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
10426 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
10427 if eval test \${$cacheid+y}
10428 then :
10429 printf %s "(cached) " >&6
10430 else $as_nop
10431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10432 /* end confdefs.h. */
10433 int i;
10434 int
10435 main (void)
10436 {
10437
10438 ;
10439 return 0;
10440 }
10441 _ACEOF
10442 if ac_fn_c_try_link "$LINENO"
10443 then :
10444 eval $cacheid=yes
10445 else $as_nop
10446 eval $cacheid=no
10447 fi
10448 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10449 conftest$ac_exeext conftest.$ac_ext
10450 fi
10451
10452
10453 CFLAGS="$xorg_testset_save_CFLAGS"
10454
10455 eval supported=\$$cacheid
10456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10457 printf "%s\n" "$supported" >&6; }
10458 if test "$supported" = "yes" ; then
10459 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
10460 found="yes"
10461 fi
10462 fi
10463
10464
10465
10466
10467
10468
10469
10470
10471
10472
10473
10474
10475
10476
10477
10478 xorg_testset_save_CFLAGS="$CFLAGS"
10479
10480 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10481 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10483 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10484 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10485 then :
10486 printf %s "(cached) " >&6
10487 else $as_nop
10488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10489 /* end confdefs.h. */
10490 int i;
10491 _ACEOF
10492 if ac_fn_c_try_compile "$LINENO"
10493 then :
10494 xorg_cv_cc_flag_unknown_warning_option=yes
10495 else $as_nop
10496 xorg_cv_cc_flag_unknown_warning_option=no
10497 fi
10498 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10499 fi
10500 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10501 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10502 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10503 CFLAGS="$xorg_testset_save_CFLAGS"
10504 fi
10505
10506 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10507 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10508 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10509 fi
10510 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10512 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10513 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10514 then :
10515 printf %s "(cached) " >&6
10516 else $as_nop
10517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10518 /* end confdefs.h. */
10519 int i;
10520 _ACEOF
10521 if ac_fn_c_try_compile "$LINENO"
10522 then :
10523 xorg_cv_cc_flag_unused_command_line_argument=yes
10524 else $as_nop
10525 xorg_cv_cc_flag_unused_command_line_argument=no
10526 fi
10527 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10528 fi
10529 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10530 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10531 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10532 CFLAGS="$xorg_testset_save_CFLAGS"
10533 fi
10534
10535 found="no"
10536
10537 if test $found = "no" ; then
10538 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10539 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10540 fi
10541
10542 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10543 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10544 fi
10545
10546 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
10547
10548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
10549 printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
10550 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
10551 if eval test \${$cacheid+y}
10552 then :
10553 printf %s "(cached) " >&6
10554 else $as_nop
10555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10556 /* end confdefs.h. */
10557 int i;
10558 int
10559 main (void)
10560 {
10561
10562 ;
10563 return 0;
10564 }
10565 _ACEOF
10566 if ac_fn_c_try_link "$LINENO"
10567 then :
10568 eval $cacheid=yes
10569 else $as_nop
10570 eval $cacheid=no
10571 fi
10572 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10573 conftest$ac_exeext conftest.$ac_ext
10574 fi
10575
10576
10577 CFLAGS="$xorg_testset_save_CFLAGS"
10578
10579 eval supported=\$$cacheid
10580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10581 printf "%s\n" "$supported" >&6; }
10582 if test "$supported" = "yes" ; then
10583 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
10584 found="yes"
10585 fi
10586 fi
10587
10588
10589 fi
10590
10591
10592
10593
10594
10595
10596
10597 CWARNFLAGS="$BASE_CFLAGS"
10598 if test "x$GCC" = xyes ; then
10599 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
10600 fi
10601
10602
10603
10604
10605
10606
10607
10608
10609 # Check whether --enable-strict-compilation was given.
10610 if test ${enable_strict_compilation+y}
10611 then :
10612 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
10613 else $as_nop
10614 STRICT_COMPILE=no
10615 fi
10616
10617
10618
10619
10620
10621
10622 STRICT_CFLAGS=""
10623
10624
10625
10626
10627
10628
10629
10630
10631
10632
10633
10634
10635
10636 xorg_testset_save_CFLAGS="$CFLAGS"
10637
10638 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10639 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10641 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10642 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10643 then :
10644 printf %s "(cached) " >&6
10645 else $as_nop
10646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10647 /* end confdefs.h. */
10648 int i;
10649 _ACEOF
10650 if ac_fn_c_try_compile "$LINENO"
10651 then :
10652 xorg_cv_cc_flag_unknown_warning_option=yes
10653 else $as_nop
10654 xorg_cv_cc_flag_unknown_warning_option=no
10655 fi
10656 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10657 fi
10658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10659 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10660 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10661 CFLAGS="$xorg_testset_save_CFLAGS"
10662 fi
10663
10664 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10665 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10666 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10667 fi
10668 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10669 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10670 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10671 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10672 then :
10673 printf %s "(cached) " >&6
10674 else $as_nop
10675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10676 /* end confdefs.h. */
10677 int i;
10678 _ACEOF
10679 if ac_fn_c_try_compile "$LINENO"
10680 then :
10681 xorg_cv_cc_flag_unused_command_line_argument=yes
10682 else $as_nop
10683 xorg_cv_cc_flag_unused_command_line_argument=no
10684 fi
10685 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10686 fi
10687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10688 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10689 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10690 CFLAGS="$xorg_testset_save_CFLAGS"
10691 fi
10692
10693 found="no"
10694
10695 if test $found = "no" ; then
10696 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10697 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10698 fi
10699
10700 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10701 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10702 fi
10703
10704 CFLAGS="$CFLAGS -pedantic"
10705
10706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
10707 printf %s "checking if $CC supports -pedantic... " >&6; }
10708 cacheid=xorg_cv_cc_flag__pedantic
10709 if eval test \${$cacheid+y}
10710 then :
10711 printf %s "(cached) " >&6
10712 else $as_nop
10713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10714 /* end confdefs.h. */
10715 int i;
10716 int
10717 main (void)
10718 {
10719
10720 ;
10721 return 0;
10722 }
10723 _ACEOF
10724 if ac_fn_c_try_link "$LINENO"
10725 then :
10726 eval $cacheid=yes
10727 else $as_nop
10728 eval $cacheid=no
10729 fi
10730 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10731 conftest$ac_exeext conftest.$ac_ext
10732 fi
10733
10734
10735 CFLAGS="$xorg_testset_save_CFLAGS"
10736
10737 eval supported=\$$cacheid
10738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10739 printf "%s\n" "$supported" >&6; }
10740 if test "$supported" = "yes" ; then
10741 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
10742 found="yes"
10743 fi
10744 fi
10745
10746
10747
10748
10749
10750
10751
10752
10753
10754
10755
10756
10757
10758
10759
10760 xorg_testset_save_CFLAGS="$CFLAGS"
10761
10762 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10763 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10765 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10766 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10767 then :
10768 printf %s "(cached) " >&6
10769 else $as_nop
10770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10771 /* end confdefs.h. */
10772 int i;
10773 _ACEOF
10774 if ac_fn_c_try_compile "$LINENO"
10775 then :
10776 xorg_cv_cc_flag_unknown_warning_option=yes
10777 else $as_nop
10778 xorg_cv_cc_flag_unknown_warning_option=no
10779 fi
10780 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10781 fi
10782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10783 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10784 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10785 CFLAGS="$xorg_testset_save_CFLAGS"
10786 fi
10787
10788 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10789 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10790 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10791 fi
10792 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10794 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10795 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10796 then :
10797 printf %s "(cached) " >&6
10798 else $as_nop
10799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10800 /* end confdefs.h. */
10801 int i;
10802 _ACEOF
10803 if ac_fn_c_try_compile "$LINENO"
10804 then :
10805 xorg_cv_cc_flag_unused_command_line_argument=yes
10806 else $as_nop
10807 xorg_cv_cc_flag_unused_command_line_argument=no
10808 fi
10809 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10810 fi
10811 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10812 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10813 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10814 CFLAGS="$xorg_testset_save_CFLAGS"
10815 fi
10816
10817 found="no"
10818
10819 if test $found = "no" ; then
10820 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10821 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10822 fi
10823
10824 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10825 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10826 fi
10827
10828 CFLAGS="$CFLAGS -Werror"
10829
10830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
10831 printf %s "checking if $CC supports -Werror... " >&6; }
10832 cacheid=xorg_cv_cc_flag__Werror
10833 if eval test \${$cacheid+y}
10834 then :
10835 printf %s "(cached) " >&6
10836 else $as_nop
10837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10838 /* end confdefs.h. */
10839 int i;
10840 int
10841 main (void)
10842 {
10843
10844 ;
10845 return 0;
10846 }
10847 _ACEOF
10848 if ac_fn_c_try_link "$LINENO"
10849 then :
10850 eval $cacheid=yes
10851 else $as_nop
10852 eval $cacheid=no
10853 fi
10854 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10855 conftest$ac_exeext conftest.$ac_ext
10856 fi
10857
10858
10859 CFLAGS="$xorg_testset_save_CFLAGS"
10860
10861 eval supported=\$$cacheid
10862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10863 printf "%s\n" "$supported" >&6; }
10864 if test "$supported" = "yes" ; then
10865 STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
10866 found="yes"
10867 fi
10868 fi
10869
10870 if test $found = "no" ; then
10871 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10872 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10873 fi
10874
10875 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10876 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10877 fi
10878
10879 CFLAGS="$CFLAGS -errwarn"
10880
10881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
10882 printf %s "checking if $CC supports -errwarn... " >&6; }
10883 cacheid=xorg_cv_cc_flag__errwarn
10884 if eval test \${$cacheid+y}
10885 then :
10886 printf %s "(cached) " >&6
10887 else $as_nop
10888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10889 /* end confdefs.h. */
10890 int i;
10891 int
10892 main (void)
10893 {
10894
10895 ;
10896 return 0;
10897 }
10898 _ACEOF
10899 if ac_fn_c_try_link "$LINENO"
10900 then :
10901 eval $cacheid=yes
10902 else $as_nop
10903 eval $cacheid=no
10904 fi
10905 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10906 conftest$ac_exeext conftest.$ac_ext
10907 fi
10908
10909
10910 CFLAGS="$xorg_testset_save_CFLAGS"
10911
10912 eval supported=\$$cacheid
10913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10914 printf "%s\n" "$supported" >&6; }
10915 if test "$supported" = "yes" ; then
10916 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
10917 found="yes"
10918 fi
10919 fi
10920
10921
10922
10923 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
10924 # activate it with -Werror, so we add it here explicitly.
10925
10926
10927
10928
10929
10930
10931
10932
10933
10934
10935
10936
10937
10938 xorg_testset_save_CFLAGS="$CFLAGS"
10939
10940 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10941 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10943 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10944 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10945 then :
10946 printf %s "(cached) " >&6
10947 else $as_nop
10948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10949 /* end confdefs.h. */
10950 int i;
10951 _ACEOF
10952 if ac_fn_c_try_compile "$LINENO"
10953 then :
10954 xorg_cv_cc_flag_unknown_warning_option=yes
10955 else $as_nop
10956 xorg_cv_cc_flag_unknown_warning_option=no
10957 fi
10958 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10959 fi
10960 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10961 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10962 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10963 CFLAGS="$xorg_testset_save_CFLAGS"
10964 fi
10965
10966 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10967 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10968 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10969 fi
10970 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10971 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10972 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10973 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10974 then :
10975 printf %s "(cached) " >&6
10976 else $as_nop
10977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10978 /* end confdefs.h. */
10979 int i;
10980 _ACEOF
10981 if ac_fn_c_try_compile "$LINENO"
10982 then :
10983 xorg_cv_cc_flag_unused_command_line_argument=yes
10984 else $as_nop
10985 xorg_cv_cc_flag_unused_command_line_argument=no
10986 fi
10987 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10988 fi
10989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10990 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10991 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10992 CFLAGS="$xorg_testset_save_CFLAGS"
10993 fi
10994
10995 found="no"
10996
10997 if test $found = "no" ; then
10998 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10999 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11000 fi
11001
11002 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11003 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11004 fi
11005
11006 CFLAGS="$CFLAGS -Werror=attributes"
11007
11008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
11009 printf %s "checking if $CC supports -Werror=attributes... " >&6; }
11010 cacheid=xorg_cv_cc_flag__Werror_attributes
11011 if eval test \${$cacheid+y}
11012 then :
11013 printf %s "(cached) " >&6
11014 else $as_nop
11015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11016 /* end confdefs.h. */
11017 int i;
11018 int
11019 main (void)
11020 {
11021
11022 ;
11023 return 0;
11024 }
11025 _ACEOF
11026 if ac_fn_c_try_link "$LINENO"
11027 then :
11028 eval $cacheid=yes
11029 else $as_nop
11030 eval $cacheid=no
11031 fi
11032 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11033 conftest$ac_exeext conftest.$ac_ext
11034 fi
11035
11036
11037 CFLAGS="$xorg_testset_save_CFLAGS"
11038
11039 eval supported=\$$cacheid
11040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11041 printf "%s\n" "$supported" >&6; }
11042 if test "$supported" = "yes" ; then
11043 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
11044 found="yes"
11045 fi
11046 fi
11047
11048
11049
11050 if test "x$STRICT_COMPILE" = "xyes"; then
11051 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
11052 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
11053 fi
11054
11055
11056
11057
11058
11059
11060
11061
11062 cat >>confdefs.h <<_ACEOF
11063 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
11064 _ACEOF
11065
11066 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
11067 if test "x$PVM" = "x"; then
11068 PVM="0"
11069 fi
11070
11071 printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h
11072
11073 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
11074 if test "x$PVP" = "x"; then
11075 PVP="0"
11076 fi
11077
11078 printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h
11079
11080
11081
11082 CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \
11083 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
11084 || (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \
11085 touch \$(top_srcdir)/ChangeLog; \
11086 echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))"
11087
11088
11089
11090
11091 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
11092 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
11093 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
11094 || (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \
11095 touch \$(top_srcdir)/INSTALL; \
11096 echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))"
11097
11098
11099
11100
11101
11102
11103 case $host_os in
11104 solaris*)
11105 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we
11106 # check for a man page file found in later versions that use
11107 # traditional section numbers instead
11108 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5
11109 printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; }
11110 if test ${ac_cv_file__usr_share_man_man7_attributes_7+y}
11111 then :
11112 printf %s "(cached) " >&6
11113 else $as_nop
11114 test "$cross_compiling" = yes &&
11115 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
11116 if test -r "/usr/share/man/man7/attributes.7"; then
11117 ac_cv_file__usr_share_man_man7_attributes_7=yes
11118 else
11119 ac_cv_file__usr_share_man_man7_attributes_7=no
11120 fi
11121 fi
11122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5
11123 printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; }
11124 if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes
11125 then :
11126 SYSV_MAN_SECTIONS=false
11127 else $as_nop
11128 SYSV_MAN_SECTIONS=true
11129 fi
11130
11131 ;;
11132 *) SYSV_MAN_SECTIONS=false ;;
11133 esac
11134
11135 if test x$APP_MAN_SUFFIX = x ; then
11136 APP_MAN_SUFFIX=1
11137 fi
11138 if test x$APP_MAN_DIR = x ; then
11139 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
11140 fi
11141
11142 if test x$LIB_MAN_SUFFIX = x ; then
11143 LIB_MAN_SUFFIX=3
11144 fi
11145 if test x$LIB_MAN_DIR = x ; then
11146 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
11147 fi
11148
11149 if test x$FILE_MAN_SUFFIX = x ; then
11150 case $SYSV_MAN_SECTIONS in
11151 true) FILE_MAN_SUFFIX=4 ;;
11152 *) FILE_MAN_SUFFIX=5 ;;
11153 esac
11154 fi
11155 if test x$FILE_MAN_DIR = x ; then
11156 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
11157 fi
11158
11159 if test x$MISC_MAN_SUFFIX = x ; then
11160 case $SYSV_MAN_SECTIONS in
11161 true) MISC_MAN_SUFFIX=5 ;;
11162 *) MISC_MAN_SUFFIX=7 ;;
11163 esac
11164 fi
11165 if test x$MISC_MAN_DIR = x ; then
11166 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
11167 fi
11168
11169 if test x$DRIVER_MAN_SUFFIX = x ; then
11170 case $SYSV_MAN_SECTIONS in
11171 true) DRIVER_MAN_SUFFIX=7 ;;
11172 *) DRIVER_MAN_SUFFIX=4 ;;
11173 esac
11174 fi
11175 if test x$DRIVER_MAN_DIR = x ; then
11176 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
11177 fi
11178
11179 if test x$ADMIN_MAN_SUFFIX = x ; then
11180 case $SYSV_MAN_SECTIONS in
11181 true) ADMIN_MAN_SUFFIX=1m ;;
11182 *) ADMIN_MAN_SUFFIX=8 ;;
11183 esac
11184 fi
11185 if test x$ADMIN_MAN_DIR = x ; then
11186 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
11187 fi
11188
11189
11190
11191
11192
11193
11194
11195
11196
11197
11198
11199
11200
11201
11202
11203 XORG_MAN_PAGE="X Version 11"
11204
11205 MAN_SUBSTS="\
11206 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11207 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11208 -e 's|__xservername__|Xorg|g' \
11209 -e 's|__xconfigfile__|xorg.conf|g' \
11210 -e 's|__projectroot__|\$(prefix)|g' \
11211 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
11212 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
11213 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
11214 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
11215 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
11216 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
11217 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
11218
11219
11220
11221 # Check whether --enable-silent-rules was given.
11222 if test ${enable_silent_rules+y}
11223 then :
11224 enableval=$enable_silent_rules;
11225 fi
11226
11227 case $enable_silent_rules in # (((
11228 yes) AM_DEFAULT_VERBOSITY=0;;
11229 no) AM_DEFAULT_VERBOSITY=1;;
11230 *) AM_DEFAULT_VERBOSITY=0;;
11231 esac
11232 am_make=${MAKE-make}
11233 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
11234 printf %s "checking whether $am_make supports nested variables... " >&6; }
11235 if test ${am_cv_make_support_nested_variables+y}
11236 then :
11237 printf %s "(cached) " >&6
11238 else $as_nop
11239 if printf "%s\n" 'TRUE=$(BAR$(V))
11240 BAR0=false
11241 BAR1=true
11242 V=1
11243 am__doit:
11244 @$(TRUE)
11245 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
11246 am_cv_make_support_nested_variables=yes
11247 else
11248 am_cv_make_support_nested_variables=no
11249 fi
11250 fi
11251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
11252 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
11253 if test $am_cv_make_support_nested_variables = yes; then
11254 AM_V='$(V)'
11255 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
11256 else
11257 AM_V=$AM_DEFAULT_VERBOSITY
11258 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
11259 fi
11260 AM_BACKSLASH='\'
11261
11262
11263
11264
11265 # Initialize libtool
11266 # Check whether --enable-static was given.
11267 if test ${enable_static+y}
11268 then :
11269 enableval=$enable_static; p=${PACKAGE-default}
11270 case $enableval in
11271 yes) enable_static=yes ;;
11272 no) enable_static=no ;;
11273 *)
11274 enable_static=no
11275 # Look at the argument we got. We use all the common list separators.
11276 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11277 for pkg in $enableval; do
11278 IFS=$lt_save_ifs
11279 if test "X$pkg" = "X$p"; then
11280 enable_static=yes
11281 fi
11282 done
11283 IFS=$lt_save_ifs
11284 ;;
11285 esac
11286 else $as_nop
11287 enable_static=no
11288 fi
11289
11290
11291
11292
11293
11294
11295
11296
11297
11298 case `pwd` in
11299 *\ * | *\ *)
11300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
11301 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
11302 esac
11303
11304
11305
11306 macro_version='2.4.7'
11307 macro_revision='2.4.7'
11308
11309
11310
11311
11312
11313
11314
11315
11316
11317
11318
11319
11320
11321
11322 ltmain=$ac_aux_dir/ltmain.sh
11323
11324 # Backslashify metacharacters that are still active within
11325 # double-quoted strings.
11326 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
11327
11328 # Same as above, but do not quote variable references.
11329 double_quote_subst='s/\(["`\\]\)/\\\1/g'
11330
11331 # Sed substitution to delay expansion of an escaped shell variable in a
11332 # double_quote_subst'ed string.
11333 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11334
11335 # Sed substitution to delay expansion of an escaped single quote.
11336 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
11337
11338 # Sed substitution to avoid accidental globbing in evaled expressions
11339 no_glob_subst='s/\*/\\\*/g'
11340
11341 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11342 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
11343 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
11344
11345 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
11346 printf %s "checking how to print strings... " >&6; }
11347 # Test print first, because it will be a builtin if present.
11348 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
11349 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
11350 ECHO='print -r --'
11351 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
11352 ECHO='printf %s\n'
11353 else
11354 # Use this function as a fallback that always works.
11355 func_fallback_echo ()
11356 {
11357 eval 'cat <<_LTECHO_EOF
11358 $1
11359 _LTECHO_EOF'
11360 }
11361 ECHO='func_fallback_echo'
11362 fi
11363
11364 # func_echo_all arg...
11365 # Invoke $ECHO with all args, space-separated.
11366 func_echo_all ()
11367 {
11368 $ECHO ""
11369 }
11370
11371 case $ECHO in
11372 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
11373 printf "%s\n" "printf" >&6; } ;;
11374 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
11375 printf "%s\n" "print -r" >&6; } ;;
11376 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
11377 printf "%s\n" "cat" >&6; } ;;
11378 esac
11379
11380
11381
11382
11383
11384
11385
11386
11387
11388
11389
11390
11391
11392
11393 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
11394 printf %s "checking for a sed that does not truncate output... " >&6; }
11395 if test ${ac_cv_path_SED+y}
11396 then :
11397 printf %s "(cached) " >&6
11398 else $as_nop
11399 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
11400 for ac_i in 1 2 3 4 5 6 7; do
11401 ac_script="$ac_script$as_nl$ac_script"
11402 done
11403 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
11404 { ac_script=; unset ac_script;}
11405 if test -z "$SED"; then
11406 ac_path_SED_found=false
11407 # Loop through the user's path and test for each of PROGNAME-LIST
11408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11409 for as_dir in $PATH
11410 do
11411 IFS=$as_save_IFS
11412 case $as_dir in #(((
11413 '') as_dir=./ ;;
11414 */) ;;
11415 *) as_dir=$as_dir/ ;;
11416 esac
11417 for ac_prog in sed gsed
11418 do
11419 for ac_exec_ext in '' $ac_executable_extensions; do
11420 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
11421 as_fn_executable_p "$ac_path_SED" || continue
11422 # Check for GNU ac_path_SED and select it if it is found.
11423 # Check for GNU $ac_path_SED
11424 case `"$ac_path_SED" --version 2>&1` in
11425 *GNU*)
11426 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
11427 *)
11428 ac_count=0
11429 printf %s 0123456789 >"conftest.in"
11430 while :
11431 do
11432 cat "conftest.in" "conftest.in" >"conftest.tmp"
11433 mv "conftest.tmp" "conftest.in"
11434 cp "conftest.in" "conftest.nl"
11435 printf "%s\n" '' >> "conftest.nl"
11436 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
11437 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11438 as_fn_arith $ac_count + 1 && ac_count=$as_val
11439 if test $ac_count -gt ${ac_path_SED_max-0}; then
11440 # Best one so far, save it but keep looking for a better one
11441 ac_cv_path_SED="$ac_path_SED"
11442 ac_path_SED_max=$ac_count
11443 fi
11444 # 10*(2^10) chars as input seems more than enough
11445 test $ac_count -gt 10 && break
11446 done
11447 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11448 esac
11449
11450 $ac_path_SED_found && break 3
11451 done
11452 done
11453 done
11454 IFS=$as_save_IFS
11455 if test -z "$ac_cv_path_SED"; then
11456 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
11457 fi
11458 else
11459 ac_cv_path_SED=$SED
11460 fi
11461
11462 fi
11463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
11464 printf "%s\n" "$ac_cv_path_SED" >&6; }
11465 SED="$ac_cv_path_SED"
11466 rm -f conftest.sed
11467
11468 test -z "$SED" && SED=sed
11469 Xsed="$SED -e 1s/^X//"
11470
11471
11472
11473
11474
11475
11476
11477
11478
11479
11480
11481 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
11482 printf %s "checking for grep that handles long lines and -e... " >&6; }
11483 if test ${ac_cv_path_GREP+y}
11484 then :
11485 printf %s "(cached) " >&6
11486 else $as_nop
11487 if test -z "$GREP"; then
11488 ac_path_GREP_found=false
11489 # Loop through the user's path and test for each of PROGNAME-LIST
11490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11491 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11492 do
11493 IFS=$as_save_IFS
11494 case $as_dir in #(((
11495 '') as_dir=./ ;;
11496 */) ;;
11497 *) as_dir=$as_dir/ ;;
11498 esac
11499 for ac_prog in grep ggrep
11500 do
11501 for ac_exec_ext in '' $ac_executable_extensions; do
11502 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
11503 as_fn_executable_p "$ac_path_GREP" || continue
11504 # Check for GNU ac_path_GREP and select it if it is found.
11505 # Check for GNU $ac_path_GREP
11506 case `"$ac_path_GREP" --version 2>&1` in
11507 *GNU*)
11508 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
11509 *)
11510 ac_count=0
11511 printf %s 0123456789 >"conftest.in"
11512 while :
11513 do
11514 cat "conftest.in" "conftest.in" >"conftest.tmp"
11515 mv "conftest.tmp" "conftest.in"
11516 cp "conftest.in" "conftest.nl"
11517 printf "%s\n" 'GREP' >> "conftest.nl"
11518 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11519 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11520 as_fn_arith $ac_count + 1 && ac_count=$as_val
11521 if test $ac_count -gt ${ac_path_GREP_max-0}; then
11522 # Best one so far, save it but keep looking for a better one
11523 ac_cv_path_GREP="$ac_path_GREP"
11524 ac_path_GREP_max=$ac_count
11525 fi
11526 # 10*(2^10) chars as input seems more than enough
11527 test $ac_count -gt 10 && break
11528 done
11529 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11530 esac
11531
11532 $ac_path_GREP_found && break 3
11533 done
11534 done
11535 done
11536 IFS=$as_save_IFS
11537 if test -z "$ac_cv_path_GREP"; then
11538 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11539 fi
11540 else
11541 ac_cv_path_GREP=$GREP
11542 fi
11543
11544 fi
11545 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
11546 printf "%s\n" "$ac_cv_path_GREP" >&6; }
11547 GREP="$ac_cv_path_GREP"
11548
11549
11550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
11551 printf %s "checking for egrep... " >&6; }
11552 if test ${ac_cv_path_EGREP+y}
11553 then :
11554 printf %s "(cached) " >&6
11555 else $as_nop
11556 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
11557 then ac_cv_path_EGREP="$GREP -E"
11558 else
11559 if test -z "$EGREP"; then
11560 ac_path_EGREP_found=false
11561 # Loop through the user's path and test for each of PROGNAME-LIST
11562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11563 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11564 do
11565 IFS=$as_save_IFS
11566 case $as_dir in #(((
11567 '') as_dir=./ ;;
11568 */) ;;
11569 *) as_dir=$as_dir/ ;;
11570 esac
11571 for ac_prog in egrep
11572 do
11573 for ac_exec_ext in '' $ac_executable_extensions; do
11574 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
11575 as_fn_executable_p "$ac_path_EGREP" || continue
11576 # Check for GNU ac_path_EGREP and select it if it is found.
11577 # Check for GNU $ac_path_EGREP
11578 case `"$ac_path_EGREP" --version 2>&1` in
11579 *GNU*)
11580 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
11581 *)
11582 ac_count=0
11583 printf %s 0123456789 >"conftest.in"
11584 while :
11585 do
11586 cat "conftest.in" "conftest.in" >"conftest.tmp"
11587 mv "conftest.tmp" "conftest.in"
11588 cp "conftest.in" "conftest.nl"
11589 printf "%s\n" 'EGREP' >> "conftest.nl"
11590 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11591 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11592 as_fn_arith $ac_count + 1 && ac_count=$as_val
11593 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
11594 # Best one so far, save it but keep looking for a better one
11595 ac_cv_path_EGREP="$ac_path_EGREP"
11596 ac_path_EGREP_max=$ac_count
11597 fi
11598 # 10*(2^10) chars as input seems more than enough
11599 test $ac_count -gt 10 && break
11600 done
11601 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11602 esac
11603
11604 $ac_path_EGREP_found && break 3
11605 done
11606 done
11607 done
11608 IFS=$as_save_IFS
11609 if test -z "$ac_cv_path_EGREP"; then
11610 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11611 fi
11612 else
11613 ac_cv_path_EGREP=$EGREP
11614 fi
11615
11616 fi
11617 fi
11618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
11619 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
11620 EGREP="$ac_cv_path_EGREP"
11621
11622
11623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
11624 printf %s "checking for fgrep... " >&6; }
11625 if test ${ac_cv_path_FGREP+y}
11626 then :
11627 printf %s "(cached) " >&6
11628 else $as_nop
11629 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
11630 then ac_cv_path_FGREP="$GREP -F"
11631 else
11632 if test -z "$FGREP"; then
11633 ac_path_FGREP_found=false
11634 # Loop through the user's path and test for each of PROGNAME-LIST
11635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11636 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11637 do
11638 IFS=$as_save_IFS
11639 case $as_dir in #(((
11640 '') as_dir=./ ;;
11641 */) ;;
11642 *) as_dir=$as_dir/ ;;
11643 esac
11644 for ac_prog in fgrep
11645 do
11646 for ac_exec_ext in '' $ac_executable_extensions; do
11647 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
11648 as_fn_executable_p "$ac_path_FGREP" || continue
11649 # Check for GNU ac_path_FGREP and select it if it is found.
11650 # Check for GNU $ac_path_FGREP
11651 case `"$ac_path_FGREP" --version 2>&1` in
11652 *GNU*)
11653 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
11654 *)
11655 ac_count=0
11656 printf %s 0123456789 >"conftest.in"
11657 while :
11658 do
11659 cat "conftest.in" "conftest.in" >"conftest.tmp"
11660 mv "conftest.tmp" "conftest.in"
11661 cp "conftest.in" "conftest.nl"
11662 printf "%s\n" 'FGREP' >> "conftest.nl"
11663 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
11664 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11665 as_fn_arith $ac_count + 1 && ac_count=$as_val
11666 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
11667 # Best one so far, save it but keep looking for a better one
11668 ac_cv_path_FGREP="$ac_path_FGREP"
11669 ac_path_FGREP_max=$ac_count
11670 fi
11671 # 10*(2^10) chars as input seems more than enough
11672 test $ac_count -gt 10 && break
11673 done
11674 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11675 esac
11676
11677 $ac_path_FGREP_found && break 3
11678 done
11679 done
11680 done
11681 IFS=$as_save_IFS
11682 if test -z "$ac_cv_path_FGREP"; then
11683 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11684 fi
11685 else
11686 ac_cv_path_FGREP=$FGREP
11687 fi
11688
11689 fi
11690 fi
11691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
11692 printf "%s\n" "$ac_cv_path_FGREP" >&6; }
11693 FGREP="$ac_cv_path_FGREP"
11694
11695
11696 test -z "$GREP" && GREP=grep
11697
11698
11699
11700
11701
11702
11703
11704
11705
11706
11707
11708
11709
11710
11711
11712
11713
11714
11715
11716 # Check whether --with-gnu-ld was given.
11717 if test ${with_gnu_ld+y}
11718 then :
11719 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
11720 else $as_nop
11721 with_gnu_ld=no
11722 fi
11723
11724 ac_prog=ld
11725 if test yes = "$GCC"; then
11726 # Check if gcc -print-prog-name=ld gives a path.
11727 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
11728 printf %s "checking for ld used by $CC... " >&6; }
11729 case $host in
11730 *-*-mingw*)
11731 # gcc leaves a trailing carriage return, which upsets mingw
11732 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11733 *)
11734 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11735 esac
11736 case $ac_prog in
11737 # Accept absolute paths.
11738 [\\/]* | ?:[\\/]*)
11739 re_direlt='/[^/][^/]*/\.\./'
11740 # Canonicalize the pathname of ld
11741 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
11742 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
11743 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
11744 done
11745 test -z "$LD" && LD=$ac_prog
11746 ;;
11747 "")
11748 # If it fails, then pretend we aren't using GCC.
11749 ac_prog=ld
11750 ;;
11751 *)
11752 # If it is relative, then search for the first ld in PATH.
11753 with_gnu_ld=unknown
11754 ;;
11755 esac
11756 elif test yes = "$with_gnu_ld"; then
11757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11758 printf %s "checking for GNU ld... " >&6; }
11759 else
11760 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11761 printf %s "checking for non-GNU ld... " >&6; }
11762 fi
11763 if test ${lt_cv_path_LD+y}
11764 then :
11765 printf %s "(cached) " >&6
11766 else $as_nop
11767 if test -z "$LD"; then
11768 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11769 for ac_dir in $PATH; do
11770 IFS=$lt_save_ifs
11771 test -z "$ac_dir" && ac_dir=.
11772 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11773 lt_cv_path_LD=$ac_dir/$ac_prog
11774 # Check to see if the program is GNU ld. I'd rather use --version,
11775 # but apparently some variants of GNU ld only accept -v.
11776 # Break only if it was the GNU/non-GNU ld that we prefer.
11777 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11778 *GNU* | *'with BFD'*)
11779 test no != "$with_gnu_ld" && break
11780 ;;
11781 *)
11782 test yes != "$with_gnu_ld" && break
11783 ;;
11784 esac
11785 fi
11786 done
11787 IFS=$lt_save_ifs
11788 else
11789 lt_cv_path_LD=$LD # Let the user override the test with a path.
11790 fi
11791 fi
11792
11793 LD=$lt_cv_path_LD
11794 if test -n "$LD"; then
11795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11796 printf "%s\n" "$LD" >&6; }
11797 else
11798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11799 printf "%s\n" "no" >&6; }
11800 fi
11801 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
11802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11803 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
11804 if test ${lt_cv_prog_gnu_ld+y}
11805 then :
11806 printf %s "(cached) " >&6
11807 else $as_nop
11808 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11809 case `$LD -v 2>&1 </dev/null` in
11810 *GNU* | *'with BFD'*)
11811 lt_cv_prog_gnu_ld=yes
11812 ;;
11813 *)
11814 lt_cv_prog_gnu_ld=no
11815 ;;
11816 esac
11817 fi
11818 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
11819 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
11820 with_gnu_ld=$lt_cv_prog_gnu_ld
11821
11822
11823
11824
11825
11826
11827
11828
11829
11830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
11831 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
11832 if test ${lt_cv_path_NM+y}
11833 then :
11834 printf %s "(cached) " >&6
11835 else $as_nop
11836 if test -n "$NM"; then
11837 # Let the user override the test.
11838 lt_cv_path_NM=$NM
11839 else
11840 lt_nm_to_check=${ac_tool_prefix}nm
11841 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
11842 lt_nm_to_check="$lt_nm_to_check nm"
11843 fi
11844 for lt_tmp_nm in $lt_nm_to_check; do
11845 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11846 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
11847 IFS=$lt_save_ifs
11848 test -z "$ac_dir" && ac_dir=.
11849 tmp_nm=$ac_dir/$lt_tmp_nm
11850 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
11851 # Check to see if the nm accepts a BSD-compat flag.
11852 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
11853 # nm: unknown option "B" ignored
11854 # Tru64's nm complains that /dev/null is an invalid object file
11855 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
11856 case $build_os in
11857 mingw*) lt_bad_file=conftest.nm/nofile ;;
11858 *) lt_bad_file=/dev/null ;;
11859 esac
11860 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
11861 *$lt_bad_file* | *'Invalid file or object type'*)
11862 lt_cv_path_NM="$tmp_nm -B"
11863 break 2
11864 ;;
11865 *)
11866 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
11867 */dev/null*)
11868 lt_cv_path_NM="$tmp_nm -p"
11869 break 2
11870 ;;
11871 *)
11872 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
11873 continue # so that we can try to find one that supports BSD flags
11874 ;;
11875 esac
11876 ;;
11877 esac
11878 fi
11879 done
11880 IFS=$lt_save_ifs
11881 done
11882 : ${lt_cv_path_NM=no}
11883 fi
11884 fi
11885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
11886 printf "%s\n" "$lt_cv_path_NM" >&6; }
11887 if test no != "$lt_cv_path_NM"; then
11888 NM=$lt_cv_path_NM
11889 else
11890 # Didn't find any BSD compatible name lister, look for dumpbin.
11891 if test -n "$DUMPBIN"; then :
11892 # Let the user override the test.
11893 else
11894 if test -n "$ac_tool_prefix"; then
11895 for ac_prog in dumpbin "link -dump"
11896 do
11897 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11898 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11900 printf %s "checking for $ac_word... " >&6; }
11901 if test ${ac_cv_prog_DUMPBIN+y}
11902 then :
11903 printf %s "(cached) " >&6
11904 else $as_nop
11905 if test -n "$DUMPBIN"; then
11906 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
11907 else
11908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11909 for as_dir in $PATH
11910 do
11911 IFS=$as_save_IFS
11912 case $as_dir in #(((
11913 '') as_dir=./ ;;
11914 */) ;;
11915 *) as_dir=$as_dir/ ;;
11916 esac
11917 for ac_exec_ext in '' $ac_executable_extensions; do
11918 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11919 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
11920 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11921 break 2
11922 fi
11923 done
11924 done
11925 IFS=$as_save_IFS
11926
11927 fi
11928 fi
11929 DUMPBIN=$ac_cv_prog_DUMPBIN
11930 if test -n "$DUMPBIN"; then
11931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
11932 printf "%s\n" "$DUMPBIN" >&6; }
11933 else
11934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11935 printf "%s\n" "no" >&6; }
11936 fi
11937
11938
11939 test -n "$DUMPBIN" && break
11940 done
11941 fi
11942 if test -z "$DUMPBIN"; then
11943 ac_ct_DUMPBIN=$DUMPBIN
11944 for ac_prog in dumpbin "link -dump"
11945 do
11946 # Extract the first word of "$ac_prog", so it can be a program name with args.
11947 set dummy $ac_prog; ac_word=$2
11948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11949 printf %s "checking for $ac_word... " >&6; }
11950 if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
11951 then :
11952 printf %s "(cached) " >&6
11953 else $as_nop
11954 if test -n "$ac_ct_DUMPBIN"; then
11955 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
11956 else
11957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11958 for as_dir in $PATH
11959 do
11960 IFS=$as_save_IFS
11961 case $as_dir in #(((
11962 '') as_dir=./ ;;
11963 */) ;;
11964 *) as_dir=$as_dir/ ;;
11965 esac
11966 for ac_exec_ext in '' $ac_executable_extensions; do
11967 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11968 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
11969 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11970 break 2
11971 fi
11972 done
11973 done
11974 IFS=$as_save_IFS
11975
11976 fi
11977 fi
11978 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
11979 if test -n "$ac_ct_DUMPBIN"; then
11980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
11981 printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
11982 else
11983 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11984 printf "%s\n" "no" >&6; }
11985 fi
11986
11987
11988 test -n "$ac_ct_DUMPBIN" && break
11989 done
11990
11991 if test "x$ac_ct_DUMPBIN" = x; then
11992 DUMPBIN=":"
11993 else
11994 case $cross_compiling:$ac_tool_warned in
11995 yes:)
11996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11997 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11998 ac_tool_warned=yes ;;
11999 esac
12000 DUMPBIN=$ac_ct_DUMPBIN
12001 fi
12002 fi
12003
12004 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
12005 *COFF*)
12006 DUMPBIN="$DUMPBIN -symbols -headers"
12007 ;;
12008 *)
12009 DUMPBIN=:
12010 ;;
12011 esac
12012 fi
12013
12014 if test : != "$DUMPBIN"; then
12015 NM=$DUMPBIN
12016 fi
12017 fi
12018 test -z "$NM" && NM=nm
12019
12020
12021
12022
12023
12024
12025 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
12026 printf %s "checking the name lister ($NM) interface... " >&6; }
12027 if test ${lt_cv_nm_interface+y}
12028 then :
12029 printf %s "(cached) " >&6
12030 else $as_nop
12031 lt_cv_nm_interface="BSD nm"
12032 echo "int some_variable = 0;" > conftest.$ac_ext
12033 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
12034 (eval "$ac_compile" 2>conftest.err)
12035 cat conftest.err >&5
12036 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
12037 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
12038 cat conftest.err >&5
12039 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
12040 cat conftest.out >&5
12041 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
12042 lt_cv_nm_interface="MS dumpbin"
12043 fi
12044 rm -f conftest*
12045 fi
12046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
12047 printf "%s\n" "$lt_cv_nm_interface" >&6; }
12048
12049 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
12050 printf %s "checking whether ln -s works... " >&6; }
12051 LN_S=$as_ln_s
12052 if test "$LN_S" = "ln -s"; then
12053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12054 printf "%s\n" "yes" >&6; }
12055 else
12056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
12057 printf "%s\n" "no, using $LN_S" >&6; }
12058 fi
12059
12060 # find the maximum length of command line arguments
12061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
12062 printf %s "checking the maximum length of command line arguments... " >&6; }
12063 if test ${lt_cv_sys_max_cmd_len+y}
12064 then :
12065 printf %s "(cached) " >&6
12066 else $as_nop
12067 i=0
12068 teststring=ABCD
12069
12070 case $build_os in
12071 msdosdjgpp*)
12072 # On DJGPP, this test can blow up pretty badly due to problems in libc
12073 # (any single argument exceeding 2000 bytes causes a buffer overrun
12074 # during glob expansion). Even if it were fixed, the result of this
12075 # check would be larger than it should be.
12076 lt_cv_sys_max_cmd_len=12288; # 12K is about right
12077 ;;
12078
12079 gnu*)
12080 # Under GNU Hurd, this test is not required because there is
12081 # no limit to the length of command line arguments.
12082 # Libtool will interpret -1 as no limit whatsoever
12083 lt_cv_sys_max_cmd_len=-1;
12084 ;;
12085
12086 cygwin* | mingw* | cegcc*)
12087 # On Win9x/ME, this test blows up -- it succeeds, but takes
12088 # about 5 minutes as the teststring grows exponentially.
12089 # Worse, since 9x/ME are not pre-emptively multitasking,
12090 # you end up with a "frozen" computer, even though with patience
12091 # the test eventually succeeds (with a max line length of 256k).
12092 # Instead, let's just punt: use the minimum linelength reported by
12093 # all of the supported platforms: 8192 (on NT/2K/XP).
12094 lt_cv_sys_max_cmd_len=8192;
12095 ;;
12096
12097 mint*)
12098 # On MiNT this can take a long time and run out of memory.
12099 lt_cv_sys_max_cmd_len=8192;
12100 ;;
12101
12102 amigaos*)
12103 # On AmigaOS with pdksh, this test takes hours, literally.
12104 # So we just punt and use a minimum line length of 8192.
12105 lt_cv_sys_max_cmd_len=8192;
12106 ;;
12107
12108 bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
12109 # This has been around since 386BSD, at least. Likely further.
12110 if test -x /sbin/sysctl; then
12111 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
12112 elif test -x /usr/sbin/sysctl; then
12113 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
12114 else
12115 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
12116 fi
12117 # And add a safety zone
12118 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12119 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12120 ;;
12121
12122 interix*)
12123 # We know the value 262144 and hardcode it with a safety zone (like BSD)
12124 lt_cv_sys_max_cmd_len=196608
12125 ;;
12126
12127 os2*)
12128 # The test takes a long time on OS/2.
12129 lt_cv_sys_max_cmd_len=8192
12130 ;;
12131
12132 osf*)
12133 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
12134 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
12135 # nice to cause kernel panics so lets avoid the loop below.
12136 # First set a reasonable default.
12137 lt_cv_sys_max_cmd_len=16384
12138 #
12139 if test -x /sbin/sysconfig; then
12140 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
12141 *1*) lt_cv_sys_max_cmd_len=-1 ;;
12142 esac
12143 fi
12144 ;;
12145 sco3.2v5*)
12146 lt_cv_sys_max_cmd_len=102400
12147 ;;
12148 sysv5* | sco5v6* | sysv4.2uw2*)
12149 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
12150 if test -n "$kargmax"; then
12151 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'`
12152 else
12153 lt_cv_sys_max_cmd_len=32768
12154 fi
12155 ;;
12156 *)
12157 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
12158 if test -n "$lt_cv_sys_max_cmd_len" && \
12159 test undefined != "$lt_cv_sys_max_cmd_len"; then
12160 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12161 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12162 else
12163 # Make teststring a little bigger before we do anything with it.
12164 # a 1K string should be a reasonable start.
12165 for i in 1 2 3 4 5 6 7 8; do
12166 teststring=$teststring$teststring
12167 done
12168 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
12169 # If test is not a shell built-in, we'll probably end up computing a
12170 # maximum length that is only half of the actual maximum length, but
12171 # we can't tell.
12172 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
12173 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
12174 test 17 != "$i" # 1/2 MB should be enough
12175 do
12176 i=`expr $i + 1`
12177 teststring=$teststring$teststring
12178 done
12179 # Only check the string length outside the loop.
12180 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
12181 teststring=
12182 # Add a significant safety factor because C++ compilers can tack on
12183 # massive amounts of additional arguments before passing them to the
12184 # linker. It appears as though 1/2 is a usable value.
12185 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
12186 fi
12187 ;;
12188 esac
12189
12190 fi
12191
12192 if test -n "$lt_cv_sys_max_cmd_len"; then
12193 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
12194 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
12195 else
12196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
12197 printf "%s\n" "none" >&6; }
12198 fi
12199 max_cmd_len=$lt_cv_sys_max_cmd_len
12200
12201
12202
12203
12204
12205
12206 : ${CP="cp -f"}
12207 : ${MV="mv -f"}
12208 : ${RM="rm -f"}
12209
12210 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12211 lt_unset=unset
12212 else
12213 lt_unset=false
12214 fi
12215
12216
12217
12218
12219
12220 # test EBCDIC or ASCII
12221 case `echo X|tr X '\101'` in
12222 A) # ASCII based system
12223 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
12224 lt_SP2NL='tr \040 \012'
12225 lt_NL2SP='tr \015\012 \040\040'
12226 ;;
12227 *) # EBCDIC based system
12228 lt_SP2NL='tr \100 \n'
12229 lt_NL2SP='tr \r\n \100\100'
12230 ;;
12231 esac
12232
12233
12234
12235
12236
12237
12238
12239
12240
12241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
12242 printf %s "checking how to convert $build file names to $host format... " >&6; }
12243 if test ${lt_cv_to_host_file_cmd+y}
12244 then :
12245 printf %s "(cached) " >&6
12246 else $as_nop
12247 case $host in
12248 *-*-mingw* )
12249 case $build in
12250 *-*-mingw* ) # actually msys
12251 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
12252 ;;
12253 *-*-cygwin* )
12254 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
12255 ;;
12256 * ) # otherwise, assume *nix
12257 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
12258 ;;
12259 esac
12260 ;;
12261 *-*-cygwin* )
12262 case $build in
12263 *-*-mingw* ) # actually msys
12264 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
12265 ;;
12266 *-*-cygwin* )
12267 lt_cv_to_host_file_cmd=func_convert_file_noop
12268 ;;
12269 * ) # otherwise, assume *nix
12270 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
12271 ;;
12272 esac
12273 ;;
12274 * ) # unhandled hosts (and "normal" native builds)
12275 lt_cv_to_host_file_cmd=func_convert_file_noop
12276 ;;
12277 esac
12278
12279 fi
12280
12281 to_host_file_cmd=$lt_cv_to_host_file_cmd
12282 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
12283 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
12284
12285
12286
12287
12288
12289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
12290 printf %s "checking how to convert $build file names to toolchain format... " >&6; }
12291 if test ${lt_cv_to_tool_file_cmd+y}
12292 then :
12293 printf %s "(cached) " >&6
12294 else $as_nop
12295 #assume ordinary cross tools, or native build.
12296 lt_cv_to_tool_file_cmd=func_convert_file_noop
12297 case $host in
12298 *-*-mingw* )
12299 case $build in
12300 *-*-mingw* ) # actually msys
12301 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
12302 ;;
12303 esac
12304 ;;
12305 esac
12306
12307 fi
12308
12309 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
12310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
12311 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
12312
12313
12314
12315
12316
12317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
12318 printf %s "checking for $LD option to reload object files... " >&6; }
12319 if test ${lt_cv_ld_reload_flag+y}
12320 then :
12321 printf %s "(cached) " >&6
12322 else $as_nop
12323 lt_cv_ld_reload_flag='-r'
12324 fi
12325 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
12326 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
12327 reload_flag=$lt_cv_ld_reload_flag
12328 case $reload_flag in
12329 "" | " "*) ;;
12330 *) reload_flag=" $reload_flag" ;;
12331 esac
12332 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12333 case $host_os in
12334 cygwin* | mingw* | pw32* | cegcc*)
12335 if test yes != "$GCC"; then
12336 reload_cmds=false
12337 fi
12338 ;;
12339 darwin*)
12340 if test yes = "$GCC"; then
12341 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
12342 else
12343 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12344 fi
12345 ;;
12346 esac
12347
12348
12349
12350
12351
12352
12353
12354
12355
12356 if test -n "$ac_tool_prefix"; then
12357 # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args.
12358 set dummy ${ac_tool_prefix}file; ac_word=$2
12359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12360 printf %s "checking for $ac_word... " >&6; }
12361 if test ${ac_cv_prog_FILECMD+y}
12362 then :
12363 printf %s "(cached) " >&6
12364 else $as_nop
12365 if test -n "$FILECMD"; then
12366 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
12367 else
12368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12369 for as_dir in $PATH
12370 do
12371 IFS=$as_save_IFS
12372 case $as_dir in #(((
12373 '') as_dir=./ ;;
12374 */) ;;
12375 *) as_dir=$as_dir/ ;;
12376 esac
12377 for ac_exec_ext in '' $ac_executable_extensions; do
12378 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12379 ac_cv_prog_FILECMD="${ac_tool_prefix}file"
12380 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12381 break 2
12382 fi
12383 done
12384 done
12385 IFS=$as_save_IFS
12386
12387 fi
12388 fi
12389 FILECMD=$ac_cv_prog_FILECMD
12390 if test -n "$FILECMD"; then
12391 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
12392 printf "%s\n" "$FILECMD" >&6; }
12393 else
12394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12395 printf "%s\n" "no" >&6; }
12396 fi
12397
12398
12399 fi
12400 if test -z "$ac_cv_prog_FILECMD"; then
12401 ac_ct_FILECMD=$FILECMD
12402 # Extract the first word of "file", so it can be a program name with args.
12403 set dummy file; ac_word=$2
12404 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12405 printf %s "checking for $ac_word... " >&6; }
12406 if test ${ac_cv_prog_ac_ct_FILECMD+y}
12407 then :
12408 printf %s "(cached) " >&6
12409 else $as_nop
12410 if test -n "$ac_ct_FILECMD"; then
12411 ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test.
12412 else
12413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12414 for as_dir in $PATH
12415 do
12416 IFS=$as_save_IFS
12417 case $as_dir in #(((
12418 '') as_dir=./ ;;
12419 */) ;;
12420 *) as_dir=$as_dir/ ;;
12421 esac
12422 for ac_exec_ext in '' $ac_executable_extensions; do
12423 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12424 ac_cv_prog_ac_ct_FILECMD="file"
12425 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12426 break 2
12427 fi
12428 done
12429 done
12430 IFS=$as_save_IFS
12431
12432 fi
12433 fi
12434 ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD
12435 if test -n "$ac_ct_FILECMD"; then
12436 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5
12437 printf "%s\n" "$ac_ct_FILECMD" >&6; }
12438 else
12439 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12440 printf "%s\n" "no" >&6; }
12441 fi
12442
12443 if test "x$ac_ct_FILECMD" = x; then
12444 FILECMD=":"
12445 else
12446 case $cross_compiling:$ac_tool_warned in
12447 yes:)
12448 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12449 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12450 ac_tool_warned=yes ;;
12451 esac
12452 FILECMD=$ac_ct_FILECMD
12453 fi
12454 else
12455 FILECMD="$ac_cv_prog_FILECMD"
12456 fi
12457
12458
12459
12460
12461
12462
12463
12464 if test -n "$ac_tool_prefix"; then
12465 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
12466 set dummy ${ac_tool_prefix}objdump; ac_word=$2
12467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12468 printf %s "checking for $ac_word... " >&6; }
12469 if test ${ac_cv_prog_OBJDUMP+y}
12470 then :
12471 printf %s "(cached) " >&6
12472 else $as_nop
12473 if test -n "$OBJDUMP"; then
12474 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12475 else
12476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12477 for as_dir in $PATH
12478 do
12479 IFS=$as_save_IFS
12480 case $as_dir in #(((
12481 '') as_dir=./ ;;
12482 */) ;;
12483 *) as_dir=$as_dir/ ;;
12484 esac
12485 for ac_exec_ext in '' $ac_executable_extensions; do
12486 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12487 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
12488 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12489 break 2
12490 fi
12491 done
12492 done
12493 IFS=$as_save_IFS
12494
12495 fi
12496 fi
12497 OBJDUMP=$ac_cv_prog_OBJDUMP
12498 if test -n "$OBJDUMP"; then
12499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12500 printf "%s\n" "$OBJDUMP" >&6; }
12501 else
12502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12503 printf "%s\n" "no" >&6; }
12504 fi
12505
12506
12507 fi
12508 if test -z "$ac_cv_prog_OBJDUMP"; then
12509 ac_ct_OBJDUMP=$OBJDUMP
12510 # Extract the first word of "objdump", so it can be a program name with args.
12511 set dummy objdump; ac_word=$2
12512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12513 printf %s "checking for $ac_word... " >&6; }
12514 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
12515 then :
12516 printf %s "(cached) " >&6
12517 else $as_nop
12518 if test -n "$ac_ct_OBJDUMP"; then
12519 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
12520 else
12521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12522 for as_dir in $PATH
12523 do
12524 IFS=$as_save_IFS
12525 case $as_dir in #(((
12526 '') as_dir=./ ;;
12527 */) ;;
12528 *) as_dir=$as_dir/ ;;
12529 esac
12530 for ac_exec_ext in '' $ac_executable_extensions; do
12531 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12532 ac_cv_prog_ac_ct_OBJDUMP="objdump"
12533 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12534 break 2
12535 fi
12536 done
12537 done
12538 IFS=$as_save_IFS
12539
12540 fi
12541 fi
12542 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
12543 if test -n "$ac_ct_OBJDUMP"; then
12544 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
12545 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
12546 else
12547 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12548 printf "%s\n" "no" >&6; }
12549 fi
12550
12551 if test "x$ac_ct_OBJDUMP" = x; then
12552 OBJDUMP="false"
12553 else
12554 case $cross_compiling:$ac_tool_warned in
12555 yes:)
12556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12557 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12558 ac_tool_warned=yes ;;
12559 esac
12560 OBJDUMP=$ac_ct_OBJDUMP
12561 fi
12562 else
12563 OBJDUMP="$ac_cv_prog_OBJDUMP"
12564 fi
12565
12566 test -z "$OBJDUMP" && OBJDUMP=objdump
12567
12568
12569
12570
12571
12572
12573
12574
12575
12576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
12577 printf %s "checking how to recognize dependent libraries... " >&6; }
12578 if test ${lt_cv_deplibs_check_method+y}
12579 then :
12580 printf %s "(cached) " >&6
12581 else $as_nop
12582 lt_cv_file_magic_cmd='$MAGIC_CMD'
12583 lt_cv_file_magic_test_file=
12584 lt_cv_deplibs_check_method='unknown'
12585 # Need to set the preceding variable on all platforms that support
12586 # interlibrary dependencies.
12587 # 'none' -- dependencies not supported.
12588 # 'unknown' -- same as none, but documents that we really don't know.
12589 # 'pass_all' -- all dependencies passed with no checks.
12590 # 'test_compile' -- check by making test program.
12591 # 'file_magic [[regex]]' -- check by looking for files in library path
12592 # that responds to the $file_magic_cmd with a given extended regex.
12593 # If you have 'file' or equivalent on your system and you're not sure
12594 # whether 'pass_all' will *always* work, you probably want this one.
12595
12596 case $host_os in
12597 aix[4-9]*)
12598 lt_cv_deplibs_check_method=pass_all
12599 ;;
12600
12601 beos*)
12602 lt_cv_deplibs_check_method=pass_all
12603 ;;
12604
12605 bsdi[45]*)
12606 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12607 lt_cv_file_magic_cmd='$FILECMD -L'
12608 lt_cv_file_magic_test_file=/shlib/libc.so
12609 ;;
12610
12611 cygwin*)
12612 # func_win32_libid is a shell function defined in ltmain.sh
12613 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12614 lt_cv_file_magic_cmd='func_win32_libid'
12615 ;;
12616
12617 mingw* | pw32*)
12618 # Base MSYS/MinGW do not provide the 'file' command needed by
12619 # func_win32_libid shell function, so use a weaker test based on 'objdump',
12620 # unless we find 'file', for example because we are cross-compiling.
12621 if ( file / ) >/dev/null 2>&1; then
12622 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12623 lt_cv_file_magic_cmd='func_win32_libid'
12624 else
12625 # Keep this pattern in sync with the one in func_win32_libid.
12626 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
12627 lt_cv_file_magic_cmd='$OBJDUMP -f'
12628 fi
12629 ;;
12630
12631 cegcc*)
12632 # use the weaker test based on 'objdump'. See mingw*.
12633 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
12634 lt_cv_file_magic_cmd='$OBJDUMP -f'
12635 ;;
12636
12637 darwin* | rhapsody*)
12638 lt_cv_deplibs_check_method=pass_all
12639 ;;
12640
12641 freebsd* | dragonfly* | midnightbsd*)
12642 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12643 case $host_cpu in
12644 i*86 )
12645 # Not sure whether the presence of OpenBSD here was a mistake.
12646 # Let's accept both of them until this is cleared up.
12647 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12648 lt_cv_file_magic_cmd=$FILECMD
12649 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12650 ;;
12651 esac
12652 else
12653 lt_cv_deplibs_check_method=pass_all
12654 fi
12655 ;;
12656
12657 haiku*)
12658 lt_cv_deplibs_check_method=pass_all
12659 ;;
12660
12661 hpux10.20* | hpux11*)
12662 lt_cv_file_magic_cmd=$FILECMD
12663 case $host_cpu in
12664 ia64*)
12665 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12666 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12667 ;;
12668 hppa*64*)
12669 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]'
12670 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12671 ;;
12672 *)
12673 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
12674 lt_cv_file_magic_test_file=/usr/lib/libc.sl
12675 ;;
12676 esac
12677 ;;
12678
12679 interix[3-9]*)
12680 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12681 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12682 ;;
12683
12684 irix5* | irix6* | nonstopux*)
12685 case $LD in
12686 *-32|*"-32 ") libmagic=32-bit;;
12687 *-n32|*"-n32 ") libmagic=N32;;
12688 *-64|*"-64 ") libmagic=64-bit;;
12689 *) libmagic=never-match;;
12690 esac
12691 lt_cv_deplibs_check_method=pass_all
12692 ;;
12693
12694 # This must be glibc/ELF.
12695 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12696 lt_cv_deplibs_check_method=pass_all
12697 ;;
12698
12699 netbsd*)
12700 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12701 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12702 else
12703 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12704 fi
12705 ;;
12706
12707 newos6*)
12708 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12709 lt_cv_file_magic_cmd=$FILECMD
12710 lt_cv_file_magic_test_file=/usr/lib/libnls.so
12711 ;;
12712
12713 *nto* | *qnx*)
12714 lt_cv_deplibs_check_method=pass_all
12715 ;;
12716
12717 openbsd* | bitrig*)
12718 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12719 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12720 else
12721 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12722 fi
12723 ;;
12724
12725 osf3* | osf4* | osf5*)
12726 lt_cv_deplibs_check_method=pass_all
12727 ;;
12728
12729 rdos*)
12730 lt_cv_deplibs_check_method=pass_all
12731 ;;
12732
12733 solaris*)
12734 lt_cv_deplibs_check_method=pass_all
12735 ;;
12736
12737 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12738 lt_cv_deplibs_check_method=pass_all
12739 ;;
12740
12741 sysv4 | sysv4.3*)
12742 case $host_vendor in
12743 motorola)
12744 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]'
12745 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12746 ;;
12747 ncr)
12748 lt_cv_deplibs_check_method=pass_all
12749 ;;
12750 sequent)
12751 lt_cv_file_magic_cmd='/bin/file'
12752 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12753 ;;
12754 sni)
12755 lt_cv_file_magic_cmd='/bin/file'
12756 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12757 lt_cv_file_magic_test_file=/lib/libc.so
12758 ;;
12759 siemens)
12760 lt_cv_deplibs_check_method=pass_all
12761 ;;
12762 pc)
12763 lt_cv_deplibs_check_method=pass_all
12764 ;;
12765 esac
12766 ;;
12767
12768 tpf*)
12769 lt_cv_deplibs_check_method=pass_all
12770 ;;
12771 os2*)
12772 lt_cv_deplibs_check_method=pass_all
12773 ;;
12774 esac
12775
12776 fi
12777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
12778 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
12779
12780 file_magic_glob=
12781 want_nocaseglob=no
12782 if test "$build" = "$host"; then
12783 case $host_os in
12784 mingw* | pw32*)
12785 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
12786 want_nocaseglob=yes
12787 else
12788 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
12789 fi
12790 ;;
12791 esac
12792 fi
12793
12794 file_magic_cmd=$lt_cv_file_magic_cmd
12795 deplibs_check_method=$lt_cv_deplibs_check_method
12796 test -z "$deplibs_check_method" && deplibs_check_method=unknown
12797
12798
12799
12800
12801
12802
12803
12804
12805
12806
12807
12808
12809
12810
12811
12812
12813
12814
12815
12816
12817
12818
12819 if test -n "$ac_tool_prefix"; then
12820 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
12821 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
12822 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12823 printf %s "checking for $ac_word... " >&6; }
12824 if test ${ac_cv_prog_DLLTOOL+y}
12825 then :
12826 printf %s "(cached) " >&6
12827 else $as_nop
12828 if test -n "$DLLTOOL"; then
12829 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
12830 else
12831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12832 for as_dir in $PATH
12833 do
12834 IFS=$as_save_IFS
12835 case $as_dir in #(((
12836 '') as_dir=./ ;;
12837 */) ;;
12838 *) as_dir=$as_dir/ ;;
12839 esac
12840 for ac_exec_ext in '' $ac_executable_extensions; do
12841 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12842 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
12843 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12844 break 2
12845 fi
12846 done
12847 done
12848 IFS=$as_save_IFS
12849
12850 fi
12851 fi
12852 DLLTOOL=$ac_cv_prog_DLLTOOL
12853 if test -n "$DLLTOOL"; then
12854 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
12855 printf "%s\n" "$DLLTOOL" >&6; }
12856 else
12857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12858 printf "%s\n" "no" >&6; }
12859 fi
12860
12861
12862 fi
12863 if test -z "$ac_cv_prog_DLLTOOL"; then
12864 ac_ct_DLLTOOL=$DLLTOOL
12865 # Extract the first word of "dlltool", so it can be a program name with args.
12866 set dummy dlltool; ac_word=$2
12867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12868 printf %s "checking for $ac_word... " >&6; }
12869 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
12870 then :
12871 printf %s "(cached) " >&6
12872 else $as_nop
12873 if test -n "$ac_ct_DLLTOOL"; then
12874 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
12875 else
12876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12877 for as_dir in $PATH
12878 do
12879 IFS=$as_save_IFS
12880 case $as_dir in #(((
12881 '') as_dir=./ ;;
12882 */) ;;
12883 *) as_dir=$as_dir/ ;;
12884 esac
12885 for ac_exec_ext in '' $ac_executable_extensions; do
12886 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12887 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
12888 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12889 break 2
12890 fi
12891 done
12892 done
12893 IFS=$as_save_IFS
12894
12895 fi
12896 fi
12897 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
12898 if test -n "$ac_ct_DLLTOOL"; then
12899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
12900 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
12901 else
12902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12903 printf "%s\n" "no" >&6; }
12904 fi
12905
12906 if test "x$ac_ct_DLLTOOL" = x; then
12907 DLLTOOL="false"
12908 else
12909 case $cross_compiling:$ac_tool_warned in
12910 yes:)
12911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12912 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12913 ac_tool_warned=yes ;;
12914 esac
12915 DLLTOOL=$ac_ct_DLLTOOL
12916 fi
12917 else
12918 DLLTOOL="$ac_cv_prog_DLLTOOL"
12919 fi
12920
12921 test -z "$DLLTOOL" && DLLTOOL=dlltool
12922
12923
12924
12925
12926
12927
12928
12929
12930
12931
12932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
12933 printf %s "checking how to associate runtime and link libraries... " >&6; }
12934 if test ${lt_cv_sharedlib_from_linklib_cmd+y}
12935 then :
12936 printf %s "(cached) " >&6
12937 else $as_nop
12938 lt_cv_sharedlib_from_linklib_cmd='unknown'
12939
12940 case $host_os in
12941 cygwin* | mingw* | pw32* | cegcc*)
12942 # two different shell functions defined in ltmain.sh;
12943 # decide which one to use based on capabilities of $DLLTOOL
12944 case `$DLLTOOL --help 2>&1` in
12945 *--identify-strict*)
12946 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
12947 ;;
12948 *)
12949 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
12950 ;;
12951 esac
12952 ;;
12953 *)
12954 # fallback: assume linklib IS sharedlib
12955 lt_cv_sharedlib_from_linklib_cmd=$ECHO
12956 ;;
12957 esac
12958
12959 fi
12960 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
12961 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
12962 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
12963 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
12964
12965
12966
12967
12968
12969
12970
12971 if test -n "$ac_tool_prefix"; then
12972 for ac_prog in ar
12973 do
12974 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12975 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12976 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12977 printf %s "checking for $ac_word... " >&6; }
12978 if test ${ac_cv_prog_AR+y}
12979 then :
12980 printf %s "(cached) " >&6
12981 else $as_nop
12982 if test -n "$AR"; then
12983 ac_cv_prog_AR="$AR" # Let the user override the test.
12984 else
12985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12986 for as_dir in $PATH
12987 do
12988 IFS=$as_save_IFS
12989 case $as_dir in #(((
12990 '') as_dir=./ ;;
12991 */) ;;
12992 *) as_dir=$as_dir/ ;;
12993 esac
12994 for ac_exec_ext in '' $ac_executable_extensions; do
12995 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12996 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
12997 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12998 break 2
12999 fi
13000 done
13001 done
13002 IFS=$as_save_IFS
13003
13004 fi
13005 fi
13006 AR=$ac_cv_prog_AR
13007 if test -n "$AR"; then
13008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
13009 printf "%s\n" "$AR" >&6; }
13010 else
13011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13012 printf "%s\n" "no" >&6; }
13013 fi
13014
13015
13016 test -n "$AR" && break
13017 done
13018 fi
13019 if test -z "$AR"; then
13020 ac_ct_AR=$AR
13021 for ac_prog in ar
13022 do
13023 # Extract the first word of "$ac_prog", so it can be a program name with args.
13024 set dummy $ac_prog; ac_word=$2
13025 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13026 printf %s "checking for $ac_word... " >&6; }
13027 if test ${ac_cv_prog_ac_ct_AR+y}
13028 then :
13029 printf %s "(cached) " >&6
13030 else $as_nop
13031 if test -n "$ac_ct_AR"; then
13032 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13033 else
13034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13035 for as_dir in $PATH
13036 do
13037 IFS=$as_save_IFS
13038 case $as_dir in #(((
13039 '') as_dir=./ ;;
13040 */) ;;
13041 *) as_dir=$as_dir/ ;;
13042 esac
13043 for ac_exec_ext in '' $ac_executable_extensions; do
13044 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13045 ac_cv_prog_ac_ct_AR="$ac_prog"
13046 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13047 break 2
13048 fi
13049 done
13050 done
13051 IFS=$as_save_IFS
13052
13053 fi
13054 fi
13055 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13056 if test -n "$ac_ct_AR"; then
13057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
13058 printf "%s\n" "$ac_ct_AR" >&6; }
13059 else
13060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13061 printf "%s\n" "no" >&6; }
13062 fi
13063
13064
13065 test -n "$ac_ct_AR" && break
13066 done
13067
13068 if test "x$ac_ct_AR" = x; then
13069 AR="false"
13070 else
13071 case $cross_compiling:$ac_tool_warned in
13072 yes:)
13073 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13074 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13075 ac_tool_warned=yes ;;
13076 esac
13077 AR=$ac_ct_AR
13078 fi
13079 fi
13080
13081 : ${AR=ar}
13082
13083
13084
13085
13086
13087
13088 # Use ARFLAGS variable as AR's operation code to sync the variable naming with
13089 # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
13090 # higher priority because thats what people were doing historically (setting
13091 # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS
13092 # variable obsoleted/removed.
13093
13094 test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
13095 lt_ar_flags=$AR_FLAGS
13096
13097
13098
13099
13100
13101
13102 # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override
13103 # by AR_FLAGS because that was never working and AR_FLAGS is about to die.
13104
13105
13106
13107
13108
13109
13110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
13111 printf %s "checking for archiver @FILE support... " >&6; }
13112 if test ${lt_cv_ar_at_file+y}
13113 then :
13114 printf %s "(cached) " >&6
13115 else $as_nop
13116 lt_cv_ar_at_file=no
13117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13118 /* end confdefs.h. */
13119
13120 int
13121 main (void)
13122 {
13123
13124 ;
13125 return 0;
13126 }
13127 _ACEOF
13128 if ac_fn_c_try_compile "$LINENO"
13129 then :
13130 echo conftest.$ac_objext > conftest.lst
13131 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
13132 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
13133 (eval $lt_ar_try) 2>&5
13134 ac_status=$?
13135 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13136 test $ac_status = 0; }
13137 if test 0 -eq "$ac_status"; then
13138 # Ensure the archiver fails upon bogus file names.
13139 rm -f conftest.$ac_objext libconftest.a
13140 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
13141 (eval $lt_ar_try) 2>&5
13142 ac_status=$?
13143 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13144 test $ac_status = 0; }
13145 if test 0 -ne "$ac_status"; then
13146 lt_cv_ar_at_file=@
13147 fi
13148 fi
13149 rm -f conftest.* libconftest.a
13150
13151 fi
13152 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13153
13154 fi
13155 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
13156 printf "%s\n" "$lt_cv_ar_at_file" >&6; }
13157
13158 if test no = "$lt_cv_ar_at_file"; then
13159 archiver_list_spec=
13160 else
13161 archiver_list_spec=$lt_cv_ar_at_file
13162 fi
13163
13164
13165
13166
13167
13168
13169
13170 if test -n "$ac_tool_prefix"; then
13171 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13172 set dummy ${ac_tool_prefix}strip; ac_word=$2
13173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13174 printf %s "checking for $ac_word... " >&6; }
13175 if test ${ac_cv_prog_STRIP+y}
13176 then :
13177 printf %s "(cached) " >&6
13178 else $as_nop
13179 if test -n "$STRIP"; then
13180 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13181 else
13182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13183 for as_dir in $PATH
13184 do
13185 IFS=$as_save_IFS
13186 case $as_dir in #(((
13187 '') as_dir=./ ;;
13188 */) ;;
13189 *) as_dir=$as_dir/ ;;
13190 esac
13191 for ac_exec_ext in '' $ac_executable_extensions; do
13192 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13193 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
13194 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13195 break 2
13196 fi
13197 done
13198 done
13199 IFS=$as_save_IFS
13200
13201 fi
13202 fi
13203 STRIP=$ac_cv_prog_STRIP
13204 if test -n "$STRIP"; then
13205 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
13206 printf "%s\n" "$STRIP" >&6; }
13207 else
13208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13209 printf "%s\n" "no" >&6; }
13210 fi
13211
13212
13213 fi
13214 if test -z "$ac_cv_prog_STRIP"; then
13215 ac_ct_STRIP=$STRIP
13216 # Extract the first word of "strip", so it can be a program name with args.
13217 set dummy strip; ac_word=$2
13218 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13219 printf %s "checking for $ac_word... " >&6; }
13220 if test ${ac_cv_prog_ac_ct_STRIP+y}
13221 then :
13222 printf %s "(cached) " >&6
13223 else $as_nop
13224 if test -n "$ac_ct_STRIP"; then
13225 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13226 else
13227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13228 for as_dir in $PATH
13229 do
13230 IFS=$as_save_IFS
13231 case $as_dir in #(((
13232 '') as_dir=./ ;;
13233 */) ;;
13234 *) as_dir=$as_dir/ ;;
13235 esac
13236 for ac_exec_ext in '' $ac_executable_extensions; do
13237 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13238 ac_cv_prog_ac_ct_STRIP="strip"
13239 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13240 break 2
13241 fi
13242 done
13243 done
13244 IFS=$as_save_IFS
13245
13246 fi
13247 fi
13248 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13249 if test -n "$ac_ct_STRIP"; then
13250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
13251 printf "%s\n" "$ac_ct_STRIP" >&6; }
13252 else
13253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13254 printf "%s\n" "no" >&6; }
13255 fi
13256
13257 if test "x$ac_ct_STRIP" = x; then
13258 STRIP=":"
13259 else
13260 case $cross_compiling:$ac_tool_warned in
13261 yes:)
13262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13263 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13264 ac_tool_warned=yes ;;
13265 esac
13266 STRIP=$ac_ct_STRIP
13267 fi
13268 else
13269 STRIP="$ac_cv_prog_STRIP"
13270 fi
13271
13272 test -z "$STRIP" && STRIP=:
13273
13274
13275
13276
13277
13278
13279 if test -n "$ac_tool_prefix"; then
13280 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13281 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13282 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13283 printf %s "checking for $ac_word... " >&6; }
13284 if test ${ac_cv_prog_RANLIB+y}
13285 then :
13286 printf %s "(cached) " >&6
13287 else $as_nop
13288 if test -n "$RANLIB"; then
13289 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13290 else
13291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13292 for as_dir in $PATH
13293 do
13294 IFS=$as_save_IFS
13295 case $as_dir in #(((
13296 '') as_dir=./ ;;
13297 */) ;;
13298 *) as_dir=$as_dir/ ;;
13299 esac
13300 for ac_exec_ext in '' $ac_executable_extensions; do
13301 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13302 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13303 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13304 break 2
13305 fi
13306 done
13307 done
13308 IFS=$as_save_IFS
13309
13310 fi
13311 fi
13312 RANLIB=$ac_cv_prog_RANLIB
13313 if test -n "$RANLIB"; then
13314 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
13315 printf "%s\n" "$RANLIB" >&6; }
13316 else
13317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13318 printf "%s\n" "no" >&6; }
13319 fi
13320
13321
13322 fi
13323 if test -z "$ac_cv_prog_RANLIB"; then
13324 ac_ct_RANLIB=$RANLIB
13325 # Extract the first word of "ranlib", so it can be a program name with args.
13326 set dummy ranlib; ac_word=$2
13327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13328 printf %s "checking for $ac_word... " >&6; }
13329 if test ${ac_cv_prog_ac_ct_RANLIB+y}
13330 then :
13331 printf %s "(cached) " >&6
13332 else $as_nop
13333 if test -n "$ac_ct_RANLIB"; then
13334 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13335 else
13336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13337 for as_dir in $PATH
13338 do
13339 IFS=$as_save_IFS
13340 case $as_dir in #(((
13341 '') as_dir=./ ;;
13342 */) ;;
13343 *) as_dir=$as_dir/ ;;
13344 esac
13345 for ac_exec_ext in '' $ac_executable_extensions; do
13346 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13347 ac_cv_prog_ac_ct_RANLIB="ranlib"
13348 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13349 break 2
13350 fi
13351 done
13352 done
13353 IFS=$as_save_IFS
13354
13355 fi
13356 fi
13357 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13358 if test -n "$ac_ct_RANLIB"; then
13359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
13360 printf "%s\n" "$ac_ct_RANLIB" >&6; }
13361 else
13362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13363 printf "%s\n" "no" >&6; }
13364 fi
13365
13366 if test "x$ac_ct_RANLIB" = x; then
13367 RANLIB=":"
13368 else
13369 case $cross_compiling:$ac_tool_warned in
13370 yes:)
13371 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13372 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13373 ac_tool_warned=yes ;;
13374 esac
13375 RANLIB=$ac_ct_RANLIB
13376 fi
13377 else
13378 RANLIB="$ac_cv_prog_RANLIB"
13379 fi
13380
13381 test -z "$RANLIB" && RANLIB=:
13382
13383
13384
13385
13386
13387
13388 # Determine commands to create old-style static archives.
13389 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
13390 old_postinstall_cmds='chmod 644 $oldlib'
13391 old_postuninstall_cmds=
13392
13393 if test -n "$RANLIB"; then
13394 case $host_os in
13395 bitrig* | openbsd*)
13396 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
13397 ;;
13398 *)
13399 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
13400 ;;
13401 esac
13402 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
13403 fi
13404
13405 case $host_os in
13406 darwin*)
13407 lock_old_archive_extraction=yes ;;
13408 *)
13409 lock_old_archive_extraction=no ;;
13410 esac
13411
13412
13413
13414
13415
13416
13417
13418
13419
13420
13421
13422
13423
13424
13425
13426
13427
13428
13429
13430
13431
13432
13433
13434
13435
13436
13437
13438
13439
13440
13441
13442
13443
13444
13445
13446
13447
13448
13449
13450 # If no C compiler was specified, use CC.
13451 LTCC=${LTCC-"$CC"}
13452
13453 # If no C compiler flags were specified, use CFLAGS.
13454 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13455
13456 # Allow CC to be a program name with arguments.
13457 compiler=$CC
13458
13459
13460 # Check for command to grab the raw symbol name followed by C symbol from nm.
13461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
13462 printf %s "checking command to parse $NM output from $compiler object... " >&6; }
13463 if test ${lt_cv_sys_global_symbol_pipe+y}
13464 then :
13465 printf %s "(cached) " >&6
13466 else $as_nop
13467
13468 # These are sane defaults that work on at least a few old systems.
13469 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
13470
13471 # Character class describing NM global symbol codes.
13472 symcode='[BCDEGRST]'
13473
13474 # Regexp to match symbols that can be accessed directly from C.
13475 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13476
13477 # Define system-specific variables.
13478 case $host_os in
13479 aix*)
13480 symcode='[BCDT]'
13481 ;;
13482 cygwin* | mingw* | pw32* | cegcc*)
13483 symcode='[ABCDGISTW]'
13484 ;;
13485 hpux*)
13486 if test ia64 = "$host_cpu"; then
13487 symcode='[ABCDEGRST]'
13488 fi
13489 ;;
13490 irix* | nonstopux*)
13491 symcode='[BCDEGRST]'
13492 ;;
13493 osf*)
13494 symcode='[BCDEGQRST]'
13495 ;;
13496 solaris*)
13497 symcode='[BDRT]'
13498 ;;
13499 sco3.2v5*)
13500 symcode='[DT]'
13501 ;;
13502 sysv4.2uw2*)
13503 symcode='[DT]'
13504 ;;
13505 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13506 symcode='[ABDT]'
13507 ;;
13508 sysv4)
13509 symcode='[DFNSTU]'
13510 ;;
13511 esac
13512
13513 # If we're using GNU nm, then use its standard symbol codes.
13514 case `$NM -V 2>&1` in
13515 *GNU* | *'with BFD'*)
13516 symcode='[ABCDGIRSTW]' ;;
13517 esac
13518
13519 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
13520 # Gets list of data symbols to import.
13521 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
13522 # Adjust the below global symbol transforms to fixup imported variables.
13523 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
13524 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
13525 lt_c_name_lib_hook="\
13526 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
13527 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
13528 else
13529 # Disable hooks by default.
13530 lt_cv_sys_global_symbol_to_import=
13531 lt_cdecl_hook=
13532 lt_c_name_hook=
13533 lt_c_name_lib_hook=
13534 fi
13535
13536 # Transform an extracted symbol line into a proper C declaration.
13537 # Some systems (esp. on ia64) link data and code symbols differently,
13538 # so use this general approach.
13539 lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
13540 $lt_cdecl_hook\
13541 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
13542 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
13543
13544 # Transform an extracted symbol line into symbol name and symbol address
13545 lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
13546 $lt_c_name_hook\
13547 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
13548 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
13549
13550 # Transform an extracted symbol line into symbol name with lib prefix and
13551 # symbol address.
13552 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
13553 $lt_c_name_lib_hook\
13554 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
13555 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
13556 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
13557
13558 # Handle CRLF in mingw tool chain
13559 opt_cr=
13560 case $build_os in
13561 mingw*)
13562 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13563 ;;
13564 esac
13565
13566 # Try without a prefix underscore, then with it.
13567 for ac_symprfx in "" "_"; do
13568
13569 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13570 symxfrm="\\1 $ac_symprfx\\2 \\2"
13571
13572 # Write the raw and C identifiers.
13573 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
13574 # Fake it for dumpbin and say T for any non-static function,
13575 # D for any global variable and I for any imported variable.
13576 # Also find C++ and __fastcall symbols from MSVC++ or ICC,
13577 # which start with @ or ?.
13578 lt_cv_sys_global_symbol_pipe="$AWK '"\
13579 " {last_section=section; section=\$ 3};"\
13580 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
13581 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
13582 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
13583 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
13584 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
13585 " \$ 0!~/External *\|/{next};"\
13586 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
13587 " {if(hide[section]) next};"\
13588 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
13589 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
13590 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
13591 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
13592 " ' prfx=^$ac_symprfx"
13593 else
13594 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13595 fi
13596 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
13597
13598 # Check to see that the pipe works correctly.
13599 pipe_works=no
13600
13601 rm -f conftest*
13602 cat > conftest.$ac_ext <<_LT_EOF
13603 #ifdef __cplusplus
13604 extern "C" {
13605 #endif
13606 char nm_test_var;
13607 void nm_test_func(void);
13608 void nm_test_func(void){}
13609 #ifdef __cplusplus
13610 }
13611 #endif
13612 int main(){nm_test_var='a';nm_test_func();return(0);}
13613 _LT_EOF
13614
13615 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13616 (eval $ac_compile) 2>&5
13617 ac_status=$?
13618 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13619 test $ac_status = 0; }; then
13620 # Now try to grab the symbols.
13621 nlist=conftest.nm
13622 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
13623 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
13624 ac_status=$?
13625 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13626 test $ac_status = 0; } && test -s "$nlist"; then
13627 # Try sorting and uniquifying the output.
13628 if sort "$nlist" | uniq > "$nlist"T; then
13629 mv -f "$nlist"T "$nlist"
13630 else
13631 rm -f "$nlist"T
13632 fi
13633
13634 # Make sure that we snagged all the symbols we need.
13635 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
13636 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
13637 cat <<_LT_EOF > conftest.$ac_ext
13638 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
13639 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
13640 /* DATA imports from DLLs on WIN32 can't be const, because runtime
13641 relocations are performed -- see ld's documentation on pseudo-relocs. */
13642 # define LT_DLSYM_CONST
13643 #elif defined __osf__
13644 /* This system does not cope well with relocations in const data. */
13645 # define LT_DLSYM_CONST
13646 #else
13647 # define LT_DLSYM_CONST const
13648 #endif
13649
13650 #ifdef __cplusplus
13651 extern "C" {
13652 #endif
13653
13654 _LT_EOF
13655 # Now generate the symbol file.
13656 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
13657
13658 cat <<_LT_EOF >> conftest.$ac_ext
13659
13660 /* The mapping between symbol names and symbols. */
13661 LT_DLSYM_CONST struct {
13662 const char *name;
13663 void *address;
13664 }
13665 lt__PROGRAM__LTX_preloaded_symbols[] =
13666 {
13667 { "@PROGRAM@", (void *) 0 },
13668 _LT_EOF
13669 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
13670 cat <<\_LT_EOF >> conftest.$ac_ext
13671 {0, (void *) 0}
13672 };
13673
13674 /* This works around a problem in FreeBSD linker */
13675 #ifdef FREEBSD_WORKAROUND
13676 static const void *lt_preloaded_setup() {
13677 return lt__PROGRAM__LTX_preloaded_symbols;
13678 }
13679 #endif
13680
13681 #ifdef __cplusplus
13682 }
13683 #endif
13684 _LT_EOF
13685 # Now try linking the two files.
13686 mv conftest.$ac_objext conftstm.$ac_objext
13687 lt_globsym_save_LIBS=$LIBS
13688 lt_globsym_save_CFLAGS=$CFLAGS
13689 LIBS=conftstm.$ac_objext
13690 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13691 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13692 (eval $ac_link) 2>&5
13693 ac_status=$?
13694 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13695 test $ac_status = 0; } && test -s conftest$ac_exeext; then
13696 pipe_works=yes
13697 fi
13698 LIBS=$lt_globsym_save_LIBS
13699 CFLAGS=$lt_globsym_save_CFLAGS
13700 else
13701 echo "cannot find nm_test_func in $nlist" >&5
13702 fi
13703 else
13704 echo "cannot find nm_test_var in $nlist" >&5
13705 fi
13706 else
13707 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13708 fi
13709 else
13710 echo "$progname: failed program was:" >&5
13711 cat conftest.$ac_ext >&5
13712 fi
13713 rm -rf conftest* conftst*
13714
13715 # Do not use the global_symbol_pipe unless it works.
13716 if test yes = "$pipe_works"; then
13717 break
13718 else
13719 lt_cv_sys_global_symbol_pipe=
13720 fi
13721 done
13722
13723 fi
13724
13725 if test -z "$lt_cv_sys_global_symbol_pipe"; then
13726 lt_cv_sys_global_symbol_to_cdecl=
13727 fi
13728 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
13730 printf "%s\n" "failed" >&6; }
13731 else
13732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
13733 printf "%s\n" "ok" >&6; }
13734 fi
13735
13736 # Response file support.
13737 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
13738 nm_file_list_spec='@'
13739 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
13740 nm_file_list_spec='@'
13741 fi
13742
13743
13744
13745
13746
13747
13748
13749
13750
13751
13752
13753
13754
13755
13756
13757
13758
13759
13760
13761
13762
13763
13764
13765
13766
13767
13768
13769
13770
13771
13772
13773
13774
13775
13776
13777
13778
13779 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
13780 printf %s "checking for sysroot... " >&6; }
13781
13782 # Check whether --with-sysroot was given.
13783 if test ${with_sysroot+y}
13784 then :
13785 withval=$with_sysroot;
13786 else $as_nop
13787 with_sysroot=no
13788 fi
13789
13790
13791 lt_sysroot=
13792 case $with_sysroot in #(
13793 yes)
13794 if test yes = "$GCC"; then
13795 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
13796 fi
13797 ;; #(
13798 /*)
13799 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
13800 ;; #(
13801 no|'')
13802 ;; #(
13803 *)
13804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
13805 printf "%s\n" "$with_sysroot" >&6; }
13806 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
13807 ;;
13808 esac
13809
13810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
13811 printf "%s\n" "${lt_sysroot:-no}" >&6; }
13812
13813
13814
13815
13816
13817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
13818 printf %s "checking for a working dd... " >&6; }
13819 if test ${ac_cv_path_lt_DD+y}
13820 then :
13821 printf %s "(cached) " >&6
13822 else $as_nop
13823 printf 0123456789abcdef0123456789abcdef >conftest.i
13824 cat conftest.i conftest.i >conftest2.i
13825 : ${lt_DD:=$DD}
13826 if test -z "$lt_DD"; then
13827 ac_path_lt_DD_found=false
13828 # Loop through the user's path and test for each of PROGNAME-LIST
13829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13830 for as_dir in $PATH
13831 do
13832 IFS=$as_save_IFS
13833 case $as_dir in #(((
13834 '') as_dir=./ ;;
13835 */) ;;
13836 *) as_dir=$as_dir/ ;;
13837 esac
13838 for ac_prog in dd
13839 do
13840 for ac_exec_ext in '' $ac_executable_extensions; do
13841 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
13842 as_fn_executable_p "$ac_path_lt_DD" || continue
13843 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
13844 cmp -s conftest.i conftest.out \
13845 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
13846 fi
13847 $ac_path_lt_DD_found && break 3
13848 done
13849 done
13850 done
13851 IFS=$as_save_IFS
13852 if test -z "$ac_cv_path_lt_DD"; then
13853 :
13854 fi
13855 else
13856 ac_cv_path_lt_DD=$lt_DD
13857 fi
13858
13859 rm -f conftest.i conftest2.i conftest.out
13860 fi
13861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
13862 printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
13863
13864
13865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
13866 printf %s "checking how to truncate binary pipes... " >&6; }
13867 if test ${lt_cv_truncate_bin+y}
13868 then :
13869 printf %s "(cached) " >&6
13870 else $as_nop
13871 printf 0123456789abcdef0123456789abcdef >conftest.i
13872 cat conftest.i conftest.i >conftest2.i
13873 lt_cv_truncate_bin=
13874 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
13875 cmp -s conftest.i conftest.out \
13876 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
13877 fi
13878 rm -f conftest.i conftest2.i conftest.out
13879 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
13880 fi
13881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
13882 printf "%s\n" "$lt_cv_truncate_bin" >&6; }
13883
13884
13885
13886
13887
13888
13889
13890 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
13891 func_cc_basename ()
13892 {
13893 for cc_temp in $*""; do
13894 case $cc_temp in
13895 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13896 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13897 \-*) ;;
13898 *) break;;
13899 esac
13900 done
13901 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13902 }
13903
13904 # Check whether --enable-libtool-lock was given.
13905 if test ${enable_libtool_lock+y}
13906 then :
13907 enableval=$enable_libtool_lock;
13908 fi
13909
13910 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
13911
13912 # Some flags need to be propagated to the compiler or linker for good
13913 # libtool support.
13914 case $host in
13915 ia64-*-hpux*)
13916 # Find out what ABI is being produced by ac_compile, and set mode
13917 # options accordingly.
13918 echo 'int i;' > conftest.$ac_ext
13919 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13920 (eval $ac_compile) 2>&5
13921 ac_status=$?
13922 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13923 test $ac_status = 0; }; then
13924 case `$FILECMD conftest.$ac_objext` in
13925 *ELF-32*)
13926 HPUX_IA64_MODE=32
13927 ;;
13928 *ELF-64*)
13929 HPUX_IA64_MODE=64
13930 ;;
13931 esac
13932 fi
13933 rm -rf conftest*
13934 ;;
13935 *-*-irix6*)
13936 # Find out what ABI is being produced by ac_compile, and set linker
13937 # options accordingly.
13938 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
13939 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13940 (eval $ac_compile) 2>&5
13941 ac_status=$?
13942 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13943 test $ac_status = 0; }; then
13944 if test yes = "$lt_cv_prog_gnu_ld"; then
13945 case `$FILECMD conftest.$ac_objext` in
13946 *32-bit*)
13947 LD="${LD-ld} -melf32bsmip"
13948 ;;
13949 *N32*)
13950 LD="${LD-ld} -melf32bmipn32"
13951 ;;
13952 *64-bit*)
13953 LD="${LD-ld} -melf64bmip"
13954 ;;
13955 esac
13956 else
13957 case `$FILECMD conftest.$ac_objext` in
13958 *32-bit*)
13959 LD="${LD-ld} -32"
13960 ;;
13961 *N32*)
13962 LD="${LD-ld} -n32"
13963 ;;
13964 *64-bit*)
13965 LD="${LD-ld} -64"
13966 ;;
13967 esac
13968 fi
13969 fi
13970 rm -rf conftest*
13971 ;;
13972
13973 mips64*-*linux*)
13974 # Find out what ABI is being produced by ac_compile, and set linker
13975 # options accordingly.
13976 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
13977 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13978 (eval $ac_compile) 2>&5
13979 ac_status=$?
13980 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13981 test $ac_status = 0; }; then
13982 emul=elf
13983 case `$FILECMD conftest.$ac_objext` in
13984 *32-bit*)
13985 emul="${emul}32"
13986 ;;
13987 *64-bit*)
13988 emul="${emul}64"
13989 ;;
13990 esac
13991 case `$FILECMD conftest.$ac_objext` in
13992 *MSB*)
13993 emul="${emul}btsmip"
13994 ;;
13995 *LSB*)
13996 emul="${emul}ltsmip"
13997 ;;
13998 esac
13999 case `$FILECMD conftest.$ac_objext` in
14000 *N32*)
14001 emul="${emul}n32"
14002 ;;
14003 esac
14004 LD="${LD-ld} -m $emul"
14005 fi
14006 rm -rf conftest*
14007 ;;
14008
14009 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
14010 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
14011 # Find out what ABI is being produced by ac_compile, and set linker
14012 # options accordingly. Note that the listed cases only cover the
14013 # situations where additional linker options are needed (such as when
14014 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
14015 # vice versa); the common cases where no linker options are needed do
14016 # not appear in the list.
14017 echo 'int i;' > conftest.$ac_ext
14018 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14019 (eval $ac_compile) 2>&5
14020 ac_status=$?
14021 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14022 test $ac_status = 0; }; then
14023 case `$FILECMD conftest.o` in
14024 *32-bit*)
14025 case $host in
14026 x86_64-*kfreebsd*-gnu)
14027 LD="${LD-ld} -m elf_i386_fbsd"
14028 ;;
14029 x86_64-*linux*)
14030 case `$FILECMD conftest.o` in
14031 *x86-64*)
14032 LD="${LD-ld} -m elf32_x86_64"
14033 ;;
14034 *)
14035 LD="${LD-ld} -m elf_i386"
14036 ;;
14037 esac
14038 ;;
14039 powerpc64le-*linux*)
14040 LD="${LD-ld} -m elf32lppclinux"
14041 ;;
14042 powerpc64-*linux*)
14043 LD="${LD-ld} -m elf32ppclinux"
14044 ;;
14045 s390x-*linux*)
14046 LD="${LD-ld} -m elf_s390"
14047 ;;
14048 sparc64-*linux*)
14049 LD="${LD-ld} -m elf32_sparc"
14050 ;;
14051 esac
14052 ;;
14053 *64-bit*)
14054 case $host in
14055 x86_64-*kfreebsd*-gnu)
14056 LD="${LD-ld} -m elf_x86_64_fbsd"
14057 ;;
14058 x86_64-*linux*)
14059 LD="${LD-ld} -m elf_x86_64"
14060 ;;
14061 powerpcle-*linux*)
14062 LD="${LD-ld} -m elf64lppc"
14063 ;;
14064 powerpc-*linux*)
14065 LD="${LD-ld} -m elf64ppc"
14066 ;;
14067 s390*-*linux*|s390*-*tpf*)
14068 LD="${LD-ld} -m elf64_s390"
14069 ;;
14070 sparc*-*linux*)
14071 LD="${LD-ld} -m elf64_sparc"
14072 ;;
14073 esac
14074 ;;
14075 esac
14076 fi
14077 rm -rf conftest*
14078 ;;
14079
14080 *-*-sco3.2v5*)
14081 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
14082 SAVE_CFLAGS=$CFLAGS
14083 CFLAGS="$CFLAGS -belf"
14084 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
14085 printf %s "checking whether the C compiler needs -belf... " >&6; }
14086 if test ${lt_cv_cc_needs_belf+y}
14087 then :
14088 printf %s "(cached) " >&6
14089 else $as_nop
14090 ac_ext=c
14091 ac_cpp='$CPP $CPPFLAGS'
14092 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14093 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14094 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14095
14096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14097 /* end confdefs.h. */
14098
14099 int
14100 main (void)
14101 {
14102
14103 ;
14104 return 0;
14105 }
14106 _ACEOF
14107 if ac_fn_c_try_link "$LINENO"
14108 then :
14109 lt_cv_cc_needs_belf=yes
14110 else $as_nop
14111 lt_cv_cc_needs_belf=no
14112 fi
14113 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14114 conftest$ac_exeext conftest.$ac_ext
14115 ac_ext=c
14116 ac_cpp='$CPP $CPPFLAGS'
14117 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14118 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14119 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14120
14121 fi
14122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
14123 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
14124 if test yes != "$lt_cv_cc_needs_belf"; then
14125 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
14126 CFLAGS=$SAVE_CFLAGS
14127 fi
14128 ;;
14129 *-*solaris*)
14130 # Find out what ABI is being produced by ac_compile, and set linker
14131 # options accordingly.
14132 echo 'int i;' > conftest.$ac_ext
14133 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14134 (eval $ac_compile) 2>&5
14135 ac_status=$?
14136 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14137 test $ac_status = 0; }; then
14138 case `$FILECMD conftest.o` in
14139 *64-bit*)
14140 case $lt_cv_prog_gnu_ld in
14141 yes*)
14142 case $host in
14143 i?86-*-solaris*|x86_64-*-solaris*)
14144 LD="${LD-ld} -m elf_x86_64"
14145 ;;
14146 sparc*-*-solaris*)
14147 LD="${LD-ld} -m elf64_sparc"
14148 ;;
14149 esac
14150 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
14151 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
14152 LD=${LD-ld}_sol2
14153 fi
14154 ;;
14155 *)
14156 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
14157 LD="${LD-ld} -64"
14158 fi
14159 ;;
14160 esac
14161 ;;
14162 esac
14163 fi
14164 rm -rf conftest*
14165 ;;
14166 esac
14167
14168 need_locks=$enable_libtool_lock
14169
14170 if test -n "$ac_tool_prefix"; then
14171 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
14172 set dummy ${ac_tool_prefix}mt; ac_word=$2
14173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14174 printf %s "checking for $ac_word... " >&6; }
14175 if test ${ac_cv_prog_MANIFEST_TOOL+y}
14176 then :
14177 printf %s "(cached) " >&6
14178 else $as_nop
14179 if test -n "$MANIFEST_TOOL"; then
14180 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
14181 else
14182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14183 for as_dir in $PATH
14184 do
14185 IFS=$as_save_IFS
14186 case $as_dir in #(((
14187 '') as_dir=./ ;;
14188 */) ;;
14189 *) as_dir=$as_dir/ ;;
14190 esac
14191 for ac_exec_ext in '' $ac_executable_extensions; do
14192 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14193 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
14194 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14195 break 2
14196 fi
14197 done
14198 done
14199 IFS=$as_save_IFS
14200
14201 fi
14202 fi
14203 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
14204 if test -n "$MANIFEST_TOOL"; then
14205 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
14206 printf "%s\n" "$MANIFEST_TOOL" >&6; }
14207 else
14208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14209 printf "%s\n" "no" >&6; }
14210 fi
14211
14212
14213 fi
14214 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
14215 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
14216 # Extract the first word of "mt", so it can be a program name with args.
14217 set dummy mt; ac_word=$2
14218 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14219 printf %s "checking for $ac_word... " >&6; }
14220 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
14221 then :
14222 printf %s "(cached) " >&6
14223 else $as_nop
14224 if test -n "$ac_ct_MANIFEST_TOOL"; then
14225 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
14226 else
14227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14228 for as_dir in $PATH
14229 do
14230 IFS=$as_save_IFS
14231 case $as_dir in #(((
14232 '') as_dir=./ ;;
14233 */) ;;
14234 *) as_dir=$as_dir/ ;;
14235 esac
14236 for ac_exec_ext in '' $ac_executable_extensions; do
14237 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14238 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
14239 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14240 break 2
14241 fi
14242 done
14243 done
14244 IFS=$as_save_IFS
14245
14246 fi
14247 fi
14248 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
14249 if test -n "$ac_ct_MANIFEST_TOOL"; then
14250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
14251 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
14252 else
14253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14254 printf "%s\n" "no" >&6; }
14255 fi
14256
14257 if test "x$ac_ct_MANIFEST_TOOL" = x; then
14258 MANIFEST_TOOL=":"
14259 else
14260 case $cross_compiling:$ac_tool_warned in
14261 yes:)
14262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14263 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14264 ac_tool_warned=yes ;;
14265 esac
14266 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
14267 fi
14268 else
14269 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
14270 fi
14271
14272 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
14273 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
14274 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
14275 if test ${lt_cv_path_mainfest_tool+y}
14276 then :
14277 printf %s "(cached) " >&6
14278 else $as_nop
14279 lt_cv_path_mainfest_tool=no
14280 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
14281 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
14282 cat conftest.err >&5
14283 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
14284 lt_cv_path_mainfest_tool=yes
14285 fi
14286 rm -f conftest*
14287 fi
14288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
14289 printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
14290 if test yes != "$lt_cv_path_mainfest_tool"; then
14291 MANIFEST_TOOL=:
14292 fi
14293
14294
14295
14296
14297
14298
14299 case $host_os in
14300 rhapsody* | darwin*)
14301 if test -n "$ac_tool_prefix"; then
14302 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
14303 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
14304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14305 printf %s "checking for $ac_word... " >&6; }
14306 if test ${ac_cv_prog_DSYMUTIL+y}
14307 then :
14308 printf %s "(cached) " >&6
14309 else $as_nop
14310 if test -n "$DSYMUTIL"; then
14311 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
14312 else
14313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14314 for as_dir in $PATH
14315 do
14316 IFS=$as_save_IFS
14317 case $as_dir in #(((
14318 '') as_dir=./ ;;
14319 */) ;;
14320 *) as_dir=$as_dir/ ;;
14321 esac
14322 for ac_exec_ext in '' $ac_executable_extensions; do
14323 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14324 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
14325 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14326 break 2
14327 fi
14328 done
14329 done
14330 IFS=$as_save_IFS
14331
14332 fi
14333 fi
14334 DSYMUTIL=$ac_cv_prog_DSYMUTIL
14335 if test -n "$DSYMUTIL"; then
14336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
14337 printf "%s\n" "$DSYMUTIL" >&6; }
14338 else
14339 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14340 printf "%s\n" "no" >&6; }
14341 fi
14342
14343
14344 fi
14345 if test -z "$ac_cv_prog_DSYMUTIL"; then
14346 ac_ct_DSYMUTIL=$DSYMUTIL
14347 # Extract the first word of "dsymutil", so it can be a program name with args.
14348 set dummy dsymutil; ac_word=$2
14349 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14350 printf %s "checking for $ac_word... " >&6; }
14351 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
14352 then :
14353 printf %s "(cached) " >&6
14354 else $as_nop
14355 if test -n "$ac_ct_DSYMUTIL"; then
14356 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
14357 else
14358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14359 for as_dir in $PATH
14360 do
14361 IFS=$as_save_IFS
14362 case $as_dir in #(((
14363 '') as_dir=./ ;;
14364 */) ;;
14365 *) as_dir=$as_dir/ ;;
14366 esac
14367 for ac_exec_ext in '' $ac_executable_extensions; do
14368 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14369 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
14370 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14371 break 2
14372 fi
14373 done
14374 done
14375 IFS=$as_save_IFS
14376
14377 fi
14378 fi
14379 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
14380 if test -n "$ac_ct_DSYMUTIL"; then
14381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
14382 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
14383 else
14384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14385 printf "%s\n" "no" >&6; }
14386 fi
14387
14388 if test "x$ac_ct_DSYMUTIL" = x; then
14389 DSYMUTIL=":"
14390 else
14391 case $cross_compiling:$ac_tool_warned in
14392 yes:)
14393 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14394 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14395 ac_tool_warned=yes ;;
14396 esac
14397 DSYMUTIL=$ac_ct_DSYMUTIL
14398 fi
14399 else
14400 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
14401 fi
14402
14403 if test -n "$ac_tool_prefix"; then
14404 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
14405 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
14406 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14407 printf %s "checking for $ac_word... " >&6; }
14408 if test ${ac_cv_prog_NMEDIT+y}
14409 then :
14410 printf %s "(cached) " >&6
14411 else $as_nop
14412 if test -n "$NMEDIT"; then
14413 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
14414 else
14415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14416 for as_dir in $PATH
14417 do
14418 IFS=$as_save_IFS
14419 case $as_dir in #(((
14420 '') as_dir=./ ;;
14421 */) ;;
14422 *) as_dir=$as_dir/ ;;
14423 esac
14424 for ac_exec_ext in '' $ac_executable_extensions; do
14425 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14426 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
14427 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14428 break 2
14429 fi
14430 done
14431 done
14432 IFS=$as_save_IFS
14433
14434 fi
14435 fi
14436 NMEDIT=$ac_cv_prog_NMEDIT
14437 if test -n "$NMEDIT"; then
14438 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
14439 printf "%s\n" "$NMEDIT" >&6; }
14440 else
14441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14442 printf "%s\n" "no" >&6; }
14443 fi
14444
14445
14446 fi
14447 if test -z "$ac_cv_prog_NMEDIT"; then
14448 ac_ct_NMEDIT=$NMEDIT
14449 # Extract the first word of "nmedit", so it can be a program name with args.
14450 set dummy nmedit; ac_word=$2
14451 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14452 printf %s "checking for $ac_word... " >&6; }
14453 if test ${ac_cv_prog_ac_ct_NMEDIT+y}
14454 then :
14455 printf %s "(cached) " >&6
14456 else $as_nop
14457 if test -n "$ac_ct_NMEDIT"; then
14458 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
14459 else
14460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14461 for as_dir in $PATH
14462 do
14463 IFS=$as_save_IFS
14464 case $as_dir in #(((
14465 '') as_dir=./ ;;
14466 */) ;;
14467 *) as_dir=$as_dir/ ;;
14468 esac
14469 for ac_exec_ext in '' $ac_executable_extensions; do
14470 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14471 ac_cv_prog_ac_ct_NMEDIT="nmedit"
14472 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14473 break 2
14474 fi
14475 done
14476 done
14477 IFS=$as_save_IFS
14478
14479 fi
14480 fi
14481 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
14482 if test -n "$ac_ct_NMEDIT"; then
14483 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
14484 printf "%s\n" "$ac_ct_NMEDIT" >&6; }
14485 else
14486 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14487 printf "%s\n" "no" >&6; }
14488 fi
14489
14490 if test "x$ac_ct_NMEDIT" = x; then
14491 NMEDIT=":"
14492 else
14493 case $cross_compiling:$ac_tool_warned in
14494 yes:)
14495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14496 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14497 ac_tool_warned=yes ;;
14498 esac
14499 NMEDIT=$ac_ct_NMEDIT
14500 fi
14501 else
14502 NMEDIT="$ac_cv_prog_NMEDIT"
14503 fi
14504
14505 if test -n "$ac_tool_prefix"; then
14506 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
14507 set dummy ${ac_tool_prefix}lipo; ac_word=$2
14508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14509 printf %s "checking for $ac_word... " >&6; }
14510 if test ${ac_cv_prog_LIPO+y}
14511 then :
14512 printf %s "(cached) " >&6
14513 else $as_nop
14514 if test -n "$LIPO"; then
14515 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
14516 else
14517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14518 for as_dir in $PATH
14519 do
14520 IFS=$as_save_IFS
14521 case $as_dir in #(((
14522 '') as_dir=./ ;;
14523 */) ;;
14524 *) as_dir=$as_dir/ ;;
14525 esac
14526 for ac_exec_ext in '' $ac_executable_extensions; do
14527 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14528 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
14529 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14530 break 2
14531 fi
14532 done
14533 done
14534 IFS=$as_save_IFS
14535
14536 fi
14537 fi
14538 LIPO=$ac_cv_prog_LIPO
14539 if test -n "$LIPO"; then
14540 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
14541 printf "%s\n" "$LIPO" >&6; }
14542 else
14543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14544 printf "%s\n" "no" >&6; }
14545 fi
14546
14547
14548 fi
14549 if test -z "$ac_cv_prog_LIPO"; then
14550 ac_ct_LIPO=$LIPO
14551 # Extract the first word of "lipo", so it can be a program name with args.
14552 set dummy lipo; ac_word=$2
14553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14554 printf %s "checking for $ac_word... " >&6; }
14555 if test ${ac_cv_prog_ac_ct_LIPO+y}
14556 then :
14557 printf %s "(cached) " >&6
14558 else $as_nop
14559 if test -n "$ac_ct_LIPO"; then
14560 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
14561 else
14562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14563 for as_dir in $PATH
14564 do
14565 IFS=$as_save_IFS
14566 case $as_dir in #(((
14567 '') as_dir=./ ;;
14568 */) ;;
14569 *) as_dir=$as_dir/ ;;
14570 esac
14571 for ac_exec_ext in '' $ac_executable_extensions; do
14572 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14573 ac_cv_prog_ac_ct_LIPO="lipo"
14574 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14575 break 2
14576 fi
14577 done
14578 done
14579 IFS=$as_save_IFS
14580
14581 fi
14582 fi
14583 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
14584 if test -n "$ac_ct_LIPO"; then
14585 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
14586 printf "%s\n" "$ac_ct_LIPO" >&6; }
14587 else
14588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14589 printf "%s\n" "no" >&6; }
14590 fi
14591
14592 if test "x$ac_ct_LIPO" = x; then
14593 LIPO=":"
14594 else
14595 case $cross_compiling:$ac_tool_warned in
14596 yes:)
14597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14598 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14599 ac_tool_warned=yes ;;
14600 esac
14601 LIPO=$ac_ct_LIPO
14602 fi
14603 else
14604 LIPO="$ac_cv_prog_LIPO"
14605 fi
14606
14607 if test -n "$ac_tool_prefix"; then
14608 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
14609 set dummy ${ac_tool_prefix}otool; ac_word=$2
14610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14611 printf %s "checking for $ac_word... " >&6; }
14612 if test ${ac_cv_prog_OTOOL+y}
14613 then :
14614 printf %s "(cached) " >&6
14615 else $as_nop
14616 if test -n "$OTOOL"; then
14617 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
14618 else
14619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14620 for as_dir in $PATH
14621 do
14622 IFS=$as_save_IFS
14623 case $as_dir in #(((
14624 '') as_dir=./ ;;
14625 */) ;;
14626 *) as_dir=$as_dir/ ;;
14627 esac
14628 for ac_exec_ext in '' $ac_executable_extensions; do
14629 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14630 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
14631 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14632 break 2
14633 fi
14634 done
14635 done
14636 IFS=$as_save_IFS
14637
14638 fi
14639 fi
14640 OTOOL=$ac_cv_prog_OTOOL
14641 if test -n "$OTOOL"; then
14642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
14643 printf "%s\n" "$OTOOL" >&6; }
14644 else
14645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14646 printf "%s\n" "no" >&6; }
14647 fi
14648
14649
14650 fi
14651 if test -z "$ac_cv_prog_OTOOL"; then
14652 ac_ct_OTOOL=$OTOOL
14653 # Extract the first word of "otool", so it can be a program name with args.
14654 set dummy otool; ac_word=$2
14655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14656 printf %s "checking for $ac_word... " >&6; }
14657 if test ${ac_cv_prog_ac_ct_OTOOL+y}
14658 then :
14659 printf %s "(cached) " >&6
14660 else $as_nop
14661 if test -n "$ac_ct_OTOOL"; then
14662 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
14663 else
14664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14665 for as_dir in $PATH
14666 do
14667 IFS=$as_save_IFS
14668 case $as_dir in #(((
14669 '') as_dir=./ ;;
14670 */) ;;
14671 *) as_dir=$as_dir/ ;;
14672 esac
14673 for ac_exec_ext in '' $ac_executable_extensions; do
14674 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14675 ac_cv_prog_ac_ct_OTOOL="otool"
14676 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14677 break 2
14678 fi
14679 done
14680 done
14681 IFS=$as_save_IFS
14682
14683 fi
14684 fi
14685 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
14686 if test -n "$ac_ct_OTOOL"; then
14687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
14688 printf "%s\n" "$ac_ct_OTOOL" >&6; }
14689 else
14690 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14691 printf "%s\n" "no" >&6; }
14692 fi
14693
14694 if test "x$ac_ct_OTOOL" = x; then
14695 OTOOL=":"
14696 else
14697 case $cross_compiling:$ac_tool_warned in
14698 yes:)
14699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14700 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14701 ac_tool_warned=yes ;;
14702 esac
14703 OTOOL=$ac_ct_OTOOL
14704 fi
14705 else
14706 OTOOL="$ac_cv_prog_OTOOL"
14707 fi
14708
14709 if test -n "$ac_tool_prefix"; then
14710 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
14711 set dummy ${ac_tool_prefix}otool64; ac_word=$2
14712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14713 printf %s "checking for $ac_word... " >&6; }
14714 if test ${ac_cv_prog_OTOOL64+y}
14715 then :
14716 printf %s "(cached) " >&6
14717 else $as_nop
14718 if test -n "$OTOOL64"; then
14719 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
14720 else
14721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14722 for as_dir in $PATH
14723 do
14724 IFS=$as_save_IFS
14725 case $as_dir in #(((
14726 '') as_dir=./ ;;
14727 */) ;;
14728 *) as_dir=$as_dir/ ;;
14729 esac
14730 for ac_exec_ext in '' $ac_executable_extensions; do
14731 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14732 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
14733 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14734 break 2
14735 fi
14736 done
14737 done
14738 IFS=$as_save_IFS
14739
14740 fi
14741 fi
14742 OTOOL64=$ac_cv_prog_OTOOL64
14743 if test -n "$OTOOL64"; then
14744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
14745 printf "%s\n" "$OTOOL64" >&6; }
14746 else
14747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14748 printf "%s\n" "no" >&6; }
14749 fi
14750
14751
14752 fi
14753 if test -z "$ac_cv_prog_OTOOL64"; then
14754 ac_ct_OTOOL64=$OTOOL64
14755 # Extract the first word of "otool64", so it can be a program name with args.
14756 set dummy otool64; ac_word=$2
14757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14758 printf %s "checking for $ac_word... " >&6; }
14759 if test ${ac_cv_prog_ac_ct_OTOOL64+y}
14760 then :
14761 printf %s "(cached) " >&6
14762 else $as_nop
14763 if test -n "$ac_ct_OTOOL64"; then
14764 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
14765 else
14766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14767 for as_dir in $PATH
14768 do
14769 IFS=$as_save_IFS
14770 case $as_dir in #(((
14771 '') as_dir=./ ;;
14772 */) ;;
14773 *) as_dir=$as_dir/ ;;
14774 esac
14775 for ac_exec_ext in '' $ac_executable_extensions; do
14776 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14777 ac_cv_prog_ac_ct_OTOOL64="otool64"
14778 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14779 break 2
14780 fi
14781 done
14782 done
14783 IFS=$as_save_IFS
14784
14785 fi
14786 fi
14787 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
14788 if test -n "$ac_ct_OTOOL64"; then
14789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
14790 printf "%s\n" "$ac_ct_OTOOL64" >&6; }
14791 else
14792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14793 printf "%s\n" "no" >&6; }
14794 fi
14795
14796 if test "x$ac_ct_OTOOL64" = x; then
14797 OTOOL64=":"
14798 else
14799 case $cross_compiling:$ac_tool_warned in
14800 yes:)
14801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14802 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14803 ac_tool_warned=yes ;;
14804 esac
14805 OTOOL64=$ac_ct_OTOOL64
14806 fi
14807 else
14808 OTOOL64="$ac_cv_prog_OTOOL64"
14809 fi
14810
14811
14812
14813
14814
14815
14816
14817
14818
14819
14820
14821
14822
14823
14824
14825
14826
14827
14828
14829
14830
14831
14832
14833
14834
14835
14836
14837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
14838 printf %s "checking for -single_module linker flag... " >&6; }
14839 if test ${lt_cv_apple_cc_single_mod+y}
14840 then :
14841 printf %s "(cached) " >&6
14842 else $as_nop
14843 lt_cv_apple_cc_single_mod=no
14844 if test -z "$LT_MULTI_MODULE"; then
14845 # By default we will add the -single_module flag. You can override
14846 # by either setting the environment variable LT_MULTI_MODULE
14847 # non-empty at configure time, or by adding -multi_module to the
14848 # link flags.
14849 rm -rf libconftest.dylib*
14850 echo "int foo(void){return 1;}" > conftest.c
14851 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14852 -dynamiclib -Wl,-single_module conftest.c" >&5
14853 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14854 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
14855 _lt_result=$?
14856 # If there is a non-empty error log, and "single_module"
14857 # appears in it, assume the flag caused a linker warning
14858 if test -s conftest.err && $GREP single_module conftest.err; then
14859 cat conftest.err >&5
14860 # Otherwise, if the output was created with a 0 exit code from
14861 # the compiler, it worked.
14862 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
14863 lt_cv_apple_cc_single_mod=yes
14864 else
14865 cat conftest.err >&5
14866 fi
14867 rm -rf libconftest.dylib*
14868 rm -f conftest.*
14869 fi
14870 fi
14871 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
14872 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
14873
14874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
14875 printf %s "checking for -exported_symbols_list linker flag... " >&6; }
14876 if test ${lt_cv_ld_exported_symbols_list+y}
14877 then :
14878 printf %s "(cached) " >&6
14879 else $as_nop
14880 lt_cv_ld_exported_symbols_list=no
14881 save_LDFLAGS=$LDFLAGS
14882 echo "_main" > conftest.sym
14883 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
14884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14885 /* end confdefs.h. */
14886
14887 int
14888 main (void)
14889 {
14890
14891 ;
14892 return 0;
14893 }
14894 _ACEOF
14895 if ac_fn_c_try_link "$LINENO"
14896 then :
14897 lt_cv_ld_exported_symbols_list=yes
14898 else $as_nop
14899 lt_cv_ld_exported_symbols_list=no
14900 fi
14901 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14902 conftest$ac_exeext conftest.$ac_ext
14903 LDFLAGS=$save_LDFLAGS
14904
14905 fi
14906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
14907 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
14908
14909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
14910 printf %s "checking for -force_load linker flag... " >&6; }
14911 if test ${lt_cv_ld_force_load+y}
14912 then :
14913 printf %s "(cached) " >&6
14914 else $as_nop
14915 lt_cv_ld_force_load=no
14916 cat > conftest.c << _LT_EOF
14917 int forced_loaded() { return 2;}
14918 _LT_EOF
14919 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
14920 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
14921 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
14922 $AR $AR_FLAGS libconftest.a conftest.o 2>&5
14923 echo "$RANLIB libconftest.a" >&5
14924 $RANLIB libconftest.a 2>&5
14925 cat > conftest.c << _LT_EOF
14926 int main() { return 0;}
14927 _LT_EOF
14928 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
14929 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
14930 _lt_result=$?
14931 if test -s conftest.err && $GREP force_load conftest.err; then
14932 cat conftest.err >&5
14933 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
14934 lt_cv_ld_force_load=yes
14935 else
14936 cat conftest.err >&5
14937 fi
14938 rm -f conftest.err libconftest.a conftest conftest.c
14939 rm -rf conftest.dSYM
14940
14941 fi
14942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
14943 printf "%s\n" "$lt_cv_ld_force_load" >&6; }
14944 case $host_os in
14945 rhapsody* | darwin1.[012])
14946 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
14947 darwin1.*)
14948 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
14949 darwin*)
14950 case $MACOSX_DEPLOYMENT_TARGET,$host in
14951 10.[012],*|,*powerpc*-darwin[5-8]*)
14952 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
14953 *)
14954 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
14955 esac
14956 ;;
14957 esac
14958 if test yes = "$lt_cv_apple_cc_single_mod"; then
14959 _lt_dar_single_mod='$single_module'
14960 fi
14961 if test yes = "$lt_cv_ld_exported_symbols_list"; then
14962 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
14963 else
14964 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
14965 fi
14966 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
14967 _lt_dsymutil='~$DSYMUTIL $lib || :'
14968 else
14969 _lt_dsymutil=
14970 fi
14971 ;;
14972 esac
14973
14974 # func_munge_path_list VARIABLE PATH
14975 # -----------------------------------
14976 # VARIABLE is name of variable containing _space_ separated list of
14977 # directories to be munged by the contents of PATH, which is string
14978 # having a format:
14979 # "DIR[:DIR]:"
14980 # string "DIR[ DIR]" will be prepended to VARIABLE
14981 # ":DIR[:DIR]"
14982 # string "DIR[ DIR]" will be appended to VARIABLE
14983 # "DIRP[:DIRP]::[DIRA:]DIRA"
14984 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
14985 # "DIRA[ DIRA]" will be appended to VARIABLE
14986 # "DIR[:DIR]"
14987 # VARIABLE will be replaced by "DIR[ DIR]"
14988 func_munge_path_list ()
14989 {
14990 case x$2 in
14991 x)
14992 ;;
14993 *:)
14994 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
14995 ;;
14996 x:*)
14997 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
14998 ;;
14999 *::*)
15000 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
15001 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
15002 ;;
15003 *)
15004 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
15005 ;;
15006 esac
15007 }
15008
15009 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
15010 "
15011 if test "x$ac_cv_header_dlfcn_h" = xyes
15012 then :
15013 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
15014
15015 fi
15016
15017
15018
15019
15020
15021 # Set options
15022
15023
15024
15025 enable_dlopen=no
15026
15027
15028 enable_win32_dll=no
15029
15030
15031 # Check whether --enable-shared was given.
15032 if test ${enable_shared+y}
15033 then :
15034 enableval=$enable_shared; p=${PACKAGE-default}
15035 case $enableval in
15036 yes) enable_shared=yes ;;
15037 no) enable_shared=no ;;
15038 *)
15039 enable_shared=no
15040 # Look at the argument we got. We use all the common list separators.
15041 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
15042 for pkg in $enableval; do
15043 IFS=$lt_save_ifs
15044 if test "X$pkg" = "X$p"; then
15045 enable_shared=yes
15046 fi
15047 done
15048 IFS=$lt_save_ifs
15049 ;;
15050 esac
15051 else $as_nop
15052 enable_shared=yes
15053 fi
15054
15055
15056
15057
15058
15059
15060
15061
15062
15063
15064
15065 # Check whether --with-pic was given.
15066 if test ${with_pic+y}
15067 then :
15068 withval=$with_pic; lt_p=${PACKAGE-default}
15069 case $withval in
15070 yes|no) pic_mode=$withval ;;
15071 *)
15072 pic_mode=default
15073 # Look at the argument we got. We use all the common list separators.
15074 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
15075 for lt_pkg in $withval; do
15076 IFS=$lt_save_ifs
15077 if test "X$lt_pkg" = "X$lt_p"; then
15078 pic_mode=yes
15079 fi
15080 done
15081 IFS=$lt_save_ifs
15082 ;;
15083 esac
15084 else $as_nop
15085 pic_mode=default
15086 fi
15087
15088
15089
15090
15091
15092
15093
15094
15095 # Check whether --enable-fast-install was given.
15096 if test ${enable_fast_install+y}
15097 then :
15098 enableval=$enable_fast_install; p=${PACKAGE-default}
15099 case $enableval in
15100 yes) enable_fast_install=yes ;;
15101 no) enable_fast_install=no ;;
15102 *)
15103 enable_fast_install=no
15104 # Look at the argument we got. We use all the common list separators.
15105 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
15106 for pkg in $enableval; do
15107 IFS=$lt_save_ifs
15108 if test "X$pkg" = "X$p"; then
15109 enable_fast_install=yes
15110 fi
15111 done
15112 IFS=$lt_save_ifs
15113 ;;
15114 esac
15115 else $as_nop
15116 enable_fast_install=yes
15117 fi
15118
15119
15120
15121
15122
15123
15124
15125
15126 shared_archive_member_spec=
15127 case $host,$enable_shared in
15128 power*-*-aix[5-9]*,yes)
15129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
15130 printf %s "checking which variant of shared library versioning to provide... " >&6; }
15131
15132 # Check whether --with-aix-soname was given.
15133 if test ${with_aix_soname+y}
15134 then :
15135 withval=$with_aix_soname; case $withval in
15136 aix|svr4|both)
15137 ;;
15138 *)
15139 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
15140 ;;
15141 esac
15142 lt_cv_with_aix_soname=$with_aix_soname
15143 else $as_nop
15144 if test ${lt_cv_with_aix_soname+y}
15145 then :
15146 printf %s "(cached) " >&6
15147 else $as_nop
15148 lt_cv_with_aix_soname=aix
15149 fi
15150
15151 with_aix_soname=$lt_cv_with_aix_soname
15152 fi
15153
15154 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
15155 printf "%s\n" "$with_aix_soname" >&6; }
15156 if test aix != "$with_aix_soname"; then
15157 # For the AIX way of multilib, we name the shared archive member
15158 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
15159 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
15160 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
15161 # the AIX toolchain works better with OBJECT_MODE set (default 32).
15162 if test 64 = "${OBJECT_MODE-32}"; then
15163 shared_archive_member_spec=shr_64
15164 else
15165 shared_archive_member_spec=shr
15166 fi
15167 fi
15168 ;;
15169 *)
15170 with_aix_soname=aix
15171 ;;
15172 esac
15173
15174
15175
15176
15177
15178
15179
15180
15181
15182
15183 # This can be used to rebuild libtool when needed
15184 LIBTOOL_DEPS=$ltmain
15185
15186 # Always use our own libtool.
15187 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
15188
15189
15190
15191
15192
15193
15194
15195
15196
15197
15198
15199
15200
15201
15202
15203
15204
15205
15206
15207
15208
15209
15210
15211
15212
15213
15214
15215
15216
15217
15218 test -z "$LN_S" && LN_S="ln -s"
15219
15220
15221
15222
15223
15224
15225
15226
15227
15228
15229
15230
15231
15232
15233 if test -n "${ZSH_VERSION+set}"; then
15234 setopt NO_GLOB_SUBST
15235 fi
15236
15237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
15238 printf %s "checking for objdir... " >&6; }
15239 if test ${lt_cv_objdir+y}
15240 then :
15241 printf %s "(cached) " >&6
15242 else $as_nop
15243 rm -f .libs 2>/dev/null
15244 mkdir .libs 2>/dev/null
15245 if test -d .libs; then
15246 lt_cv_objdir=.libs
15247 else
15248 # MS-DOS does not allow filenames that begin with a dot.
15249 lt_cv_objdir=_libs
15250 fi
15251 rmdir .libs 2>/dev/null
15252 fi
15253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
15254 printf "%s\n" "$lt_cv_objdir" >&6; }
15255 objdir=$lt_cv_objdir
15256
15257
15258
15259
15260
15261 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
15262
15263
15264
15265
15266 case $host_os in
15267 aix3*)
15268 # AIX sometimes has problems with the GCC collect2 program. For some
15269 # reason, if we set the COLLECT_NAMES environment variable, the problems
15270 # vanish in a puff of smoke.
15271 if test set != "${COLLECT_NAMES+set}"; then
15272 COLLECT_NAMES=
15273 export COLLECT_NAMES
15274 fi
15275 ;;
15276 esac
15277
15278 # Global variables:
15279 ofile=libtool
15280 can_build_shared=yes
15281
15282 # All known linkers require a '.a' archive for static linking (except MSVC and
15283 # ICC, which need '.lib').
15284 libext=a
15285
15286 with_gnu_ld=$lt_cv_prog_gnu_ld
15287
15288 old_CC=$CC
15289 old_CFLAGS=$CFLAGS
15290
15291 # Set sane defaults for various variables
15292 test -z "$CC" && CC=cc
15293 test -z "$LTCC" && LTCC=$CC
15294 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
15295 test -z "$LD" && LD=ld
15296 test -z "$ac_objext" && ac_objext=o
15297
15298 func_cc_basename $compiler
15299 cc_basename=$func_cc_basename_result
15300
15301
15302 # Only perform the check for file, if the check method requires it
15303 test -z "$MAGIC_CMD" && MAGIC_CMD=file
15304 case $deplibs_check_method in
15305 file_magic*)
15306 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
15307 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
15308 printf %s "checking for ${ac_tool_prefix}file... " >&6; }
15309 if test ${lt_cv_path_MAGIC_CMD+y}
15310 then :
15311 printf %s "(cached) " >&6
15312 else $as_nop
15313 case $MAGIC_CMD in
15314 [\\/*] | ?:[\\/]*)
15315 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
15316 ;;
15317 *)
15318 lt_save_MAGIC_CMD=$MAGIC_CMD
15319 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
15320 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
15321 for ac_dir in $ac_dummy; do
15322 IFS=$lt_save_ifs
15323 test -z "$ac_dir" && ac_dir=.
15324 if test -f "$ac_dir/${ac_tool_prefix}file"; then
15325 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
15326 if test -n "$file_magic_test_file"; then
15327 case $deplibs_check_method in
15328 "file_magic "*)
15329 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
15330 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
15331 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15332 $EGREP "$file_magic_regex" > /dev/null; then
15333 :
15334 else
15335 cat <<_LT_EOF 1>&2
15336
15337 *** Warning: the command libtool uses to detect shared libraries,
15338 *** $file_magic_cmd, produces output that libtool cannot recognize.
15339 *** The result is that libtool may fail to recognize shared libraries
15340 *** as such. This will affect the creation of libtool libraries that
15341 *** depend on shared libraries, but programs linked with such libtool
15342 *** libraries will work regardless of this problem. Nevertheless, you
15343 *** may want to report the problem to your system manager and/or to
15344 *** bug-libtool@gnu.org
15345
15346 _LT_EOF
15347 fi ;;
15348 esac
15349 fi
15350 break
15351 fi
15352 done
15353 IFS=$lt_save_ifs
15354 MAGIC_CMD=$lt_save_MAGIC_CMD
15355 ;;
15356 esac
15357 fi
15358
15359 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
15360 if test -n "$MAGIC_CMD"; then
15361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
15362 printf "%s\n" "$MAGIC_CMD" >&6; }
15363 else
15364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15365 printf "%s\n" "no" >&6; }
15366 fi
15367
15368
15369
15370
15371
15372 if test -z "$lt_cv_path_MAGIC_CMD"; then
15373 if test -n "$ac_tool_prefix"; then
15374 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
15375 printf %s "checking for file... " >&6; }
15376 if test ${lt_cv_path_MAGIC_CMD+y}
15377 then :
15378 printf %s "(cached) " >&6
15379 else $as_nop
15380 case $MAGIC_CMD in
15381 [\\/*] | ?:[\\/]*)
15382 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
15383 ;;
15384 *)
15385 lt_save_MAGIC_CMD=$MAGIC_CMD
15386 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
15387 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
15388 for ac_dir in $ac_dummy; do
15389 IFS=$lt_save_ifs
15390 test -z "$ac_dir" && ac_dir=.
15391 if test -f "$ac_dir/file"; then
15392 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
15393 if test -n "$file_magic_test_file"; then
15394 case $deplibs_check_method in
15395 "file_magic "*)
15396 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
15397 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
15398 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15399 $EGREP "$file_magic_regex" > /dev/null; then
15400 :
15401 else
15402 cat <<_LT_EOF 1>&2
15403
15404 *** Warning: the command libtool uses to detect shared libraries,
15405 *** $file_magic_cmd, produces output that libtool cannot recognize.
15406 *** The result is that libtool may fail to recognize shared libraries
15407 *** as such. This will affect the creation of libtool libraries that
15408 *** depend on shared libraries, but programs linked with such libtool
15409 *** libraries will work regardless of this problem. Nevertheless, you
15410 *** may want to report the problem to your system manager and/or to
15411 *** bug-libtool@gnu.org
15412
15413 _LT_EOF
15414 fi ;;
15415 esac
15416 fi
15417 break
15418 fi
15419 done
15420 IFS=$lt_save_ifs
15421 MAGIC_CMD=$lt_save_MAGIC_CMD
15422 ;;
15423 esac
15424 fi
15425
15426 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
15427 if test -n "$MAGIC_CMD"; then
15428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
15429 printf "%s\n" "$MAGIC_CMD" >&6; }
15430 else
15431 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15432 printf "%s\n" "no" >&6; }
15433 fi
15434
15435
15436 else
15437 MAGIC_CMD=:
15438 fi
15439 fi
15440
15441 fi
15442 ;;
15443 esac
15444
15445 # Use C for the default configuration in the libtool script
15446
15447 lt_save_CC=$CC
15448 ac_ext=c
15449 ac_cpp='$CPP $CPPFLAGS'
15450 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15451 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15452 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15453
15454
15455 # Source file extension for C test sources.
15456 ac_ext=c
15457
15458 # Object file extension for compiled C test sources.
15459 objext=o
15460 objext=$objext
15461
15462 # Code to be used in simple compile tests
15463 lt_simple_compile_test_code="int some_variable = 0;"
15464
15465 # Code to be used in simple link tests
15466 lt_simple_link_test_code='int main(){return(0);}'
15467
15468
15469
15470
15471
15472
15473
15474 # If no C compiler was specified, use CC.
15475 LTCC=${LTCC-"$CC"}
15476
15477 # If no C compiler flags were specified, use CFLAGS.
15478 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15479
15480 # Allow CC to be a program name with arguments.
15481 compiler=$CC
15482
15483 # Save the default compiler, since it gets overwritten when the other
15484 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
15485 compiler_DEFAULT=$CC
15486
15487 # save warnings/boilerplate of simple test code
15488 ac_outfile=conftest.$ac_objext
15489 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15490 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15491 _lt_compiler_boilerplate=`cat conftest.err`
15492 $RM conftest*
15493
15494 ac_outfile=conftest.$ac_objext
15495 echo "$lt_simple_link_test_code" >conftest.$ac_ext
15496 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15497 _lt_linker_boilerplate=`cat conftest.err`
15498 $RM -r conftest*
15499
15500
15501 if test -n "$compiler"; then
15502
15503 lt_prog_compiler_no_builtin_flag=
15504
15505 if test yes = "$GCC"; then
15506 case $cc_basename in
15507 nvcc*)
15508 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
15509 *)
15510 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
15511 esac
15512
15513 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15514 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
15515 if test ${lt_cv_prog_compiler_rtti_exceptions+y}
15516 then :
15517 printf %s "(cached) " >&6
15518 else $as_nop
15519 lt_cv_prog_compiler_rtti_exceptions=no
15520 ac_outfile=conftest.$ac_objext
15521 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15522 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
15523 # Insert the option either (1) after the last *FLAGS variable, or
15524 # (2) before a word containing "conftest.", or (3) at the end.
15525 # Note that $ac_compile itself does not contain backslashes and begins
15526 # with a dollar sign (not a hyphen), so the echo should work correctly.
15527 # The option is referenced via a variable to avoid confusing sed.
15528 lt_compile=`echo "$ac_compile" | $SED \
15529 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15530 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15531 -e 's:$: $lt_compiler_flag:'`
15532 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15533 (eval "$lt_compile" 2>conftest.err)
15534 ac_status=$?
15535 cat conftest.err >&5
15536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15537 if (exit $ac_status) && test -s "$ac_outfile"; then
15538 # The compiler can only warn and ignore the option if not recognized
15539 # So say no if there are warnings other than the usual output.
15540 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15541 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15542 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15543 lt_cv_prog_compiler_rtti_exceptions=yes
15544 fi
15545 fi
15546 $RM conftest*
15547
15548 fi
15549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15550 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
15551
15552 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
15553 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
15554 else
15555 :
15556 fi
15557
15558 fi
15559
15560
15561
15562
15563
15564
15565 lt_prog_compiler_wl=
15566 lt_prog_compiler_pic=
15567 lt_prog_compiler_static=
15568
15569
15570 if test yes = "$GCC"; then
15571 lt_prog_compiler_wl='-Wl,'
15572 lt_prog_compiler_static='-static'
15573
15574 case $host_os in
15575 aix*)
15576 # All AIX code is PIC.
15577 if test ia64 = "$host_cpu"; then
15578 # AIX 5 now supports IA64 processor
15579 lt_prog_compiler_static='-Bstatic'
15580 fi
15581 lt_prog_compiler_pic='-fPIC'
15582 ;;
15583
15584 amigaos*)
15585 case $host_cpu in
15586 powerpc)
15587 # see comment about AmigaOS4 .so support
15588 lt_prog_compiler_pic='-fPIC'
15589 ;;
15590 m68k)
15591 # FIXME: we need at least 68020 code to build shared libraries, but
15592 # adding the '-m68020' flag to GCC prevents building anything better,
15593 # like '-m68040'.
15594 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
15595 ;;
15596 esac
15597 ;;
15598
15599 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15600 # PIC is the default for these OSes.
15601 ;;
15602
15603 mingw* | cygwin* | pw32* | os2* | cegcc*)
15604 # This hack is so that the source file can tell whether it is being
15605 # built for inclusion in a dll (and should export symbols for example).
15606 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15607 # (--disable-auto-import) libraries
15608 lt_prog_compiler_pic='-DDLL_EXPORT'
15609 case $host_os in
15610 os2*)
15611 lt_prog_compiler_static='$wl-static'
15612 ;;
15613 esac
15614 ;;
15615
15616 darwin* | rhapsody*)
15617 # PIC is the default on this platform
15618 # Common symbols not allowed in MH_DYLIB files
15619 lt_prog_compiler_pic='-fno-common'
15620 ;;
15621
15622 haiku*)
15623 # PIC is the default for Haiku.
15624 # The "-static" flag exists, but is broken.
15625 lt_prog_compiler_static=
15626 ;;
15627
15628 hpux*)
15629 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15630 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
15631 # sets the default TLS model and affects inlining.
15632 case $host_cpu in
15633 hppa*64*)
15634 # +Z the default
15635 ;;
15636 *)
15637 lt_prog_compiler_pic='-fPIC'
15638 ;;
15639 esac
15640 ;;
15641
15642 interix[3-9]*)
15643 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15644 # Instead, we relocate shared libraries at runtime.
15645 ;;
15646
15647 msdosdjgpp*)
15648 # Just because we use GCC doesn't mean we suddenly get shared libraries
15649 # on systems that don't support them.
15650 lt_prog_compiler_can_build_shared=no
15651 enable_shared=no
15652 ;;
15653
15654 *nto* | *qnx*)
15655 # QNX uses GNU C++, but need to define -shared option too, otherwise
15656 # it will coredump.
15657 lt_prog_compiler_pic='-fPIC -shared'
15658 ;;
15659
15660 sysv4*MP*)
15661 if test -d /usr/nec; then
15662 lt_prog_compiler_pic=-Kconform_pic
15663 fi
15664 ;;
15665
15666 *)
15667 lt_prog_compiler_pic='-fPIC'
15668 ;;
15669 esac
15670
15671 case $cc_basename in
15672 nvcc*) # Cuda Compiler Driver 2.2
15673 lt_prog_compiler_wl='-Xlinker '
15674 if test -n "$lt_prog_compiler_pic"; then
15675 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
15676 fi
15677 ;;
15678 esac
15679 else
15680 # PORTME Check for flag to pass linker flags through the system compiler.
15681 case $host_os in
15682 aix*)
15683 lt_prog_compiler_wl='-Wl,'
15684 if test ia64 = "$host_cpu"; then
15685 # AIX 5 now supports IA64 processor
15686 lt_prog_compiler_static='-Bstatic'
15687 else
15688 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
15689 fi
15690 ;;
15691
15692 darwin* | rhapsody*)
15693 # PIC is the default on this platform
15694 # Common symbols not allowed in MH_DYLIB files
15695 lt_prog_compiler_pic='-fno-common'
15696 case $cc_basename in
15697 nagfor*)
15698 # NAG Fortran compiler
15699 lt_prog_compiler_wl='-Wl,-Wl,,'
15700 lt_prog_compiler_pic='-PIC'
15701 lt_prog_compiler_static='-Bstatic'
15702 ;;
15703 esac
15704 ;;
15705
15706 mingw* | cygwin* | pw32* | os2* | cegcc*)
15707 # This hack is so that the source file can tell whether it is being
15708 # built for inclusion in a dll (and should export symbols for example).
15709 lt_prog_compiler_pic='-DDLL_EXPORT'
15710 case $host_os in
15711 os2*)
15712 lt_prog_compiler_static='$wl-static'
15713 ;;
15714 esac
15715 ;;
15716
15717 hpux9* | hpux10* | hpux11*)
15718 lt_prog_compiler_wl='-Wl,'
15719 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15720 # not for PA HP-UX.
15721 case $host_cpu in
15722 hppa*64*|ia64*)
15723 # +Z the default
15724 ;;
15725 *)
15726 lt_prog_compiler_pic='+Z'
15727 ;;
15728 esac
15729 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15730 lt_prog_compiler_static='$wl-a ${wl}archive'
15731 ;;
15732
15733 irix5* | irix6* | nonstopux*)
15734 lt_prog_compiler_wl='-Wl,'
15735 # PIC (with -KPIC) is the default.
15736 lt_prog_compiler_static='-non_shared'
15737 ;;
15738
15739 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15740 case $cc_basename in
15741 # old Intel for x86_64, which still supported -KPIC.
15742 ecc*)
15743 lt_prog_compiler_wl='-Wl,'
15744 lt_prog_compiler_pic='-KPIC'
15745 lt_prog_compiler_static='-static'
15746 ;;
15747 # icc used to be incompatible with GCC.
15748 # ICC 10 doesn't accept -KPIC any more.
15749 icc* | ifort*)
15750 lt_prog_compiler_wl='-Wl,'
15751 lt_prog_compiler_pic='-fPIC'
15752 lt_prog_compiler_static='-static'
15753 ;;
15754 # Lahey Fortran 8.1.
15755 lf95*)
15756 lt_prog_compiler_wl='-Wl,'
15757 lt_prog_compiler_pic='--shared'
15758 lt_prog_compiler_static='--static'
15759 ;;
15760 nagfor*)
15761 # NAG Fortran compiler
15762 lt_prog_compiler_wl='-Wl,-Wl,,'
15763 lt_prog_compiler_pic='-PIC'
15764 lt_prog_compiler_static='-Bstatic'
15765 ;;
15766 tcc*)
15767 # Fabrice Bellard et al's Tiny C Compiler
15768 lt_prog_compiler_wl='-Wl,'
15769 lt_prog_compiler_pic='-fPIC'
15770 lt_prog_compiler_static='-static'
15771 ;;
15772 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
15773 # Portland Group compilers (*not* the Pentium gcc compiler,
15774 # which looks to be a dead project)
15775 lt_prog_compiler_wl='-Wl,'
15776 lt_prog_compiler_pic='-fpic'
15777 lt_prog_compiler_static='-Bstatic'
15778 ;;
15779 ccc*)
15780 lt_prog_compiler_wl='-Wl,'
15781 # All Alpha code is PIC.
15782 lt_prog_compiler_static='-non_shared'
15783 ;;
15784 xl* | bgxl* | bgf* | mpixl*)
15785 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
15786 lt_prog_compiler_wl='-Wl,'
15787 lt_prog_compiler_pic='-qpic'
15788 lt_prog_compiler_static='-qstaticlink'
15789 ;;
15790 *)
15791 case `$CC -V 2>&1 | $SED 5q` in
15792 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
15793 # Sun Fortran 8.3 passes all unrecognized flags to the linker
15794 lt_prog_compiler_pic='-KPIC'
15795 lt_prog_compiler_static='-Bstatic'
15796 lt_prog_compiler_wl=''
15797 ;;
15798 *Sun\ F* | *Sun*Fortran*)
15799 lt_prog_compiler_pic='-KPIC'
15800 lt_prog_compiler_static='-Bstatic'
15801 lt_prog_compiler_wl='-Qoption ld '
15802 ;;
15803 *Sun\ C*)
15804 # Sun C 5.9
15805 lt_prog_compiler_pic='-KPIC'
15806 lt_prog_compiler_static='-Bstatic'
15807 lt_prog_compiler_wl='-Wl,'
15808 ;;
15809 *Intel*\ [CF]*Compiler*)
15810 lt_prog_compiler_wl='-Wl,'
15811 lt_prog_compiler_pic='-fPIC'
15812 lt_prog_compiler_static='-static'
15813 ;;
15814 *Portland\ Group*)
15815 lt_prog_compiler_wl='-Wl,'
15816 lt_prog_compiler_pic='-fpic'
15817 lt_prog_compiler_static='-Bstatic'
15818 ;;
15819 esac
15820 ;;
15821 esac
15822 ;;
15823
15824 newsos6)
15825 lt_prog_compiler_pic='-KPIC'
15826 lt_prog_compiler_static='-Bstatic'
15827 ;;
15828
15829 *nto* | *qnx*)
15830 # QNX uses GNU C++, but need to define -shared option too, otherwise
15831 # it will coredump.
15832 lt_prog_compiler_pic='-fPIC -shared'
15833 ;;
15834
15835 osf3* | osf4* | osf5*)
15836 lt_prog_compiler_wl='-Wl,'
15837 # All OSF/1 code is PIC.
15838 lt_prog_compiler_static='-non_shared'
15839 ;;
15840
15841 rdos*)
15842 lt_prog_compiler_static='-non_shared'
15843 ;;
15844
15845 solaris*)
15846 lt_prog_compiler_pic='-KPIC'
15847 lt_prog_compiler_static='-Bstatic'
15848 case $cc_basename in
15849 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
15850 lt_prog_compiler_wl='-Qoption ld ';;
15851 *)
15852 lt_prog_compiler_wl='-Wl,';;
15853 esac
15854 ;;
15855
15856 sunos4*)
15857 lt_prog_compiler_wl='-Qoption ld '
15858 lt_prog_compiler_pic='-PIC'
15859 lt_prog_compiler_static='-Bstatic'
15860 ;;
15861
15862 sysv4 | sysv4.2uw2* | sysv4.3*)
15863 lt_prog_compiler_wl='-Wl,'
15864 lt_prog_compiler_pic='-KPIC'
15865 lt_prog_compiler_static='-Bstatic'
15866 ;;
15867
15868 sysv4*MP*)
15869 if test -d /usr/nec; then
15870 lt_prog_compiler_pic='-Kconform_pic'
15871 lt_prog_compiler_static='-Bstatic'
15872 fi
15873 ;;
15874
15875 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15876 lt_prog_compiler_wl='-Wl,'
15877 lt_prog_compiler_pic='-KPIC'
15878 lt_prog_compiler_static='-Bstatic'
15879 ;;
15880
15881 unicos*)
15882 lt_prog_compiler_wl='-Wl,'
15883 lt_prog_compiler_can_build_shared=no
15884 ;;
15885
15886 uts4*)
15887 lt_prog_compiler_pic='-pic'
15888 lt_prog_compiler_static='-Bstatic'
15889 ;;
15890
15891 *)
15892 lt_prog_compiler_can_build_shared=no
15893 ;;
15894 esac
15895 fi
15896
15897 case $host_os in
15898 # For platforms that do not support PIC, -DPIC is meaningless:
15899 *djgpp*)
15900 lt_prog_compiler_pic=
15901 ;;
15902 *)
15903 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15904 ;;
15905 esac
15906
15907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15908 printf %s "checking for $compiler option to produce PIC... " >&6; }
15909 if test ${lt_cv_prog_compiler_pic+y}
15910 then :
15911 printf %s "(cached) " >&6
15912 else $as_nop
15913 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
15914 fi
15915 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
15916 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
15917 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
15918
15919 #
15920 # Check to make sure the PIC flag actually works.
15921 #
15922 if test -n "$lt_prog_compiler_pic"; then
15923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
15924 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
15925 if test ${lt_cv_prog_compiler_pic_works+y}
15926 then :
15927 printf %s "(cached) " >&6
15928 else $as_nop
15929 lt_cv_prog_compiler_pic_works=no
15930 ac_outfile=conftest.$ac_objext
15931 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15932 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
15933 # Insert the option either (1) after the last *FLAGS variable, or
15934 # (2) before a word containing "conftest.", or (3) at the end.
15935 # Note that $ac_compile itself does not contain backslashes and begins
15936 # with a dollar sign (not a hyphen), so the echo should work correctly.
15937 # The option is referenced via a variable to avoid confusing sed.
15938 lt_compile=`echo "$ac_compile" | $SED \
15939 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15940 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15941 -e 's:$: $lt_compiler_flag:'`
15942 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15943 (eval "$lt_compile" 2>conftest.err)
15944 ac_status=$?
15945 cat conftest.err >&5
15946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15947 if (exit $ac_status) && test -s "$ac_outfile"; then
15948 # The compiler can only warn and ignore the option if not recognized
15949 # So say no if there are warnings other than the usual output.
15950 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15951 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15952 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15953 lt_cv_prog_compiler_pic_works=yes
15954 fi
15955 fi
15956 $RM conftest*
15957
15958 fi
15959 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
15960 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
15961
15962 if test yes = "$lt_cv_prog_compiler_pic_works"; then
15963 case $lt_prog_compiler_pic in
15964 "" | " "*) ;;
15965 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15966 esac
15967 else
15968 lt_prog_compiler_pic=
15969 lt_prog_compiler_can_build_shared=no
15970 fi
15971
15972 fi
15973
15974
15975
15976
15977
15978
15979
15980
15981
15982
15983
15984 #
15985 # Check to make sure the static flag actually works.
15986 #
15987 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15989 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15990 if test ${lt_cv_prog_compiler_static_works+y}
15991 then :
15992 printf %s "(cached) " >&6
15993 else $as_nop
15994 lt_cv_prog_compiler_static_works=no
15995 save_LDFLAGS=$LDFLAGS
15996 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15997 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15998 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15999 # The linker can only warn and ignore the option if not recognized
16000 # So say no if there are warnings
16001 if test -s conftest.err; then
16002 # Append any errors to the config.log.
16003 cat conftest.err 1>&5
16004 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16005 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16006 if diff conftest.exp conftest.er2 >/dev/null; then
16007 lt_cv_prog_compiler_static_works=yes
16008 fi
16009 else
16010 lt_cv_prog_compiler_static_works=yes
16011 fi
16012 fi
16013 $RM -r conftest*
16014 LDFLAGS=$save_LDFLAGS
16015
16016 fi
16017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
16018 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
16019
16020 if test yes = "$lt_cv_prog_compiler_static_works"; then
16021 :
16022 else
16023 lt_prog_compiler_static=
16024 fi
16025
16026
16027
16028
16029
16030
16031
16032 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16033 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16034 if test ${lt_cv_prog_compiler_c_o+y}
16035 then :
16036 printf %s "(cached) " >&6
16037 else $as_nop
16038 lt_cv_prog_compiler_c_o=no
16039 $RM -r conftest 2>/dev/null
16040 mkdir conftest
16041 cd conftest
16042 mkdir out
16043 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16044
16045 lt_compiler_flag="-o out/conftest2.$ac_objext"
16046 # Insert the option either (1) after the last *FLAGS variable, or
16047 # (2) before a word containing "conftest.", or (3) at the end.
16048 # Note that $ac_compile itself does not contain backslashes and begins
16049 # with a dollar sign (not a hyphen), so the echo should work correctly.
16050 lt_compile=`echo "$ac_compile" | $SED \
16051 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16052 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16053 -e 's:$: $lt_compiler_flag:'`
16054 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16055 (eval "$lt_compile" 2>out/conftest.err)
16056 ac_status=$?
16057 cat out/conftest.err >&5
16058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16059 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16060 then
16061 # The compiler can only warn and ignore the option if not recognized
16062 # So say no if there are warnings
16063 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16064 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16065 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16066 lt_cv_prog_compiler_c_o=yes
16067 fi
16068 fi
16069 chmod u+w . 2>&5
16070 $RM conftest*
16071 # SGI C++ compiler will create directory out/ii_files/ for
16072 # template instantiation
16073 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16074 $RM out/* && rmdir out
16075 cd ..
16076 $RM -r conftest
16077 $RM conftest*
16078
16079 fi
16080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
16081 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
16082
16083
16084
16085
16086
16087
16088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16089 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16090 if test ${lt_cv_prog_compiler_c_o+y}
16091 then :
16092 printf %s "(cached) " >&6
16093 else $as_nop
16094 lt_cv_prog_compiler_c_o=no
16095 $RM -r conftest 2>/dev/null
16096 mkdir conftest
16097 cd conftest
16098 mkdir out
16099 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16100
16101 lt_compiler_flag="-o out/conftest2.$ac_objext"
16102 # Insert the option either (1) after the last *FLAGS variable, or
16103 # (2) before a word containing "conftest.", or (3) at the end.
16104 # Note that $ac_compile itself does not contain backslashes and begins
16105 # with a dollar sign (not a hyphen), so the echo should work correctly.
16106 lt_compile=`echo "$ac_compile" | $SED \
16107 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16108 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16109 -e 's:$: $lt_compiler_flag:'`
16110 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16111 (eval "$lt_compile" 2>out/conftest.err)
16112 ac_status=$?
16113 cat out/conftest.err >&5
16114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16115 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16116 then
16117 # The compiler can only warn and ignore the option if not recognized
16118 # So say no if there are warnings
16119 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16120 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16121 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16122 lt_cv_prog_compiler_c_o=yes
16123 fi
16124 fi
16125 chmod u+w . 2>&5
16126 $RM conftest*
16127 # SGI C++ compiler will create directory out/ii_files/ for
16128 # template instantiation
16129 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16130 $RM out/* && rmdir out
16131 cd ..
16132 $RM -r conftest
16133 $RM conftest*
16134
16135 fi
16136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
16137 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
16138
16139
16140
16141
16142 hard_links=nottested
16143 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
16144 # do not overwrite the value of need_locks provided by the user
16145 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
16146 printf %s "checking if we can lock with hard links... " >&6; }
16147 hard_links=yes
16148 $RM conftest*
16149 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16150 touch conftest.a
16151 ln conftest.a conftest.b 2>&5 || hard_links=no
16152 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16153 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
16154 printf "%s\n" "$hard_links" >&6; }
16155 if test no = "$hard_links"; then
16156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
16157 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
16158 need_locks=warn
16159 fi
16160 else
16161 need_locks=no
16162 fi
16163
16164
16165
16166
16167
16168
16169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16170 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16171
16172 runpath_var=
16173 allow_undefined_flag=
16174 always_export_symbols=no
16175 archive_cmds=
16176 archive_expsym_cmds=
16177 compiler_needs_object=no
16178 enable_shared_with_static_runtimes=no
16179 export_dynamic_flag_spec=
16180 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16181 hardcode_automatic=no
16182 hardcode_direct=no
16183 hardcode_direct_absolute=no
16184 hardcode_libdir_flag_spec=
16185 hardcode_libdir_separator=
16186 hardcode_minus_L=no
16187 hardcode_shlibpath_var=unsupported
16188 inherit_rpath=no
16189 link_all_deplibs=unknown
16190 module_cmds=
16191 module_expsym_cmds=
16192 old_archive_from_new_cmds=
16193 old_archive_from_expsyms_cmds=
16194 thread_safe_flag_spec=
16195 whole_archive_flag_spec=
16196 # include_expsyms should be a list of space-separated symbols to be *always*
16197 # included in the symbol list
16198 include_expsyms=
16199 # exclude_expsyms can be an extended regexp of symbols to exclude
16200 # it will be wrapped by ' (' and ')$', so one must not match beginning or
16201 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
16202 # as well as any symbol that contains 'd'.
16203 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16204 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16205 # platforms (ab)use it in PIC code, but their linkers get confused if
16206 # the symbol is explicitly referenced. Since portable code cannot
16207 # rely on this symbol name, it's probably fine to never include it in
16208 # preloaded symbol tables.
16209 # Exclude shared library initialization/finalization symbols.
16210 extract_expsyms_cmds=
16211
16212 case $host_os in
16213 cygwin* | mingw* | pw32* | cegcc*)
16214 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
16215 # When not using gcc, we currently assume that we are using
16216 # Microsoft Visual C++ or Intel C++ Compiler.
16217 if test yes != "$GCC"; then
16218 with_gnu_ld=no
16219 fi
16220 ;;
16221 interix*)
16222 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
16223 with_gnu_ld=yes
16224 ;;
16225 openbsd* | bitrig*)
16226 with_gnu_ld=no
16227 ;;
16228 esac
16229
16230 ld_shlibs=yes
16231
16232 # On some targets, GNU ld is compatible enough with the native linker
16233 # that we're better off using the native interface for both.
16234 lt_use_gnu_ld_interface=no
16235 if test yes = "$with_gnu_ld"; then
16236 case $host_os in
16237 aix*)
16238 # The AIX port of GNU ld has always aspired to compatibility
16239 # with the native linker. However, as the warning in the GNU ld
16240 # block says, versions before 2.19.5* couldn't really create working
16241 # shared libraries, regardless of the interface used.
16242 case `$LD -v 2>&1` in
16243 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
16244 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
16245 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
16246 *)
16247 lt_use_gnu_ld_interface=yes
16248 ;;
16249 esac
16250 ;;
16251 *)
16252 lt_use_gnu_ld_interface=yes
16253 ;;
16254 esac
16255 fi
16256
16257 if test yes = "$lt_use_gnu_ld_interface"; then
16258 # If archive_cmds runs LD, not CC, wlarc should be empty
16259 wlarc='$wl'
16260
16261 # Set some defaults for GNU ld with shared library support. These
16262 # are reset later if shared libraries are not supported. Putting them
16263 # here allows them to be overridden if necessary.
16264 runpath_var=LD_RUN_PATH
16265 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
16266 export_dynamic_flag_spec='$wl--export-dynamic'
16267 # ancient GNU ld didn't support --whole-archive et. al.
16268 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
16269 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
16270 else
16271 whole_archive_flag_spec=
16272 fi
16273 supports_anon_versioning=no
16274 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
16275 *GNU\ gold*) supports_anon_versioning=yes ;;
16276 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16277 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16278 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16279 *\ 2.11.*) ;; # other 2.11 versions
16280 *) supports_anon_versioning=yes ;;
16281 esac
16282
16283 # See if GNU ld supports shared libraries.
16284 case $host_os in
16285 aix[3-9]*)
16286 # On AIX/PPC, the GNU linker is very broken
16287 if test ia64 != "$host_cpu"; then
16288 ld_shlibs=no
16289 cat <<_LT_EOF 1>&2
16290
16291 *** Warning: the GNU linker, at least up to release 2.19, is reported
16292 *** to be unable to reliably create shared libraries on AIX.
16293 *** Therefore, libtool is disabling shared libraries support. If you
16294 *** really care for shared libraries, you may want to install binutils
16295 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
16296 *** You will then need to restart the configuration process.
16297
16298 _LT_EOF
16299 fi
16300 ;;
16301
16302 amigaos*)
16303 case $host_cpu in
16304 powerpc)
16305 # see comment about AmigaOS4 .so support
16306 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16307 archive_expsym_cmds=''
16308 ;;
16309 m68k)
16310 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)'
16311 hardcode_libdir_flag_spec='-L$libdir'
16312 hardcode_minus_L=yes
16313 ;;
16314 esac
16315 ;;
16316
16317 beos*)
16318 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16319 allow_undefined_flag=unsupported
16320 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
16321 # support --undefined. This deserves some investigation. FIXME
16322 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16323 else
16324 ld_shlibs=no
16325 fi
16326 ;;
16327
16328 cygwin* | mingw* | pw32* | cegcc*)
16329 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
16330 # as there is no search path for DLLs.
16331 hardcode_libdir_flag_spec='-L$libdir'
16332 export_dynamic_flag_spec='$wl--export-all-symbols'
16333 allow_undefined_flag=unsupported
16334 always_export_symbols=no
16335 enable_shared_with_static_runtimes=yes
16336 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'
16337 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
16338
16339 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
16340 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16341 # If the export-symbols file already is a .def file, use it as
16342 # is; otherwise, prepend EXPORTS...
16343 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
16344 cp $export_symbols $output_objdir/$soname.def;
16345 else
16346 echo EXPORTS > $output_objdir/$soname.def;
16347 cat $export_symbols >> $output_objdir/$soname.def;
16348 fi~
16349 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16350 else
16351 ld_shlibs=no
16352 fi
16353 ;;
16354
16355 haiku*)
16356 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16357 link_all_deplibs=yes
16358 ;;
16359
16360 os2*)
16361 hardcode_libdir_flag_spec='-L$libdir'
16362 hardcode_minus_L=yes
16363 allow_undefined_flag=unsupported
16364 shrext_cmds=.dll
16365 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
16366 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
16367 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
16368 $ECHO EXPORTS >> $output_objdir/$libname.def~
16369 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
16370 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
16371 emximp -o $lib $output_objdir/$libname.def'
16372 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
16373 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
16374 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
16375 $ECHO EXPORTS >> $output_objdir/$libname.def~
16376 prefix_cmds="$SED"~
16377 if test EXPORTS = "`$SED 1q $export_symbols`"; then
16378 prefix_cmds="$prefix_cmds -e 1d";
16379 fi~
16380 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
16381 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
16382 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
16383 emximp -o $lib $output_objdir/$libname.def'
16384 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
16385 enable_shared_with_static_runtimes=yes
16386 file_list_spec='@'
16387 ;;
16388
16389 interix[3-9]*)
16390 hardcode_direct=no
16391 hardcode_shlibpath_var=no
16392 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
16393 export_dynamic_flag_spec='$wl-E'
16394 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16395 # Instead, shared libraries are loaded at an image base (0x10000000 by
16396 # default) and relocated if they conflict, which is a slow very memory
16397 # consuming and fragmenting process. To avoid this, we pick a random,
16398 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16399 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16400 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16401 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'
16402 ;;
16403
16404 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
16405 tmp_diet=no
16406 if test linux-dietlibc = "$host_os"; then
16407 case $cc_basename in
16408 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
16409 esac
16410 fi
16411 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
16412 && test no = "$tmp_diet"
16413 then
16414 tmp_addflag=' $pic_flag'
16415 tmp_sharedflag='-shared'
16416 case $cc_basename,$host_cpu in
16417 pgcc*) # Portland Group C compiler
16418 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'
16419 tmp_addflag=' $pic_flag'
16420 ;;
16421 pgf77* | pgf90* | pgf95* | pgfortran*)
16422 # Portland Group f77 and f90 compilers
16423 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'
16424 tmp_addflag=' $pic_flag -Mnomain' ;;
16425 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16426 tmp_addflag=' -i_dynamic' ;;
16427 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16428 tmp_addflag=' -i_dynamic -nofor_main' ;;
16429 ifc* | ifort*) # Intel Fortran compiler
16430 tmp_addflag=' -nofor_main' ;;
16431 lf95*) # Lahey Fortran 8.1
16432 whole_archive_flag_spec=
16433 tmp_sharedflag='--shared' ;;
16434 nagfor*) # NAGFOR 5.3
16435 tmp_sharedflag='-Wl,-shared' ;;
16436 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
16437 tmp_sharedflag='-qmkshrobj'
16438 tmp_addflag= ;;
16439 nvcc*) # Cuda Compiler Driver 2.2
16440 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'
16441 compiler_needs_object=yes
16442 ;;
16443 esac
16444 case `$CC -V 2>&1 | $SED 5q` in
16445 *Sun\ C*) # Sun C 5.9
16446 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'
16447 compiler_needs_object=yes
16448 tmp_sharedflag='-G' ;;
16449 *Sun\ F*) # Sun Fortran 8.3
16450 tmp_sharedflag='-G' ;;
16451 esac
16452 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16453
16454 if test yes = "$supports_anon_versioning"; then
16455 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
16456 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16457 echo "local: *; };" >> $output_objdir/$libname.ver~
16458 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
16459 fi
16460
16461 case $cc_basename in
16462 tcc*)
16463 export_dynamic_flag_spec='-rdynamic'
16464 ;;
16465 xlf* | bgf* | bgxlf* | mpixlf*)
16466 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
16467 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
16468 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
16469 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
16470 if test yes = "$supports_anon_versioning"; then
16471 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
16472 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16473 echo "local: *; };" >> $output_objdir/$libname.ver~
16474 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
16475 fi
16476 ;;
16477 esac
16478 else
16479 ld_shlibs=no
16480 fi
16481 ;;
16482
16483 netbsd*)
16484 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16485 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16486 wlarc=
16487 else
16488 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16489 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
16490 fi
16491 ;;
16492
16493 solaris*)
16494 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
16495 ld_shlibs=no
16496 cat <<_LT_EOF 1>&2
16497
16498 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16499 *** create shared libraries on Solaris systems. Therefore, libtool
16500 *** is disabling shared libraries support. We urge you to upgrade GNU
16501 *** binutils to release 2.9.1 or newer. Another option is to modify
16502 *** your PATH or compiler configuration so that the native linker is
16503 *** used, and then restart.
16504
16505 _LT_EOF
16506 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16507 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16508 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
16509 else
16510 ld_shlibs=no
16511 fi
16512 ;;
16513
16514 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16515 case `$LD -v 2>&1` in
16516 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16517 ld_shlibs=no
16518 cat <<_LT_EOF 1>&2
16519
16520 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
16521 *** reliably create shared libraries on SCO systems. Therefore, libtool
16522 *** is disabling shared libraries support. We urge you to upgrade GNU
16523 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16524 *** your PATH or compiler configuration so that the native linker is
16525 *** used, and then restart.
16526
16527 _LT_EOF
16528 ;;
16529 *)
16530 # For security reasons, it is highly recommended that you always
16531 # use absolute paths for naming shared libraries, and exclude the
16532 # DT_RUNPATH tag from executables and libraries. But doing so
16533 # requires that you compile everything twice, which is a pain.
16534 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16535 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
16536 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16537 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
16538 else
16539 ld_shlibs=no
16540 fi
16541 ;;
16542 esac
16543 ;;
16544
16545 sunos4*)
16546 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16547 wlarc=
16548 hardcode_direct=yes
16549 hardcode_shlibpath_var=no
16550 ;;
16551
16552 *)
16553 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16554 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16555 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
16556 else
16557 ld_shlibs=no
16558 fi
16559 ;;
16560 esac
16561
16562 if test no = "$ld_shlibs"; then
16563 runpath_var=
16564 hardcode_libdir_flag_spec=
16565 export_dynamic_flag_spec=
16566 whole_archive_flag_spec=
16567 fi
16568 else
16569 # PORTME fill in a description of your system's linker (not GNU ld)
16570 case $host_os in
16571 aix3*)
16572 allow_undefined_flag=unsupported
16573 always_export_symbols=yes
16574 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'
16575 # Note: this linker hardcodes the directories in LIBPATH if there
16576 # are no directories specified by -L.
16577 hardcode_minus_L=yes
16578 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
16579 # Neither direct hardcoding nor static linking is supported with a
16580 # broken collect2.
16581 hardcode_direct=unsupported
16582 fi
16583 ;;
16584
16585 aix[4-9]*)
16586 if test ia64 = "$host_cpu"; then
16587 # On IA64, the linker does run time linking by default, so we don't
16588 # have to do anything special.
16589 aix_use_runtimelinking=no
16590 exp_sym_flag='-Bexport'
16591 no_entry_flag=
16592 else
16593 # If we're using GNU nm, then we don't want the "-C" option.
16594 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
16595 # Without the "-l" option, or with the "-B" option, AIX nm treats
16596 # weak defined symbols like other global defined symbols, whereas
16597 # GNU nm marks them as "W".
16598 # While the 'weak' keyword is ignored in the Export File, we need
16599 # it in the Import File for the 'aix-soname' feature, so we have
16600 # to replace the "-B" option with "-P" for AIX nm.
16601 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
16602 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'
16603 else
16604 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'
16605 fi
16606 aix_use_runtimelinking=no
16607
16608 # Test if we are trying to use run time linking or normal
16609 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16610 # have runtime linking enabled, and use it for executables.
16611 # For shared libraries, we enable/disable runtime linking
16612 # depending on the kind of the shared library created -
16613 # when "with_aix_soname,aix_use_runtimelinking" is:
16614 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
16615 # "aix,yes" lib.so shared, rtl:yes, for executables
16616 # lib.a static archive
16617 # "both,no" lib.so.V(shr.o) shared, rtl:yes
16618 # lib.a(lib.so.V) shared, rtl:no, for executables
16619 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
16620 # lib.a(lib.so.V) shared, rtl:no
16621 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
16622 # lib.a static archive
16623 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
16624 for ld_flag in $LDFLAGS; do
16625 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
16626 aix_use_runtimelinking=yes
16627 break
16628 fi
16629 done
16630 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
16631 # With aix-soname=svr4, we create the lib.so.V shared archives only,
16632 # so we don't have lib.a shared libs to link our executables.
16633 # We have to force runtime linking in this case.
16634 aix_use_runtimelinking=yes
16635 LDFLAGS="$LDFLAGS -Wl,-brtl"
16636 fi
16637 ;;
16638 esac
16639
16640 exp_sym_flag='-bexport'
16641 no_entry_flag='-bnoentry'
16642 fi
16643
16644 # When large executables or shared objects are built, AIX ld can
16645 # have problems creating the table of contents. If linking a library
16646 # or program results in "error TOC overflow" add -mminimal-toc to
16647 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16648 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16649
16650 archive_cmds=''
16651 hardcode_direct=yes
16652 hardcode_direct_absolute=yes
16653 hardcode_libdir_separator=':'
16654 link_all_deplibs=yes
16655 file_list_spec='$wl-f,'
16656 case $with_aix_soname,$aix_use_runtimelinking in
16657 aix,*) ;; # traditional, no import file
16658 svr4,* | *,yes) # use import file
16659 # The Import File defines what to hardcode.
16660 hardcode_direct=no
16661 hardcode_direct_absolute=no
16662 ;;
16663 esac
16664
16665 if test yes = "$GCC"; then
16666 case $host_os in aix4.[012]|aix4.[012].*)
16667 # We only want to do this on AIX 4.2 and lower, the check
16668 # below for broken collect2 doesn't work under 4.3+
16669 collect2name=`$CC -print-prog-name=collect2`
16670 if test -f "$collect2name" &&
16671 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
16672 then
16673 # We have reworked collect2
16674 :
16675 else
16676 # We have old collect2
16677 hardcode_direct=unsupported
16678 # It fails to find uninstalled libraries when the uninstalled
16679 # path is not listed in the libpath. Setting hardcode_minus_L
16680 # to unsupported forces relinking
16681 hardcode_minus_L=yes
16682 hardcode_libdir_flag_spec='-L$libdir'
16683 hardcode_libdir_separator=
16684 fi
16685 ;;
16686 esac
16687 shared_flag='-shared'
16688 if test yes = "$aix_use_runtimelinking"; then
16689 shared_flag="$shared_flag "'$wl-G'
16690 fi
16691 # Need to ensure runtime linking is disabled for the traditional
16692 # shared library, or the linker may eventually find shared libraries
16693 # /with/ Import File - we do not want to mix them.
16694 shared_flag_aix='-shared'
16695 shared_flag_svr4='-shared $wl-G'
16696 else
16697 # not using gcc
16698 if test ia64 = "$host_cpu"; then
16699 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16700 # chokes on -Wl,-G. The following line is correct:
16701 shared_flag='-G'
16702 else
16703 if test yes = "$aix_use_runtimelinking"; then
16704 shared_flag='$wl-G'
16705 else
16706 shared_flag='$wl-bM:SRE'
16707 fi
16708 shared_flag_aix='$wl-bM:SRE'
16709 shared_flag_svr4='$wl-G'
16710 fi
16711 fi
16712
16713 export_dynamic_flag_spec='$wl-bexpall'
16714 # It seems that -bexpall does not export symbols beginning with
16715 # underscore (_), so it is better to generate a list of symbols to export.
16716 always_export_symbols=yes
16717 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
16718 # Warning - without using the other runtime loading flags (-brtl),
16719 # -berok will link without error, but may produce a broken library.
16720 allow_undefined_flag='-berok'
16721 # Determine the default libpath from the value encoded in an
16722 # empty executable.
16723 if test set = "${lt_cv_aix_libpath+set}"; then
16724 aix_libpath=$lt_cv_aix_libpath
16725 else
16726 if test ${lt_cv_aix_libpath_+y}
16727 then :
16728 printf %s "(cached) " >&6
16729 else $as_nop
16730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16731 /* end confdefs.h. */
16732
16733 int
16734 main (void)
16735 {
16736
16737 ;
16738 return 0;
16739 }
16740 _ACEOF
16741 if ac_fn_c_try_link "$LINENO"
16742 then :
16743
16744 lt_aix_libpath_sed='
16745 /Import File Strings/,/^$/ {
16746 /^0/ {
16747 s/^0 *\([^ ]*\) *$/\1/
16748 p
16749 }
16750 }'
16751 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16752 # Check for a 64-bit object if we didn't find anything.
16753 if test -z "$lt_cv_aix_libpath_"; then
16754 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16755 fi
16756 fi
16757 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16758 conftest$ac_exeext conftest.$ac_ext
16759 if test -z "$lt_cv_aix_libpath_"; then
16760 lt_cv_aix_libpath_=/usr/lib:/lib
16761 fi
16762
16763 fi
16764
16765 aix_libpath=$lt_cv_aix_libpath_
16766 fi
16767
16768 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
16769 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
16770 else
16771 if test ia64 = "$host_cpu"; then
16772 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
16773 allow_undefined_flag="-z nodefs"
16774 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"
16775 else
16776 # Determine the default libpath from the value encoded in an
16777 # empty executable.
16778 if test set = "${lt_cv_aix_libpath+set}"; then
16779 aix_libpath=$lt_cv_aix_libpath
16780 else
16781 if test ${lt_cv_aix_libpath_+y}
16782 then :
16783 printf %s "(cached) " >&6
16784 else $as_nop
16785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16786 /* end confdefs.h. */
16787
16788 int
16789 main (void)
16790 {
16791
16792 ;
16793 return 0;
16794 }
16795 _ACEOF
16796 if ac_fn_c_try_link "$LINENO"
16797 then :
16798
16799 lt_aix_libpath_sed='
16800 /Import File Strings/,/^$/ {
16801 /^0/ {
16802 s/^0 *\([^ ]*\) *$/\1/
16803 p
16804 }
16805 }'
16806 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16807 # Check for a 64-bit object if we didn't find anything.
16808 if test -z "$lt_cv_aix_libpath_"; then
16809 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16810 fi
16811 fi
16812 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16813 conftest$ac_exeext conftest.$ac_ext
16814 if test -z "$lt_cv_aix_libpath_"; then
16815 lt_cv_aix_libpath_=/usr/lib:/lib
16816 fi
16817
16818 fi
16819
16820 aix_libpath=$lt_cv_aix_libpath_
16821 fi
16822
16823 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
16824 # Warning - without using the other run time loading flags,
16825 # -berok will link without error, but may produce a broken library.
16826 no_undefined_flag=' $wl-bernotok'
16827 allow_undefined_flag=' $wl-berok'
16828 if test yes = "$with_gnu_ld"; then
16829 # We only use this code for GNU lds that support --whole-archive.
16830 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
16831 else
16832 # Exported symbols can be pulled into shared objects from archives
16833 whole_archive_flag_spec='$convenience'
16834 fi
16835 archive_cmds_need_lc=yes
16836 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
16837 # -brtl affects multiple linker settings, -berok does not and is overridden later
16838 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
16839 if test svr4 != "$with_aix_soname"; then
16840 # This is similar to how AIX traditionally builds its shared libraries.
16841 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'
16842 fi
16843 if test aix != "$with_aix_soname"; then
16844 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'
16845 else
16846 # used by -dlpreopen to get the symbols
16847 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
16848 fi
16849 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
16850 fi
16851 fi
16852 ;;
16853
16854 amigaos*)
16855 case $host_cpu in
16856 powerpc)
16857 # see comment about AmigaOS4 .so support
16858 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16859 archive_expsym_cmds=''
16860 ;;
16861 m68k)
16862 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)'
16863 hardcode_libdir_flag_spec='-L$libdir'
16864 hardcode_minus_L=yes
16865 ;;
16866 esac
16867 ;;
16868
16869 bsdi[45]*)
16870 export_dynamic_flag_spec=-rdynamic
16871 ;;
16872
16873 cygwin* | mingw* | pw32* | cegcc*)
16874 # When not using gcc, we currently assume that we are using
16875 # Microsoft Visual C++ or Intel C++ Compiler.
16876 # hardcode_libdir_flag_spec is actually meaningless, as there is
16877 # no search path for DLLs.
16878 case $cc_basename in
16879 cl* | icl*)
16880 # Native MSVC or ICC
16881 hardcode_libdir_flag_spec=' '
16882 allow_undefined_flag=unsupported
16883 always_export_symbols=yes
16884 file_list_spec='@'
16885 # Tell ltmain to make .lib files, not .a files.
16886 libext=lib
16887 # Tell ltmain to make .dll files, not .so files.
16888 shrext_cmds=.dll
16889 # FIXME: Setting linknames here is a bad hack.
16890 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
16891 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
16892 cp "$export_symbols" "$output_objdir/$soname.def";
16893 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
16894 else
16895 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
16896 fi~
16897 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
16898 linknames='
16899 # The linker will not automatically build a static lib if we build a DLL.
16900 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
16901 enable_shared_with_static_runtimes=yes
16902 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
16903 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16904 # Don't use ranlib
16905 old_postinstall_cmds='chmod 644 $oldlib'
16906 postlink_cmds='lt_outputfile="@OUTPUT@"~
16907 lt_tool_outputfile="@TOOL_OUTPUT@"~
16908 case $lt_outputfile in
16909 *.exe|*.EXE) ;;
16910 *)
16911 lt_outputfile=$lt_outputfile.exe
16912 lt_tool_outputfile=$lt_tool_outputfile.exe
16913 ;;
16914 esac~
16915 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
16916 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
16917 $RM "$lt_outputfile.manifest";
16918 fi'
16919 ;;
16920 *)
16921 # Assume MSVC and ICC wrapper
16922 hardcode_libdir_flag_spec=' '
16923 allow_undefined_flag=unsupported
16924 # Tell ltmain to make .lib files, not .a files.
16925 libext=lib
16926 # Tell ltmain to make .dll files, not .so files.
16927 shrext_cmds=.dll
16928 # FIXME: Setting linknames here is a bad hack.
16929 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
16930 # The linker will automatically build a .lib file if we build a DLL.
16931 old_archive_from_new_cmds='true'
16932 # FIXME: Should let the user specify the lib program.
16933 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
16934 enable_shared_with_static_runtimes=yes
16935 ;;
16936 esac
16937 ;;
16938
16939 darwin* | rhapsody*)
16940
16941
16942 archive_cmds_need_lc=no
16943 hardcode_direct=no
16944 hardcode_automatic=yes
16945 hardcode_shlibpath_var=unsupported
16946 if test yes = "$lt_cv_ld_force_load"; then
16947 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\"`'
16948
16949 else
16950 whole_archive_flag_spec=''
16951 fi
16952 link_all_deplibs=yes
16953 allow_undefined_flag=$_lt_dar_allow_undefined
16954 case $cc_basename in
16955 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
16956 *) _lt_dar_can_shared=$GCC ;;
16957 esac
16958 if test yes = "$_lt_dar_can_shared"; then
16959 output_verbose_link_cmd=func_echo_all
16960 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
16961 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
16962 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"
16963 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"
16964
16965 else
16966 ld_shlibs=no
16967 fi
16968
16969 ;;
16970
16971 dgux*)
16972 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16973 hardcode_libdir_flag_spec='-L$libdir'
16974 hardcode_shlibpath_var=no
16975 ;;
16976
16977 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16978 # support. Future versions do this automatically, but an explicit c++rt0.o
16979 # does not break anything, and helps significantly (at the cost of a little
16980 # extra space).
16981 freebsd2.2*)
16982 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16983 hardcode_libdir_flag_spec='-R$libdir'
16984 hardcode_direct=yes
16985 hardcode_shlibpath_var=no
16986 ;;
16987
16988 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16989 freebsd2.*)
16990 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16991 hardcode_direct=yes
16992 hardcode_minus_L=yes
16993 hardcode_shlibpath_var=no
16994 ;;
16995
16996 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16997 freebsd* | dragonfly* | midnightbsd*)
16998 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16999 hardcode_libdir_flag_spec='-R$libdir'
17000 hardcode_direct=yes
17001 hardcode_shlibpath_var=no
17002 ;;
17003
17004 hpux9*)
17005 if test yes = "$GCC"; then
17006 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'
17007 else
17008 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'
17009 fi
17010 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
17011 hardcode_libdir_separator=:
17012 hardcode_direct=yes
17013
17014 # hardcode_minus_L: Not really in the search PATH,
17015 # but as the default location of the library.
17016 hardcode_minus_L=yes
17017 export_dynamic_flag_spec='$wl-E'
17018 ;;
17019
17020 hpux10*)
17021 if test yes,no = "$GCC,$with_gnu_ld"; then
17022 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17023 else
17024 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17025 fi
17026 if test no = "$with_gnu_ld"; then
17027 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
17028 hardcode_libdir_separator=:
17029 hardcode_direct=yes
17030 hardcode_direct_absolute=yes
17031 export_dynamic_flag_spec='$wl-E'
17032 # hardcode_minus_L: Not really in the search PATH,
17033 # but as the default location of the library.
17034 hardcode_minus_L=yes
17035 fi
17036 ;;
17037
17038 hpux11*)
17039 if test yes,no = "$GCC,$with_gnu_ld"; then
17040 case $host_cpu in
17041 hppa*64*)
17042 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
17043 ;;
17044 ia64*)
17045 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17046 ;;
17047 *)
17048 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17049 ;;
17050 esac
17051 else
17052 case $host_cpu in
17053 hppa*64*)
17054 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
17055 ;;
17056 ia64*)
17057 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17058 ;;
17059 *)
17060
17061 # Older versions of the 11.00 compiler do not understand -b yet
17062 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
17063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
17064 printf %s "checking if $CC understands -b... " >&6; }
17065 if test ${lt_cv_prog_compiler__b+y}
17066 then :
17067 printf %s "(cached) " >&6
17068 else $as_nop
17069 lt_cv_prog_compiler__b=no
17070 save_LDFLAGS=$LDFLAGS
17071 LDFLAGS="$LDFLAGS -b"
17072 echo "$lt_simple_link_test_code" > conftest.$ac_ext
17073 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17074 # The linker can only warn and ignore the option if not recognized
17075 # So say no if there are warnings
17076 if test -s conftest.err; then
17077 # Append any errors to the config.log.
17078 cat conftest.err 1>&5
17079 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
17080 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17081 if diff conftest.exp conftest.er2 >/dev/null; then
17082 lt_cv_prog_compiler__b=yes
17083 fi
17084 else
17085 lt_cv_prog_compiler__b=yes
17086 fi
17087 fi
17088 $RM -r conftest*
17089 LDFLAGS=$save_LDFLAGS
17090
17091 fi
17092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
17093 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
17094
17095 if test yes = "$lt_cv_prog_compiler__b"; then
17096 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17097 else
17098 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17099 fi
17100
17101 ;;
17102 esac
17103 fi
17104 if test no = "$with_gnu_ld"; then
17105 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
17106 hardcode_libdir_separator=:
17107
17108 case $host_cpu in
17109 hppa*64*|ia64*)
17110 hardcode_direct=no
17111 hardcode_shlibpath_var=no
17112 ;;
17113 *)
17114 hardcode_direct=yes
17115 hardcode_direct_absolute=yes
17116 export_dynamic_flag_spec='$wl-E'
17117
17118 # hardcode_minus_L: Not really in the search PATH,
17119 # but as the default location of the library.
17120 hardcode_minus_L=yes
17121 ;;
17122 esac
17123 fi
17124 ;;
17125
17126 irix5* | irix6* | nonstopux*)
17127 if test yes = "$GCC"; then
17128 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'
17129 # Try to use the -exported_symbol ld option, if it does not
17130 # work, assume that -exports_file does not work either and
17131 # implicitly export all symbols.
17132 # This should be the same for all languages, so no per-tag cache variable.
17133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
17134 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
17135 if test ${lt_cv_irix_exported_symbol+y}
17136 then :
17137 printf %s "(cached) " >&6
17138 else $as_nop
17139 save_LDFLAGS=$LDFLAGS
17140 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
17141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17142 /* end confdefs.h. */
17143 int foo (void) { return 0; }
17144 _ACEOF
17145 if ac_fn_c_try_link "$LINENO"
17146 then :
17147 lt_cv_irix_exported_symbol=yes
17148 else $as_nop
17149 lt_cv_irix_exported_symbol=no
17150 fi
17151 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17152 conftest$ac_exeext conftest.$ac_ext
17153 LDFLAGS=$save_LDFLAGS
17154 fi
17155 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
17156 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
17157 if test yes = "$lt_cv_irix_exported_symbol"; then
17158 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'
17159 fi
17160 else
17161 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'
17162 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'
17163 fi
17164 archive_cmds_need_lc='no'
17165 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
17166 hardcode_libdir_separator=:
17167 inherit_rpath=yes
17168 link_all_deplibs=yes
17169 ;;
17170
17171 linux*)
17172 case $cc_basename in
17173 tcc*)
17174 # Fabrice Bellard et al's Tiny C Compiler
17175 ld_shlibs=yes
17176 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17177 ;;
17178 esac
17179 ;;
17180
17181 netbsd*)
17182 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17183 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17184 else
17185 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17186 fi
17187 hardcode_libdir_flag_spec='-R$libdir'
17188 hardcode_direct=yes
17189 hardcode_shlibpath_var=no
17190 ;;
17191
17192 newsos6)
17193 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17194 hardcode_direct=yes
17195 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
17196 hardcode_libdir_separator=:
17197 hardcode_shlibpath_var=no
17198 ;;
17199
17200 *nto* | *qnx*)
17201 ;;
17202
17203 openbsd* | bitrig*)
17204 if test -f /usr/libexec/ld.so; then
17205 hardcode_direct=yes
17206 hardcode_shlibpath_var=no
17207 hardcode_direct_absolute=yes
17208 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
17209 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17210 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
17211 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
17212 export_dynamic_flag_spec='$wl-E'
17213 else
17214 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17215 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
17216 fi
17217 else
17218 ld_shlibs=no
17219 fi
17220 ;;
17221
17222 os2*)
17223 hardcode_libdir_flag_spec='-L$libdir'
17224 hardcode_minus_L=yes
17225 allow_undefined_flag=unsupported
17226 shrext_cmds=.dll
17227 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
17228 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
17229 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
17230 $ECHO EXPORTS >> $output_objdir/$libname.def~
17231 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
17232 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
17233 emximp -o $lib $output_objdir/$libname.def'
17234 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
17235 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
17236 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
17237 $ECHO EXPORTS >> $output_objdir/$libname.def~
17238 prefix_cmds="$SED"~
17239 if test EXPORTS = "`$SED 1q $export_symbols`"; then
17240 prefix_cmds="$prefix_cmds -e 1d";
17241 fi~
17242 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
17243 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
17244 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
17245 emximp -o $lib $output_objdir/$libname.def'
17246 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
17247 enable_shared_with_static_runtimes=yes
17248 file_list_spec='@'
17249 ;;
17250
17251 osf3*)
17252 if test yes = "$GCC"; then
17253 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
17254 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'
17255 else
17256 allow_undefined_flag=' -expect_unresolved \*'
17257 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'
17258 fi
17259 archive_cmds_need_lc='no'
17260 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
17261 hardcode_libdir_separator=:
17262 ;;
17263
17264 osf4* | osf5*) # as osf3* with the addition of -msym flag
17265 if test yes = "$GCC"; then
17266 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
17267 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'
17268 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
17269 else
17270 allow_undefined_flag=' -expect_unresolved \*'
17271 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'
17272 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~
17273 $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'
17274
17275 # Both c and cxx compiler support -rpath directly
17276 hardcode_libdir_flag_spec='-rpath $libdir'
17277 fi
17278 archive_cmds_need_lc='no'
17279 hardcode_libdir_separator=:
17280 ;;
17281
17282 solaris*)
17283 no_undefined_flag=' -z defs'
17284 if test yes = "$GCC"; then
17285 wlarc='$wl'
17286 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
17287 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17288 $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'
17289 else
17290 case `$CC -V 2>&1` in
17291 *"Compilers 5.0"*)
17292 wlarc=''
17293 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
17294 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17295 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
17296 ;;
17297 *)
17298 wlarc='$wl'
17299 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
17300 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17301 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
17302 ;;
17303 esac
17304 fi
17305 hardcode_libdir_flag_spec='-R$libdir'
17306 hardcode_shlibpath_var=no
17307 case $host_os in
17308 solaris2.[0-5] | solaris2.[0-5].*) ;;
17309 *)
17310 # The compiler driver will combine and reorder linker options,
17311 # but understands '-z linker_flag'. GCC discards it without '$wl',
17312 # but is careful enough not to reorder.
17313 # Supported since Solaris 2.6 (maybe 2.5.1?)
17314 if test yes = "$GCC"; then
17315 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
17316 else
17317 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
17318 fi
17319 ;;
17320 esac
17321 link_all_deplibs=yes
17322 ;;
17323
17324 sunos4*)
17325 if test sequent = "$host_vendor"; then
17326 # Use $CC to link under sequent, because it throws in some extra .o
17327 # files that make .init and .fini sections work.
17328 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17329 else
17330 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17331 fi
17332 hardcode_libdir_flag_spec='-L$libdir'
17333 hardcode_direct=yes
17334 hardcode_minus_L=yes
17335 hardcode_shlibpath_var=no
17336 ;;
17337
17338 sysv4)
17339 case $host_vendor in
17340 sni)
17341 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17342 hardcode_direct=yes # is this really true???
17343 ;;
17344 siemens)
17345 ## LD is ld it makes a PLAMLIB
17346 ## CC just makes a GrossModule.
17347 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17348 reload_cmds='$CC -r -o $output$reload_objs'
17349 hardcode_direct=no
17350 ;;
17351 motorola)
17352 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17353 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
17354 ;;
17355 esac
17356 runpath_var='LD_RUN_PATH'
17357 hardcode_shlibpath_var=no
17358 ;;
17359
17360 sysv4.3*)
17361 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17362 hardcode_shlibpath_var=no
17363 export_dynamic_flag_spec='-Bexport'
17364 ;;
17365
17366 sysv4*MP*)
17367 if test -d /usr/nec; then
17368 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17369 hardcode_shlibpath_var=no
17370 runpath_var=LD_RUN_PATH
17371 hardcode_runpath_var=yes
17372 ld_shlibs=yes
17373 fi
17374 ;;
17375
17376 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17377 no_undefined_flag='$wl-z,text'
17378 archive_cmds_need_lc=no
17379 hardcode_shlibpath_var=no
17380 runpath_var='LD_RUN_PATH'
17381
17382 if test yes = "$GCC"; then
17383 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17384 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17385 else
17386 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17387 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17388 fi
17389 ;;
17390
17391 sysv5* | sco3.2v5* | sco5v6*)
17392 # Note: We CANNOT use -z defs as we might desire, because we do not
17393 # link with -lc, and that would cause any symbols used from libc to
17394 # always be unresolved, which means just about no library would
17395 # ever link correctly. If we're not using GNU ld we use -z text
17396 # though, which does catch some bad symbols but isn't as heavy-handed
17397 # as -z defs.
17398 no_undefined_flag='$wl-z,text'
17399 allow_undefined_flag='$wl-z,nodefs'
17400 archive_cmds_need_lc=no
17401 hardcode_shlibpath_var=no
17402 hardcode_libdir_flag_spec='$wl-R,$libdir'
17403 hardcode_libdir_separator=':'
17404 link_all_deplibs=yes
17405 export_dynamic_flag_spec='$wl-Bexport'
17406 runpath_var='LD_RUN_PATH'
17407
17408 if test yes = "$GCC"; then
17409 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17410 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17411 else
17412 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17413 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17414 fi
17415 ;;
17416
17417 uts4*)
17418 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17419 hardcode_libdir_flag_spec='-L$libdir'
17420 hardcode_shlibpath_var=no
17421 ;;
17422
17423 *)
17424 ld_shlibs=no
17425 ;;
17426 esac
17427
17428 if test sni = "$host_vendor"; then
17429 case $host in
17430 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17431 export_dynamic_flag_spec='$wl-Blargedynsym'
17432 ;;
17433 esac
17434 fi
17435 fi
17436
17437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
17438 printf "%s\n" "$ld_shlibs" >&6; }
17439 test no = "$ld_shlibs" && can_build_shared=no
17440
17441 with_gnu_ld=$with_gnu_ld
17442
17443
17444
17445
17446
17447
17448
17449
17450
17451
17452
17453
17454
17455
17456
17457 #
17458 # Do we need to explicitly link libc?
17459 #
17460 case "x$archive_cmds_need_lc" in
17461 x|xyes)
17462 # Assume -lc should be added
17463 archive_cmds_need_lc=yes
17464
17465 if test yes,yes = "$GCC,$enable_shared"; then
17466 case $archive_cmds in
17467 *'~'*)
17468 # FIXME: we may have to deal with multi-command sequences.
17469 ;;
17470 '$CC '*)
17471 # Test whether the compiler implicitly links with -lc since on some
17472 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17473 # to ld, don't add -lc before -lgcc.
17474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
17475 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
17476 if test ${lt_cv_archive_cmds_need_lc+y}
17477 then :
17478 printf %s "(cached) " >&6
17479 else $as_nop
17480 $RM conftest*
17481 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17482
17483 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17484 (eval $ac_compile) 2>&5
17485 ac_status=$?
17486 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17487 test $ac_status = 0; } 2>conftest.err; then
17488 soname=conftest
17489 lib=conftest
17490 libobjs=conftest.$ac_objext
17491 deplibs=
17492 wl=$lt_prog_compiler_wl
17493 pic_flag=$lt_prog_compiler_pic
17494 compiler_flags=-v
17495 linker_flags=-v
17496 verstring=
17497 output_objdir=.
17498 libname=conftest
17499 lt_save_allow_undefined_flag=$allow_undefined_flag
17500 allow_undefined_flag=
17501 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
17502 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
17503 ac_status=$?
17504 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17505 test $ac_status = 0; }
17506 then
17507 lt_cv_archive_cmds_need_lc=no
17508 else
17509 lt_cv_archive_cmds_need_lc=yes
17510 fi
17511 allow_undefined_flag=$lt_save_allow_undefined_flag
17512 else
17513 cat conftest.err 1>&5
17514 fi
17515 $RM conftest*
17516
17517 fi
17518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
17519 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
17520 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
17521 ;;
17522 esac
17523 fi
17524 ;;
17525 esac
17526
17527
17528
17529
17530
17531
17532
17533
17534
17535
17536
17537
17538
17539
17540
17541
17542
17543
17544
17545
17546
17547
17548
17549
17550
17551
17552
17553
17554
17555
17556
17557
17558
17559
17560
17561
17562
17563
17564
17565
17566
17567
17568
17569
17570
17571
17572
17573
17574
17575
17576
17577
17578
17579
17580
17581
17582
17583
17584
17585
17586
17587
17588
17589
17590
17591
17592
17593
17594
17595
17596
17597
17598
17599
17600
17601
17602
17603
17604
17605
17606
17607
17608
17609
17610
17611
17612
17613
17614
17615
17616
17617
17618
17619
17620
17621
17622
17623
17624
17625
17626
17627
17628
17629
17630
17631
17632
17633
17634
17635
17636
17637
17638
17639
17640
17641
17642
17643
17644
17645
17646
17647
17648
17649
17650
17651
17652
17653
17654
17655
17656
17657
17658
17659
17660
17661
17662
17663
17664
17665
17666
17667
17668
17669
17670
17671
17672
17673
17674
17675
17676
17677
17678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17679 printf %s "checking dynamic linker characteristics... " >&6; }
17680
17681 if test yes = "$GCC"; then
17682 case $host_os in
17683 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
17684 *) lt_awk_arg='/^libraries:/' ;;
17685 esac
17686 case $host_os in
17687 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
17688 *) lt_sed_strip_eq='s|=/|/|g' ;;
17689 esac
17690 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
17691 case $lt_search_path_spec in
17692 *\;*)
17693 # if the path contains ";" then we assume it to be the separator
17694 # otherwise default to the standard path separator (i.e. ":") - it is
17695 # assumed that no part of a normal pathname contains ";" but that should
17696 # okay in the real world where ";" in dirpaths is itself problematic.
17697 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
17698 ;;
17699 *)
17700 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
17701 ;;
17702 esac
17703 # Ok, now we have the path, separated by spaces, we can step through it
17704 # and add multilib dir if necessary...
17705 lt_tmp_lt_search_path_spec=
17706 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
17707 # ...but if some path component already ends with the multilib dir we assume
17708 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
17709 case "$lt_multi_os_dir; $lt_search_path_spec " in
17710 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
17711 lt_multi_os_dir=
17712 ;;
17713 esac
17714 for lt_sys_path in $lt_search_path_spec; do
17715 if test -d "$lt_sys_path$lt_multi_os_dir"; then
17716 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
17717 elif test -n "$lt_multi_os_dir"; then
17718 test -d "$lt_sys_path" && \
17719 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
17720 fi
17721 done
17722 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
17723 BEGIN {RS = " "; FS = "/|\n";} {
17724 lt_foo = "";
17725 lt_count = 0;
17726 for (lt_i = NF; lt_i > 0; lt_i--) {
17727 if ($lt_i != "" && $lt_i != ".") {
17728 if ($lt_i == "..") {
17729 lt_count++;
17730 } else {
17731 if (lt_count == 0) {
17732 lt_foo = "/" $lt_i lt_foo;
17733 } else {
17734 lt_count--;
17735 }
17736 }
17737 }
17738 }
17739 if (lt_foo != "") { lt_freq[lt_foo]++; }
17740 if (lt_freq[lt_foo] == 1) { print lt_foo; }
17741 }'`
17742 # AWK program above erroneously prepends '/' to C:/dos/paths
17743 # for these hosts.
17744 case $host_os in
17745 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
17746 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
17747 esac
17748 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
17749 else
17750 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17751 fi
17752 library_names_spec=
17753 libname_spec='lib$name'
17754 soname_spec=
17755 shrext_cmds=.so
17756 postinstall_cmds=
17757 postuninstall_cmds=
17758 finish_cmds=
17759 finish_eval=
17760 shlibpath_var=
17761 shlibpath_overrides_runpath=unknown
17762 version_type=none
17763 dynamic_linker="$host_os ld.so"
17764 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17765 need_lib_prefix=unknown
17766 hardcode_into_libs=no
17767
17768 # when you set need_version to no, make sure it does not cause -set_version
17769 # flags to be left without arguments
17770 need_version=unknown
17771
17772
17773
17774 case $host_os in
17775 aix3*)
17776 version_type=linux # correct to gnu/linux during the next big refactor
17777 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
17778 shlibpath_var=LIBPATH
17779
17780 # AIX 3 has no versioning support, so we append a major version to the name.
17781 soname_spec='$libname$release$shared_ext$major'
17782 ;;
17783
17784 aix[4-9]*)
17785 version_type=linux # correct to gnu/linux during the next big refactor
17786 need_lib_prefix=no
17787 need_version=no
17788 hardcode_into_libs=yes
17789 if test ia64 = "$host_cpu"; then
17790 # AIX 5 supports IA64
17791 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
17792 shlibpath_var=LD_LIBRARY_PATH
17793 else
17794 # With GCC up to 2.95.x, collect2 would create an import file
17795 # for dependence libraries. The import file would start with
17796 # the line '#! .'. This would cause the generated library to
17797 # depend on '.', always an invalid library. This was fixed in
17798 # development snapshots of GCC prior to 3.0.
17799 case $host_os in
17800 aix4 | aix4.[01] | aix4.[01].*)
17801 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17802 echo ' yes '
17803 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
17804 :
17805 else
17806 can_build_shared=no
17807 fi
17808 ;;
17809 esac
17810 # Using Import Files as archive members, it is possible to support
17811 # filename-based versioning of shared library archives on AIX. While
17812 # this would work for both with and without runtime linking, it will
17813 # prevent static linking of such archives. So we do filename-based
17814 # shared library versioning with .so extension only, which is used
17815 # when both runtime linking and shared linking is enabled.
17816 # Unfortunately, runtime linking may impact performance, so we do
17817 # not want this to be the default eventually. Also, we use the
17818 # versioned .so libs for executables only if there is the -brtl
17819 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
17820 # To allow for filename-based versioning support, we need to create
17821 # libNAME.so.V as an archive file, containing:
17822 # *) an Import File, referring to the versioned filename of the
17823 # archive as well as the shared archive member, telling the
17824 # bitwidth (32 or 64) of that shared object, and providing the
17825 # list of exported symbols of that shared object, eventually
17826 # decorated with the 'weak' keyword
17827 # *) the shared object with the F_LOADONLY flag set, to really avoid
17828 # it being seen by the linker.
17829 # At run time we better use the real file rather than another symlink,
17830 # but for link time we create the symlink libNAME.so -> libNAME.so.V
17831
17832 case $with_aix_soname,$aix_use_runtimelinking in
17833 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
17834 # soname into executable. Probably we can add versioning support to
17835 # collect2, so additional links can be useful in future.
17836 aix,yes) # traditional libtool
17837 dynamic_linker='AIX unversionable lib.so'
17838 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17839 # instead of lib<name>.a to let people know that these are not
17840 # typical AIX shared libraries.
17841 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17842 ;;
17843 aix,no) # traditional AIX only
17844 dynamic_linker='AIX lib.a(lib.so.V)'
17845 # We preserve .a as extension for shared libraries through AIX4.2
17846 # and later when we are not doing run time linking.
17847 library_names_spec='$libname$release.a $libname.a'
17848 soname_spec='$libname$release$shared_ext$major'
17849 ;;
17850 svr4,*) # full svr4 only
17851 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
17852 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
17853 # We do not specify a path in Import Files, so LIBPATH fires.
17854 shlibpath_overrides_runpath=yes
17855 ;;
17856 *,yes) # both, prefer svr4
17857 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
17858 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
17859 # unpreferred sharedlib libNAME.a needs extra handling
17860 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"'
17861 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"'
17862 # We do not specify a path in Import Files, so LIBPATH fires.
17863 shlibpath_overrides_runpath=yes
17864 ;;
17865 *,no) # both, prefer aix
17866 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
17867 library_names_spec='$libname$release.a $libname.a'
17868 soname_spec='$libname$release$shared_ext$major'
17869 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
17870 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)'
17871 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"'
17872 ;;
17873 esac
17874 shlibpath_var=LIBPATH
17875 fi
17876 ;;
17877
17878 amigaos*)
17879 case $host_cpu in
17880 powerpc)
17881 # Since July 2007 AmigaOS4 officially supports .so libraries.
17882 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17883 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17884 ;;
17885 m68k)
17886 library_names_spec='$libname.ixlibrary $libname.a'
17887 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17888 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'
17889 ;;
17890 esac
17891 ;;
17892
17893 beos*)
17894 library_names_spec='$libname$shared_ext'
17895 dynamic_linker="$host_os ld.so"
17896 shlibpath_var=LIBRARY_PATH
17897 ;;
17898
17899 bsdi[45]*)
17900 version_type=linux # correct to gnu/linux during the next big refactor
17901 need_version=no
17902 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17903 soname_spec='$libname$release$shared_ext$major'
17904 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17905 shlibpath_var=LD_LIBRARY_PATH
17906 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17907 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17908 # the default ld.so.conf also contains /usr/contrib/lib and
17909 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17910 # libtool to hard-code these into programs
17911 ;;
17912
17913 cygwin* | mingw* | pw32* | cegcc*)
17914 version_type=windows
17915 shrext_cmds=.dll
17916 need_version=no
17917 need_lib_prefix=no
17918
17919 case $GCC,$cc_basename in
17920 yes,*)
17921 # gcc
17922 library_names_spec='$libname.dll.a'
17923 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17924 postinstall_cmds='base_file=`basename \$file`~
17925 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
17926 dldir=$destdir/`dirname \$dlpath`~
17927 test -d \$dldir || mkdir -p \$dldir~
17928 $install_prog $dir/$dlname \$dldir/$dlname~
17929 chmod a+x \$dldir/$dlname~
17930 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17931 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17932 fi'
17933 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17934 dlpath=$dir/\$dldll~
17935 $RM \$dlpath'
17936 shlibpath_overrides_runpath=yes
17937
17938 case $host_os in
17939 cygwin*)
17940 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17941 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17942
17943 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
17944 ;;
17945 mingw* | cegcc*)
17946 # MinGW DLLs use traditional 'lib' prefix
17947 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17948 ;;
17949 pw32*)
17950 # pw32 DLLs use 'pw' prefix rather than 'lib'
17951 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17952 ;;
17953 esac
17954 dynamic_linker='Win32 ld.exe'
17955 ;;
17956
17957 *,cl* | *,icl*)
17958 # Native MSVC or ICC
17959 libname_spec='$name'
17960 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17961 library_names_spec='$libname.dll.lib'
17962
17963 case $build_os in
17964 mingw*)
17965 sys_lib_search_path_spec=
17966 lt_save_ifs=$IFS
17967 IFS=';'
17968 for lt_path in $LIB
17969 do
17970 IFS=$lt_save_ifs
17971 # Let DOS variable expansion print the short 8.3 style file name.
17972 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
17973 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
17974 done
17975 IFS=$lt_save_ifs
17976 # Convert to MSYS style.
17977 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
17978 ;;
17979 cygwin*)
17980 # Convert to unix form, then to dos form, then back to unix form
17981 # but this time dos style (no spaces!) so that the unix form looks
17982 # like /cygdrive/c/PROGRA~1:/cygdr...
17983 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
17984 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
17985 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17986 ;;
17987 *)
17988 sys_lib_search_path_spec=$LIB
17989 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
17990 # It is most probably a Windows format PATH.
17991 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17992 else
17993 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17994 fi
17995 # FIXME: find the short name or the path components, as spaces are
17996 # common. (e.g. "Program Files" -> "PROGRA~1")
17997 ;;
17998 esac
17999
18000 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18001 postinstall_cmds='base_file=`basename \$file`~
18002 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
18003 dldir=$destdir/`dirname \$dlpath`~
18004 test -d \$dldir || mkdir -p \$dldir~
18005 $install_prog $dir/$dlname \$dldir/$dlname'
18006 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18007 dlpath=$dir/\$dldll~
18008 $RM \$dlpath'
18009 shlibpath_overrides_runpath=yes
18010 dynamic_linker='Win32 link.exe'
18011 ;;
18012
18013 *)
18014 # Assume MSVC and ICC wrapper
18015 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
18016 dynamic_linker='Win32 ld.exe'
18017 ;;
18018 esac
18019 # FIXME: first we should search . and the directory the executable is in
18020 shlibpath_var=PATH
18021 ;;
18022
18023 darwin* | rhapsody*)
18024 dynamic_linker="$host_os dyld"
18025 version_type=darwin
18026 need_lib_prefix=no
18027 need_version=no
18028 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
18029 soname_spec='$libname$release$major$shared_ext'
18030 shlibpath_overrides_runpath=yes
18031 shlibpath_var=DYLD_LIBRARY_PATH
18032 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18033
18034 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
18035 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18036 ;;
18037
18038 dgux*)
18039 version_type=linux # correct to gnu/linux during the next big refactor
18040 need_lib_prefix=no
18041 need_version=no
18042 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18043 soname_spec='$libname$release$shared_ext$major'
18044 shlibpath_var=LD_LIBRARY_PATH
18045 ;;
18046
18047 freebsd* | dragonfly* | midnightbsd*)
18048 # DragonFly does not have aout. When/if they implement a new
18049 # versioning mechanism, adjust this.
18050 if test -x /usr/bin/objformat; then
18051 objformat=`/usr/bin/objformat`
18052 else
18053 case $host_os in
18054 freebsd[23].*) objformat=aout ;;
18055 *) objformat=elf ;;
18056 esac
18057 fi
18058 version_type=freebsd-$objformat
18059 case $version_type in
18060 freebsd-elf*)
18061 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18062 soname_spec='$libname$release$shared_ext$major'
18063 need_version=no
18064 need_lib_prefix=no
18065 ;;
18066 freebsd-*)
18067 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
18068 need_version=yes
18069 ;;
18070 esac
18071 shlibpath_var=LD_LIBRARY_PATH
18072 case $host_os in
18073 freebsd2.*)
18074 shlibpath_overrides_runpath=yes
18075 ;;
18076 freebsd3.[01]* | freebsdelf3.[01]*)
18077 shlibpath_overrides_runpath=yes
18078 hardcode_into_libs=yes
18079 ;;
18080 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18081 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18082 shlibpath_overrides_runpath=no
18083 hardcode_into_libs=yes
18084 ;;
18085 *) # from 4.6 on, and DragonFly
18086 shlibpath_overrides_runpath=yes
18087 hardcode_into_libs=yes
18088 ;;
18089 esac
18090 ;;
18091
18092 haiku*)
18093 version_type=linux # correct to gnu/linux during the next big refactor
18094 need_lib_prefix=no
18095 need_version=no
18096 dynamic_linker="$host_os runtime_loader"
18097 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18098 soname_spec='$libname$release$shared_ext$major'
18099 shlibpath_var=LIBRARY_PATH
18100 shlibpath_overrides_runpath=no
18101 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
18102 hardcode_into_libs=yes
18103 ;;
18104
18105 hpux9* | hpux10* | hpux11*)
18106 # Give a soname corresponding to the major version so that dld.sl refuses to
18107 # link against other versions.
18108 version_type=sunos
18109 need_lib_prefix=no
18110 need_version=no
18111 case $host_cpu in
18112 ia64*)
18113 shrext_cmds='.so'
18114 hardcode_into_libs=yes
18115 dynamic_linker="$host_os dld.so"
18116 shlibpath_var=LD_LIBRARY_PATH
18117 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18118 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18119 soname_spec='$libname$release$shared_ext$major'
18120 if test 32 = "$HPUX_IA64_MODE"; then
18121 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18122 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
18123 else
18124 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18125 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
18126 fi
18127 ;;
18128 hppa*64*)
18129 shrext_cmds='.sl'
18130 hardcode_into_libs=yes
18131 dynamic_linker="$host_os dld.sl"
18132 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18133 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18134 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18135 soname_spec='$libname$release$shared_ext$major'
18136 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18137 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18138 ;;
18139 *)
18140 shrext_cmds='.sl'
18141 dynamic_linker="$host_os dld.sl"
18142 shlibpath_var=SHLIB_PATH
18143 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18144 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18145 soname_spec='$libname$release$shared_ext$major'
18146 ;;
18147 esac
18148 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
18149 postinstall_cmds='chmod 555 $lib'
18150 # or fails outright, so override atomically:
18151 install_override_mode=555
18152 ;;
18153
18154 interix[3-9]*)
18155 version_type=linux # correct to gnu/linux during the next big refactor
18156 need_lib_prefix=no
18157 need_version=no
18158 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18159 soname_spec='$libname$release$shared_ext$major'
18160 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18161 shlibpath_var=LD_LIBRARY_PATH
18162 shlibpath_overrides_runpath=no
18163 hardcode_into_libs=yes
18164 ;;
18165
18166 irix5* | irix6* | nonstopux*)
18167 case $host_os in
18168 nonstopux*) version_type=nonstopux ;;
18169 *)
18170 if test yes = "$lt_cv_prog_gnu_ld"; then
18171 version_type=linux # correct to gnu/linux during the next big refactor
18172 else
18173 version_type=irix
18174 fi ;;
18175 esac
18176 need_lib_prefix=no
18177 need_version=no
18178 soname_spec='$libname$release$shared_ext$major'
18179 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
18180 case $host_os in
18181 irix5* | nonstopux*)
18182 libsuff= shlibsuff=
18183 ;;
18184 *)
18185 case $LD in # libtool.m4 will add one of these switches to LD
18186 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18187 libsuff= shlibsuff= libmagic=32-bit;;
18188 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18189 libsuff=32 shlibsuff=N32 libmagic=N32;;
18190 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18191 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18192 *) libsuff= shlibsuff= libmagic=never-match;;
18193 esac
18194 ;;
18195 esac
18196 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18197 shlibpath_overrides_runpath=no
18198 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
18199 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
18200 hardcode_into_libs=yes
18201 ;;
18202
18203 # No shared lib support for Linux oldld, aout, or coff.
18204 linux*oldld* | linux*aout* | linux*coff*)
18205 dynamic_linker=no
18206 ;;
18207
18208 linux*android*)
18209 version_type=none # Android doesn't support versioned libraries.
18210 need_lib_prefix=no
18211 need_version=no
18212 library_names_spec='$libname$release$shared_ext'
18213 soname_spec='$libname$release$shared_ext'
18214 finish_cmds=
18215 shlibpath_var=LD_LIBRARY_PATH
18216 shlibpath_overrides_runpath=yes
18217
18218 # This implies no fast_install, which is unacceptable.
18219 # Some rework will be needed to allow for fast_install
18220 # before this can be enabled.
18221 hardcode_into_libs=yes
18222
18223 dynamic_linker='Android linker'
18224 # Don't embed -rpath directories since the linker doesn't support them.
18225 hardcode_libdir_flag_spec='-L$libdir'
18226 ;;
18227
18228 # This must be glibc/ELF.
18229 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
18230 version_type=linux # correct to gnu/linux during the next big refactor
18231 need_lib_prefix=no
18232 need_version=no
18233 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18234 soname_spec='$libname$release$shared_ext$major'
18235 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18236 shlibpath_var=LD_LIBRARY_PATH
18237 shlibpath_overrides_runpath=no
18238
18239 # Some binutils ld are patched to set DT_RUNPATH
18240 if test ${lt_cv_shlibpath_overrides_runpath+y}
18241 then :
18242 printf %s "(cached) " >&6
18243 else $as_nop
18244 lt_cv_shlibpath_overrides_runpath=no
18245 save_LDFLAGS=$LDFLAGS
18246 save_libdir=$libdir
18247 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
18248 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
18249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18250 /* end confdefs.h. */
18251
18252 int
18253 main (void)
18254 {
18255
18256 ;
18257 return 0;
18258 }
18259 _ACEOF
18260 if ac_fn_c_try_link "$LINENO"
18261 then :
18262 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
18263 then :
18264 lt_cv_shlibpath_overrides_runpath=yes
18265 fi
18266 fi
18267 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18268 conftest$ac_exeext conftest.$ac_ext
18269 LDFLAGS=$save_LDFLAGS
18270 libdir=$save_libdir
18271
18272 fi
18273
18274 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
18275
18276 # This implies no fast_install, which is unacceptable.
18277 # Some rework will be needed to allow for fast_install
18278 # before this can be enabled.
18279 hardcode_into_libs=yes
18280
18281 # Ideally, we could use ldconfig to report *all* directores which are
18282 # searched for libraries, however this is still not possible. Aside from not
18283 # being certain /sbin/ldconfig is available, command
18284 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
18285 # even though it is searched at run-time. Try to do the best guess by
18286 # appending ld.so.conf contents (and includes) to the search path.
18287 if test -f /etc/ld.so.conf; then
18288 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' ' '`
18289 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18290 fi
18291
18292 # We used to test for /lib/ld.so.1 and disable shared libraries on
18293 # powerpc, because MkLinux only supported shared libraries with the
18294 # GNU dynamic linker. Since this was broken with cross compilers,
18295 # most powerpc-linux boxes support dynamic linking these days and
18296 # people can always --disable-shared, the test was removed, and we
18297 # assume the GNU/Linux dynamic linker is in use.
18298 dynamic_linker='GNU/Linux ld.so'
18299 ;;
18300
18301 netbsd*)
18302 version_type=sunos
18303 need_lib_prefix=no
18304 need_version=no
18305 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18306 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
18307 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18308 dynamic_linker='NetBSD (a.out) ld.so'
18309 else
18310 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18311 soname_spec='$libname$release$shared_ext$major'
18312 dynamic_linker='NetBSD ld.elf_so'
18313 fi
18314 shlibpath_var=LD_LIBRARY_PATH
18315 shlibpath_overrides_runpath=yes
18316 hardcode_into_libs=yes
18317 ;;
18318
18319 newsos6)
18320 version_type=linux # correct to gnu/linux during the next big refactor
18321 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18322 shlibpath_var=LD_LIBRARY_PATH
18323 shlibpath_overrides_runpath=yes
18324 ;;
18325
18326 *nto* | *qnx*)
18327 version_type=qnx
18328 need_lib_prefix=no
18329 need_version=no
18330 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18331 soname_spec='$libname$release$shared_ext$major'
18332 shlibpath_var=LD_LIBRARY_PATH
18333 shlibpath_overrides_runpath=no
18334 hardcode_into_libs=yes
18335 dynamic_linker='ldqnx.so'
18336 ;;
18337
18338 openbsd* | bitrig*)
18339 version_type=sunos
18340 sys_lib_dlsearch_path_spec=/usr/lib
18341 need_lib_prefix=no
18342 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
18343 need_version=no
18344 else
18345 need_version=yes
18346 fi
18347 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
18348 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18349 shlibpath_var=LD_LIBRARY_PATH
18350 shlibpath_overrides_runpath=yes
18351 ;;
18352
18353 os2*)
18354 libname_spec='$name'
18355 version_type=windows
18356 shrext_cmds=.dll
18357 need_version=no
18358 need_lib_prefix=no
18359 # OS/2 can only load a DLL with a base name of 8 characters or less.
18360 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
18361 v=$($ECHO $release$versuffix | tr -d .-);
18362 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
18363 $ECHO $n$v`$shared_ext'
18364 library_names_spec='${libname}_dll.$libext'
18365 dynamic_linker='OS/2 ld.exe'
18366 shlibpath_var=BEGINLIBPATH
18367 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18368 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18369 postinstall_cmds='base_file=`basename \$file`~
18370 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
18371 dldir=$destdir/`dirname \$dlpath`~
18372 test -d \$dldir || mkdir -p \$dldir~
18373 $install_prog $dir/$dlname \$dldir/$dlname~
18374 chmod a+x \$dldir/$dlname~
18375 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
18376 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
18377 fi'
18378 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
18379 dlpath=$dir/\$dldll~
18380 $RM \$dlpath'
18381 ;;
18382
18383 osf3* | osf4* | osf5*)
18384 version_type=osf
18385 need_lib_prefix=no
18386 need_version=no
18387 soname_spec='$libname$release$shared_ext$major'
18388 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18389 shlibpath_var=LD_LIBRARY_PATH
18390 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18391 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18392 ;;
18393
18394 rdos*)
18395 dynamic_linker=no
18396 ;;
18397
18398 solaris*)
18399 version_type=linux # correct to gnu/linux during the next big refactor
18400 need_lib_prefix=no
18401 need_version=no
18402 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18403 soname_spec='$libname$release$shared_ext$major'
18404 shlibpath_var=LD_LIBRARY_PATH
18405 shlibpath_overrides_runpath=yes
18406 hardcode_into_libs=yes
18407 # ldd complains unless libraries are executable
18408 postinstall_cmds='chmod +x $lib'
18409 ;;
18410
18411 sunos4*)
18412 version_type=sunos
18413 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
18414 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18415 shlibpath_var=LD_LIBRARY_PATH
18416 shlibpath_overrides_runpath=yes
18417 if test yes = "$with_gnu_ld"; then
18418 need_lib_prefix=no
18419 fi
18420 need_version=yes
18421 ;;
18422
18423 sysv4 | sysv4.3*)
18424 version_type=linux # correct to gnu/linux during the next big refactor
18425 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18426 soname_spec='$libname$release$shared_ext$major'
18427 shlibpath_var=LD_LIBRARY_PATH
18428 case $host_vendor in
18429 sni)
18430 shlibpath_overrides_runpath=no
18431 need_lib_prefix=no
18432 runpath_var=LD_RUN_PATH
18433 ;;
18434 siemens)
18435 need_lib_prefix=no
18436 ;;
18437 motorola)
18438 need_lib_prefix=no
18439 need_version=no
18440 shlibpath_overrides_runpath=no
18441 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18442 ;;
18443 esac
18444 ;;
18445
18446 sysv4*MP*)
18447 if test -d /usr/nec; then
18448 version_type=linux # correct to gnu/linux during the next big refactor
18449 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
18450 soname_spec='$libname$shared_ext.$major'
18451 shlibpath_var=LD_LIBRARY_PATH
18452 fi
18453 ;;
18454
18455 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18456 version_type=sco
18457 need_lib_prefix=no
18458 need_version=no
18459 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
18460 soname_spec='$libname$release$shared_ext$major'
18461 shlibpath_var=LD_LIBRARY_PATH
18462 shlibpath_overrides_runpath=yes
18463 hardcode_into_libs=yes
18464 if test yes = "$with_gnu_ld"; then
18465 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18466 else
18467 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18468 case $host_os in
18469 sco3.2v5*)
18470 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18471 ;;
18472 esac
18473 fi
18474 sys_lib_dlsearch_path_spec='/usr/lib'
18475 ;;
18476
18477 tpf*)
18478 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
18479 version_type=linux # correct to gnu/linux during the next big refactor
18480 need_lib_prefix=no
18481 need_version=no
18482 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18483 shlibpath_var=LD_LIBRARY_PATH
18484 shlibpath_overrides_runpath=no
18485 hardcode_into_libs=yes
18486 ;;
18487
18488 uts4*)
18489 version_type=linux # correct to gnu/linux during the next big refactor
18490 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18491 soname_spec='$libname$release$shared_ext$major'
18492 shlibpath_var=LD_LIBRARY_PATH
18493 ;;
18494
18495 *)
18496 dynamic_linker=no
18497 ;;
18498 esac
18499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
18500 printf "%s\n" "$dynamic_linker" >&6; }
18501 test no = "$dynamic_linker" && can_build_shared=no
18502
18503 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18504 if test yes = "$GCC"; then
18505 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18506 fi
18507
18508 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
18509 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
18510 fi
18511
18512 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
18513 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
18514 fi
18515
18516 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
18517 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
18518
18519 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
18520 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
18521
18522 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
18523 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
18524
18525
18526
18527
18528
18529
18530
18531
18532
18533
18534
18535
18536
18537
18538
18539
18540
18541
18542
18543
18544
18545
18546
18547
18548
18549
18550
18551
18552
18553
18554
18555
18556
18557
18558
18559
18560
18561
18562
18563
18564
18565
18566
18567
18568
18569
18570
18571
18572
18573
18574
18575
18576
18577
18578
18579
18580
18581
18582
18583
18584
18585
18586
18587
18588
18589
18590
18591
18592
18593
18594
18595
18596
18597
18598
18599
18600
18601
18602
18603
18604
18605
18606
18607
18608
18609
18610
18611
18612
18613
18614
18615
18616
18617
18618
18619
18620
18621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
18622 printf %s "checking how to hardcode library paths into programs... " >&6; }
18623 hardcode_action=
18624 if test -n "$hardcode_libdir_flag_spec" ||
18625 test -n "$runpath_var" ||
18626 test yes = "$hardcode_automatic"; then
18627
18628 # We can hardcode non-existent directories.
18629 if test no != "$hardcode_direct" &&
18630 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18631 # have to relink, otherwise we might link with an installed library
18632 # when we should be linking with a yet-to-be-installed one
18633 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
18634 test no != "$hardcode_minus_L"; then
18635 # Linking always hardcodes the temporary library directory.
18636 hardcode_action=relink
18637 else
18638 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18639 hardcode_action=immediate
18640 fi
18641 else
18642 # We cannot hardcode anything, or else we can only hardcode existing
18643 # directories.
18644 hardcode_action=unsupported
18645 fi
18646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
18647 printf "%s\n" "$hardcode_action" >&6; }
18648
18649 if test relink = "$hardcode_action" ||
18650 test yes = "$inherit_rpath"; then
18651 # Fast installation is not supported
18652 enable_fast_install=no
18653 elif test yes = "$shlibpath_overrides_runpath" ||
18654 test no = "$enable_shared"; then
18655 # Fast installation is not necessary
18656 enable_fast_install=needless
18657 fi
18658
18659
18660
18661
18662
18663
18664 if test yes != "$enable_dlopen"; then
18665 enable_dlopen=unknown
18666 enable_dlopen_self=unknown
18667 enable_dlopen_self_static=unknown
18668 else
18669 lt_cv_dlopen=no
18670 lt_cv_dlopen_libs=
18671
18672 case $host_os in
18673 beos*)
18674 lt_cv_dlopen=load_add_on
18675 lt_cv_dlopen_libs=
18676 lt_cv_dlopen_self=yes
18677 ;;
18678
18679 mingw* | pw32* | cegcc*)
18680 lt_cv_dlopen=LoadLibrary
18681 lt_cv_dlopen_libs=
18682 ;;
18683
18684 cygwin*)
18685 lt_cv_dlopen=dlopen
18686 lt_cv_dlopen_libs=
18687 ;;
18688
18689 darwin*)
18690 # if libdl is installed we need to link against it
18691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
18692 printf %s "checking for dlopen in -ldl... " >&6; }
18693 if test ${ac_cv_lib_dl_dlopen+y}
18694 then :
18695 printf %s "(cached) " >&6
18696 else $as_nop
18697 ac_check_lib_save_LIBS=$LIBS
18698 LIBS="-ldl $LIBS"
18699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18700 /* end confdefs.h. */
18701
18702 /* Override any GCC internal prototype to avoid an error.
18703 Use char because int might match the return type of a GCC
18704 builtin and then its argument prototype would still apply. */
18705 char dlopen ();
18706 int
18707 main (void)
18708 {
18709 return dlopen ();
18710 ;
18711 return 0;
18712 }
18713 _ACEOF
18714 if ac_fn_c_try_link "$LINENO"
18715 then :
18716 ac_cv_lib_dl_dlopen=yes
18717 else $as_nop
18718 ac_cv_lib_dl_dlopen=no
18719 fi
18720 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18721 conftest$ac_exeext conftest.$ac_ext
18722 LIBS=$ac_check_lib_save_LIBS
18723 fi
18724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18725 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
18726 if test "x$ac_cv_lib_dl_dlopen" = xyes
18727 then :
18728 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
18729 else $as_nop
18730
18731 lt_cv_dlopen=dyld
18732 lt_cv_dlopen_libs=
18733 lt_cv_dlopen_self=yes
18734
18735 fi
18736
18737 ;;
18738
18739 tpf*)
18740 # Don't try to run any link tests for TPF. We know it's impossible
18741 # because TPF is a cross-compiler, and we know how we open DSOs.
18742 lt_cv_dlopen=dlopen
18743 lt_cv_dlopen_libs=
18744 lt_cv_dlopen_self=no
18745 ;;
18746
18747 *)
18748 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
18749 if test "x$ac_cv_func_shl_load" = xyes
18750 then :
18751 lt_cv_dlopen=shl_load
18752 else $as_nop
18753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
18754 printf %s "checking for shl_load in -ldld... " >&6; }
18755 if test ${ac_cv_lib_dld_shl_load+y}
18756 then :
18757 printf %s "(cached) " >&6
18758 else $as_nop
18759 ac_check_lib_save_LIBS=$LIBS
18760 LIBS="-ldld $LIBS"
18761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18762 /* end confdefs.h. */
18763
18764 /* Override any GCC internal prototype to avoid an error.
18765 Use char because int might match the return type of a GCC
18766 builtin and then its argument prototype would still apply. */
18767 char shl_load ();
18768 int
18769 main (void)
18770 {
18771 return shl_load ();
18772 ;
18773 return 0;
18774 }
18775 _ACEOF
18776 if ac_fn_c_try_link "$LINENO"
18777 then :
18778 ac_cv_lib_dld_shl_load=yes
18779 else $as_nop
18780 ac_cv_lib_dld_shl_load=no
18781 fi
18782 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18783 conftest$ac_exeext conftest.$ac_ext
18784 LIBS=$ac_check_lib_save_LIBS
18785 fi
18786 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
18787 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
18788 if test "x$ac_cv_lib_dld_shl_load" = xyes
18789 then :
18790 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
18791 else $as_nop
18792 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
18793 if test "x$ac_cv_func_dlopen" = xyes
18794 then :
18795 lt_cv_dlopen=dlopen
18796 else $as_nop
18797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
18798 printf %s "checking for dlopen in -ldl... " >&6; }
18799 if test ${ac_cv_lib_dl_dlopen+y}
18800 then :
18801 printf %s "(cached) " >&6
18802 else $as_nop
18803 ac_check_lib_save_LIBS=$LIBS
18804 LIBS="-ldl $LIBS"
18805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18806 /* end confdefs.h. */
18807
18808 /* Override any GCC internal prototype to avoid an error.
18809 Use char because int might match the return type of a GCC
18810 builtin and then its argument prototype would still apply. */
18811 char dlopen ();
18812 int
18813 main (void)
18814 {
18815 return dlopen ();
18816 ;
18817 return 0;
18818 }
18819 _ACEOF
18820 if ac_fn_c_try_link "$LINENO"
18821 then :
18822 ac_cv_lib_dl_dlopen=yes
18823 else $as_nop
18824 ac_cv_lib_dl_dlopen=no
18825 fi
18826 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18827 conftest$ac_exeext conftest.$ac_ext
18828 LIBS=$ac_check_lib_save_LIBS
18829 fi
18830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18831 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
18832 if test "x$ac_cv_lib_dl_dlopen" = xyes
18833 then :
18834 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
18835 else $as_nop
18836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
18837 printf %s "checking for dlopen in -lsvld... " >&6; }
18838 if test ${ac_cv_lib_svld_dlopen+y}
18839 then :
18840 printf %s "(cached) " >&6
18841 else $as_nop
18842 ac_check_lib_save_LIBS=$LIBS
18843 LIBS="-lsvld $LIBS"
18844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18845 /* end confdefs.h. */
18846
18847 /* Override any GCC internal prototype to avoid an error.
18848 Use char because int might match the return type of a GCC
18849 builtin and then its argument prototype would still apply. */
18850 char dlopen ();
18851 int
18852 main (void)
18853 {
18854 return dlopen ();
18855 ;
18856 return 0;
18857 }
18858 _ACEOF
18859 if ac_fn_c_try_link "$LINENO"
18860 then :
18861 ac_cv_lib_svld_dlopen=yes
18862 else $as_nop
18863 ac_cv_lib_svld_dlopen=no
18864 fi
18865 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18866 conftest$ac_exeext conftest.$ac_ext
18867 LIBS=$ac_check_lib_save_LIBS
18868 fi
18869 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
18870 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
18871 if test "x$ac_cv_lib_svld_dlopen" = xyes
18872 then :
18873 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
18874 else $as_nop
18875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
18876 printf %s "checking for dld_link in -ldld... " >&6; }
18877 if test ${ac_cv_lib_dld_dld_link+y}
18878 then :
18879 printf %s "(cached) " >&6
18880 else $as_nop
18881 ac_check_lib_save_LIBS=$LIBS
18882 LIBS="-ldld $LIBS"
18883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18884 /* end confdefs.h. */
18885
18886 /* Override any GCC internal prototype to avoid an error.
18887 Use char because int might match the return type of a GCC
18888 builtin and then its argument prototype would still apply. */
18889 char dld_link ();
18890 int
18891 main (void)
18892 {
18893 return dld_link ();
18894 ;
18895 return 0;
18896 }
18897 _ACEOF
18898 if ac_fn_c_try_link "$LINENO"
18899 then :
18900 ac_cv_lib_dld_dld_link=yes
18901 else $as_nop
18902 ac_cv_lib_dld_dld_link=no
18903 fi
18904 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18905 conftest$ac_exeext conftest.$ac_ext
18906 LIBS=$ac_check_lib_save_LIBS
18907 fi
18908 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
18909 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
18910 if test "x$ac_cv_lib_dld_dld_link" = xyes
18911 then :
18912 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
18913 fi
18914
18915
18916 fi
18917
18918
18919 fi
18920
18921
18922 fi
18923
18924
18925 fi
18926
18927
18928 fi
18929
18930 ;;
18931 esac
18932
18933 if test no = "$lt_cv_dlopen"; then
18934 enable_dlopen=no
18935 else
18936 enable_dlopen=yes
18937 fi
18938
18939 case $lt_cv_dlopen in
18940 dlopen)
18941 save_CPPFLAGS=$CPPFLAGS
18942 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18943
18944 save_LDFLAGS=$LDFLAGS
18945 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18946
18947 save_LIBS=$LIBS
18948 LIBS="$lt_cv_dlopen_libs $LIBS"
18949
18950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
18951 printf %s "checking whether a program can dlopen itself... " >&6; }
18952 if test ${lt_cv_dlopen_self+y}
18953 then :
18954 printf %s "(cached) " >&6
18955 else $as_nop
18956 if test yes = "$cross_compiling"; then :
18957 lt_cv_dlopen_self=cross
18958 else
18959 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18960 lt_status=$lt_dlunknown
18961 cat > conftest.$ac_ext <<_LT_EOF
18962 #line $LINENO "configure"
18963 #include "confdefs.h"
18964
18965 #if HAVE_DLFCN_H
18966 #include <dlfcn.h>
18967 #endif
18968
18969 #include <stdio.h>
18970
18971 #ifdef RTLD_GLOBAL
18972 # define LT_DLGLOBAL RTLD_GLOBAL
18973 #else
18974 # ifdef DL_GLOBAL
18975 # define LT_DLGLOBAL DL_GLOBAL
18976 # else
18977 # define LT_DLGLOBAL 0
18978 # endif
18979 #endif
18980
18981 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18982 find out it does not work in some platform. */
18983 #ifndef LT_DLLAZY_OR_NOW
18984 # ifdef RTLD_LAZY
18985 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18986 # else
18987 # ifdef DL_LAZY
18988 # define LT_DLLAZY_OR_NOW DL_LAZY
18989 # else
18990 # ifdef RTLD_NOW
18991 # define LT_DLLAZY_OR_NOW RTLD_NOW
18992 # else
18993 # ifdef DL_NOW
18994 # define LT_DLLAZY_OR_NOW DL_NOW
18995 # else
18996 # define LT_DLLAZY_OR_NOW 0
18997 # endif
18998 # endif
18999 # endif
19000 # endif
19001 #endif
19002
19003 /* When -fvisibility=hidden is used, assume the code has been annotated
19004 correspondingly for the symbols needed. */
19005 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
19006 int fnord () __attribute__((visibility("default")));
19007 #endif
19008
19009 int fnord () { return 42; }
19010 int main ()
19011 {
19012 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19013 int status = $lt_dlunknown;
19014
19015 if (self)
19016 {
19017 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
19018 else
19019 {
19020 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19021 else puts (dlerror ());
19022 }
19023 /* dlclose (self); */
19024 }
19025 else
19026 puts (dlerror ());
19027
19028 return status;
19029 }
19030 _LT_EOF
19031 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
19032 (eval $ac_link) 2>&5
19033 ac_status=$?
19034 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19035 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
19036 (./conftest; exit; ) >&5 2>/dev/null
19037 lt_status=$?
19038 case x$lt_status in
19039 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
19040 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
19041 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
19042 esac
19043 else :
19044 # compilation failed
19045 lt_cv_dlopen_self=no
19046 fi
19047 fi
19048 rm -fr conftest*
19049
19050
19051 fi
19052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
19053 printf "%s\n" "$lt_cv_dlopen_self" >&6; }
19054
19055 if test yes = "$lt_cv_dlopen_self"; then
19056 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
19057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
19058 printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
19059 if test ${lt_cv_dlopen_self_static+y}
19060 then :
19061 printf %s "(cached) " >&6
19062 else $as_nop
19063 if test yes = "$cross_compiling"; then :
19064 lt_cv_dlopen_self_static=cross
19065 else
19066 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19067 lt_status=$lt_dlunknown
19068 cat > conftest.$ac_ext <<_LT_EOF
19069 #line $LINENO "configure"
19070 #include "confdefs.h"
19071
19072 #if HAVE_DLFCN_H
19073 #include <dlfcn.h>
19074 #endif
19075
19076 #include <stdio.h>
19077
19078 #ifdef RTLD_GLOBAL
19079 # define LT_DLGLOBAL RTLD_GLOBAL
19080 #else
19081 # ifdef DL_GLOBAL
19082 # define LT_DLGLOBAL DL_GLOBAL
19083 # else
19084 # define LT_DLGLOBAL 0
19085 # endif
19086 #endif
19087
19088 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19089 find out it does not work in some platform. */
19090 #ifndef LT_DLLAZY_OR_NOW
19091 # ifdef RTLD_LAZY
19092 # define LT_DLLAZY_OR_NOW RTLD_LAZY
19093 # else
19094 # ifdef DL_LAZY
19095 # define LT_DLLAZY_OR_NOW DL_LAZY
19096 # else
19097 # ifdef RTLD_NOW
19098 # define LT_DLLAZY_OR_NOW RTLD_NOW
19099 # else
19100 # ifdef DL_NOW
19101 # define LT_DLLAZY_OR_NOW DL_NOW
19102 # else
19103 # define LT_DLLAZY_OR_NOW 0
19104 # endif
19105 # endif
19106 # endif
19107 # endif
19108 #endif
19109
19110 /* When -fvisibility=hidden is used, assume the code has been annotated
19111 correspondingly for the symbols needed. */
19112 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
19113 int fnord () __attribute__((visibility("default")));
19114 #endif
19115
19116 int fnord () { return 42; }
19117 int main ()
19118 {
19119 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19120 int status = $lt_dlunknown;
19121
19122 if (self)
19123 {
19124 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
19125 else
19126 {
19127 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19128 else puts (dlerror ());
19129 }
19130 /* dlclose (self); */
19131 }
19132 else
19133 puts (dlerror ());
19134
19135 return status;
19136 }
19137 _LT_EOF
19138 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
19139 (eval $ac_link) 2>&5
19140 ac_status=$?
19141 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19142 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
19143 (./conftest; exit; ) >&5 2>/dev/null
19144 lt_status=$?
19145 case x$lt_status in
19146 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
19147 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
19148 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
19149 esac
19150 else :
19151 # compilation failed
19152 lt_cv_dlopen_self_static=no
19153 fi
19154 fi
19155 rm -fr conftest*
19156
19157
19158 fi
19159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
19160 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
19161 fi
19162
19163 CPPFLAGS=$save_CPPFLAGS
19164 LDFLAGS=$save_LDFLAGS
19165 LIBS=$save_LIBS
19166 ;;
19167 esac
19168
19169 case $lt_cv_dlopen_self in
19170 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
19171 *) enable_dlopen_self=unknown ;;
19172 esac
19173
19174 case $lt_cv_dlopen_self_static in
19175 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
19176 *) enable_dlopen_self_static=unknown ;;
19177 esac
19178 fi
19179
19180
19181
19182
19183
19184
19185
19186
19187
19188
19189
19190
19191
19192
19193
19194
19195
19196 striplib=
19197 old_striplib=
19198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
19199 printf %s "checking whether stripping libraries is possible... " >&6; }
19200 if test -z "$STRIP"; then
19201 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19202 printf "%s\n" "no" >&6; }
19203 else
19204 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
19205 old_striplib="$STRIP --strip-debug"
19206 striplib="$STRIP --strip-unneeded"
19207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19208 printf "%s\n" "yes" >&6; }
19209 else
19210 case $host_os in
19211 darwin*)
19212 # FIXME - insert some real tests, host_os isn't really good enough
19213 striplib="$STRIP -x"
19214 old_striplib="$STRIP -S"
19215 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19216 printf "%s\n" "yes" >&6; }
19217 ;;
19218 freebsd*)
19219 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
19220 old_striplib="$STRIP --strip-debug"
19221 striplib="$STRIP --strip-unneeded"
19222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19223 printf "%s\n" "yes" >&6; }
19224 else
19225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19226 printf "%s\n" "no" >&6; }
19227 fi
19228 ;;
19229 *)
19230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19231 printf "%s\n" "no" >&6; }
19232 ;;
19233 esac
19234 fi
19235 fi
19236
19237
19238
19239
19240
19241
19242
19243
19244
19245
19246
19247
19248 # Report what library types will actually be built
19249 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
19250 printf %s "checking if libtool supports shared libraries... " >&6; }
19251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
19252 printf "%s\n" "$can_build_shared" >&6; }
19253
19254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
19255 printf %s "checking whether to build shared libraries... " >&6; }
19256 test no = "$can_build_shared" && enable_shared=no
19257
19258 # On AIX, shared libraries and static libraries use the same namespace, and
19259 # are all built from PIC.
19260 case $host_os in
19261 aix3*)
19262 test yes = "$enable_shared" && enable_static=no
19263 if test -n "$RANLIB"; then
19264 archive_cmds="$archive_cmds~\$RANLIB \$lib"
19265 postinstall_cmds='$RANLIB $lib'
19266 fi
19267 ;;
19268
19269 aix[4-9]*)
19270 if test ia64 != "$host_cpu"; then
19271 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
19272 yes,aix,yes) ;; # shared object as lib.so file only
19273 yes,svr4,*) ;; # shared object as lib.so archive member only
19274 yes,*) enable_static=no ;; # shared object in lib.a archive as well
19275 esac
19276 fi
19277 ;;
19278 esac
19279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
19280 printf "%s\n" "$enable_shared" >&6; }
19281
19282 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
19283 printf %s "checking whether to build static libraries... " >&6; }
19284 # Make sure either enable_shared or enable_static is yes.
19285 test yes = "$enable_shared" || enable_static=yes
19286 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
19287 printf "%s\n" "$enable_static" >&6; }
19288
19289
19290
19291
19292 fi
19293 ac_ext=c
19294 ac_cpp='$CPP $CPPFLAGS'
19295 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19296 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19297 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19298
19299 CC=$lt_save_CC
19300
19301
19302
19303
19304
19305
19306
19307
19308
19309
19310
19311
19312
19313
19314
19315 ac_config_commands="$ac_config_commands libtool"
19316
19317
19318
19319
19320 # Only expand once:
19321
19322
19323
19324
19325
19326 # Define a configure option for an alternate module directory
19327
19328 # Check whether --with-xorg-module-dir was given.
19329 if test ${with_xorg_module_dir+y}
19330 then :
19331 withval=$with_xorg_module_dir; moduledir="$withval"
19332 else $as_nop
19333 moduledir="$libdir/xorg/modules"
19334 fi
19335
19336
19337
19338 # Store the list of server defined optional extensions in REQUIRED_MODULES
19339
19340
19341 SAVE_CFLAGS="$CFLAGS"
19342 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
19343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19344 /* end confdefs.h. */
19345
19346 #include "xorg-server.h"
19347 #if !defined DPMSExtension
19348 #error DPMSExtension not defined
19349 #endif
19350
19351 int
19352 main (void)
19353 {
19354
19355 ;
19356 return 0;
19357 }
19358 _ACEOF
19359 if ac_fn_c_try_compile "$LINENO"
19360 then :
19361 _EXT_CHECK=yes
19362 else $as_nop
19363 _EXT_CHECK=no
19364 fi
19365 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19366 CFLAGS="$SAVE_CFLAGS"
19367 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if DPMSExtension is defined" >&5
19368 printf %s "checking if DPMSExtension is defined... " >&6; }
19369 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
19370 printf "%s\n" "$_EXT_CHECK" >&6; }
19371 if test "$_EXT_CHECK" != no; then
19372 REQUIRED_MODULES="$REQUIRED_MODULES xextproto"
19373 fi
19374
19375
19376 # Obtain compiler/linker options for the driver dependencies
19377
19378 pkg_failed=no
19379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XORG" >&5
19380 printf %s "checking for XORG... " >&6; }
19381
19382 if test -n "$XORG_CFLAGS"; then
19383 pkg_cv_XORG_CFLAGS="$XORG_CFLAGS"
19384 elif test -n "$PKG_CONFIG"; then
19385 if test -n "$PKG_CONFIG" && \
19386 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.0.99.901 xproto fontsproto \$REQUIRED_MODULES\""; } >&5
19387 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES") 2>&5
19388 ac_status=$?
19389 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19390 test $ac_status = 0; }; then
19391 pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
19392 test "x$?" != "x0" && pkg_failed=yes
19393 else
19394 pkg_failed=yes
19395 fi
19396 else
19397 pkg_failed=untried
19398 fi
19399 if test -n "$XORG_LIBS"; then
19400 pkg_cv_XORG_LIBS="$XORG_LIBS"
19401 elif test -n "$PKG_CONFIG"; then
19402 if test -n "$PKG_CONFIG" && \
19403 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.0.99.901 xproto fontsproto \$REQUIRED_MODULES\""; } >&5
19404 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES") 2>&5
19405 ac_status=$?
19406 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19407 test $ac_status = 0; }; then
19408 pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
19409 test "x$?" != "x0" && pkg_failed=yes
19410 else
19411 pkg_failed=yes
19412 fi
19413 else
19414 pkg_failed=untried
19415 fi
19416
19417
19418
19419 if test $pkg_failed = yes; then
19420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19421 printf "%s\n" "no" >&6; }
19422
19423 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19424 _pkg_short_errors_supported=yes
19425 else
19426 _pkg_short_errors_supported=no
19427 fi
19428 if test $_pkg_short_errors_supported = yes; then
19429 XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>&1`
19430 else
19431 XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>&1`
19432 fi
19433 # Put the nasty error message in config.log where it belongs
19434 echo "$XORG_PKG_ERRORS" >&5
19435
19436 as_fn_error $? "Package requirements (xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES) were not met:
19437
19438 $XORG_PKG_ERRORS
19439
19440 Consider adjusting the PKG_CONFIG_PATH environment variable if you
19441 installed software in a non-standard prefix.
19442
19443 Alternatively, you may set the environment variables XORG_CFLAGS
19444 and XORG_LIBS to avoid the need to call pkg-config.
19445 See the pkg-config man page for more details." "$LINENO" 5
19446 elif test $pkg_failed = untried; then
19447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19448 printf "%s\n" "no" >&6; }
19449 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19450 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
19451 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
19452 is in your PATH or set the PKG_CONFIG environment variable to the full
19453 path to pkg-config.
19454
19455 Alternatively, you may set the environment variables XORG_CFLAGS
19456 and XORG_LIBS to avoid the need to call pkg-config.
19457 See the pkg-config man page for more details.
19458
19459 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
19460 See \`config.log' for more details" "$LINENO" 5; }
19461 else
19462 XORG_CFLAGS=$pkg_cv_XORG_CFLAGS
19463 XORG_LIBS=$pkg_cv_XORG_LIBS
19464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19465 printf "%s\n" "yes" >&6; }
19466
19467 fi
19468
19469 # Checks for libraries.
19470 SAVE_CPPFLAGS="$CPPFLAGS"
19471 CPPFLAGS="$CPPFLAGS $XORG_CFLAGS"
19472 ac_fn_check_decl "$LINENO" "XSERVER_LIBPCIACCESS" "ac_cv_have_decl_XSERVER_LIBPCIACCESS" "#include \"xorg-server.h\"
19473 " "$ac_c_undeclared_builtin_options" "CFLAGS"
19474 if test "x$ac_cv_have_decl_XSERVER_LIBPCIACCESS" = xyes
19475 then :
19476 XSERVER_LIBPCIACCESS=yes
19477 else $as_nop
19478 XSERVER_LIBPCIACCESS=no
19479 fi
19480 CPPFLAGS="$SAVE_CPPFLAGS"
19481
19482 if test "x$XSERVER_LIBPCIACCESS" = xyes; then
19483
19484 pkg_failed=no
19485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for PCIACCESS" >&5
19486 printf %s "checking for PCIACCESS... " >&6; }
19487
19488 if test -n "$PCIACCESS_CFLAGS"; then
19489 pkg_cv_PCIACCESS_CFLAGS="$PCIACCESS_CFLAGS"
19490 elif test -n "$PKG_CONFIG"; then
19491 if test -n "$PKG_CONFIG" && \
19492 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.12.901\""; } >&5
19493 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.12.901") 2>&5
19494 ac_status=$?
19495 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19496 test $ac_status = 0; }; then
19497 pkg_cv_PCIACCESS_CFLAGS=`$PKG_CONFIG --cflags "pciaccess >= 0.12.901" 2>/dev/null`
19498 test "x$?" != "x0" && pkg_failed=yes
19499 else
19500 pkg_failed=yes
19501 fi
19502 else
19503 pkg_failed=untried
19504 fi
19505 if test -n "$PCIACCESS_LIBS"; then
19506 pkg_cv_PCIACCESS_LIBS="$PCIACCESS_LIBS"
19507 elif test -n "$PKG_CONFIG"; then
19508 if test -n "$PKG_CONFIG" && \
19509 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.12.901\""; } >&5
19510 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.12.901") 2>&5
19511 ac_status=$?
19512 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19513 test $ac_status = 0; }; then
19514 pkg_cv_PCIACCESS_LIBS=`$PKG_CONFIG --libs "pciaccess >= 0.12.901" 2>/dev/null`
19515 test "x$?" != "x0" && pkg_failed=yes
19516 else
19517 pkg_failed=yes
19518 fi
19519 else
19520 pkg_failed=untried
19521 fi
19522
19523
19524
19525 if test $pkg_failed = yes; then
19526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19527 printf "%s\n" "no" >&6; }
19528
19529 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19530 _pkg_short_errors_supported=yes
19531 else
19532 _pkg_short_errors_supported=no
19533 fi
19534 if test $_pkg_short_errors_supported = yes; then
19535 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "pciaccess >= 0.12.901" 2>&1`
19536 else
19537 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "pciaccess >= 0.12.901" 2>&1`
19538 fi
19539 # Put the nasty error message in config.log where it belongs
19540 echo "$PCIACCESS_PKG_ERRORS" >&5
19541
19542 as_fn_error $? "Package requirements (pciaccess >= 0.12.901) were not met:
19543
19544 $PCIACCESS_PKG_ERRORS
19545
19546 Consider adjusting the PKG_CONFIG_PATH environment variable if you
19547 installed software in a non-standard prefix.
19548
19549 Alternatively, you may set the environment variables PCIACCESS_CFLAGS
19550 and PCIACCESS_LIBS to avoid the need to call pkg-config.
19551 See the pkg-config man page for more details." "$LINENO" 5
19552 elif test $pkg_failed = untried; then
19553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19554 printf "%s\n" "no" >&6; }
19555 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19556 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
19557 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
19558 is in your PATH or set the PKG_CONFIG environment variable to the full
19559 path to pkg-config.
19560
19561 Alternatively, you may set the environment variables PCIACCESS_CFLAGS
19562 and PCIACCESS_LIBS to avoid the need to call pkg-config.
19563 See the pkg-config man page for more details.
19564
19565 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
19566 See \`config.log' for more details" "$LINENO" 5; }
19567 else
19568 PCIACCESS_CFLAGS=$pkg_cv_PCIACCESS_CFLAGS
19569 PCIACCESS_LIBS=$pkg_cv_PCIACCESS_LIBS
19570 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19571 printf "%s\n" "yes" >&6; }
19572
19573 fi
19574 fi
19575 if test "x$XSERVER_LIBPCIACCESS" = xyes; then
19576 XSERVER_LIBPCIACCESS_TRUE=
19577 XSERVER_LIBPCIACCESS_FALSE='#'
19578 else
19579 XSERVER_LIBPCIACCESS_TRUE='#'
19580 XSERVER_LIBPCIACCESS_FALSE=
19581 fi
19582
19583 # Check whether --enable-xaa was given.
19584 if test ${enable_xaa+y}
19585 then :
19586 enableval=$enable_xaa; XAA="$enableval"
19587 else $as_nop
19588 XAA=auto
19589 fi
19590
19591 if test "x$XAA" != xno; then
19592 save_CFLAGS=$CFLAGS
19593 save_CPPFLAGS=$CPPFLAGS
19594 CFLAGS=$XORG_CFLAGS
19595 CPPFLAGS="$XORG_CFLAGS"
19596 for ac_header in xaa.h
19597 do :
19598 ac_fn_c_check_header_compile "$LINENO" "xaa.h" "ac_cv_header_xaa_h" "$ac_includes_default"
19599 if test "x$ac_cv_header_xaa_h" = xyes
19600 then :
19601 printf "%s\n" "#define HAVE_XAA_H 1" >>confdefs.h
19602 XAA=yes
19603 else $as_nop
19604 XAA=no
19605 fi
19606
19607 done
19608 CFLAGS=$save_CFLAGS
19609 CPPFLAGS=$save_CPPFLAGS
19610 fi
19611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to include XAA support" >&5
19612 printf %s "checking whether to include XAA support... " >&6; }
19613 if test "x$XAA" = xyes; then
19614 XAA_TRUE=
19615 XAA_FALSE='#'
19616 else
19617 XAA_TRUE='#'
19618 XAA_FALSE=
19619 fi
19620
19621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XAA" >&5
19622 printf "%s\n" "$XAA" >&6; }
19623
19624 DRIVER_NAME=ark
19625
19626
19627 ac_config_files="$ac_config_files Makefile src/Makefile"
19628
19629 cat >confcache <<\_ACEOF
19630 # This file is a shell script that caches the results of configure
19631 # tests run on this system so they can be shared between configure
19632 # scripts and configure runs, see configure's option --config-cache.
19633 # It is not useful on other systems. If it contains results you don't
19634 # want to keep, you may remove or edit it.
19635 #
19636 # config.status only pays attention to the cache file if you give it
19637 # the --recheck option to rerun configure.
19638 #
19639 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19640 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19641 # following values.
19642
19643 _ACEOF
19644
19645 # The following way of writing the cache mishandles newlines in values,
19646 # but we know of no workaround that is simple, portable, and efficient.
19647 # So, we kill variables containing newlines.
19648 # Ultrix sh set writes to stderr and can't be redirected directly,
19649 # and sets the high bit in the cache file unless we assign to the vars.
19650 (
19651 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19652 eval ac_val=\$$ac_var
19653 case $ac_val in #(
19654 *${as_nl}*)
19655 case $ac_var in #(
19656 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
19657 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19658 esac
19659 case $ac_var in #(
19660 _ | IFS | as_nl) ;; #(
19661 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
19662 *) { eval $ac_var=; unset $ac_var;} ;;
19663 esac ;;
19664 esac
19665 done
19666
19667 (set) 2>&1 |
19668 case $as_nl`(ac_space=' '; set) 2>&1` in #(
19669 *${as_nl}ac_space=\ *)
19670 # `set' does not quote correctly, so add quotes: double-quote
19671 # substitution turns \\\\ into \\, and sed turns \\ into \.
19672 sed -n \
19673 "s/'/'\\\\''/g;
19674 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19675 ;; #(
19676 *)
19677 # `set' quotes correctly as required by POSIX, so do not add quotes.
19678 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19679 ;;
19680 esac |
19681 sort
19682 ) |
19683 sed '
19684 /^ac_cv_env_/b end
19685 t clear
19686 :clear
19687 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
19688 t end
19689 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19690 :end' >>confcache
19691 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19692 if test -w "$cache_file"; then
19693 if test "x$cache_file" != "x/dev/null"; then
19694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
19695 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
19696 if test ! -f "$cache_file" || test -h "$cache_file"; then
19697 cat confcache >"$cache_file"
19698 else
19699 case $cache_file in #(
19700 */* | ?:*)
19701 mv -f confcache "$cache_file"$$ &&
19702 mv -f "$cache_file"$$ "$cache_file" ;; #(
19703 *)
19704 mv -f confcache "$cache_file" ;;
19705 esac
19706 fi
19707 fi
19708 else
19709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
19710 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
19711 fi
19712 fi
19713 rm -f confcache
19714
19715 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19716 # Let make expand exec_prefix.
19717 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19718
19719 DEFS=-DHAVE_CONFIG_H
19720
19721 ac_libobjs=
19722 ac_ltlibobjs=
19723 U=
19724 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19725 # 1. Remove the extension, and $U if already installed.
19726 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19727 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
19728 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
19729 # will be set to the directory where LIBOBJS objects are built.
19730 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19731 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
19732 done
19733 LIBOBJS=$ac_libobjs
19734
19735 LTLIBOBJS=$ac_ltlibobjs
19736
19737
19738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
19739 printf %s "checking that generated files are newer than configure... " >&6; }
19740 if test -n "$am_sleep_pid"; then
19741 # Hide warnings about reused PIDs.
19742 wait $am_sleep_pid 2>/dev/null
19743 fi
19744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
19745 printf "%s\n" "done" >&6; }
19746 if test -n "$EXEEXT"; then
19747 am__EXEEXT_TRUE=
19748 am__EXEEXT_FALSE='#'
19749 else
19750 am__EXEEXT_TRUE='#'
19751 am__EXEEXT_FALSE=
19752 fi
19753
19754 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
19755 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
19756 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19757 fi
19758 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19759 as_fn_error $? "conditional \"AMDEP\" was never defined.
19760 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19761 fi
19762 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19763 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
19764 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19765 fi
19766 if test -z "${XSERVER_LIBPCIACCESS_TRUE}" && test -z "${XSERVER_LIBPCIACCESS_FALSE}"; then
19767 as_fn_error $? "conditional \"XSERVER_LIBPCIACCESS\" was never defined.
19768 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19769 fi
19770 if test -z "${XAA_TRUE}" && test -z "${XAA_FALSE}"; then
19771 as_fn_error $? "conditional \"XAA\" was never defined.
19772 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19773 fi
19774
19775 : "${CONFIG_STATUS=./config.status}"
19776 ac_write_fail=0
19777 ac_clean_files_save=$ac_clean_files
19778 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19779 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19780 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
19781 as_write_fail=0
19782 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
19783 #! $SHELL
19784 # Generated by $as_me.
19785 # Run this file to recreate the current configuration.
19786 # Compiler output produced by configure, useful for debugging
19787 # configure, is in config.log if it exists.
19788
19789 debug=false
19790 ac_cs_recheck=false
19791 ac_cs_silent=false
19792
19793 SHELL=\${CONFIG_SHELL-$SHELL}
19794 export SHELL
19795 _ASEOF
19796 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
19797 ## -------------------- ##
19798 ## M4sh Initialization. ##
19799 ## -------------------- ##
19800
19801 # Be more Bourne compatible
19802 DUALCASE=1; export DUALCASE # for MKS sh
19803 as_nop=:
19804 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
19805 then :
19806 emulate sh
19807 NULLCMD=:
19808 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19809 # is contrary to our usage. Disable this feature.
19810 alias -g '${1+"$@"}'='"$@"'
19811 setopt NO_GLOB_SUBST
19812 else $as_nop
19813 case `(set -o) 2>/dev/null` in #(
19814 *posix*) :
19815 set -o posix ;; #(
19816 *) :
19817 ;;
19818 esac
19819 fi
19820
19821
19822
19823 # Reset variables that may have inherited troublesome values from
19824 # the environment.
19825
19826 # IFS needs to be set, to space, tab, and newline, in precisely that order.
19827 # (If _AS_PATH_WALK were called with IFS unset, it would have the
19828 # side effect of setting IFS to empty, thus disabling word splitting.)
19829 # Quoting is to prevent editors from complaining about space-tab.
19830 as_nl='
19831 '
19832 export as_nl
19833 IFS=" "" $as_nl"
19834
19835 PS1='$ '
19836 PS2='> '
19837 PS4='+ '
19838
19839 # Ensure predictable behavior from utilities with locale-dependent output.
19840 LC_ALL=C
19841 export LC_ALL
19842 LANGUAGE=C
19843 export LANGUAGE
19844
19845 # We cannot yet rely on "unset" to work, but we need these variables
19846 # to be unset--not just set to an empty or harmless value--now, to
19847 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
19848 # also avoids known problems related to "unset" and subshell syntax
19849 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
19850 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
19851 do eval test \${$as_var+y} \
19852 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
19853 done
19854
19855 # Ensure that fds 0, 1, and 2 are open.
19856 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
19857 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
19858 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
19859
19860 # The user is always right.
19861 if ${PATH_SEPARATOR+false} :; then
19862 PATH_SEPARATOR=:
19863 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19864 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19865 PATH_SEPARATOR=';'
19866 }
19867 fi
19868
19869
19870 # Find who we are. Look in the path if we contain no directory separator.
19871 as_myself=
19872 case $0 in #((
19873 *[\\/]* ) as_myself=$0 ;;
19874 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19875 for as_dir in $PATH
19876 do
19877 IFS=$as_save_IFS
19878 case $as_dir in #(((
19879 '') as_dir=./ ;;
19880 */) ;;
19881 *) as_dir=$as_dir/ ;;
19882 esac
19883 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
19884 done
19885 IFS=$as_save_IFS
19886
19887 ;;
19888 esac
19889 # We did not find ourselves, most probably we were run as `sh COMMAND'
19890 # in which case we are not to be found in the path.
19891 if test "x$as_myself" = x; then
19892 as_myself=$0
19893 fi
19894 if test ! -f "$as_myself"; then
19895 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19896 exit 1
19897 fi
19898
19899
19900
19901 # as_fn_error STATUS ERROR [LINENO LOG_FD]
19902 # ----------------------------------------
19903 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19904 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19905 # script with STATUS, using 1 if that was 0.
19906 as_fn_error ()
19907 {
19908 as_status=$1; test $as_status -eq 0 && as_status=1
19909 if test "$4"; then
19910 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
19911 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
19912 fi
19913 printf "%s\n" "$as_me: error: $2" >&2
19914 as_fn_exit $as_status
19915 } # as_fn_error
19916
19917
19918
19919 # as_fn_set_status STATUS
19920 # -----------------------
19921 # Set $? to STATUS, without forking.
19922 as_fn_set_status ()
19923 {
19924 return $1
19925 } # as_fn_set_status
19926
19927 # as_fn_exit STATUS
19928 # -----------------
19929 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19930 as_fn_exit ()
19931 {
19932 set +e
19933 as_fn_set_status $1
19934 exit $1
19935 } # as_fn_exit
19936
19937 # as_fn_unset VAR
19938 # ---------------
19939 # Portably unset VAR.
19940 as_fn_unset ()
19941 {
19942 { eval $1=; unset $1;}
19943 }
19944 as_unset=as_fn_unset
19945
19946 # as_fn_append VAR VALUE
19947 # ----------------------
19948 # Append the text in VALUE to the end of the definition contained in VAR. Take
19949 # advantage of any shell optimizations that allow amortized linear growth over
19950 # repeated appends, instead of the typical quadratic growth present in naive
19951 # implementations.
19952 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
19953 then :
19954 eval 'as_fn_append ()
19955 {
19956 eval $1+=\$2
19957 }'
19958 else $as_nop
19959 as_fn_append ()
19960 {
19961 eval $1=\$$1\$2
19962 }
19963 fi # as_fn_append
19964
19965 # as_fn_arith ARG...
19966 # ------------------
19967 # Perform arithmetic evaluation on the ARGs, and store the result in the
19968 # global $as_val. Take advantage of shells that can avoid forks. The arguments
19969 # must be portable across $(()) and expr.
19970 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
19971 then :
19972 eval 'as_fn_arith ()
19973 {
19974 as_val=$(( $* ))
19975 }'
19976 else $as_nop
19977 as_fn_arith ()
19978 {
19979 as_val=`expr "$@" || test $? -eq 1`
19980 }
19981 fi # as_fn_arith
19982
19983
19984 if expr a : '\(a\)' >/dev/null 2>&1 &&
19985 test "X`expr 00001 : '.*\(...\)'`" = X001; then
19986 as_expr=expr
19987 else
19988 as_expr=false
19989 fi
19990
19991 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19992 as_basename=basename
19993 else
19994 as_basename=false
19995 fi
19996
19997 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19998 as_dirname=dirname
19999 else
20000 as_dirname=false
20001 fi
20002
20003 as_me=`$as_basename -- "$0" ||
20004 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20005 X"$0" : 'X\(//\)$' \| \
20006 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20007 printf "%s\n" X/"$0" |
20008 sed '/^.*\/\([^/][^/]*\)\/*$/{
20009 s//\1/
20010 q
20011 }
20012 /^X\/\(\/\/\)$/{
20013 s//\1/
20014 q
20015 }
20016 /^X\/\(\/\).*/{
20017 s//\1/
20018 q
20019 }
20020 s/.*/./; q'`
20021
20022 # Avoid depending upon Character Ranges.
20023 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20024 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20025 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20026 as_cr_digits='0123456789'
20027 as_cr_alnum=$as_cr_Letters$as_cr_digits
20028
20029
20030 # Determine whether it's possible to make 'echo' print without a newline.
20031 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
20032 # for compatibility with existing Makefiles.
20033 ECHO_C= ECHO_N= ECHO_T=
20034 case `echo -n x` in #(((((
20035 -n*)
20036 case `echo 'xy\c'` in
20037 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
20038 xy) ECHO_C='\c';;
20039 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
20040 ECHO_T=' ';;
20041 esac;;
20042 *)
20043 ECHO_N='-n';;
20044 esac
20045
20046 # For backward compatibility with old third-party macros, we provide
20047 # the shell variables $as_echo and $as_echo_n. New code should use
20048 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
20049 as_echo='printf %s\n'
20050 as_echo_n='printf %s'
20051
20052 rm -f conf$$ conf$$.exe conf$$.file
20053 if test -d conf$$.dir; then
20054 rm -f conf$$.dir/conf$$.file
20055 else
20056 rm -f conf$$.dir
20057 mkdir conf$$.dir 2>/dev/null
20058 fi
20059 if (echo >conf$$.file) 2>/dev/null; then
20060 if ln -s conf$$.file conf$$ 2>/dev/null; then
20061 as_ln_s='ln -s'
20062 # ... but there are two gotchas:
20063 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20064 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20065 # In both cases, we have to default to `cp -pR'.
20066 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20067 as_ln_s='cp -pR'
20068 elif ln conf$$.file conf$$ 2>/dev/null; then
20069 as_ln_s=ln
20070 else
20071 as_ln_s='cp -pR'
20072 fi
20073 else
20074 as_ln_s='cp -pR'
20075 fi
20076 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20077 rmdir conf$$.dir 2>/dev/null
20078
20079
20080 # as_fn_mkdir_p
20081 # -------------
20082 # Create "$as_dir" as a directory, including parents if necessary.
20083 as_fn_mkdir_p ()
20084 {
20085
20086 case $as_dir in #(
20087 -*) as_dir=./$as_dir;;
20088 esac
20089 test -d "$as_dir" || eval $as_mkdir_p || {
20090 as_dirs=
20091 while :; do
20092 case $as_dir in #(
20093 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20094 *) as_qdir=$as_dir;;
20095 esac
20096 as_dirs="'$as_qdir' $as_dirs"
20097 as_dir=`$as_dirname -- "$as_dir" ||
20098 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20099 X"$as_dir" : 'X\(//\)[^/]' \| \
20100 X"$as_dir" : 'X\(//\)$' \| \
20101 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20102 printf "%s\n" X"$as_dir" |
20103 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20104 s//\1/
20105 q
20106 }
20107 /^X\(\/\/\)[^/].*/{
20108 s//\1/
20109 q
20110 }
20111 /^X\(\/\/\)$/{
20112 s//\1/
20113 q
20114 }
20115 /^X\(\/\).*/{
20116 s//\1/
20117 q
20118 }
20119 s/.*/./; q'`
20120 test -d "$as_dir" && break
20121 done
20122 test -z "$as_dirs" || eval "mkdir $as_dirs"
20123 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
20124
20125
20126 } # as_fn_mkdir_p
20127 if mkdir -p . 2>/dev/null; then
20128 as_mkdir_p='mkdir -p "$as_dir"'
20129 else
20130 test -d ./-p && rmdir ./-p
20131 as_mkdir_p=false
20132 fi
20133
20134
20135 # as_fn_executable_p FILE
20136 # -----------------------
20137 # Test if FILE is an executable regular file.
20138 as_fn_executable_p ()
20139 {
20140 test -f "$1" && test -x "$1"
20141 } # as_fn_executable_p
20142 as_test_x='test -x'
20143 as_executable_p=as_fn_executable_p
20144
20145 # Sed expression to map a string onto a valid CPP name.
20146 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20147
20148 # Sed expression to map a string onto a valid variable name.
20149 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20150
20151
20152 exec 6>&1
20153 ## ----------------------------------- ##
20154 ## Main body of $CONFIG_STATUS script. ##
20155 ## ----------------------------------- ##
20156 _ASEOF
20157 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
20158
20159 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20160 # Save the log message, to keep $0 and so on meaningful, and to
20161 # report actual input values of CONFIG_FILES etc. instead of their
20162 # values after options handling.
20163 ac_log="
20164 This file was extended by xf86-video-ark $as_me 0.7.6, which was
20165 generated by GNU Autoconf 2.71. Invocation command line was
20166
20167 CONFIG_FILES = $CONFIG_FILES
20168 CONFIG_HEADERS = $CONFIG_HEADERS
20169 CONFIG_LINKS = $CONFIG_LINKS
20170 CONFIG_COMMANDS = $CONFIG_COMMANDS
20171 $ $0 $@
20172
20173 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20174 "
20175
20176 _ACEOF
20177
20178 case $ac_config_files in *"
20179 "*) set x $ac_config_files; shift; ac_config_files=$*;;
20180 esac
20181
20182 case $ac_config_headers in *"
20183 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
20184 esac
20185
20186
20187 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20188 # Files that config.status was made for.
20189 config_files="$ac_config_files"
20190 config_headers="$ac_config_headers"
20191 config_commands="$ac_config_commands"
20192
20193 _ACEOF
20194
20195 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20196 ac_cs_usage="\
20197 \`$as_me' instantiates files and other configuration actions
20198 from templates according to the current configuration. Unless the files
20199 and actions are specified as TAGs, all are instantiated by default.
20200
20201 Usage: $0 [OPTION]... [TAG]...
20202
20203 -h, --help print this help, then exit
20204 -V, --version print version number and configuration settings, then exit
20205 --config print configuration, then exit
20206 -q, --quiet, --silent
20207 do not print progress messages
20208 -d, --debug don't remove temporary files
20209 --recheck update $as_me by reconfiguring in the same conditions
20210 --file=FILE[:TEMPLATE]
20211 instantiate the configuration file FILE
20212 --header=FILE[:TEMPLATE]
20213 instantiate the configuration header FILE
20214
20215 Configuration files:
20216 $config_files
20217
20218 Configuration headers:
20219 $config_headers
20220
20221 Configuration commands:
20222 $config_commands
20223
20224 Report bugs to <https://gitlab.freedesktop.org/xorg/driver/xf86-video-ark/-/issues>."
20225
20226 _ACEOF
20227 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
20228 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
20229 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20230 ac_cs_config='$ac_cs_config_escaped'
20231 ac_cs_version="\\
20232 xf86-video-ark config.status 0.7.6
20233 configured by $0, generated by GNU Autoconf 2.71,
20234 with options \\"\$ac_cs_config\\"
20235
20236 Copyright (C) 2021 Free Software Foundation, Inc.
20237 This config.status script is free software; the Free Software Foundation
20238 gives unlimited permission to copy, distribute and modify it."
20239
20240 ac_pwd='$ac_pwd'
20241 srcdir='$srcdir'
20242 INSTALL='$INSTALL'
20243 MKDIR_P='$MKDIR_P'
20244 AWK='$AWK'
20245 test -n "\$AWK" || AWK=awk
20246 _ACEOF
20247
20248 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20249 # The default lists apply if the user does not specify any file.
20250 ac_need_defaults=:
20251 while test $# != 0
20252 do
20253 case $1 in
20254 --*=?*)
20255 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20256 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20257 ac_shift=:
20258 ;;
20259 --*=)
20260 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20261 ac_optarg=
20262 ac_shift=:
20263 ;;
20264 *)
20265 ac_option=$1
20266 ac_optarg=$2
20267 ac_shift=shift
20268 ;;
20269 esac
20270
20271 case $ac_option in
20272 # Handling of the options.
20273 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20274 ac_cs_recheck=: ;;
20275 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20276 printf "%s\n" "$ac_cs_version"; exit ;;
20277 --config | --confi | --conf | --con | --co | --c )
20278 printf "%s\n" "$ac_cs_config"; exit ;;
20279 --debug | --debu | --deb | --de | --d | -d )
20280 debug=: ;;
20281 --file | --fil | --fi | --f )
20282 $ac_shift
20283 case $ac_optarg in
20284 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20285 '') as_fn_error $? "missing file argument" ;;
20286 esac
20287 as_fn_append CONFIG_FILES " '$ac_optarg'"
20288 ac_need_defaults=false;;
20289 --header | --heade | --head | --hea )
20290 $ac_shift
20291 case $ac_optarg in
20292 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20293 esac
20294 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
20295 ac_need_defaults=false;;
20296 --he | --h)
20297 # Conflict between --help and --header
20298 as_fn_error $? "ambiguous option: \`$1'
20299 Try \`$0 --help' for more information.";;
20300 --help | --hel | -h )
20301 printf "%s\n" "$ac_cs_usage"; exit ;;
20302 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20303 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20304 ac_cs_silent=: ;;
20305
20306 # This is an error.
20307 -*) as_fn_error $? "unrecognized option: \`$1'
20308 Try \`$0 --help' for more information." ;;
20309
20310 *) as_fn_append ac_config_targets " $1"
20311 ac_need_defaults=false ;;
20312
20313 esac
20314 shift
20315 done
20316
20317 ac_configure_extra_args=
20318
20319 if $ac_cs_silent; then
20320 exec 6>/dev/null
20321 ac_configure_extra_args="$ac_configure_extra_args --silent"
20322 fi
20323
20324 _ACEOF
20325 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20326 if \$ac_cs_recheck; then
20327 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20328 shift
20329 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
20330 CONFIG_SHELL='$SHELL'
20331 export CONFIG_SHELL
20332 exec "\$@"
20333 fi
20334
20335 _ACEOF
20336 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20337 exec 5>>config.log
20338 {
20339 echo
20340 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20341 ## Running $as_me. ##
20342 _ASBOX
20343 printf "%s\n" "$ac_log"
20344 } >&5
20345
20346 _ACEOF
20347 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20348 #
20349 # INIT-COMMANDS
20350 #
20351 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
20352
20353
20354 # The HP-UX ksh and POSIX shell print the target directory to stdout
20355 # if CDPATH is set.
20356 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20357
20358 sed_quote_subst='$sed_quote_subst'
20359 double_quote_subst='$double_quote_subst'
20360 delay_variable_subst='$delay_variable_subst'
20361 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
20362 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
20363 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
20364 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
20365 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
20366 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
20367 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
20368 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
20369 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
20370 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
20371 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
20372 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
20373 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
20374 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
20375 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
20376 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
20377 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
20378 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
20379 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
20380 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
20381 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
20382 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
20383 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
20384 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
20385 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
20386 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
20387 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
20388 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
20389 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
20390 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
20391 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
20392 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
20393 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
20394 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
20395 FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
20396 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
20397 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
20398 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
20399 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
20400 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
20401 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
20402 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
20403 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
20404 lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
20405 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
20406 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
20407 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
20408 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
20409 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20410 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20411 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
20412 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
20413 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
20414 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
20415 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
20416 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
20417 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
20418 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
20419 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
20420 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
20421 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"`'
20422 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
20423 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
20424 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
20425 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
20426 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
20427 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
20428 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
20429 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
20430 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
20431 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
20432 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
20433 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
20434 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
20435 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
20436 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
20437 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
20438 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
20439 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
20440 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
20441 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
20442 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20443 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
20444 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
20445 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
20446 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
20447 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
20448 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
20449 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20450 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
20451 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20452 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
20453 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20454 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
20455 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
20456 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
20457 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
20458 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
20459 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
20460 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
20461 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
20462 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
20463 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
20464 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
20465 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
20466 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
20467 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
20468 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
20469 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
20470 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
20471 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
20472 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
20473 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
20474 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
20475 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
20476 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
20477 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
20478 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
20479 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
20480 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
20481 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
20482 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
20483 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
20484 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20485 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20486 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
20487 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
20488 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
20489 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
20490 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
20491 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
20492 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
20493 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
20494 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
20495 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
20496 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
20497 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
20498
20499 LTCC='$LTCC'
20500 LTCFLAGS='$LTCFLAGS'
20501 compiler='$compiler_DEFAULT'
20502
20503 # A function that is used when there is no print builtin or printf.
20504 func_fallback_echo ()
20505 {
20506 eval 'cat <<_LTECHO_EOF
20507 \$1
20508 _LTECHO_EOF'
20509 }
20510
20511 # Quote evaled strings.
20512 for var in SHELL \
20513 ECHO \
20514 PATH_SEPARATOR \
20515 SED \
20516 GREP \
20517 EGREP \
20518 FGREP \
20519 LD \
20520 NM \
20521 LN_S \
20522 lt_SP2NL \
20523 lt_NL2SP \
20524 reload_flag \
20525 FILECMD \
20526 OBJDUMP \
20527 deplibs_check_method \
20528 file_magic_cmd \
20529 file_magic_glob \
20530 want_nocaseglob \
20531 DLLTOOL \
20532 sharedlib_from_linklib_cmd \
20533 AR \
20534 archiver_list_spec \
20535 STRIP \
20536 RANLIB \
20537 CC \
20538 CFLAGS \
20539 compiler \
20540 lt_cv_sys_global_symbol_pipe \
20541 lt_cv_sys_global_symbol_to_cdecl \
20542 lt_cv_sys_global_symbol_to_import \
20543 lt_cv_sys_global_symbol_to_c_name_address \
20544 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
20545 lt_cv_nm_interface \
20546 nm_file_list_spec \
20547 lt_cv_truncate_bin \
20548 lt_prog_compiler_no_builtin_flag \
20549 lt_prog_compiler_pic \
20550 lt_prog_compiler_wl \
20551 lt_prog_compiler_static \
20552 lt_cv_prog_compiler_c_o \
20553 need_locks \
20554 MANIFEST_TOOL \
20555 DSYMUTIL \
20556 NMEDIT \
20557 LIPO \
20558 OTOOL \
20559 OTOOL64 \
20560 shrext_cmds \
20561 export_dynamic_flag_spec \
20562 whole_archive_flag_spec \
20563 compiler_needs_object \
20564 with_gnu_ld \
20565 allow_undefined_flag \
20566 no_undefined_flag \
20567 hardcode_libdir_flag_spec \
20568 hardcode_libdir_separator \
20569 exclude_expsyms \
20570 include_expsyms \
20571 file_list_spec \
20572 variables_saved_for_relink \
20573 libname_spec \
20574 library_names_spec \
20575 soname_spec \
20576 install_override_mode \
20577 finish_eval \
20578 old_striplib \
20579 striplib; do
20580 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20581 *[\\\\\\\`\\"\\\$]*)
20582 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
20583 ;;
20584 *)
20585 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20586 ;;
20587 esac
20588 done
20589
20590 # Double-quote double-evaled strings.
20591 for var in reload_cmds \
20592 old_postinstall_cmds \
20593 old_postuninstall_cmds \
20594 old_archive_cmds \
20595 extract_expsyms_cmds \
20596 old_archive_from_new_cmds \
20597 old_archive_from_expsyms_cmds \
20598 archive_cmds \
20599 archive_expsym_cmds \
20600 module_cmds \
20601 module_expsym_cmds \
20602 export_symbols_cmds \
20603 prelink_cmds \
20604 postlink_cmds \
20605 postinstall_cmds \
20606 postuninstall_cmds \
20607 finish_cmds \
20608 sys_lib_search_path_spec \
20609 configure_time_dlsearch_path \
20610 configure_time_lt_sys_library_path; do
20611 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20612 *[\\\\\\\`\\"\\\$]*)
20613 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
20614 ;;
20615 *)
20616 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20617 ;;
20618 esac
20619 done
20620
20621 ac_aux_dir='$ac_aux_dir'
20622
20623 # See if we are running on zsh, and set the options that allow our
20624 # commands through without removal of \ escapes INIT.
20625 if test -n "\${ZSH_VERSION+set}"; then
20626 setopt NO_GLOB_SUBST
20627 fi
20628
20629
20630 PACKAGE='$PACKAGE'
20631 VERSION='$VERSION'
20632 RM='$RM'
20633 ofile='$ofile'
20634
20635
20636
20637
20638 _ACEOF
20639
20640 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20641
20642 # Handling of arguments.
20643 for ac_config_target in $ac_config_targets
20644 do
20645 case $ac_config_target in
20646 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
20647 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20648 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
20649 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20650 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
20651
20652 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
20653 esac
20654 done
20655
20656
20657 # If the user did not use the arguments to specify the items to instantiate,
20658 # then the envvar interface is used. Set only those that are not.
20659 # We use the long form for the default assignment because of an extremely
20660 # bizarre bug on SunOS 4.1.3.
20661 if $ac_need_defaults; then
20662 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
20663 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
20664 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
20665 fi
20666
20667 # Have a temporary directory for convenience. Make it in the build tree
20668 # simply because there is no reason against having it here, and in addition,
20669 # creating and moving files from /tmp can sometimes cause problems.
20670 # Hook for its removal unless debugging.
20671 # Note that there is a small window in which the directory will not be cleaned:
20672 # after its creation but before its name has been assigned to `$tmp'.
20673 $debug ||
20674 {
20675 tmp= ac_tmp=
20676 trap 'exit_status=$?
20677 : "${ac_tmp:=$tmp}"
20678 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
20679 ' 0
20680 trap 'as_fn_exit 1' 1 2 13 15
20681 }
20682 # Create a (secure) tmp directory for tmp files.
20683
20684 {
20685 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20686 test -d "$tmp"
20687 } ||
20688 {
20689 tmp=./conf$$-$RANDOM
20690 (umask 077 && mkdir "$tmp")
20691 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
20692 ac_tmp=$tmp
20693
20694 # Set up the scripts for CONFIG_FILES section.
20695 # No need to generate them if there are no CONFIG_FILES.
20696 # This happens for instance with `./config.status config.h'.
20697 if test -n "$CONFIG_FILES"; then
20698
20699
20700 ac_cr=`echo X | tr X '\015'`
20701 # On cygwin, bash can eat \r inside `` if the user requested igncr.
20702 # But we know of no other shell where ac_cr would be empty at this
20703 # point, so we can use a bashism as a fallback.
20704 if test "x$ac_cr" = x; then
20705 eval ac_cr=\$\'\\r\'
20706 fi
20707 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20708 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20709 ac_cs_awk_cr='\\r'
20710 else
20711 ac_cs_awk_cr=$ac_cr
20712 fi
20713
20714 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
20715 _ACEOF
20716
20717
20718 {
20719 echo "cat >conf$$subs.awk <<_ACEOF" &&
20720 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20721 echo "_ACEOF"
20722 } >conf$$subs.sh ||
20723 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20724 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
20725 ac_delim='%!_!# '
20726 for ac_last_try in false false false false false :; do
20727 . ./conf$$subs.sh ||
20728 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20729
20730 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
20731 if test $ac_delim_n = $ac_delim_num; then
20732 break
20733 elif $ac_last_try; then
20734 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20735 else
20736 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20737 fi
20738 done
20739 rm -f conf$$subs.sh
20740
20741 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20742 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
20743 _ACEOF
20744 sed -n '
20745 h
20746 s/^/S["/; s/!.*/"]=/
20747 p
20748 g
20749 s/^[^!]*!//
20750 :repl
20751 t repl
20752 s/'"$ac_delim"'$//
20753 t delim
20754 :nl
20755 h
20756 s/\(.\{148\}\)..*/\1/
20757 t more1
20758 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
20759 p
20760 n
20761 b repl
20762 :more1
20763 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20764 p
20765 g
20766 s/.\{148\}//
20767 t nl
20768 :delim
20769 h
20770 s/\(.\{148\}\)..*/\1/
20771 t more2
20772 s/["\\]/\\&/g; s/^/"/; s/$/"/
20773 p
20774 b
20775 :more2
20776 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20777 p
20778 g
20779 s/.\{148\}//
20780 t delim
20781 ' <conf$$subs.awk | sed '
20782 /^[^""]/{
20783 N
20784 s/\n//
20785 }
20786 ' >>$CONFIG_STATUS || ac_write_fail=1
20787 rm -f conf$$subs.awk
20788 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20789 _ACAWK
20790 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
20791 for (key in S) S_is_set[key] = 1
20792 FS = ""
20793
20794 }
20795 {
20796 line = $ 0
20797 nfields = split(line, field, "@")
20798 substed = 0
20799 len = length(field[1])
20800 for (i = 2; i < nfields; i++) {
20801 key = field[i]
20802 keylen = length(key)
20803 if (S_is_set[key]) {
20804 value = S[key]
20805 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20806 len += length(value) + length(field[++i])
20807 substed = 1
20808 } else
20809 len += 1 + keylen
20810 }
20811
20812 print line
20813 }
20814
20815 _ACAWK
20816 _ACEOF
20817 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20818 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20819 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
20820 else
20821 cat
20822 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
20823 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
20824 _ACEOF
20825
20826 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
20827 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
20828 # trailing colons and then remove the whole line if VPATH becomes empty
20829 # (actually we leave an empty line to preserve line numbers).
20830 if test "x$srcdir" = x.; then
20831 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
20832 h
20833 s///
20834 s/^/:/
20835 s/[ ]*$/:/
20836 s/:\$(srcdir):/:/g
20837 s/:\${srcdir}:/:/g
20838 s/:@srcdir@:/:/g
20839 s/^:*//
20840 s/:*$//
20841 x
20842 s/\(=[ ]*\).*/\1/
20843 G
20844 s/\n//
20845 s/^[^=]*=[ ]*$//
20846 }'
20847 fi
20848
20849 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20850 fi # test -n "$CONFIG_FILES"
20851
20852 # Set up the scripts for CONFIG_HEADERS section.
20853 # No need to generate them if there are no CONFIG_HEADERS.
20854 # This happens for instance with `./config.status Makefile'.
20855 if test -n "$CONFIG_HEADERS"; then
20856 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
20857 BEGIN {
20858 _ACEOF
20859
20860 # Transform confdefs.h into an awk script `defines.awk', embedded as
20861 # here-document in config.status, that substitutes the proper values into
20862 # config.h.in to produce config.h.
20863
20864 # Create a delimiter string that does not exist in confdefs.h, to ease
20865 # handling of long lines.
20866 ac_delim='%!_!# '
20867 for ac_last_try in false false :; do
20868 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
20869 if test -z "$ac_tt"; then
20870 break
20871 elif $ac_last_try; then
20872 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
20873 else
20874 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20875 fi
20876 done
20877
20878 # For the awk script, D is an array of macro values keyed by name,
20879 # likewise P contains macro parameters if any. Preserve backslash
20880 # newline sequences.
20881
20882 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20883 sed -n '
20884 s/.\{148\}/&'"$ac_delim"'/g
20885 t rset
20886 :rset
20887 s/^[ ]*#[ ]*define[ ][ ]*/ /
20888 t def
20889 d
20890 :def
20891 s/\\$//
20892 t bsnl
20893 s/["\\]/\\&/g
20894 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20895 D["\1"]=" \3"/p
20896 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
20897 d
20898 :bsnl
20899 s/["\\]/\\&/g
20900 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20901 D["\1"]=" \3\\\\\\n"\\/p
20902 t cont
20903 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
20904 t cont
20905 d
20906 :cont
20907 n
20908 s/.\{148\}/&'"$ac_delim"'/g
20909 t clear
20910 :clear
20911 s/\\$//
20912 t bsnlc
20913 s/["\\]/\\&/g; s/^/"/; s/$/"/p
20914 d
20915 :bsnlc
20916 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
20917 b cont
20918 ' <confdefs.h | sed '
20919 s/'"$ac_delim"'/"\\\
20920 "/g' >>$CONFIG_STATUS || ac_write_fail=1
20921
20922 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20923 for (key in D) D_is_set[key] = 1
20924 FS = ""
20925 }
20926 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
20927 line = \$ 0
20928 split(line, arg, " ")
20929 if (arg[1] == "#") {
20930 defundef = arg[2]
20931 mac1 = arg[3]
20932 } else {
20933 defundef = substr(arg[1], 2)
20934 mac1 = arg[2]
20935 }
20936 split(mac1, mac2, "(") #)
20937 macro = mac2[1]
20938 prefix = substr(line, 1, index(line, defundef) - 1)
20939 if (D_is_set[macro]) {
20940 # Preserve the white space surrounding the "#".
20941 print prefix "define", macro P[macro] D[macro]
20942 next
20943 } else {
20944 # Replace #undef with comments. This is necessary, for example,
20945 # in the case of _POSIX_SOURCE, which is predefined and required
20946 # on some systems where configure will not decide to define it.
20947 if (defundef == "undef") {
20948 print "/*", prefix defundef, macro, "*/"
20949 next
20950 }
20951 }
20952 }
20953 { print }
20954 _ACAWK
20955 _ACEOF
20956 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20957 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
20958 fi # test -n "$CONFIG_HEADERS"
20959
20960
20961 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
20962 shift
20963 for ac_tag
20964 do
20965 case $ac_tag in
20966 :[FHLC]) ac_mode=$ac_tag; continue;;
20967 esac
20968 case $ac_mode$ac_tag in
20969 :[FHL]*:*);;
20970 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
20971 :[FH]-) ac_tag=-:-;;
20972 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20973 esac
20974 ac_save_IFS=$IFS
20975 IFS=:
20976 set x $ac_tag
20977 IFS=$ac_save_IFS
20978 shift
20979 ac_file=$1
20980 shift
20981
20982 case $ac_mode in
20983 :L) ac_source=$1;;
20984 :[FH])
20985 ac_file_inputs=
20986 for ac_f
20987 do
20988 case $ac_f in
20989 -) ac_f="$ac_tmp/stdin";;
20990 *) # Look for the file first in the build tree, then in the source tree
20991 # (if the path is not absolute). The absolute path cannot be DOS-style,
20992 # because $ac_f cannot contain `:'.
20993 test -f "$ac_f" ||
20994 case $ac_f in
20995 [\\/$]*) false;;
20996 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20997 esac ||
20998 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
20999 esac
21000 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
21001 as_fn_append ac_file_inputs " '$ac_f'"
21002 done
21003
21004 # Let's still pretend it is `configure' which instantiates (i.e., don't
21005 # use $as_me), people would be surprised to read:
21006 # /* config.h. Generated by config.status. */
21007 configure_input='Generated from '`
21008 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
21009 `' by configure.'
21010 if test x"$ac_file" != x-; then
21011 configure_input="$ac_file. $configure_input"
21012 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
21013 printf "%s\n" "$as_me: creating $ac_file" >&6;}
21014 fi
21015 # Neutralize special characters interpreted by sed in replacement strings.
21016 case $configure_input in #(
21017 *\&* | *\|* | *\\* )
21018 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
21019 sed 's/[\\\\&|]/\\\\&/g'`;; #(
21020 *) ac_sed_conf_input=$configure_input;;
21021 esac
21022
21023 case $ac_tag in
21024 *:-:* | *:-) cat >"$ac_tmp/stdin" \
21025 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
21026 esac
21027 ;;
21028 esac
21029
21030 ac_dir=`$as_dirname -- "$ac_file" ||
21031 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21032 X"$ac_file" : 'X\(//\)[^/]' \| \
21033 X"$ac_file" : 'X\(//\)$' \| \
21034 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21035 printf "%s\n" X"$ac_file" |
21036 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21037 s//\1/
21038 q
21039 }
21040 /^X\(\/\/\)[^/].*/{
21041 s//\1/
21042 q
21043 }
21044 /^X\(\/\/\)$/{
21045 s//\1/
21046 q
21047 }
21048 /^X\(\/\).*/{
21049 s//\1/
21050 q
21051 }
21052 s/.*/./; q'`
21053 as_dir="$ac_dir"; as_fn_mkdir_p
21054 ac_builddir=.
21055
21056 case "$ac_dir" in
21057 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21058 *)
21059 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
21060 # A ".." for each directory in $ac_dir_suffix.
21061 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21062 case $ac_top_builddir_sub in
21063 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21064 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21065 esac ;;
21066 esac
21067 ac_abs_top_builddir=$ac_pwd
21068 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21069 # for backward compatibility:
21070 ac_top_builddir=$ac_top_build_prefix
21071
21072 case $srcdir in
21073 .) # We are building in place.
21074 ac_srcdir=.
21075 ac_top_srcdir=$ac_top_builddir_sub
21076 ac_abs_top_srcdir=$ac_pwd ;;
21077 [\\/]* | ?:[\\/]* ) # Absolute name.
21078 ac_srcdir=$srcdir$ac_dir_suffix;
21079 ac_top_srcdir=$srcdir
21080 ac_abs_top_srcdir=$srcdir ;;
21081 *) # Relative name.
21082 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21083 ac_top_srcdir=$ac_top_build_prefix$srcdir
21084 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21085 esac
21086 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21087
21088
21089 case $ac_mode in
21090 :F)
21091 #
21092 # CONFIG_FILE
21093 #
21094
21095 case $INSTALL in
21096 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21097 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21098 esac
21099 ac_MKDIR_P=$MKDIR_P
21100 case $MKDIR_P in
21101 [\\/$]* | ?:[\\/]* ) ;;
21102 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
21103 esac
21104 _ACEOF
21105
21106 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21107 # If the template does not know about datarootdir, expand it.
21108 # FIXME: This hack should be removed a few years after 2.60.
21109 ac_datarootdir_hack=; ac_datarootdir_seen=
21110 ac_sed_dataroot='
21111 /datarootdir/ {
21112 p
21113 q
21114 }
21115 /@datadir@/p
21116 /@docdir@/p
21117 /@infodir@/p
21118 /@localedir@/p
21119 /@mandir@/p'
21120 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
21121 *datarootdir*) ac_datarootdir_seen=yes;;
21122 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21124 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21125 _ACEOF
21126 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21127 ac_datarootdir_hack='
21128 s&@datadir@&$datadir&g
21129 s&@docdir@&$docdir&g
21130 s&@infodir@&$infodir&g
21131 s&@localedir@&$localedir&g
21132 s&@mandir@&$mandir&g
21133 s&\\\${datarootdir}&$datarootdir&g' ;;
21134 esac
21135 _ACEOF
21136
21137 # Neutralize VPATH when `$srcdir' = `.'.
21138 # Shell code in configure.ac might set extrasub.
21139 # FIXME: do we really want to maintain this feature?
21140 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21141 ac_sed_extra="$ac_vpsub
21142 $extrasub
21143 _ACEOF
21144 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21145 :t
21146 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21147 s|@configure_input@|$ac_sed_conf_input|;t t
21148 s&@top_builddir@&$ac_top_builddir_sub&;t t
21149 s&@top_build_prefix@&$ac_top_build_prefix&;t t
21150 s&@srcdir@&$ac_srcdir&;t t
21151 s&@abs_srcdir@&$ac_abs_srcdir&;t t
21152 s&@top_srcdir@&$ac_top_srcdir&;t t
21153 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21154 s&@builddir@&$ac_builddir&;t t
21155 s&@abs_builddir@&$ac_abs_builddir&;t t
21156 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21157 s&@INSTALL@&$ac_INSTALL&;t t
21158 s&@MKDIR_P@&$ac_MKDIR_P&;t t
21159 $ac_datarootdir_hack
21160 "
21161 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
21162 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21163
21164 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21165 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
21166 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
21167 "$ac_tmp/out"`; test -z "$ac_out"; } &&
21168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21169 which seems to be undefined. Please make sure it is defined" >&5
21170 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21171 which seems to be undefined. Please make sure it is defined" >&2;}
21172
21173 rm -f "$ac_tmp/stdin"
21174 case $ac_file in
21175 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
21176 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
21177 esac \
21178 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21179 ;;
21180 :H)
21181 #
21182 # CONFIG_HEADER
21183 #
21184 if test x"$ac_file" != x-; then
21185 {
21186 printf "%s\n" "/* $configure_input */" >&1 \
21187 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
21188 } >"$ac_tmp/config.h" \
21189 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21190 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
21191 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
21192 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
21193 else
21194 rm -f "$ac_file"
21195 mv "$ac_tmp/config.h" "$ac_file" \
21196 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21197 fi
21198 else
21199 printf "%s\n" "/* $configure_input */" >&1 \
21200 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
21201 || as_fn_error $? "could not create -" "$LINENO" 5
21202 fi
21203 # Compute "$ac_file"'s index in $config_headers.
21204 _am_arg="$ac_file"
21205 _am_stamp_count=1
21206 for _am_header in $config_headers :; do
21207 case $_am_header in
21208 $_am_arg | $_am_arg:* )
21209 break ;;
21210 * )
21211 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21212 esac
21213 done
21214 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
21215 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21216 X"$_am_arg" : 'X\(//\)[^/]' \| \
21217 X"$_am_arg" : 'X\(//\)$' \| \
21218 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
21219 printf "%s\n" X"$_am_arg" |
21220 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21221 s//\1/
21222 q
21223 }
21224 /^X\(\/\/\)[^/].*/{
21225 s//\1/
21226 q
21227 }
21228 /^X\(\/\/\)$/{
21229 s//\1/
21230 q
21231 }
21232 /^X\(\/\).*/{
21233 s//\1/
21234 q
21235 }
21236 s/.*/./; q'`/stamp-h$_am_stamp_count
21237 ;;
21238
21239 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
21240 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
21241 ;;
21242 esac
21243
21244
21245 case $ac_file$ac_mode in
21246 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
21247 # Older Autoconf quotes --file arguments for eval, but not when files
21248 # are listed without --file. Let's play safe and only enable the eval
21249 # if we detect the quoting.
21250 # TODO: see whether this extra hack can be removed once we start
21251 # requiring Autoconf 2.70 or later.
21252 case $CONFIG_FILES in #(
21253 *\'*) :
21254 eval set x "$CONFIG_FILES" ;; #(
21255 *) :
21256 set x $CONFIG_FILES ;; #(
21257 *) :
21258 ;;
21259 esac
21260 shift
21261 # Used to flag and report bootstrapping failures.
21262 am_rc=0
21263 for am_mf
21264 do
21265 # Strip MF so we end up with the name of the file.
21266 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
21267 # Check whether this is an Automake generated Makefile which includes
21268 # dependency-tracking related rules and includes.
21269 # Grep'ing the whole file directly is not great: AIX grep has a line
21270 # limit of 2048, but all sed's we know have understand at least 4000.
21271 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
21272 || continue
21273 am_dirpart=`$as_dirname -- "$am_mf" ||
21274 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21275 X"$am_mf" : 'X\(//\)[^/]' \| \
21276 X"$am_mf" : 'X\(//\)$' \| \
21277 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
21278 printf "%s\n" X"$am_mf" |
21279 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21280 s//\1/
21281 q
21282 }
21283 /^X\(\/\/\)[^/].*/{
21284 s//\1/
21285 q
21286 }
21287 /^X\(\/\/\)$/{
21288 s//\1/
21289 q
21290 }
21291 /^X\(\/\).*/{
21292 s//\1/
21293 q
21294 }
21295 s/.*/./; q'`
21296 am_filepart=`$as_basename -- "$am_mf" ||
21297 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
21298 X"$am_mf" : 'X\(//\)$' \| \
21299 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
21300 printf "%s\n" X/"$am_mf" |
21301 sed '/^.*\/\([^/][^/]*\)\/*$/{
21302 s//\1/
21303 q
21304 }
21305 /^X\/\(\/\/\)$/{
21306 s//\1/
21307 q
21308 }
21309 /^X\/\(\/\).*/{
21310 s//\1/
21311 q
21312 }
21313 s/.*/./; q'`
21314 { echo "$as_me:$LINENO: cd "$am_dirpart" \
21315 && sed -e '/# am--include-marker/d' "$am_filepart" \
21316 | $MAKE -f - am--depfiles" >&5
21317 (cd "$am_dirpart" \
21318 && sed -e '/# am--include-marker/d' "$am_filepart" \
21319 | $MAKE -f - am--depfiles) >&5 2>&5
21320 ac_status=$?
21321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21322 (exit $ac_status); } || am_rc=$?
21323 done
21324 if test $am_rc -ne 0; then
21325 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21326 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
21327 as_fn_error $? "Something went wrong bootstrapping makefile fragments
21328 for automatic dependency tracking. If GNU make was not used, consider
21329 re-running the configure script with MAKE=\"gmake\" (or whatever is
21330 necessary). You can also try re-running configure with the
21331 '--disable-dependency-tracking' option to at least be able to build
21332 the package (albeit without support for automatic dependency tracking).
21333 See \`config.log' for more details" "$LINENO" 5; }
21334 fi
21335 { am_dirpart=; unset am_dirpart;}
21336 { am_filepart=; unset am_filepart;}
21337 { am_mf=; unset am_mf;}
21338 { am_rc=; unset am_rc;}
21339 rm -f conftest-deps.mk
21340 }
21341 ;;
21342 "libtool":C)
21343
21344 # See if we are running on zsh, and set the options that allow our
21345 # commands through without removal of \ escapes.
21346 if test -n "${ZSH_VERSION+set}"; then
21347 setopt NO_GLOB_SUBST
21348 fi
21349
21350 cfgfile=${ofile}T
21351 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
21352 $RM "$cfgfile"
21353
21354 cat <<_LT_EOF >> "$cfgfile"
21355 #! $SHELL
21356 # Generated automatically by $as_me ($PACKAGE) $VERSION
21357 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21358 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
21359
21360 # Provide generalized library-building support services.
21361 # Written by Gordon Matzigkeit, 1996
21362
21363 # Copyright (C) 2014 Free Software Foundation, Inc.
21364 # This is free software; see the source for copying conditions. There is NO
21365 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
21366
21367 # GNU Libtool is free software; you can redistribute it and/or modify
21368 # it under the terms of the GNU General Public License as published by
21369 # the Free Software Foundation; either version 2 of of the License, or
21370 # (at your option) any later version.
21371 #
21372 # As a special exception to the GNU General Public License, if you
21373 # distribute this file as part of a program or library that is built
21374 # using GNU Libtool, you may include this file under the same
21375 # distribution terms that you use for the rest of that program.
21376 #
21377 # GNU Libtool is distributed in the hope that it will be useful, but
21378 # WITHOUT ANY WARRANTY; without even the implied warranty of
21379 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21380 # GNU General Public License for more details.
21381 #
21382 # You should have received a copy of the GNU General Public License
21383 # along with this program. If not, see <http://www.gnu.org/licenses/>.
21384
21385
21386 # The names of the tagged configurations supported by this script.
21387 available_tags=''
21388
21389 # Configured defaults for sys_lib_dlsearch_path munging.
21390 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
21391
21392 # ### BEGIN LIBTOOL CONFIG
21393
21394 # Whether or not to build static libraries.
21395 build_old_libs=$enable_static
21396
21397 # Which release of libtool.m4 was used?
21398 macro_version=$macro_version
21399 macro_revision=$macro_revision
21400
21401 # Whether or not to build shared libraries.
21402 build_libtool_libs=$enable_shared
21403
21404 # What type of objects to build.
21405 pic_mode=$pic_mode
21406
21407 # Whether or not to optimize for fast installation.
21408 fast_install=$enable_fast_install
21409
21410 # Shared archive member basename,for filename based shared library versioning on AIX.
21411 shared_archive_member_spec=$shared_archive_member_spec
21412
21413 # Shell to use when invoking shell scripts.
21414 SHELL=$lt_SHELL
21415
21416 # An echo program that protects backslashes.
21417 ECHO=$lt_ECHO
21418
21419 # The PATH separator for the build system.
21420 PATH_SEPARATOR=$lt_PATH_SEPARATOR
21421
21422 # The host system.
21423 host_alias=$host_alias
21424 host=$host
21425 host_os=$host_os
21426
21427 # The build system.
21428 build_alias=$build_alias
21429 build=$build
21430 build_os=$build_os
21431
21432 # A sed program that does not truncate output.
21433 SED=$lt_SED
21434
21435 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
21436 Xsed="\$SED -e 1s/^X//"
21437
21438 # A grep program that handles long lines.
21439 GREP=$lt_GREP
21440
21441 # An ERE matcher.
21442 EGREP=$lt_EGREP
21443
21444 # A literal string matcher.
21445 FGREP=$lt_FGREP
21446
21447 # A BSD- or MS-compatible name lister.
21448 NM=$lt_NM
21449
21450 # Whether we need soft or hard links.
21451 LN_S=$lt_LN_S
21452
21453 # What is the maximum length of a command?
21454 max_cmd_len=$max_cmd_len
21455
21456 # Object file suffix (normally "o").
21457 objext=$ac_objext
21458
21459 # Executable file suffix (normally "").
21460 exeext=$exeext
21461
21462 # whether the shell understands "unset".
21463 lt_unset=$lt_unset
21464
21465 # turn spaces into newlines.
21466 SP2NL=$lt_lt_SP2NL
21467
21468 # turn newlines into spaces.
21469 NL2SP=$lt_lt_NL2SP
21470
21471 # convert \$build file names to \$host format.
21472 to_host_file_cmd=$lt_cv_to_host_file_cmd
21473
21474 # convert \$build files to toolchain format.
21475 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
21476
21477 # A file(cmd) program that detects file types.
21478 FILECMD=$lt_FILECMD
21479
21480 # An object symbol dumper.
21481 OBJDUMP=$lt_OBJDUMP
21482
21483 # Method to check whether dependent libraries are shared objects.
21484 deplibs_check_method=$lt_deplibs_check_method
21485
21486 # Command to use when deplibs_check_method = "file_magic".
21487 file_magic_cmd=$lt_file_magic_cmd
21488
21489 # How to find potential files when deplibs_check_method = "file_magic".
21490 file_magic_glob=$lt_file_magic_glob
21491
21492 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
21493 want_nocaseglob=$lt_want_nocaseglob
21494
21495 # DLL creation program.
21496 DLLTOOL=$lt_DLLTOOL
21497
21498 # Command to associate shared and link libraries.
21499 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
21500
21501 # The archiver.
21502 AR=$lt_AR
21503
21504 # Flags to create an archive (by configure).
21505 lt_ar_flags=$lt_ar_flags
21506
21507 # Flags to create an archive.
21508 AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
21509
21510 # How to feed a file listing to the archiver.
21511 archiver_list_spec=$lt_archiver_list_spec
21512
21513 # A symbol stripping program.
21514 STRIP=$lt_STRIP
21515
21516 # Commands used to install an old-style archive.
21517 RANLIB=$lt_RANLIB
21518 old_postinstall_cmds=$lt_old_postinstall_cmds
21519 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21520
21521 # Whether to use a lock for old archive extraction.
21522 lock_old_archive_extraction=$lock_old_archive_extraction
21523
21524 # A C compiler.
21525 LTCC=$lt_CC
21526
21527 # LTCC compiler flags.
21528 LTCFLAGS=$lt_CFLAGS
21529
21530 # Take the output of nm and produce a listing of raw symbols and C names.
21531 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21532
21533 # Transform the output of nm in a proper C declaration.
21534 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21535
21536 # Transform the output of nm into a list of symbols to manually relocate.
21537 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
21538
21539 # Transform the output of nm in a C name address pair.
21540 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21541
21542 # Transform the output of nm in a C name address pair when lib prefix is needed.
21543 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
21544
21545 # The name lister interface.
21546 nm_interface=$lt_lt_cv_nm_interface
21547
21548 # Specify filename containing input files for \$NM.
21549 nm_file_list_spec=$lt_nm_file_list_spec
21550
21551 # The root where to search for dependent libraries,and where our libraries should be installed.
21552 lt_sysroot=$lt_sysroot
21553
21554 # Command to truncate a binary pipe.
21555 lt_truncate_bin=$lt_lt_cv_truncate_bin
21556
21557 # The name of the directory that contains temporary libtool files.
21558 objdir=$objdir
21559
21560 # Used to examine libraries when file_magic_cmd begins with "file".
21561 MAGIC_CMD=$MAGIC_CMD
21562
21563 # Must we lock files when doing compilation?
21564 need_locks=$lt_need_locks
21565
21566 # Manifest tool.
21567 MANIFEST_TOOL=$lt_MANIFEST_TOOL
21568
21569 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
21570 DSYMUTIL=$lt_DSYMUTIL
21571
21572 # Tool to change global to local symbols on Mac OS X.
21573 NMEDIT=$lt_NMEDIT
21574
21575 # Tool to manipulate fat objects and archives on Mac OS X.
21576 LIPO=$lt_LIPO
21577
21578 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
21579 OTOOL=$lt_OTOOL
21580
21581 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
21582 OTOOL64=$lt_OTOOL64
21583
21584 # Old archive suffix (normally "a").
21585 libext=$libext
21586
21587 # Shared library suffix (normally ".so").
21588 shrext_cmds=$lt_shrext_cmds
21589
21590 # The commands to extract the exported symbol list from a shared archive.
21591 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21592
21593 # Variables whose values should be saved in libtool wrapper scripts and
21594 # restored at link time.
21595 variables_saved_for_relink=$lt_variables_saved_for_relink
21596
21597 # Do we need the "lib" prefix for modules?
21598 need_lib_prefix=$need_lib_prefix
21599
21600 # Do we need a version for libraries?
21601 need_version=$need_version
21602
21603 # Library versioning type.
21604 version_type=$version_type
21605
21606 # Shared library runtime path variable.
21607 runpath_var=$runpath_var
21608
21609 # Shared library path variable.
21610 shlibpath_var=$shlibpath_var
21611
21612 # Is shlibpath searched before the hard-coded library search path?
21613 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21614
21615 # Format of library name prefix.
21616 libname_spec=$lt_libname_spec
21617
21618 # List of archive names. First name is the real one, the rest are links.
21619 # The last name is the one that the linker finds with -lNAME
21620 library_names_spec=$lt_library_names_spec
21621
21622 # The coded name of the library, if different from the real name.
21623 soname_spec=$lt_soname_spec
21624
21625 # Permission mode override for installation of shared libraries.
21626 install_override_mode=$lt_install_override_mode
21627
21628 # Command to use after installation of a shared archive.
21629 postinstall_cmds=$lt_postinstall_cmds
21630
21631 # Command to use after uninstallation of a shared archive.
21632 postuninstall_cmds=$lt_postuninstall_cmds
21633
21634 # Commands used to finish a libtool library installation in a directory.
21635 finish_cmds=$lt_finish_cmds
21636
21637 # As "finish_cmds", except a single script fragment to be evaled but
21638 # not shown.
21639 finish_eval=$lt_finish_eval
21640
21641 # Whether we should hardcode library paths into libraries.
21642 hardcode_into_libs=$hardcode_into_libs
21643
21644 # Compile-time system search path for libraries.
21645 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21646
21647 # Detected run-time system search path for libraries.
21648 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
21649
21650 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
21651 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
21652
21653 # Whether dlopen is supported.
21654 dlopen_support=$enable_dlopen
21655
21656 # Whether dlopen of programs is supported.
21657 dlopen_self=$enable_dlopen_self
21658
21659 # Whether dlopen of statically linked programs is supported.
21660 dlopen_self_static=$enable_dlopen_self_static
21661
21662 # Commands to strip libraries.
21663 old_striplib=$lt_old_striplib
21664 striplib=$lt_striplib
21665
21666
21667 # The linker used to build libraries.
21668 LD=$lt_LD
21669
21670 # How to create reloadable object files.
21671 reload_flag=$lt_reload_flag
21672 reload_cmds=$lt_reload_cmds
21673
21674 # Commands used to build an old-style archive.
21675 old_archive_cmds=$lt_old_archive_cmds
21676
21677 # A language specific compiler.
21678 CC=$lt_compiler
21679
21680 # Is the compiler the GNU compiler?
21681 with_gcc=$GCC
21682
21683 # Compiler flag to turn off builtin functions.
21684 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
21685
21686 # Additional compiler flags for building library objects.
21687 pic_flag=$lt_lt_prog_compiler_pic
21688
21689 # How to pass a linker flag through the compiler.
21690 wl=$lt_lt_prog_compiler_wl
21691
21692 # Compiler flag to prevent dynamic linking.
21693 link_static_flag=$lt_lt_prog_compiler_static
21694
21695 # Does compiler simultaneously support -c and -o options?
21696 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
21697
21698 # Whether or not to add -lc for building shared libraries.
21699 build_libtool_need_lc=$archive_cmds_need_lc
21700
21701 # Whether or not to disallow shared libs when runtime libs are static.
21702 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
21703
21704 # Compiler flag to allow reflexive dlopens.
21705 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
21706
21707 # Compiler flag to generate shared objects directly from archives.
21708 whole_archive_flag_spec=$lt_whole_archive_flag_spec
21709
21710 # Whether the compiler copes with passing no objects directly.
21711 compiler_needs_object=$lt_compiler_needs_object
21712
21713 # Create an old-style archive from a shared archive.
21714 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
21715
21716 # Create a temporary old-style archive to link instead of a shared archive.
21717 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
21718
21719 # Commands used to build a shared archive.
21720 archive_cmds=$lt_archive_cmds
21721 archive_expsym_cmds=$lt_archive_expsym_cmds
21722
21723 # Commands used to build a loadable module if different from building
21724 # a shared archive.
21725 module_cmds=$lt_module_cmds
21726 module_expsym_cmds=$lt_module_expsym_cmds
21727
21728 # Whether we are building with GNU ld or not.
21729 with_gnu_ld=$lt_with_gnu_ld
21730
21731 # Flag that allows shared libraries with undefined symbols to be built.
21732 allow_undefined_flag=$lt_allow_undefined_flag
21733
21734 # Flag that enforces no undefined symbols.
21735 no_undefined_flag=$lt_no_undefined_flag
21736
21737 # Flag to hardcode \$libdir into a binary during linking.
21738 # This must work even if \$libdir does not exist
21739 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
21740
21741 # Whether we need a single "-rpath" flag with a separated argument.
21742 hardcode_libdir_separator=$lt_hardcode_libdir_separator
21743
21744 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21745 # DIR into the resulting binary.
21746 hardcode_direct=$hardcode_direct
21747
21748 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21749 # DIR into the resulting binary and the resulting library dependency is
21750 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
21751 # library is relocated.
21752 hardcode_direct_absolute=$hardcode_direct_absolute
21753
21754 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21755 # into the resulting binary.
21756 hardcode_minus_L=$hardcode_minus_L
21757
21758 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21759 # into the resulting binary.
21760 hardcode_shlibpath_var=$hardcode_shlibpath_var
21761
21762 # Set to "yes" if building a shared library automatically hardcodes DIR
21763 # into the library and all subsequent libraries and executables linked
21764 # against it.
21765 hardcode_automatic=$hardcode_automatic
21766
21767 # Set to yes if linker adds runtime paths of dependent libraries
21768 # to runtime path list.
21769 inherit_rpath=$inherit_rpath
21770
21771 # Whether libtool must link a program against all its dependency libraries.
21772 link_all_deplibs=$link_all_deplibs
21773
21774 # Set to "yes" if exported symbols are required.
21775 always_export_symbols=$always_export_symbols
21776
21777 # The commands to list exported symbols.
21778 export_symbols_cmds=$lt_export_symbols_cmds
21779
21780 # Symbols that should not be listed in the preloaded symbols.
21781 exclude_expsyms=$lt_exclude_expsyms
21782
21783 # Symbols that must always be exported.
21784 include_expsyms=$lt_include_expsyms
21785
21786 # Commands necessary for linking programs (against libraries) with templates.
21787 prelink_cmds=$lt_prelink_cmds
21788
21789 # Commands necessary for finishing linking programs.
21790 postlink_cmds=$lt_postlink_cmds
21791
21792 # Specify filename containing input files.
21793 file_list_spec=$lt_file_list_spec
21794
21795 # How to hardcode a shared library path into an executable.
21796 hardcode_action=$hardcode_action
21797
21798 # ### END LIBTOOL CONFIG
21799
21800 _LT_EOF
21801
21802 cat <<'_LT_EOF' >> "$cfgfile"
21803
21804 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
21805
21806 # func_munge_path_list VARIABLE PATH
21807 # -----------------------------------
21808 # VARIABLE is name of variable containing _space_ separated list of
21809 # directories to be munged by the contents of PATH, which is string
21810 # having a format:
21811 # "DIR[:DIR]:"
21812 # string "DIR[ DIR]" will be prepended to VARIABLE
21813 # ":DIR[:DIR]"
21814 # string "DIR[ DIR]" will be appended to VARIABLE
21815 # "DIRP[:DIRP]::[DIRA:]DIRA"
21816 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
21817 # "DIRA[ DIRA]" will be appended to VARIABLE
21818 # "DIR[:DIR]"
21819 # VARIABLE will be replaced by "DIR[ DIR]"
21820 func_munge_path_list ()
21821 {
21822 case x$2 in
21823 x)
21824 ;;
21825 *:)
21826 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
21827 ;;
21828 x:*)
21829 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
21830 ;;
21831 *::*)
21832 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
21833 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
21834 ;;
21835 *)
21836 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
21837 ;;
21838 esac
21839 }
21840
21841
21842 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
21843 func_cc_basename ()
21844 {
21845 for cc_temp in $*""; do
21846 case $cc_temp in
21847 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21848 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21849 \-*) ;;
21850 *) break;;
21851 esac
21852 done
21853 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
21854 }
21855
21856
21857 # ### END FUNCTIONS SHARED WITH CONFIGURE
21858
21859 _LT_EOF
21860
21861 case $host_os in
21862 aix3*)
21863 cat <<\_LT_EOF >> "$cfgfile"
21864 # AIX sometimes has problems with the GCC collect2 program. For some
21865 # reason, if we set the COLLECT_NAMES environment variable, the problems
21866 # vanish in a puff of smoke.
21867 if test set != "${COLLECT_NAMES+set}"; then
21868 COLLECT_NAMES=
21869 export COLLECT_NAMES
21870 fi
21871 _LT_EOF
21872 ;;
21873 esac
21874
21875
21876
21877 ltmain=$ac_aux_dir/ltmain.sh
21878
21879
21880 # We use sed instead of cat because bash on DJGPP gets confused if
21881 # if finds mixed CR/LF and LF-only lines. Since sed operates in
21882 # text mode, it properly converts lines to CR/LF. This bash problem
21883 # is reportedly fixed, but why not run on old versions too?
21884 $SED '$q' "$ltmain" >> "$cfgfile" \
21885 || (rm -f "$cfgfile"; exit 1)
21886
21887 mv -f "$cfgfile" "$ofile" ||
21888 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
21889 chmod +x "$ofile"
21890
21891 ;;
21892
21893 esac
21894 done # for ac_tag
21895
21896
21897 as_fn_exit 0
21898 _ACEOF
21899 ac_clean_files=$ac_clean_files_save
21900
21901 test $ac_write_fail = 0 ||
21902 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
21903
21904
21905 # configure is writing to config.log, and then calls config.status.
21906 # config.status does its own redirection, appending to config.log.
21907 # Unfortunately, on DOS this fails, as config.log is still kept open
21908 # by configure, so config.status won't be able to write to it; its
21909 # output is simply discarded. So we exec the FD to /dev/null,
21910 # effectively closing config.log, so it can be properly (re)opened and
21911 # appended to by config.status. When coming back to configure, we
21912 # need to make the FD available again.
21913 if test "$no_create" != yes; then
21914 ac_cs_success=:
21915 ac_config_status_args=
21916 test "$silent" = yes &&
21917 ac_config_status_args="$ac_config_status_args --quiet"
21918 exec 5>/dev/null
21919 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21920 exec 5>>config.log
21921 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21922 # would make configure fail if this is the last instruction.
21923 $ac_cs_success || as_fn_exit 1
21924 fi
21925 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
21926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21927 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
21928 fi
21929
21930
21931