configure revision 1.1.1.10 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.71 for xf86-video-neomagic 1.3.1.
4 #
5 # Report bugs to <https://gitlab.freedesktop.org/xorg/driver/xf86-video-neomagic/-/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-neomagic/-/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-neomagic'
624 PACKAGE_TARNAME='xf86-video-neomagic'
625 PACKAGE_VERSION='1.3.1'
626 PACKAGE_STRING='xf86-video-neomagic 1.3.1'
627 PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/driver/xf86-video-neomagic/-/issues'
628 PACKAGE_URL=''
629
630 ac_unique_file="Makefile.am"
631 # Factoring default headers for most tests.
632 ac_includes_default="\
633 #include <stddef.h>
634 #ifdef HAVE_STDIO_H
635 # include <stdio.h>
636 #endif
637 #ifdef HAVE_STDLIB_H
638 # include <stdlib.h>
639 #endif
640 #ifdef HAVE_STRING_H
641 # include <string.h>
642 #endif
643 #ifdef HAVE_INTTYPES_H
644 # include <inttypes.h>
645 #endif
646 #ifdef HAVE_STDINT_H
647 # include <stdint.h>
648 #endif
649 #ifdef HAVE_STRINGS_H
650 # include <strings.h>
651 #endif
652 #ifdef HAVE_SYS_TYPES_H
653 # include <sys/types.h>
654 #endif
655 #ifdef HAVE_SYS_STAT_H
656 # include <sys/stat.h>
657 #endif
658 #ifdef HAVE_UNISTD_H
659 # include <unistd.h>
660 #endif"
661
662 ac_header_c_list=
663 ac_subst_vars='am__EXEEXT_FALSE
664 am__EXEEXT_TRUE
665 LTLIBOBJS
666 LIBOBJS
667 DRIVER_NAME
668 moduledir
669 XSERVER_LIBPCIACCESS_FALSE
670 XSERVER_LIBPCIACCESS_TRUE
671 PCIACCESS_LIBS
672 PCIACCESS_CFLAGS
673 XAA_FALSE
674 XAA_TRUE
675 XORG_LIBS
676 XORG_CFLAGS
677 LT_SYS_LIBRARY_PATH
678 OTOOL64
679 OTOOL
680 LIPO
681 NMEDIT
682 DSYMUTIL
683 MANIFEST_TOOL
684 RANLIB
685 ac_ct_AR
686 AR
687 DLLTOOL
688 OBJDUMP
689 FILECMD
690 LN_S
691 NM
692 ac_ct_DUMPBIN
693 DUMPBIN
694 LD
695 FGREP
696 EGREP
697 GREP
698 LIBTOOL
699 MAN_SUBSTS
700 XORG_MAN_PAGE
701 ADMIN_MAN_DIR
702 DRIVER_MAN_DIR
703 MISC_MAN_DIR
704 FILE_MAN_DIR
705 LIB_MAN_DIR
706 APP_MAN_DIR
707 ADMIN_MAN_SUFFIX
708 DRIVER_MAN_SUFFIX
709 MISC_MAN_SUFFIX
710 FILE_MAN_SUFFIX
711 LIB_MAN_SUFFIX
712 APP_MAN_SUFFIX
713 SED
714 host_os
715 host_vendor
716 host_cpu
717 host
718 build_os
719 build_vendor
720 build_cpu
721 build
722 INSTALL_CMD
723 PKG_CONFIG_LIBDIR
724 PKG_CONFIG_PATH
725 PKG_CONFIG
726 CHANGELOG_CMD
727 STRICT_CFLAGS
728 CWARNFLAGS
729 BASE_CFLAGS
730 am__fastdepCC_FALSE
731 am__fastdepCC_TRUE
732 CCDEPMODE
733 am__nodep
734 AMDEPBACKSLASH
735 AMDEP_FALSE
736 AMDEP_TRUE
737 am__include
738 DEPDIR
739 OBJEXT
740 EXEEXT
741 ac_ct_CC
742 CPPFLAGS
743 LDFLAGS
744 CFLAGS
745 CC
746 AM_BACKSLASH
747 AM_DEFAULT_VERBOSITY
748 AM_DEFAULT_V
749 AM_V
750 CSCOPE
751 ETAGS
752 CTAGS
753 am__untar
754 am__tar
755 AMTAR
756 am__leading_dot
757 SET_MAKE
758 AWK
759 mkdir_p
760 MKDIR_P
761 INSTALL_STRIP_PROGRAM
762 STRIP
763 install_sh
764 MAKEINFO
765 AUTOHEADER
766 AUTOMAKE
767 AUTOCONF
768 ACLOCAL
769 VERSION
770 PACKAGE
771 CYGPATH_W
772 am__isrc
773 INSTALL_DATA
774 INSTALL_SCRIPT
775 INSTALL_PROGRAM
776 target_alias
777 host_alias
778 build_alias
779 LIBS
780 ECHO_T
781 ECHO_N
782 ECHO_C
783 DEFS
784 mandir
785 localedir
786 libdir
787 psdir
788 pdfdir
789 dvidir
790 htmldir
791 infodir
792 docdir
793 oldincludedir
794 includedir
795 runstatedir
796 localstatedir
797 sharedstatedir
798 sysconfdir
799 datadir
800 datarootdir
801 libexecdir
802 sbindir
803 bindir
804 program_transform_name
805 prefix
806 exec_prefix
807 PACKAGE_URL
808 PACKAGE_BUGREPORT
809 PACKAGE_STRING
810 PACKAGE_VERSION
811 PACKAGE_TARNAME
812 PACKAGE_NAME
813 PATH_SEPARATOR
814 SHELL
815 am__quote'
816 ac_subst_files=''
817 ac_user_opts='
818 enable_option_checking
819 enable_silent_rules
820 enable_dependency_tracking
821 enable_selective_werror
822 enable_strict_compilation
823 enable_static
824 enable_shared
825 with_pic
826 enable_fast_install
827 with_aix_soname
828 with_gnu_ld
829 with_sysroot
830 enable_libtool_lock
831 with_xorg_module_dir
832 enable_xaa
833 '
834 ac_precious_vars='build_alias
835 host_alias
836 target_alias
837 CC
838 CFLAGS
839 LDFLAGS
840 LIBS
841 CPPFLAGS
842 PKG_CONFIG
843 PKG_CONFIG_PATH
844 PKG_CONFIG_LIBDIR
845 LT_SYS_LIBRARY_PATH
846 XORG_CFLAGS
847 XORG_LIBS
848 PCIACCESS_CFLAGS
849 PCIACCESS_LIBS'
850
851
852 # Initialize some variables set by options.
853 ac_init_help=
854 ac_init_version=false
855 ac_unrecognized_opts=
856 ac_unrecognized_sep=
857 # The variables have the same names as the options, with
858 # dashes changed to underlines.
859 cache_file=/dev/null
860 exec_prefix=NONE
861 no_create=
862 no_recursion=
863 prefix=NONE
864 program_prefix=NONE
865 program_suffix=NONE
866 program_transform_name=s,x,x,
867 silent=
868 site=
869 srcdir=
870 verbose=
871 x_includes=NONE
872 x_libraries=NONE
873
874 # Installation directory options.
875 # These are left unexpanded so users can "make install exec_prefix=/foo"
876 # and all the variables that are supposed to be based on exec_prefix
877 # by default will actually change.
878 # Use braces instead of parens because sh, perl, etc. also accept them.
879 # (The list follows the same order as the GNU Coding Standards.)
880 bindir='${exec_prefix}/bin'
881 sbindir='${exec_prefix}/sbin'
882 libexecdir='${exec_prefix}/libexec'
883 datarootdir='${prefix}/share'
884 datadir='${datarootdir}'
885 sysconfdir='${prefix}/etc'
886 sharedstatedir='${prefix}/com'
887 localstatedir='${prefix}/var'
888 runstatedir='${localstatedir}/run'
889 includedir='${prefix}/include'
890 oldincludedir='/usr/include'
891 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
892 infodir='${datarootdir}/info'
893 htmldir='${docdir}'
894 dvidir='${docdir}'
895 pdfdir='${docdir}'
896 psdir='${docdir}'
897 libdir='${exec_prefix}/lib'
898 localedir='${datarootdir}/locale'
899 mandir='${datarootdir}/man'
900
901 ac_prev=
902 ac_dashdash=
903 for ac_option
904 do
905 # If the previous option needs an argument, assign it.
906 if test -n "$ac_prev"; then
907 eval $ac_prev=\$ac_option
908 ac_prev=
909 continue
910 fi
911
912 case $ac_option in
913 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
914 *=) ac_optarg= ;;
915 *) ac_optarg=yes ;;
916 esac
917
918 case $ac_dashdash$ac_option in
919 --)
920 ac_dashdash=yes ;;
921
922 -bindir | --bindir | --bindi | --bind | --bin | --bi)
923 ac_prev=bindir ;;
924 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
925 bindir=$ac_optarg ;;
926
927 -build | --build | --buil | --bui | --bu)
928 ac_prev=build_alias ;;
929 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
930 build_alias=$ac_optarg ;;
931
932 -cache-file | --cache-file | --cache-fil | --cache-fi \
933 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
934 ac_prev=cache_file ;;
935 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
936 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
937 cache_file=$ac_optarg ;;
938
939 --config-cache | -C)
940 cache_file=config.cache ;;
941
942 -datadir | --datadir | --datadi | --datad)
943 ac_prev=datadir ;;
944 -datadir=* | --datadir=* | --datadi=* | --datad=*)
945 datadir=$ac_optarg ;;
946
947 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
948 | --dataroo | --dataro | --datar)
949 ac_prev=datarootdir ;;
950 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
951 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
952 datarootdir=$ac_optarg ;;
953
954 -disable-* | --disable-*)
955 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
956 # Reject names that are not valid shell variable names.
957 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
958 as_fn_error $? "invalid feature name: \`$ac_useropt'"
959 ac_useropt_orig=$ac_useropt
960 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
961 case $ac_user_opts in
962 *"
963 "enable_$ac_useropt"
964 "*) ;;
965 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
966 ac_unrecognized_sep=', ';;
967 esac
968 eval enable_$ac_useropt=no ;;
969
970 -docdir | --docdir | --docdi | --doc | --do)
971 ac_prev=docdir ;;
972 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
973 docdir=$ac_optarg ;;
974
975 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
976 ac_prev=dvidir ;;
977 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
978 dvidir=$ac_optarg ;;
979
980 -enable-* | --enable-*)
981 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
982 # Reject names that are not valid shell variable names.
983 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
984 as_fn_error $? "invalid feature name: \`$ac_useropt'"
985 ac_useropt_orig=$ac_useropt
986 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
987 case $ac_user_opts in
988 *"
989 "enable_$ac_useropt"
990 "*) ;;
991 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
992 ac_unrecognized_sep=', ';;
993 esac
994 eval enable_$ac_useropt=\$ac_optarg ;;
995
996 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
997 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
998 | --exec | --exe | --ex)
999 ac_prev=exec_prefix ;;
1000 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1001 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1002 | --exec=* | --exe=* | --ex=*)
1003 exec_prefix=$ac_optarg ;;
1004
1005 -gas | --gas | --ga | --g)
1006 # Obsolete; use --with-gas.
1007 with_gas=yes ;;
1008
1009 -help | --help | --hel | --he | -h)
1010 ac_init_help=long ;;
1011 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1012 ac_init_help=recursive ;;
1013 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1014 ac_init_help=short ;;
1015
1016 -host | --host | --hos | --ho)
1017 ac_prev=host_alias ;;
1018 -host=* | --host=* | --hos=* | --ho=*)
1019 host_alias=$ac_optarg ;;
1020
1021 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1022 ac_prev=htmldir ;;
1023 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1024 | --ht=*)
1025 htmldir=$ac_optarg ;;
1026
1027 -includedir | --includedir | --includedi | --included | --include \
1028 | --includ | --inclu | --incl | --inc)
1029 ac_prev=includedir ;;
1030 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1031 | --includ=* | --inclu=* | --incl=* | --inc=*)
1032 includedir=$ac_optarg ;;
1033
1034 -infodir | --infodir | --infodi | --infod | --info | --inf)
1035 ac_prev=infodir ;;
1036 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1037 infodir=$ac_optarg ;;
1038
1039 -libdir | --libdir | --libdi | --libd)
1040 ac_prev=libdir ;;
1041 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1042 libdir=$ac_optarg ;;
1043
1044 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1045 | --libexe | --libex | --libe)
1046 ac_prev=libexecdir ;;
1047 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1048 | --libexe=* | --libex=* | --libe=*)
1049 libexecdir=$ac_optarg ;;
1050
1051 -localedir | --localedir | --localedi | --localed | --locale)
1052 ac_prev=localedir ;;
1053 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1054 localedir=$ac_optarg ;;
1055
1056 -localstatedir | --localstatedir | --localstatedi | --localstated \
1057 | --localstate | --localstat | --localsta | --localst | --locals)
1058 ac_prev=localstatedir ;;
1059 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1060 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1061 localstatedir=$ac_optarg ;;
1062
1063 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1064 ac_prev=mandir ;;
1065 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1066 mandir=$ac_optarg ;;
1067
1068 -nfp | --nfp | --nf)
1069 # Obsolete; use --without-fp.
1070 with_fp=no ;;
1071
1072 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1073 | --no-cr | --no-c | -n)
1074 no_create=yes ;;
1075
1076 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1077 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1078 no_recursion=yes ;;
1079
1080 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1081 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1082 | --oldin | --oldi | --old | --ol | --o)
1083 ac_prev=oldincludedir ;;
1084 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1085 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1086 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1087 oldincludedir=$ac_optarg ;;
1088
1089 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1090 ac_prev=prefix ;;
1091 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1092 prefix=$ac_optarg ;;
1093
1094 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1095 | --program-pre | --program-pr | --program-p)
1096 ac_prev=program_prefix ;;
1097 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1098 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1099 program_prefix=$ac_optarg ;;
1100
1101 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1102 | --program-suf | --program-su | --program-s)
1103 ac_prev=program_suffix ;;
1104 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1105 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1106 program_suffix=$ac_optarg ;;
1107
1108 -program-transform-name | --program-transform-name \
1109 | --program-transform-nam | --program-transform-na \
1110 | --program-transform-n | --program-transform- \
1111 | --program-transform | --program-transfor \
1112 | --program-transfo | --program-transf \
1113 | --program-trans | --program-tran \
1114 | --progr-tra | --program-tr | --program-t)
1115 ac_prev=program_transform_name ;;
1116 -program-transform-name=* | --program-transform-name=* \
1117 | --program-transform-nam=* | --program-transform-na=* \
1118 | --program-transform-n=* | --program-transform-=* \
1119 | --program-transform=* | --program-transfor=* \
1120 | --program-transfo=* | --program-transf=* \
1121 | --program-trans=* | --program-tran=* \
1122 | --progr-tra=* | --program-tr=* | --program-t=*)
1123 program_transform_name=$ac_optarg ;;
1124
1125 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1126 ac_prev=pdfdir ;;
1127 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1128 pdfdir=$ac_optarg ;;
1129
1130 -psdir | --psdir | --psdi | --psd | --ps)
1131 ac_prev=psdir ;;
1132 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1133 psdir=$ac_optarg ;;
1134
1135 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1136 | -silent | --silent | --silen | --sile | --sil)
1137 silent=yes ;;
1138
1139 -runstatedir | --runstatedir | --runstatedi | --runstated \
1140 | --runstate | --runstat | --runsta | --runst | --runs \
1141 | --run | --ru | --r)
1142 ac_prev=runstatedir ;;
1143 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1144 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1145 | --run=* | --ru=* | --r=*)
1146 runstatedir=$ac_optarg ;;
1147
1148 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1149 ac_prev=sbindir ;;
1150 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1151 | --sbi=* | --sb=*)
1152 sbindir=$ac_optarg ;;
1153
1154 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1155 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1156 | --sharedst | --shareds | --shared | --share | --shar \
1157 | --sha | --sh)
1158 ac_prev=sharedstatedir ;;
1159 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1160 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1161 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1162 | --sha=* | --sh=*)
1163 sharedstatedir=$ac_optarg ;;
1164
1165 -site | --site | --sit)
1166 ac_prev=site ;;
1167 -site=* | --site=* | --sit=*)
1168 site=$ac_optarg ;;
1169
1170 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1171 ac_prev=srcdir ;;
1172 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1173 srcdir=$ac_optarg ;;
1174
1175 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1176 | --syscon | --sysco | --sysc | --sys | --sy)
1177 ac_prev=sysconfdir ;;
1178 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1179 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1180 sysconfdir=$ac_optarg ;;
1181
1182 -target | --target | --targe | --targ | --tar | --ta | --t)
1183 ac_prev=target_alias ;;
1184 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1185 target_alias=$ac_optarg ;;
1186
1187 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1188 verbose=yes ;;
1189
1190 -version | --version | --versio | --versi | --vers | -V)
1191 ac_init_version=: ;;
1192
1193 -with-* | --with-*)
1194 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1195 # Reject names that are not valid shell variable names.
1196 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1197 as_fn_error $? "invalid package name: \`$ac_useropt'"
1198 ac_useropt_orig=$ac_useropt
1199 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1200 case $ac_user_opts in
1201 *"
1202 "with_$ac_useropt"
1203 "*) ;;
1204 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1205 ac_unrecognized_sep=', ';;
1206 esac
1207 eval with_$ac_useropt=\$ac_optarg ;;
1208
1209 -without-* | --without-*)
1210 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1211 # Reject names that are not valid shell variable names.
1212 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1213 as_fn_error $? "invalid package name: \`$ac_useropt'"
1214 ac_useropt_orig=$ac_useropt
1215 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1216 case $ac_user_opts in
1217 *"
1218 "with_$ac_useropt"
1219 "*) ;;
1220 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1221 ac_unrecognized_sep=', ';;
1222 esac
1223 eval with_$ac_useropt=no ;;
1224
1225 --x)
1226 # Obsolete; use --with-x.
1227 with_x=yes ;;
1228
1229 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1230 | --x-incl | --x-inc | --x-in | --x-i)
1231 ac_prev=x_includes ;;
1232 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1233 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1234 x_includes=$ac_optarg ;;
1235
1236 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1237 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1238 ac_prev=x_libraries ;;
1239 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1240 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1241 x_libraries=$ac_optarg ;;
1242
1243 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1244 Try \`$0 --help' for more information"
1245 ;;
1246
1247 *=*)
1248 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1249 # Reject names that are not valid shell variable names.
1250 case $ac_envvar in #(
1251 '' | [0-9]* | *[!_$as_cr_alnum]* )
1252 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1253 esac
1254 eval $ac_envvar=\$ac_optarg
1255 export $ac_envvar ;;
1256
1257 *)
1258 # FIXME: should be removed in autoconf 3.0.
1259 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1260 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1261 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1262 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1263 ;;
1264
1265 esac
1266 done
1267
1268 if test -n "$ac_prev"; then
1269 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1270 as_fn_error $? "missing argument to $ac_option"
1271 fi
1272
1273 if test -n "$ac_unrecognized_opts"; then
1274 case $enable_option_checking in
1275 no) ;;
1276 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1277 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1278 esac
1279 fi
1280
1281 # Check all directory arguments for consistency.
1282 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1283 datadir sysconfdir sharedstatedir localstatedir includedir \
1284 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1285 libdir localedir mandir runstatedir
1286 do
1287 eval ac_val=\$$ac_var
1288 # Remove trailing slashes.
1289 case $ac_val in
1290 */ )
1291 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1292 eval $ac_var=\$ac_val;;
1293 esac
1294 # Be sure to have absolute directory names.
1295 case $ac_val in
1296 [\\/$]* | ?:[\\/]* ) continue;;
1297 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1298 esac
1299 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1300 done
1301
1302 # There might be people who depend on the old broken behavior: `$host'
1303 # used to hold the argument of --host etc.
1304 # FIXME: To remove some day.
1305 build=$build_alias
1306 host=$host_alias
1307 target=$target_alias
1308
1309 # FIXME: To remove some day.
1310 if test "x$host_alias" != x; then
1311 if test "x$build_alias" = x; then
1312 cross_compiling=maybe
1313 elif test "x$build_alias" != "x$host_alias"; then
1314 cross_compiling=yes
1315 fi
1316 fi
1317
1318 ac_tool_prefix=
1319 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1320
1321 test "$silent" = yes && exec 6>/dev/null
1322
1323
1324 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1325 ac_ls_di=`ls -di .` &&
1326 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1327 as_fn_error $? "working directory cannot be determined"
1328 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1329 as_fn_error $? "pwd does not report name of working directory"
1330
1331
1332 # Find the source files, if location was not specified.
1333 if test -z "$srcdir"; then
1334 ac_srcdir_defaulted=yes
1335 # Try the directory containing this script, then the parent directory.
1336 ac_confdir=`$as_dirname -- "$as_myself" ||
1337 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1338 X"$as_myself" : 'X\(//\)[^/]' \| \
1339 X"$as_myself" : 'X\(//\)$' \| \
1340 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1341 printf "%s\n" X"$as_myself" |
1342 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1343 s//\1/
1344 q
1345 }
1346 /^X\(\/\/\)[^/].*/{
1347 s//\1/
1348 q
1349 }
1350 /^X\(\/\/\)$/{
1351 s//\1/
1352 q
1353 }
1354 /^X\(\/\).*/{
1355 s//\1/
1356 q
1357 }
1358 s/.*/./; q'`
1359 srcdir=$ac_confdir
1360 if test ! -r "$srcdir/$ac_unique_file"; then
1361 srcdir=..
1362 fi
1363 else
1364 ac_srcdir_defaulted=no
1365 fi
1366 if test ! -r "$srcdir/$ac_unique_file"; then
1367 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1368 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1369 fi
1370 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1371 ac_abs_confdir=`(
1372 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1373 pwd)`
1374 # When building in place, set srcdir=.
1375 if test "$ac_abs_confdir" = "$ac_pwd"; then
1376 srcdir=.
1377 fi
1378 # Remove unnecessary trailing slashes from srcdir.
1379 # Double slashes in file names in object file debugging info
1380 # mess up M-x gdb in Emacs.
1381 case $srcdir in
1382 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1383 esac
1384 for ac_var in $ac_precious_vars; do
1385 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1386 eval ac_env_${ac_var}_value=\$${ac_var}
1387 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1388 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1389 done
1390
1391 #
1392 # Report the --help message.
1393 #
1394 if test "$ac_init_help" = "long"; then
1395 # Omit some internal or obsolete options to make the list less imposing.
1396 # This message is too long to be a string in the A/UX 3.1 sh.
1397 cat <<_ACEOF
1398 \`configure' configures xf86-video-neomagic 1.3.1 to adapt to many kinds of systems.
1399
1400 Usage: $0 [OPTION]... [VAR=VALUE]...
1401
1402 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1403 VAR=VALUE. See below for descriptions of some of the useful variables.
1404
1405 Defaults for the options are specified in brackets.
1406
1407 Configuration:
1408 -h, --help display this help and exit
1409 --help=short display options specific to this package
1410 --help=recursive display the short help of all the included packages
1411 -V, --version display version information and exit
1412 -q, --quiet, --silent do not print \`checking ...' messages
1413 --cache-file=FILE cache test results in FILE [disabled]
1414 -C, --config-cache alias for \`--cache-file=config.cache'
1415 -n, --no-create do not create output files
1416 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1417
1418 Installation directories:
1419 --prefix=PREFIX install architecture-independent files in PREFIX
1420 [$ac_default_prefix]
1421 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1422 [PREFIX]
1423
1424 By default, \`make install' will install all the files in
1425 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1426 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1427 for instance \`--prefix=\$HOME'.
1428
1429 For better control, use the options below.
1430
1431 Fine tuning of the installation directories:
1432 --bindir=DIR user executables [EPREFIX/bin]
1433 --sbindir=DIR system admin executables [EPREFIX/sbin]
1434 --libexecdir=DIR program executables [EPREFIX/libexec]
1435 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1436 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1437 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1438 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1439 --libdir=DIR object code libraries [EPREFIX/lib]
1440 --includedir=DIR C header files [PREFIX/include]
1441 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1442 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1443 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1444 --infodir=DIR info documentation [DATAROOTDIR/info]
1445 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1446 --mandir=DIR man documentation [DATAROOTDIR/man]
1447 --docdir=DIR documentation root
1448 [DATAROOTDIR/doc/xf86-video-neomagic]
1449 --htmldir=DIR html documentation [DOCDIR]
1450 --dvidir=DIR dvi documentation [DOCDIR]
1451 --pdfdir=DIR pdf documentation [DOCDIR]
1452 --psdir=DIR ps documentation [DOCDIR]
1453 _ACEOF
1454
1455 cat <<\_ACEOF
1456
1457 Program names:
1458 --program-prefix=PREFIX prepend PREFIX to installed program names
1459 --program-suffix=SUFFIX append SUFFIX to installed program names
1460 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1461
1462 System types:
1463 --build=BUILD configure for building on BUILD [guessed]
1464 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1465 _ACEOF
1466 fi
1467
1468 if test -n "$ac_init_help"; then
1469 case $ac_init_help in
1470 short | recursive ) echo "Configuration of xf86-video-neomagic 1.3.1:";;
1471 esac
1472 cat <<\_ACEOF
1473
1474 Optional Features:
1475 --disable-option-checking ignore unrecognized --enable/--with options
1476 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1477 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1478 --enable-silent-rules less verbose build output (undo: "make V=1")
1479 --disable-silent-rules verbose build output (undo: "make V=0")
1480 --enable-dependency-tracking
1481 do not reject slow dependency extractors
1482 --disable-dependency-tracking
1483 speeds up one-time build
1484 --disable-selective-werror
1485 Turn off selective compiler errors. (default:
1486 enabled)
1487 --enable-strict-compilation
1488 Enable all warnings from compiler and make them
1489 errors (default: disabled)
1490 --enable-static[=PKGS] build static libraries [default=no]
1491 --enable-shared[=PKGS] build shared libraries [default=yes]
1492 --enable-fast-install[=PKGS]
1493 optimize for fast installation [default=yes]
1494 --disable-libtool-lock avoid locking (might break parallel builds)
1495 --enable-xaa Enable legacy X Acceleration Architecture (XAA)
1496 [default=auto]
1497
1498 Optional Packages:
1499 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1500 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1501 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1502 both]
1503 --with-aix-soname=aix|svr4|both
1504 shared library versioning (aka "SONAME") variant to
1505 provide on AIX, [default=aix].
1506 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1507 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1508 compiler's sysroot if not specified).
1509 --with-xorg-module-dir=DIR
1510 Default xorg module directory
1511 [[default=$libdir/xorg/modules]]
1512
1513 Some influential environment variables:
1514 CC C compiler command
1515 CFLAGS C compiler flags
1516 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1517 nonstandard directory <lib dir>
1518 LIBS libraries to pass to the linker, e.g. -l<library>
1519 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1520 you have headers in a nonstandard directory <include dir>
1521 PKG_CONFIG path to pkg-config utility
1522 PKG_CONFIG_PATH
1523 directories to add to pkg-config's search path
1524 PKG_CONFIG_LIBDIR
1525 path overriding pkg-config's built-in search path
1526 LT_SYS_LIBRARY_PATH
1527 User-defined run-time library search path.
1528 XORG_CFLAGS C compiler flags for XORG, overriding pkg-config
1529 XORG_LIBS linker flags for XORG, overriding pkg-config
1530 PCIACCESS_CFLAGS
1531 C compiler flags for PCIACCESS, overriding pkg-config
1532 PCIACCESS_LIBS
1533 linker flags for PCIACCESS, overriding pkg-config
1534
1535 Use these variables to override the choices made by `configure' or to help
1536 it to find libraries and programs with nonstandard names/locations.
1537
1538 Report bugs to <https://gitlab.freedesktop.org/xorg/driver/xf86-video-neomagic/-/issues>.
1539 _ACEOF
1540 ac_status=$?
1541 fi
1542
1543 if test "$ac_init_help" = "recursive"; then
1544 # If there are subdirs, report their specific --help.
1545 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1546 test -d "$ac_dir" ||
1547 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1548 continue
1549 ac_builddir=.
1550
1551 case "$ac_dir" in
1552 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1553 *)
1554 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1555 # A ".." for each directory in $ac_dir_suffix.
1556 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1557 case $ac_top_builddir_sub in
1558 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1559 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1560 esac ;;
1561 esac
1562 ac_abs_top_builddir=$ac_pwd
1563 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1564 # for backward compatibility:
1565 ac_top_builddir=$ac_top_build_prefix
1566
1567 case $srcdir in
1568 .) # We are building in place.
1569 ac_srcdir=.
1570 ac_top_srcdir=$ac_top_builddir_sub
1571 ac_abs_top_srcdir=$ac_pwd ;;
1572 [\\/]* | ?:[\\/]* ) # Absolute name.
1573 ac_srcdir=$srcdir$ac_dir_suffix;
1574 ac_top_srcdir=$srcdir
1575 ac_abs_top_srcdir=$srcdir ;;
1576 *) # Relative name.
1577 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1578 ac_top_srcdir=$ac_top_build_prefix$srcdir
1579 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1580 esac
1581 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1582
1583 cd "$ac_dir" || { ac_status=$?; continue; }
1584 # Check for configure.gnu first; this name is used for a wrapper for
1585 # Metaconfig's "Configure" on case-insensitive file systems.
1586 if test -f "$ac_srcdir/configure.gnu"; then
1587 echo &&
1588 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1589 elif test -f "$ac_srcdir/configure"; then
1590 echo &&
1591 $SHELL "$ac_srcdir/configure" --help=recursive
1592 else
1593 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1594 fi || ac_status=$?
1595 cd "$ac_pwd" || { ac_status=$?; break; }
1596 done
1597 fi
1598
1599 test -n "$ac_init_help" && exit $ac_status
1600 if $ac_init_version; then
1601 cat <<\_ACEOF
1602 xf86-video-neomagic configure 1.3.1
1603 generated by GNU Autoconf 2.71
1604
1605 Copyright (C) 2021 Free Software Foundation, Inc.
1606 This configure script is free software; the Free Software Foundation
1607 gives unlimited permission to copy, distribute and modify it.
1608 _ACEOF
1609 exit
1610 fi
1611
1612 ## ------------------------ ##
1613 ## Autoconf initialization. ##
1614 ## ------------------------ ##
1615
1616 # ac_fn_c_try_compile LINENO
1617 # --------------------------
1618 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1619 ac_fn_c_try_compile ()
1620 {
1621 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1622 rm -f conftest.$ac_objext conftest.beam
1623 if { { ac_try="$ac_compile"
1624 case "(($ac_try" in
1625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1626 *) ac_try_echo=$ac_try;;
1627 esac
1628 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1629 printf "%s\n" "$ac_try_echo"; } >&5
1630 (eval "$ac_compile") 2>conftest.err
1631 ac_status=$?
1632 if test -s conftest.err; then
1633 grep -v '^ *+' conftest.err >conftest.er1
1634 cat conftest.er1 >&5
1635 mv -f conftest.er1 conftest.err
1636 fi
1637 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1638 test $ac_status = 0; } && {
1639 test -z "$ac_c_werror_flag" ||
1640 test ! -s conftest.err
1641 } && test -s conftest.$ac_objext
1642 then :
1643 ac_retval=0
1644 else $as_nop
1645 printf "%s\n" "$as_me: failed program was:" >&5
1646 sed 's/^/| /' conftest.$ac_ext >&5
1647
1648 ac_retval=1
1649 fi
1650 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1651 as_fn_set_status $ac_retval
1652
1653 } # ac_fn_c_try_compile
1654
1655 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
1656 # ------------------------------------------------------------------
1657 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1658 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
1659 ac_fn_check_decl ()
1660 {
1661 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1662 as_decl_name=`echo $2|sed 's/ *(.*//'`
1663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1664 printf %s "checking whether $as_decl_name is declared... " >&6; }
1665 if eval test \${$3+y}
1666 then :
1667 printf %s "(cached) " >&6
1668 else $as_nop
1669 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1670 eval ac_save_FLAGS=\$$6
1671 as_fn_append $6 " $5"
1672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1673 /* end confdefs.h. */
1674 $4
1675 int
1676 main (void)
1677 {
1678 #ifndef $as_decl_name
1679 #ifdef __cplusplus
1680 (void) $as_decl_use;
1681 #else
1682 (void) $as_decl_name;
1683 #endif
1684 #endif
1685
1686 ;
1687 return 0;
1688 }
1689 _ACEOF
1690 if ac_fn_c_try_compile "$LINENO"
1691 then :
1692 eval "$3=yes"
1693 else $as_nop
1694 eval "$3=no"
1695 fi
1696 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1697 eval $6=\$ac_save_FLAGS
1698
1699 fi
1700 eval ac_res=\$$3
1701 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1702 printf "%s\n" "$ac_res" >&6; }
1703 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1704
1705 } # ac_fn_check_decl
1706
1707 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1708 # -------------------------------------------------------
1709 # Tests whether HEADER exists and can be compiled using the include files in
1710 # INCLUDES, setting the cache variable VAR accordingly.
1711 ac_fn_c_check_header_compile ()
1712 {
1713 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1715 printf %s "checking for $2... " >&6; }
1716 if eval test \${$3+y}
1717 then :
1718 printf %s "(cached) " >&6
1719 else $as_nop
1720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1721 /* end confdefs.h. */
1722 $4
1723 #include <$2>
1724 _ACEOF
1725 if ac_fn_c_try_compile "$LINENO"
1726 then :
1727 eval "$3=yes"
1728 else $as_nop
1729 eval "$3=no"
1730 fi
1731 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1732 fi
1733 eval ac_res=\$$3
1734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1735 printf "%s\n" "$ac_res" >&6; }
1736 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1737
1738 } # ac_fn_c_check_header_compile
1739
1740 # ac_fn_c_try_link LINENO
1741 # -----------------------
1742 # Try to link conftest.$ac_ext, and return whether this succeeded.
1743 ac_fn_c_try_link ()
1744 {
1745 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1746 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1747 if { { ac_try="$ac_link"
1748 case "(($ac_try" in
1749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1750 *) ac_try_echo=$ac_try;;
1751 esac
1752 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1753 printf "%s\n" "$ac_try_echo"; } >&5
1754 (eval "$ac_link") 2>conftest.err
1755 ac_status=$?
1756 if test -s conftest.err; then
1757 grep -v '^ *+' conftest.err >conftest.er1
1758 cat conftest.er1 >&5
1759 mv -f conftest.er1 conftest.err
1760 fi
1761 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1762 test $ac_status = 0; } && {
1763 test -z "$ac_c_werror_flag" ||
1764 test ! -s conftest.err
1765 } && test -s conftest$ac_exeext && {
1766 test "$cross_compiling" = yes ||
1767 test -x conftest$ac_exeext
1768 }
1769 then :
1770 ac_retval=0
1771 else $as_nop
1772 printf "%s\n" "$as_me: failed program was:" >&5
1773 sed 's/^/| /' conftest.$ac_ext >&5
1774
1775 ac_retval=1
1776 fi
1777 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1778 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1779 # interfere with the next link command; also delete a directory that is
1780 # left behind by Apple's compiler. We do this before executing the actions.
1781 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1782 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1783 as_fn_set_status $ac_retval
1784
1785 } # ac_fn_c_try_link
1786
1787 # ac_fn_c_check_func LINENO FUNC VAR
1788 # ----------------------------------
1789 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1790 ac_fn_c_check_func ()
1791 {
1792 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1794 printf %s "checking for $2... " >&6; }
1795 if eval test \${$3+y}
1796 then :
1797 printf %s "(cached) " >&6
1798 else $as_nop
1799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1800 /* end confdefs.h. */
1801 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1802 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1803 #define $2 innocuous_$2
1804
1805 /* System header to define __stub macros and hopefully few prototypes,
1806 which can conflict with char $2 (); below. */
1807
1808 #include <limits.h>
1809 #undef $2
1810
1811 /* Override any GCC internal prototype to avoid an error.
1812 Use char because int might match the return type of a GCC
1813 builtin and then its argument prototype would still apply. */
1814 #ifdef __cplusplus
1815 extern "C"
1816 #endif
1817 char $2 ();
1818 /* The GNU C library defines this for functions which it implements
1819 to always fail with ENOSYS. Some functions are actually named
1820 something starting with __ and the normal name is an alias. */
1821 #if defined __stub_$2 || defined __stub___$2
1822 choke me
1823 #endif
1824
1825 int
1826 main (void)
1827 {
1828 return $2 ();
1829 ;
1830 return 0;
1831 }
1832 _ACEOF
1833 if ac_fn_c_try_link "$LINENO"
1834 then :
1835 eval "$3=yes"
1836 else $as_nop
1837 eval "$3=no"
1838 fi
1839 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1840 conftest$ac_exeext conftest.$ac_ext
1841 fi
1842 eval ac_res=\$$3
1843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1844 printf "%s\n" "$ac_res" >&6; }
1845 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1846
1847 } # ac_fn_c_check_func
1848 ac_configure_args_raw=
1849 for ac_arg
1850 do
1851 case $ac_arg in
1852 *\'*)
1853 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1854 esac
1855 as_fn_append ac_configure_args_raw " '$ac_arg'"
1856 done
1857
1858 case $ac_configure_args_raw in
1859 *$as_nl*)
1860 ac_safe_unquote= ;;
1861 *)
1862 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
1863 ac_unsafe_a="$ac_unsafe_z#~"
1864 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1865 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1866 esac
1867
1868 cat >config.log <<_ACEOF
1869 This file contains any messages produced by compilers while
1870 running configure, to aid debugging if configure makes a mistake.
1871
1872 It was created by xf86-video-neomagic $as_me 1.3.1, which was
1873 generated by GNU Autoconf 2.71. Invocation command line was
1874
1875 $ $0$ac_configure_args_raw
1876
1877 _ACEOF
1878 exec 5>>config.log
1879 {
1880 cat <<_ASUNAME
1881 ## --------- ##
1882 ## Platform. ##
1883 ## --------- ##
1884
1885 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1886 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1887 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1888 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1889 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1890
1891 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1892 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1893
1894 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1895 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1896 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1897 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1898 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1899 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1900 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1901
1902 _ASUNAME
1903
1904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1905 for as_dir in $PATH
1906 do
1907 IFS=$as_save_IFS
1908 case $as_dir in #(((
1909 '') as_dir=./ ;;
1910 */) ;;
1911 *) as_dir=$as_dir/ ;;
1912 esac
1913 printf "%s\n" "PATH: $as_dir"
1914 done
1915 IFS=$as_save_IFS
1916
1917 } >&5
1918
1919 cat >&5 <<_ACEOF
1920
1921
1922 ## ----------- ##
1923 ## Core tests. ##
1924 ## ----------- ##
1925
1926 _ACEOF
1927
1928
1929 # Keep a trace of the command line.
1930 # Strip out --no-create and --no-recursion so they do not pile up.
1931 # Strip out --silent because we don't want to record it for future runs.
1932 # Also quote any args containing shell meta-characters.
1933 # Make two passes to allow for proper duplicate-argument suppression.
1934 ac_configure_args=
1935 ac_configure_args0=
1936 ac_configure_args1=
1937 ac_must_keep_next=false
1938 for ac_pass in 1 2
1939 do
1940 for ac_arg
1941 do
1942 case $ac_arg in
1943 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1944 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1945 | -silent | --silent | --silen | --sile | --sil)
1946 continue ;;
1947 *\'*)
1948 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1949 esac
1950 case $ac_pass in
1951 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1952 2)
1953 as_fn_append ac_configure_args1 " '$ac_arg'"
1954 if test $ac_must_keep_next = true; then
1955 ac_must_keep_next=false # Got value, back to normal.
1956 else
1957 case $ac_arg in
1958 *=* | --config-cache | -C | -disable-* | --disable-* \
1959 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1960 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1961 | -with-* | --with-* | -without-* | --without-* | --x)
1962 case "$ac_configure_args0 " in
1963 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1964 esac
1965 ;;
1966 -* ) ac_must_keep_next=true ;;
1967 esac
1968 fi
1969 as_fn_append ac_configure_args " '$ac_arg'"
1970 ;;
1971 esac
1972 done
1973 done
1974 { ac_configure_args0=; unset ac_configure_args0;}
1975 { ac_configure_args1=; unset ac_configure_args1;}
1976
1977 # When interrupted or exit'd, cleanup temporary files, and complete
1978 # config.log. We remove comments because anyway the quotes in there
1979 # would cause problems or look ugly.
1980 # WARNING: Use '\'' to represent an apostrophe within the trap.
1981 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1982 trap 'exit_status=$?
1983 # Sanitize IFS.
1984 IFS=" "" $as_nl"
1985 # Save into config.log some information that might help in debugging.
1986 {
1987 echo
1988
1989 printf "%s\n" "## ---------------- ##
1990 ## Cache variables. ##
1991 ## ---------------- ##"
1992 echo
1993 # The following way of writing the cache mishandles newlines in values,
1994 (
1995 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1996 eval ac_val=\$$ac_var
1997 case $ac_val in #(
1998 *${as_nl}*)
1999 case $ac_var in #(
2000 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2001 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2002 esac
2003 case $ac_var in #(
2004 _ | IFS | as_nl) ;; #(
2005 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2006 *) { eval $ac_var=; unset $ac_var;} ;;
2007 esac ;;
2008 esac
2009 done
2010 (set) 2>&1 |
2011 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2012 *${as_nl}ac_space=\ *)
2013 sed -n \
2014 "s/'\''/'\''\\\\'\'''\''/g;
2015 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2016 ;; #(
2017 *)
2018 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2019 ;;
2020 esac |
2021 sort
2022 )
2023 echo
2024
2025 printf "%s\n" "## ----------------- ##
2026 ## Output variables. ##
2027 ## ----------------- ##"
2028 echo
2029 for ac_var in $ac_subst_vars
2030 do
2031 eval ac_val=\$$ac_var
2032 case $ac_val in
2033 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2034 esac
2035 printf "%s\n" "$ac_var='\''$ac_val'\''"
2036 done | sort
2037 echo
2038
2039 if test -n "$ac_subst_files"; then
2040 printf "%s\n" "## ------------------- ##
2041 ## File substitutions. ##
2042 ## ------------------- ##"
2043 echo
2044 for ac_var in $ac_subst_files
2045 do
2046 eval ac_val=\$$ac_var
2047 case $ac_val in
2048 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2049 esac
2050 printf "%s\n" "$ac_var='\''$ac_val'\''"
2051 done | sort
2052 echo
2053 fi
2054
2055 if test -s confdefs.h; then
2056 printf "%s\n" "## ----------- ##
2057 ## confdefs.h. ##
2058 ## ----------- ##"
2059 echo
2060 cat confdefs.h
2061 echo
2062 fi
2063 test "$ac_signal" != 0 &&
2064 printf "%s\n" "$as_me: caught signal $ac_signal"
2065 printf "%s\n" "$as_me: exit $exit_status"
2066 } >&5
2067 rm -f core *.core core.conftest.* &&
2068 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2069 exit $exit_status
2070 ' 0
2071 for ac_signal in 1 2 13 15; do
2072 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2073 done
2074 ac_signal=0
2075
2076 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2077 rm -f -r conftest* confdefs.h
2078
2079 printf "%s\n" "/* confdefs.h */" > confdefs.h
2080
2081 # Predefined preprocessor variables.
2082
2083 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2084
2085 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2086
2087 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2088
2089 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2090
2091 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2092
2093 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2094
2095
2096 # Let the site file select an alternate cache file if it wants to.
2097 # Prefer an explicitly selected file to automatically selected ones.
2098 if test -n "$CONFIG_SITE"; then
2099 ac_site_files="$CONFIG_SITE"
2100 elif test "x$prefix" != xNONE; then
2101 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2102 else
2103 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2104 fi
2105
2106 for ac_site_file in $ac_site_files
2107 do
2108 case $ac_site_file in #(
2109 */*) :
2110 ;; #(
2111 *) :
2112 ac_site_file=./$ac_site_file ;;
2113 esac
2114 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2116 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2117 sed 's/^/| /' "$ac_site_file" >&5
2118 . "$ac_site_file" \
2119 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2120 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2121 as_fn_error $? "failed to load site script $ac_site_file
2122 See \`config.log' for more details" "$LINENO" 5; }
2123 fi
2124 done
2125
2126 if test -r "$cache_file"; then
2127 # Some versions of bash will fail to source /dev/null (special files
2128 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2129 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2130 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2131 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2132 case $cache_file in
2133 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2134 *) . "./$cache_file";;
2135 esac
2136 fi
2137 else
2138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2139 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2140 >$cache_file
2141 fi
2142
2143 # Test code for whether the C compiler supports C89 (global declarations)
2144 ac_c_conftest_c89_globals='
2145 /* Does the compiler advertise C89 conformance?
2146 Do not test the value of __STDC__, because some compilers set it to 0
2147 while being otherwise adequately conformant. */
2148 #if !defined __STDC__
2149 # error "Compiler does not advertise C89 conformance"
2150 #endif
2151
2152 #include <stddef.h>
2153 #include <stdarg.h>
2154 struct stat;
2155 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2156 struct buf { int x; };
2157 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2158 static char *e (p, i)
2159 char **p;
2160 int i;
2161 {
2162 return p[i];
2163 }
2164 static char *f (char * (*g) (char **, int), char **p, ...)
2165 {
2166 char *s;
2167 va_list v;
2168 va_start (v,p);
2169 s = g (p, va_arg (v,int));
2170 va_end (v);
2171 return s;
2172 }
2173
2174 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2175 function prototypes and stuff, but not \xHH hex character constants.
2176 These do not provoke an error unfortunately, instead are silently treated
2177 as an "x". The following induces an error, until -std is added to get
2178 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2179 array size at least. It is necessary to write \x00 == 0 to get something
2180 that is true only with -std. */
2181 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2182
2183 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2184 inside strings and character constants. */
2185 #define FOO(x) '\''x'\''
2186 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2187
2188 int test (int i, double x);
2189 struct s1 {int (*f) (int a);};
2190 struct s2 {int (*f) (double a);};
2191 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2192 int, int);'
2193
2194 # Test code for whether the C compiler supports C89 (body of main).
2195 ac_c_conftest_c89_main='
2196 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2197 '
2198
2199 # Test code for whether the C compiler supports C99 (global declarations)
2200 ac_c_conftest_c99_globals='
2201 // Does the compiler advertise C99 conformance?
2202 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2203 # error "Compiler does not advertise C99 conformance"
2204 #endif
2205
2206 #include <stdbool.h>
2207 extern int puts (const char *);
2208 extern int printf (const char *, ...);
2209 extern int dprintf (int, const char *, ...);
2210 extern void *malloc (size_t);
2211
2212 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2213 // dprintf is used instead of fprintf to avoid needing to declare
2214 // FILE and stderr.
2215 #define debug(...) dprintf (2, __VA_ARGS__)
2216 #define showlist(...) puts (#__VA_ARGS__)
2217 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2218 static void
2219 test_varargs_macros (void)
2220 {
2221 int x = 1234;
2222 int y = 5678;
2223 debug ("Flag");
2224 debug ("X = %d\n", x);
2225 showlist (The first, second, and third items.);
2226 report (x>y, "x is %d but y is %d", x, y);
2227 }
2228
2229 // Check long long types.
2230 #define BIG64 18446744073709551615ull
2231 #define BIG32 4294967295ul
2232 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2233 #if !BIG_OK
2234 #error "your preprocessor is broken"
2235 #endif
2236 #if BIG_OK
2237 #else
2238 #error "your preprocessor is broken"
2239 #endif
2240 static long long int bignum = -9223372036854775807LL;
2241 static unsigned long long int ubignum = BIG64;
2242
2243 struct incomplete_array
2244 {
2245 int datasize;
2246 double data[];
2247 };
2248
2249 struct named_init {
2250 int number;
2251 const wchar_t *name;
2252 double average;
2253 };
2254
2255 typedef const char *ccp;
2256
2257 static inline int
2258 test_restrict (ccp restrict text)
2259 {
2260 // See if C++-style comments work.
2261 // Iterate through items via the restricted pointer.
2262 // Also check for declarations in for loops.
2263 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2264 continue;
2265 return 0;
2266 }
2267
2268 // Check varargs and va_copy.
2269 static bool
2270 test_varargs (const char *format, ...)
2271 {
2272 va_list args;
2273 va_start (args, format);
2274 va_list args_copy;
2275 va_copy (args_copy, args);
2276
2277 const char *str = "";
2278 int number = 0;
2279 float fnumber = 0;
2280
2281 while (*format)
2282 {
2283 switch (*format++)
2284 {
2285 case '\''s'\'': // string
2286 str = va_arg (args_copy, const char *);
2287 break;
2288 case '\''d'\'': // int
2289 number = va_arg (args_copy, int);
2290 break;
2291 case '\''f'\'': // float
2292 fnumber = va_arg (args_copy, double);
2293 break;
2294 default:
2295 break;
2296 }
2297 }
2298 va_end (args_copy);
2299 va_end (args);
2300
2301 return *str && number && fnumber;
2302 }
2303 '
2304
2305 # Test code for whether the C compiler supports C99 (body of main).
2306 ac_c_conftest_c99_main='
2307 // Check bool.
2308 _Bool success = false;
2309 success |= (argc != 0);
2310
2311 // Check restrict.
2312 if (test_restrict ("String literal") == 0)
2313 success = true;
2314 char *restrict newvar = "Another string";
2315
2316 // Check varargs.
2317 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2318 test_varargs_macros ();
2319
2320 // Check flexible array members.
2321 struct incomplete_array *ia =
2322 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2323 ia->datasize = 10;
2324 for (int i = 0; i < ia->datasize; ++i)
2325 ia->data[i] = i * 1.234;
2326
2327 // Check named initializers.
2328 struct named_init ni = {
2329 .number = 34,
2330 .name = L"Test wide string",
2331 .average = 543.34343,
2332 };
2333
2334 ni.number = 58;
2335
2336 int dynamic_array[ni.number];
2337 dynamic_array[0] = argv[0][0];
2338 dynamic_array[ni.number - 1] = 543;
2339
2340 // work around unused variable warnings
2341 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2342 || dynamic_array[ni.number - 1] != 543);
2343 '
2344
2345 # Test code for whether the C compiler supports C11 (global declarations)
2346 ac_c_conftest_c11_globals='
2347 // Does the compiler advertise C11 conformance?
2348 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2349 # error "Compiler does not advertise C11 conformance"
2350 #endif
2351
2352 // Check _Alignas.
2353 char _Alignas (double) aligned_as_double;
2354 char _Alignas (0) no_special_alignment;
2355 extern char aligned_as_int;
2356 char _Alignas (0) _Alignas (int) aligned_as_int;
2357
2358 // Check _Alignof.
2359 enum
2360 {
2361 int_alignment = _Alignof (int),
2362 int_array_alignment = _Alignof (int[100]),
2363 char_alignment = _Alignof (char)
2364 };
2365 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2366
2367 // Check _Noreturn.
2368 int _Noreturn does_not_return (void) { for (;;) continue; }
2369
2370 // Check _Static_assert.
2371 struct test_static_assert
2372 {
2373 int x;
2374 _Static_assert (sizeof (int) <= sizeof (long int),
2375 "_Static_assert does not work in struct");
2376 long int y;
2377 };
2378
2379 // Check UTF-8 literals.
2380 #define u8 syntax error!
2381 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2382
2383 // Check duplicate typedefs.
2384 typedef long *long_ptr;
2385 typedef long int *long_ptr;
2386 typedef long_ptr long_ptr;
2387
2388 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2389 struct anonymous
2390 {
2391 union {
2392 struct { int i; int j; };
2393 struct { int k; long int l; } w;
2394 };
2395 int m;
2396 } v1;
2397 '
2398
2399 # Test code for whether the C compiler supports C11 (body of main).
2400 ac_c_conftest_c11_main='
2401 _Static_assert ((offsetof (struct anonymous, i)
2402 == offsetof (struct anonymous, w.k)),
2403 "Anonymous union alignment botch");
2404 v1.i = 2;
2405 v1.w.k = 5;
2406 ok |= v1.i != 5;
2407 '
2408
2409 # Test code for whether the C compiler supports C11 (complete).
2410 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2411 ${ac_c_conftest_c99_globals}
2412 ${ac_c_conftest_c11_globals}
2413
2414 int
2415 main (int argc, char **argv)
2416 {
2417 int ok = 0;
2418 ${ac_c_conftest_c89_main}
2419 ${ac_c_conftest_c99_main}
2420 ${ac_c_conftest_c11_main}
2421 return ok;
2422 }
2423 "
2424
2425 # Test code for whether the C compiler supports C99 (complete).
2426 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2427 ${ac_c_conftest_c99_globals}
2428
2429 int
2430 main (int argc, char **argv)
2431 {
2432 int ok = 0;
2433 ${ac_c_conftest_c89_main}
2434 ${ac_c_conftest_c99_main}
2435 return ok;
2436 }
2437 "
2438
2439 # Test code for whether the C compiler supports C89 (complete).
2440 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2441
2442 int
2443 main (int argc, char **argv)
2444 {
2445 int ok = 0;
2446 ${ac_c_conftest_c89_main}
2447 return ok;
2448 }
2449 "
2450
2451 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2452 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2453 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2454 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2455 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2456 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2457 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2458 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2459 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2460
2461 # Auxiliary files required by this configure script.
2462 ac_aux_files="ltmain.sh config.guess config.sub compile missing install-sh"
2463
2464 # Locations in which to look for auxiliary files.
2465 ac_aux_dir_candidates="${srcdir}/."
2466
2467 # Search for a directory containing all of the required auxiliary files,
2468 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2469 # If we don't find one directory that contains all the files we need,
2470 # we report the set of missing files from the *first* directory in
2471 # $ac_aux_dir_candidates and give up.
2472 ac_missing_aux_files=""
2473 ac_first_candidate=:
2474 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2476 as_found=false
2477 for as_dir in $ac_aux_dir_candidates
2478 do
2479 IFS=$as_save_IFS
2480 case $as_dir in #(((
2481 '') as_dir=./ ;;
2482 */) ;;
2483 *) as_dir=$as_dir/ ;;
2484 esac
2485 as_found=:
2486
2487 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2488 ac_aux_dir_found=yes
2489 ac_install_sh=
2490 for ac_aux in $ac_aux_files
2491 do
2492 # As a special case, if "install-sh" is required, that requirement
2493 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2494 # and $ac_install_sh is set appropriately for whichever one is found.
2495 if test x"$ac_aux" = x"install-sh"
2496 then
2497 if test -f "${as_dir}install-sh"; then
2498 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2499 ac_install_sh="${as_dir}install-sh -c"
2500 elif test -f "${as_dir}install.sh"; then
2501 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2502 ac_install_sh="${as_dir}install.sh -c"
2503 elif test -f "${as_dir}shtool"; then
2504 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2505 ac_install_sh="${as_dir}shtool install -c"
2506 else
2507 ac_aux_dir_found=no
2508 if $ac_first_candidate; then
2509 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2510 else
2511 break
2512 fi
2513 fi
2514 else
2515 if test -f "${as_dir}${ac_aux}"; then
2516 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2517 else
2518 ac_aux_dir_found=no
2519 if $ac_first_candidate; then
2520 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2521 else
2522 break
2523 fi
2524 fi
2525 fi
2526 done
2527 if test "$ac_aux_dir_found" = yes; then
2528 ac_aux_dir="$as_dir"
2529 break
2530 fi
2531 ac_first_candidate=false
2532
2533 as_found=false
2534 done
2535 IFS=$as_save_IFS
2536 if $as_found
2537 then :
2538
2539 else $as_nop
2540 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2541 fi
2542
2543
2544 # These three variables are undocumented and unsupported,
2545 # and are intended to be withdrawn in a future Autoconf release.
2546 # They can cause serious problems if a builder's source tree is in a directory
2547 # whose full name contains unusual characters.
2548 if test -f "${ac_aux_dir}config.guess"; then
2549 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2550 fi
2551 if test -f "${ac_aux_dir}config.sub"; then
2552 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2553 fi
2554 if test -f "$ac_aux_dir/configure"; then
2555 ac_configure="$SHELL ${ac_aux_dir}configure"
2556 fi
2557
2558 # Check that the precious variables saved in the cache have kept the same
2559 # value.
2560 ac_cache_corrupted=false
2561 for ac_var in $ac_precious_vars; do
2562 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2563 eval ac_new_set=\$ac_env_${ac_var}_set
2564 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2565 eval ac_new_val=\$ac_env_${ac_var}_value
2566 case $ac_old_set,$ac_new_set in
2567 set,)
2568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2569 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2570 ac_cache_corrupted=: ;;
2571 ,set)
2572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2573 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2574 ac_cache_corrupted=: ;;
2575 ,);;
2576 *)
2577 if test "x$ac_old_val" != "x$ac_new_val"; then
2578 # differences in whitespace do not lead to failure.
2579 ac_old_val_w=`echo x $ac_old_val`
2580 ac_new_val_w=`echo x $ac_new_val`
2581 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2583 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2584 ac_cache_corrupted=:
2585 else
2586 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2587 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2588 eval $ac_var=\$ac_old_val
2589 fi
2590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2591 printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
2592 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2593 printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
2594 fi;;
2595 esac
2596 # Pass precious variables to config.status.
2597 if test "$ac_new_set" = set; then
2598 case $ac_new_val in
2599 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2600 *) ac_arg=$ac_var=$ac_new_val ;;
2601 esac
2602 case " $ac_configure_args " in
2603 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2604 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2605 esac
2606 fi
2607 done
2608 if $ac_cache_corrupted; then
2609 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2610 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2612 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2613 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2614 and start over" "$LINENO" 5
2615 fi
2616 ## -------------------- ##
2617 ## Main body of script. ##
2618 ## -------------------- ##
2619
2620 ac_ext=c
2621 ac_cpp='$CPP $CPPFLAGS'
2622 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2623 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2624 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2625
2626
2627
2628 ac_config_headers="$ac_config_headers config.h"
2629
2630
2631
2632 # Initialize Automake
2633 am__api_version='1.16'
2634
2635
2636
2637 # Find a good install program. We prefer a C program (faster),
2638 # so one script is as good as another. But avoid the broken or
2639 # incompatible versions:
2640 # SysV /etc/install, /usr/sbin/install
2641 # SunOS /usr/etc/install
2642 # IRIX /sbin/install
2643 # AIX /bin/install
2644 # AmigaOS /C/install, which installs bootblocks on floppy discs
2645 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2646 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2647 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2648 # OS/2's system install, which has a completely different semantic
2649 # ./install, which can be erroneously created by make from ./install.sh.
2650 # Reject install programs that cannot install multiple files.
2651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2652 printf %s "checking for a BSD-compatible install... " >&6; }
2653 if test -z "$INSTALL"; then
2654 if test ${ac_cv_path_install+y}
2655 then :
2656 printf %s "(cached) " >&6
2657 else $as_nop
2658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2659 for as_dir in $PATH
2660 do
2661 IFS=$as_save_IFS
2662 case $as_dir in #(((
2663 '') as_dir=./ ;;
2664 */) ;;
2665 *) as_dir=$as_dir/ ;;
2666 esac
2667 # Account for fact that we put trailing slashes in our PATH walk.
2668 case $as_dir in #((
2669 ./ | /[cC]/* | \
2670 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2671 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2672 /usr/ucb/* ) ;;
2673 *)
2674 # OSF1 and SCO ODT 3.0 have their own names for install.
2675 # Don't use installbsd from OSF since it installs stuff as root
2676 # by default.
2677 for ac_prog in ginstall scoinst install; do
2678 for ac_exec_ext in '' $ac_executable_extensions; do
2679 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
2680 if test $ac_prog = install &&
2681 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2682 # AIX install. It has an incompatible calling convention.
2683 :
2684 elif test $ac_prog = install &&
2685 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2686 # program-specific install script used by HP pwplus--don't use.
2687 :
2688 else
2689 rm -rf conftest.one conftest.two conftest.dir
2690 echo one > conftest.one
2691 echo two > conftest.two
2692 mkdir conftest.dir
2693 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
2694 test -s conftest.one && test -s conftest.two &&
2695 test -s conftest.dir/conftest.one &&
2696 test -s conftest.dir/conftest.two
2697 then
2698 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
2699 break 3
2700 fi
2701 fi
2702 fi
2703 done
2704 done
2705 ;;
2706 esac
2707
2708 done
2709 IFS=$as_save_IFS
2710
2711 rm -rf conftest.one conftest.two conftest.dir
2712
2713 fi
2714 if test ${ac_cv_path_install+y}; then
2715 INSTALL=$ac_cv_path_install
2716 else
2717 # As a last resort, use the slow shell script. Don't cache a
2718 # value for INSTALL within a source directory, because that will
2719 # break other packages using the cache if that directory is
2720 # removed, or if the value is a relative name.
2721 INSTALL=$ac_install_sh
2722 fi
2723 fi
2724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2725 printf "%s\n" "$INSTALL" >&6; }
2726
2727 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2728 # It thinks the first close brace ends the variable substitution.
2729 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2730
2731 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2732
2733 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2734
2735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2736 printf %s "checking whether build environment is sane... " >&6; }
2737 # Reject unsafe characters in $srcdir or the absolute working directory
2738 # name. Accept space and tab only in the latter.
2739 am_lf='
2740 '
2741 case `pwd` in
2742 *[\\\"\#\$\&\'\`$am_lf]*)
2743 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2744 esac
2745 case $srcdir in
2746 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2747 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2748 esac
2749
2750 # Do 'set' in a subshell so we don't clobber the current shell's
2751 # arguments. Must try -L first in case configure is actually a
2752 # symlink; some systems play weird games with the mod time of symlinks
2753 # (eg FreeBSD returns the mod time of the symlink's containing
2754 # directory).
2755 if (
2756 am_has_slept=no
2757 for am_try in 1 2; do
2758 echo "timestamp, slept: $am_has_slept" > conftest.file
2759 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2760 if test "$*" = "X"; then
2761 # -L didn't work.
2762 set X `ls -t "$srcdir/configure" conftest.file`
2763 fi
2764 if test "$*" != "X $srcdir/configure conftest.file" \
2765 && test "$*" != "X conftest.file $srcdir/configure"; then
2766
2767 # If neither matched, then we have a broken ls. This can happen
2768 # if, for instance, CONFIG_SHELL is bash and it inherits a
2769 # broken ls alias from the environment. This has actually
2770 # happened. Such a system could not be considered "sane".
2771 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2772 alias in your environment" "$LINENO" 5
2773 fi
2774 if test "$2" = conftest.file || test $am_try -eq 2; then
2775 break
2776 fi
2777 # Just in case.
2778 sleep 1
2779 am_has_slept=yes
2780 done
2781 test "$2" = conftest.file
2782 )
2783 then
2784 # Ok.
2785 :
2786 else
2787 as_fn_error $? "newly created file is older than distributed files!
2788 Check your system clock" "$LINENO" 5
2789 fi
2790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2791 printf "%s\n" "yes" >&6; }
2792 # If we didn't sleep, we still need to ensure time stamps of config.status and
2793 # generated files are strictly newer.
2794 am_sleep_pid=
2795 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2796 ( sleep 1 ) &
2797 am_sleep_pid=$!
2798 fi
2799
2800 rm -f conftest.file
2801
2802 test "$program_prefix" != NONE &&
2803 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2804 # Use a double $ so make ignores it.
2805 test "$program_suffix" != NONE &&
2806 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2807 # Double any \ or $.
2808 # By default was `s,x,x', remove it if useless.
2809 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2810 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
2811
2812
2813 # Expand $ac_aux_dir to an absolute path.
2814 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2815
2816
2817 if test x"${MISSING+set}" != xset; then
2818 MISSING="\${SHELL} '$am_aux_dir/missing'"
2819 fi
2820 # Use eval to expand $SHELL
2821 if eval "$MISSING --is-lightweight"; then
2822 am_missing_run="$MISSING "
2823 else
2824 am_missing_run=
2825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2826 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2827 fi
2828
2829 if test x"${install_sh+set}" != xset; then
2830 case $am_aux_dir in
2831 *\ * | *\ *)
2832 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2833 *)
2834 install_sh="\${SHELL} $am_aux_dir/install-sh"
2835 esac
2836 fi
2837
2838 # Installed binaries are usually stripped using 'strip' when the user
2839 # run "make install-strip". However 'strip' might not be the right
2840 # tool to use in cross-compilation environments, therefore Automake
2841 # will honor the 'STRIP' environment variable to overrule this program.
2842 if test "$cross_compiling" != no; then
2843 if test -n "$ac_tool_prefix"; then
2844 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2845 set dummy ${ac_tool_prefix}strip; ac_word=$2
2846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2847 printf %s "checking for $ac_word... " >&6; }
2848 if test ${ac_cv_prog_STRIP+y}
2849 then :
2850 printf %s "(cached) " >&6
2851 else $as_nop
2852 if test -n "$STRIP"; then
2853 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2854 else
2855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2856 for as_dir in $PATH
2857 do
2858 IFS=$as_save_IFS
2859 case $as_dir in #(((
2860 '') as_dir=./ ;;
2861 */) ;;
2862 *) as_dir=$as_dir/ ;;
2863 esac
2864 for ac_exec_ext in '' $ac_executable_extensions; do
2865 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2866 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2867 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2868 break 2
2869 fi
2870 done
2871 done
2872 IFS=$as_save_IFS
2873
2874 fi
2875 fi
2876 STRIP=$ac_cv_prog_STRIP
2877 if test -n "$STRIP"; then
2878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2879 printf "%s\n" "$STRIP" >&6; }
2880 else
2881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2882 printf "%s\n" "no" >&6; }
2883 fi
2884
2885
2886 fi
2887 if test -z "$ac_cv_prog_STRIP"; then
2888 ac_ct_STRIP=$STRIP
2889 # Extract the first word of "strip", so it can be a program name with args.
2890 set dummy strip; ac_word=$2
2891 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2892 printf %s "checking for $ac_word... " >&6; }
2893 if test ${ac_cv_prog_ac_ct_STRIP+y}
2894 then :
2895 printf %s "(cached) " >&6
2896 else $as_nop
2897 if test -n "$ac_ct_STRIP"; then
2898 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2899 else
2900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2901 for as_dir in $PATH
2902 do
2903 IFS=$as_save_IFS
2904 case $as_dir in #(((
2905 '') as_dir=./ ;;
2906 */) ;;
2907 *) as_dir=$as_dir/ ;;
2908 esac
2909 for ac_exec_ext in '' $ac_executable_extensions; do
2910 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2911 ac_cv_prog_ac_ct_STRIP="strip"
2912 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2913 break 2
2914 fi
2915 done
2916 done
2917 IFS=$as_save_IFS
2918
2919 fi
2920 fi
2921 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2922 if test -n "$ac_ct_STRIP"; then
2923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2924 printf "%s\n" "$ac_ct_STRIP" >&6; }
2925 else
2926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2927 printf "%s\n" "no" >&6; }
2928 fi
2929
2930 if test "x$ac_ct_STRIP" = x; then
2931 STRIP=":"
2932 else
2933 case $cross_compiling:$ac_tool_warned in
2934 yes:)
2935 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2936 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2937 ac_tool_warned=yes ;;
2938 esac
2939 STRIP=$ac_ct_STRIP
2940 fi
2941 else
2942 STRIP="$ac_cv_prog_STRIP"
2943 fi
2944
2945 fi
2946 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2947
2948
2949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
2950 printf %s "checking for a race-free mkdir -p... " >&6; }
2951 if test -z "$MKDIR_P"; then
2952 if test ${ac_cv_path_mkdir+y}
2953 then :
2954 printf %s "(cached) " >&6
2955 else $as_nop
2956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2957 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2958 do
2959 IFS=$as_save_IFS
2960 case $as_dir in #(((
2961 '') as_dir=./ ;;
2962 */) ;;
2963 *) as_dir=$as_dir/ ;;
2964 esac
2965 for ac_prog in mkdir gmkdir; do
2966 for ac_exec_ext in '' $ac_executable_extensions; do
2967 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
2968 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
2969 'mkdir ('*'coreutils) '* | \
2970 'BusyBox '* | \
2971 'mkdir (fileutils) '4.1*)
2972 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
2973 break 3;;
2974 esac
2975 done
2976 done
2977 done
2978 IFS=$as_save_IFS
2979
2980 fi
2981
2982 test -d ./--version && rmdir ./--version
2983 if test ${ac_cv_path_mkdir+y}; then
2984 MKDIR_P="$ac_cv_path_mkdir -p"
2985 else
2986 # As a last resort, use the slow shell script. Don't cache a
2987 # value for MKDIR_P within a source directory, because that will
2988 # break other packages using the cache if that directory is
2989 # removed, or if the value is a relative name.
2990 MKDIR_P="$ac_install_sh -d"
2991 fi
2992 fi
2993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2994 printf "%s\n" "$MKDIR_P" >&6; }
2995
2996 for ac_prog in gawk mawk nawk awk
2997 do
2998 # Extract the first word of "$ac_prog", so it can be a program name with args.
2999 set dummy $ac_prog; ac_word=$2
3000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3001 printf %s "checking for $ac_word... " >&6; }
3002 if test ${ac_cv_prog_AWK+y}
3003 then :
3004 printf %s "(cached) " >&6
3005 else $as_nop
3006 if test -n "$AWK"; then
3007 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3008 else
3009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3010 for as_dir in $PATH
3011 do
3012 IFS=$as_save_IFS
3013 case $as_dir in #(((
3014 '') as_dir=./ ;;
3015 */) ;;
3016 *) as_dir=$as_dir/ ;;
3017 esac
3018 for ac_exec_ext in '' $ac_executable_extensions; do
3019 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3020 ac_cv_prog_AWK="$ac_prog"
3021 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3022 break 2
3023 fi
3024 done
3025 done
3026 IFS=$as_save_IFS
3027
3028 fi
3029 fi
3030 AWK=$ac_cv_prog_AWK
3031 if test -n "$AWK"; then
3032 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3033 printf "%s\n" "$AWK" >&6; }
3034 else
3035 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3036 printf "%s\n" "no" >&6; }
3037 fi
3038
3039
3040 test -n "$AWK" && break
3041 done
3042
3043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3044 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3045 set x ${MAKE-make}
3046 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3047 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3048 then :
3049 printf %s "(cached) " >&6
3050 else $as_nop
3051 cat >conftest.make <<\_ACEOF
3052 SHELL = /bin/sh
3053 all:
3054 @echo '@@@%%%=$(MAKE)=@@@%%%'
3055 _ACEOF
3056 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3057 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3058 *@@@%%%=?*=@@@%%%*)
3059 eval ac_cv_prog_make_${ac_make}_set=yes;;
3060 *)
3061 eval ac_cv_prog_make_${ac_make}_set=no;;
3062 esac
3063 rm -f conftest.make
3064 fi
3065 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3067 printf "%s\n" "yes" >&6; }
3068 SET_MAKE=
3069 else
3070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3071 printf "%s\n" "no" >&6; }
3072 SET_MAKE="MAKE=${MAKE-make}"
3073 fi
3074
3075 rm -rf .tst 2>/dev/null
3076 mkdir .tst 2>/dev/null
3077 if test -d .tst; then
3078 am__leading_dot=.
3079 else
3080 am__leading_dot=_
3081 fi
3082 rmdir .tst 2>/dev/null
3083
3084 # Check whether --enable-silent-rules was given.
3085 if test ${enable_silent_rules+y}
3086 then :
3087 enableval=$enable_silent_rules;
3088 fi
3089
3090 case $enable_silent_rules in # (((
3091 yes) AM_DEFAULT_VERBOSITY=0;;
3092 no) AM_DEFAULT_VERBOSITY=1;;
3093 *) AM_DEFAULT_VERBOSITY=1;;
3094 esac
3095 am_make=${MAKE-make}
3096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3097 printf %s "checking whether $am_make supports nested variables... " >&6; }
3098 if test ${am_cv_make_support_nested_variables+y}
3099 then :
3100 printf %s "(cached) " >&6
3101 else $as_nop
3102 if printf "%s\n" 'TRUE=$(BAR$(V))
3103 BAR0=false
3104 BAR1=true
3105 V=1
3106 am__doit:
3107 @$(TRUE)
3108 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3109 am_cv_make_support_nested_variables=yes
3110 else
3111 am_cv_make_support_nested_variables=no
3112 fi
3113 fi
3114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3115 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3116 if test $am_cv_make_support_nested_variables = yes; then
3117 AM_V='$(V)'
3118 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3119 else
3120 AM_V=$AM_DEFAULT_VERBOSITY
3121 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3122 fi
3123 AM_BACKSLASH='\'
3124
3125 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3126 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3127 # is not polluted with repeated "-I."
3128 am__isrc=' -I$(srcdir)'
3129 # test to see if srcdir already configured
3130 if test -f $srcdir/config.status; then
3131 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3132 fi
3133 fi
3134
3135 # test whether we have cygpath
3136 if test -z "$CYGPATH_W"; then
3137 if (cygpath --version) >/dev/null 2>/dev/null; then
3138 CYGPATH_W='cygpath -w'
3139 else
3140 CYGPATH_W=echo
3141 fi
3142 fi
3143
3144
3145 # Define the identity of the package.
3146 PACKAGE='xf86-video-neomagic'
3147 VERSION='1.3.1'
3148
3149
3150 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3151
3152
3153 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3154
3155 # Some tools Automake needs.
3156
3157 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3158
3159
3160 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3161
3162
3163 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3164
3165
3166 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3167
3168
3169 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3170
3171 # For better backward compatibility. To be removed once Automake 1.9.x
3172 # dies out for good. For more background, see:
3173 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3174 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3175 mkdir_p='$(MKDIR_P)'
3176
3177 # We need awk for the "check" target (and possibly the TAP driver). The
3178 # system "awk" is bad on some platforms.
3179 # Always define AMTAR for backward compatibility. Yes, it's still used
3180 # in the wild :-( We should find a proper way to deprecate it ...
3181 AMTAR='$${TAR-tar}'
3182
3183
3184 # We'll loop over all known methods to create a tar archive until one works.
3185 _am_tools='gnutar pax cpio none'
3186
3187 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3188
3189
3190
3191
3192
3193 # Variables for tags utilities; see am/tags.am
3194 if test -z "$CTAGS"; then
3195 CTAGS=ctags
3196 fi
3197
3198 if test -z "$ETAGS"; then
3199 ETAGS=etags
3200 fi
3201
3202 if test -z "$CSCOPE"; then
3203 CSCOPE=cscope
3204 fi
3205
3206
3207
3208 # POSIX will say in a future version that running "rm -f" with no argument
3209 # is OK; and we want to be able to make that assumption in our Makefile
3210 # recipes. So use an aggressive probe to check that the usage we want is
3211 # actually supported "in the wild" to an acceptable degree.
3212 # See automake bug#10828.
3213 # To make any issue more visible, cause the running configure to be aborted
3214 # by default if the 'rm' program in use doesn't match our expectations; the
3215 # user can still override this though.
3216 if rm -f && rm -fr && rm -rf; then : OK; else
3217 cat >&2 <<'END'
3218 Oops!
3219
3220 Your 'rm' program seems unable to run without file operands specified
3221 on the command line, even when the '-f' option is present. This is contrary
3222 to the behaviour of most rm programs out there, and not conforming with
3223 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3224
3225 Please tell bug-automake@gnu.org about your system, including the value
3226 of your $PATH and any error possibly output before this message. This
3227 can help us improve future automake versions.
3228
3229 END
3230 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3231 echo 'Configuration will proceed anyway, since you have set the' >&2
3232 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3233 echo >&2
3234 else
3235 cat >&2 <<'END'
3236 Aborting the configuration process, to ensure you take notice of the issue.
3237
3238 You can download and install GNU coreutils to get an 'rm' implementation
3239 that behaves properly: <https://www.gnu.org/software/coreutils/>.
3240
3241 If you want to complete the configuration process using your problematic
3242 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3243 to "yes", and re-run configure.
3244
3245 END
3246 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3247 fi
3248 fi
3249
3250
3251 # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
3252
3253
3254
3255
3256
3257
3258
3259
3260
3261
3262
3263
3264
3265
3266
3267
3268
3269
3270
3271
3272 DEPDIR="${am__leading_dot}deps"
3273
3274 ac_config_commands="$ac_config_commands depfiles"
3275
3276 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3277 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
3278 cat > confinc.mk << 'END'
3279 am__doit:
3280 @echo this is the am__doit target >confinc.out
3281 .PHONY: am__doit
3282 END
3283 am__include="#"
3284 am__quote=
3285 # BSD make does it like this.
3286 echo '.include "confinc.mk" # ignored' > confmf.BSD
3287 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
3288 echo 'include confinc.mk # ignored' > confmf.GNU
3289 _am_result=no
3290 for s in GNU BSD; do
3291 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3292 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3293 ac_status=$?
3294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3295 (exit $ac_status); }
3296 case $?:`cat confinc.out 2>/dev/null` in #(
3297 '0:this is the am__doit target') :
3298 case $s in #(
3299 BSD) :
3300 am__include='.include' am__quote='"' ;; #(
3301 *) :
3302 am__include='include' am__quote='' ;;
3303 esac ;; #(
3304 *) :
3305 ;;
3306 esac
3307 if test "$am__include" != "#"; then
3308 _am_result="yes ($s style)"
3309 break
3310 fi
3311 done
3312 rm -f confinc.* confmf.*
3313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3314 printf "%s\n" "${_am_result}" >&6; }
3315
3316 # Check whether --enable-dependency-tracking was given.
3317 if test ${enable_dependency_tracking+y}
3318 then :
3319 enableval=$enable_dependency_tracking;
3320 fi
3321
3322 if test "x$enable_dependency_tracking" != xno; then
3323 am_depcomp="$ac_aux_dir/depcomp"
3324 AMDEPBACKSLASH='\'
3325 am__nodep='_no'
3326 fi
3327 if test "x$enable_dependency_tracking" != xno; then
3328 AMDEP_TRUE=
3329 AMDEP_FALSE='#'
3330 else
3331 AMDEP_TRUE='#'
3332 AMDEP_FALSE=
3333 fi
3334
3335
3336 ac_ext=c
3337 ac_cpp='$CPP $CPPFLAGS'
3338 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3339 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3340 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3341 if test -n "$ac_tool_prefix"; then
3342 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3343 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3345 printf %s "checking for $ac_word... " >&6; }
3346 if test ${ac_cv_prog_CC+y}
3347 then :
3348 printf %s "(cached) " >&6
3349 else $as_nop
3350 if test -n "$CC"; then
3351 ac_cv_prog_CC="$CC" # Let the user override the test.
3352 else
3353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3354 for as_dir in $PATH
3355 do
3356 IFS=$as_save_IFS
3357 case $as_dir in #(((
3358 '') as_dir=./ ;;
3359 */) ;;
3360 *) as_dir=$as_dir/ ;;
3361 esac
3362 for ac_exec_ext in '' $ac_executable_extensions; do
3363 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3364 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3365 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3366 break 2
3367 fi
3368 done
3369 done
3370 IFS=$as_save_IFS
3371
3372 fi
3373 fi
3374 CC=$ac_cv_prog_CC
3375 if test -n "$CC"; then
3376 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3377 printf "%s\n" "$CC" >&6; }
3378 else
3379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3380 printf "%s\n" "no" >&6; }
3381 fi
3382
3383
3384 fi
3385 if test -z "$ac_cv_prog_CC"; then
3386 ac_ct_CC=$CC
3387 # Extract the first word of "gcc", so it can be a program name with args.
3388 set dummy gcc; ac_word=$2
3389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3390 printf %s "checking for $ac_word... " >&6; }
3391 if test ${ac_cv_prog_ac_ct_CC+y}
3392 then :
3393 printf %s "(cached) " >&6
3394 else $as_nop
3395 if test -n "$ac_ct_CC"; then
3396 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3397 else
3398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3399 for as_dir in $PATH
3400 do
3401 IFS=$as_save_IFS
3402 case $as_dir in #(((
3403 '') as_dir=./ ;;
3404 */) ;;
3405 *) as_dir=$as_dir/ ;;
3406 esac
3407 for ac_exec_ext in '' $ac_executable_extensions; do
3408 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3409 ac_cv_prog_ac_ct_CC="gcc"
3410 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3411 break 2
3412 fi
3413 done
3414 done
3415 IFS=$as_save_IFS
3416
3417 fi
3418 fi
3419 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3420 if test -n "$ac_ct_CC"; then
3421 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3422 printf "%s\n" "$ac_ct_CC" >&6; }
3423 else
3424 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3425 printf "%s\n" "no" >&6; }
3426 fi
3427
3428 if test "x$ac_ct_CC" = x; then
3429 CC=""
3430 else
3431 case $cross_compiling:$ac_tool_warned in
3432 yes:)
3433 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3434 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3435 ac_tool_warned=yes ;;
3436 esac
3437 CC=$ac_ct_CC
3438 fi
3439 else
3440 CC="$ac_cv_prog_CC"
3441 fi
3442
3443 if test -z "$CC"; then
3444 if test -n "$ac_tool_prefix"; then
3445 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3446 set dummy ${ac_tool_prefix}cc; ac_word=$2
3447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3448 printf %s "checking for $ac_word... " >&6; }
3449 if test ${ac_cv_prog_CC+y}
3450 then :
3451 printf %s "(cached) " >&6
3452 else $as_nop
3453 if test -n "$CC"; then
3454 ac_cv_prog_CC="$CC" # Let the user override the test.
3455 else
3456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3457 for as_dir in $PATH
3458 do
3459 IFS=$as_save_IFS
3460 case $as_dir in #(((
3461 '') as_dir=./ ;;
3462 */) ;;
3463 *) as_dir=$as_dir/ ;;
3464 esac
3465 for ac_exec_ext in '' $ac_executable_extensions; do
3466 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3467 ac_cv_prog_CC="${ac_tool_prefix}cc"
3468 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3469 break 2
3470 fi
3471 done
3472 done
3473 IFS=$as_save_IFS
3474
3475 fi
3476 fi
3477 CC=$ac_cv_prog_CC
3478 if test -n "$CC"; then
3479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3480 printf "%s\n" "$CC" >&6; }
3481 else
3482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3483 printf "%s\n" "no" >&6; }
3484 fi
3485
3486
3487 fi
3488 fi
3489 if test -z "$CC"; then
3490 # Extract the first word of "cc", so it can be a program name with args.
3491 set dummy cc; ac_word=$2
3492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3493 printf %s "checking for $ac_word... " >&6; }
3494 if test ${ac_cv_prog_CC+y}
3495 then :
3496 printf %s "(cached) " >&6
3497 else $as_nop
3498 if test -n "$CC"; then
3499 ac_cv_prog_CC="$CC" # Let the user override the test.
3500 else
3501 ac_prog_rejected=no
3502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3503 for as_dir in $PATH
3504 do
3505 IFS=$as_save_IFS
3506 case $as_dir in #(((
3507 '') as_dir=./ ;;
3508 */) ;;
3509 *) as_dir=$as_dir/ ;;
3510 esac
3511 for ac_exec_ext in '' $ac_executable_extensions; do
3512 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3513 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3514 ac_prog_rejected=yes
3515 continue
3516 fi
3517 ac_cv_prog_CC="cc"
3518 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3519 break 2
3520 fi
3521 done
3522 done
3523 IFS=$as_save_IFS
3524
3525 if test $ac_prog_rejected = yes; then
3526 # We found a bogon in the path, so make sure we never use it.
3527 set dummy $ac_cv_prog_CC
3528 shift
3529 if test $# != 0; then
3530 # We chose a different compiler from the bogus one.
3531 # However, it has the same basename, so the bogon will be chosen
3532 # first if we set CC to just the basename; use the full file name.
3533 shift
3534 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3535 fi
3536 fi
3537 fi
3538 fi
3539 CC=$ac_cv_prog_CC
3540 if test -n "$CC"; then
3541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3542 printf "%s\n" "$CC" >&6; }
3543 else
3544 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3545 printf "%s\n" "no" >&6; }
3546 fi
3547
3548
3549 fi
3550 if test -z "$CC"; then
3551 if test -n "$ac_tool_prefix"; then
3552 for ac_prog in cl.exe
3553 do
3554 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3555 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3557 printf %s "checking for $ac_word... " >&6; }
3558 if test ${ac_cv_prog_CC+y}
3559 then :
3560 printf %s "(cached) " >&6
3561 else $as_nop
3562 if test -n "$CC"; then
3563 ac_cv_prog_CC="$CC" # Let the user override the test.
3564 else
3565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3566 for as_dir in $PATH
3567 do
3568 IFS=$as_save_IFS
3569 case $as_dir in #(((
3570 '') as_dir=./ ;;
3571 */) ;;
3572 *) as_dir=$as_dir/ ;;
3573 esac
3574 for ac_exec_ext in '' $ac_executable_extensions; do
3575 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3576 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3577 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3578 break 2
3579 fi
3580 done
3581 done
3582 IFS=$as_save_IFS
3583
3584 fi
3585 fi
3586 CC=$ac_cv_prog_CC
3587 if test -n "$CC"; then
3588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3589 printf "%s\n" "$CC" >&6; }
3590 else
3591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3592 printf "%s\n" "no" >&6; }
3593 fi
3594
3595
3596 test -n "$CC" && break
3597 done
3598 fi
3599 if test -z "$CC"; then
3600 ac_ct_CC=$CC
3601 for ac_prog in cl.exe
3602 do
3603 # Extract the first word of "$ac_prog", so it can be a program name with args.
3604 set dummy $ac_prog; ac_word=$2
3605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3606 printf %s "checking for $ac_word... " >&6; }
3607 if test ${ac_cv_prog_ac_ct_CC+y}
3608 then :
3609 printf %s "(cached) " >&6
3610 else $as_nop
3611 if test -n "$ac_ct_CC"; then
3612 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3613 else
3614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3615 for as_dir in $PATH
3616 do
3617 IFS=$as_save_IFS
3618 case $as_dir in #(((
3619 '') as_dir=./ ;;
3620 */) ;;
3621 *) as_dir=$as_dir/ ;;
3622 esac
3623 for ac_exec_ext in '' $ac_executable_extensions; do
3624 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3625 ac_cv_prog_ac_ct_CC="$ac_prog"
3626 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3627 break 2
3628 fi
3629 done
3630 done
3631 IFS=$as_save_IFS
3632
3633 fi
3634 fi
3635 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3636 if test -n "$ac_ct_CC"; then
3637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3638 printf "%s\n" "$ac_ct_CC" >&6; }
3639 else
3640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3641 printf "%s\n" "no" >&6; }
3642 fi
3643
3644
3645 test -n "$ac_ct_CC" && break
3646 done
3647
3648 if test "x$ac_ct_CC" = x; then
3649 CC=""
3650 else
3651 case $cross_compiling:$ac_tool_warned in
3652 yes:)
3653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3654 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3655 ac_tool_warned=yes ;;
3656 esac
3657 CC=$ac_ct_CC
3658 fi
3659 fi
3660
3661 fi
3662 if test -z "$CC"; then
3663 if test -n "$ac_tool_prefix"; then
3664 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3665 set dummy ${ac_tool_prefix}clang; ac_word=$2
3666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3667 printf %s "checking for $ac_word... " >&6; }
3668 if test ${ac_cv_prog_CC+y}
3669 then :
3670 printf %s "(cached) " >&6
3671 else $as_nop
3672 if test -n "$CC"; then
3673 ac_cv_prog_CC="$CC" # Let the user override the test.
3674 else
3675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3676 for as_dir in $PATH
3677 do
3678 IFS=$as_save_IFS
3679 case $as_dir in #(((
3680 '') as_dir=./ ;;
3681 */) ;;
3682 *) as_dir=$as_dir/ ;;
3683 esac
3684 for ac_exec_ext in '' $ac_executable_extensions; do
3685 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3686 ac_cv_prog_CC="${ac_tool_prefix}clang"
3687 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3688 break 2
3689 fi
3690 done
3691 done
3692 IFS=$as_save_IFS
3693
3694 fi
3695 fi
3696 CC=$ac_cv_prog_CC
3697 if test -n "$CC"; then
3698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3699 printf "%s\n" "$CC" >&6; }
3700 else
3701 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3702 printf "%s\n" "no" >&6; }
3703 fi
3704
3705
3706 fi
3707 if test -z "$ac_cv_prog_CC"; then
3708 ac_ct_CC=$CC
3709 # Extract the first word of "clang", so it can be a program name with args.
3710 set dummy clang; ac_word=$2
3711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3712 printf %s "checking for $ac_word... " >&6; }
3713 if test ${ac_cv_prog_ac_ct_CC+y}
3714 then :
3715 printf %s "(cached) " >&6
3716 else $as_nop
3717 if test -n "$ac_ct_CC"; then
3718 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3719 else
3720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3721 for as_dir in $PATH
3722 do
3723 IFS=$as_save_IFS
3724 case $as_dir in #(((
3725 '') as_dir=./ ;;
3726 */) ;;
3727 *) as_dir=$as_dir/ ;;
3728 esac
3729 for ac_exec_ext in '' $ac_executable_extensions; do
3730 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3731 ac_cv_prog_ac_ct_CC="clang"
3732 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3733 break 2
3734 fi
3735 done
3736 done
3737 IFS=$as_save_IFS
3738
3739 fi
3740 fi
3741 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3742 if test -n "$ac_ct_CC"; then
3743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3744 printf "%s\n" "$ac_ct_CC" >&6; }
3745 else
3746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3747 printf "%s\n" "no" >&6; }
3748 fi
3749
3750 if test "x$ac_ct_CC" = x; then
3751 CC=""
3752 else
3753 case $cross_compiling:$ac_tool_warned in
3754 yes:)
3755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3756 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3757 ac_tool_warned=yes ;;
3758 esac
3759 CC=$ac_ct_CC
3760 fi
3761 else
3762 CC="$ac_cv_prog_CC"
3763 fi
3764
3765 fi
3766
3767
3768 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3769 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3770 as_fn_error $? "no acceptable C compiler found in \$PATH
3771 See \`config.log' for more details" "$LINENO" 5; }
3772
3773 # Provide some information about the compiler.
3774 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3775 set X $ac_compile
3776 ac_compiler=$2
3777 for ac_option in --version -v -V -qversion -version; do
3778 { { ac_try="$ac_compiler $ac_option >&5"
3779 case "(($ac_try" in
3780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3781 *) ac_try_echo=$ac_try;;
3782 esac
3783 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3784 printf "%s\n" "$ac_try_echo"; } >&5
3785 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3786 ac_status=$?
3787 if test -s conftest.err; then
3788 sed '10a\
3789 ... rest of stderr output deleted ...
3790 10q' conftest.err >conftest.er1
3791 cat conftest.er1 >&5
3792 fi
3793 rm -f conftest.er1 conftest.err
3794 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3795 test $ac_status = 0; }
3796 done
3797
3798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3799 /* end confdefs.h. */
3800
3801 int
3802 main (void)
3803 {
3804
3805 ;
3806 return 0;
3807 }
3808 _ACEOF
3809 ac_clean_files_save=$ac_clean_files
3810 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3811 # Try to create an executable without -o first, disregard a.out.
3812 # It will help us diagnose broken compilers, and finding out an intuition
3813 # of exeext.
3814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3815 printf %s "checking whether the C compiler works... " >&6; }
3816 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3817
3818 # The possible output files:
3819 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3820
3821 ac_rmfiles=
3822 for ac_file in $ac_files
3823 do
3824 case $ac_file in
3825 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3826 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3827 esac
3828 done
3829 rm -f $ac_rmfiles
3830
3831 if { { ac_try="$ac_link_default"
3832 case "(($ac_try" in
3833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3834 *) ac_try_echo=$ac_try;;
3835 esac
3836 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3837 printf "%s\n" "$ac_try_echo"; } >&5
3838 (eval "$ac_link_default") 2>&5
3839 ac_status=$?
3840 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3841 test $ac_status = 0; }
3842 then :
3843 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3844 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3845 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3846 # so that the user can short-circuit this test for compilers unknown to
3847 # Autoconf.
3848 for ac_file in $ac_files ''
3849 do
3850 test -f "$ac_file" || continue
3851 case $ac_file in
3852 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3853 ;;
3854 [ab].out )
3855 # We found the default executable, but exeext='' is most
3856 # certainly right.
3857 break;;
3858 *.* )
3859 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3860 then :; else
3861 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3862 fi
3863 # We set ac_cv_exeext here because the later test for it is not
3864 # safe: cross compilers may not add the suffix if given an `-o'
3865 # argument, so we may need to know it at that point already.
3866 # Even if this section looks crufty: it has the advantage of
3867 # actually working.
3868 break;;
3869 * )
3870 break;;
3871 esac
3872 done
3873 test "$ac_cv_exeext" = no && ac_cv_exeext=
3874
3875 else $as_nop
3876 ac_file=''
3877 fi
3878 if test -z "$ac_file"
3879 then :
3880 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3881 printf "%s\n" "no" >&6; }
3882 printf "%s\n" "$as_me: failed program was:" >&5
3883 sed 's/^/| /' conftest.$ac_ext >&5
3884
3885 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3886 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3887 as_fn_error 77 "C compiler cannot create executables
3888 See \`config.log' for more details" "$LINENO" 5; }
3889 else $as_nop
3890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3891 printf "%s\n" "yes" >&6; }
3892 fi
3893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3894 printf %s "checking for C compiler default output file name... " >&6; }
3895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3896 printf "%s\n" "$ac_file" >&6; }
3897 ac_exeext=$ac_cv_exeext
3898
3899 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3900 ac_clean_files=$ac_clean_files_save
3901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3902 printf %s "checking for suffix of executables... " >&6; }
3903 if { { ac_try="$ac_link"
3904 case "(($ac_try" in
3905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3906 *) ac_try_echo=$ac_try;;
3907 esac
3908 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3909 printf "%s\n" "$ac_try_echo"; } >&5
3910 (eval "$ac_link") 2>&5
3911 ac_status=$?
3912 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3913 test $ac_status = 0; }
3914 then :
3915 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3916 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3917 # work properly (i.e., refer to `conftest.exe'), while it won't with
3918 # `rm'.
3919 for ac_file in conftest.exe conftest conftest.*; do
3920 test -f "$ac_file" || continue
3921 case $ac_file in
3922 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3923 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3924 break;;
3925 * ) break;;
3926 esac
3927 done
3928 else $as_nop
3929 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3930 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3931 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3932 See \`config.log' for more details" "$LINENO" 5; }
3933 fi
3934 rm -f conftest conftest$ac_cv_exeext
3935 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3936 printf "%s\n" "$ac_cv_exeext" >&6; }
3937
3938 rm -f conftest.$ac_ext
3939 EXEEXT=$ac_cv_exeext
3940 ac_exeext=$EXEEXT
3941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3942 /* end confdefs.h. */
3943 #include <stdio.h>
3944 int
3945 main (void)
3946 {
3947 FILE *f = fopen ("conftest.out", "w");
3948 return ferror (f) || fclose (f) != 0;
3949
3950 ;
3951 return 0;
3952 }
3953 _ACEOF
3954 ac_clean_files="$ac_clean_files conftest.out"
3955 # Check that the compiler produces executables we can run. If not, either
3956 # the compiler is broken, or we cross compile.
3957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3958 printf %s "checking whether we are cross compiling... " >&6; }
3959 if test "$cross_compiling" != yes; then
3960 { { ac_try="$ac_link"
3961 case "(($ac_try" in
3962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3963 *) ac_try_echo=$ac_try;;
3964 esac
3965 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3966 printf "%s\n" "$ac_try_echo"; } >&5
3967 (eval "$ac_link") 2>&5
3968 ac_status=$?
3969 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3970 test $ac_status = 0; }
3971 if { ac_try='./conftest$ac_cv_exeext'
3972 { { case "(($ac_try" in
3973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3974 *) ac_try_echo=$ac_try;;
3975 esac
3976 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3977 printf "%s\n" "$ac_try_echo"; } >&5
3978 (eval "$ac_try") 2>&5
3979 ac_status=$?
3980 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3981 test $ac_status = 0; }; }; then
3982 cross_compiling=no
3983 else
3984 if test "$cross_compiling" = maybe; then
3985 cross_compiling=yes
3986 else
3987 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3988 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3989 as_fn_error 77 "cannot run C compiled programs.
3990 If you meant to cross compile, use \`--host'.
3991 See \`config.log' for more details" "$LINENO" 5; }
3992 fi
3993 fi
3994 fi
3995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3996 printf "%s\n" "$cross_compiling" >&6; }
3997
3998 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3999 ac_clean_files=$ac_clean_files_save
4000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4001 printf %s "checking for suffix of object files... " >&6; }
4002 if test ${ac_cv_objext+y}
4003 then :
4004 printf %s "(cached) " >&6
4005 else $as_nop
4006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4007 /* end confdefs.h. */
4008
4009 int
4010 main (void)
4011 {
4012
4013 ;
4014 return 0;
4015 }
4016 _ACEOF
4017 rm -f conftest.o conftest.obj
4018 if { { ac_try="$ac_compile"
4019 case "(($ac_try" in
4020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4021 *) ac_try_echo=$ac_try;;
4022 esac
4023 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4024 printf "%s\n" "$ac_try_echo"; } >&5
4025 (eval "$ac_compile") 2>&5
4026 ac_status=$?
4027 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4028 test $ac_status = 0; }
4029 then :
4030 for ac_file in conftest.o conftest.obj conftest.*; do
4031 test -f "$ac_file" || continue;
4032 case $ac_file in
4033 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4034 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4035 break;;
4036 esac
4037 done
4038 else $as_nop
4039 printf "%s\n" "$as_me: failed program was:" >&5
4040 sed 's/^/| /' conftest.$ac_ext >&5
4041
4042 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4043 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4044 as_fn_error $? "cannot compute suffix of object files: cannot compile
4045 See \`config.log' for more details" "$LINENO" 5; }
4046 fi
4047 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4048 fi
4049 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4050 printf "%s\n" "$ac_cv_objext" >&6; }
4051 OBJEXT=$ac_cv_objext
4052 ac_objext=$OBJEXT
4053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4054 printf %s "checking whether the compiler supports GNU C... " >&6; }
4055 if test ${ac_cv_c_compiler_gnu+y}
4056 then :
4057 printf %s "(cached) " >&6
4058 else $as_nop
4059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4060 /* end confdefs.h. */
4061
4062 int
4063 main (void)
4064 {
4065 #ifndef __GNUC__
4066 choke me
4067 #endif
4068
4069 ;
4070 return 0;
4071 }
4072 _ACEOF
4073 if ac_fn_c_try_compile "$LINENO"
4074 then :
4075 ac_compiler_gnu=yes
4076 else $as_nop
4077 ac_compiler_gnu=no
4078 fi
4079 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4080 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4081
4082 fi
4083 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4084 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4085 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4086
4087 if test $ac_compiler_gnu = yes; then
4088 GCC=yes
4089 else
4090 GCC=
4091 fi
4092 ac_test_CFLAGS=${CFLAGS+y}
4093 ac_save_CFLAGS=$CFLAGS
4094 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4095 printf %s "checking whether $CC accepts -g... " >&6; }
4096 if test ${ac_cv_prog_cc_g+y}
4097 then :
4098 printf %s "(cached) " >&6
4099 else $as_nop
4100 ac_save_c_werror_flag=$ac_c_werror_flag
4101 ac_c_werror_flag=yes
4102 ac_cv_prog_cc_g=no
4103 CFLAGS="-g"
4104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4105 /* end confdefs.h. */
4106
4107 int
4108 main (void)
4109 {
4110
4111 ;
4112 return 0;
4113 }
4114 _ACEOF
4115 if ac_fn_c_try_compile "$LINENO"
4116 then :
4117 ac_cv_prog_cc_g=yes
4118 else $as_nop
4119 CFLAGS=""
4120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4121 /* end confdefs.h. */
4122
4123 int
4124 main (void)
4125 {
4126
4127 ;
4128 return 0;
4129 }
4130 _ACEOF
4131 if ac_fn_c_try_compile "$LINENO"
4132 then :
4133
4134 else $as_nop
4135 ac_c_werror_flag=$ac_save_c_werror_flag
4136 CFLAGS="-g"
4137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4138 /* end confdefs.h. */
4139
4140 int
4141 main (void)
4142 {
4143
4144 ;
4145 return 0;
4146 }
4147 _ACEOF
4148 if ac_fn_c_try_compile "$LINENO"
4149 then :
4150 ac_cv_prog_cc_g=yes
4151 fi
4152 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4153 fi
4154 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4155 fi
4156 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4157 ac_c_werror_flag=$ac_save_c_werror_flag
4158 fi
4159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4160 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4161 if test $ac_test_CFLAGS; then
4162 CFLAGS=$ac_save_CFLAGS
4163 elif test $ac_cv_prog_cc_g = yes; then
4164 if test "$GCC" = yes; then
4165 CFLAGS="-g -O2"
4166 else
4167 CFLAGS="-g"
4168 fi
4169 else
4170 if test "$GCC" = yes; then
4171 CFLAGS="-O2"
4172 else
4173 CFLAGS=
4174 fi
4175 fi
4176 ac_prog_cc_stdc=no
4177 if test x$ac_prog_cc_stdc = xno
4178 then :
4179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4180 printf %s "checking for $CC option to enable C11 features... " >&6; }
4181 if test ${ac_cv_prog_cc_c11+y}
4182 then :
4183 printf %s "(cached) " >&6
4184 else $as_nop
4185 ac_cv_prog_cc_c11=no
4186 ac_save_CC=$CC
4187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4188 /* end confdefs.h. */
4189 $ac_c_conftest_c11_program
4190 _ACEOF
4191 for ac_arg in '' -std=gnu11
4192 do
4193 CC="$ac_save_CC $ac_arg"
4194 if ac_fn_c_try_compile "$LINENO"
4195 then :
4196 ac_cv_prog_cc_c11=$ac_arg
4197 fi
4198 rm -f core conftest.err conftest.$ac_objext conftest.beam
4199 test "x$ac_cv_prog_cc_c11" != "xno" && break
4200 done
4201 rm -f conftest.$ac_ext
4202 CC=$ac_save_CC
4203 fi
4204
4205 if test "x$ac_cv_prog_cc_c11" = xno
4206 then :
4207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4208 printf "%s\n" "unsupported" >&6; }
4209 else $as_nop
4210 if test "x$ac_cv_prog_cc_c11" = x
4211 then :
4212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4213 printf "%s\n" "none needed" >&6; }
4214 else $as_nop
4215 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4216 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4217 CC="$CC $ac_cv_prog_cc_c11"
4218 fi
4219 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4220 ac_prog_cc_stdc=c11
4221 fi
4222 fi
4223 if test x$ac_prog_cc_stdc = xno
4224 then :
4225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4226 printf %s "checking for $CC option to enable C99 features... " >&6; }
4227 if test ${ac_cv_prog_cc_c99+y}
4228 then :
4229 printf %s "(cached) " >&6
4230 else $as_nop
4231 ac_cv_prog_cc_c99=no
4232 ac_save_CC=$CC
4233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4234 /* end confdefs.h. */
4235 $ac_c_conftest_c99_program
4236 _ACEOF
4237 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4238 do
4239 CC="$ac_save_CC $ac_arg"
4240 if ac_fn_c_try_compile "$LINENO"
4241 then :
4242 ac_cv_prog_cc_c99=$ac_arg
4243 fi
4244 rm -f core conftest.err conftest.$ac_objext conftest.beam
4245 test "x$ac_cv_prog_cc_c99" != "xno" && break
4246 done
4247 rm -f conftest.$ac_ext
4248 CC=$ac_save_CC
4249 fi
4250
4251 if test "x$ac_cv_prog_cc_c99" = xno
4252 then :
4253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4254 printf "%s\n" "unsupported" >&6; }
4255 else $as_nop
4256 if test "x$ac_cv_prog_cc_c99" = x
4257 then :
4258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4259 printf "%s\n" "none needed" >&6; }
4260 else $as_nop
4261 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4262 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4263 CC="$CC $ac_cv_prog_cc_c99"
4264 fi
4265 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4266 ac_prog_cc_stdc=c99
4267 fi
4268 fi
4269 if test x$ac_prog_cc_stdc = xno
4270 then :
4271 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4272 printf %s "checking for $CC option to enable C89 features... " >&6; }
4273 if test ${ac_cv_prog_cc_c89+y}
4274 then :
4275 printf %s "(cached) " >&6
4276 else $as_nop
4277 ac_cv_prog_cc_c89=no
4278 ac_save_CC=$CC
4279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4280 /* end confdefs.h. */
4281 $ac_c_conftest_c89_program
4282 _ACEOF
4283 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4284 do
4285 CC="$ac_save_CC $ac_arg"
4286 if ac_fn_c_try_compile "$LINENO"
4287 then :
4288 ac_cv_prog_cc_c89=$ac_arg
4289 fi
4290 rm -f core conftest.err conftest.$ac_objext conftest.beam
4291 test "x$ac_cv_prog_cc_c89" != "xno" && break
4292 done
4293 rm -f conftest.$ac_ext
4294 CC=$ac_save_CC
4295 fi
4296
4297 if test "x$ac_cv_prog_cc_c89" = xno
4298 then :
4299 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4300 printf "%s\n" "unsupported" >&6; }
4301 else $as_nop
4302 if test "x$ac_cv_prog_cc_c89" = x
4303 then :
4304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4305 printf "%s\n" "none needed" >&6; }
4306 else $as_nop
4307 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4308 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4309 CC="$CC $ac_cv_prog_cc_c89"
4310 fi
4311 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4312 ac_prog_cc_stdc=c89
4313 fi
4314 fi
4315
4316 ac_ext=c
4317 ac_cpp='$CPP $CPPFLAGS'
4318 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4319 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4320 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4321
4322
4323 ac_ext=c
4324 ac_cpp='$CPP $CPPFLAGS'
4325 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4326 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4327 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4329 printf %s "checking whether $CC understands -c and -o together... " >&6; }
4330 if test ${am_cv_prog_cc_c_o+y}
4331 then :
4332 printf %s "(cached) " >&6
4333 else $as_nop
4334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4335 /* end confdefs.h. */
4336
4337 int
4338 main (void)
4339 {
4340
4341 ;
4342 return 0;
4343 }
4344 _ACEOF
4345 # Make sure it works both with $CC and with simple cc.
4346 # Following AC_PROG_CC_C_O, we do the test twice because some
4347 # compilers refuse to overwrite an existing .o file with -o,
4348 # though they will create one.
4349 am_cv_prog_cc_c_o=yes
4350 for am_i in 1 2; do
4351 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4352 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4353 ac_status=$?
4354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4355 (exit $ac_status); } \
4356 && test -f conftest2.$ac_objext; then
4357 : OK
4358 else
4359 am_cv_prog_cc_c_o=no
4360 break
4361 fi
4362 done
4363 rm -f core conftest*
4364 unset am_i
4365 fi
4366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4367 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4368 if test "$am_cv_prog_cc_c_o" != yes; then
4369 # Losing compiler, so override with the script.
4370 # FIXME: It is wrong to rewrite CC.
4371 # But if we don't then we get into trouble of one sort or another.
4372 # A longer-term fix would be to have automake use am__CC in this case,
4373 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4374 CC="$am_aux_dir/compile $CC"
4375 fi
4376 ac_ext=c
4377 ac_cpp='$CPP $CPPFLAGS'
4378 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4379 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4380 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4381
4382
4383 depcc="$CC" am_compiler_list=
4384
4385 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4386 printf %s "checking dependency style of $depcc... " >&6; }
4387 if test ${am_cv_CC_dependencies_compiler_type+y}
4388 then :
4389 printf %s "(cached) " >&6
4390 else $as_nop
4391 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4392 # We make a subdir and do the tests there. Otherwise we can end up
4393 # making bogus files that we don't know about and never remove. For
4394 # instance it was reported that on HP-UX the gcc test will end up
4395 # making a dummy file named 'D' -- because '-MD' means "put the output
4396 # in D".
4397 rm -rf conftest.dir
4398 mkdir conftest.dir
4399 # Copy depcomp to subdir because otherwise we won't find it if we're
4400 # using a relative directory.
4401 cp "$am_depcomp" conftest.dir
4402 cd conftest.dir
4403 # We will build objects and dependencies in a subdirectory because
4404 # it helps to detect inapplicable dependency modes. For instance
4405 # both Tru64's cc and ICC support -MD to output dependencies as a
4406 # side effect of compilation, but ICC will put the dependencies in
4407 # the current directory while Tru64 will put them in the object
4408 # directory.
4409 mkdir sub
4410
4411 am_cv_CC_dependencies_compiler_type=none
4412 if test "$am_compiler_list" = ""; then
4413 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4414 fi
4415 am__universal=false
4416 case " $depcc " in #(
4417 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4418 esac
4419
4420 for depmode in $am_compiler_list; do
4421 # Setup a source with many dependencies, because some compilers
4422 # like to wrap large dependency lists on column 80 (with \), and
4423 # we should not choose a depcomp mode which is confused by this.
4424 #
4425 # We need to recreate these files for each test, as the compiler may
4426 # overwrite some of them when testing with obscure command lines.
4427 # This happens at least with the AIX C compiler.
4428 : > sub/conftest.c
4429 for i in 1 2 3 4 5 6; do
4430 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4431 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4432 # Solaris 10 /bin/sh.
4433 echo '/* dummy */' > sub/conftst$i.h
4434 done
4435 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4436
4437 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4438 # mode. It turns out that the SunPro C++ compiler does not properly
4439 # handle '-M -o', and we need to detect this. Also, some Intel
4440 # versions had trouble with output in subdirs.
4441 am__obj=sub/conftest.${OBJEXT-o}
4442 am__minus_obj="-o $am__obj"
4443 case $depmode in
4444 gcc)
4445 # This depmode causes a compiler race in universal mode.
4446 test "$am__universal" = false || continue
4447 ;;
4448 nosideeffect)
4449 # After this tag, mechanisms are not by side-effect, so they'll
4450 # only be used when explicitly requested.
4451 if test "x$enable_dependency_tracking" = xyes; then
4452 continue
4453 else
4454 break
4455 fi
4456 ;;
4457 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4458 # This compiler won't grok '-c -o', but also, the minuso test has
4459 # not run yet. These depmodes are late enough in the game, and
4460 # so weak that their functioning should not be impacted.
4461 am__obj=conftest.${OBJEXT-o}
4462 am__minus_obj=
4463 ;;
4464 none) break ;;
4465 esac
4466 if depmode=$depmode \
4467 source=sub/conftest.c object=$am__obj \
4468 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4469 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4470 >/dev/null 2>conftest.err &&
4471 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4472 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4473 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4474 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4475 # icc doesn't choke on unknown options, it will just issue warnings
4476 # or remarks (even with -Werror). So we grep stderr for any message
4477 # that says an option was ignored or not supported.
4478 # When given -MP, icc 7.0 and 7.1 complain thusly:
4479 # icc: Command line warning: ignoring option '-M'; no argument required
4480 # The diagnosis changed in icc 8.0:
4481 # icc: Command line remark: option '-MP' not supported
4482 if (grep 'ignoring option' conftest.err ||
4483 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4484 am_cv_CC_dependencies_compiler_type=$depmode
4485 break
4486 fi
4487 fi
4488 done
4489
4490 cd ..
4491 rm -rf conftest.dir
4492 else
4493 am_cv_CC_dependencies_compiler_type=none
4494 fi
4495
4496 fi
4497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4498 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4499 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4500
4501 if
4502 test "x$enable_dependency_tracking" != xno \
4503 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4504 am__fastdepCC_TRUE=
4505 am__fastdepCC_FALSE='#'
4506 else
4507 am__fastdepCC_TRUE='#'
4508 am__fastdepCC_FALSE=
4509 fi
4510
4511
4512
4513 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
4514 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
4515 if test ${ac_cv_c_undeclared_builtin_options+y}
4516 then :
4517 printf %s "(cached) " >&6
4518 else $as_nop
4519 ac_save_CFLAGS=$CFLAGS
4520 ac_cv_c_undeclared_builtin_options='cannot detect'
4521 for ac_arg in '' -fno-builtin; do
4522 CFLAGS="$ac_save_CFLAGS $ac_arg"
4523 # This test program should *not* compile successfully.
4524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4525 /* end confdefs.h. */
4526
4527 int
4528 main (void)
4529 {
4530 (void) strchr;
4531 ;
4532 return 0;
4533 }
4534 _ACEOF
4535 if ac_fn_c_try_compile "$LINENO"
4536 then :
4537
4538 else $as_nop
4539 # This test program should compile successfully.
4540 # No library function is consistently available on
4541 # freestanding implementations, so test against a dummy
4542 # declaration. Include always-available headers on the
4543 # off chance that they somehow elicit warnings.
4544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4545 /* end confdefs.h. */
4546 #include <float.h>
4547 #include <limits.h>
4548 #include <stdarg.h>
4549 #include <stddef.h>
4550 extern void ac_decl (int, char *);
4551
4552 int
4553 main (void)
4554 {
4555 (void) ac_decl (0, (char *) 0);
4556 (void) ac_decl;
4557
4558 ;
4559 return 0;
4560 }
4561 _ACEOF
4562 if ac_fn_c_try_compile "$LINENO"
4563 then :
4564 if test x"$ac_arg" = x
4565 then :
4566 ac_cv_c_undeclared_builtin_options='none needed'
4567 else $as_nop
4568 ac_cv_c_undeclared_builtin_options=$ac_arg
4569 fi
4570 break
4571 fi
4572 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4573 fi
4574 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4575 done
4576 CFLAGS=$ac_save_CFLAGS
4577
4578 fi
4579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
4580 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
4581 case $ac_cv_c_undeclared_builtin_options in #(
4582 'cannot detect') :
4583 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4584 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4585 as_fn_error $? "cannot make $CC report undeclared builtins
4586 See \`config.log' for more details" "$LINENO" 5; } ;; #(
4587 'none needed') :
4588 ac_c_undeclared_builtin_options='' ;; #(
4589 *) :
4590 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
4591 esac
4592
4593 ac_header= ac_cache=
4594 for ac_item in $ac_header_c_list
4595 do
4596 if test $ac_cache; then
4597 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
4598 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
4599 printf "%s\n" "#define $ac_item 1" >> confdefs.h
4600 fi
4601 ac_header= ac_cache=
4602 elif test $ac_header; then
4603 ac_cache=$ac_item
4604 else
4605 ac_header=$ac_item
4606 fi
4607 done
4608
4609
4610
4611
4612
4613
4614
4615
4616 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
4617 then :
4618
4619 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
4620
4621 fi
4622
4623
4624
4625
4626 ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4627 if test "x$ac_cv_have_decl___clang__" = xyes
4628 then :
4629 CLANGCC="yes"
4630 else $as_nop
4631 CLANGCC="no"
4632 fi
4633 ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4634 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes
4635 then :
4636 INTELCC="yes"
4637 else $as_nop
4638 INTELCC="no"
4639 fi
4640 ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4641 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes
4642 then :
4643 SUNCC="yes"
4644 else $as_nop
4645 SUNCC="no"
4646 fi
4647
4648
4649
4650
4651
4652
4653
4654
4655 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4656 if test -n "$ac_tool_prefix"; then
4657 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4658 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4660 printf %s "checking for $ac_word... " >&6; }
4661 if test ${ac_cv_path_PKG_CONFIG+y}
4662 then :
4663 printf %s "(cached) " >&6
4664 else $as_nop
4665 case $PKG_CONFIG in
4666 [\\/]* | ?:[\\/]*)
4667 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4668 ;;
4669 *)
4670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4671 for as_dir in $PATH
4672 do
4673 IFS=$as_save_IFS
4674 case $as_dir in #(((
4675 '') as_dir=./ ;;
4676 */) ;;
4677 *) as_dir=$as_dir/ ;;
4678 esac
4679 for ac_exec_ext in '' $ac_executable_extensions; do
4680 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4681 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
4682 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4683 break 2
4684 fi
4685 done
4686 done
4687 IFS=$as_save_IFS
4688
4689 ;;
4690 esac
4691 fi
4692 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4693 if test -n "$PKG_CONFIG"; then
4694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4695 printf "%s\n" "$PKG_CONFIG" >&6; }
4696 else
4697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4698 printf "%s\n" "no" >&6; }
4699 fi
4700
4701
4702 fi
4703 if test -z "$ac_cv_path_PKG_CONFIG"; then
4704 ac_pt_PKG_CONFIG=$PKG_CONFIG
4705 # Extract the first word of "pkg-config", so it can be a program name with args.
4706 set dummy pkg-config; ac_word=$2
4707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4708 printf %s "checking for $ac_word... " >&6; }
4709 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
4710 then :
4711 printf %s "(cached) " >&6
4712 else $as_nop
4713 case $ac_pt_PKG_CONFIG in
4714 [\\/]* | ?:[\\/]*)
4715 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4716 ;;
4717 *)
4718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4719 for as_dir in $PATH
4720 do
4721 IFS=$as_save_IFS
4722 case $as_dir in #(((
4723 '') as_dir=./ ;;
4724 */) ;;
4725 *) as_dir=$as_dir/ ;;
4726 esac
4727 for ac_exec_ext in '' $ac_executable_extensions; do
4728 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4729 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
4730 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4731 break 2
4732 fi
4733 done
4734 done
4735 IFS=$as_save_IFS
4736
4737 ;;
4738 esac
4739 fi
4740 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4741 if test -n "$ac_pt_PKG_CONFIG"; then
4742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4743 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
4744 else
4745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4746 printf "%s\n" "no" >&6; }
4747 fi
4748
4749 if test "x$ac_pt_PKG_CONFIG" = x; then
4750 PKG_CONFIG=""
4751 else
4752 case $cross_compiling:$ac_tool_warned in
4753 yes:)
4754 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4755 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4756 ac_tool_warned=yes ;;
4757 esac
4758 PKG_CONFIG=$ac_pt_PKG_CONFIG
4759 fi
4760 else
4761 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4762 fi
4763
4764 fi
4765 if test -n "$PKG_CONFIG"; then
4766 _pkg_min_version=0.9.0
4767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4768 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4769 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4771 printf "%s\n" "yes" >&6; }
4772 else
4773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4774 printf "%s\n" "no" >&6; }
4775 PKG_CONFIG=""
4776 fi
4777 fi
4778
4779
4780 # Make sure we can run config.sub.
4781 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
4782 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
4783
4784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4785 printf %s "checking build system type... " >&6; }
4786 if test ${ac_cv_build+y}
4787 then :
4788 printf %s "(cached) " >&6
4789 else $as_nop
4790 ac_build_alias=$build_alias
4791 test "x$ac_build_alias" = x &&
4792 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
4793 test "x$ac_build_alias" = x &&
4794 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4795 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
4796 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
4797
4798 fi
4799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4800 printf "%s\n" "$ac_cv_build" >&6; }
4801 case $ac_cv_build in
4802 *-*-*) ;;
4803 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4804 esac
4805 build=$ac_cv_build
4806 ac_save_IFS=$IFS; IFS='-'
4807 set x $ac_cv_build
4808 shift
4809 build_cpu=$1
4810 build_vendor=$2
4811 shift; shift
4812 # Remember, the first character of IFS is used to create $*,
4813 # except with old shells:
4814 build_os=$*
4815 IFS=$ac_save_IFS
4816 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4817
4818
4819 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4820 printf %s "checking host system type... " >&6; }
4821 if test ${ac_cv_host+y}
4822 then :
4823 printf %s "(cached) " >&6
4824 else $as_nop
4825 if test "x$host_alias" = x; then
4826 ac_cv_host=$ac_cv_build
4827 else
4828 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
4829 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
4830 fi
4831
4832 fi
4833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4834 printf "%s\n" "$ac_cv_host" >&6; }
4835 case $ac_cv_host in
4836 *-*-*) ;;
4837 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4838 esac
4839 host=$ac_cv_host
4840 ac_save_IFS=$IFS; IFS='-'
4841 set x $ac_cv_host
4842 shift
4843 host_cpu=$1
4844 host_vendor=$2
4845 shift; shift
4846 # Remember, the first character of IFS is used to create $*,
4847 # except with old shells:
4848 host_os=$*
4849 IFS=$ac_save_IFS
4850 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4851
4852
4853 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4854 printf %s "checking for a sed that does not truncate output... " >&6; }
4855 if test ${ac_cv_path_SED+y}
4856 then :
4857 printf %s "(cached) " >&6
4858 else $as_nop
4859 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4860 for ac_i in 1 2 3 4 5 6 7; do
4861 ac_script="$ac_script$as_nl$ac_script"
4862 done
4863 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4864 { ac_script=; unset ac_script;}
4865 if test -z "$SED"; then
4866 ac_path_SED_found=false
4867 # Loop through the user's path and test for each of PROGNAME-LIST
4868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4869 for as_dir in $PATH
4870 do
4871 IFS=$as_save_IFS
4872 case $as_dir in #(((
4873 '') as_dir=./ ;;
4874 */) ;;
4875 *) as_dir=$as_dir/ ;;
4876 esac
4877 for ac_prog in sed gsed
4878 do
4879 for ac_exec_ext in '' $ac_executable_extensions; do
4880 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
4881 as_fn_executable_p "$ac_path_SED" || continue
4882 # Check for GNU ac_path_SED and select it if it is found.
4883 # Check for GNU $ac_path_SED
4884 case `"$ac_path_SED" --version 2>&1` in
4885 *GNU*)
4886 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4887 *)
4888 ac_count=0
4889 printf %s 0123456789 >"conftest.in"
4890 while :
4891 do
4892 cat "conftest.in" "conftest.in" >"conftest.tmp"
4893 mv "conftest.tmp" "conftest.in"
4894 cp "conftest.in" "conftest.nl"
4895 printf "%s\n" '' >> "conftest.nl"
4896 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4897 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4898 as_fn_arith $ac_count + 1 && ac_count=$as_val
4899 if test $ac_count -gt ${ac_path_SED_max-0}; then
4900 # Best one so far, save it but keep looking for a better one
4901 ac_cv_path_SED="$ac_path_SED"
4902 ac_path_SED_max=$ac_count
4903 fi
4904 # 10*(2^10) chars as input seems more than enough
4905 test $ac_count -gt 10 && break
4906 done
4907 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4908 esac
4909
4910 $ac_path_SED_found && break 3
4911 done
4912 done
4913 done
4914 IFS=$as_save_IFS
4915 if test -z "$ac_cv_path_SED"; then
4916 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4917 fi
4918 else
4919 ac_cv_path_SED=$SED
4920 fi
4921
4922 fi
4923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4924 printf "%s\n" "$ac_cv_path_SED" >&6; }
4925 SED="$ac_cv_path_SED"
4926 rm -f conftest.sed
4927
4928
4929
4930
4931
4932
4933 # Check whether --enable-selective-werror was given.
4934 if test ${enable_selective_werror+y}
4935 then :
4936 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4937 else $as_nop
4938 SELECTIVE_WERROR=yes
4939 fi
4940
4941
4942
4943
4944
4945 # -v is too short to test reliably with XORG_TESTSET_CFLAG
4946 if test "x$SUNCC" = "xyes"; then
4947 BASE_CFLAGS="-v"
4948 else
4949 BASE_CFLAGS=""
4950 fi
4951
4952 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
4953
4954
4955
4956
4957
4958
4959
4960
4961
4962
4963
4964
4965
4966 xorg_testset_save_CFLAGS="$CFLAGS"
4967
4968 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4969 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4970 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4971 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4972 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
4973 then :
4974 printf %s "(cached) " >&6
4975 else $as_nop
4976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4977 /* end confdefs.h. */
4978 int i;
4979 _ACEOF
4980 if ac_fn_c_try_compile "$LINENO"
4981 then :
4982 xorg_cv_cc_flag_unknown_warning_option=yes
4983 else $as_nop
4984 xorg_cv_cc_flag_unknown_warning_option=no
4985 fi
4986 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4987 fi
4988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4989 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4990 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4991 CFLAGS="$xorg_testset_save_CFLAGS"
4992 fi
4993
4994 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4995 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4996 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4997 fi
4998 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5000 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5001 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5002 then :
5003 printf %s "(cached) " >&6
5004 else $as_nop
5005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5006 /* end confdefs.h. */
5007 int i;
5008 _ACEOF
5009 if ac_fn_c_try_compile "$LINENO"
5010 then :
5011 xorg_cv_cc_flag_unused_command_line_argument=yes
5012 else $as_nop
5013 xorg_cv_cc_flag_unused_command_line_argument=no
5014 fi
5015 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5016 fi
5017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5018 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5019 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5020 CFLAGS="$xorg_testset_save_CFLAGS"
5021 fi
5022
5023 found="no"
5024
5025 if test $found = "no" ; then
5026 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5027 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5028 fi
5029
5030 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5031 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5032 fi
5033
5034 CFLAGS="$CFLAGS -Wall"
5035
5036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
5037 printf %s "checking if $CC supports -Wall... " >&6; }
5038 cacheid=xorg_cv_cc_flag__Wall
5039 if eval test \${$cacheid+y}
5040 then :
5041 printf %s "(cached) " >&6
5042 else $as_nop
5043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5044 /* end confdefs.h. */
5045 int i;
5046 int
5047 main (void)
5048 {
5049
5050 ;
5051 return 0;
5052 }
5053 _ACEOF
5054 if ac_fn_c_try_link "$LINENO"
5055 then :
5056 eval $cacheid=yes
5057 else $as_nop
5058 eval $cacheid=no
5059 fi
5060 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5061 conftest$ac_exeext conftest.$ac_ext
5062 fi
5063
5064
5065 CFLAGS="$xorg_testset_save_CFLAGS"
5066
5067 eval supported=\$$cacheid
5068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5069 printf "%s\n" "$supported" >&6; }
5070 if test "$supported" = "yes" ; then
5071 BASE_CFLAGS="$BASE_CFLAGS -Wall"
5072 found="yes"
5073 fi
5074 fi
5075
5076
5077
5078
5079
5080
5081
5082
5083
5084
5085
5086
5087
5088
5089
5090 xorg_testset_save_CFLAGS="$CFLAGS"
5091
5092 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5093 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5094 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5095 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5096 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5097 then :
5098 printf %s "(cached) " >&6
5099 else $as_nop
5100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5101 /* end confdefs.h. */
5102 int i;
5103 _ACEOF
5104 if ac_fn_c_try_compile "$LINENO"
5105 then :
5106 xorg_cv_cc_flag_unknown_warning_option=yes
5107 else $as_nop
5108 xorg_cv_cc_flag_unknown_warning_option=no
5109 fi
5110 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5111 fi
5112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5113 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5114 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5115 CFLAGS="$xorg_testset_save_CFLAGS"
5116 fi
5117
5118 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5119 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5120 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5121 fi
5122 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5124 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5125 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5126 then :
5127 printf %s "(cached) " >&6
5128 else $as_nop
5129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5130 /* end confdefs.h. */
5131 int i;
5132 _ACEOF
5133 if ac_fn_c_try_compile "$LINENO"
5134 then :
5135 xorg_cv_cc_flag_unused_command_line_argument=yes
5136 else $as_nop
5137 xorg_cv_cc_flag_unused_command_line_argument=no
5138 fi
5139 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5140 fi
5141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5142 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5143 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5144 CFLAGS="$xorg_testset_save_CFLAGS"
5145 fi
5146
5147 found="no"
5148
5149 if test $found = "no" ; then
5150 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5151 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5152 fi
5153
5154 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5155 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5156 fi
5157
5158 CFLAGS="$CFLAGS -Wpointer-arith"
5159
5160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
5161 printf %s "checking if $CC supports -Wpointer-arith... " >&6; }
5162 cacheid=xorg_cv_cc_flag__Wpointer_arith
5163 if eval test \${$cacheid+y}
5164 then :
5165 printf %s "(cached) " >&6
5166 else $as_nop
5167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5168 /* end confdefs.h. */
5169 int i;
5170 int
5171 main (void)
5172 {
5173
5174 ;
5175 return 0;
5176 }
5177 _ACEOF
5178 if ac_fn_c_try_link "$LINENO"
5179 then :
5180 eval $cacheid=yes
5181 else $as_nop
5182 eval $cacheid=no
5183 fi
5184 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5185 conftest$ac_exeext conftest.$ac_ext
5186 fi
5187
5188
5189 CFLAGS="$xorg_testset_save_CFLAGS"
5190
5191 eval supported=\$$cacheid
5192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5193 printf "%s\n" "$supported" >&6; }
5194 if test "$supported" = "yes" ; then
5195 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
5196 found="yes"
5197 fi
5198 fi
5199
5200
5201
5202
5203
5204
5205
5206
5207
5208
5209
5210
5211
5212
5213
5214 xorg_testset_save_CFLAGS="$CFLAGS"
5215
5216 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5217 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5218 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5219 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5220 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5221 then :
5222 printf %s "(cached) " >&6
5223 else $as_nop
5224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5225 /* end confdefs.h. */
5226 int i;
5227 _ACEOF
5228 if ac_fn_c_try_compile "$LINENO"
5229 then :
5230 xorg_cv_cc_flag_unknown_warning_option=yes
5231 else $as_nop
5232 xorg_cv_cc_flag_unknown_warning_option=no
5233 fi
5234 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5235 fi
5236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5237 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5238 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5239 CFLAGS="$xorg_testset_save_CFLAGS"
5240 fi
5241
5242 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5243 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5244 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5245 fi
5246 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5248 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5249 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5250 then :
5251 printf %s "(cached) " >&6
5252 else $as_nop
5253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5254 /* end confdefs.h. */
5255 int i;
5256 _ACEOF
5257 if ac_fn_c_try_compile "$LINENO"
5258 then :
5259 xorg_cv_cc_flag_unused_command_line_argument=yes
5260 else $as_nop
5261 xorg_cv_cc_flag_unused_command_line_argument=no
5262 fi
5263 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5264 fi
5265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5266 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5267 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5268 CFLAGS="$xorg_testset_save_CFLAGS"
5269 fi
5270
5271 found="no"
5272
5273 if test $found = "no" ; then
5274 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5275 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5276 fi
5277
5278 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5279 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5280 fi
5281
5282 CFLAGS="$CFLAGS -Wmissing-declarations"
5283
5284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
5285 printf %s "checking if $CC supports -Wmissing-declarations... " >&6; }
5286 cacheid=xorg_cv_cc_flag__Wmissing_declarations
5287 if eval test \${$cacheid+y}
5288 then :
5289 printf %s "(cached) " >&6
5290 else $as_nop
5291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5292 /* end confdefs.h. */
5293 int i;
5294 int
5295 main (void)
5296 {
5297
5298 ;
5299 return 0;
5300 }
5301 _ACEOF
5302 if ac_fn_c_try_link "$LINENO"
5303 then :
5304 eval $cacheid=yes
5305 else $as_nop
5306 eval $cacheid=no
5307 fi
5308 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5309 conftest$ac_exeext conftest.$ac_ext
5310 fi
5311
5312
5313 CFLAGS="$xorg_testset_save_CFLAGS"
5314
5315 eval supported=\$$cacheid
5316 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5317 printf "%s\n" "$supported" >&6; }
5318 if test "$supported" = "yes" ; then
5319 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5320 found="yes"
5321 fi
5322 fi
5323
5324
5325
5326
5327
5328
5329
5330
5331
5332
5333
5334
5335
5336
5337
5338 xorg_testset_save_CFLAGS="$CFLAGS"
5339
5340 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5341 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5342 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5343 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5344 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5345 then :
5346 printf %s "(cached) " >&6
5347 else $as_nop
5348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5349 /* end confdefs.h. */
5350 int i;
5351 _ACEOF
5352 if ac_fn_c_try_compile "$LINENO"
5353 then :
5354 xorg_cv_cc_flag_unknown_warning_option=yes
5355 else $as_nop
5356 xorg_cv_cc_flag_unknown_warning_option=no
5357 fi
5358 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5359 fi
5360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5361 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5362 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5363 CFLAGS="$xorg_testset_save_CFLAGS"
5364 fi
5365
5366 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5367 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5368 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5369 fi
5370 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5371 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5372 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5373 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5374 then :
5375 printf %s "(cached) " >&6
5376 else $as_nop
5377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5378 /* end confdefs.h. */
5379 int i;
5380 _ACEOF
5381 if ac_fn_c_try_compile "$LINENO"
5382 then :
5383 xorg_cv_cc_flag_unused_command_line_argument=yes
5384 else $as_nop
5385 xorg_cv_cc_flag_unused_command_line_argument=no
5386 fi
5387 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5388 fi
5389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5390 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5391 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5392 CFLAGS="$xorg_testset_save_CFLAGS"
5393 fi
5394
5395 found="no"
5396
5397 if test $found = "no" ; then
5398 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5399 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5400 fi
5401
5402 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5403 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5404 fi
5405
5406 CFLAGS="$CFLAGS -Wformat=2"
5407
5408 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5409 printf %s "checking if $CC supports -Wformat=2... " >&6; }
5410 cacheid=xorg_cv_cc_flag__Wformat_2
5411 if eval test \${$cacheid+y}
5412 then :
5413 printf %s "(cached) " >&6
5414 else $as_nop
5415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5416 /* end confdefs.h. */
5417 int i;
5418 int
5419 main (void)
5420 {
5421
5422 ;
5423 return 0;
5424 }
5425 _ACEOF
5426 if ac_fn_c_try_link "$LINENO"
5427 then :
5428 eval $cacheid=yes
5429 else $as_nop
5430 eval $cacheid=no
5431 fi
5432 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5433 conftest$ac_exeext conftest.$ac_ext
5434 fi
5435
5436
5437 CFLAGS="$xorg_testset_save_CFLAGS"
5438
5439 eval supported=\$$cacheid
5440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5441 printf "%s\n" "$supported" >&6; }
5442 if test "$supported" = "yes" ; then
5443 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5444 found="yes"
5445 fi
5446 fi
5447
5448 if test $found = "no" ; then
5449 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5450 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5451 fi
5452
5453 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5454 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5455 fi
5456
5457 CFLAGS="$CFLAGS -Wformat"
5458
5459 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5460 printf %s "checking if $CC supports -Wformat... " >&6; }
5461 cacheid=xorg_cv_cc_flag__Wformat
5462 if eval test \${$cacheid+y}
5463 then :
5464 printf %s "(cached) " >&6
5465 else $as_nop
5466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5467 /* end confdefs.h. */
5468 int i;
5469 int
5470 main (void)
5471 {
5472
5473 ;
5474 return 0;
5475 }
5476 _ACEOF
5477 if ac_fn_c_try_link "$LINENO"
5478 then :
5479 eval $cacheid=yes
5480 else $as_nop
5481 eval $cacheid=no
5482 fi
5483 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5484 conftest$ac_exeext conftest.$ac_ext
5485 fi
5486
5487
5488 CFLAGS="$xorg_testset_save_CFLAGS"
5489
5490 eval supported=\$$cacheid
5491 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5492 printf "%s\n" "$supported" >&6; }
5493 if test "$supported" = "yes" ; then
5494 BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5495 found="yes"
5496 fi
5497 fi
5498
5499
5500
5501
5502
5503
5504
5505
5506
5507
5508
5509
5510
5511
5512
5513
5514
5515 xorg_testset_save_CFLAGS="$CFLAGS"
5516
5517 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5518 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5520 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5521 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5522 then :
5523 printf %s "(cached) " >&6
5524 else $as_nop
5525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5526 /* end confdefs.h. */
5527 int i;
5528 _ACEOF
5529 if ac_fn_c_try_compile "$LINENO"
5530 then :
5531 xorg_cv_cc_flag_unknown_warning_option=yes
5532 else $as_nop
5533 xorg_cv_cc_flag_unknown_warning_option=no
5534 fi
5535 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5536 fi
5537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5538 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5539 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5540 CFLAGS="$xorg_testset_save_CFLAGS"
5541 fi
5542
5543 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5544 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5545 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5546 fi
5547 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5549 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5550 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5551 then :
5552 printf %s "(cached) " >&6
5553 else $as_nop
5554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5555 /* end confdefs.h. */
5556 int i;
5557 _ACEOF
5558 if ac_fn_c_try_compile "$LINENO"
5559 then :
5560 xorg_cv_cc_flag_unused_command_line_argument=yes
5561 else $as_nop
5562 xorg_cv_cc_flag_unused_command_line_argument=no
5563 fi
5564 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5565 fi
5566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5567 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5568 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5569 CFLAGS="$xorg_testset_save_CFLAGS"
5570 fi
5571
5572 found="no"
5573
5574 if test $found = "no" ; then
5575 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5576 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5577 fi
5578
5579 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5580 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5581 fi
5582
5583 CFLAGS="$CFLAGS -Wstrict-prototypes"
5584
5585 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5586 printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; }
5587 cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5588 if eval test \${$cacheid+y}
5589 then :
5590 printf %s "(cached) " >&6
5591 else $as_nop
5592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5593 /* end confdefs.h. */
5594 int i;
5595 int
5596 main (void)
5597 {
5598
5599 ;
5600 return 0;
5601 }
5602 _ACEOF
5603 if ac_fn_c_try_link "$LINENO"
5604 then :
5605 eval $cacheid=yes
5606 else $as_nop
5607 eval $cacheid=no
5608 fi
5609 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5610 conftest$ac_exeext conftest.$ac_ext
5611 fi
5612
5613
5614 CFLAGS="$xorg_testset_save_CFLAGS"
5615
5616 eval supported=\$$cacheid
5617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5618 printf "%s\n" "$supported" >&6; }
5619 if test "$supported" = "yes" ; then
5620 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5621 found="yes"
5622 fi
5623 fi
5624
5625
5626
5627
5628
5629
5630
5631
5632
5633
5634
5635
5636
5637
5638
5639 xorg_testset_save_CFLAGS="$CFLAGS"
5640
5641 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5642 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5644 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5645 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5646 then :
5647 printf %s "(cached) " >&6
5648 else $as_nop
5649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5650 /* end confdefs.h. */
5651 int i;
5652 _ACEOF
5653 if ac_fn_c_try_compile "$LINENO"
5654 then :
5655 xorg_cv_cc_flag_unknown_warning_option=yes
5656 else $as_nop
5657 xorg_cv_cc_flag_unknown_warning_option=no
5658 fi
5659 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5660 fi
5661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5662 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5663 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5664 CFLAGS="$xorg_testset_save_CFLAGS"
5665 fi
5666
5667 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5668 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5669 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5670 fi
5671 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5673 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5674 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5675 then :
5676 printf %s "(cached) " >&6
5677 else $as_nop
5678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5679 /* end confdefs.h. */
5680 int i;
5681 _ACEOF
5682 if ac_fn_c_try_compile "$LINENO"
5683 then :
5684 xorg_cv_cc_flag_unused_command_line_argument=yes
5685 else $as_nop
5686 xorg_cv_cc_flag_unused_command_line_argument=no
5687 fi
5688 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5689 fi
5690 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5691 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5692 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5693 CFLAGS="$xorg_testset_save_CFLAGS"
5694 fi
5695
5696 found="no"
5697
5698 if test $found = "no" ; then
5699 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5700 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5701 fi
5702
5703 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5704 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5705 fi
5706
5707 CFLAGS="$CFLAGS -Wmissing-prototypes"
5708
5709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5710 printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; }
5711 cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5712 if eval test \${$cacheid+y}
5713 then :
5714 printf %s "(cached) " >&6
5715 else $as_nop
5716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5717 /* end confdefs.h. */
5718 int i;
5719 int
5720 main (void)
5721 {
5722
5723 ;
5724 return 0;
5725 }
5726 _ACEOF
5727 if ac_fn_c_try_link "$LINENO"
5728 then :
5729 eval $cacheid=yes
5730 else $as_nop
5731 eval $cacheid=no
5732 fi
5733 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5734 conftest$ac_exeext conftest.$ac_ext
5735 fi
5736
5737
5738 CFLAGS="$xorg_testset_save_CFLAGS"
5739
5740 eval supported=\$$cacheid
5741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5742 printf "%s\n" "$supported" >&6; }
5743 if test "$supported" = "yes" ; then
5744 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5745 found="yes"
5746 fi
5747 fi
5748
5749
5750
5751
5752
5753
5754
5755
5756
5757
5758
5759
5760
5761
5762
5763 xorg_testset_save_CFLAGS="$CFLAGS"
5764
5765 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5766 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5768 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5769 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5770 then :
5771 printf %s "(cached) " >&6
5772 else $as_nop
5773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5774 /* end confdefs.h. */
5775 int i;
5776 _ACEOF
5777 if ac_fn_c_try_compile "$LINENO"
5778 then :
5779 xorg_cv_cc_flag_unknown_warning_option=yes
5780 else $as_nop
5781 xorg_cv_cc_flag_unknown_warning_option=no
5782 fi
5783 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5784 fi
5785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5786 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5787 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5788 CFLAGS="$xorg_testset_save_CFLAGS"
5789 fi
5790
5791 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5792 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5793 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5794 fi
5795 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5797 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5798 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5799 then :
5800 printf %s "(cached) " >&6
5801 else $as_nop
5802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5803 /* end confdefs.h. */
5804 int i;
5805 _ACEOF
5806 if ac_fn_c_try_compile "$LINENO"
5807 then :
5808 xorg_cv_cc_flag_unused_command_line_argument=yes
5809 else $as_nop
5810 xorg_cv_cc_flag_unused_command_line_argument=no
5811 fi
5812 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5813 fi
5814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5815 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5816 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5817 CFLAGS="$xorg_testset_save_CFLAGS"
5818 fi
5819
5820 found="no"
5821
5822 if test $found = "no" ; then
5823 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5824 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5825 fi
5826
5827 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5828 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5829 fi
5830
5831 CFLAGS="$CFLAGS -Wnested-externs"
5832
5833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5834 printf %s "checking if $CC supports -Wnested-externs... " >&6; }
5835 cacheid=xorg_cv_cc_flag__Wnested_externs
5836 if eval test \${$cacheid+y}
5837 then :
5838 printf %s "(cached) " >&6
5839 else $as_nop
5840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5841 /* end confdefs.h. */
5842 int i;
5843 int
5844 main (void)
5845 {
5846
5847 ;
5848 return 0;
5849 }
5850 _ACEOF
5851 if ac_fn_c_try_link "$LINENO"
5852 then :
5853 eval $cacheid=yes
5854 else $as_nop
5855 eval $cacheid=no
5856 fi
5857 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5858 conftest$ac_exeext conftest.$ac_ext
5859 fi
5860
5861
5862 CFLAGS="$xorg_testset_save_CFLAGS"
5863
5864 eval supported=\$$cacheid
5865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5866 printf "%s\n" "$supported" >&6; }
5867 if test "$supported" = "yes" ; then
5868 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5869 found="yes"
5870 fi
5871 fi
5872
5873
5874
5875
5876
5877
5878
5879
5880
5881
5882
5883
5884
5885
5886
5887 xorg_testset_save_CFLAGS="$CFLAGS"
5888
5889 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5890 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5891 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5892 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5893 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5894 then :
5895 printf %s "(cached) " >&6
5896 else $as_nop
5897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5898 /* end confdefs.h. */
5899 int i;
5900 _ACEOF
5901 if ac_fn_c_try_compile "$LINENO"
5902 then :
5903 xorg_cv_cc_flag_unknown_warning_option=yes
5904 else $as_nop
5905 xorg_cv_cc_flag_unknown_warning_option=no
5906 fi
5907 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5908 fi
5909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5910 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5911 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5912 CFLAGS="$xorg_testset_save_CFLAGS"
5913 fi
5914
5915 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5916 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5917 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5918 fi
5919 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5921 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5922 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5923 then :
5924 printf %s "(cached) " >&6
5925 else $as_nop
5926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5927 /* end confdefs.h. */
5928 int i;
5929 _ACEOF
5930 if ac_fn_c_try_compile "$LINENO"
5931 then :
5932 xorg_cv_cc_flag_unused_command_line_argument=yes
5933 else $as_nop
5934 xorg_cv_cc_flag_unused_command_line_argument=no
5935 fi
5936 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5937 fi
5938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5939 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5940 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5941 CFLAGS="$xorg_testset_save_CFLAGS"
5942 fi
5943
5944 found="no"
5945
5946 if test $found = "no" ; then
5947 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5948 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5949 fi
5950
5951 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5952 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5953 fi
5954
5955 CFLAGS="$CFLAGS -Wbad-function-cast"
5956
5957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
5958 printf %s "checking if $CC supports -Wbad-function-cast... " >&6; }
5959 cacheid=xorg_cv_cc_flag__Wbad_function_cast
5960 if eval test \${$cacheid+y}
5961 then :
5962 printf %s "(cached) " >&6
5963 else $as_nop
5964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5965 /* end confdefs.h. */
5966 int i;
5967 int
5968 main (void)
5969 {
5970
5971 ;
5972 return 0;
5973 }
5974 _ACEOF
5975 if ac_fn_c_try_link "$LINENO"
5976 then :
5977 eval $cacheid=yes
5978 else $as_nop
5979 eval $cacheid=no
5980 fi
5981 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5982 conftest$ac_exeext conftest.$ac_ext
5983 fi
5984
5985
5986 CFLAGS="$xorg_testset_save_CFLAGS"
5987
5988 eval supported=\$$cacheid
5989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5990 printf "%s\n" "$supported" >&6; }
5991 if test "$supported" = "yes" ; then
5992 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
5993 found="yes"
5994 fi
5995 fi
5996
5997
5998
5999
6000
6001
6002
6003
6004
6005
6006
6007
6008
6009
6010
6011 xorg_testset_save_CFLAGS="$CFLAGS"
6012
6013 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6014 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6016 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6017 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6018 then :
6019 printf %s "(cached) " >&6
6020 else $as_nop
6021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6022 /* end confdefs.h. */
6023 int i;
6024 _ACEOF
6025 if ac_fn_c_try_compile "$LINENO"
6026 then :
6027 xorg_cv_cc_flag_unknown_warning_option=yes
6028 else $as_nop
6029 xorg_cv_cc_flag_unknown_warning_option=no
6030 fi
6031 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6032 fi
6033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6034 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6035 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6036 CFLAGS="$xorg_testset_save_CFLAGS"
6037 fi
6038
6039 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6040 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6041 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6042 fi
6043 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6044 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6045 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6046 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6047 then :
6048 printf %s "(cached) " >&6
6049 else $as_nop
6050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6051 /* end confdefs.h. */
6052 int i;
6053 _ACEOF
6054 if ac_fn_c_try_compile "$LINENO"
6055 then :
6056 xorg_cv_cc_flag_unused_command_line_argument=yes
6057 else $as_nop
6058 xorg_cv_cc_flag_unused_command_line_argument=no
6059 fi
6060 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6061 fi
6062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6063 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6064 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6065 CFLAGS="$xorg_testset_save_CFLAGS"
6066 fi
6067
6068 found="no"
6069
6070 if test $found = "no" ; then
6071 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6072 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6073 fi
6074
6075 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6076 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6077 fi
6078
6079 CFLAGS="$CFLAGS -Wold-style-definition"
6080
6081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
6082 printf %s "checking if $CC supports -Wold-style-definition... " >&6; }
6083 cacheid=xorg_cv_cc_flag__Wold_style_definition
6084 if eval test \${$cacheid+y}
6085 then :
6086 printf %s "(cached) " >&6
6087 else $as_nop
6088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6089 /* end confdefs.h. */
6090 int i;
6091 int
6092 main (void)
6093 {
6094
6095 ;
6096 return 0;
6097 }
6098 _ACEOF
6099 if ac_fn_c_try_link "$LINENO"
6100 then :
6101 eval $cacheid=yes
6102 else $as_nop
6103 eval $cacheid=no
6104 fi
6105 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6106 conftest$ac_exeext conftest.$ac_ext
6107 fi
6108
6109
6110 CFLAGS="$xorg_testset_save_CFLAGS"
6111
6112 eval supported=\$$cacheid
6113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6114 printf "%s\n" "$supported" >&6; }
6115 if test "$supported" = "yes" ; then
6116 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
6117 found="yes"
6118 fi
6119 fi
6120
6121 if test $found = "no" ; then
6122 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6123 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6124 fi
6125
6126 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6127 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6128 fi
6129
6130 CFLAGS="$CFLAGS -fd"
6131
6132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
6133 printf %s "checking if $CC supports -fd... " >&6; }
6134 cacheid=xorg_cv_cc_flag__fd
6135 if eval test \${$cacheid+y}
6136 then :
6137 printf %s "(cached) " >&6
6138 else $as_nop
6139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6140 /* end confdefs.h. */
6141 int i;
6142 int
6143 main (void)
6144 {
6145
6146 ;
6147 return 0;
6148 }
6149 _ACEOF
6150 if ac_fn_c_try_link "$LINENO"
6151 then :
6152 eval $cacheid=yes
6153 else $as_nop
6154 eval $cacheid=no
6155 fi
6156 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6157 conftest$ac_exeext conftest.$ac_ext
6158 fi
6159
6160
6161 CFLAGS="$xorg_testset_save_CFLAGS"
6162
6163 eval supported=\$$cacheid
6164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6165 printf "%s\n" "$supported" >&6; }
6166 if test "$supported" = "yes" ; then
6167 BASE_CFLAGS="$BASE_CFLAGS -fd"
6168 found="yes"
6169 fi
6170 fi
6171
6172
6173
6174
6175
6176
6177
6178
6179
6180
6181
6182
6183
6184
6185
6186 xorg_testset_save_CFLAGS="$CFLAGS"
6187
6188 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6189 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6190 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6191 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6192 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6193 then :
6194 printf %s "(cached) " >&6
6195 else $as_nop
6196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6197 /* end confdefs.h. */
6198 int i;
6199 _ACEOF
6200 if ac_fn_c_try_compile "$LINENO"
6201 then :
6202 xorg_cv_cc_flag_unknown_warning_option=yes
6203 else $as_nop
6204 xorg_cv_cc_flag_unknown_warning_option=no
6205 fi
6206 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6207 fi
6208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6209 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6210 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6211 CFLAGS="$xorg_testset_save_CFLAGS"
6212 fi
6213
6214 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6215 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6216 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6217 fi
6218 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6220 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6221 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6222 then :
6223 printf %s "(cached) " >&6
6224 else $as_nop
6225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6226 /* end confdefs.h. */
6227 int i;
6228 _ACEOF
6229 if ac_fn_c_try_compile "$LINENO"
6230 then :
6231 xorg_cv_cc_flag_unused_command_line_argument=yes
6232 else $as_nop
6233 xorg_cv_cc_flag_unused_command_line_argument=no
6234 fi
6235 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6236 fi
6237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6238 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6239 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6240 CFLAGS="$xorg_testset_save_CFLAGS"
6241 fi
6242
6243 found="no"
6244
6245 if test $found = "no" ; then
6246 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6247 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6248 fi
6249
6250 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6251 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6252 fi
6253
6254 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
6255
6256 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
6257 printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
6258 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
6259 if eval test \${$cacheid+y}
6260 then :
6261 printf %s "(cached) " >&6
6262 else $as_nop
6263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6264 /* end confdefs.h. */
6265 int i;
6266 int
6267 main (void)
6268 {
6269
6270 ;
6271 return 0;
6272 }
6273 _ACEOF
6274 if ac_fn_c_try_link "$LINENO"
6275 then :
6276 eval $cacheid=yes
6277 else $as_nop
6278 eval $cacheid=no
6279 fi
6280 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6281 conftest$ac_exeext conftest.$ac_ext
6282 fi
6283
6284
6285 CFLAGS="$xorg_testset_save_CFLAGS"
6286
6287 eval supported=\$$cacheid
6288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6289 printf "%s\n" "$supported" >&6; }
6290 if test "$supported" = "yes" ; then
6291 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
6292 found="yes"
6293 fi
6294 fi
6295
6296
6297
6298
6299
6300 # This chunk adds additional warnings that could catch undesired effects.
6301
6302
6303
6304
6305
6306
6307
6308
6309
6310
6311
6312
6313
6314 xorg_testset_save_CFLAGS="$CFLAGS"
6315
6316 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6317 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6318 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6319 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6320 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6321 then :
6322 printf %s "(cached) " >&6
6323 else $as_nop
6324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6325 /* end confdefs.h. */
6326 int i;
6327 _ACEOF
6328 if ac_fn_c_try_compile "$LINENO"
6329 then :
6330 xorg_cv_cc_flag_unknown_warning_option=yes
6331 else $as_nop
6332 xorg_cv_cc_flag_unknown_warning_option=no
6333 fi
6334 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6335 fi
6336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6337 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6338 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6339 CFLAGS="$xorg_testset_save_CFLAGS"
6340 fi
6341
6342 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6343 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6344 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6345 fi
6346 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6347 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6348 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6349 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6350 then :
6351 printf %s "(cached) " >&6
6352 else $as_nop
6353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6354 /* end confdefs.h. */
6355 int i;
6356 _ACEOF
6357 if ac_fn_c_try_compile "$LINENO"
6358 then :
6359 xorg_cv_cc_flag_unused_command_line_argument=yes
6360 else $as_nop
6361 xorg_cv_cc_flag_unused_command_line_argument=no
6362 fi
6363 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6364 fi
6365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6366 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6367 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6368 CFLAGS="$xorg_testset_save_CFLAGS"
6369 fi
6370
6371 found="no"
6372
6373 if test $found = "no" ; then
6374 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6375 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6376 fi
6377
6378 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6379 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6380 fi
6381
6382 CFLAGS="$CFLAGS -Wunused"
6383
6384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
6385 printf %s "checking if $CC supports -Wunused... " >&6; }
6386 cacheid=xorg_cv_cc_flag__Wunused
6387 if eval test \${$cacheid+y}
6388 then :
6389 printf %s "(cached) " >&6
6390 else $as_nop
6391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6392 /* end confdefs.h. */
6393 int i;
6394 int
6395 main (void)
6396 {
6397
6398 ;
6399 return 0;
6400 }
6401 _ACEOF
6402 if ac_fn_c_try_link "$LINENO"
6403 then :
6404 eval $cacheid=yes
6405 else $as_nop
6406 eval $cacheid=no
6407 fi
6408 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6409 conftest$ac_exeext conftest.$ac_ext
6410 fi
6411
6412
6413 CFLAGS="$xorg_testset_save_CFLAGS"
6414
6415 eval supported=\$$cacheid
6416 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6417 printf "%s\n" "$supported" >&6; }
6418 if test "$supported" = "yes" ; then
6419 BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6420 found="yes"
6421 fi
6422 fi
6423
6424
6425
6426
6427
6428
6429
6430
6431
6432
6433
6434
6435
6436
6437
6438 xorg_testset_save_CFLAGS="$CFLAGS"
6439
6440 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6441 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6442 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6443 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6444 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6445 then :
6446 printf %s "(cached) " >&6
6447 else $as_nop
6448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6449 /* end confdefs.h. */
6450 int i;
6451 _ACEOF
6452 if ac_fn_c_try_compile "$LINENO"
6453 then :
6454 xorg_cv_cc_flag_unknown_warning_option=yes
6455 else $as_nop
6456 xorg_cv_cc_flag_unknown_warning_option=no
6457 fi
6458 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6459 fi
6460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6461 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6462 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6463 CFLAGS="$xorg_testset_save_CFLAGS"
6464 fi
6465
6466 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6467 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6468 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6469 fi
6470 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6472 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6473 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6474 then :
6475 printf %s "(cached) " >&6
6476 else $as_nop
6477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6478 /* end confdefs.h. */
6479 int i;
6480 _ACEOF
6481 if ac_fn_c_try_compile "$LINENO"
6482 then :
6483 xorg_cv_cc_flag_unused_command_line_argument=yes
6484 else $as_nop
6485 xorg_cv_cc_flag_unused_command_line_argument=no
6486 fi
6487 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6488 fi
6489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6490 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6491 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6492 CFLAGS="$xorg_testset_save_CFLAGS"
6493 fi
6494
6495 found="no"
6496
6497 if test $found = "no" ; then
6498 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6499 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6500 fi
6501
6502 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6503 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6504 fi
6505
6506 CFLAGS="$CFLAGS -Wuninitialized"
6507
6508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6509 printf %s "checking if $CC supports -Wuninitialized... " >&6; }
6510 cacheid=xorg_cv_cc_flag__Wuninitialized
6511 if eval test \${$cacheid+y}
6512 then :
6513 printf %s "(cached) " >&6
6514 else $as_nop
6515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6516 /* end confdefs.h. */
6517 int i;
6518 int
6519 main (void)
6520 {
6521
6522 ;
6523 return 0;
6524 }
6525 _ACEOF
6526 if ac_fn_c_try_link "$LINENO"
6527 then :
6528 eval $cacheid=yes
6529 else $as_nop
6530 eval $cacheid=no
6531 fi
6532 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6533 conftest$ac_exeext conftest.$ac_ext
6534 fi
6535
6536
6537 CFLAGS="$xorg_testset_save_CFLAGS"
6538
6539 eval supported=\$$cacheid
6540 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6541 printf "%s\n" "$supported" >&6; }
6542 if test "$supported" = "yes" ; then
6543 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6544 found="yes"
6545 fi
6546 fi
6547
6548
6549
6550
6551
6552
6553
6554
6555
6556
6557
6558
6559
6560
6561
6562 xorg_testset_save_CFLAGS="$CFLAGS"
6563
6564 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6565 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6567 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6568 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6569 then :
6570 printf %s "(cached) " >&6
6571 else $as_nop
6572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6573 /* end confdefs.h. */
6574 int i;
6575 _ACEOF
6576 if ac_fn_c_try_compile "$LINENO"
6577 then :
6578 xorg_cv_cc_flag_unknown_warning_option=yes
6579 else $as_nop
6580 xorg_cv_cc_flag_unknown_warning_option=no
6581 fi
6582 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6583 fi
6584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6585 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6586 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6587 CFLAGS="$xorg_testset_save_CFLAGS"
6588 fi
6589
6590 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6591 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6592 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6593 fi
6594 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6595 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6596 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6597 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6598 then :
6599 printf %s "(cached) " >&6
6600 else $as_nop
6601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6602 /* end confdefs.h. */
6603 int i;
6604 _ACEOF
6605 if ac_fn_c_try_compile "$LINENO"
6606 then :
6607 xorg_cv_cc_flag_unused_command_line_argument=yes
6608 else $as_nop
6609 xorg_cv_cc_flag_unused_command_line_argument=no
6610 fi
6611 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6612 fi
6613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6614 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6615 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6616 CFLAGS="$xorg_testset_save_CFLAGS"
6617 fi
6618
6619 found="no"
6620
6621 if test $found = "no" ; then
6622 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6623 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6624 fi
6625
6626 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6627 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6628 fi
6629
6630 CFLAGS="$CFLAGS -Wshadow"
6631
6632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6633 printf %s "checking if $CC supports -Wshadow... " >&6; }
6634 cacheid=xorg_cv_cc_flag__Wshadow
6635 if eval test \${$cacheid+y}
6636 then :
6637 printf %s "(cached) " >&6
6638 else $as_nop
6639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6640 /* end confdefs.h. */
6641 int i;
6642 int
6643 main (void)
6644 {
6645
6646 ;
6647 return 0;
6648 }
6649 _ACEOF
6650 if ac_fn_c_try_link "$LINENO"
6651 then :
6652 eval $cacheid=yes
6653 else $as_nop
6654 eval $cacheid=no
6655 fi
6656 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6657 conftest$ac_exeext conftest.$ac_ext
6658 fi
6659
6660
6661 CFLAGS="$xorg_testset_save_CFLAGS"
6662
6663 eval supported=\$$cacheid
6664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6665 printf "%s\n" "$supported" >&6; }
6666 if test "$supported" = "yes" ; then
6667 BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6668 found="yes"
6669 fi
6670 fi
6671
6672
6673
6674
6675
6676
6677
6678
6679
6680
6681
6682
6683
6684
6685
6686 xorg_testset_save_CFLAGS="$CFLAGS"
6687
6688 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6689 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6690 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6691 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6692 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6693 then :
6694 printf %s "(cached) " >&6
6695 else $as_nop
6696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6697 /* end confdefs.h. */
6698 int i;
6699 _ACEOF
6700 if ac_fn_c_try_compile "$LINENO"
6701 then :
6702 xorg_cv_cc_flag_unknown_warning_option=yes
6703 else $as_nop
6704 xorg_cv_cc_flag_unknown_warning_option=no
6705 fi
6706 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6707 fi
6708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6709 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6710 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6711 CFLAGS="$xorg_testset_save_CFLAGS"
6712 fi
6713
6714 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6715 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6716 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6717 fi
6718 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6720 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6721 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6722 then :
6723 printf %s "(cached) " >&6
6724 else $as_nop
6725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6726 /* end confdefs.h. */
6727 int i;
6728 _ACEOF
6729 if ac_fn_c_try_compile "$LINENO"
6730 then :
6731 xorg_cv_cc_flag_unused_command_line_argument=yes
6732 else $as_nop
6733 xorg_cv_cc_flag_unused_command_line_argument=no
6734 fi
6735 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6736 fi
6737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6738 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6739 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6740 CFLAGS="$xorg_testset_save_CFLAGS"
6741 fi
6742
6743 found="no"
6744
6745 if test $found = "no" ; then
6746 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6747 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6748 fi
6749
6750 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6751 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6752 fi
6753
6754 CFLAGS="$CFLAGS -Wmissing-noreturn"
6755
6756 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6757 printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; }
6758 cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6759 if eval test \${$cacheid+y}
6760 then :
6761 printf %s "(cached) " >&6
6762 else $as_nop
6763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6764 /* end confdefs.h. */
6765 int i;
6766 int
6767 main (void)
6768 {
6769
6770 ;
6771 return 0;
6772 }
6773 _ACEOF
6774 if ac_fn_c_try_link "$LINENO"
6775 then :
6776 eval $cacheid=yes
6777 else $as_nop
6778 eval $cacheid=no
6779 fi
6780 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6781 conftest$ac_exeext conftest.$ac_ext
6782 fi
6783
6784
6785 CFLAGS="$xorg_testset_save_CFLAGS"
6786
6787 eval supported=\$$cacheid
6788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6789 printf "%s\n" "$supported" >&6; }
6790 if test "$supported" = "yes" ; then
6791 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6792 found="yes"
6793 fi
6794 fi
6795
6796
6797
6798
6799
6800
6801
6802
6803
6804
6805
6806
6807
6808
6809
6810 xorg_testset_save_CFLAGS="$CFLAGS"
6811
6812 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6813 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6815 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6816 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6817 then :
6818 printf %s "(cached) " >&6
6819 else $as_nop
6820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6821 /* end confdefs.h. */
6822 int i;
6823 _ACEOF
6824 if ac_fn_c_try_compile "$LINENO"
6825 then :
6826 xorg_cv_cc_flag_unknown_warning_option=yes
6827 else $as_nop
6828 xorg_cv_cc_flag_unknown_warning_option=no
6829 fi
6830 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6831 fi
6832 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6833 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6834 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6835 CFLAGS="$xorg_testset_save_CFLAGS"
6836 fi
6837
6838 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6839 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6840 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6841 fi
6842 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6844 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6845 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6846 then :
6847 printf %s "(cached) " >&6
6848 else $as_nop
6849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6850 /* end confdefs.h. */
6851 int i;
6852 _ACEOF
6853 if ac_fn_c_try_compile "$LINENO"
6854 then :
6855 xorg_cv_cc_flag_unused_command_line_argument=yes
6856 else $as_nop
6857 xorg_cv_cc_flag_unused_command_line_argument=no
6858 fi
6859 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6860 fi
6861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6862 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6863 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6864 CFLAGS="$xorg_testset_save_CFLAGS"
6865 fi
6866
6867 found="no"
6868
6869 if test $found = "no" ; then
6870 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6871 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6872 fi
6873
6874 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6875 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6876 fi
6877
6878 CFLAGS="$CFLAGS -Wmissing-format-attribute"
6879
6880 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6881 printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6882 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6883 if eval test \${$cacheid+y}
6884 then :
6885 printf %s "(cached) " >&6
6886 else $as_nop
6887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6888 /* end confdefs.h. */
6889 int i;
6890 int
6891 main (void)
6892 {
6893
6894 ;
6895 return 0;
6896 }
6897 _ACEOF
6898 if ac_fn_c_try_link "$LINENO"
6899 then :
6900 eval $cacheid=yes
6901 else $as_nop
6902 eval $cacheid=no
6903 fi
6904 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6905 conftest$ac_exeext conftest.$ac_ext
6906 fi
6907
6908
6909 CFLAGS="$xorg_testset_save_CFLAGS"
6910
6911 eval supported=\$$cacheid
6912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6913 printf "%s\n" "$supported" >&6; }
6914 if test "$supported" = "yes" ; then
6915 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6916 found="yes"
6917 fi
6918 fi
6919
6920
6921
6922
6923
6924
6925
6926
6927
6928
6929
6930
6931
6932
6933
6934 xorg_testset_save_CFLAGS="$CFLAGS"
6935
6936 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6937 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6939 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6940 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6941 then :
6942 printf %s "(cached) " >&6
6943 else $as_nop
6944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6945 /* end confdefs.h. */
6946 int i;
6947 _ACEOF
6948 if ac_fn_c_try_compile "$LINENO"
6949 then :
6950 xorg_cv_cc_flag_unknown_warning_option=yes
6951 else $as_nop
6952 xorg_cv_cc_flag_unknown_warning_option=no
6953 fi
6954 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6955 fi
6956 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6957 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6958 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6959 CFLAGS="$xorg_testset_save_CFLAGS"
6960 fi
6961
6962 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6963 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6964 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6965 fi
6966 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6968 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6969 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6970 then :
6971 printf %s "(cached) " >&6
6972 else $as_nop
6973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6974 /* end confdefs.h. */
6975 int i;
6976 _ACEOF
6977 if ac_fn_c_try_compile "$LINENO"
6978 then :
6979 xorg_cv_cc_flag_unused_command_line_argument=yes
6980 else $as_nop
6981 xorg_cv_cc_flag_unused_command_line_argument=no
6982 fi
6983 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6984 fi
6985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6986 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6987 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6988 CFLAGS="$xorg_testset_save_CFLAGS"
6989 fi
6990
6991 found="no"
6992
6993 if test $found = "no" ; then
6994 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6995 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6996 fi
6997
6998 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6999 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7000 fi
7001
7002 CFLAGS="$CFLAGS -Wredundant-decls"
7003
7004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
7005 printf %s "checking if $CC supports -Wredundant-decls... " >&6; }
7006 cacheid=xorg_cv_cc_flag__Wredundant_decls
7007 if eval test \${$cacheid+y}
7008 then :
7009 printf %s "(cached) " >&6
7010 else $as_nop
7011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7012 /* end confdefs.h. */
7013 int i;
7014 int
7015 main (void)
7016 {
7017
7018 ;
7019 return 0;
7020 }
7021 _ACEOF
7022 if ac_fn_c_try_link "$LINENO"
7023 then :
7024 eval $cacheid=yes
7025 else $as_nop
7026 eval $cacheid=no
7027 fi
7028 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7029 conftest$ac_exeext conftest.$ac_ext
7030 fi
7031
7032
7033 CFLAGS="$xorg_testset_save_CFLAGS"
7034
7035 eval supported=\$$cacheid
7036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7037 printf "%s\n" "$supported" >&6; }
7038 if test "$supported" = "yes" ; then
7039 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
7040 found="yes"
7041 fi
7042 fi
7043
7044
7045
7046
7047
7048
7049
7050
7051
7052
7053
7054
7055
7056
7057
7058 xorg_testset_save_CFLAGS="$CFLAGS"
7059
7060 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7061 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7063 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7064 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7065 then :
7066 printf %s "(cached) " >&6
7067 else $as_nop
7068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7069 /* end confdefs.h. */
7070 int i;
7071 _ACEOF
7072 if ac_fn_c_try_compile "$LINENO"
7073 then :
7074 xorg_cv_cc_flag_unknown_warning_option=yes
7075 else $as_nop
7076 xorg_cv_cc_flag_unknown_warning_option=no
7077 fi
7078 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7079 fi
7080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7081 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7082 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7083 CFLAGS="$xorg_testset_save_CFLAGS"
7084 fi
7085
7086 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7087 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7088 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7089 fi
7090 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7092 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7093 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7094 then :
7095 printf %s "(cached) " >&6
7096 else $as_nop
7097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7098 /* end confdefs.h. */
7099 int i;
7100 _ACEOF
7101 if ac_fn_c_try_compile "$LINENO"
7102 then :
7103 xorg_cv_cc_flag_unused_command_line_argument=yes
7104 else $as_nop
7105 xorg_cv_cc_flag_unused_command_line_argument=no
7106 fi
7107 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7108 fi
7109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7110 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7111 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7112 CFLAGS="$xorg_testset_save_CFLAGS"
7113 fi
7114
7115 found="no"
7116
7117 if test $found = "no" ; then
7118 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7119 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7120 fi
7121
7122 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7123 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7124 fi
7125
7126 CFLAGS="$CFLAGS -Wlogical-op"
7127
7128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
7129 printf %s "checking if $CC supports -Wlogical-op... " >&6; }
7130 cacheid=xorg_cv_cc_flag__Wlogical_op
7131 if eval test \${$cacheid+y}
7132 then :
7133 printf %s "(cached) " >&6
7134 else $as_nop
7135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7136 /* end confdefs.h. */
7137 int i;
7138 int
7139 main (void)
7140 {
7141
7142 ;
7143 return 0;
7144 }
7145 _ACEOF
7146 if ac_fn_c_try_link "$LINENO"
7147 then :
7148 eval $cacheid=yes
7149 else $as_nop
7150 eval $cacheid=no
7151 fi
7152 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7153 conftest$ac_exeext conftest.$ac_ext
7154 fi
7155
7156
7157 CFLAGS="$xorg_testset_save_CFLAGS"
7158
7159 eval supported=\$$cacheid
7160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7161 printf "%s\n" "$supported" >&6; }
7162 if test "$supported" = "yes" ; then
7163 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
7164 found="yes"
7165 fi
7166 fi
7167
7168
7169
7170 # These are currently disabled because they are noisy. They will be enabled
7171 # in the future once the codebase is sufficiently modernized to silence
7172 # them. For now, I don't want them to drown out the other warnings.
7173 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
7174 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
7175 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
7176
7177 # Turn some warnings into errors, so we don't accidentally get successful builds
7178 # when there are problems that should be fixed.
7179
7180 if test "x$SELECTIVE_WERROR" = "xyes" ; then
7181
7182
7183
7184
7185
7186
7187
7188
7189
7190
7191
7192
7193
7194 xorg_testset_save_CFLAGS="$CFLAGS"
7195
7196 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7197 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7199 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7200 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7201 then :
7202 printf %s "(cached) " >&6
7203 else $as_nop
7204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7205 /* end confdefs.h. */
7206 int i;
7207 _ACEOF
7208 if ac_fn_c_try_compile "$LINENO"
7209 then :
7210 xorg_cv_cc_flag_unknown_warning_option=yes
7211 else $as_nop
7212 xorg_cv_cc_flag_unknown_warning_option=no
7213 fi
7214 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7215 fi
7216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7217 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7218 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7219 CFLAGS="$xorg_testset_save_CFLAGS"
7220 fi
7221
7222 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7223 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7224 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7225 fi
7226 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7227 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7228 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7229 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7230 then :
7231 printf %s "(cached) " >&6
7232 else $as_nop
7233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7234 /* end confdefs.h. */
7235 int i;
7236 _ACEOF
7237 if ac_fn_c_try_compile "$LINENO"
7238 then :
7239 xorg_cv_cc_flag_unused_command_line_argument=yes
7240 else $as_nop
7241 xorg_cv_cc_flag_unused_command_line_argument=no
7242 fi
7243 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7244 fi
7245 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7246 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7247 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7248 CFLAGS="$xorg_testset_save_CFLAGS"
7249 fi
7250
7251 found="no"
7252
7253 if test $found = "no" ; then
7254 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7255 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7256 fi
7257
7258 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7259 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7260 fi
7261
7262 CFLAGS="$CFLAGS -Werror=implicit"
7263
7264 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
7265 printf %s "checking if $CC supports -Werror=implicit... " >&6; }
7266 cacheid=xorg_cv_cc_flag__Werror_implicit
7267 if eval test \${$cacheid+y}
7268 then :
7269 printf %s "(cached) " >&6
7270 else $as_nop
7271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7272 /* end confdefs.h. */
7273 int i;
7274 int
7275 main (void)
7276 {
7277
7278 ;
7279 return 0;
7280 }
7281 _ACEOF
7282 if ac_fn_c_try_link "$LINENO"
7283 then :
7284 eval $cacheid=yes
7285 else $as_nop
7286 eval $cacheid=no
7287 fi
7288 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7289 conftest$ac_exeext conftest.$ac_ext
7290 fi
7291
7292
7293 CFLAGS="$xorg_testset_save_CFLAGS"
7294
7295 eval supported=\$$cacheid
7296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7297 printf "%s\n" "$supported" >&6; }
7298 if test "$supported" = "yes" ; then
7299 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
7300 found="yes"
7301 fi
7302 fi
7303
7304 if test $found = "no" ; then
7305 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7306 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7307 fi
7308
7309 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7310 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7311 fi
7312
7313 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7314
7315 { 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
7316 printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
7317 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
7318 if eval test \${$cacheid+y}
7319 then :
7320 printf %s "(cached) " >&6
7321 else $as_nop
7322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7323 /* end confdefs.h. */
7324 int i;
7325 int
7326 main (void)
7327 {
7328
7329 ;
7330 return 0;
7331 }
7332 _ACEOF
7333 if ac_fn_c_try_link "$LINENO"
7334 then :
7335 eval $cacheid=yes
7336 else $as_nop
7337 eval $cacheid=no
7338 fi
7339 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7340 conftest$ac_exeext conftest.$ac_ext
7341 fi
7342
7343
7344 CFLAGS="$xorg_testset_save_CFLAGS"
7345
7346 eval supported=\$$cacheid
7347 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7348 printf "%s\n" "$supported" >&6; }
7349 if test "$supported" = "yes" ; then
7350 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7351 found="yes"
7352 fi
7353 fi
7354
7355
7356
7357
7358
7359
7360
7361
7362
7363
7364
7365
7366
7367
7368
7369 xorg_testset_save_CFLAGS="$CFLAGS"
7370
7371 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7372 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7374 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7375 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7376 then :
7377 printf %s "(cached) " >&6
7378 else $as_nop
7379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7380 /* end confdefs.h. */
7381 int i;
7382 _ACEOF
7383 if ac_fn_c_try_compile "$LINENO"
7384 then :
7385 xorg_cv_cc_flag_unknown_warning_option=yes
7386 else $as_nop
7387 xorg_cv_cc_flag_unknown_warning_option=no
7388 fi
7389 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7390 fi
7391 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7392 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7393 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7394 CFLAGS="$xorg_testset_save_CFLAGS"
7395 fi
7396
7397 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7398 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7399 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7400 fi
7401 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7403 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7404 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7405 then :
7406 printf %s "(cached) " >&6
7407 else $as_nop
7408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7409 /* end confdefs.h. */
7410 int i;
7411 _ACEOF
7412 if ac_fn_c_try_compile "$LINENO"
7413 then :
7414 xorg_cv_cc_flag_unused_command_line_argument=yes
7415 else $as_nop
7416 xorg_cv_cc_flag_unused_command_line_argument=no
7417 fi
7418 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7419 fi
7420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7421 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7422 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7423 CFLAGS="$xorg_testset_save_CFLAGS"
7424 fi
7425
7426 found="no"
7427
7428 if test $found = "no" ; then
7429 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7430 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7431 fi
7432
7433 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7434 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7435 fi
7436
7437 CFLAGS="$CFLAGS -Werror=nonnull"
7438
7439 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
7440 printf %s "checking if $CC supports -Werror=nonnull... " >&6; }
7441 cacheid=xorg_cv_cc_flag__Werror_nonnull
7442 if eval test \${$cacheid+y}
7443 then :
7444 printf %s "(cached) " >&6
7445 else $as_nop
7446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7447 /* end confdefs.h. */
7448 int i;
7449 int
7450 main (void)
7451 {
7452
7453 ;
7454 return 0;
7455 }
7456 _ACEOF
7457 if ac_fn_c_try_link "$LINENO"
7458 then :
7459 eval $cacheid=yes
7460 else $as_nop
7461 eval $cacheid=no
7462 fi
7463 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7464 conftest$ac_exeext conftest.$ac_ext
7465 fi
7466
7467
7468 CFLAGS="$xorg_testset_save_CFLAGS"
7469
7470 eval supported=\$$cacheid
7471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7472 printf "%s\n" "$supported" >&6; }
7473 if test "$supported" = "yes" ; then
7474 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7475 found="yes"
7476 fi
7477 fi
7478
7479
7480
7481
7482
7483
7484
7485
7486
7487
7488
7489
7490
7491
7492
7493 xorg_testset_save_CFLAGS="$CFLAGS"
7494
7495 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7496 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7498 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7499 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7500 then :
7501 printf %s "(cached) " >&6
7502 else $as_nop
7503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7504 /* end confdefs.h. */
7505 int i;
7506 _ACEOF
7507 if ac_fn_c_try_compile "$LINENO"
7508 then :
7509 xorg_cv_cc_flag_unknown_warning_option=yes
7510 else $as_nop
7511 xorg_cv_cc_flag_unknown_warning_option=no
7512 fi
7513 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7514 fi
7515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7516 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7517 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7518 CFLAGS="$xorg_testset_save_CFLAGS"
7519 fi
7520
7521 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7522 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7523 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7524 fi
7525 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7527 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7528 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7529 then :
7530 printf %s "(cached) " >&6
7531 else $as_nop
7532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7533 /* end confdefs.h. */
7534 int i;
7535 _ACEOF
7536 if ac_fn_c_try_compile "$LINENO"
7537 then :
7538 xorg_cv_cc_flag_unused_command_line_argument=yes
7539 else $as_nop
7540 xorg_cv_cc_flag_unused_command_line_argument=no
7541 fi
7542 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7543 fi
7544 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7545 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7546 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7547 CFLAGS="$xorg_testset_save_CFLAGS"
7548 fi
7549
7550 found="no"
7551
7552 if test $found = "no" ; then
7553 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7554 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7555 fi
7556
7557 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7558 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7559 fi
7560
7561 CFLAGS="$CFLAGS -Werror=init-self"
7562
7563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7564 printf %s "checking if $CC supports -Werror=init-self... " >&6; }
7565 cacheid=xorg_cv_cc_flag__Werror_init_self
7566 if eval test \${$cacheid+y}
7567 then :
7568 printf %s "(cached) " >&6
7569 else $as_nop
7570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7571 /* end confdefs.h. */
7572 int i;
7573 int
7574 main (void)
7575 {
7576
7577 ;
7578 return 0;
7579 }
7580 _ACEOF
7581 if ac_fn_c_try_link "$LINENO"
7582 then :
7583 eval $cacheid=yes
7584 else $as_nop
7585 eval $cacheid=no
7586 fi
7587 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7588 conftest$ac_exeext conftest.$ac_ext
7589 fi
7590
7591
7592 CFLAGS="$xorg_testset_save_CFLAGS"
7593
7594 eval supported=\$$cacheid
7595 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7596 printf "%s\n" "$supported" >&6; }
7597 if test "$supported" = "yes" ; then
7598 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7599 found="yes"
7600 fi
7601 fi
7602
7603
7604
7605
7606
7607
7608
7609
7610
7611
7612
7613
7614
7615
7616
7617 xorg_testset_save_CFLAGS="$CFLAGS"
7618
7619 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7620 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7622 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7623 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7624 then :
7625 printf %s "(cached) " >&6
7626 else $as_nop
7627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7628 /* end confdefs.h. */
7629 int i;
7630 _ACEOF
7631 if ac_fn_c_try_compile "$LINENO"
7632 then :
7633 xorg_cv_cc_flag_unknown_warning_option=yes
7634 else $as_nop
7635 xorg_cv_cc_flag_unknown_warning_option=no
7636 fi
7637 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7638 fi
7639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7640 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7641 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7642 CFLAGS="$xorg_testset_save_CFLAGS"
7643 fi
7644
7645 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7646 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7647 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7648 fi
7649 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7651 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7652 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7653 then :
7654 printf %s "(cached) " >&6
7655 else $as_nop
7656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7657 /* end confdefs.h. */
7658 int i;
7659 _ACEOF
7660 if ac_fn_c_try_compile "$LINENO"
7661 then :
7662 xorg_cv_cc_flag_unused_command_line_argument=yes
7663 else $as_nop
7664 xorg_cv_cc_flag_unused_command_line_argument=no
7665 fi
7666 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7667 fi
7668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7669 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7670 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7671 CFLAGS="$xorg_testset_save_CFLAGS"
7672 fi
7673
7674 found="no"
7675
7676 if test $found = "no" ; then
7677 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7678 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7679 fi
7680
7681 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7682 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7683 fi
7684
7685 CFLAGS="$CFLAGS -Werror=main"
7686
7687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7688 printf %s "checking if $CC supports -Werror=main... " >&6; }
7689 cacheid=xorg_cv_cc_flag__Werror_main
7690 if eval test \${$cacheid+y}
7691 then :
7692 printf %s "(cached) " >&6
7693 else $as_nop
7694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7695 /* end confdefs.h. */
7696 int i;
7697 int
7698 main (void)
7699 {
7700
7701 ;
7702 return 0;
7703 }
7704 _ACEOF
7705 if ac_fn_c_try_link "$LINENO"
7706 then :
7707 eval $cacheid=yes
7708 else $as_nop
7709 eval $cacheid=no
7710 fi
7711 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7712 conftest$ac_exeext conftest.$ac_ext
7713 fi
7714
7715
7716 CFLAGS="$xorg_testset_save_CFLAGS"
7717
7718 eval supported=\$$cacheid
7719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7720 printf "%s\n" "$supported" >&6; }
7721 if test "$supported" = "yes" ; then
7722 BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7723 found="yes"
7724 fi
7725 fi
7726
7727
7728
7729
7730
7731
7732
7733
7734
7735
7736
7737
7738
7739
7740
7741 xorg_testset_save_CFLAGS="$CFLAGS"
7742
7743 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7744 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7746 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7747 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7748 then :
7749 printf %s "(cached) " >&6
7750 else $as_nop
7751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7752 /* end confdefs.h. */
7753 int i;
7754 _ACEOF
7755 if ac_fn_c_try_compile "$LINENO"
7756 then :
7757 xorg_cv_cc_flag_unknown_warning_option=yes
7758 else $as_nop
7759 xorg_cv_cc_flag_unknown_warning_option=no
7760 fi
7761 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7762 fi
7763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7764 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7765 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7766 CFLAGS="$xorg_testset_save_CFLAGS"
7767 fi
7768
7769 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7770 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7771 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7772 fi
7773 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7775 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7776 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7777 then :
7778 printf %s "(cached) " >&6
7779 else $as_nop
7780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7781 /* end confdefs.h. */
7782 int i;
7783 _ACEOF
7784 if ac_fn_c_try_compile "$LINENO"
7785 then :
7786 xorg_cv_cc_flag_unused_command_line_argument=yes
7787 else $as_nop
7788 xorg_cv_cc_flag_unused_command_line_argument=no
7789 fi
7790 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7791 fi
7792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7793 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7794 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7795 CFLAGS="$xorg_testset_save_CFLAGS"
7796 fi
7797
7798 found="no"
7799
7800 if test $found = "no" ; then
7801 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7802 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7803 fi
7804
7805 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7806 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7807 fi
7808
7809 CFLAGS="$CFLAGS -Werror=missing-braces"
7810
7811 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
7812 printf %s "checking if $CC supports -Werror=missing-braces... " >&6; }
7813 cacheid=xorg_cv_cc_flag__Werror_missing_braces
7814 if eval test \${$cacheid+y}
7815 then :
7816 printf %s "(cached) " >&6
7817 else $as_nop
7818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7819 /* end confdefs.h. */
7820 int i;
7821 int
7822 main (void)
7823 {
7824
7825 ;
7826 return 0;
7827 }
7828 _ACEOF
7829 if ac_fn_c_try_link "$LINENO"
7830 then :
7831 eval $cacheid=yes
7832 else $as_nop
7833 eval $cacheid=no
7834 fi
7835 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7836 conftest$ac_exeext conftest.$ac_ext
7837 fi
7838
7839
7840 CFLAGS="$xorg_testset_save_CFLAGS"
7841
7842 eval supported=\$$cacheid
7843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7844 printf "%s\n" "$supported" >&6; }
7845 if test "$supported" = "yes" ; then
7846 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7847 found="yes"
7848 fi
7849 fi
7850
7851
7852
7853
7854
7855
7856
7857
7858
7859
7860
7861
7862
7863
7864
7865 xorg_testset_save_CFLAGS="$CFLAGS"
7866
7867 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7868 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7869 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7870 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7871 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7872 then :
7873 printf %s "(cached) " >&6
7874 else $as_nop
7875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7876 /* end confdefs.h. */
7877 int i;
7878 _ACEOF
7879 if ac_fn_c_try_compile "$LINENO"
7880 then :
7881 xorg_cv_cc_flag_unknown_warning_option=yes
7882 else $as_nop
7883 xorg_cv_cc_flag_unknown_warning_option=no
7884 fi
7885 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7886 fi
7887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7888 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7889 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7890 CFLAGS="$xorg_testset_save_CFLAGS"
7891 fi
7892
7893 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7894 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7895 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7896 fi
7897 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7899 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7900 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7901 then :
7902 printf %s "(cached) " >&6
7903 else $as_nop
7904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7905 /* end confdefs.h. */
7906 int i;
7907 _ACEOF
7908 if ac_fn_c_try_compile "$LINENO"
7909 then :
7910 xorg_cv_cc_flag_unused_command_line_argument=yes
7911 else $as_nop
7912 xorg_cv_cc_flag_unused_command_line_argument=no
7913 fi
7914 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7915 fi
7916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7917 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7918 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7919 CFLAGS="$xorg_testset_save_CFLAGS"
7920 fi
7921
7922 found="no"
7923
7924 if test $found = "no" ; then
7925 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7926 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7927 fi
7928
7929 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7930 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7931 fi
7932
7933 CFLAGS="$CFLAGS -Werror=sequence-point"
7934
7935 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
7936 printf %s "checking if $CC supports -Werror=sequence-point... " >&6; }
7937 cacheid=xorg_cv_cc_flag__Werror_sequence_point
7938 if eval test \${$cacheid+y}
7939 then :
7940 printf %s "(cached) " >&6
7941 else $as_nop
7942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7943 /* end confdefs.h. */
7944 int i;
7945 int
7946 main (void)
7947 {
7948
7949 ;
7950 return 0;
7951 }
7952 _ACEOF
7953 if ac_fn_c_try_link "$LINENO"
7954 then :
7955 eval $cacheid=yes
7956 else $as_nop
7957 eval $cacheid=no
7958 fi
7959 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7960 conftest$ac_exeext conftest.$ac_ext
7961 fi
7962
7963
7964 CFLAGS="$xorg_testset_save_CFLAGS"
7965
7966 eval supported=\$$cacheid
7967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7968 printf "%s\n" "$supported" >&6; }
7969 if test "$supported" = "yes" ; then
7970 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
7971 found="yes"
7972 fi
7973 fi
7974
7975
7976
7977
7978
7979
7980
7981
7982
7983
7984
7985
7986
7987
7988
7989 xorg_testset_save_CFLAGS="$CFLAGS"
7990
7991 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7992 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7994 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7995 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7996 then :
7997 printf %s "(cached) " >&6
7998 else $as_nop
7999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8000 /* end confdefs.h. */
8001 int i;
8002 _ACEOF
8003 if ac_fn_c_try_compile "$LINENO"
8004 then :
8005 xorg_cv_cc_flag_unknown_warning_option=yes
8006 else $as_nop
8007 xorg_cv_cc_flag_unknown_warning_option=no
8008 fi
8009 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8010 fi
8011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8012 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8013 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8014 CFLAGS="$xorg_testset_save_CFLAGS"
8015 fi
8016
8017 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8018 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8019 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8020 fi
8021 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8022 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8023 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8024 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8025 then :
8026 printf %s "(cached) " >&6
8027 else $as_nop
8028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8029 /* end confdefs.h. */
8030 int i;
8031 _ACEOF
8032 if ac_fn_c_try_compile "$LINENO"
8033 then :
8034 xorg_cv_cc_flag_unused_command_line_argument=yes
8035 else $as_nop
8036 xorg_cv_cc_flag_unused_command_line_argument=no
8037 fi
8038 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8039 fi
8040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8041 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8042 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8043 CFLAGS="$xorg_testset_save_CFLAGS"
8044 fi
8045
8046 found="no"
8047
8048 if test $found = "no" ; then
8049 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8050 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8051 fi
8052
8053 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8054 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8055 fi
8056
8057 CFLAGS="$CFLAGS -Werror=return-type"
8058
8059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
8060 printf %s "checking if $CC supports -Werror=return-type... " >&6; }
8061 cacheid=xorg_cv_cc_flag__Werror_return_type
8062 if eval test \${$cacheid+y}
8063 then :
8064 printf %s "(cached) " >&6
8065 else $as_nop
8066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8067 /* end confdefs.h. */
8068 int i;
8069 int
8070 main (void)
8071 {
8072
8073 ;
8074 return 0;
8075 }
8076 _ACEOF
8077 if ac_fn_c_try_link "$LINENO"
8078 then :
8079 eval $cacheid=yes
8080 else $as_nop
8081 eval $cacheid=no
8082 fi
8083 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8084 conftest$ac_exeext conftest.$ac_ext
8085 fi
8086
8087
8088 CFLAGS="$xorg_testset_save_CFLAGS"
8089
8090 eval supported=\$$cacheid
8091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8092 printf "%s\n" "$supported" >&6; }
8093 if test "$supported" = "yes" ; then
8094 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
8095 found="yes"
8096 fi
8097 fi
8098
8099 if test $found = "no" ; then
8100 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8101 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8102 fi
8103
8104 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8105 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8106 fi
8107
8108 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8109
8110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
8111 printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
8112 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
8113 if eval test \${$cacheid+y}
8114 then :
8115 printf %s "(cached) " >&6
8116 else $as_nop
8117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8118 /* end confdefs.h. */
8119 int i;
8120 int
8121 main (void)
8122 {
8123
8124 ;
8125 return 0;
8126 }
8127 _ACEOF
8128 if ac_fn_c_try_link "$LINENO"
8129 then :
8130 eval $cacheid=yes
8131 else $as_nop
8132 eval $cacheid=no
8133 fi
8134 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8135 conftest$ac_exeext conftest.$ac_ext
8136 fi
8137
8138
8139 CFLAGS="$xorg_testset_save_CFLAGS"
8140
8141 eval supported=\$$cacheid
8142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8143 printf "%s\n" "$supported" >&6; }
8144 if test "$supported" = "yes" ; then
8145 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8146 found="yes"
8147 fi
8148 fi
8149
8150
8151
8152
8153
8154
8155
8156
8157
8158
8159
8160
8161
8162
8163
8164 xorg_testset_save_CFLAGS="$CFLAGS"
8165
8166 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8167 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8169 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8170 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8171 then :
8172 printf %s "(cached) " >&6
8173 else $as_nop
8174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8175 /* end confdefs.h. */
8176 int i;
8177 _ACEOF
8178 if ac_fn_c_try_compile "$LINENO"
8179 then :
8180 xorg_cv_cc_flag_unknown_warning_option=yes
8181 else $as_nop
8182 xorg_cv_cc_flag_unknown_warning_option=no
8183 fi
8184 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8185 fi
8186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8187 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8188 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8189 CFLAGS="$xorg_testset_save_CFLAGS"
8190 fi
8191
8192 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8193 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8194 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8195 fi
8196 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8197 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8198 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8199 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8200 then :
8201 printf %s "(cached) " >&6
8202 else $as_nop
8203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8204 /* end confdefs.h. */
8205 int i;
8206 _ACEOF
8207 if ac_fn_c_try_compile "$LINENO"
8208 then :
8209 xorg_cv_cc_flag_unused_command_line_argument=yes
8210 else $as_nop
8211 xorg_cv_cc_flag_unused_command_line_argument=no
8212 fi
8213 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8214 fi
8215 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8216 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8217 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8218 CFLAGS="$xorg_testset_save_CFLAGS"
8219 fi
8220
8221 found="no"
8222
8223 if test $found = "no" ; then
8224 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8225 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8226 fi
8227
8228 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8229 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8230 fi
8231
8232 CFLAGS="$CFLAGS -Werror=trigraphs"
8233
8234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
8235 printf %s "checking if $CC supports -Werror=trigraphs... " >&6; }
8236 cacheid=xorg_cv_cc_flag__Werror_trigraphs
8237 if eval test \${$cacheid+y}
8238 then :
8239 printf %s "(cached) " >&6
8240 else $as_nop
8241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8242 /* end confdefs.h. */
8243 int i;
8244 int
8245 main (void)
8246 {
8247
8248 ;
8249 return 0;
8250 }
8251 _ACEOF
8252 if ac_fn_c_try_link "$LINENO"
8253 then :
8254 eval $cacheid=yes
8255 else $as_nop
8256 eval $cacheid=no
8257 fi
8258 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8259 conftest$ac_exeext conftest.$ac_ext
8260 fi
8261
8262
8263 CFLAGS="$xorg_testset_save_CFLAGS"
8264
8265 eval supported=\$$cacheid
8266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8267 printf "%s\n" "$supported" >&6; }
8268 if test "$supported" = "yes" ; then
8269 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
8270 found="yes"
8271 fi
8272 fi
8273
8274
8275
8276
8277
8278
8279
8280
8281
8282
8283
8284
8285
8286
8287
8288 xorg_testset_save_CFLAGS="$CFLAGS"
8289
8290 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8291 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8292 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8293 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8294 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8295 then :
8296 printf %s "(cached) " >&6
8297 else $as_nop
8298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8299 /* end confdefs.h. */
8300 int i;
8301 _ACEOF
8302 if ac_fn_c_try_compile "$LINENO"
8303 then :
8304 xorg_cv_cc_flag_unknown_warning_option=yes
8305 else $as_nop
8306 xorg_cv_cc_flag_unknown_warning_option=no
8307 fi
8308 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8309 fi
8310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8311 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8312 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8313 CFLAGS="$xorg_testset_save_CFLAGS"
8314 fi
8315
8316 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8317 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8318 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8319 fi
8320 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8321 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8322 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8323 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8324 then :
8325 printf %s "(cached) " >&6
8326 else $as_nop
8327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8328 /* end confdefs.h. */
8329 int i;
8330 _ACEOF
8331 if ac_fn_c_try_compile "$LINENO"
8332 then :
8333 xorg_cv_cc_flag_unused_command_line_argument=yes
8334 else $as_nop
8335 xorg_cv_cc_flag_unused_command_line_argument=no
8336 fi
8337 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8338 fi
8339 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8340 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8341 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8342 CFLAGS="$xorg_testset_save_CFLAGS"
8343 fi
8344
8345 found="no"
8346
8347 if test $found = "no" ; then
8348 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8349 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8350 fi
8351
8352 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8353 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8354 fi
8355
8356 CFLAGS="$CFLAGS -Werror=array-bounds"
8357
8358 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
8359 printf %s "checking if $CC supports -Werror=array-bounds... " >&6; }
8360 cacheid=xorg_cv_cc_flag__Werror_array_bounds
8361 if eval test \${$cacheid+y}
8362 then :
8363 printf %s "(cached) " >&6
8364 else $as_nop
8365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8366 /* end confdefs.h. */
8367 int i;
8368 int
8369 main (void)
8370 {
8371
8372 ;
8373 return 0;
8374 }
8375 _ACEOF
8376 if ac_fn_c_try_link "$LINENO"
8377 then :
8378 eval $cacheid=yes
8379 else $as_nop
8380 eval $cacheid=no
8381 fi
8382 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8383 conftest$ac_exeext conftest.$ac_ext
8384 fi
8385
8386
8387 CFLAGS="$xorg_testset_save_CFLAGS"
8388
8389 eval supported=\$$cacheid
8390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8391 printf "%s\n" "$supported" >&6; }
8392 if test "$supported" = "yes" ; then
8393 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
8394 found="yes"
8395 fi
8396 fi
8397
8398
8399
8400
8401
8402
8403
8404
8405
8406
8407
8408
8409
8410
8411
8412 xorg_testset_save_CFLAGS="$CFLAGS"
8413
8414 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8415 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8416 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8417 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8418 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8419 then :
8420 printf %s "(cached) " >&6
8421 else $as_nop
8422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8423 /* end confdefs.h. */
8424 int i;
8425 _ACEOF
8426 if ac_fn_c_try_compile "$LINENO"
8427 then :
8428 xorg_cv_cc_flag_unknown_warning_option=yes
8429 else $as_nop
8430 xorg_cv_cc_flag_unknown_warning_option=no
8431 fi
8432 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8433 fi
8434 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8435 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8436 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8437 CFLAGS="$xorg_testset_save_CFLAGS"
8438 fi
8439
8440 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8441 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8442 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8443 fi
8444 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8445 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8446 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8447 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8448 then :
8449 printf %s "(cached) " >&6
8450 else $as_nop
8451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8452 /* end confdefs.h. */
8453 int i;
8454 _ACEOF
8455 if ac_fn_c_try_compile "$LINENO"
8456 then :
8457 xorg_cv_cc_flag_unused_command_line_argument=yes
8458 else $as_nop
8459 xorg_cv_cc_flag_unused_command_line_argument=no
8460 fi
8461 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8462 fi
8463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8464 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8465 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8466 CFLAGS="$xorg_testset_save_CFLAGS"
8467 fi
8468
8469 found="no"
8470
8471 if test $found = "no" ; then
8472 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8473 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8474 fi
8475
8476 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8477 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8478 fi
8479
8480 CFLAGS="$CFLAGS -Werror=write-strings"
8481
8482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
8483 printf %s "checking if $CC supports -Werror=write-strings... " >&6; }
8484 cacheid=xorg_cv_cc_flag__Werror_write_strings
8485 if eval test \${$cacheid+y}
8486 then :
8487 printf %s "(cached) " >&6
8488 else $as_nop
8489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8490 /* end confdefs.h. */
8491 int i;
8492 int
8493 main (void)
8494 {
8495
8496 ;
8497 return 0;
8498 }
8499 _ACEOF
8500 if ac_fn_c_try_link "$LINENO"
8501 then :
8502 eval $cacheid=yes
8503 else $as_nop
8504 eval $cacheid=no
8505 fi
8506 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8507 conftest$ac_exeext conftest.$ac_ext
8508 fi
8509
8510
8511 CFLAGS="$xorg_testset_save_CFLAGS"
8512
8513 eval supported=\$$cacheid
8514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8515 printf "%s\n" "$supported" >&6; }
8516 if test "$supported" = "yes" ; then
8517 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
8518 found="yes"
8519 fi
8520 fi
8521
8522
8523
8524
8525
8526
8527
8528
8529
8530
8531
8532
8533
8534
8535
8536 xorg_testset_save_CFLAGS="$CFLAGS"
8537
8538 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8539 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8540 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8541 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8542 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8543 then :
8544 printf %s "(cached) " >&6
8545 else $as_nop
8546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8547 /* end confdefs.h. */
8548 int i;
8549 _ACEOF
8550 if ac_fn_c_try_compile "$LINENO"
8551 then :
8552 xorg_cv_cc_flag_unknown_warning_option=yes
8553 else $as_nop
8554 xorg_cv_cc_flag_unknown_warning_option=no
8555 fi
8556 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8557 fi
8558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8559 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8560 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8561 CFLAGS="$xorg_testset_save_CFLAGS"
8562 fi
8563
8564 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8565 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8566 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8567 fi
8568 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8570 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8571 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8572 then :
8573 printf %s "(cached) " >&6
8574 else $as_nop
8575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8576 /* end confdefs.h. */
8577 int i;
8578 _ACEOF
8579 if ac_fn_c_try_compile "$LINENO"
8580 then :
8581 xorg_cv_cc_flag_unused_command_line_argument=yes
8582 else $as_nop
8583 xorg_cv_cc_flag_unused_command_line_argument=no
8584 fi
8585 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8586 fi
8587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8588 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8589 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8590 CFLAGS="$xorg_testset_save_CFLAGS"
8591 fi
8592
8593 found="no"
8594
8595 if test $found = "no" ; then
8596 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8597 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8598 fi
8599
8600 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8601 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8602 fi
8603
8604 CFLAGS="$CFLAGS -Werror=address"
8605
8606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
8607 printf %s "checking if $CC supports -Werror=address... " >&6; }
8608 cacheid=xorg_cv_cc_flag__Werror_address
8609 if eval test \${$cacheid+y}
8610 then :
8611 printf %s "(cached) " >&6
8612 else $as_nop
8613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8614 /* end confdefs.h. */
8615 int i;
8616 int
8617 main (void)
8618 {
8619
8620 ;
8621 return 0;
8622 }
8623 _ACEOF
8624 if ac_fn_c_try_link "$LINENO"
8625 then :
8626 eval $cacheid=yes
8627 else $as_nop
8628 eval $cacheid=no
8629 fi
8630 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8631 conftest$ac_exeext conftest.$ac_ext
8632 fi
8633
8634
8635 CFLAGS="$xorg_testset_save_CFLAGS"
8636
8637 eval supported=\$$cacheid
8638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8639 printf "%s\n" "$supported" >&6; }
8640 if test "$supported" = "yes" ; then
8641 BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8642 found="yes"
8643 fi
8644 fi
8645
8646
8647
8648
8649
8650
8651
8652
8653
8654
8655
8656
8657
8658
8659
8660 xorg_testset_save_CFLAGS="$CFLAGS"
8661
8662 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8663 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8665 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8666 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8667 then :
8668 printf %s "(cached) " >&6
8669 else $as_nop
8670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8671 /* end confdefs.h. */
8672 int i;
8673 _ACEOF
8674 if ac_fn_c_try_compile "$LINENO"
8675 then :
8676 xorg_cv_cc_flag_unknown_warning_option=yes
8677 else $as_nop
8678 xorg_cv_cc_flag_unknown_warning_option=no
8679 fi
8680 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8681 fi
8682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8683 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8684 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8685 CFLAGS="$xorg_testset_save_CFLAGS"
8686 fi
8687
8688 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8689 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8690 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8691 fi
8692 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8694 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8695 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8696 then :
8697 printf %s "(cached) " >&6
8698 else $as_nop
8699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8700 /* end confdefs.h. */
8701 int i;
8702 _ACEOF
8703 if ac_fn_c_try_compile "$LINENO"
8704 then :
8705 xorg_cv_cc_flag_unused_command_line_argument=yes
8706 else $as_nop
8707 xorg_cv_cc_flag_unused_command_line_argument=no
8708 fi
8709 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8710 fi
8711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8712 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8713 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8714 CFLAGS="$xorg_testset_save_CFLAGS"
8715 fi
8716
8717 found="no"
8718
8719 if test $found = "no" ; then
8720 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8721 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8722 fi
8723
8724 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8725 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8726 fi
8727
8728 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8729
8730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
8731 printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
8732 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
8733 if eval test \${$cacheid+y}
8734 then :
8735 printf %s "(cached) " >&6
8736 else $as_nop
8737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8738 /* end confdefs.h. */
8739 int i;
8740 int
8741 main (void)
8742 {
8743
8744 ;
8745 return 0;
8746 }
8747 _ACEOF
8748 if ac_fn_c_try_link "$LINENO"
8749 then :
8750 eval $cacheid=yes
8751 else $as_nop
8752 eval $cacheid=no
8753 fi
8754 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8755 conftest$ac_exeext conftest.$ac_ext
8756 fi
8757
8758
8759 CFLAGS="$xorg_testset_save_CFLAGS"
8760
8761 eval supported=\$$cacheid
8762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8763 printf "%s\n" "$supported" >&6; }
8764 if test "$supported" = "yes" ; then
8765 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8766 found="yes"
8767 fi
8768 fi
8769
8770 if test $found = "no" ; then
8771 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8772 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8773 fi
8774
8775 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8776 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8777 fi
8778
8779 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8780
8781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8782 printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8783 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
8784 if eval test \${$cacheid+y}
8785 then :
8786 printf %s "(cached) " >&6
8787 else $as_nop
8788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8789 /* end confdefs.h. */
8790 int i;
8791 int
8792 main (void)
8793 {
8794
8795 ;
8796 return 0;
8797 }
8798 _ACEOF
8799 if ac_fn_c_try_link "$LINENO"
8800 then :
8801 eval $cacheid=yes
8802 else $as_nop
8803 eval $cacheid=no
8804 fi
8805 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8806 conftest$ac_exeext conftest.$ac_ext
8807 fi
8808
8809
8810 CFLAGS="$xorg_testset_save_CFLAGS"
8811
8812 eval supported=\$$cacheid
8813 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8814 printf "%s\n" "$supported" >&6; }
8815 if test "$supported" = "yes" ; then
8816 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8817 found="yes"
8818 fi
8819 fi
8820
8821
8822
8823
8824
8825
8826
8827
8828
8829
8830
8831
8832
8833
8834
8835 xorg_testset_save_CFLAGS="$CFLAGS"
8836
8837 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8838 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8840 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8841 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8842 then :
8843 printf %s "(cached) " >&6
8844 else $as_nop
8845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8846 /* end confdefs.h. */
8847 int i;
8848 _ACEOF
8849 if ac_fn_c_try_compile "$LINENO"
8850 then :
8851 xorg_cv_cc_flag_unknown_warning_option=yes
8852 else $as_nop
8853 xorg_cv_cc_flag_unknown_warning_option=no
8854 fi
8855 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8856 fi
8857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8858 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8859 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8860 CFLAGS="$xorg_testset_save_CFLAGS"
8861 fi
8862
8863 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8864 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8865 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8866 fi
8867 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8869 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8870 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8871 then :
8872 printf %s "(cached) " >&6
8873 else $as_nop
8874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8875 /* end confdefs.h. */
8876 int i;
8877 _ACEOF
8878 if ac_fn_c_try_compile "$LINENO"
8879 then :
8880 xorg_cv_cc_flag_unused_command_line_argument=yes
8881 else $as_nop
8882 xorg_cv_cc_flag_unused_command_line_argument=no
8883 fi
8884 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8885 fi
8886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8887 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8888 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8889 CFLAGS="$xorg_testset_save_CFLAGS"
8890 fi
8891
8892 found="no"
8893
8894 if test $found = "no" ; then
8895 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8896 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8897 fi
8898
8899 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8900 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8901 fi
8902
8903 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
8904
8905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
8906 printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
8907 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
8908 if eval test \${$cacheid+y}
8909 then :
8910 printf %s "(cached) " >&6
8911 else $as_nop
8912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8913 /* end confdefs.h. */
8914 int i;
8915 int
8916 main (void)
8917 {
8918
8919 ;
8920 return 0;
8921 }
8922 _ACEOF
8923 if ac_fn_c_try_link "$LINENO"
8924 then :
8925 eval $cacheid=yes
8926 else $as_nop
8927 eval $cacheid=no
8928 fi
8929 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8930 conftest$ac_exeext conftest.$ac_ext
8931 fi
8932
8933
8934 CFLAGS="$xorg_testset_save_CFLAGS"
8935
8936 eval supported=\$$cacheid
8937 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8938 printf "%s\n" "$supported" >&6; }
8939 if test "$supported" = "yes" ; then
8940 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
8941 found="yes"
8942 fi
8943 fi
8944
8945 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
8946 else
8947 { 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
8948 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;}
8949
8950
8951
8952
8953
8954
8955
8956
8957
8958
8959
8960
8961
8962 xorg_testset_save_CFLAGS="$CFLAGS"
8963
8964 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8965 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8967 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8968 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8969 then :
8970 printf %s "(cached) " >&6
8971 else $as_nop
8972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8973 /* end confdefs.h. */
8974 int i;
8975 _ACEOF
8976 if ac_fn_c_try_compile "$LINENO"
8977 then :
8978 xorg_cv_cc_flag_unknown_warning_option=yes
8979 else $as_nop
8980 xorg_cv_cc_flag_unknown_warning_option=no
8981 fi
8982 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8983 fi
8984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8985 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8986 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8987 CFLAGS="$xorg_testset_save_CFLAGS"
8988 fi
8989
8990 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8991 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8992 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8993 fi
8994 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8996 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8997 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8998 then :
8999 printf %s "(cached) " >&6
9000 else $as_nop
9001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9002 /* end confdefs.h. */
9003 int i;
9004 _ACEOF
9005 if ac_fn_c_try_compile "$LINENO"
9006 then :
9007 xorg_cv_cc_flag_unused_command_line_argument=yes
9008 else $as_nop
9009 xorg_cv_cc_flag_unused_command_line_argument=no
9010 fi
9011 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9012 fi
9013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9014 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9015 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9016 CFLAGS="$xorg_testset_save_CFLAGS"
9017 fi
9018
9019 found="no"
9020
9021 if test $found = "no" ; then
9022 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9023 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9024 fi
9025
9026 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9027 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9028 fi
9029
9030 CFLAGS="$CFLAGS -Wimplicit"
9031
9032 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
9033 printf %s "checking if $CC supports -Wimplicit... " >&6; }
9034 cacheid=xorg_cv_cc_flag__Wimplicit
9035 if eval test \${$cacheid+y}
9036 then :
9037 printf %s "(cached) " >&6
9038 else $as_nop
9039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9040 /* end confdefs.h. */
9041 int i;
9042 int
9043 main (void)
9044 {
9045
9046 ;
9047 return 0;
9048 }
9049 _ACEOF
9050 if ac_fn_c_try_link "$LINENO"
9051 then :
9052 eval $cacheid=yes
9053 else $as_nop
9054 eval $cacheid=no
9055 fi
9056 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9057 conftest$ac_exeext conftest.$ac_ext
9058 fi
9059
9060
9061 CFLAGS="$xorg_testset_save_CFLAGS"
9062
9063 eval supported=\$$cacheid
9064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9065 printf "%s\n" "$supported" >&6; }
9066 if test "$supported" = "yes" ; then
9067 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
9068 found="yes"
9069 fi
9070 fi
9071
9072
9073
9074
9075
9076
9077
9078
9079
9080
9081
9082
9083
9084
9085
9086 xorg_testset_save_CFLAGS="$CFLAGS"
9087
9088 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9089 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9091 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9092 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9093 then :
9094 printf %s "(cached) " >&6
9095 else $as_nop
9096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9097 /* end confdefs.h. */
9098 int i;
9099 _ACEOF
9100 if ac_fn_c_try_compile "$LINENO"
9101 then :
9102 xorg_cv_cc_flag_unknown_warning_option=yes
9103 else $as_nop
9104 xorg_cv_cc_flag_unknown_warning_option=no
9105 fi
9106 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9107 fi
9108 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9109 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9110 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9111 CFLAGS="$xorg_testset_save_CFLAGS"
9112 fi
9113
9114 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9115 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9116 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9117 fi
9118 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9120 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9121 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9122 then :
9123 printf %s "(cached) " >&6
9124 else $as_nop
9125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9126 /* end confdefs.h. */
9127 int i;
9128 _ACEOF
9129 if ac_fn_c_try_compile "$LINENO"
9130 then :
9131 xorg_cv_cc_flag_unused_command_line_argument=yes
9132 else $as_nop
9133 xorg_cv_cc_flag_unused_command_line_argument=no
9134 fi
9135 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9136 fi
9137 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9138 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9139 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9140 CFLAGS="$xorg_testset_save_CFLAGS"
9141 fi
9142
9143 found="no"
9144
9145 if test $found = "no" ; then
9146 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9147 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9148 fi
9149
9150 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9151 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9152 fi
9153
9154 CFLAGS="$CFLAGS -Wnonnull"
9155
9156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
9157 printf %s "checking if $CC supports -Wnonnull... " >&6; }
9158 cacheid=xorg_cv_cc_flag__Wnonnull
9159 if eval test \${$cacheid+y}
9160 then :
9161 printf %s "(cached) " >&6
9162 else $as_nop
9163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9164 /* end confdefs.h. */
9165 int i;
9166 int
9167 main (void)
9168 {
9169
9170 ;
9171 return 0;
9172 }
9173 _ACEOF
9174 if ac_fn_c_try_link "$LINENO"
9175 then :
9176 eval $cacheid=yes
9177 else $as_nop
9178 eval $cacheid=no
9179 fi
9180 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9181 conftest$ac_exeext conftest.$ac_ext
9182 fi
9183
9184
9185 CFLAGS="$xorg_testset_save_CFLAGS"
9186
9187 eval supported=\$$cacheid
9188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9189 printf "%s\n" "$supported" >&6; }
9190 if test "$supported" = "yes" ; then
9191 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
9192 found="yes"
9193 fi
9194 fi
9195
9196
9197
9198
9199
9200
9201
9202
9203
9204
9205
9206
9207
9208
9209
9210 xorg_testset_save_CFLAGS="$CFLAGS"
9211
9212 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9213 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9214 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9215 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9216 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9217 then :
9218 printf %s "(cached) " >&6
9219 else $as_nop
9220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9221 /* end confdefs.h. */
9222 int i;
9223 _ACEOF
9224 if ac_fn_c_try_compile "$LINENO"
9225 then :
9226 xorg_cv_cc_flag_unknown_warning_option=yes
9227 else $as_nop
9228 xorg_cv_cc_flag_unknown_warning_option=no
9229 fi
9230 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9231 fi
9232 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9233 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9234 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9235 CFLAGS="$xorg_testset_save_CFLAGS"
9236 fi
9237
9238 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9239 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9240 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9241 fi
9242 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9243 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9244 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9245 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9246 then :
9247 printf %s "(cached) " >&6
9248 else $as_nop
9249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9250 /* end confdefs.h. */
9251 int i;
9252 _ACEOF
9253 if ac_fn_c_try_compile "$LINENO"
9254 then :
9255 xorg_cv_cc_flag_unused_command_line_argument=yes
9256 else $as_nop
9257 xorg_cv_cc_flag_unused_command_line_argument=no
9258 fi
9259 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9260 fi
9261 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9262 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9263 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9264 CFLAGS="$xorg_testset_save_CFLAGS"
9265 fi
9266
9267 found="no"
9268
9269 if test $found = "no" ; then
9270 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9271 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9272 fi
9273
9274 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9275 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9276 fi
9277
9278 CFLAGS="$CFLAGS -Winit-self"
9279
9280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
9281 printf %s "checking if $CC supports -Winit-self... " >&6; }
9282 cacheid=xorg_cv_cc_flag__Winit_self
9283 if eval test \${$cacheid+y}
9284 then :
9285 printf %s "(cached) " >&6
9286 else $as_nop
9287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9288 /* end confdefs.h. */
9289 int i;
9290 int
9291 main (void)
9292 {
9293
9294 ;
9295 return 0;
9296 }
9297 _ACEOF
9298 if ac_fn_c_try_link "$LINENO"
9299 then :
9300 eval $cacheid=yes
9301 else $as_nop
9302 eval $cacheid=no
9303 fi
9304 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9305 conftest$ac_exeext conftest.$ac_ext
9306 fi
9307
9308
9309 CFLAGS="$xorg_testset_save_CFLAGS"
9310
9311 eval supported=\$$cacheid
9312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9313 printf "%s\n" "$supported" >&6; }
9314 if test "$supported" = "yes" ; then
9315 BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
9316 found="yes"
9317 fi
9318 fi
9319
9320
9321
9322
9323
9324
9325
9326
9327
9328
9329
9330
9331
9332
9333
9334 xorg_testset_save_CFLAGS="$CFLAGS"
9335
9336 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9337 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9339 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9340 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9341 then :
9342 printf %s "(cached) " >&6
9343 else $as_nop
9344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9345 /* end confdefs.h. */
9346 int i;
9347 _ACEOF
9348 if ac_fn_c_try_compile "$LINENO"
9349 then :
9350 xorg_cv_cc_flag_unknown_warning_option=yes
9351 else $as_nop
9352 xorg_cv_cc_flag_unknown_warning_option=no
9353 fi
9354 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9355 fi
9356 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9357 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9358 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9359 CFLAGS="$xorg_testset_save_CFLAGS"
9360 fi
9361
9362 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9363 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9364 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9365 fi
9366 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9367 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9368 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9369 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9370 then :
9371 printf %s "(cached) " >&6
9372 else $as_nop
9373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9374 /* end confdefs.h. */
9375 int i;
9376 _ACEOF
9377 if ac_fn_c_try_compile "$LINENO"
9378 then :
9379 xorg_cv_cc_flag_unused_command_line_argument=yes
9380 else $as_nop
9381 xorg_cv_cc_flag_unused_command_line_argument=no
9382 fi
9383 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9384 fi
9385 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9386 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9387 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9388 CFLAGS="$xorg_testset_save_CFLAGS"
9389 fi
9390
9391 found="no"
9392
9393 if test $found = "no" ; then
9394 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9395 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9396 fi
9397
9398 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9399 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9400 fi
9401
9402 CFLAGS="$CFLAGS -Wmain"
9403
9404 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
9405 printf %s "checking if $CC supports -Wmain... " >&6; }
9406 cacheid=xorg_cv_cc_flag__Wmain
9407 if eval test \${$cacheid+y}
9408 then :
9409 printf %s "(cached) " >&6
9410 else $as_nop
9411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9412 /* end confdefs.h. */
9413 int i;
9414 int
9415 main (void)
9416 {
9417
9418 ;
9419 return 0;
9420 }
9421 _ACEOF
9422 if ac_fn_c_try_link "$LINENO"
9423 then :
9424 eval $cacheid=yes
9425 else $as_nop
9426 eval $cacheid=no
9427 fi
9428 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9429 conftest$ac_exeext conftest.$ac_ext
9430 fi
9431
9432
9433 CFLAGS="$xorg_testset_save_CFLAGS"
9434
9435 eval supported=\$$cacheid
9436 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9437 printf "%s\n" "$supported" >&6; }
9438 if test "$supported" = "yes" ; then
9439 BASE_CFLAGS="$BASE_CFLAGS -Wmain"
9440 found="yes"
9441 fi
9442 fi
9443
9444
9445
9446
9447
9448
9449
9450
9451
9452
9453
9454
9455
9456
9457
9458 xorg_testset_save_CFLAGS="$CFLAGS"
9459
9460 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9461 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9462 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9463 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9464 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9465 then :
9466 printf %s "(cached) " >&6
9467 else $as_nop
9468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9469 /* end confdefs.h. */
9470 int i;
9471 _ACEOF
9472 if ac_fn_c_try_compile "$LINENO"
9473 then :
9474 xorg_cv_cc_flag_unknown_warning_option=yes
9475 else $as_nop
9476 xorg_cv_cc_flag_unknown_warning_option=no
9477 fi
9478 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9479 fi
9480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9481 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9482 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9483 CFLAGS="$xorg_testset_save_CFLAGS"
9484 fi
9485
9486 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9487 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9488 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9489 fi
9490 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9491 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9492 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9493 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9494 then :
9495 printf %s "(cached) " >&6
9496 else $as_nop
9497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9498 /* end confdefs.h. */
9499 int i;
9500 _ACEOF
9501 if ac_fn_c_try_compile "$LINENO"
9502 then :
9503 xorg_cv_cc_flag_unused_command_line_argument=yes
9504 else $as_nop
9505 xorg_cv_cc_flag_unused_command_line_argument=no
9506 fi
9507 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9508 fi
9509 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9510 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9511 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9512 CFLAGS="$xorg_testset_save_CFLAGS"
9513 fi
9514
9515 found="no"
9516
9517 if test $found = "no" ; then
9518 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9519 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9520 fi
9521
9522 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9523 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9524 fi
9525
9526 CFLAGS="$CFLAGS -Wmissing-braces"
9527
9528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
9529 printf %s "checking if $CC supports -Wmissing-braces... " >&6; }
9530 cacheid=xorg_cv_cc_flag__Wmissing_braces
9531 if eval test \${$cacheid+y}
9532 then :
9533 printf %s "(cached) " >&6
9534 else $as_nop
9535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9536 /* end confdefs.h. */
9537 int i;
9538 int
9539 main (void)
9540 {
9541
9542 ;
9543 return 0;
9544 }
9545 _ACEOF
9546 if ac_fn_c_try_link "$LINENO"
9547 then :
9548 eval $cacheid=yes
9549 else $as_nop
9550 eval $cacheid=no
9551 fi
9552 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9553 conftest$ac_exeext conftest.$ac_ext
9554 fi
9555
9556
9557 CFLAGS="$xorg_testset_save_CFLAGS"
9558
9559 eval supported=\$$cacheid
9560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9561 printf "%s\n" "$supported" >&6; }
9562 if test "$supported" = "yes" ; then
9563 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
9564 found="yes"
9565 fi
9566 fi
9567
9568
9569
9570
9571
9572
9573
9574
9575
9576
9577
9578
9579
9580
9581
9582 xorg_testset_save_CFLAGS="$CFLAGS"
9583
9584 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9585 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9586 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9587 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9588 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9589 then :
9590 printf %s "(cached) " >&6
9591 else $as_nop
9592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9593 /* end confdefs.h. */
9594 int i;
9595 _ACEOF
9596 if ac_fn_c_try_compile "$LINENO"
9597 then :
9598 xorg_cv_cc_flag_unknown_warning_option=yes
9599 else $as_nop
9600 xorg_cv_cc_flag_unknown_warning_option=no
9601 fi
9602 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9603 fi
9604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9605 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9606 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9607 CFLAGS="$xorg_testset_save_CFLAGS"
9608 fi
9609
9610 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9611 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9612 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9613 fi
9614 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9616 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9617 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9618 then :
9619 printf %s "(cached) " >&6
9620 else $as_nop
9621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9622 /* end confdefs.h. */
9623 int i;
9624 _ACEOF
9625 if ac_fn_c_try_compile "$LINENO"
9626 then :
9627 xorg_cv_cc_flag_unused_command_line_argument=yes
9628 else $as_nop
9629 xorg_cv_cc_flag_unused_command_line_argument=no
9630 fi
9631 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9632 fi
9633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9634 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9635 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9636 CFLAGS="$xorg_testset_save_CFLAGS"
9637 fi
9638
9639 found="no"
9640
9641 if test $found = "no" ; then
9642 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9643 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9644 fi
9645
9646 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9647 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9648 fi
9649
9650 CFLAGS="$CFLAGS -Wsequence-point"
9651
9652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
9653 printf %s "checking if $CC supports -Wsequence-point... " >&6; }
9654 cacheid=xorg_cv_cc_flag__Wsequence_point
9655 if eval test \${$cacheid+y}
9656 then :
9657 printf %s "(cached) " >&6
9658 else $as_nop
9659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9660 /* end confdefs.h. */
9661 int i;
9662 int
9663 main (void)
9664 {
9665
9666 ;
9667 return 0;
9668 }
9669 _ACEOF
9670 if ac_fn_c_try_link "$LINENO"
9671 then :
9672 eval $cacheid=yes
9673 else $as_nop
9674 eval $cacheid=no
9675 fi
9676 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9677 conftest$ac_exeext conftest.$ac_ext
9678 fi
9679
9680
9681 CFLAGS="$xorg_testset_save_CFLAGS"
9682
9683 eval supported=\$$cacheid
9684 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9685 printf "%s\n" "$supported" >&6; }
9686 if test "$supported" = "yes" ; then
9687 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9688 found="yes"
9689 fi
9690 fi
9691
9692
9693
9694
9695
9696
9697
9698
9699
9700
9701
9702
9703
9704
9705
9706 xorg_testset_save_CFLAGS="$CFLAGS"
9707
9708 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9709 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9711 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9712 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9713 then :
9714 printf %s "(cached) " >&6
9715 else $as_nop
9716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9717 /* end confdefs.h. */
9718 int i;
9719 _ACEOF
9720 if ac_fn_c_try_compile "$LINENO"
9721 then :
9722 xorg_cv_cc_flag_unknown_warning_option=yes
9723 else $as_nop
9724 xorg_cv_cc_flag_unknown_warning_option=no
9725 fi
9726 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9727 fi
9728 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9729 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9730 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9731 CFLAGS="$xorg_testset_save_CFLAGS"
9732 fi
9733
9734 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9735 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9736 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9737 fi
9738 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9740 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9741 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9742 then :
9743 printf %s "(cached) " >&6
9744 else $as_nop
9745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9746 /* end confdefs.h. */
9747 int i;
9748 _ACEOF
9749 if ac_fn_c_try_compile "$LINENO"
9750 then :
9751 xorg_cv_cc_flag_unused_command_line_argument=yes
9752 else $as_nop
9753 xorg_cv_cc_flag_unused_command_line_argument=no
9754 fi
9755 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9756 fi
9757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9758 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9759 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9760 CFLAGS="$xorg_testset_save_CFLAGS"
9761 fi
9762
9763 found="no"
9764
9765 if test $found = "no" ; then
9766 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9767 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9768 fi
9769
9770 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9771 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9772 fi
9773
9774 CFLAGS="$CFLAGS -Wreturn-type"
9775
9776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
9777 printf %s "checking if $CC supports -Wreturn-type... " >&6; }
9778 cacheid=xorg_cv_cc_flag__Wreturn_type
9779 if eval test \${$cacheid+y}
9780 then :
9781 printf %s "(cached) " >&6
9782 else $as_nop
9783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9784 /* end confdefs.h. */
9785 int i;
9786 int
9787 main (void)
9788 {
9789
9790 ;
9791 return 0;
9792 }
9793 _ACEOF
9794 if ac_fn_c_try_link "$LINENO"
9795 then :
9796 eval $cacheid=yes
9797 else $as_nop
9798 eval $cacheid=no
9799 fi
9800 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9801 conftest$ac_exeext conftest.$ac_ext
9802 fi
9803
9804
9805 CFLAGS="$xorg_testset_save_CFLAGS"
9806
9807 eval supported=\$$cacheid
9808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9809 printf "%s\n" "$supported" >&6; }
9810 if test "$supported" = "yes" ; then
9811 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9812 found="yes"
9813 fi
9814 fi
9815
9816
9817
9818
9819
9820
9821
9822
9823
9824
9825
9826
9827
9828
9829
9830 xorg_testset_save_CFLAGS="$CFLAGS"
9831
9832 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9833 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9834 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9835 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9836 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9837 then :
9838 printf %s "(cached) " >&6
9839 else $as_nop
9840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9841 /* end confdefs.h. */
9842 int i;
9843 _ACEOF
9844 if ac_fn_c_try_compile "$LINENO"
9845 then :
9846 xorg_cv_cc_flag_unknown_warning_option=yes
9847 else $as_nop
9848 xorg_cv_cc_flag_unknown_warning_option=no
9849 fi
9850 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9851 fi
9852 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9853 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9854 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9855 CFLAGS="$xorg_testset_save_CFLAGS"
9856 fi
9857
9858 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9859 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9860 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9861 fi
9862 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9864 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9865 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9866 then :
9867 printf %s "(cached) " >&6
9868 else $as_nop
9869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9870 /* end confdefs.h. */
9871 int i;
9872 _ACEOF
9873 if ac_fn_c_try_compile "$LINENO"
9874 then :
9875 xorg_cv_cc_flag_unused_command_line_argument=yes
9876 else $as_nop
9877 xorg_cv_cc_flag_unused_command_line_argument=no
9878 fi
9879 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9880 fi
9881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9882 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9883 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9884 CFLAGS="$xorg_testset_save_CFLAGS"
9885 fi
9886
9887 found="no"
9888
9889 if test $found = "no" ; then
9890 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9891 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9892 fi
9893
9894 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9895 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9896 fi
9897
9898 CFLAGS="$CFLAGS -Wtrigraphs"
9899
9900 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
9901 printf %s "checking if $CC supports -Wtrigraphs... " >&6; }
9902 cacheid=xorg_cv_cc_flag__Wtrigraphs
9903 if eval test \${$cacheid+y}
9904 then :
9905 printf %s "(cached) " >&6
9906 else $as_nop
9907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9908 /* end confdefs.h. */
9909 int i;
9910 int
9911 main (void)
9912 {
9913
9914 ;
9915 return 0;
9916 }
9917 _ACEOF
9918 if ac_fn_c_try_link "$LINENO"
9919 then :
9920 eval $cacheid=yes
9921 else $as_nop
9922 eval $cacheid=no
9923 fi
9924 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9925 conftest$ac_exeext conftest.$ac_ext
9926 fi
9927
9928
9929 CFLAGS="$xorg_testset_save_CFLAGS"
9930
9931 eval supported=\$$cacheid
9932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9933 printf "%s\n" "$supported" >&6; }
9934 if test "$supported" = "yes" ; then
9935 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
9936 found="yes"
9937 fi
9938 fi
9939
9940
9941
9942
9943
9944
9945
9946
9947
9948
9949
9950
9951
9952
9953
9954 xorg_testset_save_CFLAGS="$CFLAGS"
9955
9956 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9957 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9959 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9960 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9961 then :
9962 printf %s "(cached) " >&6
9963 else $as_nop
9964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9965 /* end confdefs.h. */
9966 int i;
9967 _ACEOF
9968 if ac_fn_c_try_compile "$LINENO"
9969 then :
9970 xorg_cv_cc_flag_unknown_warning_option=yes
9971 else $as_nop
9972 xorg_cv_cc_flag_unknown_warning_option=no
9973 fi
9974 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9975 fi
9976 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9977 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9978 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9979 CFLAGS="$xorg_testset_save_CFLAGS"
9980 fi
9981
9982 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9983 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9984 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9985 fi
9986 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9988 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9989 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9990 then :
9991 printf %s "(cached) " >&6
9992 else $as_nop
9993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9994 /* end confdefs.h. */
9995 int i;
9996 _ACEOF
9997 if ac_fn_c_try_compile "$LINENO"
9998 then :
9999 xorg_cv_cc_flag_unused_command_line_argument=yes
10000 else $as_nop
10001 xorg_cv_cc_flag_unused_command_line_argument=no
10002 fi
10003 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10004 fi
10005 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10006 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10007 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10008 CFLAGS="$xorg_testset_save_CFLAGS"
10009 fi
10010
10011 found="no"
10012
10013 if test $found = "no" ; then
10014 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10015 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10016 fi
10017
10018 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10019 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10020 fi
10021
10022 CFLAGS="$CFLAGS -Warray-bounds"
10023
10024 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
10025 printf %s "checking if $CC supports -Warray-bounds... " >&6; }
10026 cacheid=xorg_cv_cc_flag__Warray_bounds
10027 if eval test \${$cacheid+y}
10028 then :
10029 printf %s "(cached) " >&6
10030 else $as_nop
10031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10032 /* end confdefs.h. */
10033 int i;
10034 int
10035 main (void)
10036 {
10037
10038 ;
10039 return 0;
10040 }
10041 _ACEOF
10042 if ac_fn_c_try_link "$LINENO"
10043 then :
10044 eval $cacheid=yes
10045 else $as_nop
10046 eval $cacheid=no
10047 fi
10048 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10049 conftest$ac_exeext conftest.$ac_ext
10050 fi
10051
10052
10053 CFLAGS="$xorg_testset_save_CFLAGS"
10054
10055 eval supported=\$$cacheid
10056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10057 printf "%s\n" "$supported" >&6; }
10058 if test "$supported" = "yes" ; then
10059 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
10060 found="yes"
10061 fi
10062 fi
10063
10064
10065
10066
10067
10068
10069
10070
10071
10072
10073
10074
10075
10076
10077
10078 xorg_testset_save_CFLAGS="$CFLAGS"
10079
10080 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10081 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10082 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10083 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10084 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10085 then :
10086 printf %s "(cached) " >&6
10087 else $as_nop
10088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10089 /* end confdefs.h. */
10090 int i;
10091 _ACEOF
10092 if ac_fn_c_try_compile "$LINENO"
10093 then :
10094 xorg_cv_cc_flag_unknown_warning_option=yes
10095 else $as_nop
10096 xorg_cv_cc_flag_unknown_warning_option=no
10097 fi
10098 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10099 fi
10100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10101 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10102 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10103 CFLAGS="$xorg_testset_save_CFLAGS"
10104 fi
10105
10106 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10107 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10108 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10109 fi
10110 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10112 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10113 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10114 then :
10115 printf %s "(cached) " >&6
10116 else $as_nop
10117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10118 /* end confdefs.h. */
10119 int i;
10120 _ACEOF
10121 if ac_fn_c_try_compile "$LINENO"
10122 then :
10123 xorg_cv_cc_flag_unused_command_line_argument=yes
10124 else $as_nop
10125 xorg_cv_cc_flag_unused_command_line_argument=no
10126 fi
10127 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10128 fi
10129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10130 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10131 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10132 CFLAGS="$xorg_testset_save_CFLAGS"
10133 fi
10134
10135 found="no"
10136
10137 if test $found = "no" ; then
10138 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10139 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10140 fi
10141
10142 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10143 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10144 fi
10145
10146 CFLAGS="$CFLAGS -Wwrite-strings"
10147
10148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
10149 printf %s "checking if $CC supports -Wwrite-strings... " >&6; }
10150 cacheid=xorg_cv_cc_flag__Wwrite_strings
10151 if eval test \${$cacheid+y}
10152 then :
10153 printf %s "(cached) " >&6
10154 else $as_nop
10155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10156 /* end confdefs.h. */
10157 int i;
10158 int
10159 main (void)
10160 {
10161
10162 ;
10163 return 0;
10164 }
10165 _ACEOF
10166 if ac_fn_c_try_link "$LINENO"
10167 then :
10168 eval $cacheid=yes
10169 else $as_nop
10170 eval $cacheid=no
10171 fi
10172 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10173 conftest$ac_exeext conftest.$ac_ext
10174 fi
10175
10176
10177 CFLAGS="$xorg_testset_save_CFLAGS"
10178
10179 eval supported=\$$cacheid
10180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10181 printf "%s\n" "$supported" >&6; }
10182 if test "$supported" = "yes" ; then
10183 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
10184 found="yes"
10185 fi
10186 fi
10187
10188
10189
10190
10191
10192
10193
10194
10195
10196
10197
10198
10199
10200
10201
10202 xorg_testset_save_CFLAGS="$CFLAGS"
10203
10204 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10205 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10206 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10207 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10208 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10209 then :
10210 printf %s "(cached) " >&6
10211 else $as_nop
10212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10213 /* end confdefs.h. */
10214 int i;
10215 _ACEOF
10216 if ac_fn_c_try_compile "$LINENO"
10217 then :
10218 xorg_cv_cc_flag_unknown_warning_option=yes
10219 else $as_nop
10220 xorg_cv_cc_flag_unknown_warning_option=no
10221 fi
10222 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10223 fi
10224 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10225 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10226 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10227 CFLAGS="$xorg_testset_save_CFLAGS"
10228 fi
10229
10230 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10231 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10232 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10233 fi
10234 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10236 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10237 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10238 then :
10239 printf %s "(cached) " >&6
10240 else $as_nop
10241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10242 /* end confdefs.h. */
10243 int i;
10244 _ACEOF
10245 if ac_fn_c_try_compile "$LINENO"
10246 then :
10247 xorg_cv_cc_flag_unused_command_line_argument=yes
10248 else $as_nop
10249 xorg_cv_cc_flag_unused_command_line_argument=no
10250 fi
10251 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10252 fi
10253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10254 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10255 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10256 CFLAGS="$xorg_testset_save_CFLAGS"
10257 fi
10258
10259 found="no"
10260
10261 if test $found = "no" ; then
10262 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10263 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10264 fi
10265
10266 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10267 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10268 fi
10269
10270 CFLAGS="$CFLAGS -Waddress"
10271
10272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
10273 printf %s "checking if $CC supports -Waddress... " >&6; }
10274 cacheid=xorg_cv_cc_flag__Waddress
10275 if eval test \${$cacheid+y}
10276 then :
10277 printf %s "(cached) " >&6
10278 else $as_nop
10279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10280 /* end confdefs.h. */
10281 int i;
10282 int
10283 main (void)
10284 {
10285
10286 ;
10287 return 0;
10288 }
10289 _ACEOF
10290 if ac_fn_c_try_link "$LINENO"
10291 then :
10292 eval $cacheid=yes
10293 else $as_nop
10294 eval $cacheid=no
10295 fi
10296 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10297 conftest$ac_exeext conftest.$ac_ext
10298 fi
10299
10300
10301 CFLAGS="$xorg_testset_save_CFLAGS"
10302
10303 eval supported=\$$cacheid
10304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10305 printf "%s\n" "$supported" >&6; }
10306 if test "$supported" = "yes" ; then
10307 BASE_CFLAGS="$BASE_CFLAGS -Waddress"
10308 found="yes"
10309 fi
10310 fi
10311
10312
10313
10314
10315
10316
10317
10318
10319
10320
10321
10322
10323
10324
10325
10326 xorg_testset_save_CFLAGS="$CFLAGS"
10327
10328 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10329 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10331 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10332 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10333 then :
10334 printf %s "(cached) " >&6
10335 else $as_nop
10336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10337 /* end confdefs.h. */
10338 int i;
10339 _ACEOF
10340 if ac_fn_c_try_compile "$LINENO"
10341 then :
10342 xorg_cv_cc_flag_unknown_warning_option=yes
10343 else $as_nop
10344 xorg_cv_cc_flag_unknown_warning_option=no
10345 fi
10346 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10347 fi
10348 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10349 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10350 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10351 CFLAGS="$xorg_testset_save_CFLAGS"
10352 fi
10353
10354 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10355 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10356 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10357 fi
10358 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10360 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10361 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10362 then :
10363 printf %s "(cached) " >&6
10364 else $as_nop
10365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10366 /* end confdefs.h. */
10367 int i;
10368 _ACEOF
10369 if ac_fn_c_try_compile "$LINENO"
10370 then :
10371 xorg_cv_cc_flag_unused_command_line_argument=yes
10372 else $as_nop
10373 xorg_cv_cc_flag_unused_command_line_argument=no
10374 fi
10375 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10376 fi
10377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10378 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10379 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10380 CFLAGS="$xorg_testset_save_CFLAGS"
10381 fi
10382
10383 found="no"
10384
10385 if test $found = "no" ; then
10386 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10387 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10388 fi
10389
10390 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10391 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10392 fi
10393
10394 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
10395
10396 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
10397 printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
10398 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
10399 if eval test \${$cacheid+y}
10400 then :
10401 printf %s "(cached) " >&6
10402 else $as_nop
10403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10404 /* end confdefs.h. */
10405 int i;
10406 int
10407 main (void)
10408 {
10409
10410 ;
10411 return 0;
10412 }
10413 _ACEOF
10414 if ac_fn_c_try_link "$LINENO"
10415 then :
10416 eval $cacheid=yes
10417 else $as_nop
10418 eval $cacheid=no
10419 fi
10420 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10421 conftest$ac_exeext conftest.$ac_ext
10422 fi
10423
10424
10425 CFLAGS="$xorg_testset_save_CFLAGS"
10426
10427 eval supported=\$$cacheid
10428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10429 printf "%s\n" "$supported" >&6; }
10430 if test "$supported" = "yes" ; then
10431 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
10432 found="yes"
10433 fi
10434 fi
10435
10436
10437
10438
10439
10440
10441
10442
10443
10444
10445
10446
10447
10448
10449
10450 xorg_testset_save_CFLAGS="$CFLAGS"
10451
10452 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10453 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10455 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10456 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10457 then :
10458 printf %s "(cached) " >&6
10459 else $as_nop
10460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10461 /* end confdefs.h. */
10462 int i;
10463 _ACEOF
10464 if ac_fn_c_try_compile "$LINENO"
10465 then :
10466 xorg_cv_cc_flag_unknown_warning_option=yes
10467 else $as_nop
10468 xorg_cv_cc_flag_unknown_warning_option=no
10469 fi
10470 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10471 fi
10472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10473 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10474 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10475 CFLAGS="$xorg_testset_save_CFLAGS"
10476 fi
10477
10478 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10479 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10480 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10481 fi
10482 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10483 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10484 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10485 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10486 then :
10487 printf %s "(cached) " >&6
10488 else $as_nop
10489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10490 /* end confdefs.h. */
10491 int i;
10492 _ACEOF
10493 if ac_fn_c_try_compile "$LINENO"
10494 then :
10495 xorg_cv_cc_flag_unused_command_line_argument=yes
10496 else $as_nop
10497 xorg_cv_cc_flag_unused_command_line_argument=no
10498 fi
10499 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10500 fi
10501 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10502 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10503 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10504 CFLAGS="$xorg_testset_save_CFLAGS"
10505 fi
10506
10507 found="no"
10508
10509 if test $found = "no" ; then
10510 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10511 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10512 fi
10513
10514 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10515 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10516 fi
10517
10518 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
10519
10520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
10521 printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
10522 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
10523 if eval test \${$cacheid+y}
10524 then :
10525 printf %s "(cached) " >&6
10526 else $as_nop
10527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10528 /* end confdefs.h. */
10529 int i;
10530 int
10531 main (void)
10532 {
10533
10534 ;
10535 return 0;
10536 }
10537 _ACEOF
10538 if ac_fn_c_try_link "$LINENO"
10539 then :
10540 eval $cacheid=yes
10541 else $as_nop
10542 eval $cacheid=no
10543 fi
10544 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10545 conftest$ac_exeext conftest.$ac_ext
10546 fi
10547
10548
10549 CFLAGS="$xorg_testset_save_CFLAGS"
10550
10551 eval supported=\$$cacheid
10552 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10553 printf "%s\n" "$supported" >&6; }
10554 if test "$supported" = "yes" ; then
10555 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
10556 found="yes"
10557 fi
10558 fi
10559
10560
10561 fi
10562
10563
10564
10565
10566
10567
10568
10569 CWARNFLAGS="$BASE_CFLAGS"
10570 if test "x$GCC" = xyes ; then
10571 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
10572 fi
10573
10574
10575
10576
10577
10578
10579
10580
10581 # Check whether --enable-strict-compilation was given.
10582 if test ${enable_strict_compilation+y}
10583 then :
10584 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
10585 else $as_nop
10586 STRICT_COMPILE=no
10587 fi
10588
10589
10590
10591
10592
10593
10594 STRICT_CFLAGS=""
10595
10596
10597
10598
10599
10600
10601
10602
10603
10604
10605
10606
10607
10608 xorg_testset_save_CFLAGS="$CFLAGS"
10609
10610 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10611 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10613 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10614 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10615 then :
10616 printf %s "(cached) " >&6
10617 else $as_nop
10618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10619 /* end confdefs.h. */
10620 int i;
10621 _ACEOF
10622 if ac_fn_c_try_compile "$LINENO"
10623 then :
10624 xorg_cv_cc_flag_unknown_warning_option=yes
10625 else $as_nop
10626 xorg_cv_cc_flag_unknown_warning_option=no
10627 fi
10628 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10629 fi
10630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10631 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10632 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10633 CFLAGS="$xorg_testset_save_CFLAGS"
10634 fi
10635
10636 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10637 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10638 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10639 fi
10640 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10642 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10643 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10644 then :
10645 printf %s "(cached) " >&6
10646 else $as_nop
10647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10648 /* end confdefs.h. */
10649 int i;
10650 _ACEOF
10651 if ac_fn_c_try_compile "$LINENO"
10652 then :
10653 xorg_cv_cc_flag_unused_command_line_argument=yes
10654 else $as_nop
10655 xorg_cv_cc_flag_unused_command_line_argument=no
10656 fi
10657 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10658 fi
10659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10660 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10661 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10662 CFLAGS="$xorg_testset_save_CFLAGS"
10663 fi
10664
10665 found="no"
10666
10667 if test $found = "no" ; then
10668 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10669 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10670 fi
10671
10672 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10673 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10674 fi
10675
10676 CFLAGS="$CFLAGS -pedantic"
10677
10678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
10679 printf %s "checking if $CC supports -pedantic... " >&6; }
10680 cacheid=xorg_cv_cc_flag__pedantic
10681 if eval test \${$cacheid+y}
10682 then :
10683 printf %s "(cached) " >&6
10684 else $as_nop
10685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10686 /* end confdefs.h. */
10687 int i;
10688 int
10689 main (void)
10690 {
10691
10692 ;
10693 return 0;
10694 }
10695 _ACEOF
10696 if ac_fn_c_try_link "$LINENO"
10697 then :
10698 eval $cacheid=yes
10699 else $as_nop
10700 eval $cacheid=no
10701 fi
10702 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10703 conftest$ac_exeext conftest.$ac_ext
10704 fi
10705
10706
10707 CFLAGS="$xorg_testset_save_CFLAGS"
10708
10709 eval supported=\$$cacheid
10710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10711 printf "%s\n" "$supported" >&6; }
10712 if test "$supported" = "yes" ; then
10713 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
10714 found="yes"
10715 fi
10716 fi
10717
10718
10719
10720
10721
10722
10723
10724
10725
10726
10727
10728
10729
10730
10731
10732 xorg_testset_save_CFLAGS="$CFLAGS"
10733
10734 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10735 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10737 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10738 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10739 then :
10740 printf %s "(cached) " >&6
10741 else $as_nop
10742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10743 /* end confdefs.h. */
10744 int i;
10745 _ACEOF
10746 if ac_fn_c_try_compile "$LINENO"
10747 then :
10748 xorg_cv_cc_flag_unknown_warning_option=yes
10749 else $as_nop
10750 xorg_cv_cc_flag_unknown_warning_option=no
10751 fi
10752 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10753 fi
10754 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10755 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10756 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10757 CFLAGS="$xorg_testset_save_CFLAGS"
10758 fi
10759
10760 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10761 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10762 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10763 fi
10764 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10766 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10767 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10768 then :
10769 printf %s "(cached) " >&6
10770 else $as_nop
10771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10772 /* end confdefs.h. */
10773 int i;
10774 _ACEOF
10775 if ac_fn_c_try_compile "$LINENO"
10776 then :
10777 xorg_cv_cc_flag_unused_command_line_argument=yes
10778 else $as_nop
10779 xorg_cv_cc_flag_unused_command_line_argument=no
10780 fi
10781 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10782 fi
10783 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10784 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10785 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10786 CFLAGS="$xorg_testset_save_CFLAGS"
10787 fi
10788
10789 found="no"
10790
10791 if test $found = "no" ; then
10792 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10793 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10794 fi
10795
10796 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10797 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10798 fi
10799
10800 CFLAGS="$CFLAGS -Werror"
10801
10802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
10803 printf %s "checking if $CC supports -Werror... " >&6; }
10804 cacheid=xorg_cv_cc_flag__Werror
10805 if eval test \${$cacheid+y}
10806 then :
10807 printf %s "(cached) " >&6
10808 else $as_nop
10809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10810 /* end confdefs.h. */
10811 int i;
10812 int
10813 main (void)
10814 {
10815
10816 ;
10817 return 0;
10818 }
10819 _ACEOF
10820 if ac_fn_c_try_link "$LINENO"
10821 then :
10822 eval $cacheid=yes
10823 else $as_nop
10824 eval $cacheid=no
10825 fi
10826 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10827 conftest$ac_exeext conftest.$ac_ext
10828 fi
10829
10830
10831 CFLAGS="$xorg_testset_save_CFLAGS"
10832
10833 eval supported=\$$cacheid
10834 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10835 printf "%s\n" "$supported" >&6; }
10836 if test "$supported" = "yes" ; then
10837 STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
10838 found="yes"
10839 fi
10840 fi
10841
10842 if test $found = "no" ; then
10843 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10844 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10845 fi
10846
10847 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10848 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10849 fi
10850
10851 CFLAGS="$CFLAGS -errwarn"
10852
10853 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
10854 printf %s "checking if $CC supports -errwarn... " >&6; }
10855 cacheid=xorg_cv_cc_flag__errwarn
10856 if eval test \${$cacheid+y}
10857 then :
10858 printf %s "(cached) " >&6
10859 else $as_nop
10860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10861 /* end confdefs.h. */
10862 int i;
10863 int
10864 main (void)
10865 {
10866
10867 ;
10868 return 0;
10869 }
10870 _ACEOF
10871 if ac_fn_c_try_link "$LINENO"
10872 then :
10873 eval $cacheid=yes
10874 else $as_nop
10875 eval $cacheid=no
10876 fi
10877 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10878 conftest$ac_exeext conftest.$ac_ext
10879 fi
10880
10881
10882 CFLAGS="$xorg_testset_save_CFLAGS"
10883
10884 eval supported=\$$cacheid
10885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10886 printf "%s\n" "$supported" >&6; }
10887 if test "$supported" = "yes" ; then
10888 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
10889 found="yes"
10890 fi
10891 fi
10892
10893
10894
10895 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
10896 # activate it with -Werror, so we add it here explicitly.
10897
10898
10899
10900
10901
10902
10903
10904
10905
10906
10907
10908
10909
10910 xorg_testset_save_CFLAGS="$CFLAGS"
10911
10912 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10913 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10915 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10916 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10917 then :
10918 printf %s "(cached) " >&6
10919 else $as_nop
10920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10921 /* end confdefs.h. */
10922 int i;
10923 _ACEOF
10924 if ac_fn_c_try_compile "$LINENO"
10925 then :
10926 xorg_cv_cc_flag_unknown_warning_option=yes
10927 else $as_nop
10928 xorg_cv_cc_flag_unknown_warning_option=no
10929 fi
10930 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10931 fi
10932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10933 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10934 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10935 CFLAGS="$xorg_testset_save_CFLAGS"
10936 fi
10937
10938 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10939 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10940 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10941 fi
10942 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10944 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10945 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10946 then :
10947 printf %s "(cached) " >&6
10948 else $as_nop
10949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10950 /* end confdefs.h. */
10951 int i;
10952 _ACEOF
10953 if ac_fn_c_try_compile "$LINENO"
10954 then :
10955 xorg_cv_cc_flag_unused_command_line_argument=yes
10956 else $as_nop
10957 xorg_cv_cc_flag_unused_command_line_argument=no
10958 fi
10959 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10960 fi
10961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10962 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10963 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10964 CFLAGS="$xorg_testset_save_CFLAGS"
10965 fi
10966
10967 found="no"
10968
10969 if test $found = "no" ; then
10970 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10971 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10972 fi
10973
10974 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10975 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10976 fi
10977
10978 CFLAGS="$CFLAGS -Werror=attributes"
10979
10980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
10981 printf %s "checking if $CC supports -Werror=attributes... " >&6; }
10982 cacheid=xorg_cv_cc_flag__Werror_attributes
10983 if eval test \${$cacheid+y}
10984 then :
10985 printf %s "(cached) " >&6
10986 else $as_nop
10987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10988 /* end confdefs.h. */
10989 int i;
10990 int
10991 main (void)
10992 {
10993
10994 ;
10995 return 0;
10996 }
10997 _ACEOF
10998 if ac_fn_c_try_link "$LINENO"
10999 then :
11000 eval $cacheid=yes
11001 else $as_nop
11002 eval $cacheid=no
11003 fi
11004 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11005 conftest$ac_exeext conftest.$ac_ext
11006 fi
11007
11008
11009 CFLAGS="$xorg_testset_save_CFLAGS"
11010
11011 eval supported=\$$cacheid
11012 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11013 printf "%s\n" "$supported" >&6; }
11014 if test "$supported" = "yes" ; then
11015 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
11016 found="yes"
11017 fi
11018 fi
11019
11020
11021
11022 if test "x$STRICT_COMPILE" = "xyes"; then
11023 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
11024 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
11025 fi
11026
11027
11028
11029
11030
11031
11032
11033
11034 cat >>confdefs.h <<_ACEOF
11035 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
11036 _ACEOF
11037
11038 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
11039 if test "x$PVM" = "x"; then
11040 PVM="0"
11041 fi
11042
11043 printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h
11044
11045 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
11046 if test "x$PVP" = "x"; then
11047 PVP="0"
11048 fi
11049
11050 printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h
11051
11052
11053
11054 CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \
11055 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
11056 || (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \
11057 touch \$(top_srcdir)/ChangeLog; \
11058 echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))"
11059
11060
11061
11062
11063 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
11064 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
11065 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
11066 || (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \
11067 touch \$(top_srcdir)/INSTALL; \
11068 echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))"
11069
11070
11071
11072
11073
11074
11075 case $host_os in
11076 solaris*)
11077 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we
11078 # check for a man page file found in later versions that use
11079 # traditional section numbers instead
11080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5
11081 printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; }
11082 if test ${ac_cv_file__usr_share_man_man7_attributes_7+y}
11083 then :
11084 printf %s "(cached) " >&6
11085 else $as_nop
11086 test "$cross_compiling" = yes &&
11087 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
11088 if test -r "/usr/share/man/man7/attributes.7"; then
11089 ac_cv_file__usr_share_man_man7_attributes_7=yes
11090 else
11091 ac_cv_file__usr_share_man_man7_attributes_7=no
11092 fi
11093 fi
11094 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5
11095 printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; }
11096 if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes
11097 then :
11098 SYSV_MAN_SECTIONS=false
11099 else $as_nop
11100 SYSV_MAN_SECTIONS=true
11101 fi
11102
11103 ;;
11104 *) SYSV_MAN_SECTIONS=false ;;
11105 esac
11106
11107 if test x$APP_MAN_SUFFIX = x ; then
11108 APP_MAN_SUFFIX=1
11109 fi
11110 if test x$APP_MAN_DIR = x ; then
11111 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
11112 fi
11113
11114 if test x$LIB_MAN_SUFFIX = x ; then
11115 LIB_MAN_SUFFIX=3
11116 fi
11117 if test x$LIB_MAN_DIR = x ; then
11118 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
11119 fi
11120
11121 if test x$FILE_MAN_SUFFIX = x ; then
11122 case $SYSV_MAN_SECTIONS in
11123 true) FILE_MAN_SUFFIX=4 ;;
11124 *) FILE_MAN_SUFFIX=5 ;;
11125 esac
11126 fi
11127 if test x$FILE_MAN_DIR = x ; then
11128 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
11129 fi
11130
11131 if test x$MISC_MAN_SUFFIX = x ; then
11132 case $SYSV_MAN_SECTIONS in
11133 true) MISC_MAN_SUFFIX=5 ;;
11134 *) MISC_MAN_SUFFIX=7 ;;
11135 esac
11136 fi
11137 if test x$MISC_MAN_DIR = x ; then
11138 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
11139 fi
11140
11141 if test x$DRIVER_MAN_SUFFIX = x ; then
11142 case $SYSV_MAN_SECTIONS in
11143 true) DRIVER_MAN_SUFFIX=7 ;;
11144 *) DRIVER_MAN_SUFFIX=4 ;;
11145 esac
11146 fi
11147 if test x$DRIVER_MAN_DIR = x ; then
11148 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
11149 fi
11150
11151 if test x$ADMIN_MAN_SUFFIX = x ; then
11152 case $SYSV_MAN_SECTIONS in
11153 true) ADMIN_MAN_SUFFIX=1m ;;
11154 *) ADMIN_MAN_SUFFIX=8 ;;
11155 esac
11156 fi
11157 if test x$ADMIN_MAN_DIR = x ; then
11158 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
11159 fi
11160
11161
11162
11163
11164
11165
11166
11167
11168
11169
11170
11171
11172
11173
11174
11175 XORG_MAN_PAGE="X Version 11"
11176
11177 MAN_SUBSTS="\
11178 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11179 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11180 -e 's|__xservername__|Xorg|g' \
11181 -e 's|__xconfigfile__|xorg.conf|g' \
11182 -e 's|__projectroot__|\$(prefix)|g' \
11183 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
11184 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
11185 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
11186 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
11187 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
11188 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
11189 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
11190
11191
11192
11193 # Check whether --enable-silent-rules was given.
11194 if test ${enable_silent_rules+y}
11195 then :
11196 enableval=$enable_silent_rules;
11197 fi
11198
11199 case $enable_silent_rules in # (((
11200 yes) AM_DEFAULT_VERBOSITY=0;;
11201 no) AM_DEFAULT_VERBOSITY=1;;
11202 *) AM_DEFAULT_VERBOSITY=0;;
11203 esac
11204 am_make=${MAKE-make}
11205 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
11206 printf %s "checking whether $am_make supports nested variables... " >&6; }
11207 if test ${am_cv_make_support_nested_variables+y}
11208 then :
11209 printf %s "(cached) " >&6
11210 else $as_nop
11211 if printf "%s\n" 'TRUE=$(BAR$(V))
11212 BAR0=false
11213 BAR1=true
11214 V=1
11215 am__doit:
11216 @$(TRUE)
11217 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
11218 am_cv_make_support_nested_variables=yes
11219 else
11220 am_cv_make_support_nested_variables=no
11221 fi
11222 fi
11223 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
11224 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
11225 if test $am_cv_make_support_nested_variables = yes; then
11226 AM_V='$(V)'
11227 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
11228 else
11229 AM_V=$AM_DEFAULT_VERBOSITY
11230 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
11231 fi
11232 AM_BACKSLASH='\'
11233
11234
11235
11236
11237 # Initialize libtool
11238 # Check whether --enable-static was given.
11239 if test ${enable_static+y}
11240 then :
11241 enableval=$enable_static; p=${PACKAGE-default}
11242 case $enableval in
11243 yes) enable_static=yes ;;
11244 no) enable_static=no ;;
11245 *)
11246 enable_static=no
11247 # Look at the argument we got. We use all the common list separators.
11248 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11249 for pkg in $enableval; do
11250 IFS=$lt_save_ifs
11251 if test "X$pkg" = "X$p"; then
11252 enable_static=yes
11253 fi
11254 done
11255 IFS=$lt_save_ifs
11256 ;;
11257 esac
11258 else $as_nop
11259 enable_static=no
11260 fi
11261
11262
11263
11264
11265
11266
11267
11268
11269
11270 case `pwd` in
11271 *\ * | *\ *)
11272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
11273 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
11274 esac
11275
11276
11277
11278 macro_version='2.4.7'
11279 macro_revision='2.4.7'
11280
11281
11282
11283
11284
11285
11286
11287
11288
11289
11290
11291
11292
11293
11294 ltmain=$ac_aux_dir/ltmain.sh
11295
11296 # Backslashify metacharacters that are still active within
11297 # double-quoted strings.
11298 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
11299
11300 # Same as above, but do not quote variable references.
11301 double_quote_subst='s/\(["`\\]\)/\\\1/g'
11302
11303 # Sed substitution to delay expansion of an escaped shell variable in a
11304 # double_quote_subst'ed string.
11305 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11306
11307 # Sed substitution to delay expansion of an escaped single quote.
11308 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
11309
11310 # Sed substitution to avoid accidental globbing in evaled expressions
11311 no_glob_subst='s/\*/\\\*/g'
11312
11313 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11314 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
11315 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
11316
11317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
11318 printf %s "checking how to print strings... " >&6; }
11319 # Test print first, because it will be a builtin if present.
11320 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
11321 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
11322 ECHO='print -r --'
11323 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
11324 ECHO='printf %s\n'
11325 else
11326 # Use this function as a fallback that always works.
11327 func_fallback_echo ()
11328 {
11329 eval 'cat <<_LTECHO_EOF
11330 $1
11331 _LTECHO_EOF'
11332 }
11333 ECHO='func_fallback_echo'
11334 fi
11335
11336 # func_echo_all arg...
11337 # Invoke $ECHO with all args, space-separated.
11338 func_echo_all ()
11339 {
11340 $ECHO ""
11341 }
11342
11343 case $ECHO in
11344 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
11345 printf "%s\n" "printf" >&6; } ;;
11346 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
11347 printf "%s\n" "print -r" >&6; } ;;
11348 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
11349 printf "%s\n" "cat" >&6; } ;;
11350 esac
11351
11352
11353
11354
11355
11356
11357
11358
11359
11360
11361
11362
11363
11364
11365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
11366 printf %s "checking for a sed that does not truncate output... " >&6; }
11367 if test ${ac_cv_path_SED+y}
11368 then :
11369 printf %s "(cached) " >&6
11370 else $as_nop
11371 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
11372 for ac_i in 1 2 3 4 5 6 7; do
11373 ac_script="$ac_script$as_nl$ac_script"
11374 done
11375 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
11376 { ac_script=; unset ac_script;}
11377 if test -z "$SED"; then
11378 ac_path_SED_found=false
11379 # Loop through the user's path and test for each of PROGNAME-LIST
11380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11381 for as_dir in $PATH
11382 do
11383 IFS=$as_save_IFS
11384 case $as_dir in #(((
11385 '') as_dir=./ ;;
11386 */) ;;
11387 *) as_dir=$as_dir/ ;;
11388 esac
11389 for ac_prog in sed gsed
11390 do
11391 for ac_exec_ext in '' $ac_executable_extensions; do
11392 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
11393 as_fn_executable_p "$ac_path_SED" || continue
11394 # Check for GNU ac_path_SED and select it if it is found.
11395 # Check for GNU $ac_path_SED
11396 case `"$ac_path_SED" --version 2>&1` in
11397 *GNU*)
11398 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
11399 *)
11400 ac_count=0
11401 printf %s 0123456789 >"conftest.in"
11402 while :
11403 do
11404 cat "conftest.in" "conftest.in" >"conftest.tmp"
11405 mv "conftest.tmp" "conftest.in"
11406 cp "conftest.in" "conftest.nl"
11407 printf "%s\n" '' >> "conftest.nl"
11408 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
11409 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11410 as_fn_arith $ac_count + 1 && ac_count=$as_val
11411 if test $ac_count -gt ${ac_path_SED_max-0}; then
11412 # Best one so far, save it but keep looking for a better one
11413 ac_cv_path_SED="$ac_path_SED"
11414 ac_path_SED_max=$ac_count
11415 fi
11416 # 10*(2^10) chars as input seems more than enough
11417 test $ac_count -gt 10 && break
11418 done
11419 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11420 esac
11421
11422 $ac_path_SED_found && break 3
11423 done
11424 done
11425 done
11426 IFS=$as_save_IFS
11427 if test -z "$ac_cv_path_SED"; then
11428 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
11429 fi
11430 else
11431 ac_cv_path_SED=$SED
11432 fi
11433
11434 fi
11435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
11436 printf "%s\n" "$ac_cv_path_SED" >&6; }
11437 SED="$ac_cv_path_SED"
11438 rm -f conftest.sed
11439
11440 test -z "$SED" && SED=sed
11441 Xsed="$SED -e 1s/^X//"
11442
11443
11444
11445
11446
11447
11448
11449
11450
11451
11452
11453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
11454 printf %s "checking for grep that handles long lines and -e... " >&6; }
11455 if test ${ac_cv_path_GREP+y}
11456 then :
11457 printf %s "(cached) " >&6
11458 else $as_nop
11459 if test -z "$GREP"; then
11460 ac_path_GREP_found=false
11461 # Loop through the user's path and test for each of PROGNAME-LIST
11462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11463 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11464 do
11465 IFS=$as_save_IFS
11466 case $as_dir in #(((
11467 '') as_dir=./ ;;
11468 */) ;;
11469 *) as_dir=$as_dir/ ;;
11470 esac
11471 for ac_prog in grep ggrep
11472 do
11473 for ac_exec_ext in '' $ac_executable_extensions; do
11474 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
11475 as_fn_executable_p "$ac_path_GREP" || continue
11476 # Check for GNU ac_path_GREP and select it if it is found.
11477 # Check for GNU $ac_path_GREP
11478 case `"$ac_path_GREP" --version 2>&1` in
11479 *GNU*)
11480 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
11481 *)
11482 ac_count=0
11483 printf %s 0123456789 >"conftest.in"
11484 while :
11485 do
11486 cat "conftest.in" "conftest.in" >"conftest.tmp"
11487 mv "conftest.tmp" "conftest.in"
11488 cp "conftest.in" "conftest.nl"
11489 printf "%s\n" 'GREP' >> "conftest.nl"
11490 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11491 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11492 as_fn_arith $ac_count + 1 && ac_count=$as_val
11493 if test $ac_count -gt ${ac_path_GREP_max-0}; then
11494 # Best one so far, save it but keep looking for a better one
11495 ac_cv_path_GREP="$ac_path_GREP"
11496 ac_path_GREP_max=$ac_count
11497 fi
11498 # 10*(2^10) chars as input seems more than enough
11499 test $ac_count -gt 10 && break
11500 done
11501 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11502 esac
11503
11504 $ac_path_GREP_found && break 3
11505 done
11506 done
11507 done
11508 IFS=$as_save_IFS
11509 if test -z "$ac_cv_path_GREP"; then
11510 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11511 fi
11512 else
11513 ac_cv_path_GREP=$GREP
11514 fi
11515
11516 fi
11517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
11518 printf "%s\n" "$ac_cv_path_GREP" >&6; }
11519 GREP="$ac_cv_path_GREP"
11520
11521
11522 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
11523 printf %s "checking for egrep... " >&6; }
11524 if test ${ac_cv_path_EGREP+y}
11525 then :
11526 printf %s "(cached) " >&6
11527 else $as_nop
11528 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
11529 then ac_cv_path_EGREP="$GREP -E"
11530 else
11531 if test -z "$EGREP"; then
11532 ac_path_EGREP_found=false
11533 # Loop through the user's path and test for each of PROGNAME-LIST
11534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11535 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11536 do
11537 IFS=$as_save_IFS
11538 case $as_dir in #(((
11539 '') as_dir=./ ;;
11540 */) ;;
11541 *) as_dir=$as_dir/ ;;
11542 esac
11543 for ac_prog in egrep
11544 do
11545 for ac_exec_ext in '' $ac_executable_extensions; do
11546 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
11547 as_fn_executable_p "$ac_path_EGREP" || continue
11548 # Check for GNU ac_path_EGREP and select it if it is found.
11549 # Check for GNU $ac_path_EGREP
11550 case `"$ac_path_EGREP" --version 2>&1` in
11551 *GNU*)
11552 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
11553 *)
11554 ac_count=0
11555 printf %s 0123456789 >"conftest.in"
11556 while :
11557 do
11558 cat "conftest.in" "conftest.in" >"conftest.tmp"
11559 mv "conftest.tmp" "conftest.in"
11560 cp "conftest.in" "conftest.nl"
11561 printf "%s\n" 'EGREP' >> "conftest.nl"
11562 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11563 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11564 as_fn_arith $ac_count + 1 && ac_count=$as_val
11565 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
11566 # Best one so far, save it but keep looking for a better one
11567 ac_cv_path_EGREP="$ac_path_EGREP"
11568 ac_path_EGREP_max=$ac_count
11569 fi
11570 # 10*(2^10) chars as input seems more than enough
11571 test $ac_count -gt 10 && break
11572 done
11573 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11574 esac
11575
11576 $ac_path_EGREP_found && break 3
11577 done
11578 done
11579 done
11580 IFS=$as_save_IFS
11581 if test -z "$ac_cv_path_EGREP"; then
11582 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11583 fi
11584 else
11585 ac_cv_path_EGREP=$EGREP
11586 fi
11587
11588 fi
11589 fi
11590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
11591 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
11592 EGREP="$ac_cv_path_EGREP"
11593
11594
11595 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
11596 printf %s "checking for fgrep... " >&6; }
11597 if test ${ac_cv_path_FGREP+y}
11598 then :
11599 printf %s "(cached) " >&6
11600 else $as_nop
11601 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
11602 then ac_cv_path_FGREP="$GREP -F"
11603 else
11604 if test -z "$FGREP"; then
11605 ac_path_FGREP_found=false
11606 # Loop through the user's path and test for each of PROGNAME-LIST
11607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11608 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11609 do
11610 IFS=$as_save_IFS
11611 case $as_dir in #(((
11612 '') as_dir=./ ;;
11613 */) ;;
11614 *) as_dir=$as_dir/ ;;
11615 esac
11616 for ac_prog in fgrep
11617 do
11618 for ac_exec_ext in '' $ac_executable_extensions; do
11619 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
11620 as_fn_executable_p "$ac_path_FGREP" || continue
11621 # Check for GNU ac_path_FGREP and select it if it is found.
11622 # Check for GNU $ac_path_FGREP
11623 case `"$ac_path_FGREP" --version 2>&1` in
11624 *GNU*)
11625 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
11626 *)
11627 ac_count=0
11628 printf %s 0123456789 >"conftest.in"
11629 while :
11630 do
11631 cat "conftest.in" "conftest.in" >"conftest.tmp"
11632 mv "conftest.tmp" "conftest.in"
11633 cp "conftest.in" "conftest.nl"
11634 printf "%s\n" 'FGREP' >> "conftest.nl"
11635 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
11636 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11637 as_fn_arith $ac_count + 1 && ac_count=$as_val
11638 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
11639 # Best one so far, save it but keep looking for a better one
11640 ac_cv_path_FGREP="$ac_path_FGREP"
11641 ac_path_FGREP_max=$ac_count
11642 fi
11643 # 10*(2^10) chars as input seems more than enough
11644 test $ac_count -gt 10 && break
11645 done
11646 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11647 esac
11648
11649 $ac_path_FGREP_found && break 3
11650 done
11651 done
11652 done
11653 IFS=$as_save_IFS
11654 if test -z "$ac_cv_path_FGREP"; then
11655 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11656 fi
11657 else
11658 ac_cv_path_FGREP=$FGREP
11659 fi
11660
11661 fi
11662 fi
11663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
11664 printf "%s\n" "$ac_cv_path_FGREP" >&6; }
11665 FGREP="$ac_cv_path_FGREP"
11666
11667
11668 test -z "$GREP" && GREP=grep
11669
11670
11671
11672
11673
11674
11675
11676
11677
11678
11679
11680
11681
11682
11683
11684
11685
11686
11687
11688 # Check whether --with-gnu-ld was given.
11689 if test ${with_gnu_ld+y}
11690 then :
11691 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
11692 else $as_nop
11693 with_gnu_ld=no
11694 fi
11695
11696 ac_prog=ld
11697 if test yes = "$GCC"; then
11698 # Check if gcc -print-prog-name=ld gives a path.
11699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
11700 printf %s "checking for ld used by $CC... " >&6; }
11701 case $host in
11702 *-*-mingw*)
11703 # gcc leaves a trailing carriage return, which upsets mingw
11704 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11705 *)
11706 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11707 esac
11708 case $ac_prog in
11709 # Accept absolute paths.
11710 [\\/]* | ?:[\\/]*)
11711 re_direlt='/[^/][^/]*/\.\./'
11712 # Canonicalize the pathname of ld
11713 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
11714 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
11715 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
11716 done
11717 test -z "$LD" && LD=$ac_prog
11718 ;;
11719 "")
11720 # If it fails, then pretend we aren't using GCC.
11721 ac_prog=ld
11722 ;;
11723 *)
11724 # If it is relative, then search for the first ld in PATH.
11725 with_gnu_ld=unknown
11726 ;;
11727 esac
11728 elif test yes = "$with_gnu_ld"; then
11729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11730 printf %s "checking for GNU ld... " >&6; }
11731 else
11732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11733 printf %s "checking for non-GNU ld... " >&6; }
11734 fi
11735 if test ${lt_cv_path_LD+y}
11736 then :
11737 printf %s "(cached) " >&6
11738 else $as_nop
11739 if test -z "$LD"; then
11740 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11741 for ac_dir in $PATH; do
11742 IFS=$lt_save_ifs
11743 test -z "$ac_dir" && ac_dir=.
11744 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11745 lt_cv_path_LD=$ac_dir/$ac_prog
11746 # Check to see if the program is GNU ld. I'd rather use --version,
11747 # but apparently some variants of GNU ld only accept -v.
11748 # Break only if it was the GNU/non-GNU ld that we prefer.
11749 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11750 *GNU* | *'with BFD'*)
11751 test no != "$with_gnu_ld" && break
11752 ;;
11753 *)
11754 test yes != "$with_gnu_ld" && break
11755 ;;
11756 esac
11757 fi
11758 done
11759 IFS=$lt_save_ifs
11760 else
11761 lt_cv_path_LD=$LD # Let the user override the test with a path.
11762 fi
11763 fi
11764
11765 LD=$lt_cv_path_LD
11766 if test -n "$LD"; then
11767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11768 printf "%s\n" "$LD" >&6; }
11769 else
11770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11771 printf "%s\n" "no" >&6; }
11772 fi
11773 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
11774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11775 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
11776 if test ${lt_cv_prog_gnu_ld+y}
11777 then :
11778 printf %s "(cached) " >&6
11779 else $as_nop
11780 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11781 case `$LD -v 2>&1 </dev/null` in
11782 *GNU* | *'with BFD'*)
11783 lt_cv_prog_gnu_ld=yes
11784 ;;
11785 *)
11786 lt_cv_prog_gnu_ld=no
11787 ;;
11788 esac
11789 fi
11790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
11791 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
11792 with_gnu_ld=$lt_cv_prog_gnu_ld
11793
11794
11795
11796
11797
11798
11799
11800
11801
11802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
11803 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
11804 if test ${lt_cv_path_NM+y}
11805 then :
11806 printf %s "(cached) " >&6
11807 else $as_nop
11808 if test -n "$NM"; then
11809 # Let the user override the test.
11810 lt_cv_path_NM=$NM
11811 else
11812 lt_nm_to_check=${ac_tool_prefix}nm
11813 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
11814 lt_nm_to_check="$lt_nm_to_check nm"
11815 fi
11816 for lt_tmp_nm in $lt_nm_to_check; do
11817 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11818 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
11819 IFS=$lt_save_ifs
11820 test -z "$ac_dir" && ac_dir=.
11821 tmp_nm=$ac_dir/$lt_tmp_nm
11822 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
11823 # Check to see if the nm accepts a BSD-compat flag.
11824 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
11825 # nm: unknown option "B" ignored
11826 # Tru64's nm complains that /dev/null is an invalid object file
11827 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
11828 case $build_os in
11829 mingw*) lt_bad_file=conftest.nm/nofile ;;
11830 *) lt_bad_file=/dev/null ;;
11831 esac
11832 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
11833 *$lt_bad_file* | *'Invalid file or object type'*)
11834 lt_cv_path_NM="$tmp_nm -B"
11835 break 2
11836 ;;
11837 *)
11838 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
11839 */dev/null*)
11840 lt_cv_path_NM="$tmp_nm -p"
11841 break 2
11842 ;;
11843 *)
11844 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
11845 continue # so that we can try to find one that supports BSD flags
11846 ;;
11847 esac
11848 ;;
11849 esac
11850 fi
11851 done
11852 IFS=$lt_save_ifs
11853 done
11854 : ${lt_cv_path_NM=no}
11855 fi
11856 fi
11857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
11858 printf "%s\n" "$lt_cv_path_NM" >&6; }
11859 if test no != "$lt_cv_path_NM"; then
11860 NM=$lt_cv_path_NM
11861 else
11862 # Didn't find any BSD compatible name lister, look for dumpbin.
11863 if test -n "$DUMPBIN"; then :
11864 # Let the user override the test.
11865 else
11866 if test -n "$ac_tool_prefix"; then
11867 for ac_prog in dumpbin "link -dump"
11868 do
11869 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11870 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11871 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11872 printf %s "checking for $ac_word... " >&6; }
11873 if test ${ac_cv_prog_DUMPBIN+y}
11874 then :
11875 printf %s "(cached) " >&6
11876 else $as_nop
11877 if test -n "$DUMPBIN"; then
11878 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
11879 else
11880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11881 for as_dir in $PATH
11882 do
11883 IFS=$as_save_IFS
11884 case $as_dir in #(((
11885 '') as_dir=./ ;;
11886 */) ;;
11887 *) as_dir=$as_dir/ ;;
11888 esac
11889 for ac_exec_ext in '' $ac_executable_extensions; do
11890 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11891 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
11892 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11893 break 2
11894 fi
11895 done
11896 done
11897 IFS=$as_save_IFS
11898
11899 fi
11900 fi
11901 DUMPBIN=$ac_cv_prog_DUMPBIN
11902 if test -n "$DUMPBIN"; then
11903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
11904 printf "%s\n" "$DUMPBIN" >&6; }
11905 else
11906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11907 printf "%s\n" "no" >&6; }
11908 fi
11909
11910
11911 test -n "$DUMPBIN" && break
11912 done
11913 fi
11914 if test -z "$DUMPBIN"; then
11915 ac_ct_DUMPBIN=$DUMPBIN
11916 for ac_prog in dumpbin "link -dump"
11917 do
11918 # Extract the first word of "$ac_prog", so it can be a program name with args.
11919 set dummy $ac_prog; ac_word=$2
11920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11921 printf %s "checking for $ac_word... " >&6; }
11922 if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
11923 then :
11924 printf %s "(cached) " >&6
11925 else $as_nop
11926 if test -n "$ac_ct_DUMPBIN"; then
11927 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
11928 else
11929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11930 for as_dir in $PATH
11931 do
11932 IFS=$as_save_IFS
11933 case $as_dir in #(((
11934 '') as_dir=./ ;;
11935 */) ;;
11936 *) as_dir=$as_dir/ ;;
11937 esac
11938 for ac_exec_ext in '' $ac_executable_extensions; do
11939 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11940 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
11941 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11942 break 2
11943 fi
11944 done
11945 done
11946 IFS=$as_save_IFS
11947
11948 fi
11949 fi
11950 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
11951 if test -n "$ac_ct_DUMPBIN"; then
11952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
11953 printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
11954 else
11955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11956 printf "%s\n" "no" >&6; }
11957 fi
11958
11959
11960 test -n "$ac_ct_DUMPBIN" && break
11961 done
11962
11963 if test "x$ac_ct_DUMPBIN" = x; then
11964 DUMPBIN=":"
11965 else
11966 case $cross_compiling:$ac_tool_warned in
11967 yes:)
11968 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11969 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11970 ac_tool_warned=yes ;;
11971 esac
11972 DUMPBIN=$ac_ct_DUMPBIN
11973 fi
11974 fi
11975
11976 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
11977 *COFF*)
11978 DUMPBIN="$DUMPBIN -symbols -headers"
11979 ;;
11980 *)
11981 DUMPBIN=:
11982 ;;
11983 esac
11984 fi
11985
11986 if test : != "$DUMPBIN"; then
11987 NM=$DUMPBIN
11988 fi
11989 fi
11990 test -z "$NM" && NM=nm
11991
11992
11993
11994
11995
11996
11997 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
11998 printf %s "checking the name lister ($NM) interface... " >&6; }
11999 if test ${lt_cv_nm_interface+y}
12000 then :
12001 printf %s "(cached) " >&6
12002 else $as_nop
12003 lt_cv_nm_interface="BSD nm"
12004 echo "int some_variable = 0;" > conftest.$ac_ext
12005 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
12006 (eval "$ac_compile" 2>conftest.err)
12007 cat conftest.err >&5
12008 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
12009 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
12010 cat conftest.err >&5
12011 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
12012 cat conftest.out >&5
12013 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
12014 lt_cv_nm_interface="MS dumpbin"
12015 fi
12016 rm -f conftest*
12017 fi
12018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
12019 printf "%s\n" "$lt_cv_nm_interface" >&6; }
12020
12021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
12022 printf %s "checking whether ln -s works... " >&6; }
12023 LN_S=$as_ln_s
12024 if test "$LN_S" = "ln -s"; then
12025 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12026 printf "%s\n" "yes" >&6; }
12027 else
12028 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
12029 printf "%s\n" "no, using $LN_S" >&6; }
12030 fi
12031
12032 # find the maximum length of command line arguments
12033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
12034 printf %s "checking the maximum length of command line arguments... " >&6; }
12035 if test ${lt_cv_sys_max_cmd_len+y}
12036 then :
12037 printf %s "(cached) " >&6
12038 else $as_nop
12039 i=0
12040 teststring=ABCD
12041
12042 case $build_os in
12043 msdosdjgpp*)
12044 # On DJGPP, this test can blow up pretty badly due to problems in libc
12045 # (any single argument exceeding 2000 bytes causes a buffer overrun
12046 # during glob expansion). Even if it were fixed, the result of this
12047 # check would be larger than it should be.
12048 lt_cv_sys_max_cmd_len=12288; # 12K is about right
12049 ;;
12050
12051 gnu*)
12052 # Under GNU Hurd, this test is not required because there is
12053 # no limit to the length of command line arguments.
12054 # Libtool will interpret -1 as no limit whatsoever
12055 lt_cv_sys_max_cmd_len=-1;
12056 ;;
12057
12058 cygwin* | mingw* | cegcc*)
12059 # On Win9x/ME, this test blows up -- it succeeds, but takes
12060 # about 5 minutes as the teststring grows exponentially.
12061 # Worse, since 9x/ME are not pre-emptively multitasking,
12062 # you end up with a "frozen" computer, even though with patience
12063 # the test eventually succeeds (with a max line length of 256k).
12064 # Instead, let's just punt: use the minimum linelength reported by
12065 # all of the supported platforms: 8192 (on NT/2K/XP).
12066 lt_cv_sys_max_cmd_len=8192;
12067 ;;
12068
12069 mint*)
12070 # On MiNT this can take a long time and run out of memory.
12071 lt_cv_sys_max_cmd_len=8192;
12072 ;;
12073
12074 amigaos*)
12075 # On AmigaOS with pdksh, this test takes hours, literally.
12076 # So we just punt and use a minimum line length of 8192.
12077 lt_cv_sys_max_cmd_len=8192;
12078 ;;
12079
12080 bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
12081 # This has been around since 386BSD, at least. Likely further.
12082 if test -x /sbin/sysctl; then
12083 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
12084 elif test -x /usr/sbin/sysctl; then
12085 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
12086 else
12087 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
12088 fi
12089 # And add a safety zone
12090 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12091 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12092 ;;
12093
12094 interix*)
12095 # We know the value 262144 and hardcode it with a safety zone (like BSD)
12096 lt_cv_sys_max_cmd_len=196608
12097 ;;
12098
12099 os2*)
12100 # The test takes a long time on OS/2.
12101 lt_cv_sys_max_cmd_len=8192
12102 ;;
12103
12104 osf*)
12105 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
12106 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
12107 # nice to cause kernel panics so lets avoid the loop below.
12108 # First set a reasonable default.
12109 lt_cv_sys_max_cmd_len=16384
12110 #
12111 if test -x /sbin/sysconfig; then
12112 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
12113 *1*) lt_cv_sys_max_cmd_len=-1 ;;
12114 esac
12115 fi
12116 ;;
12117 sco3.2v5*)
12118 lt_cv_sys_max_cmd_len=102400
12119 ;;
12120 sysv5* | sco5v6* | sysv4.2uw2*)
12121 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
12122 if test -n "$kargmax"; then
12123 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'`
12124 else
12125 lt_cv_sys_max_cmd_len=32768
12126 fi
12127 ;;
12128 *)
12129 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
12130 if test -n "$lt_cv_sys_max_cmd_len" && \
12131 test undefined != "$lt_cv_sys_max_cmd_len"; then
12132 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12133 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12134 else
12135 # Make teststring a little bigger before we do anything with it.
12136 # a 1K string should be a reasonable start.
12137 for i in 1 2 3 4 5 6 7 8; do
12138 teststring=$teststring$teststring
12139 done
12140 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
12141 # If test is not a shell built-in, we'll probably end up computing a
12142 # maximum length that is only half of the actual maximum length, but
12143 # we can't tell.
12144 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
12145 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
12146 test 17 != "$i" # 1/2 MB should be enough
12147 do
12148 i=`expr $i + 1`
12149 teststring=$teststring$teststring
12150 done
12151 # Only check the string length outside the loop.
12152 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
12153 teststring=
12154 # Add a significant safety factor because C++ compilers can tack on
12155 # massive amounts of additional arguments before passing them to the
12156 # linker. It appears as though 1/2 is a usable value.
12157 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
12158 fi
12159 ;;
12160 esac
12161
12162 fi
12163
12164 if test -n "$lt_cv_sys_max_cmd_len"; then
12165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
12166 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
12167 else
12168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
12169 printf "%s\n" "none" >&6; }
12170 fi
12171 max_cmd_len=$lt_cv_sys_max_cmd_len
12172
12173
12174
12175
12176
12177
12178 : ${CP="cp -f"}
12179 : ${MV="mv -f"}
12180 : ${RM="rm -f"}
12181
12182 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12183 lt_unset=unset
12184 else
12185 lt_unset=false
12186 fi
12187
12188
12189
12190
12191
12192 # test EBCDIC or ASCII
12193 case `echo X|tr X '\101'` in
12194 A) # ASCII based system
12195 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
12196 lt_SP2NL='tr \040 \012'
12197 lt_NL2SP='tr \015\012 \040\040'
12198 ;;
12199 *) # EBCDIC based system
12200 lt_SP2NL='tr \100 \n'
12201 lt_NL2SP='tr \r\n \100\100'
12202 ;;
12203 esac
12204
12205
12206
12207
12208
12209
12210
12211
12212
12213 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
12214 printf %s "checking how to convert $build file names to $host format... " >&6; }
12215 if test ${lt_cv_to_host_file_cmd+y}
12216 then :
12217 printf %s "(cached) " >&6
12218 else $as_nop
12219 case $host in
12220 *-*-mingw* )
12221 case $build in
12222 *-*-mingw* ) # actually msys
12223 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
12224 ;;
12225 *-*-cygwin* )
12226 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
12227 ;;
12228 * ) # otherwise, assume *nix
12229 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
12230 ;;
12231 esac
12232 ;;
12233 *-*-cygwin* )
12234 case $build in
12235 *-*-mingw* ) # actually msys
12236 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
12237 ;;
12238 *-*-cygwin* )
12239 lt_cv_to_host_file_cmd=func_convert_file_noop
12240 ;;
12241 * ) # otherwise, assume *nix
12242 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
12243 ;;
12244 esac
12245 ;;
12246 * ) # unhandled hosts (and "normal" native builds)
12247 lt_cv_to_host_file_cmd=func_convert_file_noop
12248 ;;
12249 esac
12250
12251 fi
12252
12253 to_host_file_cmd=$lt_cv_to_host_file_cmd
12254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
12255 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
12256
12257
12258
12259
12260
12261 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
12262 printf %s "checking how to convert $build file names to toolchain format... " >&6; }
12263 if test ${lt_cv_to_tool_file_cmd+y}
12264 then :
12265 printf %s "(cached) " >&6
12266 else $as_nop
12267 #assume ordinary cross tools, or native build.
12268 lt_cv_to_tool_file_cmd=func_convert_file_noop
12269 case $host in
12270 *-*-mingw* )
12271 case $build in
12272 *-*-mingw* ) # actually msys
12273 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
12274 ;;
12275 esac
12276 ;;
12277 esac
12278
12279 fi
12280
12281 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
12282 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
12283 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
12284
12285
12286
12287
12288
12289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
12290 printf %s "checking for $LD option to reload object files... " >&6; }
12291 if test ${lt_cv_ld_reload_flag+y}
12292 then :
12293 printf %s "(cached) " >&6
12294 else $as_nop
12295 lt_cv_ld_reload_flag='-r'
12296 fi
12297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
12298 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
12299 reload_flag=$lt_cv_ld_reload_flag
12300 case $reload_flag in
12301 "" | " "*) ;;
12302 *) reload_flag=" $reload_flag" ;;
12303 esac
12304 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12305 case $host_os in
12306 cygwin* | mingw* | pw32* | cegcc*)
12307 if test yes != "$GCC"; then
12308 reload_cmds=false
12309 fi
12310 ;;
12311 darwin*)
12312 if test yes = "$GCC"; then
12313 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
12314 else
12315 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12316 fi
12317 ;;
12318 esac
12319
12320
12321
12322
12323
12324
12325
12326
12327
12328 if test -n "$ac_tool_prefix"; then
12329 # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args.
12330 set dummy ${ac_tool_prefix}file; ac_word=$2
12331 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12332 printf %s "checking for $ac_word... " >&6; }
12333 if test ${ac_cv_prog_FILECMD+y}
12334 then :
12335 printf %s "(cached) " >&6
12336 else $as_nop
12337 if test -n "$FILECMD"; then
12338 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
12339 else
12340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12341 for as_dir in $PATH
12342 do
12343 IFS=$as_save_IFS
12344 case $as_dir in #(((
12345 '') as_dir=./ ;;
12346 */) ;;
12347 *) as_dir=$as_dir/ ;;
12348 esac
12349 for ac_exec_ext in '' $ac_executable_extensions; do
12350 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12351 ac_cv_prog_FILECMD="${ac_tool_prefix}file"
12352 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12353 break 2
12354 fi
12355 done
12356 done
12357 IFS=$as_save_IFS
12358
12359 fi
12360 fi
12361 FILECMD=$ac_cv_prog_FILECMD
12362 if test -n "$FILECMD"; then
12363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
12364 printf "%s\n" "$FILECMD" >&6; }
12365 else
12366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12367 printf "%s\n" "no" >&6; }
12368 fi
12369
12370
12371 fi
12372 if test -z "$ac_cv_prog_FILECMD"; then
12373 ac_ct_FILECMD=$FILECMD
12374 # Extract the first word of "file", so it can be a program name with args.
12375 set dummy file; ac_word=$2
12376 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12377 printf %s "checking for $ac_word... " >&6; }
12378 if test ${ac_cv_prog_ac_ct_FILECMD+y}
12379 then :
12380 printf %s "(cached) " >&6
12381 else $as_nop
12382 if test -n "$ac_ct_FILECMD"; then
12383 ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test.
12384 else
12385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12386 for as_dir in $PATH
12387 do
12388 IFS=$as_save_IFS
12389 case $as_dir in #(((
12390 '') as_dir=./ ;;
12391 */) ;;
12392 *) as_dir=$as_dir/ ;;
12393 esac
12394 for ac_exec_ext in '' $ac_executable_extensions; do
12395 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12396 ac_cv_prog_ac_ct_FILECMD="file"
12397 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12398 break 2
12399 fi
12400 done
12401 done
12402 IFS=$as_save_IFS
12403
12404 fi
12405 fi
12406 ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD
12407 if test -n "$ac_ct_FILECMD"; then
12408 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5
12409 printf "%s\n" "$ac_ct_FILECMD" >&6; }
12410 else
12411 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12412 printf "%s\n" "no" >&6; }
12413 fi
12414
12415 if test "x$ac_ct_FILECMD" = x; then
12416 FILECMD=":"
12417 else
12418 case $cross_compiling:$ac_tool_warned in
12419 yes:)
12420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12421 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12422 ac_tool_warned=yes ;;
12423 esac
12424 FILECMD=$ac_ct_FILECMD
12425 fi
12426 else
12427 FILECMD="$ac_cv_prog_FILECMD"
12428 fi
12429
12430
12431
12432
12433
12434
12435
12436 if test -n "$ac_tool_prefix"; then
12437 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
12438 set dummy ${ac_tool_prefix}objdump; ac_word=$2
12439 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12440 printf %s "checking for $ac_word... " >&6; }
12441 if test ${ac_cv_prog_OBJDUMP+y}
12442 then :
12443 printf %s "(cached) " >&6
12444 else $as_nop
12445 if test -n "$OBJDUMP"; then
12446 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12447 else
12448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12449 for as_dir in $PATH
12450 do
12451 IFS=$as_save_IFS
12452 case $as_dir in #(((
12453 '') as_dir=./ ;;
12454 */) ;;
12455 *) as_dir=$as_dir/ ;;
12456 esac
12457 for ac_exec_ext in '' $ac_executable_extensions; do
12458 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12459 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
12460 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12461 break 2
12462 fi
12463 done
12464 done
12465 IFS=$as_save_IFS
12466
12467 fi
12468 fi
12469 OBJDUMP=$ac_cv_prog_OBJDUMP
12470 if test -n "$OBJDUMP"; then
12471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12472 printf "%s\n" "$OBJDUMP" >&6; }
12473 else
12474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12475 printf "%s\n" "no" >&6; }
12476 fi
12477
12478
12479 fi
12480 if test -z "$ac_cv_prog_OBJDUMP"; then
12481 ac_ct_OBJDUMP=$OBJDUMP
12482 # Extract the first word of "objdump", so it can be a program name with args.
12483 set dummy objdump; ac_word=$2
12484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12485 printf %s "checking for $ac_word... " >&6; }
12486 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
12487 then :
12488 printf %s "(cached) " >&6
12489 else $as_nop
12490 if test -n "$ac_ct_OBJDUMP"; then
12491 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
12492 else
12493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12494 for as_dir in $PATH
12495 do
12496 IFS=$as_save_IFS
12497 case $as_dir in #(((
12498 '') as_dir=./ ;;
12499 */) ;;
12500 *) as_dir=$as_dir/ ;;
12501 esac
12502 for ac_exec_ext in '' $ac_executable_extensions; do
12503 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12504 ac_cv_prog_ac_ct_OBJDUMP="objdump"
12505 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12506 break 2
12507 fi
12508 done
12509 done
12510 IFS=$as_save_IFS
12511
12512 fi
12513 fi
12514 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
12515 if test -n "$ac_ct_OBJDUMP"; then
12516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
12517 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
12518 else
12519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12520 printf "%s\n" "no" >&6; }
12521 fi
12522
12523 if test "x$ac_ct_OBJDUMP" = x; then
12524 OBJDUMP="false"
12525 else
12526 case $cross_compiling:$ac_tool_warned in
12527 yes:)
12528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12529 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12530 ac_tool_warned=yes ;;
12531 esac
12532 OBJDUMP=$ac_ct_OBJDUMP
12533 fi
12534 else
12535 OBJDUMP="$ac_cv_prog_OBJDUMP"
12536 fi
12537
12538 test -z "$OBJDUMP" && OBJDUMP=objdump
12539
12540
12541
12542
12543
12544
12545
12546
12547
12548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
12549 printf %s "checking how to recognize dependent libraries... " >&6; }
12550 if test ${lt_cv_deplibs_check_method+y}
12551 then :
12552 printf %s "(cached) " >&6
12553 else $as_nop
12554 lt_cv_file_magic_cmd='$MAGIC_CMD'
12555 lt_cv_file_magic_test_file=
12556 lt_cv_deplibs_check_method='unknown'
12557 # Need to set the preceding variable on all platforms that support
12558 # interlibrary dependencies.
12559 # 'none' -- dependencies not supported.
12560 # 'unknown' -- same as none, but documents that we really don't know.
12561 # 'pass_all' -- all dependencies passed with no checks.
12562 # 'test_compile' -- check by making test program.
12563 # 'file_magic [[regex]]' -- check by looking for files in library path
12564 # that responds to the $file_magic_cmd with a given extended regex.
12565 # If you have 'file' or equivalent on your system and you're not sure
12566 # whether 'pass_all' will *always* work, you probably want this one.
12567
12568 case $host_os in
12569 aix[4-9]*)
12570 lt_cv_deplibs_check_method=pass_all
12571 ;;
12572
12573 beos*)
12574 lt_cv_deplibs_check_method=pass_all
12575 ;;
12576
12577 bsdi[45]*)
12578 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12579 lt_cv_file_magic_cmd='$FILECMD -L'
12580 lt_cv_file_magic_test_file=/shlib/libc.so
12581 ;;
12582
12583 cygwin*)
12584 # func_win32_libid is a shell function defined in ltmain.sh
12585 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12586 lt_cv_file_magic_cmd='func_win32_libid'
12587 ;;
12588
12589 mingw* | pw32*)
12590 # Base MSYS/MinGW do not provide the 'file' command needed by
12591 # func_win32_libid shell function, so use a weaker test based on 'objdump',
12592 # unless we find 'file', for example because we are cross-compiling.
12593 if ( file / ) >/dev/null 2>&1; then
12594 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12595 lt_cv_file_magic_cmd='func_win32_libid'
12596 else
12597 # Keep this pattern in sync with the one in func_win32_libid.
12598 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
12599 lt_cv_file_magic_cmd='$OBJDUMP -f'
12600 fi
12601 ;;
12602
12603 cegcc*)
12604 # use the weaker test based on 'objdump'. See mingw*.
12605 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
12606 lt_cv_file_magic_cmd='$OBJDUMP -f'
12607 ;;
12608
12609 darwin* | rhapsody*)
12610 lt_cv_deplibs_check_method=pass_all
12611 ;;
12612
12613 freebsd* | dragonfly* | midnightbsd*)
12614 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12615 case $host_cpu in
12616 i*86 )
12617 # Not sure whether the presence of OpenBSD here was a mistake.
12618 # Let's accept both of them until this is cleared up.
12619 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12620 lt_cv_file_magic_cmd=$FILECMD
12621 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12622 ;;
12623 esac
12624 else
12625 lt_cv_deplibs_check_method=pass_all
12626 fi
12627 ;;
12628
12629 haiku*)
12630 lt_cv_deplibs_check_method=pass_all
12631 ;;
12632
12633 hpux10.20* | hpux11*)
12634 lt_cv_file_magic_cmd=$FILECMD
12635 case $host_cpu in
12636 ia64*)
12637 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12638 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12639 ;;
12640 hppa*64*)
12641 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]'
12642 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12643 ;;
12644 *)
12645 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
12646 lt_cv_file_magic_test_file=/usr/lib/libc.sl
12647 ;;
12648 esac
12649 ;;
12650
12651 interix[3-9]*)
12652 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12653 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12654 ;;
12655
12656 irix5* | irix6* | nonstopux*)
12657 case $LD in
12658 *-32|*"-32 ") libmagic=32-bit;;
12659 *-n32|*"-n32 ") libmagic=N32;;
12660 *-64|*"-64 ") libmagic=64-bit;;
12661 *) libmagic=never-match;;
12662 esac
12663 lt_cv_deplibs_check_method=pass_all
12664 ;;
12665
12666 # This must be glibc/ELF.
12667 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12668 lt_cv_deplibs_check_method=pass_all
12669 ;;
12670
12671 netbsd*)
12672 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12673 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12674 else
12675 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12676 fi
12677 ;;
12678
12679 newos6*)
12680 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12681 lt_cv_file_magic_cmd=$FILECMD
12682 lt_cv_file_magic_test_file=/usr/lib/libnls.so
12683 ;;
12684
12685 *nto* | *qnx*)
12686 lt_cv_deplibs_check_method=pass_all
12687 ;;
12688
12689 openbsd* | bitrig*)
12690 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12691 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12692 else
12693 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12694 fi
12695 ;;
12696
12697 osf3* | osf4* | osf5*)
12698 lt_cv_deplibs_check_method=pass_all
12699 ;;
12700
12701 rdos*)
12702 lt_cv_deplibs_check_method=pass_all
12703 ;;
12704
12705 solaris*)
12706 lt_cv_deplibs_check_method=pass_all
12707 ;;
12708
12709 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12710 lt_cv_deplibs_check_method=pass_all
12711 ;;
12712
12713 sysv4 | sysv4.3*)
12714 case $host_vendor in
12715 motorola)
12716 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]'
12717 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12718 ;;
12719 ncr)
12720 lt_cv_deplibs_check_method=pass_all
12721 ;;
12722 sequent)
12723 lt_cv_file_magic_cmd='/bin/file'
12724 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12725 ;;
12726 sni)
12727 lt_cv_file_magic_cmd='/bin/file'
12728 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12729 lt_cv_file_magic_test_file=/lib/libc.so
12730 ;;
12731 siemens)
12732 lt_cv_deplibs_check_method=pass_all
12733 ;;
12734 pc)
12735 lt_cv_deplibs_check_method=pass_all
12736 ;;
12737 esac
12738 ;;
12739
12740 tpf*)
12741 lt_cv_deplibs_check_method=pass_all
12742 ;;
12743 os2*)
12744 lt_cv_deplibs_check_method=pass_all
12745 ;;
12746 esac
12747
12748 fi
12749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
12750 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
12751
12752 file_magic_glob=
12753 want_nocaseglob=no
12754 if test "$build" = "$host"; then
12755 case $host_os in
12756 mingw* | pw32*)
12757 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
12758 want_nocaseglob=yes
12759 else
12760 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
12761 fi
12762 ;;
12763 esac
12764 fi
12765
12766 file_magic_cmd=$lt_cv_file_magic_cmd
12767 deplibs_check_method=$lt_cv_deplibs_check_method
12768 test -z "$deplibs_check_method" && deplibs_check_method=unknown
12769
12770
12771
12772
12773
12774
12775
12776
12777
12778
12779
12780
12781
12782
12783
12784
12785
12786
12787
12788
12789
12790
12791 if test -n "$ac_tool_prefix"; then
12792 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
12793 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
12794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12795 printf %s "checking for $ac_word... " >&6; }
12796 if test ${ac_cv_prog_DLLTOOL+y}
12797 then :
12798 printf %s "(cached) " >&6
12799 else $as_nop
12800 if test -n "$DLLTOOL"; then
12801 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
12802 else
12803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12804 for as_dir in $PATH
12805 do
12806 IFS=$as_save_IFS
12807 case $as_dir in #(((
12808 '') as_dir=./ ;;
12809 */) ;;
12810 *) as_dir=$as_dir/ ;;
12811 esac
12812 for ac_exec_ext in '' $ac_executable_extensions; do
12813 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12814 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
12815 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12816 break 2
12817 fi
12818 done
12819 done
12820 IFS=$as_save_IFS
12821
12822 fi
12823 fi
12824 DLLTOOL=$ac_cv_prog_DLLTOOL
12825 if test -n "$DLLTOOL"; then
12826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
12827 printf "%s\n" "$DLLTOOL" >&6; }
12828 else
12829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12830 printf "%s\n" "no" >&6; }
12831 fi
12832
12833
12834 fi
12835 if test -z "$ac_cv_prog_DLLTOOL"; then
12836 ac_ct_DLLTOOL=$DLLTOOL
12837 # Extract the first word of "dlltool", so it can be a program name with args.
12838 set dummy dlltool; ac_word=$2
12839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12840 printf %s "checking for $ac_word... " >&6; }
12841 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
12842 then :
12843 printf %s "(cached) " >&6
12844 else $as_nop
12845 if test -n "$ac_ct_DLLTOOL"; then
12846 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
12847 else
12848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12849 for as_dir in $PATH
12850 do
12851 IFS=$as_save_IFS
12852 case $as_dir in #(((
12853 '') as_dir=./ ;;
12854 */) ;;
12855 *) as_dir=$as_dir/ ;;
12856 esac
12857 for ac_exec_ext in '' $ac_executable_extensions; do
12858 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12859 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
12860 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12861 break 2
12862 fi
12863 done
12864 done
12865 IFS=$as_save_IFS
12866
12867 fi
12868 fi
12869 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
12870 if test -n "$ac_ct_DLLTOOL"; then
12871 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
12872 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
12873 else
12874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12875 printf "%s\n" "no" >&6; }
12876 fi
12877
12878 if test "x$ac_ct_DLLTOOL" = x; then
12879 DLLTOOL="false"
12880 else
12881 case $cross_compiling:$ac_tool_warned in
12882 yes:)
12883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12884 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12885 ac_tool_warned=yes ;;
12886 esac
12887 DLLTOOL=$ac_ct_DLLTOOL
12888 fi
12889 else
12890 DLLTOOL="$ac_cv_prog_DLLTOOL"
12891 fi
12892
12893 test -z "$DLLTOOL" && DLLTOOL=dlltool
12894
12895
12896
12897
12898
12899
12900
12901
12902
12903
12904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
12905 printf %s "checking how to associate runtime and link libraries... " >&6; }
12906 if test ${lt_cv_sharedlib_from_linklib_cmd+y}
12907 then :
12908 printf %s "(cached) " >&6
12909 else $as_nop
12910 lt_cv_sharedlib_from_linklib_cmd='unknown'
12911
12912 case $host_os in
12913 cygwin* | mingw* | pw32* | cegcc*)
12914 # two different shell functions defined in ltmain.sh;
12915 # decide which one to use based on capabilities of $DLLTOOL
12916 case `$DLLTOOL --help 2>&1` in
12917 *--identify-strict*)
12918 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
12919 ;;
12920 *)
12921 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
12922 ;;
12923 esac
12924 ;;
12925 *)
12926 # fallback: assume linklib IS sharedlib
12927 lt_cv_sharedlib_from_linklib_cmd=$ECHO
12928 ;;
12929 esac
12930
12931 fi
12932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
12933 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
12934 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
12935 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
12936
12937
12938
12939
12940
12941
12942
12943 if test -n "$ac_tool_prefix"; then
12944 for ac_prog in ar
12945 do
12946 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12947 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12949 printf %s "checking for $ac_word... " >&6; }
12950 if test ${ac_cv_prog_AR+y}
12951 then :
12952 printf %s "(cached) " >&6
12953 else $as_nop
12954 if test -n "$AR"; then
12955 ac_cv_prog_AR="$AR" # Let the user override the test.
12956 else
12957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12958 for as_dir in $PATH
12959 do
12960 IFS=$as_save_IFS
12961 case $as_dir in #(((
12962 '') as_dir=./ ;;
12963 */) ;;
12964 *) as_dir=$as_dir/ ;;
12965 esac
12966 for ac_exec_ext in '' $ac_executable_extensions; do
12967 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12968 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
12969 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12970 break 2
12971 fi
12972 done
12973 done
12974 IFS=$as_save_IFS
12975
12976 fi
12977 fi
12978 AR=$ac_cv_prog_AR
12979 if test -n "$AR"; then
12980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
12981 printf "%s\n" "$AR" >&6; }
12982 else
12983 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12984 printf "%s\n" "no" >&6; }
12985 fi
12986
12987
12988 test -n "$AR" && break
12989 done
12990 fi
12991 if test -z "$AR"; then
12992 ac_ct_AR=$AR
12993 for ac_prog in ar
12994 do
12995 # Extract the first word of "$ac_prog", so it can be a program name with args.
12996 set dummy $ac_prog; ac_word=$2
12997 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12998 printf %s "checking for $ac_word... " >&6; }
12999 if test ${ac_cv_prog_ac_ct_AR+y}
13000 then :
13001 printf %s "(cached) " >&6
13002 else $as_nop
13003 if test -n "$ac_ct_AR"; then
13004 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13005 else
13006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13007 for as_dir in $PATH
13008 do
13009 IFS=$as_save_IFS
13010 case $as_dir in #(((
13011 '') as_dir=./ ;;
13012 */) ;;
13013 *) as_dir=$as_dir/ ;;
13014 esac
13015 for ac_exec_ext in '' $ac_executable_extensions; do
13016 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13017 ac_cv_prog_ac_ct_AR="$ac_prog"
13018 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13019 break 2
13020 fi
13021 done
13022 done
13023 IFS=$as_save_IFS
13024
13025 fi
13026 fi
13027 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13028 if test -n "$ac_ct_AR"; then
13029 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
13030 printf "%s\n" "$ac_ct_AR" >&6; }
13031 else
13032 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13033 printf "%s\n" "no" >&6; }
13034 fi
13035
13036
13037 test -n "$ac_ct_AR" && break
13038 done
13039
13040 if test "x$ac_ct_AR" = x; then
13041 AR="false"
13042 else
13043 case $cross_compiling:$ac_tool_warned in
13044 yes:)
13045 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13046 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13047 ac_tool_warned=yes ;;
13048 esac
13049 AR=$ac_ct_AR
13050 fi
13051 fi
13052
13053 : ${AR=ar}
13054
13055
13056
13057
13058
13059
13060 # Use ARFLAGS variable as AR's operation code to sync the variable naming with
13061 # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
13062 # higher priority because thats what people were doing historically (setting
13063 # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS
13064 # variable obsoleted/removed.
13065
13066 test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
13067 lt_ar_flags=$AR_FLAGS
13068
13069
13070
13071
13072
13073
13074 # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override
13075 # by AR_FLAGS because that was never working and AR_FLAGS is about to die.
13076
13077
13078
13079
13080
13081
13082 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
13083 printf %s "checking for archiver @FILE support... " >&6; }
13084 if test ${lt_cv_ar_at_file+y}
13085 then :
13086 printf %s "(cached) " >&6
13087 else $as_nop
13088 lt_cv_ar_at_file=no
13089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13090 /* end confdefs.h. */
13091
13092 int
13093 main (void)
13094 {
13095
13096 ;
13097 return 0;
13098 }
13099 _ACEOF
13100 if ac_fn_c_try_compile "$LINENO"
13101 then :
13102 echo conftest.$ac_objext > conftest.lst
13103 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
13104 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
13105 (eval $lt_ar_try) 2>&5
13106 ac_status=$?
13107 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13108 test $ac_status = 0; }
13109 if test 0 -eq "$ac_status"; then
13110 # Ensure the archiver fails upon bogus file names.
13111 rm -f conftest.$ac_objext libconftest.a
13112 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
13113 (eval $lt_ar_try) 2>&5
13114 ac_status=$?
13115 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13116 test $ac_status = 0; }
13117 if test 0 -ne "$ac_status"; then
13118 lt_cv_ar_at_file=@
13119 fi
13120 fi
13121 rm -f conftest.* libconftest.a
13122
13123 fi
13124 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13125
13126 fi
13127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
13128 printf "%s\n" "$lt_cv_ar_at_file" >&6; }
13129
13130 if test no = "$lt_cv_ar_at_file"; then
13131 archiver_list_spec=
13132 else
13133 archiver_list_spec=$lt_cv_ar_at_file
13134 fi
13135
13136
13137
13138
13139
13140
13141
13142 if test -n "$ac_tool_prefix"; then
13143 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13144 set dummy ${ac_tool_prefix}strip; ac_word=$2
13145 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13146 printf %s "checking for $ac_word... " >&6; }
13147 if test ${ac_cv_prog_STRIP+y}
13148 then :
13149 printf %s "(cached) " >&6
13150 else $as_nop
13151 if test -n "$STRIP"; then
13152 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13153 else
13154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13155 for as_dir in $PATH
13156 do
13157 IFS=$as_save_IFS
13158 case $as_dir in #(((
13159 '') as_dir=./ ;;
13160 */) ;;
13161 *) as_dir=$as_dir/ ;;
13162 esac
13163 for ac_exec_ext in '' $ac_executable_extensions; do
13164 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13165 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
13166 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13167 break 2
13168 fi
13169 done
13170 done
13171 IFS=$as_save_IFS
13172
13173 fi
13174 fi
13175 STRIP=$ac_cv_prog_STRIP
13176 if test -n "$STRIP"; then
13177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
13178 printf "%s\n" "$STRIP" >&6; }
13179 else
13180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13181 printf "%s\n" "no" >&6; }
13182 fi
13183
13184
13185 fi
13186 if test -z "$ac_cv_prog_STRIP"; then
13187 ac_ct_STRIP=$STRIP
13188 # Extract the first word of "strip", so it can be a program name with args.
13189 set dummy strip; ac_word=$2
13190 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13191 printf %s "checking for $ac_word... " >&6; }
13192 if test ${ac_cv_prog_ac_ct_STRIP+y}
13193 then :
13194 printf %s "(cached) " >&6
13195 else $as_nop
13196 if test -n "$ac_ct_STRIP"; then
13197 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13198 else
13199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13200 for as_dir in $PATH
13201 do
13202 IFS=$as_save_IFS
13203 case $as_dir in #(((
13204 '') as_dir=./ ;;
13205 */) ;;
13206 *) as_dir=$as_dir/ ;;
13207 esac
13208 for ac_exec_ext in '' $ac_executable_extensions; do
13209 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13210 ac_cv_prog_ac_ct_STRIP="strip"
13211 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13212 break 2
13213 fi
13214 done
13215 done
13216 IFS=$as_save_IFS
13217
13218 fi
13219 fi
13220 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13221 if test -n "$ac_ct_STRIP"; then
13222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
13223 printf "%s\n" "$ac_ct_STRIP" >&6; }
13224 else
13225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13226 printf "%s\n" "no" >&6; }
13227 fi
13228
13229 if test "x$ac_ct_STRIP" = x; then
13230 STRIP=":"
13231 else
13232 case $cross_compiling:$ac_tool_warned in
13233 yes:)
13234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13235 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13236 ac_tool_warned=yes ;;
13237 esac
13238 STRIP=$ac_ct_STRIP
13239 fi
13240 else
13241 STRIP="$ac_cv_prog_STRIP"
13242 fi
13243
13244 test -z "$STRIP" && STRIP=:
13245
13246
13247
13248
13249
13250
13251 if test -n "$ac_tool_prefix"; then
13252 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13253 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13255 printf %s "checking for $ac_word... " >&6; }
13256 if test ${ac_cv_prog_RANLIB+y}
13257 then :
13258 printf %s "(cached) " >&6
13259 else $as_nop
13260 if test -n "$RANLIB"; then
13261 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13262 else
13263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13264 for as_dir in $PATH
13265 do
13266 IFS=$as_save_IFS
13267 case $as_dir in #(((
13268 '') as_dir=./ ;;
13269 */) ;;
13270 *) as_dir=$as_dir/ ;;
13271 esac
13272 for ac_exec_ext in '' $ac_executable_extensions; do
13273 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13274 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13275 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13276 break 2
13277 fi
13278 done
13279 done
13280 IFS=$as_save_IFS
13281
13282 fi
13283 fi
13284 RANLIB=$ac_cv_prog_RANLIB
13285 if test -n "$RANLIB"; then
13286 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
13287 printf "%s\n" "$RANLIB" >&6; }
13288 else
13289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13290 printf "%s\n" "no" >&6; }
13291 fi
13292
13293
13294 fi
13295 if test -z "$ac_cv_prog_RANLIB"; then
13296 ac_ct_RANLIB=$RANLIB
13297 # Extract the first word of "ranlib", so it can be a program name with args.
13298 set dummy ranlib; ac_word=$2
13299 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13300 printf %s "checking for $ac_word... " >&6; }
13301 if test ${ac_cv_prog_ac_ct_RANLIB+y}
13302 then :
13303 printf %s "(cached) " >&6
13304 else $as_nop
13305 if test -n "$ac_ct_RANLIB"; then
13306 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13307 else
13308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13309 for as_dir in $PATH
13310 do
13311 IFS=$as_save_IFS
13312 case $as_dir in #(((
13313 '') as_dir=./ ;;
13314 */) ;;
13315 *) as_dir=$as_dir/ ;;
13316 esac
13317 for ac_exec_ext in '' $ac_executable_extensions; do
13318 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13319 ac_cv_prog_ac_ct_RANLIB="ranlib"
13320 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13321 break 2
13322 fi
13323 done
13324 done
13325 IFS=$as_save_IFS
13326
13327 fi
13328 fi
13329 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13330 if test -n "$ac_ct_RANLIB"; then
13331 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
13332 printf "%s\n" "$ac_ct_RANLIB" >&6; }
13333 else
13334 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13335 printf "%s\n" "no" >&6; }
13336 fi
13337
13338 if test "x$ac_ct_RANLIB" = x; then
13339 RANLIB=":"
13340 else
13341 case $cross_compiling:$ac_tool_warned in
13342 yes:)
13343 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13344 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13345 ac_tool_warned=yes ;;
13346 esac
13347 RANLIB=$ac_ct_RANLIB
13348 fi
13349 else
13350 RANLIB="$ac_cv_prog_RANLIB"
13351 fi
13352
13353 test -z "$RANLIB" && RANLIB=:
13354
13355
13356
13357
13358
13359
13360 # Determine commands to create old-style static archives.
13361 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
13362 old_postinstall_cmds='chmod 644 $oldlib'
13363 old_postuninstall_cmds=
13364
13365 if test -n "$RANLIB"; then
13366 case $host_os in
13367 bitrig* | openbsd*)
13368 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
13369 ;;
13370 *)
13371 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
13372 ;;
13373 esac
13374 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
13375 fi
13376
13377 case $host_os in
13378 darwin*)
13379 lock_old_archive_extraction=yes ;;
13380 *)
13381 lock_old_archive_extraction=no ;;
13382 esac
13383
13384
13385
13386
13387
13388
13389
13390
13391
13392
13393
13394
13395
13396
13397
13398
13399
13400
13401
13402
13403
13404
13405
13406
13407
13408
13409
13410
13411
13412
13413
13414
13415
13416
13417
13418
13419
13420
13421
13422 # If no C compiler was specified, use CC.
13423 LTCC=${LTCC-"$CC"}
13424
13425 # If no C compiler flags were specified, use CFLAGS.
13426 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13427
13428 # Allow CC to be a program name with arguments.
13429 compiler=$CC
13430
13431
13432 # Check for command to grab the raw symbol name followed by C symbol from nm.
13433 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
13434 printf %s "checking command to parse $NM output from $compiler object... " >&6; }
13435 if test ${lt_cv_sys_global_symbol_pipe+y}
13436 then :
13437 printf %s "(cached) " >&6
13438 else $as_nop
13439
13440 # These are sane defaults that work on at least a few old systems.
13441 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
13442
13443 # Character class describing NM global symbol codes.
13444 symcode='[BCDEGRST]'
13445
13446 # Regexp to match symbols that can be accessed directly from C.
13447 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13448
13449 # Define system-specific variables.
13450 case $host_os in
13451 aix*)
13452 symcode='[BCDT]'
13453 ;;
13454 cygwin* | mingw* | pw32* | cegcc*)
13455 symcode='[ABCDGISTW]'
13456 ;;
13457 hpux*)
13458 if test ia64 = "$host_cpu"; then
13459 symcode='[ABCDEGRST]'
13460 fi
13461 ;;
13462 irix* | nonstopux*)
13463 symcode='[BCDEGRST]'
13464 ;;
13465 osf*)
13466 symcode='[BCDEGQRST]'
13467 ;;
13468 solaris*)
13469 symcode='[BDRT]'
13470 ;;
13471 sco3.2v5*)
13472 symcode='[DT]'
13473 ;;
13474 sysv4.2uw2*)
13475 symcode='[DT]'
13476 ;;
13477 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13478 symcode='[ABDT]'
13479 ;;
13480 sysv4)
13481 symcode='[DFNSTU]'
13482 ;;
13483 esac
13484
13485 # If we're using GNU nm, then use its standard symbol codes.
13486 case `$NM -V 2>&1` in
13487 *GNU* | *'with BFD'*)
13488 symcode='[ABCDGIRSTW]' ;;
13489 esac
13490
13491 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
13492 # Gets list of data symbols to import.
13493 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
13494 # Adjust the below global symbol transforms to fixup imported variables.
13495 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
13496 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
13497 lt_c_name_lib_hook="\
13498 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
13499 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
13500 else
13501 # Disable hooks by default.
13502 lt_cv_sys_global_symbol_to_import=
13503 lt_cdecl_hook=
13504 lt_c_name_hook=
13505 lt_c_name_lib_hook=
13506 fi
13507
13508 # Transform an extracted symbol line into a proper C declaration.
13509 # Some systems (esp. on ia64) link data and code symbols differently,
13510 # so use this general approach.
13511 lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
13512 $lt_cdecl_hook\
13513 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
13514 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
13515
13516 # Transform an extracted symbol line into symbol name and symbol address
13517 lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
13518 $lt_c_name_hook\
13519 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
13520 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
13521
13522 # Transform an extracted symbol line into symbol name with lib prefix and
13523 # symbol address.
13524 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
13525 $lt_c_name_lib_hook\
13526 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
13527 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
13528 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
13529
13530 # Handle CRLF in mingw tool chain
13531 opt_cr=
13532 case $build_os in
13533 mingw*)
13534 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13535 ;;
13536 esac
13537
13538 # Try without a prefix underscore, then with it.
13539 for ac_symprfx in "" "_"; do
13540
13541 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13542 symxfrm="\\1 $ac_symprfx\\2 \\2"
13543
13544 # Write the raw and C identifiers.
13545 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
13546 # Fake it for dumpbin and say T for any non-static function,
13547 # D for any global variable and I for any imported variable.
13548 # Also find C++ and __fastcall symbols from MSVC++ or ICC,
13549 # which start with @ or ?.
13550 lt_cv_sys_global_symbol_pipe="$AWK '"\
13551 " {last_section=section; section=\$ 3};"\
13552 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
13553 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
13554 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
13555 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
13556 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
13557 " \$ 0!~/External *\|/{next};"\
13558 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
13559 " {if(hide[section]) next};"\
13560 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
13561 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
13562 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
13563 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
13564 " ' prfx=^$ac_symprfx"
13565 else
13566 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13567 fi
13568 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
13569
13570 # Check to see that the pipe works correctly.
13571 pipe_works=no
13572
13573 rm -f conftest*
13574 cat > conftest.$ac_ext <<_LT_EOF
13575 #ifdef __cplusplus
13576 extern "C" {
13577 #endif
13578 char nm_test_var;
13579 void nm_test_func(void);
13580 void nm_test_func(void){}
13581 #ifdef __cplusplus
13582 }
13583 #endif
13584 int main(){nm_test_var='a';nm_test_func();return(0);}
13585 _LT_EOF
13586
13587 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13588 (eval $ac_compile) 2>&5
13589 ac_status=$?
13590 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13591 test $ac_status = 0; }; then
13592 # Now try to grab the symbols.
13593 nlist=conftest.nm
13594 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
13595 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
13596 ac_status=$?
13597 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13598 test $ac_status = 0; } && test -s "$nlist"; then
13599 # Try sorting and uniquifying the output.
13600 if sort "$nlist" | uniq > "$nlist"T; then
13601 mv -f "$nlist"T "$nlist"
13602 else
13603 rm -f "$nlist"T
13604 fi
13605
13606 # Make sure that we snagged all the symbols we need.
13607 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
13608 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
13609 cat <<_LT_EOF > conftest.$ac_ext
13610 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
13611 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
13612 /* DATA imports from DLLs on WIN32 can't be const, because runtime
13613 relocations are performed -- see ld's documentation on pseudo-relocs. */
13614 # define LT_DLSYM_CONST
13615 #elif defined __osf__
13616 /* This system does not cope well with relocations in const data. */
13617 # define LT_DLSYM_CONST
13618 #else
13619 # define LT_DLSYM_CONST const
13620 #endif
13621
13622 #ifdef __cplusplus
13623 extern "C" {
13624 #endif
13625
13626 _LT_EOF
13627 # Now generate the symbol file.
13628 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
13629
13630 cat <<_LT_EOF >> conftest.$ac_ext
13631
13632 /* The mapping between symbol names and symbols. */
13633 LT_DLSYM_CONST struct {
13634 const char *name;
13635 void *address;
13636 }
13637 lt__PROGRAM__LTX_preloaded_symbols[] =
13638 {
13639 { "@PROGRAM@", (void *) 0 },
13640 _LT_EOF
13641 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
13642 cat <<\_LT_EOF >> conftest.$ac_ext
13643 {0, (void *) 0}
13644 };
13645
13646 /* This works around a problem in FreeBSD linker */
13647 #ifdef FREEBSD_WORKAROUND
13648 static const void *lt_preloaded_setup() {
13649 return lt__PROGRAM__LTX_preloaded_symbols;
13650 }
13651 #endif
13652
13653 #ifdef __cplusplus
13654 }
13655 #endif
13656 _LT_EOF
13657 # Now try linking the two files.
13658 mv conftest.$ac_objext conftstm.$ac_objext
13659 lt_globsym_save_LIBS=$LIBS
13660 lt_globsym_save_CFLAGS=$CFLAGS
13661 LIBS=conftstm.$ac_objext
13662 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13663 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13664 (eval $ac_link) 2>&5
13665 ac_status=$?
13666 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13667 test $ac_status = 0; } && test -s conftest$ac_exeext; then
13668 pipe_works=yes
13669 fi
13670 LIBS=$lt_globsym_save_LIBS
13671 CFLAGS=$lt_globsym_save_CFLAGS
13672 else
13673 echo "cannot find nm_test_func in $nlist" >&5
13674 fi
13675 else
13676 echo "cannot find nm_test_var in $nlist" >&5
13677 fi
13678 else
13679 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13680 fi
13681 else
13682 echo "$progname: failed program was:" >&5
13683 cat conftest.$ac_ext >&5
13684 fi
13685 rm -rf conftest* conftst*
13686
13687 # Do not use the global_symbol_pipe unless it works.
13688 if test yes = "$pipe_works"; then
13689 break
13690 else
13691 lt_cv_sys_global_symbol_pipe=
13692 fi
13693 done
13694
13695 fi
13696
13697 if test -z "$lt_cv_sys_global_symbol_pipe"; then
13698 lt_cv_sys_global_symbol_to_cdecl=
13699 fi
13700 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13701 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
13702 printf "%s\n" "failed" >&6; }
13703 else
13704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
13705 printf "%s\n" "ok" >&6; }
13706 fi
13707
13708 # Response file support.
13709 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
13710 nm_file_list_spec='@'
13711 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
13712 nm_file_list_spec='@'
13713 fi
13714
13715
13716
13717
13718
13719
13720
13721
13722
13723
13724
13725
13726
13727
13728
13729
13730
13731
13732
13733
13734
13735
13736
13737
13738
13739
13740
13741
13742
13743
13744
13745
13746
13747
13748
13749
13750
13751 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
13752 printf %s "checking for sysroot... " >&6; }
13753
13754 # Check whether --with-sysroot was given.
13755 if test ${with_sysroot+y}
13756 then :
13757 withval=$with_sysroot;
13758 else $as_nop
13759 with_sysroot=no
13760 fi
13761
13762
13763 lt_sysroot=
13764 case $with_sysroot in #(
13765 yes)
13766 if test yes = "$GCC"; then
13767 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
13768 fi
13769 ;; #(
13770 /*)
13771 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
13772 ;; #(
13773 no|'')
13774 ;; #(
13775 *)
13776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
13777 printf "%s\n" "$with_sysroot" >&6; }
13778 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
13779 ;;
13780 esac
13781
13782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
13783 printf "%s\n" "${lt_sysroot:-no}" >&6; }
13784
13785
13786
13787
13788
13789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
13790 printf %s "checking for a working dd... " >&6; }
13791 if test ${ac_cv_path_lt_DD+y}
13792 then :
13793 printf %s "(cached) " >&6
13794 else $as_nop
13795 printf 0123456789abcdef0123456789abcdef >conftest.i
13796 cat conftest.i conftest.i >conftest2.i
13797 : ${lt_DD:=$DD}
13798 if test -z "$lt_DD"; then
13799 ac_path_lt_DD_found=false
13800 # Loop through the user's path and test for each of PROGNAME-LIST
13801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13802 for as_dir in $PATH
13803 do
13804 IFS=$as_save_IFS
13805 case $as_dir in #(((
13806 '') as_dir=./ ;;
13807 */) ;;
13808 *) as_dir=$as_dir/ ;;
13809 esac
13810 for ac_prog in dd
13811 do
13812 for ac_exec_ext in '' $ac_executable_extensions; do
13813 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
13814 as_fn_executable_p "$ac_path_lt_DD" || continue
13815 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
13816 cmp -s conftest.i conftest.out \
13817 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
13818 fi
13819 $ac_path_lt_DD_found && break 3
13820 done
13821 done
13822 done
13823 IFS=$as_save_IFS
13824 if test -z "$ac_cv_path_lt_DD"; then
13825 :
13826 fi
13827 else
13828 ac_cv_path_lt_DD=$lt_DD
13829 fi
13830
13831 rm -f conftest.i conftest2.i conftest.out
13832 fi
13833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
13834 printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
13835
13836
13837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
13838 printf %s "checking how to truncate binary pipes... " >&6; }
13839 if test ${lt_cv_truncate_bin+y}
13840 then :
13841 printf %s "(cached) " >&6
13842 else $as_nop
13843 printf 0123456789abcdef0123456789abcdef >conftest.i
13844 cat conftest.i conftest.i >conftest2.i
13845 lt_cv_truncate_bin=
13846 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
13847 cmp -s conftest.i conftest.out \
13848 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
13849 fi
13850 rm -f conftest.i conftest2.i conftest.out
13851 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
13852 fi
13853 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
13854 printf "%s\n" "$lt_cv_truncate_bin" >&6; }
13855
13856
13857
13858
13859
13860
13861
13862 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
13863 func_cc_basename ()
13864 {
13865 for cc_temp in $*""; do
13866 case $cc_temp in
13867 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13868 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13869 \-*) ;;
13870 *) break;;
13871 esac
13872 done
13873 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13874 }
13875
13876 # Check whether --enable-libtool-lock was given.
13877 if test ${enable_libtool_lock+y}
13878 then :
13879 enableval=$enable_libtool_lock;
13880 fi
13881
13882 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
13883
13884 # Some flags need to be propagated to the compiler or linker for good
13885 # libtool support.
13886 case $host in
13887 ia64-*-hpux*)
13888 # Find out what ABI is being produced by ac_compile, and set mode
13889 # options accordingly.
13890 echo 'int i;' > conftest.$ac_ext
13891 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13892 (eval $ac_compile) 2>&5
13893 ac_status=$?
13894 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13895 test $ac_status = 0; }; then
13896 case `$FILECMD conftest.$ac_objext` in
13897 *ELF-32*)
13898 HPUX_IA64_MODE=32
13899 ;;
13900 *ELF-64*)
13901 HPUX_IA64_MODE=64
13902 ;;
13903 esac
13904 fi
13905 rm -rf conftest*
13906 ;;
13907 *-*-irix6*)
13908 # Find out what ABI is being produced by ac_compile, and set linker
13909 # options accordingly.
13910 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
13911 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13912 (eval $ac_compile) 2>&5
13913 ac_status=$?
13914 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13915 test $ac_status = 0; }; then
13916 if test yes = "$lt_cv_prog_gnu_ld"; then
13917 case `$FILECMD conftest.$ac_objext` in
13918 *32-bit*)
13919 LD="${LD-ld} -melf32bsmip"
13920 ;;
13921 *N32*)
13922 LD="${LD-ld} -melf32bmipn32"
13923 ;;
13924 *64-bit*)
13925 LD="${LD-ld} -melf64bmip"
13926 ;;
13927 esac
13928 else
13929 case `$FILECMD conftest.$ac_objext` in
13930 *32-bit*)
13931 LD="${LD-ld} -32"
13932 ;;
13933 *N32*)
13934 LD="${LD-ld} -n32"
13935 ;;
13936 *64-bit*)
13937 LD="${LD-ld} -64"
13938 ;;
13939 esac
13940 fi
13941 fi
13942 rm -rf conftest*
13943 ;;
13944
13945 mips64*-*linux*)
13946 # Find out what ABI is being produced by ac_compile, and set linker
13947 # options accordingly.
13948 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
13949 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13950 (eval $ac_compile) 2>&5
13951 ac_status=$?
13952 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13953 test $ac_status = 0; }; then
13954 emul=elf
13955 case `$FILECMD conftest.$ac_objext` in
13956 *32-bit*)
13957 emul="${emul}32"
13958 ;;
13959 *64-bit*)
13960 emul="${emul}64"
13961 ;;
13962 esac
13963 case `$FILECMD conftest.$ac_objext` in
13964 *MSB*)
13965 emul="${emul}btsmip"
13966 ;;
13967 *LSB*)
13968 emul="${emul}ltsmip"
13969 ;;
13970 esac
13971 case `$FILECMD conftest.$ac_objext` in
13972 *N32*)
13973 emul="${emul}n32"
13974 ;;
13975 esac
13976 LD="${LD-ld} -m $emul"
13977 fi
13978 rm -rf conftest*
13979 ;;
13980
13981 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
13982 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
13983 # Find out what ABI is being produced by ac_compile, and set linker
13984 # options accordingly. Note that the listed cases only cover the
13985 # situations where additional linker options are needed (such as when
13986 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
13987 # vice versa); the common cases where no linker options are needed do
13988 # not appear in the list.
13989 echo 'int i;' > conftest.$ac_ext
13990 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13991 (eval $ac_compile) 2>&5
13992 ac_status=$?
13993 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13994 test $ac_status = 0; }; then
13995 case `$FILECMD conftest.o` in
13996 *32-bit*)
13997 case $host in
13998 x86_64-*kfreebsd*-gnu)
13999 LD="${LD-ld} -m elf_i386_fbsd"
14000 ;;
14001 x86_64-*linux*)
14002 case `$FILECMD conftest.o` in
14003 *x86-64*)
14004 LD="${LD-ld} -m elf32_x86_64"
14005 ;;
14006 *)
14007 LD="${LD-ld} -m elf_i386"
14008 ;;
14009 esac
14010 ;;
14011 powerpc64le-*linux*)
14012 LD="${LD-ld} -m elf32lppclinux"
14013 ;;
14014 powerpc64-*linux*)
14015 LD="${LD-ld} -m elf32ppclinux"
14016 ;;
14017 s390x-*linux*)
14018 LD="${LD-ld} -m elf_s390"
14019 ;;
14020 sparc64-*linux*)
14021 LD="${LD-ld} -m elf32_sparc"
14022 ;;
14023 esac
14024 ;;
14025 *64-bit*)
14026 case $host in
14027 x86_64-*kfreebsd*-gnu)
14028 LD="${LD-ld} -m elf_x86_64_fbsd"
14029 ;;
14030 x86_64-*linux*)
14031 LD="${LD-ld} -m elf_x86_64"
14032 ;;
14033 powerpcle-*linux*)
14034 LD="${LD-ld} -m elf64lppc"
14035 ;;
14036 powerpc-*linux*)
14037 LD="${LD-ld} -m elf64ppc"
14038 ;;
14039 s390*-*linux*|s390*-*tpf*)
14040 LD="${LD-ld} -m elf64_s390"
14041 ;;
14042 sparc*-*linux*)
14043 LD="${LD-ld} -m elf64_sparc"
14044 ;;
14045 esac
14046 ;;
14047 esac
14048 fi
14049 rm -rf conftest*
14050 ;;
14051
14052 *-*-sco3.2v5*)
14053 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
14054 SAVE_CFLAGS=$CFLAGS
14055 CFLAGS="$CFLAGS -belf"
14056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
14057 printf %s "checking whether the C compiler needs -belf... " >&6; }
14058 if test ${lt_cv_cc_needs_belf+y}
14059 then :
14060 printf %s "(cached) " >&6
14061 else $as_nop
14062 ac_ext=c
14063 ac_cpp='$CPP $CPPFLAGS'
14064 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14065 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14066 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14067
14068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14069 /* end confdefs.h. */
14070
14071 int
14072 main (void)
14073 {
14074
14075 ;
14076 return 0;
14077 }
14078 _ACEOF
14079 if ac_fn_c_try_link "$LINENO"
14080 then :
14081 lt_cv_cc_needs_belf=yes
14082 else $as_nop
14083 lt_cv_cc_needs_belf=no
14084 fi
14085 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14086 conftest$ac_exeext conftest.$ac_ext
14087 ac_ext=c
14088 ac_cpp='$CPP $CPPFLAGS'
14089 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14090 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14091 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14092
14093 fi
14094 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
14095 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
14096 if test yes != "$lt_cv_cc_needs_belf"; then
14097 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
14098 CFLAGS=$SAVE_CFLAGS
14099 fi
14100 ;;
14101 *-*solaris*)
14102 # Find out what ABI is being produced by ac_compile, and set linker
14103 # options accordingly.
14104 echo 'int i;' > conftest.$ac_ext
14105 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14106 (eval $ac_compile) 2>&5
14107 ac_status=$?
14108 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14109 test $ac_status = 0; }; then
14110 case `$FILECMD conftest.o` in
14111 *64-bit*)
14112 case $lt_cv_prog_gnu_ld in
14113 yes*)
14114 case $host in
14115 i?86-*-solaris*|x86_64-*-solaris*)
14116 LD="${LD-ld} -m elf_x86_64"
14117 ;;
14118 sparc*-*-solaris*)
14119 LD="${LD-ld} -m elf64_sparc"
14120 ;;
14121 esac
14122 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
14123 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
14124 LD=${LD-ld}_sol2
14125 fi
14126 ;;
14127 *)
14128 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
14129 LD="${LD-ld} -64"
14130 fi
14131 ;;
14132 esac
14133 ;;
14134 esac
14135 fi
14136 rm -rf conftest*
14137 ;;
14138 esac
14139
14140 need_locks=$enable_libtool_lock
14141
14142 if test -n "$ac_tool_prefix"; then
14143 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
14144 set dummy ${ac_tool_prefix}mt; ac_word=$2
14145 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14146 printf %s "checking for $ac_word... " >&6; }
14147 if test ${ac_cv_prog_MANIFEST_TOOL+y}
14148 then :
14149 printf %s "(cached) " >&6
14150 else $as_nop
14151 if test -n "$MANIFEST_TOOL"; then
14152 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
14153 else
14154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14155 for as_dir in $PATH
14156 do
14157 IFS=$as_save_IFS
14158 case $as_dir in #(((
14159 '') as_dir=./ ;;
14160 */) ;;
14161 *) as_dir=$as_dir/ ;;
14162 esac
14163 for ac_exec_ext in '' $ac_executable_extensions; do
14164 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14165 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
14166 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14167 break 2
14168 fi
14169 done
14170 done
14171 IFS=$as_save_IFS
14172
14173 fi
14174 fi
14175 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
14176 if test -n "$MANIFEST_TOOL"; then
14177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
14178 printf "%s\n" "$MANIFEST_TOOL" >&6; }
14179 else
14180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14181 printf "%s\n" "no" >&6; }
14182 fi
14183
14184
14185 fi
14186 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
14187 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
14188 # Extract the first word of "mt", so it can be a program name with args.
14189 set dummy mt; ac_word=$2
14190 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14191 printf %s "checking for $ac_word... " >&6; }
14192 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
14193 then :
14194 printf %s "(cached) " >&6
14195 else $as_nop
14196 if test -n "$ac_ct_MANIFEST_TOOL"; then
14197 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
14198 else
14199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14200 for as_dir in $PATH
14201 do
14202 IFS=$as_save_IFS
14203 case $as_dir in #(((
14204 '') as_dir=./ ;;
14205 */) ;;
14206 *) as_dir=$as_dir/ ;;
14207 esac
14208 for ac_exec_ext in '' $ac_executable_extensions; do
14209 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14210 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
14211 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14212 break 2
14213 fi
14214 done
14215 done
14216 IFS=$as_save_IFS
14217
14218 fi
14219 fi
14220 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
14221 if test -n "$ac_ct_MANIFEST_TOOL"; then
14222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
14223 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
14224 else
14225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14226 printf "%s\n" "no" >&6; }
14227 fi
14228
14229 if test "x$ac_ct_MANIFEST_TOOL" = x; then
14230 MANIFEST_TOOL=":"
14231 else
14232 case $cross_compiling:$ac_tool_warned in
14233 yes:)
14234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14235 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14236 ac_tool_warned=yes ;;
14237 esac
14238 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
14239 fi
14240 else
14241 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
14242 fi
14243
14244 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
14245 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
14246 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
14247 if test ${lt_cv_path_mainfest_tool+y}
14248 then :
14249 printf %s "(cached) " >&6
14250 else $as_nop
14251 lt_cv_path_mainfest_tool=no
14252 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
14253 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
14254 cat conftest.err >&5
14255 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
14256 lt_cv_path_mainfest_tool=yes
14257 fi
14258 rm -f conftest*
14259 fi
14260 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
14261 printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
14262 if test yes != "$lt_cv_path_mainfest_tool"; then
14263 MANIFEST_TOOL=:
14264 fi
14265
14266
14267
14268
14269
14270
14271 case $host_os in
14272 rhapsody* | darwin*)
14273 if test -n "$ac_tool_prefix"; then
14274 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
14275 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
14276 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14277 printf %s "checking for $ac_word... " >&6; }
14278 if test ${ac_cv_prog_DSYMUTIL+y}
14279 then :
14280 printf %s "(cached) " >&6
14281 else $as_nop
14282 if test -n "$DSYMUTIL"; then
14283 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
14284 else
14285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14286 for as_dir in $PATH
14287 do
14288 IFS=$as_save_IFS
14289 case $as_dir in #(((
14290 '') as_dir=./ ;;
14291 */) ;;
14292 *) as_dir=$as_dir/ ;;
14293 esac
14294 for ac_exec_ext in '' $ac_executable_extensions; do
14295 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14296 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
14297 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14298 break 2
14299 fi
14300 done
14301 done
14302 IFS=$as_save_IFS
14303
14304 fi
14305 fi
14306 DSYMUTIL=$ac_cv_prog_DSYMUTIL
14307 if test -n "$DSYMUTIL"; then
14308 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
14309 printf "%s\n" "$DSYMUTIL" >&6; }
14310 else
14311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14312 printf "%s\n" "no" >&6; }
14313 fi
14314
14315
14316 fi
14317 if test -z "$ac_cv_prog_DSYMUTIL"; then
14318 ac_ct_DSYMUTIL=$DSYMUTIL
14319 # Extract the first word of "dsymutil", so it can be a program name with args.
14320 set dummy dsymutil; ac_word=$2
14321 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14322 printf %s "checking for $ac_word... " >&6; }
14323 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
14324 then :
14325 printf %s "(cached) " >&6
14326 else $as_nop
14327 if test -n "$ac_ct_DSYMUTIL"; then
14328 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
14329 else
14330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14331 for as_dir in $PATH
14332 do
14333 IFS=$as_save_IFS
14334 case $as_dir in #(((
14335 '') as_dir=./ ;;
14336 */) ;;
14337 *) as_dir=$as_dir/ ;;
14338 esac
14339 for ac_exec_ext in '' $ac_executable_extensions; do
14340 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14341 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
14342 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14343 break 2
14344 fi
14345 done
14346 done
14347 IFS=$as_save_IFS
14348
14349 fi
14350 fi
14351 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
14352 if test -n "$ac_ct_DSYMUTIL"; then
14353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
14354 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
14355 else
14356 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14357 printf "%s\n" "no" >&6; }
14358 fi
14359
14360 if test "x$ac_ct_DSYMUTIL" = x; then
14361 DSYMUTIL=":"
14362 else
14363 case $cross_compiling:$ac_tool_warned in
14364 yes:)
14365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14366 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14367 ac_tool_warned=yes ;;
14368 esac
14369 DSYMUTIL=$ac_ct_DSYMUTIL
14370 fi
14371 else
14372 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
14373 fi
14374
14375 if test -n "$ac_tool_prefix"; then
14376 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
14377 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
14378 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14379 printf %s "checking for $ac_word... " >&6; }
14380 if test ${ac_cv_prog_NMEDIT+y}
14381 then :
14382 printf %s "(cached) " >&6
14383 else $as_nop
14384 if test -n "$NMEDIT"; then
14385 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
14386 else
14387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14388 for as_dir in $PATH
14389 do
14390 IFS=$as_save_IFS
14391 case $as_dir in #(((
14392 '') as_dir=./ ;;
14393 */) ;;
14394 *) as_dir=$as_dir/ ;;
14395 esac
14396 for ac_exec_ext in '' $ac_executable_extensions; do
14397 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14398 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
14399 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14400 break 2
14401 fi
14402 done
14403 done
14404 IFS=$as_save_IFS
14405
14406 fi
14407 fi
14408 NMEDIT=$ac_cv_prog_NMEDIT
14409 if test -n "$NMEDIT"; then
14410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
14411 printf "%s\n" "$NMEDIT" >&6; }
14412 else
14413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14414 printf "%s\n" "no" >&6; }
14415 fi
14416
14417
14418 fi
14419 if test -z "$ac_cv_prog_NMEDIT"; then
14420 ac_ct_NMEDIT=$NMEDIT
14421 # Extract the first word of "nmedit", so it can be a program name with args.
14422 set dummy nmedit; ac_word=$2
14423 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14424 printf %s "checking for $ac_word... " >&6; }
14425 if test ${ac_cv_prog_ac_ct_NMEDIT+y}
14426 then :
14427 printf %s "(cached) " >&6
14428 else $as_nop
14429 if test -n "$ac_ct_NMEDIT"; then
14430 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
14431 else
14432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14433 for as_dir in $PATH
14434 do
14435 IFS=$as_save_IFS
14436 case $as_dir in #(((
14437 '') as_dir=./ ;;
14438 */) ;;
14439 *) as_dir=$as_dir/ ;;
14440 esac
14441 for ac_exec_ext in '' $ac_executable_extensions; do
14442 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14443 ac_cv_prog_ac_ct_NMEDIT="nmedit"
14444 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14445 break 2
14446 fi
14447 done
14448 done
14449 IFS=$as_save_IFS
14450
14451 fi
14452 fi
14453 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
14454 if test -n "$ac_ct_NMEDIT"; then
14455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
14456 printf "%s\n" "$ac_ct_NMEDIT" >&6; }
14457 else
14458 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14459 printf "%s\n" "no" >&6; }
14460 fi
14461
14462 if test "x$ac_ct_NMEDIT" = x; then
14463 NMEDIT=":"
14464 else
14465 case $cross_compiling:$ac_tool_warned in
14466 yes:)
14467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14468 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14469 ac_tool_warned=yes ;;
14470 esac
14471 NMEDIT=$ac_ct_NMEDIT
14472 fi
14473 else
14474 NMEDIT="$ac_cv_prog_NMEDIT"
14475 fi
14476
14477 if test -n "$ac_tool_prefix"; then
14478 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
14479 set dummy ${ac_tool_prefix}lipo; ac_word=$2
14480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14481 printf %s "checking for $ac_word... " >&6; }
14482 if test ${ac_cv_prog_LIPO+y}
14483 then :
14484 printf %s "(cached) " >&6
14485 else $as_nop
14486 if test -n "$LIPO"; then
14487 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
14488 else
14489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14490 for as_dir in $PATH
14491 do
14492 IFS=$as_save_IFS
14493 case $as_dir in #(((
14494 '') as_dir=./ ;;
14495 */) ;;
14496 *) as_dir=$as_dir/ ;;
14497 esac
14498 for ac_exec_ext in '' $ac_executable_extensions; do
14499 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14500 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
14501 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14502 break 2
14503 fi
14504 done
14505 done
14506 IFS=$as_save_IFS
14507
14508 fi
14509 fi
14510 LIPO=$ac_cv_prog_LIPO
14511 if test -n "$LIPO"; then
14512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
14513 printf "%s\n" "$LIPO" >&6; }
14514 else
14515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14516 printf "%s\n" "no" >&6; }
14517 fi
14518
14519
14520 fi
14521 if test -z "$ac_cv_prog_LIPO"; then
14522 ac_ct_LIPO=$LIPO
14523 # Extract the first word of "lipo", so it can be a program name with args.
14524 set dummy lipo; ac_word=$2
14525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14526 printf %s "checking for $ac_word... " >&6; }
14527 if test ${ac_cv_prog_ac_ct_LIPO+y}
14528 then :
14529 printf %s "(cached) " >&6
14530 else $as_nop
14531 if test -n "$ac_ct_LIPO"; then
14532 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
14533 else
14534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14535 for as_dir in $PATH
14536 do
14537 IFS=$as_save_IFS
14538 case $as_dir in #(((
14539 '') as_dir=./ ;;
14540 */) ;;
14541 *) as_dir=$as_dir/ ;;
14542 esac
14543 for ac_exec_ext in '' $ac_executable_extensions; do
14544 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14545 ac_cv_prog_ac_ct_LIPO="lipo"
14546 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14547 break 2
14548 fi
14549 done
14550 done
14551 IFS=$as_save_IFS
14552
14553 fi
14554 fi
14555 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
14556 if test -n "$ac_ct_LIPO"; then
14557 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
14558 printf "%s\n" "$ac_ct_LIPO" >&6; }
14559 else
14560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14561 printf "%s\n" "no" >&6; }
14562 fi
14563
14564 if test "x$ac_ct_LIPO" = x; then
14565 LIPO=":"
14566 else
14567 case $cross_compiling:$ac_tool_warned in
14568 yes:)
14569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14570 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14571 ac_tool_warned=yes ;;
14572 esac
14573 LIPO=$ac_ct_LIPO
14574 fi
14575 else
14576 LIPO="$ac_cv_prog_LIPO"
14577 fi
14578
14579 if test -n "$ac_tool_prefix"; then
14580 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
14581 set dummy ${ac_tool_prefix}otool; ac_word=$2
14582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14583 printf %s "checking for $ac_word... " >&6; }
14584 if test ${ac_cv_prog_OTOOL+y}
14585 then :
14586 printf %s "(cached) " >&6
14587 else $as_nop
14588 if test -n "$OTOOL"; then
14589 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
14590 else
14591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14592 for as_dir in $PATH
14593 do
14594 IFS=$as_save_IFS
14595 case $as_dir in #(((
14596 '') as_dir=./ ;;
14597 */) ;;
14598 *) as_dir=$as_dir/ ;;
14599 esac
14600 for ac_exec_ext in '' $ac_executable_extensions; do
14601 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14602 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
14603 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14604 break 2
14605 fi
14606 done
14607 done
14608 IFS=$as_save_IFS
14609
14610 fi
14611 fi
14612 OTOOL=$ac_cv_prog_OTOOL
14613 if test -n "$OTOOL"; then
14614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
14615 printf "%s\n" "$OTOOL" >&6; }
14616 else
14617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14618 printf "%s\n" "no" >&6; }
14619 fi
14620
14621
14622 fi
14623 if test -z "$ac_cv_prog_OTOOL"; then
14624 ac_ct_OTOOL=$OTOOL
14625 # Extract the first word of "otool", so it can be a program name with args.
14626 set dummy otool; ac_word=$2
14627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14628 printf %s "checking for $ac_word... " >&6; }
14629 if test ${ac_cv_prog_ac_ct_OTOOL+y}
14630 then :
14631 printf %s "(cached) " >&6
14632 else $as_nop
14633 if test -n "$ac_ct_OTOOL"; then
14634 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
14635 else
14636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14637 for as_dir in $PATH
14638 do
14639 IFS=$as_save_IFS
14640 case $as_dir in #(((
14641 '') as_dir=./ ;;
14642 */) ;;
14643 *) as_dir=$as_dir/ ;;
14644 esac
14645 for ac_exec_ext in '' $ac_executable_extensions; do
14646 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14647 ac_cv_prog_ac_ct_OTOOL="otool"
14648 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14649 break 2
14650 fi
14651 done
14652 done
14653 IFS=$as_save_IFS
14654
14655 fi
14656 fi
14657 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
14658 if test -n "$ac_ct_OTOOL"; then
14659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
14660 printf "%s\n" "$ac_ct_OTOOL" >&6; }
14661 else
14662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14663 printf "%s\n" "no" >&6; }
14664 fi
14665
14666 if test "x$ac_ct_OTOOL" = x; then
14667 OTOOL=":"
14668 else
14669 case $cross_compiling:$ac_tool_warned in
14670 yes:)
14671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14672 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14673 ac_tool_warned=yes ;;
14674 esac
14675 OTOOL=$ac_ct_OTOOL
14676 fi
14677 else
14678 OTOOL="$ac_cv_prog_OTOOL"
14679 fi
14680
14681 if test -n "$ac_tool_prefix"; then
14682 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
14683 set dummy ${ac_tool_prefix}otool64; ac_word=$2
14684 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14685 printf %s "checking for $ac_word... " >&6; }
14686 if test ${ac_cv_prog_OTOOL64+y}
14687 then :
14688 printf %s "(cached) " >&6
14689 else $as_nop
14690 if test -n "$OTOOL64"; then
14691 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
14692 else
14693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14694 for as_dir in $PATH
14695 do
14696 IFS=$as_save_IFS
14697 case $as_dir in #(((
14698 '') as_dir=./ ;;
14699 */) ;;
14700 *) as_dir=$as_dir/ ;;
14701 esac
14702 for ac_exec_ext in '' $ac_executable_extensions; do
14703 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14704 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
14705 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14706 break 2
14707 fi
14708 done
14709 done
14710 IFS=$as_save_IFS
14711
14712 fi
14713 fi
14714 OTOOL64=$ac_cv_prog_OTOOL64
14715 if test -n "$OTOOL64"; then
14716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
14717 printf "%s\n" "$OTOOL64" >&6; }
14718 else
14719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14720 printf "%s\n" "no" >&6; }
14721 fi
14722
14723
14724 fi
14725 if test -z "$ac_cv_prog_OTOOL64"; then
14726 ac_ct_OTOOL64=$OTOOL64
14727 # Extract the first word of "otool64", so it can be a program name with args.
14728 set dummy otool64; ac_word=$2
14729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14730 printf %s "checking for $ac_word... " >&6; }
14731 if test ${ac_cv_prog_ac_ct_OTOOL64+y}
14732 then :
14733 printf %s "(cached) " >&6
14734 else $as_nop
14735 if test -n "$ac_ct_OTOOL64"; then
14736 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
14737 else
14738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14739 for as_dir in $PATH
14740 do
14741 IFS=$as_save_IFS
14742 case $as_dir in #(((
14743 '') as_dir=./ ;;
14744 */) ;;
14745 *) as_dir=$as_dir/ ;;
14746 esac
14747 for ac_exec_ext in '' $ac_executable_extensions; do
14748 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14749 ac_cv_prog_ac_ct_OTOOL64="otool64"
14750 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14751 break 2
14752 fi
14753 done
14754 done
14755 IFS=$as_save_IFS
14756
14757 fi
14758 fi
14759 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
14760 if test -n "$ac_ct_OTOOL64"; then
14761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
14762 printf "%s\n" "$ac_ct_OTOOL64" >&6; }
14763 else
14764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14765 printf "%s\n" "no" >&6; }
14766 fi
14767
14768 if test "x$ac_ct_OTOOL64" = x; then
14769 OTOOL64=":"
14770 else
14771 case $cross_compiling:$ac_tool_warned in
14772 yes:)
14773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14774 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14775 ac_tool_warned=yes ;;
14776 esac
14777 OTOOL64=$ac_ct_OTOOL64
14778 fi
14779 else
14780 OTOOL64="$ac_cv_prog_OTOOL64"
14781 fi
14782
14783
14784
14785
14786
14787
14788
14789
14790
14791
14792
14793
14794
14795
14796
14797
14798
14799
14800
14801
14802
14803
14804
14805
14806
14807
14808
14809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
14810 printf %s "checking for -single_module linker flag... " >&6; }
14811 if test ${lt_cv_apple_cc_single_mod+y}
14812 then :
14813 printf %s "(cached) " >&6
14814 else $as_nop
14815 lt_cv_apple_cc_single_mod=no
14816 if test -z "$LT_MULTI_MODULE"; then
14817 # By default we will add the -single_module flag. You can override
14818 # by either setting the environment variable LT_MULTI_MODULE
14819 # non-empty at configure time, or by adding -multi_module to the
14820 # link flags.
14821 rm -rf libconftest.dylib*
14822 echo "int foo(void){return 1;}" > conftest.c
14823 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14824 -dynamiclib -Wl,-single_module conftest.c" >&5
14825 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14826 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
14827 _lt_result=$?
14828 # If there is a non-empty error log, and "single_module"
14829 # appears in it, assume the flag caused a linker warning
14830 if test -s conftest.err && $GREP single_module conftest.err; then
14831 cat conftest.err >&5
14832 # Otherwise, if the output was created with a 0 exit code from
14833 # the compiler, it worked.
14834 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
14835 lt_cv_apple_cc_single_mod=yes
14836 else
14837 cat conftest.err >&5
14838 fi
14839 rm -rf libconftest.dylib*
14840 rm -f conftest.*
14841 fi
14842 fi
14843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
14844 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
14845
14846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
14847 printf %s "checking for -exported_symbols_list linker flag... " >&6; }
14848 if test ${lt_cv_ld_exported_symbols_list+y}
14849 then :
14850 printf %s "(cached) " >&6
14851 else $as_nop
14852 lt_cv_ld_exported_symbols_list=no
14853 save_LDFLAGS=$LDFLAGS
14854 echo "_main" > conftest.sym
14855 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
14856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14857 /* end confdefs.h. */
14858
14859 int
14860 main (void)
14861 {
14862
14863 ;
14864 return 0;
14865 }
14866 _ACEOF
14867 if ac_fn_c_try_link "$LINENO"
14868 then :
14869 lt_cv_ld_exported_symbols_list=yes
14870 else $as_nop
14871 lt_cv_ld_exported_symbols_list=no
14872 fi
14873 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14874 conftest$ac_exeext conftest.$ac_ext
14875 LDFLAGS=$save_LDFLAGS
14876
14877 fi
14878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
14879 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
14880
14881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
14882 printf %s "checking for -force_load linker flag... " >&6; }
14883 if test ${lt_cv_ld_force_load+y}
14884 then :
14885 printf %s "(cached) " >&6
14886 else $as_nop
14887 lt_cv_ld_force_load=no
14888 cat > conftest.c << _LT_EOF
14889 int forced_loaded() { return 2;}
14890 _LT_EOF
14891 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
14892 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
14893 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
14894 $AR $AR_FLAGS libconftest.a conftest.o 2>&5
14895 echo "$RANLIB libconftest.a" >&5
14896 $RANLIB libconftest.a 2>&5
14897 cat > conftest.c << _LT_EOF
14898 int main() { return 0;}
14899 _LT_EOF
14900 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
14901 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
14902 _lt_result=$?
14903 if test -s conftest.err && $GREP force_load conftest.err; then
14904 cat conftest.err >&5
14905 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
14906 lt_cv_ld_force_load=yes
14907 else
14908 cat conftest.err >&5
14909 fi
14910 rm -f conftest.err libconftest.a conftest conftest.c
14911 rm -rf conftest.dSYM
14912
14913 fi
14914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
14915 printf "%s\n" "$lt_cv_ld_force_load" >&6; }
14916 case $host_os in
14917 rhapsody* | darwin1.[012])
14918 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
14919 darwin1.*)
14920 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
14921 darwin*)
14922 case $MACOSX_DEPLOYMENT_TARGET,$host in
14923 10.[012],*|,*powerpc*-darwin[5-8]*)
14924 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
14925 *)
14926 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
14927 esac
14928 ;;
14929 esac
14930 if test yes = "$lt_cv_apple_cc_single_mod"; then
14931 _lt_dar_single_mod='$single_module'
14932 fi
14933 if test yes = "$lt_cv_ld_exported_symbols_list"; then
14934 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
14935 else
14936 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
14937 fi
14938 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
14939 _lt_dsymutil='~$DSYMUTIL $lib || :'
14940 else
14941 _lt_dsymutil=
14942 fi
14943 ;;
14944 esac
14945
14946 # func_munge_path_list VARIABLE PATH
14947 # -----------------------------------
14948 # VARIABLE is name of variable containing _space_ separated list of
14949 # directories to be munged by the contents of PATH, which is string
14950 # having a format:
14951 # "DIR[:DIR]:"
14952 # string "DIR[ DIR]" will be prepended to VARIABLE
14953 # ":DIR[:DIR]"
14954 # string "DIR[ DIR]" will be appended to VARIABLE
14955 # "DIRP[:DIRP]::[DIRA:]DIRA"
14956 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
14957 # "DIRA[ DIRA]" will be appended to VARIABLE
14958 # "DIR[:DIR]"
14959 # VARIABLE will be replaced by "DIR[ DIR]"
14960 func_munge_path_list ()
14961 {
14962 case x$2 in
14963 x)
14964 ;;
14965 *:)
14966 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
14967 ;;
14968 x:*)
14969 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
14970 ;;
14971 *::*)
14972 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
14973 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
14974 ;;
14975 *)
14976 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
14977 ;;
14978 esac
14979 }
14980
14981 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
14982 "
14983 if test "x$ac_cv_header_dlfcn_h" = xyes
14984 then :
14985 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
14986
14987 fi
14988
14989
14990
14991
14992
14993 # Set options
14994
14995
14996
14997 enable_dlopen=no
14998
14999
15000 enable_win32_dll=no
15001
15002
15003 # Check whether --enable-shared was given.
15004 if test ${enable_shared+y}
15005 then :
15006 enableval=$enable_shared; p=${PACKAGE-default}
15007 case $enableval in
15008 yes) enable_shared=yes ;;
15009 no) enable_shared=no ;;
15010 *)
15011 enable_shared=no
15012 # Look at the argument we got. We use all the common list separators.
15013 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
15014 for pkg in $enableval; do
15015 IFS=$lt_save_ifs
15016 if test "X$pkg" = "X$p"; then
15017 enable_shared=yes
15018 fi
15019 done
15020 IFS=$lt_save_ifs
15021 ;;
15022 esac
15023 else $as_nop
15024 enable_shared=yes
15025 fi
15026
15027
15028
15029
15030
15031
15032
15033
15034
15035
15036
15037 # Check whether --with-pic was given.
15038 if test ${with_pic+y}
15039 then :
15040 withval=$with_pic; lt_p=${PACKAGE-default}
15041 case $withval in
15042 yes|no) pic_mode=$withval ;;
15043 *)
15044 pic_mode=default
15045 # Look at the argument we got. We use all the common list separators.
15046 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
15047 for lt_pkg in $withval; do
15048 IFS=$lt_save_ifs
15049 if test "X$lt_pkg" = "X$lt_p"; then
15050 pic_mode=yes
15051 fi
15052 done
15053 IFS=$lt_save_ifs
15054 ;;
15055 esac
15056 else $as_nop
15057 pic_mode=default
15058 fi
15059
15060
15061
15062
15063
15064
15065
15066
15067 # Check whether --enable-fast-install was given.
15068 if test ${enable_fast_install+y}
15069 then :
15070 enableval=$enable_fast_install; p=${PACKAGE-default}
15071 case $enableval in
15072 yes) enable_fast_install=yes ;;
15073 no) enable_fast_install=no ;;
15074 *)
15075 enable_fast_install=no
15076 # Look at the argument we got. We use all the common list separators.
15077 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
15078 for pkg in $enableval; do
15079 IFS=$lt_save_ifs
15080 if test "X$pkg" = "X$p"; then
15081 enable_fast_install=yes
15082 fi
15083 done
15084 IFS=$lt_save_ifs
15085 ;;
15086 esac
15087 else $as_nop
15088 enable_fast_install=yes
15089 fi
15090
15091
15092
15093
15094
15095
15096
15097
15098 shared_archive_member_spec=
15099 case $host,$enable_shared in
15100 power*-*-aix[5-9]*,yes)
15101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
15102 printf %s "checking which variant of shared library versioning to provide... " >&6; }
15103
15104 # Check whether --with-aix-soname was given.
15105 if test ${with_aix_soname+y}
15106 then :
15107 withval=$with_aix_soname; case $withval in
15108 aix|svr4|both)
15109 ;;
15110 *)
15111 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
15112 ;;
15113 esac
15114 lt_cv_with_aix_soname=$with_aix_soname
15115 else $as_nop
15116 if test ${lt_cv_with_aix_soname+y}
15117 then :
15118 printf %s "(cached) " >&6
15119 else $as_nop
15120 lt_cv_with_aix_soname=aix
15121 fi
15122
15123 with_aix_soname=$lt_cv_with_aix_soname
15124 fi
15125
15126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
15127 printf "%s\n" "$with_aix_soname" >&6; }
15128 if test aix != "$with_aix_soname"; then
15129 # For the AIX way of multilib, we name the shared archive member
15130 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
15131 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
15132 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
15133 # the AIX toolchain works better with OBJECT_MODE set (default 32).
15134 if test 64 = "${OBJECT_MODE-32}"; then
15135 shared_archive_member_spec=shr_64
15136 else
15137 shared_archive_member_spec=shr
15138 fi
15139 fi
15140 ;;
15141 *)
15142 with_aix_soname=aix
15143 ;;
15144 esac
15145
15146
15147
15148
15149
15150
15151
15152
15153
15154
15155 # This can be used to rebuild libtool when needed
15156 LIBTOOL_DEPS=$ltmain
15157
15158 # Always use our own libtool.
15159 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
15160
15161
15162
15163
15164
15165
15166
15167
15168
15169
15170
15171
15172
15173
15174
15175
15176
15177
15178
15179
15180
15181
15182
15183
15184
15185
15186
15187
15188
15189
15190 test -z "$LN_S" && LN_S="ln -s"
15191
15192
15193
15194
15195
15196
15197
15198
15199
15200
15201
15202
15203
15204
15205 if test -n "${ZSH_VERSION+set}"; then
15206 setopt NO_GLOB_SUBST
15207 fi
15208
15209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
15210 printf %s "checking for objdir... " >&6; }
15211 if test ${lt_cv_objdir+y}
15212 then :
15213 printf %s "(cached) " >&6
15214 else $as_nop
15215 rm -f .libs 2>/dev/null
15216 mkdir .libs 2>/dev/null
15217 if test -d .libs; then
15218 lt_cv_objdir=.libs
15219 else
15220 # MS-DOS does not allow filenames that begin with a dot.
15221 lt_cv_objdir=_libs
15222 fi
15223 rmdir .libs 2>/dev/null
15224 fi
15225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
15226 printf "%s\n" "$lt_cv_objdir" >&6; }
15227 objdir=$lt_cv_objdir
15228
15229
15230
15231
15232
15233 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
15234
15235
15236
15237
15238 case $host_os in
15239 aix3*)
15240 # AIX sometimes has problems with the GCC collect2 program. For some
15241 # reason, if we set the COLLECT_NAMES environment variable, the problems
15242 # vanish in a puff of smoke.
15243 if test set != "${COLLECT_NAMES+set}"; then
15244 COLLECT_NAMES=
15245 export COLLECT_NAMES
15246 fi
15247 ;;
15248 esac
15249
15250 # Global variables:
15251 ofile=libtool
15252 can_build_shared=yes
15253
15254 # All known linkers require a '.a' archive for static linking (except MSVC and
15255 # ICC, which need '.lib').
15256 libext=a
15257
15258 with_gnu_ld=$lt_cv_prog_gnu_ld
15259
15260 old_CC=$CC
15261 old_CFLAGS=$CFLAGS
15262
15263 # Set sane defaults for various variables
15264 test -z "$CC" && CC=cc
15265 test -z "$LTCC" && LTCC=$CC
15266 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
15267 test -z "$LD" && LD=ld
15268 test -z "$ac_objext" && ac_objext=o
15269
15270 func_cc_basename $compiler
15271 cc_basename=$func_cc_basename_result
15272
15273
15274 # Only perform the check for file, if the check method requires it
15275 test -z "$MAGIC_CMD" && MAGIC_CMD=file
15276 case $deplibs_check_method in
15277 file_magic*)
15278 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
15279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
15280 printf %s "checking for ${ac_tool_prefix}file... " >&6; }
15281 if test ${lt_cv_path_MAGIC_CMD+y}
15282 then :
15283 printf %s "(cached) " >&6
15284 else $as_nop
15285 case $MAGIC_CMD in
15286 [\\/*] | ?:[\\/]*)
15287 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
15288 ;;
15289 *)
15290 lt_save_MAGIC_CMD=$MAGIC_CMD
15291 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
15292 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
15293 for ac_dir in $ac_dummy; do
15294 IFS=$lt_save_ifs
15295 test -z "$ac_dir" && ac_dir=.
15296 if test -f "$ac_dir/${ac_tool_prefix}file"; then
15297 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
15298 if test -n "$file_magic_test_file"; then
15299 case $deplibs_check_method in
15300 "file_magic "*)
15301 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
15302 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
15303 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15304 $EGREP "$file_magic_regex" > /dev/null; then
15305 :
15306 else
15307 cat <<_LT_EOF 1>&2
15308
15309 *** Warning: the command libtool uses to detect shared libraries,
15310 *** $file_magic_cmd, produces output that libtool cannot recognize.
15311 *** The result is that libtool may fail to recognize shared libraries
15312 *** as such. This will affect the creation of libtool libraries that
15313 *** depend on shared libraries, but programs linked with such libtool
15314 *** libraries will work regardless of this problem. Nevertheless, you
15315 *** may want to report the problem to your system manager and/or to
15316 *** bug-libtool@gnu.org
15317
15318 _LT_EOF
15319 fi ;;
15320 esac
15321 fi
15322 break
15323 fi
15324 done
15325 IFS=$lt_save_ifs
15326 MAGIC_CMD=$lt_save_MAGIC_CMD
15327 ;;
15328 esac
15329 fi
15330
15331 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
15332 if test -n "$MAGIC_CMD"; then
15333 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
15334 printf "%s\n" "$MAGIC_CMD" >&6; }
15335 else
15336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15337 printf "%s\n" "no" >&6; }
15338 fi
15339
15340
15341
15342
15343
15344 if test -z "$lt_cv_path_MAGIC_CMD"; then
15345 if test -n "$ac_tool_prefix"; then
15346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
15347 printf %s "checking for file... " >&6; }
15348 if test ${lt_cv_path_MAGIC_CMD+y}
15349 then :
15350 printf %s "(cached) " >&6
15351 else $as_nop
15352 case $MAGIC_CMD in
15353 [\\/*] | ?:[\\/]*)
15354 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
15355 ;;
15356 *)
15357 lt_save_MAGIC_CMD=$MAGIC_CMD
15358 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
15359 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
15360 for ac_dir in $ac_dummy; do
15361 IFS=$lt_save_ifs
15362 test -z "$ac_dir" && ac_dir=.
15363 if test -f "$ac_dir/file"; then
15364 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
15365 if test -n "$file_magic_test_file"; then
15366 case $deplibs_check_method in
15367 "file_magic "*)
15368 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
15369 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
15370 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15371 $EGREP "$file_magic_regex" > /dev/null; then
15372 :
15373 else
15374 cat <<_LT_EOF 1>&2
15375
15376 *** Warning: the command libtool uses to detect shared libraries,
15377 *** $file_magic_cmd, produces output that libtool cannot recognize.
15378 *** The result is that libtool may fail to recognize shared libraries
15379 *** as such. This will affect the creation of libtool libraries that
15380 *** depend on shared libraries, but programs linked with such libtool
15381 *** libraries will work regardless of this problem. Nevertheless, you
15382 *** may want to report the problem to your system manager and/or to
15383 *** bug-libtool@gnu.org
15384
15385 _LT_EOF
15386 fi ;;
15387 esac
15388 fi
15389 break
15390 fi
15391 done
15392 IFS=$lt_save_ifs
15393 MAGIC_CMD=$lt_save_MAGIC_CMD
15394 ;;
15395 esac
15396 fi
15397
15398 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
15399 if test -n "$MAGIC_CMD"; then
15400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
15401 printf "%s\n" "$MAGIC_CMD" >&6; }
15402 else
15403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15404 printf "%s\n" "no" >&6; }
15405 fi
15406
15407
15408 else
15409 MAGIC_CMD=:
15410 fi
15411 fi
15412
15413 fi
15414 ;;
15415 esac
15416
15417 # Use C for the default configuration in the libtool script
15418
15419 lt_save_CC=$CC
15420 ac_ext=c
15421 ac_cpp='$CPP $CPPFLAGS'
15422 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15423 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15424 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15425
15426
15427 # Source file extension for C test sources.
15428 ac_ext=c
15429
15430 # Object file extension for compiled C test sources.
15431 objext=o
15432 objext=$objext
15433
15434 # Code to be used in simple compile tests
15435 lt_simple_compile_test_code="int some_variable = 0;"
15436
15437 # Code to be used in simple link tests
15438 lt_simple_link_test_code='int main(){return(0);}'
15439
15440
15441
15442
15443
15444
15445
15446 # If no C compiler was specified, use CC.
15447 LTCC=${LTCC-"$CC"}
15448
15449 # If no C compiler flags were specified, use CFLAGS.
15450 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15451
15452 # Allow CC to be a program name with arguments.
15453 compiler=$CC
15454
15455 # Save the default compiler, since it gets overwritten when the other
15456 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
15457 compiler_DEFAULT=$CC
15458
15459 # save warnings/boilerplate of simple test code
15460 ac_outfile=conftest.$ac_objext
15461 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15462 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15463 _lt_compiler_boilerplate=`cat conftest.err`
15464 $RM conftest*
15465
15466 ac_outfile=conftest.$ac_objext
15467 echo "$lt_simple_link_test_code" >conftest.$ac_ext
15468 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15469 _lt_linker_boilerplate=`cat conftest.err`
15470 $RM -r conftest*
15471
15472
15473 if test -n "$compiler"; then
15474
15475 lt_prog_compiler_no_builtin_flag=
15476
15477 if test yes = "$GCC"; then
15478 case $cc_basename in
15479 nvcc*)
15480 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
15481 *)
15482 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
15483 esac
15484
15485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15486 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
15487 if test ${lt_cv_prog_compiler_rtti_exceptions+y}
15488 then :
15489 printf %s "(cached) " >&6
15490 else $as_nop
15491 lt_cv_prog_compiler_rtti_exceptions=no
15492 ac_outfile=conftest.$ac_objext
15493 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15494 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
15495 # Insert the option either (1) after the last *FLAGS variable, or
15496 # (2) before a word containing "conftest.", or (3) at the end.
15497 # Note that $ac_compile itself does not contain backslashes and begins
15498 # with a dollar sign (not a hyphen), so the echo should work correctly.
15499 # The option is referenced via a variable to avoid confusing sed.
15500 lt_compile=`echo "$ac_compile" | $SED \
15501 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15502 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15503 -e 's:$: $lt_compiler_flag:'`
15504 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15505 (eval "$lt_compile" 2>conftest.err)
15506 ac_status=$?
15507 cat conftest.err >&5
15508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15509 if (exit $ac_status) && test -s "$ac_outfile"; then
15510 # The compiler can only warn and ignore the option if not recognized
15511 # So say no if there are warnings other than the usual output.
15512 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15513 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15514 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15515 lt_cv_prog_compiler_rtti_exceptions=yes
15516 fi
15517 fi
15518 $RM conftest*
15519
15520 fi
15521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15522 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
15523
15524 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
15525 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
15526 else
15527 :
15528 fi
15529
15530 fi
15531
15532
15533
15534
15535
15536
15537 lt_prog_compiler_wl=
15538 lt_prog_compiler_pic=
15539 lt_prog_compiler_static=
15540
15541
15542 if test yes = "$GCC"; then
15543 lt_prog_compiler_wl='-Wl,'
15544 lt_prog_compiler_static='-static'
15545
15546 case $host_os in
15547 aix*)
15548 # All AIX code is PIC.
15549 if test ia64 = "$host_cpu"; then
15550 # AIX 5 now supports IA64 processor
15551 lt_prog_compiler_static='-Bstatic'
15552 fi
15553 lt_prog_compiler_pic='-fPIC'
15554 ;;
15555
15556 amigaos*)
15557 case $host_cpu in
15558 powerpc)
15559 # see comment about AmigaOS4 .so support
15560 lt_prog_compiler_pic='-fPIC'
15561 ;;
15562 m68k)
15563 # FIXME: we need at least 68020 code to build shared libraries, but
15564 # adding the '-m68020' flag to GCC prevents building anything better,
15565 # like '-m68040'.
15566 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
15567 ;;
15568 esac
15569 ;;
15570
15571 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15572 # PIC is the default for these OSes.
15573 ;;
15574
15575 mingw* | cygwin* | pw32* | os2* | cegcc*)
15576 # This hack is so that the source file can tell whether it is being
15577 # built for inclusion in a dll (and should export symbols for example).
15578 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15579 # (--disable-auto-import) libraries
15580 lt_prog_compiler_pic='-DDLL_EXPORT'
15581 case $host_os in
15582 os2*)
15583 lt_prog_compiler_static='$wl-static'
15584 ;;
15585 esac
15586 ;;
15587
15588 darwin* | rhapsody*)
15589 # PIC is the default on this platform
15590 # Common symbols not allowed in MH_DYLIB files
15591 lt_prog_compiler_pic='-fno-common'
15592 ;;
15593
15594 haiku*)
15595 # PIC is the default for Haiku.
15596 # The "-static" flag exists, but is broken.
15597 lt_prog_compiler_static=
15598 ;;
15599
15600 hpux*)
15601 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15602 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
15603 # sets the default TLS model and affects inlining.
15604 case $host_cpu in
15605 hppa*64*)
15606 # +Z the default
15607 ;;
15608 *)
15609 lt_prog_compiler_pic='-fPIC'
15610 ;;
15611 esac
15612 ;;
15613
15614 interix[3-9]*)
15615 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15616 # Instead, we relocate shared libraries at runtime.
15617 ;;
15618
15619 msdosdjgpp*)
15620 # Just because we use GCC doesn't mean we suddenly get shared libraries
15621 # on systems that don't support them.
15622 lt_prog_compiler_can_build_shared=no
15623 enable_shared=no
15624 ;;
15625
15626 *nto* | *qnx*)
15627 # QNX uses GNU C++, but need to define -shared option too, otherwise
15628 # it will coredump.
15629 lt_prog_compiler_pic='-fPIC -shared'
15630 ;;
15631
15632 sysv4*MP*)
15633 if test -d /usr/nec; then
15634 lt_prog_compiler_pic=-Kconform_pic
15635 fi
15636 ;;
15637
15638 *)
15639 lt_prog_compiler_pic='-fPIC'
15640 ;;
15641 esac
15642
15643 case $cc_basename in
15644 nvcc*) # Cuda Compiler Driver 2.2
15645 lt_prog_compiler_wl='-Xlinker '
15646 if test -n "$lt_prog_compiler_pic"; then
15647 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
15648 fi
15649 ;;
15650 esac
15651 else
15652 # PORTME Check for flag to pass linker flags through the system compiler.
15653 case $host_os in
15654 aix*)
15655 lt_prog_compiler_wl='-Wl,'
15656 if test ia64 = "$host_cpu"; then
15657 # AIX 5 now supports IA64 processor
15658 lt_prog_compiler_static='-Bstatic'
15659 else
15660 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
15661 fi
15662 ;;
15663
15664 darwin* | rhapsody*)
15665 # PIC is the default on this platform
15666 # Common symbols not allowed in MH_DYLIB files
15667 lt_prog_compiler_pic='-fno-common'
15668 case $cc_basename in
15669 nagfor*)
15670 # NAG Fortran compiler
15671 lt_prog_compiler_wl='-Wl,-Wl,,'
15672 lt_prog_compiler_pic='-PIC'
15673 lt_prog_compiler_static='-Bstatic'
15674 ;;
15675 esac
15676 ;;
15677
15678 mingw* | cygwin* | pw32* | os2* | cegcc*)
15679 # This hack is so that the source file can tell whether it is being
15680 # built for inclusion in a dll (and should export symbols for example).
15681 lt_prog_compiler_pic='-DDLL_EXPORT'
15682 case $host_os in
15683 os2*)
15684 lt_prog_compiler_static='$wl-static'
15685 ;;
15686 esac
15687 ;;
15688
15689 hpux9* | hpux10* | hpux11*)
15690 lt_prog_compiler_wl='-Wl,'
15691 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15692 # not for PA HP-UX.
15693 case $host_cpu in
15694 hppa*64*|ia64*)
15695 # +Z the default
15696 ;;
15697 *)
15698 lt_prog_compiler_pic='+Z'
15699 ;;
15700 esac
15701 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15702 lt_prog_compiler_static='$wl-a ${wl}archive'
15703 ;;
15704
15705 irix5* | irix6* | nonstopux*)
15706 lt_prog_compiler_wl='-Wl,'
15707 # PIC (with -KPIC) is the default.
15708 lt_prog_compiler_static='-non_shared'
15709 ;;
15710
15711 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15712 case $cc_basename in
15713 # old Intel for x86_64, which still supported -KPIC.
15714 ecc*)
15715 lt_prog_compiler_wl='-Wl,'
15716 lt_prog_compiler_pic='-KPIC'
15717 lt_prog_compiler_static='-static'
15718 ;;
15719 # icc used to be incompatible with GCC.
15720 # ICC 10 doesn't accept -KPIC any more.
15721 icc* | ifort*)
15722 lt_prog_compiler_wl='-Wl,'
15723 lt_prog_compiler_pic='-fPIC'
15724 lt_prog_compiler_static='-static'
15725 ;;
15726 # Lahey Fortran 8.1.
15727 lf95*)
15728 lt_prog_compiler_wl='-Wl,'
15729 lt_prog_compiler_pic='--shared'
15730 lt_prog_compiler_static='--static'
15731 ;;
15732 nagfor*)
15733 # NAG Fortran compiler
15734 lt_prog_compiler_wl='-Wl,-Wl,,'
15735 lt_prog_compiler_pic='-PIC'
15736 lt_prog_compiler_static='-Bstatic'
15737 ;;
15738 tcc*)
15739 # Fabrice Bellard et al's Tiny C Compiler
15740 lt_prog_compiler_wl='-Wl,'
15741 lt_prog_compiler_pic='-fPIC'
15742 lt_prog_compiler_static='-static'
15743 ;;
15744 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
15745 # Portland Group compilers (*not* the Pentium gcc compiler,
15746 # which looks to be a dead project)
15747 lt_prog_compiler_wl='-Wl,'
15748 lt_prog_compiler_pic='-fpic'
15749 lt_prog_compiler_static='-Bstatic'
15750 ;;
15751 ccc*)
15752 lt_prog_compiler_wl='-Wl,'
15753 # All Alpha code is PIC.
15754 lt_prog_compiler_static='-non_shared'
15755 ;;
15756 xl* | bgxl* | bgf* | mpixl*)
15757 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
15758 lt_prog_compiler_wl='-Wl,'
15759 lt_prog_compiler_pic='-qpic'
15760 lt_prog_compiler_static='-qstaticlink'
15761 ;;
15762 *)
15763 case `$CC -V 2>&1 | $SED 5q` in
15764 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
15765 # Sun Fortran 8.3 passes all unrecognized flags to the linker
15766 lt_prog_compiler_pic='-KPIC'
15767 lt_prog_compiler_static='-Bstatic'
15768 lt_prog_compiler_wl=''
15769 ;;
15770 *Sun\ F* | *Sun*Fortran*)
15771 lt_prog_compiler_pic='-KPIC'
15772 lt_prog_compiler_static='-Bstatic'
15773 lt_prog_compiler_wl='-Qoption ld '
15774 ;;
15775 *Sun\ C*)
15776 # Sun C 5.9
15777 lt_prog_compiler_pic='-KPIC'
15778 lt_prog_compiler_static='-Bstatic'
15779 lt_prog_compiler_wl='-Wl,'
15780 ;;
15781 *Intel*\ [CF]*Compiler*)
15782 lt_prog_compiler_wl='-Wl,'
15783 lt_prog_compiler_pic='-fPIC'
15784 lt_prog_compiler_static='-static'
15785 ;;
15786 *Portland\ Group*)
15787 lt_prog_compiler_wl='-Wl,'
15788 lt_prog_compiler_pic='-fpic'
15789 lt_prog_compiler_static='-Bstatic'
15790 ;;
15791 esac
15792 ;;
15793 esac
15794 ;;
15795
15796 newsos6)
15797 lt_prog_compiler_pic='-KPIC'
15798 lt_prog_compiler_static='-Bstatic'
15799 ;;
15800
15801 *nto* | *qnx*)
15802 # QNX uses GNU C++, but need to define -shared option too, otherwise
15803 # it will coredump.
15804 lt_prog_compiler_pic='-fPIC -shared'
15805 ;;
15806
15807 osf3* | osf4* | osf5*)
15808 lt_prog_compiler_wl='-Wl,'
15809 # All OSF/1 code is PIC.
15810 lt_prog_compiler_static='-non_shared'
15811 ;;
15812
15813 rdos*)
15814 lt_prog_compiler_static='-non_shared'
15815 ;;
15816
15817 solaris*)
15818 lt_prog_compiler_pic='-KPIC'
15819 lt_prog_compiler_static='-Bstatic'
15820 case $cc_basename in
15821 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
15822 lt_prog_compiler_wl='-Qoption ld ';;
15823 *)
15824 lt_prog_compiler_wl='-Wl,';;
15825 esac
15826 ;;
15827
15828 sunos4*)
15829 lt_prog_compiler_wl='-Qoption ld '
15830 lt_prog_compiler_pic='-PIC'
15831 lt_prog_compiler_static='-Bstatic'
15832 ;;
15833
15834 sysv4 | sysv4.2uw2* | sysv4.3*)
15835 lt_prog_compiler_wl='-Wl,'
15836 lt_prog_compiler_pic='-KPIC'
15837 lt_prog_compiler_static='-Bstatic'
15838 ;;
15839
15840 sysv4*MP*)
15841 if test -d /usr/nec; then
15842 lt_prog_compiler_pic='-Kconform_pic'
15843 lt_prog_compiler_static='-Bstatic'
15844 fi
15845 ;;
15846
15847 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15848 lt_prog_compiler_wl='-Wl,'
15849 lt_prog_compiler_pic='-KPIC'
15850 lt_prog_compiler_static='-Bstatic'
15851 ;;
15852
15853 unicos*)
15854 lt_prog_compiler_wl='-Wl,'
15855 lt_prog_compiler_can_build_shared=no
15856 ;;
15857
15858 uts4*)
15859 lt_prog_compiler_pic='-pic'
15860 lt_prog_compiler_static='-Bstatic'
15861 ;;
15862
15863 *)
15864 lt_prog_compiler_can_build_shared=no
15865 ;;
15866 esac
15867 fi
15868
15869 case $host_os in
15870 # For platforms that do not support PIC, -DPIC is meaningless:
15871 *djgpp*)
15872 lt_prog_compiler_pic=
15873 ;;
15874 *)
15875 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15876 ;;
15877 esac
15878
15879 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15880 printf %s "checking for $compiler option to produce PIC... " >&6; }
15881 if test ${lt_cv_prog_compiler_pic+y}
15882 then :
15883 printf %s "(cached) " >&6
15884 else $as_nop
15885 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
15886 fi
15887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
15888 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
15889 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
15890
15891 #
15892 # Check to make sure the PIC flag actually works.
15893 #
15894 if test -n "$lt_prog_compiler_pic"; then
15895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
15896 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
15897 if test ${lt_cv_prog_compiler_pic_works+y}
15898 then :
15899 printf %s "(cached) " >&6
15900 else $as_nop
15901 lt_cv_prog_compiler_pic_works=no
15902 ac_outfile=conftest.$ac_objext
15903 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15904 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
15905 # Insert the option either (1) after the last *FLAGS variable, or
15906 # (2) before a word containing "conftest.", or (3) at the end.
15907 # Note that $ac_compile itself does not contain backslashes and begins
15908 # with a dollar sign (not a hyphen), so the echo should work correctly.
15909 # The option is referenced via a variable to avoid confusing sed.
15910 lt_compile=`echo "$ac_compile" | $SED \
15911 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15912 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15913 -e 's:$: $lt_compiler_flag:'`
15914 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15915 (eval "$lt_compile" 2>conftest.err)
15916 ac_status=$?
15917 cat conftest.err >&5
15918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15919 if (exit $ac_status) && test -s "$ac_outfile"; then
15920 # The compiler can only warn and ignore the option if not recognized
15921 # So say no if there are warnings other than the usual output.
15922 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15923 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15924 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15925 lt_cv_prog_compiler_pic_works=yes
15926 fi
15927 fi
15928 $RM conftest*
15929
15930 fi
15931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
15932 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
15933
15934 if test yes = "$lt_cv_prog_compiler_pic_works"; then
15935 case $lt_prog_compiler_pic in
15936 "" | " "*) ;;
15937 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15938 esac
15939 else
15940 lt_prog_compiler_pic=
15941 lt_prog_compiler_can_build_shared=no
15942 fi
15943
15944 fi
15945
15946
15947
15948
15949
15950
15951
15952
15953
15954
15955
15956 #
15957 # Check to make sure the static flag actually works.
15958 #
15959 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15960 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15961 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15962 if test ${lt_cv_prog_compiler_static_works+y}
15963 then :
15964 printf %s "(cached) " >&6
15965 else $as_nop
15966 lt_cv_prog_compiler_static_works=no
15967 save_LDFLAGS=$LDFLAGS
15968 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15969 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15970 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15971 # The linker can only warn and ignore the option if not recognized
15972 # So say no if there are warnings
15973 if test -s conftest.err; then
15974 # Append any errors to the config.log.
15975 cat conftest.err 1>&5
15976 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15977 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15978 if diff conftest.exp conftest.er2 >/dev/null; then
15979 lt_cv_prog_compiler_static_works=yes
15980 fi
15981 else
15982 lt_cv_prog_compiler_static_works=yes
15983 fi
15984 fi
15985 $RM -r conftest*
15986 LDFLAGS=$save_LDFLAGS
15987
15988 fi
15989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
15990 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
15991
15992 if test yes = "$lt_cv_prog_compiler_static_works"; then
15993 :
15994 else
15995 lt_prog_compiler_static=
15996 fi
15997
15998
15999
16000
16001
16002
16003
16004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16005 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16006 if test ${lt_cv_prog_compiler_c_o+y}
16007 then :
16008 printf %s "(cached) " >&6
16009 else $as_nop
16010 lt_cv_prog_compiler_c_o=no
16011 $RM -r conftest 2>/dev/null
16012 mkdir conftest
16013 cd conftest
16014 mkdir out
16015 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16016
16017 lt_compiler_flag="-o out/conftest2.$ac_objext"
16018 # Insert the option either (1) after the last *FLAGS variable, or
16019 # (2) before a word containing "conftest.", or (3) at the end.
16020 # Note that $ac_compile itself does not contain backslashes and begins
16021 # with a dollar sign (not a hyphen), so the echo should work correctly.
16022 lt_compile=`echo "$ac_compile" | $SED \
16023 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16024 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16025 -e 's:$: $lt_compiler_flag:'`
16026 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16027 (eval "$lt_compile" 2>out/conftest.err)
16028 ac_status=$?
16029 cat out/conftest.err >&5
16030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16031 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16032 then
16033 # The compiler can only warn and ignore the option if not recognized
16034 # So say no if there are warnings
16035 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16036 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16037 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16038 lt_cv_prog_compiler_c_o=yes
16039 fi
16040 fi
16041 chmod u+w . 2>&5
16042 $RM conftest*
16043 # SGI C++ compiler will create directory out/ii_files/ for
16044 # template instantiation
16045 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16046 $RM out/* && rmdir out
16047 cd ..
16048 $RM -r conftest
16049 $RM conftest*
16050
16051 fi
16052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
16053 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
16054
16055
16056
16057
16058
16059
16060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16061 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16062 if test ${lt_cv_prog_compiler_c_o+y}
16063 then :
16064 printf %s "(cached) " >&6
16065 else $as_nop
16066 lt_cv_prog_compiler_c_o=no
16067 $RM -r conftest 2>/dev/null
16068 mkdir conftest
16069 cd conftest
16070 mkdir out
16071 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16072
16073 lt_compiler_flag="-o out/conftest2.$ac_objext"
16074 # Insert the option either (1) after the last *FLAGS variable, or
16075 # (2) before a word containing "conftest.", or (3) at the end.
16076 # Note that $ac_compile itself does not contain backslashes and begins
16077 # with a dollar sign (not a hyphen), so the echo should work correctly.
16078 lt_compile=`echo "$ac_compile" | $SED \
16079 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16080 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16081 -e 's:$: $lt_compiler_flag:'`
16082 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16083 (eval "$lt_compile" 2>out/conftest.err)
16084 ac_status=$?
16085 cat out/conftest.err >&5
16086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16087 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16088 then
16089 # The compiler can only warn and ignore the option if not recognized
16090 # So say no if there are warnings
16091 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16092 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16093 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16094 lt_cv_prog_compiler_c_o=yes
16095 fi
16096 fi
16097 chmod u+w . 2>&5
16098 $RM conftest*
16099 # SGI C++ compiler will create directory out/ii_files/ for
16100 # template instantiation
16101 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16102 $RM out/* && rmdir out
16103 cd ..
16104 $RM -r conftest
16105 $RM conftest*
16106
16107 fi
16108 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
16109 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
16110
16111
16112
16113
16114 hard_links=nottested
16115 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
16116 # do not overwrite the value of need_locks provided by the user
16117 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
16118 printf %s "checking if we can lock with hard links... " >&6; }
16119 hard_links=yes
16120 $RM conftest*
16121 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16122 touch conftest.a
16123 ln conftest.a conftest.b 2>&5 || hard_links=no
16124 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
16126 printf "%s\n" "$hard_links" >&6; }
16127 if test no = "$hard_links"; then
16128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
16129 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
16130 need_locks=warn
16131 fi
16132 else
16133 need_locks=no
16134 fi
16135
16136
16137
16138
16139
16140
16141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16142 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16143
16144 runpath_var=
16145 allow_undefined_flag=
16146 always_export_symbols=no
16147 archive_cmds=
16148 archive_expsym_cmds=
16149 compiler_needs_object=no
16150 enable_shared_with_static_runtimes=no
16151 export_dynamic_flag_spec=
16152 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16153 hardcode_automatic=no
16154 hardcode_direct=no
16155 hardcode_direct_absolute=no
16156 hardcode_libdir_flag_spec=
16157 hardcode_libdir_separator=
16158 hardcode_minus_L=no
16159 hardcode_shlibpath_var=unsupported
16160 inherit_rpath=no
16161 link_all_deplibs=unknown
16162 module_cmds=
16163 module_expsym_cmds=
16164 old_archive_from_new_cmds=
16165 old_archive_from_expsyms_cmds=
16166 thread_safe_flag_spec=
16167 whole_archive_flag_spec=
16168 # include_expsyms should be a list of space-separated symbols to be *always*
16169 # included in the symbol list
16170 include_expsyms=
16171 # exclude_expsyms can be an extended regexp of symbols to exclude
16172 # it will be wrapped by ' (' and ')$', so one must not match beginning or
16173 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
16174 # as well as any symbol that contains 'd'.
16175 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16176 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16177 # platforms (ab)use it in PIC code, but their linkers get confused if
16178 # the symbol is explicitly referenced. Since portable code cannot
16179 # rely on this symbol name, it's probably fine to never include it in
16180 # preloaded symbol tables.
16181 # Exclude shared library initialization/finalization symbols.
16182 extract_expsyms_cmds=
16183
16184 case $host_os in
16185 cygwin* | mingw* | pw32* | cegcc*)
16186 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
16187 # When not using gcc, we currently assume that we are using
16188 # Microsoft Visual C++ or Intel C++ Compiler.
16189 if test yes != "$GCC"; then
16190 with_gnu_ld=no
16191 fi
16192 ;;
16193 interix*)
16194 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
16195 with_gnu_ld=yes
16196 ;;
16197 openbsd* | bitrig*)
16198 with_gnu_ld=no
16199 ;;
16200 esac
16201
16202 ld_shlibs=yes
16203
16204 # On some targets, GNU ld is compatible enough with the native linker
16205 # that we're better off using the native interface for both.
16206 lt_use_gnu_ld_interface=no
16207 if test yes = "$with_gnu_ld"; then
16208 case $host_os in
16209 aix*)
16210 # The AIX port of GNU ld has always aspired to compatibility
16211 # with the native linker. However, as the warning in the GNU ld
16212 # block says, versions before 2.19.5* couldn't really create working
16213 # shared libraries, regardless of the interface used.
16214 case `$LD -v 2>&1` in
16215 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
16216 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
16217 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
16218 *)
16219 lt_use_gnu_ld_interface=yes
16220 ;;
16221 esac
16222 ;;
16223 *)
16224 lt_use_gnu_ld_interface=yes
16225 ;;
16226 esac
16227 fi
16228
16229 if test yes = "$lt_use_gnu_ld_interface"; then
16230 # If archive_cmds runs LD, not CC, wlarc should be empty
16231 wlarc='$wl'
16232
16233 # Set some defaults for GNU ld with shared library support. These
16234 # are reset later if shared libraries are not supported. Putting them
16235 # here allows them to be overridden if necessary.
16236 runpath_var=LD_RUN_PATH
16237 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
16238 export_dynamic_flag_spec='$wl--export-dynamic'
16239 # ancient GNU ld didn't support --whole-archive et. al.
16240 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
16241 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
16242 else
16243 whole_archive_flag_spec=
16244 fi
16245 supports_anon_versioning=no
16246 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
16247 *GNU\ gold*) supports_anon_versioning=yes ;;
16248 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16249 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16250 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16251 *\ 2.11.*) ;; # other 2.11 versions
16252 *) supports_anon_versioning=yes ;;
16253 esac
16254
16255 # See if GNU ld supports shared libraries.
16256 case $host_os in
16257 aix[3-9]*)
16258 # On AIX/PPC, the GNU linker is very broken
16259 if test ia64 != "$host_cpu"; then
16260 ld_shlibs=no
16261 cat <<_LT_EOF 1>&2
16262
16263 *** Warning: the GNU linker, at least up to release 2.19, is reported
16264 *** to be unable to reliably create shared libraries on AIX.
16265 *** Therefore, libtool is disabling shared libraries support. If you
16266 *** really care for shared libraries, you may want to install binutils
16267 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
16268 *** You will then need to restart the configuration process.
16269
16270 _LT_EOF
16271 fi
16272 ;;
16273
16274 amigaos*)
16275 case $host_cpu in
16276 powerpc)
16277 # see comment about AmigaOS4 .so support
16278 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16279 archive_expsym_cmds=''
16280 ;;
16281 m68k)
16282 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)'
16283 hardcode_libdir_flag_spec='-L$libdir'
16284 hardcode_minus_L=yes
16285 ;;
16286 esac
16287 ;;
16288
16289 beos*)
16290 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16291 allow_undefined_flag=unsupported
16292 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
16293 # support --undefined. This deserves some investigation. FIXME
16294 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16295 else
16296 ld_shlibs=no
16297 fi
16298 ;;
16299
16300 cygwin* | mingw* | pw32* | cegcc*)
16301 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
16302 # as there is no search path for DLLs.
16303 hardcode_libdir_flag_spec='-L$libdir'
16304 export_dynamic_flag_spec='$wl--export-all-symbols'
16305 allow_undefined_flag=unsupported
16306 always_export_symbols=no
16307 enable_shared_with_static_runtimes=yes
16308 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'
16309 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
16310
16311 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
16312 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16313 # If the export-symbols file already is a .def file, use it as
16314 # is; otherwise, prepend EXPORTS...
16315 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
16316 cp $export_symbols $output_objdir/$soname.def;
16317 else
16318 echo EXPORTS > $output_objdir/$soname.def;
16319 cat $export_symbols >> $output_objdir/$soname.def;
16320 fi~
16321 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16322 else
16323 ld_shlibs=no
16324 fi
16325 ;;
16326
16327 haiku*)
16328 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16329 link_all_deplibs=yes
16330 ;;
16331
16332 os2*)
16333 hardcode_libdir_flag_spec='-L$libdir'
16334 hardcode_minus_L=yes
16335 allow_undefined_flag=unsupported
16336 shrext_cmds=.dll
16337 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
16338 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
16339 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
16340 $ECHO EXPORTS >> $output_objdir/$libname.def~
16341 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
16342 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
16343 emximp -o $lib $output_objdir/$libname.def'
16344 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
16345 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
16346 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
16347 $ECHO EXPORTS >> $output_objdir/$libname.def~
16348 prefix_cmds="$SED"~
16349 if test EXPORTS = "`$SED 1q $export_symbols`"; then
16350 prefix_cmds="$prefix_cmds -e 1d";
16351 fi~
16352 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
16353 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
16354 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
16355 emximp -o $lib $output_objdir/$libname.def'
16356 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
16357 enable_shared_with_static_runtimes=yes
16358 file_list_spec='@'
16359 ;;
16360
16361 interix[3-9]*)
16362 hardcode_direct=no
16363 hardcode_shlibpath_var=no
16364 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
16365 export_dynamic_flag_spec='$wl-E'
16366 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16367 # Instead, shared libraries are loaded at an image base (0x10000000 by
16368 # default) and relocated if they conflict, which is a slow very memory
16369 # consuming and fragmenting process. To avoid this, we pick a random,
16370 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16371 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16372 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16373 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'
16374 ;;
16375
16376 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
16377 tmp_diet=no
16378 if test linux-dietlibc = "$host_os"; then
16379 case $cc_basename in
16380 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
16381 esac
16382 fi
16383 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
16384 && test no = "$tmp_diet"
16385 then
16386 tmp_addflag=' $pic_flag'
16387 tmp_sharedflag='-shared'
16388 case $cc_basename,$host_cpu in
16389 pgcc*) # Portland Group C compiler
16390 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'
16391 tmp_addflag=' $pic_flag'
16392 ;;
16393 pgf77* | pgf90* | pgf95* | pgfortran*)
16394 # Portland Group f77 and f90 compilers
16395 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'
16396 tmp_addflag=' $pic_flag -Mnomain' ;;
16397 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16398 tmp_addflag=' -i_dynamic' ;;
16399 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16400 tmp_addflag=' -i_dynamic -nofor_main' ;;
16401 ifc* | ifort*) # Intel Fortran compiler
16402 tmp_addflag=' -nofor_main' ;;
16403 lf95*) # Lahey Fortran 8.1
16404 whole_archive_flag_spec=
16405 tmp_sharedflag='--shared' ;;
16406 nagfor*) # NAGFOR 5.3
16407 tmp_sharedflag='-Wl,-shared' ;;
16408 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
16409 tmp_sharedflag='-qmkshrobj'
16410 tmp_addflag= ;;
16411 nvcc*) # Cuda Compiler Driver 2.2
16412 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'
16413 compiler_needs_object=yes
16414 ;;
16415 esac
16416 case `$CC -V 2>&1 | $SED 5q` in
16417 *Sun\ C*) # Sun C 5.9
16418 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'
16419 compiler_needs_object=yes
16420 tmp_sharedflag='-G' ;;
16421 *Sun\ F*) # Sun Fortran 8.3
16422 tmp_sharedflag='-G' ;;
16423 esac
16424 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16425
16426 if test yes = "$supports_anon_versioning"; then
16427 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
16428 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16429 echo "local: *; };" >> $output_objdir/$libname.ver~
16430 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
16431 fi
16432
16433 case $cc_basename in
16434 tcc*)
16435 export_dynamic_flag_spec='-rdynamic'
16436 ;;
16437 xlf* | bgf* | bgxlf* | mpixlf*)
16438 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
16439 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
16440 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
16441 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
16442 if test yes = "$supports_anon_versioning"; then
16443 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
16444 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16445 echo "local: *; };" >> $output_objdir/$libname.ver~
16446 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
16447 fi
16448 ;;
16449 esac
16450 else
16451 ld_shlibs=no
16452 fi
16453 ;;
16454
16455 netbsd*)
16456 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16457 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16458 wlarc=
16459 else
16460 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16461 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
16462 fi
16463 ;;
16464
16465 solaris*)
16466 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
16467 ld_shlibs=no
16468 cat <<_LT_EOF 1>&2
16469
16470 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16471 *** create shared libraries on Solaris systems. Therefore, libtool
16472 *** is disabling shared libraries support. We urge you to upgrade GNU
16473 *** binutils to release 2.9.1 or newer. Another option is to modify
16474 *** your PATH or compiler configuration so that the native linker is
16475 *** used, and then restart.
16476
16477 _LT_EOF
16478 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16479 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16480 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
16481 else
16482 ld_shlibs=no
16483 fi
16484 ;;
16485
16486 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16487 case `$LD -v 2>&1` in
16488 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16489 ld_shlibs=no
16490 cat <<_LT_EOF 1>&2
16491
16492 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
16493 *** reliably create shared libraries on SCO systems. Therefore, libtool
16494 *** is disabling shared libraries support. We urge you to upgrade GNU
16495 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16496 *** your PATH or compiler configuration so that the native linker is
16497 *** used, and then restart.
16498
16499 _LT_EOF
16500 ;;
16501 *)
16502 # For security reasons, it is highly recommended that you always
16503 # use absolute paths for naming shared libraries, and exclude the
16504 # DT_RUNPATH tag from executables and libraries. But doing so
16505 # requires that you compile everything twice, which is a pain.
16506 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16507 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
16508 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16509 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
16510 else
16511 ld_shlibs=no
16512 fi
16513 ;;
16514 esac
16515 ;;
16516
16517 sunos4*)
16518 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16519 wlarc=
16520 hardcode_direct=yes
16521 hardcode_shlibpath_var=no
16522 ;;
16523
16524 *)
16525 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16526 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16527 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
16528 else
16529 ld_shlibs=no
16530 fi
16531 ;;
16532 esac
16533
16534 if test no = "$ld_shlibs"; then
16535 runpath_var=
16536 hardcode_libdir_flag_spec=
16537 export_dynamic_flag_spec=
16538 whole_archive_flag_spec=
16539 fi
16540 else
16541 # PORTME fill in a description of your system's linker (not GNU ld)
16542 case $host_os in
16543 aix3*)
16544 allow_undefined_flag=unsupported
16545 always_export_symbols=yes
16546 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'
16547 # Note: this linker hardcodes the directories in LIBPATH if there
16548 # are no directories specified by -L.
16549 hardcode_minus_L=yes
16550 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
16551 # Neither direct hardcoding nor static linking is supported with a
16552 # broken collect2.
16553 hardcode_direct=unsupported
16554 fi
16555 ;;
16556
16557 aix[4-9]*)
16558 if test ia64 = "$host_cpu"; then
16559 # On IA64, the linker does run time linking by default, so we don't
16560 # have to do anything special.
16561 aix_use_runtimelinking=no
16562 exp_sym_flag='-Bexport'
16563 no_entry_flag=
16564 else
16565 # If we're using GNU nm, then we don't want the "-C" option.
16566 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
16567 # Without the "-l" option, or with the "-B" option, AIX nm treats
16568 # weak defined symbols like other global defined symbols, whereas
16569 # GNU nm marks them as "W".
16570 # While the 'weak' keyword is ignored in the Export File, we need
16571 # it in the Import File for the 'aix-soname' feature, so we have
16572 # to replace the "-B" option with "-P" for AIX nm.
16573 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
16574 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'
16575 else
16576 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'
16577 fi
16578 aix_use_runtimelinking=no
16579
16580 # Test if we are trying to use run time linking or normal
16581 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16582 # have runtime linking enabled, and use it for executables.
16583 # For shared libraries, we enable/disable runtime linking
16584 # depending on the kind of the shared library created -
16585 # when "with_aix_soname,aix_use_runtimelinking" is:
16586 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
16587 # "aix,yes" lib.so shared, rtl:yes, for executables
16588 # lib.a static archive
16589 # "both,no" lib.so.V(shr.o) shared, rtl:yes
16590 # lib.a(lib.so.V) shared, rtl:no, for executables
16591 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
16592 # lib.a(lib.so.V) shared, rtl:no
16593 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
16594 # lib.a static archive
16595 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
16596 for ld_flag in $LDFLAGS; do
16597 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
16598 aix_use_runtimelinking=yes
16599 break
16600 fi
16601 done
16602 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
16603 # With aix-soname=svr4, we create the lib.so.V shared archives only,
16604 # so we don't have lib.a shared libs to link our executables.
16605 # We have to force runtime linking in this case.
16606 aix_use_runtimelinking=yes
16607 LDFLAGS="$LDFLAGS -Wl,-brtl"
16608 fi
16609 ;;
16610 esac
16611
16612 exp_sym_flag='-bexport'
16613 no_entry_flag='-bnoentry'
16614 fi
16615
16616 # When large executables or shared objects are built, AIX ld can
16617 # have problems creating the table of contents. If linking a library
16618 # or program results in "error TOC overflow" add -mminimal-toc to
16619 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16620 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16621
16622 archive_cmds=''
16623 hardcode_direct=yes
16624 hardcode_direct_absolute=yes
16625 hardcode_libdir_separator=':'
16626 link_all_deplibs=yes
16627 file_list_spec='$wl-f,'
16628 case $with_aix_soname,$aix_use_runtimelinking in
16629 aix,*) ;; # traditional, no import file
16630 svr4,* | *,yes) # use import file
16631 # The Import File defines what to hardcode.
16632 hardcode_direct=no
16633 hardcode_direct_absolute=no
16634 ;;
16635 esac
16636
16637 if test yes = "$GCC"; then
16638 case $host_os in aix4.[012]|aix4.[012].*)
16639 # We only want to do this on AIX 4.2 and lower, the check
16640 # below for broken collect2 doesn't work under 4.3+
16641 collect2name=`$CC -print-prog-name=collect2`
16642 if test -f "$collect2name" &&
16643 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
16644 then
16645 # We have reworked collect2
16646 :
16647 else
16648 # We have old collect2
16649 hardcode_direct=unsupported
16650 # It fails to find uninstalled libraries when the uninstalled
16651 # path is not listed in the libpath. Setting hardcode_minus_L
16652 # to unsupported forces relinking
16653 hardcode_minus_L=yes
16654 hardcode_libdir_flag_spec='-L$libdir'
16655 hardcode_libdir_separator=
16656 fi
16657 ;;
16658 esac
16659 shared_flag='-shared'
16660 if test yes = "$aix_use_runtimelinking"; then
16661 shared_flag="$shared_flag "'$wl-G'
16662 fi
16663 # Need to ensure runtime linking is disabled for the traditional
16664 # shared library, or the linker may eventually find shared libraries
16665 # /with/ Import File - we do not want to mix them.
16666 shared_flag_aix='-shared'
16667 shared_flag_svr4='-shared $wl-G'
16668 else
16669 # not using gcc
16670 if test ia64 = "$host_cpu"; then
16671 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16672 # chokes on -Wl,-G. The following line is correct:
16673 shared_flag='-G'
16674 else
16675 if test yes = "$aix_use_runtimelinking"; then
16676 shared_flag='$wl-G'
16677 else
16678 shared_flag='$wl-bM:SRE'
16679 fi
16680 shared_flag_aix='$wl-bM:SRE'
16681 shared_flag_svr4='$wl-G'
16682 fi
16683 fi
16684
16685 export_dynamic_flag_spec='$wl-bexpall'
16686 # It seems that -bexpall does not export symbols beginning with
16687 # underscore (_), so it is better to generate a list of symbols to export.
16688 always_export_symbols=yes
16689 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
16690 # Warning - without using the other runtime loading flags (-brtl),
16691 # -berok will link without error, but may produce a broken library.
16692 allow_undefined_flag='-berok'
16693 # Determine the default libpath from the value encoded in an
16694 # empty executable.
16695 if test set = "${lt_cv_aix_libpath+set}"; then
16696 aix_libpath=$lt_cv_aix_libpath
16697 else
16698 if test ${lt_cv_aix_libpath_+y}
16699 then :
16700 printf %s "(cached) " >&6
16701 else $as_nop
16702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16703 /* end confdefs.h. */
16704
16705 int
16706 main (void)
16707 {
16708
16709 ;
16710 return 0;
16711 }
16712 _ACEOF
16713 if ac_fn_c_try_link "$LINENO"
16714 then :
16715
16716 lt_aix_libpath_sed='
16717 /Import File Strings/,/^$/ {
16718 /^0/ {
16719 s/^0 *\([^ ]*\) *$/\1/
16720 p
16721 }
16722 }'
16723 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16724 # Check for a 64-bit object if we didn't find anything.
16725 if test -z "$lt_cv_aix_libpath_"; then
16726 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16727 fi
16728 fi
16729 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16730 conftest$ac_exeext conftest.$ac_ext
16731 if test -z "$lt_cv_aix_libpath_"; then
16732 lt_cv_aix_libpath_=/usr/lib:/lib
16733 fi
16734
16735 fi
16736
16737 aix_libpath=$lt_cv_aix_libpath_
16738 fi
16739
16740 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
16741 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
16742 else
16743 if test ia64 = "$host_cpu"; then
16744 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
16745 allow_undefined_flag="-z nodefs"
16746 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"
16747 else
16748 # Determine the default libpath from the value encoded in an
16749 # empty executable.
16750 if test set = "${lt_cv_aix_libpath+set}"; then
16751 aix_libpath=$lt_cv_aix_libpath
16752 else
16753 if test ${lt_cv_aix_libpath_+y}
16754 then :
16755 printf %s "(cached) " >&6
16756 else $as_nop
16757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16758 /* end confdefs.h. */
16759
16760 int
16761 main (void)
16762 {
16763
16764 ;
16765 return 0;
16766 }
16767 _ACEOF
16768 if ac_fn_c_try_link "$LINENO"
16769 then :
16770
16771 lt_aix_libpath_sed='
16772 /Import File Strings/,/^$/ {
16773 /^0/ {
16774 s/^0 *\([^ ]*\) *$/\1/
16775 p
16776 }
16777 }'
16778 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16779 # Check for a 64-bit object if we didn't find anything.
16780 if test -z "$lt_cv_aix_libpath_"; then
16781 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16782 fi
16783 fi
16784 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16785 conftest$ac_exeext conftest.$ac_ext
16786 if test -z "$lt_cv_aix_libpath_"; then
16787 lt_cv_aix_libpath_=/usr/lib:/lib
16788 fi
16789
16790 fi
16791
16792 aix_libpath=$lt_cv_aix_libpath_
16793 fi
16794
16795 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
16796 # Warning - without using the other run time loading flags,
16797 # -berok will link without error, but may produce a broken library.
16798 no_undefined_flag=' $wl-bernotok'
16799 allow_undefined_flag=' $wl-berok'
16800 if test yes = "$with_gnu_ld"; then
16801 # We only use this code for GNU lds that support --whole-archive.
16802 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
16803 else
16804 # Exported symbols can be pulled into shared objects from archives
16805 whole_archive_flag_spec='$convenience'
16806 fi
16807 archive_cmds_need_lc=yes
16808 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
16809 # -brtl affects multiple linker settings, -berok does not and is overridden later
16810 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
16811 if test svr4 != "$with_aix_soname"; then
16812 # This is similar to how AIX traditionally builds its shared libraries.
16813 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'
16814 fi
16815 if test aix != "$with_aix_soname"; then
16816 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'
16817 else
16818 # used by -dlpreopen to get the symbols
16819 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
16820 fi
16821 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
16822 fi
16823 fi
16824 ;;
16825
16826 amigaos*)
16827 case $host_cpu in
16828 powerpc)
16829 # see comment about AmigaOS4 .so support
16830 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16831 archive_expsym_cmds=''
16832 ;;
16833 m68k)
16834 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)'
16835 hardcode_libdir_flag_spec='-L$libdir'
16836 hardcode_minus_L=yes
16837 ;;
16838 esac
16839 ;;
16840
16841 bsdi[45]*)
16842 export_dynamic_flag_spec=-rdynamic
16843 ;;
16844
16845 cygwin* | mingw* | pw32* | cegcc*)
16846 # When not using gcc, we currently assume that we are using
16847 # Microsoft Visual C++ or Intel C++ Compiler.
16848 # hardcode_libdir_flag_spec is actually meaningless, as there is
16849 # no search path for DLLs.
16850 case $cc_basename in
16851 cl* | icl*)
16852 # Native MSVC or ICC
16853 hardcode_libdir_flag_spec=' '
16854 allow_undefined_flag=unsupported
16855 always_export_symbols=yes
16856 file_list_spec='@'
16857 # Tell ltmain to make .lib files, not .a files.
16858 libext=lib
16859 # Tell ltmain to make .dll files, not .so files.
16860 shrext_cmds=.dll
16861 # FIXME: Setting linknames here is a bad hack.
16862 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
16863 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
16864 cp "$export_symbols" "$output_objdir/$soname.def";
16865 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
16866 else
16867 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
16868 fi~
16869 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
16870 linknames='
16871 # The linker will not automatically build a static lib if we build a DLL.
16872 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
16873 enable_shared_with_static_runtimes=yes
16874 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
16875 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16876 # Don't use ranlib
16877 old_postinstall_cmds='chmod 644 $oldlib'
16878 postlink_cmds='lt_outputfile="@OUTPUT@"~
16879 lt_tool_outputfile="@TOOL_OUTPUT@"~
16880 case $lt_outputfile in
16881 *.exe|*.EXE) ;;
16882 *)
16883 lt_outputfile=$lt_outputfile.exe
16884 lt_tool_outputfile=$lt_tool_outputfile.exe
16885 ;;
16886 esac~
16887 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
16888 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
16889 $RM "$lt_outputfile.manifest";
16890 fi'
16891 ;;
16892 *)
16893 # Assume MSVC and ICC wrapper
16894 hardcode_libdir_flag_spec=' '
16895 allow_undefined_flag=unsupported
16896 # Tell ltmain to make .lib files, not .a files.
16897 libext=lib
16898 # Tell ltmain to make .dll files, not .so files.
16899 shrext_cmds=.dll
16900 # FIXME: Setting linknames here is a bad hack.
16901 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
16902 # The linker will automatically build a .lib file if we build a DLL.
16903 old_archive_from_new_cmds='true'
16904 # FIXME: Should let the user specify the lib program.
16905 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
16906 enable_shared_with_static_runtimes=yes
16907 ;;
16908 esac
16909 ;;
16910
16911 darwin* | rhapsody*)
16912
16913
16914 archive_cmds_need_lc=no
16915 hardcode_direct=no
16916 hardcode_automatic=yes
16917 hardcode_shlibpath_var=unsupported
16918 if test yes = "$lt_cv_ld_force_load"; then
16919 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\"`'
16920
16921 else
16922 whole_archive_flag_spec=''
16923 fi
16924 link_all_deplibs=yes
16925 allow_undefined_flag=$_lt_dar_allow_undefined
16926 case $cc_basename in
16927 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
16928 *) _lt_dar_can_shared=$GCC ;;
16929 esac
16930 if test yes = "$_lt_dar_can_shared"; then
16931 output_verbose_link_cmd=func_echo_all
16932 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
16933 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
16934 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"
16935 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"
16936
16937 else
16938 ld_shlibs=no
16939 fi
16940
16941 ;;
16942
16943 dgux*)
16944 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16945 hardcode_libdir_flag_spec='-L$libdir'
16946 hardcode_shlibpath_var=no
16947 ;;
16948
16949 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16950 # support. Future versions do this automatically, but an explicit c++rt0.o
16951 # does not break anything, and helps significantly (at the cost of a little
16952 # extra space).
16953 freebsd2.2*)
16954 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16955 hardcode_libdir_flag_spec='-R$libdir'
16956 hardcode_direct=yes
16957 hardcode_shlibpath_var=no
16958 ;;
16959
16960 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16961 freebsd2.*)
16962 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16963 hardcode_direct=yes
16964 hardcode_minus_L=yes
16965 hardcode_shlibpath_var=no
16966 ;;
16967
16968 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16969 freebsd* | dragonfly* | midnightbsd*)
16970 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16971 hardcode_libdir_flag_spec='-R$libdir'
16972 hardcode_direct=yes
16973 hardcode_shlibpath_var=no
16974 ;;
16975
16976 hpux9*)
16977 if test yes = "$GCC"; then
16978 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'
16979 else
16980 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'
16981 fi
16982 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
16983 hardcode_libdir_separator=:
16984 hardcode_direct=yes
16985
16986 # hardcode_minus_L: Not really in the search PATH,
16987 # but as the default location of the library.
16988 hardcode_minus_L=yes
16989 export_dynamic_flag_spec='$wl-E'
16990 ;;
16991
16992 hpux10*)
16993 if test yes,no = "$GCC,$with_gnu_ld"; then
16994 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16995 else
16996 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16997 fi
16998 if test no = "$with_gnu_ld"; then
16999 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
17000 hardcode_libdir_separator=:
17001 hardcode_direct=yes
17002 hardcode_direct_absolute=yes
17003 export_dynamic_flag_spec='$wl-E'
17004 # hardcode_minus_L: Not really in the search PATH,
17005 # but as the default location of the library.
17006 hardcode_minus_L=yes
17007 fi
17008 ;;
17009
17010 hpux11*)
17011 if test yes,no = "$GCC,$with_gnu_ld"; then
17012 case $host_cpu in
17013 hppa*64*)
17014 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
17015 ;;
17016 ia64*)
17017 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17018 ;;
17019 *)
17020 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17021 ;;
17022 esac
17023 else
17024 case $host_cpu in
17025 hppa*64*)
17026 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
17027 ;;
17028 ia64*)
17029 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17030 ;;
17031 *)
17032
17033 # Older versions of the 11.00 compiler do not understand -b yet
17034 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
17035 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
17036 printf %s "checking if $CC understands -b... " >&6; }
17037 if test ${lt_cv_prog_compiler__b+y}
17038 then :
17039 printf %s "(cached) " >&6
17040 else $as_nop
17041 lt_cv_prog_compiler__b=no
17042 save_LDFLAGS=$LDFLAGS
17043 LDFLAGS="$LDFLAGS -b"
17044 echo "$lt_simple_link_test_code" > conftest.$ac_ext
17045 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17046 # The linker can only warn and ignore the option if not recognized
17047 # So say no if there are warnings
17048 if test -s conftest.err; then
17049 # Append any errors to the config.log.
17050 cat conftest.err 1>&5
17051 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
17052 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17053 if diff conftest.exp conftest.er2 >/dev/null; then
17054 lt_cv_prog_compiler__b=yes
17055 fi
17056 else
17057 lt_cv_prog_compiler__b=yes
17058 fi
17059 fi
17060 $RM -r conftest*
17061 LDFLAGS=$save_LDFLAGS
17062
17063 fi
17064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
17065 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
17066
17067 if test yes = "$lt_cv_prog_compiler__b"; then
17068 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17069 else
17070 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17071 fi
17072
17073 ;;
17074 esac
17075 fi
17076 if test no = "$with_gnu_ld"; then
17077 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
17078 hardcode_libdir_separator=:
17079
17080 case $host_cpu in
17081 hppa*64*|ia64*)
17082 hardcode_direct=no
17083 hardcode_shlibpath_var=no
17084 ;;
17085 *)
17086 hardcode_direct=yes
17087 hardcode_direct_absolute=yes
17088 export_dynamic_flag_spec='$wl-E'
17089
17090 # hardcode_minus_L: Not really in the search PATH,
17091 # but as the default location of the library.
17092 hardcode_minus_L=yes
17093 ;;
17094 esac
17095 fi
17096 ;;
17097
17098 irix5* | irix6* | nonstopux*)
17099 if test yes = "$GCC"; then
17100 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'
17101 # Try to use the -exported_symbol ld option, if it does not
17102 # work, assume that -exports_file does not work either and
17103 # implicitly export all symbols.
17104 # This should be the same for all languages, so no per-tag cache variable.
17105 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
17106 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
17107 if test ${lt_cv_irix_exported_symbol+y}
17108 then :
17109 printf %s "(cached) " >&6
17110 else $as_nop
17111 save_LDFLAGS=$LDFLAGS
17112 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
17113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17114 /* end confdefs.h. */
17115 int foo (void) { return 0; }
17116 _ACEOF
17117 if ac_fn_c_try_link "$LINENO"
17118 then :
17119 lt_cv_irix_exported_symbol=yes
17120 else $as_nop
17121 lt_cv_irix_exported_symbol=no
17122 fi
17123 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17124 conftest$ac_exeext conftest.$ac_ext
17125 LDFLAGS=$save_LDFLAGS
17126 fi
17127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
17128 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
17129 if test yes = "$lt_cv_irix_exported_symbol"; then
17130 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'
17131 fi
17132 else
17133 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'
17134 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'
17135 fi
17136 archive_cmds_need_lc='no'
17137 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
17138 hardcode_libdir_separator=:
17139 inherit_rpath=yes
17140 link_all_deplibs=yes
17141 ;;
17142
17143 linux*)
17144 case $cc_basename in
17145 tcc*)
17146 # Fabrice Bellard et al's Tiny C Compiler
17147 ld_shlibs=yes
17148 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17149 ;;
17150 esac
17151 ;;
17152
17153 netbsd*)
17154 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17155 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17156 else
17157 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17158 fi
17159 hardcode_libdir_flag_spec='-R$libdir'
17160 hardcode_direct=yes
17161 hardcode_shlibpath_var=no
17162 ;;
17163
17164 newsos6)
17165 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17166 hardcode_direct=yes
17167 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
17168 hardcode_libdir_separator=:
17169 hardcode_shlibpath_var=no
17170 ;;
17171
17172 *nto* | *qnx*)
17173 ;;
17174
17175 openbsd* | bitrig*)
17176 if test -f /usr/libexec/ld.so; then
17177 hardcode_direct=yes
17178 hardcode_shlibpath_var=no
17179 hardcode_direct_absolute=yes
17180 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
17181 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17182 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
17183 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
17184 export_dynamic_flag_spec='$wl-E'
17185 else
17186 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17187 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
17188 fi
17189 else
17190 ld_shlibs=no
17191 fi
17192 ;;
17193
17194 os2*)
17195 hardcode_libdir_flag_spec='-L$libdir'
17196 hardcode_minus_L=yes
17197 allow_undefined_flag=unsupported
17198 shrext_cmds=.dll
17199 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
17200 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
17201 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
17202 $ECHO EXPORTS >> $output_objdir/$libname.def~
17203 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
17204 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
17205 emximp -o $lib $output_objdir/$libname.def'
17206 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
17207 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
17208 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
17209 $ECHO EXPORTS >> $output_objdir/$libname.def~
17210 prefix_cmds="$SED"~
17211 if test EXPORTS = "`$SED 1q $export_symbols`"; then
17212 prefix_cmds="$prefix_cmds -e 1d";
17213 fi~
17214 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
17215 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
17216 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
17217 emximp -o $lib $output_objdir/$libname.def'
17218 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
17219 enable_shared_with_static_runtimes=yes
17220 file_list_spec='@'
17221 ;;
17222
17223 osf3*)
17224 if test yes = "$GCC"; then
17225 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
17226 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'
17227 else
17228 allow_undefined_flag=' -expect_unresolved \*'
17229 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'
17230 fi
17231 archive_cmds_need_lc='no'
17232 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
17233 hardcode_libdir_separator=:
17234 ;;
17235
17236 osf4* | osf5*) # as osf3* with the addition of -msym flag
17237 if test yes = "$GCC"; then
17238 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
17239 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'
17240 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
17241 else
17242 allow_undefined_flag=' -expect_unresolved \*'
17243 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'
17244 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~
17245 $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'
17246
17247 # Both c and cxx compiler support -rpath directly
17248 hardcode_libdir_flag_spec='-rpath $libdir'
17249 fi
17250 archive_cmds_need_lc='no'
17251 hardcode_libdir_separator=:
17252 ;;
17253
17254 solaris*)
17255 no_undefined_flag=' -z defs'
17256 if test yes = "$GCC"; then
17257 wlarc='$wl'
17258 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
17259 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17260 $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'
17261 else
17262 case `$CC -V 2>&1` in
17263 *"Compilers 5.0"*)
17264 wlarc=''
17265 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
17266 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17267 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
17268 ;;
17269 *)
17270 wlarc='$wl'
17271 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
17272 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17273 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
17274 ;;
17275 esac
17276 fi
17277 hardcode_libdir_flag_spec='-R$libdir'
17278 hardcode_shlibpath_var=no
17279 case $host_os in
17280 solaris2.[0-5] | solaris2.[0-5].*) ;;
17281 *)
17282 # The compiler driver will combine and reorder linker options,
17283 # but understands '-z linker_flag'. GCC discards it without '$wl',
17284 # but is careful enough not to reorder.
17285 # Supported since Solaris 2.6 (maybe 2.5.1?)
17286 if test yes = "$GCC"; then
17287 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
17288 else
17289 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
17290 fi
17291 ;;
17292 esac
17293 link_all_deplibs=yes
17294 ;;
17295
17296 sunos4*)
17297 if test sequent = "$host_vendor"; then
17298 # Use $CC to link under sequent, because it throws in some extra .o
17299 # files that make .init and .fini sections work.
17300 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17301 else
17302 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17303 fi
17304 hardcode_libdir_flag_spec='-L$libdir'
17305 hardcode_direct=yes
17306 hardcode_minus_L=yes
17307 hardcode_shlibpath_var=no
17308 ;;
17309
17310 sysv4)
17311 case $host_vendor in
17312 sni)
17313 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17314 hardcode_direct=yes # is this really true???
17315 ;;
17316 siemens)
17317 ## LD is ld it makes a PLAMLIB
17318 ## CC just makes a GrossModule.
17319 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17320 reload_cmds='$CC -r -o $output$reload_objs'
17321 hardcode_direct=no
17322 ;;
17323 motorola)
17324 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17325 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
17326 ;;
17327 esac
17328 runpath_var='LD_RUN_PATH'
17329 hardcode_shlibpath_var=no
17330 ;;
17331
17332 sysv4.3*)
17333 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17334 hardcode_shlibpath_var=no
17335 export_dynamic_flag_spec='-Bexport'
17336 ;;
17337
17338 sysv4*MP*)
17339 if test -d /usr/nec; then
17340 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17341 hardcode_shlibpath_var=no
17342 runpath_var=LD_RUN_PATH
17343 hardcode_runpath_var=yes
17344 ld_shlibs=yes
17345 fi
17346 ;;
17347
17348 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17349 no_undefined_flag='$wl-z,text'
17350 archive_cmds_need_lc=no
17351 hardcode_shlibpath_var=no
17352 runpath_var='LD_RUN_PATH'
17353
17354 if test yes = "$GCC"; then
17355 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17356 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17357 else
17358 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17359 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17360 fi
17361 ;;
17362
17363 sysv5* | sco3.2v5* | sco5v6*)
17364 # Note: We CANNOT use -z defs as we might desire, because we do not
17365 # link with -lc, and that would cause any symbols used from libc to
17366 # always be unresolved, which means just about no library would
17367 # ever link correctly. If we're not using GNU ld we use -z text
17368 # though, which does catch some bad symbols but isn't as heavy-handed
17369 # as -z defs.
17370 no_undefined_flag='$wl-z,text'
17371 allow_undefined_flag='$wl-z,nodefs'
17372 archive_cmds_need_lc=no
17373 hardcode_shlibpath_var=no
17374 hardcode_libdir_flag_spec='$wl-R,$libdir'
17375 hardcode_libdir_separator=':'
17376 link_all_deplibs=yes
17377 export_dynamic_flag_spec='$wl-Bexport'
17378 runpath_var='LD_RUN_PATH'
17379
17380 if test yes = "$GCC"; then
17381 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17382 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17383 else
17384 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17385 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17386 fi
17387 ;;
17388
17389 uts4*)
17390 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17391 hardcode_libdir_flag_spec='-L$libdir'
17392 hardcode_shlibpath_var=no
17393 ;;
17394
17395 *)
17396 ld_shlibs=no
17397 ;;
17398 esac
17399
17400 if test sni = "$host_vendor"; then
17401 case $host in
17402 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17403 export_dynamic_flag_spec='$wl-Blargedynsym'
17404 ;;
17405 esac
17406 fi
17407 fi
17408
17409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
17410 printf "%s\n" "$ld_shlibs" >&6; }
17411 test no = "$ld_shlibs" && can_build_shared=no
17412
17413 with_gnu_ld=$with_gnu_ld
17414
17415
17416
17417
17418
17419
17420
17421
17422
17423
17424
17425
17426
17427
17428
17429 #
17430 # Do we need to explicitly link libc?
17431 #
17432 case "x$archive_cmds_need_lc" in
17433 x|xyes)
17434 # Assume -lc should be added
17435 archive_cmds_need_lc=yes
17436
17437 if test yes,yes = "$GCC,$enable_shared"; then
17438 case $archive_cmds in
17439 *'~'*)
17440 # FIXME: we may have to deal with multi-command sequences.
17441 ;;
17442 '$CC '*)
17443 # Test whether the compiler implicitly links with -lc since on some
17444 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17445 # to ld, don't add -lc before -lgcc.
17446 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
17447 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
17448 if test ${lt_cv_archive_cmds_need_lc+y}
17449 then :
17450 printf %s "(cached) " >&6
17451 else $as_nop
17452 $RM conftest*
17453 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17454
17455 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17456 (eval $ac_compile) 2>&5
17457 ac_status=$?
17458 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17459 test $ac_status = 0; } 2>conftest.err; then
17460 soname=conftest
17461 lib=conftest
17462 libobjs=conftest.$ac_objext
17463 deplibs=
17464 wl=$lt_prog_compiler_wl
17465 pic_flag=$lt_prog_compiler_pic
17466 compiler_flags=-v
17467 linker_flags=-v
17468 verstring=
17469 output_objdir=.
17470 libname=conftest
17471 lt_save_allow_undefined_flag=$allow_undefined_flag
17472 allow_undefined_flag=
17473 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
17474 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
17475 ac_status=$?
17476 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17477 test $ac_status = 0; }
17478 then
17479 lt_cv_archive_cmds_need_lc=no
17480 else
17481 lt_cv_archive_cmds_need_lc=yes
17482 fi
17483 allow_undefined_flag=$lt_save_allow_undefined_flag
17484 else
17485 cat conftest.err 1>&5
17486 fi
17487 $RM conftest*
17488
17489 fi
17490 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
17491 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
17492 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
17493 ;;
17494 esac
17495 fi
17496 ;;
17497 esac
17498
17499
17500
17501
17502
17503
17504
17505
17506
17507
17508
17509
17510
17511
17512
17513
17514
17515
17516
17517
17518
17519
17520
17521
17522
17523
17524
17525
17526
17527
17528
17529
17530
17531
17532
17533
17534
17535
17536
17537
17538
17539
17540
17541
17542
17543
17544
17545
17546
17547
17548
17549
17550
17551
17552
17553
17554
17555
17556
17557
17558
17559
17560
17561
17562
17563
17564
17565
17566
17567
17568
17569
17570
17571
17572
17573
17574
17575
17576
17577
17578
17579
17580
17581
17582
17583
17584
17585
17586
17587
17588
17589
17590
17591
17592
17593
17594
17595
17596
17597
17598
17599
17600
17601
17602
17603
17604
17605
17606
17607
17608
17609
17610
17611
17612
17613
17614
17615
17616
17617
17618
17619
17620
17621
17622
17623
17624
17625
17626
17627
17628
17629
17630
17631
17632
17633
17634
17635
17636
17637
17638
17639
17640
17641
17642
17643
17644
17645
17646
17647
17648
17649
17650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17651 printf %s "checking dynamic linker characteristics... " >&6; }
17652
17653 if test yes = "$GCC"; then
17654 case $host_os in
17655 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
17656 *) lt_awk_arg='/^libraries:/' ;;
17657 esac
17658 case $host_os in
17659 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
17660 *) lt_sed_strip_eq='s|=/|/|g' ;;
17661 esac
17662 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
17663 case $lt_search_path_spec in
17664 *\;*)
17665 # if the path contains ";" then we assume it to be the separator
17666 # otherwise default to the standard path separator (i.e. ":") - it is
17667 # assumed that no part of a normal pathname contains ";" but that should
17668 # okay in the real world where ";" in dirpaths is itself problematic.
17669 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
17670 ;;
17671 *)
17672 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
17673 ;;
17674 esac
17675 # Ok, now we have the path, separated by spaces, we can step through it
17676 # and add multilib dir if necessary...
17677 lt_tmp_lt_search_path_spec=
17678 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
17679 # ...but if some path component already ends with the multilib dir we assume
17680 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
17681 case "$lt_multi_os_dir; $lt_search_path_spec " in
17682 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
17683 lt_multi_os_dir=
17684 ;;
17685 esac
17686 for lt_sys_path in $lt_search_path_spec; do
17687 if test -d "$lt_sys_path$lt_multi_os_dir"; then
17688 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
17689 elif test -n "$lt_multi_os_dir"; then
17690 test -d "$lt_sys_path" && \
17691 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
17692 fi
17693 done
17694 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
17695 BEGIN {RS = " "; FS = "/|\n";} {
17696 lt_foo = "";
17697 lt_count = 0;
17698 for (lt_i = NF; lt_i > 0; lt_i--) {
17699 if ($lt_i != "" && $lt_i != ".") {
17700 if ($lt_i == "..") {
17701 lt_count++;
17702 } else {
17703 if (lt_count == 0) {
17704 lt_foo = "/" $lt_i lt_foo;
17705 } else {
17706 lt_count--;
17707 }
17708 }
17709 }
17710 }
17711 if (lt_foo != "") { lt_freq[lt_foo]++; }
17712 if (lt_freq[lt_foo] == 1) { print lt_foo; }
17713 }'`
17714 # AWK program above erroneously prepends '/' to C:/dos/paths
17715 # for these hosts.
17716 case $host_os in
17717 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
17718 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
17719 esac
17720 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
17721 else
17722 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17723 fi
17724 library_names_spec=
17725 libname_spec='lib$name'
17726 soname_spec=
17727 shrext_cmds=.so
17728 postinstall_cmds=
17729 postuninstall_cmds=
17730 finish_cmds=
17731 finish_eval=
17732 shlibpath_var=
17733 shlibpath_overrides_runpath=unknown
17734 version_type=none
17735 dynamic_linker="$host_os ld.so"
17736 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17737 need_lib_prefix=unknown
17738 hardcode_into_libs=no
17739
17740 # when you set need_version to no, make sure it does not cause -set_version
17741 # flags to be left without arguments
17742 need_version=unknown
17743
17744
17745
17746 case $host_os in
17747 aix3*)
17748 version_type=linux # correct to gnu/linux during the next big refactor
17749 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
17750 shlibpath_var=LIBPATH
17751
17752 # AIX 3 has no versioning support, so we append a major version to the name.
17753 soname_spec='$libname$release$shared_ext$major'
17754 ;;
17755
17756 aix[4-9]*)
17757 version_type=linux # correct to gnu/linux during the next big refactor
17758 need_lib_prefix=no
17759 need_version=no
17760 hardcode_into_libs=yes
17761 if test ia64 = "$host_cpu"; then
17762 # AIX 5 supports IA64
17763 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
17764 shlibpath_var=LD_LIBRARY_PATH
17765 else
17766 # With GCC up to 2.95.x, collect2 would create an import file
17767 # for dependence libraries. The import file would start with
17768 # the line '#! .'. This would cause the generated library to
17769 # depend on '.', always an invalid library. This was fixed in
17770 # development snapshots of GCC prior to 3.0.
17771 case $host_os in
17772 aix4 | aix4.[01] | aix4.[01].*)
17773 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17774 echo ' yes '
17775 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
17776 :
17777 else
17778 can_build_shared=no
17779 fi
17780 ;;
17781 esac
17782 # Using Import Files as archive members, it is possible to support
17783 # filename-based versioning of shared library archives on AIX. While
17784 # this would work for both with and without runtime linking, it will
17785 # prevent static linking of such archives. So we do filename-based
17786 # shared library versioning with .so extension only, which is used
17787 # when both runtime linking and shared linking is enabled.
17788 # Unfortunately, runtime linking may impact performance, so we do
17789 # not want this to be the default eventually. Also, we use the
17790 # versioned .so libs for executables only if there is the -brtl
17791 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
17792 # To allow for filename-based versioning support, we need to create
17793 # libNAME.so.V as an archive file, containing:
17794 # *) an Import File, referring to the versioned filename of the
17795 # archive as well as the shared archive member, telling the
17796 # bitwidth (32 or 64) of that shared object, and providing the
17797 # list of exported symbols of that shared object, eventually
17798 # decorated with the 'weak' keyword
17799 # *) the shared object with the F_LOADONLY flag set, to really avoid
17800 # it being seen by the linker.
17801 # At run time we better use the real file rather than another symlink,
17802 # but for link time we create the symlink libNAME.so -> libNAME.so.V
17803
17804 case $with_aix_soname,$aix_use_runtimelinking in
17805 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
17806 # soname into executable. Probably we can add versioning support to
17807 # collect2, so additional links can be useful in future.
17808 aix,yes) # traditional libtool
17809 dynamic_linker='AIX unversionable lib.so'
17810 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17811 # instead of lib<name>.a to let people know that these are not
17812 # typical AIX shared libraries.
17813 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17814 ;;
17815 aix,no) # traditional AIX only
17816 dynamic_linker='AIX lib.a(lib.so.V)'
17817 # We preserve .a as extension for shared libraries through AIX4.2
17818 # and later when we are not doing run time linking.
17819 library_names_spec='$libname$release.a $libname.a'
17820 soname_spec='$libname$release$shared_ext$major'
17821 ;;
17822 svr4,*) # full svr4 only
17823 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
17824 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
17825 # We do not specify a path in Import Files, so LIBPATH fires.
17826 shlibpath_overrides_runpath=yes
17827 ;;
17828 *,yes) # both, prefer svr4
17829 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
17830 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
17831 # unpreferred sharedlib libNAME.a needs extra handling
17832 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"'
17833 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"'
17834 # We do not specify a path in Import Files, so LIBPATH fires.
17835 shlibpath_overrides_runpath=yes
17836 ;;
17837 *,no) # both, prefer aix
17838 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
17839 library_names_spec='$libname$release.a $libname.a'
17840 soname_spec='$libname$release$shared_ext$major'
17841 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
17842 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)'
17843 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"'
17844 ;;
17845 esac
17846 shlibpath_var=LIBPATH
17847 fi
17848 ;;
17849
17850 amigaos*)
17851 case $host_cpu in
17852 powerpc)
17853 # Since July 2007 AmigaOS4 officially supports .so libraries.
17854 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17855 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17856 ;;
17857 m68k)
17858 library_names_spec='$libname.ixlibrary $libname.a'
17859 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17860 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'
17861 ;;
17862 esac
17863 ;;
17864
17865 beos*)
17866 library_names_spec='$libname$shared_ext'
17867 dynamic_linker="$host_os ld.so"
17868 shlibpath_var=LIBRARY_PATH
17869 ;;
17870
17871 bsdi[45]*)
17872 version_type=linux # correct to gnu/linux during the next big refactor
17873 need_version=no
17874 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17875 soname_spec='$libname$release$shared_ext$major'
17876 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17877 shlibpath_var=LD_LIBRARY_PATH
17878 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17879 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17880 # the default ld.so.conf also contains /usr/contrib/lib and
17881 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17882 # libtool to hard-code these into programs
17883 ;;
17884
17885 cygwin* | mingw* | pw32* | cegcc*)
17886 version_type=windows
17887 shrext_cmds=.dll
17888 need_version=no
17889 need_lib_prefix=no
17890
17891 case $GCC,$cc_basename in
17892 yes,*)
17893 # gcc
17894 library_names_spec='$libname.dll.a'
17895 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17896 postinstall_cmds='base_file=`basename \$file`~
17897 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
17898 dldir=$destdir/`dirname \$dlpath`~
17899 test -d \$dldir || mkdir -p \$dldir~
17900 $install_prog $dir/$dlname \$dldir/$dlname~
17901 chmod a+x \$dldir/$dlname~
17902 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17903 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17904 fi'
17905 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17906 dlpath=$dir/\$dldll~
17907 $RM \$dlpath'
17908 shlibpath_overrides_runpath=yes
17909
17910 case $host_os in
17911 cygwin*)
17912 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17913 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17914
17915 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
17916 ;;
17917 mingw* | cegcc*)
17918 # MinGW DLLs use traditional 'lib' prefix
17919 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17920 ;;
17921 pw32*)
17922 # pw32 DLLs use 'pw' prefix rather than 'lib'
17923 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17924 ;;
17925 esac
17926 dynamic_linker='Win32 ld.exe'
17927 ;;
17928
17929 *,cl* | *,icl*)
17930 # Native MSVC or ICC
17931 libname_spec='$name'
17932 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17933 library_names_spec='$libname.dll.lib'
17934
17935 case $build_os in
17936 mingw*)
17937 sys_lib_search_path_spec=
17938 lt_save_ifs=$IFS
17939 IFS=';'
17940 for lt_path in $LIB
17941 do
17942 IFS=$lt_save_ifs
17943 # Let DOS variable expansion print the short 8.3 style file name.
17944 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
17945 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
17946 done
17947 IFS=$lt_save_ifs
17948 # Convert to MSYS style.
17949 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
17950 ;;
17951 cygwin*)
17952 # Convert to unix form, then to dos form, then back to unix form
17953 # but this time dos style (no spaces!) so that the unix form looks
17954 # like /cygdrive/c/PROGRA~1:/cygdr...
17955 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
17956 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
17957 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17958 ;;
17959 *)
17960 sys_lib_search_path_spec=$LIB
17961 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
17962 # It is most probably a Windows format PATH.
17963 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17964 else
17965 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17966 fi
17967 # FIXME: find the short name or the path components, as spaces are
17968 # common. (e.g. "Program Files" -> "PROGRA~1")
17969 ;;
17970 esac
17971
17972 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17973 postinstall_cmds='base_file=`basename \$file`~
17974 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
17975 dldir=$destdir/`dirname \$dlpath`~
17976 test -d \$dldir || mkdir -p \$dldir~
17977 $install_prog $dir/$dlname \$dldir/$dlname'
17978 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17979 dlpath=$dir/\$dldll~
17980 $RM \$dlpath'
17981 shlibpath_overrides_runpath=yes
17982 dynamic_linker='Win32 link.exe'
17983 ;;
17984
17985 *)
17986 # Assume MSVC and ICC wrapper
17987 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
17988 dynamic_linker='Win32 ld.exe'
17989 ;;
17990 esac
17991 # FIXME: first we should search . and the directory the executable is in
17992 shlibpath_var=PATH
17993 ;;
17994
17995 darwin* | rhapsody*)
17996 dynamic_linker="$host_os dyld"
17997 version_type=darwin
17998 need_lib_prefix=no
17999 need_version=no
18000 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
18001 soname_spec='$libname$release$major$shared_ext'
18002 shlibpath_overrides_runpath=yes
18003 shlibpath_var=DYLD_LIBRARY_PATH
18004 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18005
18006 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
18007 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18008 ;;
18009
18010 dgux*)
18011 version_type=linux # correct to gnu/linux during the next big refactor
18012 need_lib_prefix=no
18013 need_version=no
18014 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18015 soname_spec='$libname$release$shared_ext$major'
18016 shlibpath_var=LD_LIBRARY_PATH
18017 ;;
18018
18019 freebsd* | dragonfly* | midnightbsd*)
18020 # DragonFly does not have aout. When/if they implement a new
18021 # versioning mechanism, adjust this.
18022 if test -x /usr/bin/objformat; then
18023 objformat=`/usr/bin/objformat`
18024 else
18025 case $host_os in
18026 freebsd[23].*) objformat=aout ;;
18027 *) objformat=elf ;;
18028 esac
18029 fi
18030 version_type=freebsd-$objformat
18031 case $version_type in
18032 freebsd-elf*)
18033 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18034 soname_spec='$libname$release$shared_ext$major'
18035 need_version=no
18036 need_lib_prefix=no
18037 ;;
18038 freebsd-*)
18039 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
18040 need_version=yes
18041 ;;
18042 esac
18043 shlibpath_var=LD_LIBRARY_PATH
18044 case $host_os in
18045 freebsd2.*)
18046 shlibpath_overrides_runpath=yes
18047 ;;
18048 freebsd3.[01]* | freebsdelf3.[01]*)
18049 shlibpath_overrides_runpath=yes
18050 hardcode_into_libs=yes
18051 ;;
18052 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18053 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18054 shlibpath_overrides_runpath=no
18055 hardcode_into_libs=yes
18056 ;;
18057 *) # from 4.6 on, and DragonFly
18058 shlibpath_overrides_runpath=yes
18059 hardcode_into_libs=yes
18060 ;;
18061 esac
18062 ;;
18063
18064 haiku*)
18065 version_type=linux # correct to gnu/linux during the next big refactor
18066 need_lib_prefix=no
18067 need_version=no
18068 dynamic_linker="$host_os runtime_loader"
18069 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18070 soname_spec='$libname$release$shared_ext$major'
18071 shlibpath_var=LIBRARY_PATH
18072 shlibpath_overrides_runpath=no
18073 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
18074 hardcode_into_libs=yes
18075 ;;
18076
18077 hpux9* | hpux10* | hpux11*)
18078 # Give a soname corresponding to the major version so that dld.sl refuses to
18079 # link against other versions.
18080 version_type=sunos
18081 need_lib_prefix=no
18082 need_version=no
18083 case $host_cpu in
18084 ia64*)
18085 shrext_cmds='.so'
18086 hardcode_into_libs=yes
18087 dynamic_linker="$host_os dld.so"
18088 shlibpath_var=LD_LIBRARY_PATH
18089 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18090 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18091 soname_spec='$libname$release$shared_ext$major'
18092 if test 32 = "$HPUX_IA64_MODE"; then
18093 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18094 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
18095 else
18096 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18097 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
18098 fi
18099 ;;
18100 hppa*64*)
18101 shrext_cmds='.sl'
18102 hardcode_into_libs=yes
18103 dynamic_linker="$host_os dld.sl"
18104 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18105 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18106 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18107 soname_spec='$libname$release$shared_ext$major'
18108 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18109 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18110 ;;
18111 *)
18112 shrext_cmds='.sl'
18113 dynamic_linker="$host_os dld.sl"
18114 shlibpath_var=SHLIB_PATH
18115 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18116 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18117 soname_spec='$libname$release$shared_ext$major'
18118 ;;
18119 esac
18120 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
18121 postinstall_cmds='chmod 555 $lib'
18122 # or fails outright, so override atomically:
18123 install_override_mode=555
18124 ;;
18125
18126 interix[3-9]*)
18127 version_type=linux # correct to gnu/linux during the next big refactor
18128 need_lib_prefix=no
18129 need_version=no
18130 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18131 soname_spec='$libname$release$shared_ext$major'
18132 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18133 shlibpath_var=LD_LIBRARY_PATH
18134 shlibpath_overrides_runpath=no
18135 hardcode_into_libs=yes
18136 ;;
18137
18138 irix5* | irix6* | nonstopux*)
18139 case $host_os in
18140 nonstopux*) version_type=nonstopux ;;
18141 *)
18142 if test yes = "$lt_cv_prog_gnu_ld"; then
18143 version_type=linux # correct to gnu/linux during the next big refactor
18144 else
18145 version_type=irix
18146 fi ;;
18147 esac
18148 need_lib_prefix=no
18149 need_version=no
18150 soname_spec='$libname$release$shared_ext$major'
18151 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
18152 case $host_os in
18153 irix5* | nonstopux*)
18154 libsuff= shlibsuff=
18155 ;;
18156 *)
18157 case $LD in # libtool.m4 will add one of these switches to LD
18158 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18159 libsuff= shlibsuff= libmagic=32-bit;;
18160 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18161 libsuff=32 shlibsuff=N32 libmagic=N32;;
18162 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18163 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18164 *) libsuff= shlibsuff= libmagic=never-match;;
18165 esac
18166 ;;
18167 esac
18168 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18169 shlibpath_overrides_runpath=no
18170 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
18171 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
18172 hardcode_into_libs=yes
18173 ;;
18174
18175 # No shared lib support for Linux oldld, aout, or coff.
18176 linux*oldld* | linux*aout* | linux*coff*)
18177 dynamic_linker=no
18178 ;;
18179
18180 linux*android*)
18181 version_type=none # Android doesn't support versioned libraries.
18182 need_lib_prefix=no
18183 need_version=no
18184 library_names_spec='$libname$release$shared_ext'
18185 soname_spec='$libname$release$shared_ext'
18186 finish_cmds=
18187 shlibpath_var=LD_LIBRARY_PATH
18188 shlibpath_overrides_runpath=yes
18189
18190 # This implies no fast_install, which is unacceptable.
18191 # Some rework will be needed to allow for fast_install
18192 # before this can be enabled.
18193 hardcode_into_libs=yes
18194
18195 dynamic_linker='Android linker'
18196 # Don't embed -rpath directories since the linker doesn't support them.
18197 hardcode_libdir_flag_spec='-L$libdir'
18198 ;;
18199
18200 # This must be glibc/ELF.
18201 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
18202 version_type=linux # correct to gnu/linux during the next big refactor
18203 need_lib_prefix=no
18204 need_version=no
18205 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18206 soname_spec='$libname$release$shared_ext$major'
18207 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18208 shlibpath_var=LD_LIBRARY_PATH
18209 shlibpath_overrides_runpath=no
18210
18211 # Some binutils ld are patched to set DT_RUNPATH
18212 if test ${lt_cv_shlibpath_overrides_runpath+y}
18213 then :
18214 printf %s "(cached) " >&6
18215 else $as_nop
18216 lt_cv_shlibpath_overrides_runpath=no
18217 save_LDFLAGS=$LDFLAGS
18218 save_libdir=$libdir
18219 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
18220 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
18221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18222 /* end confdefs.h. */
18223
18224 int
18225 main (void)
18226 {
18227
18228 ;
18229 return 0;
18230 }
18231 _ACEOF
18232 if ac_fn_c_try_link "$LINENO"
18233 then :
18234 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
18235 then :
18236 lt_cv_shlibpath_overrides_runpath=yes
18237 fi
18238 fi
18239 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18240 conftest$ac_exeext conftest.$ac_ext
18241 LDFLAGS=$save_LDFLAGS
18242 libdir=$save_libdir
18243
18244 fi
18245
18246 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
18247
18248 # This implies no fast_install, which is unacceptable.
18249 # Some rework will be needed to allow for fast_install
18250 # before this can be enabled.
18251 hardcode_into_libs=yes
18252
18253 # Ideally, we could use ldconfig to report *all* directores which are
18254 # searched for libraries, however this is still not possible. Aside from not
18255 # being certain /sbin/ldconfig is available, command
18256 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
18257 # even though it is searched at run-time. Try to do the best guess by
18258 # appending ld.so.conf contents (and includes) to the search path.
18259 if test -f /etc/ld.so.conf; then
18260 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' ' '`
18261 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18262 fi
18263
18264 # We used to test for /lib/ld.so.1 and disable shared libraries on
18265 # powerpc, because MkLinux only supported shared libraries with the
18266 # GNU dynamic linker. Since this was broken with cross compilers,
18267 # most powerpc-linux boxes support dynamic linking these days and
18268 # people can always --disable-shared, the test was removed, and we
18269 # assume the GNU/Linux dynamic linker is in use.
18270 dynamic_linker='GNU/Linux ld.so'
18271 ;;
18272
18273 netbsd*)
18274 version_type=sunos
18275 need_lib_prefix=no
18276 need_version=no
18277 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18278 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
18279 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18280 dynamic_linker='NetBSD (a.out) ld.so'
18281 else
18282 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18283 soname_spec='$libname$release$shared_ext$major'
18284 dynamic_linker='NetBSD ld.elf_so'
18285 fi
18286 shlibpath_var=LD_LIBRARY_PATH
18287 shlibpath_overrides_runpath=yes
18288 hardcode_into_libs=yes
18289 ;;
18290
18291 newsos6)
18292 version_type=linux # correct to gnu/linux during the next big refactor
18293 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18294 shlibpath_var=LD_LIBRARY_PATH
18295 shlibpath_overrides_runpath=yes
18296 ;;
18297
18298 *nto* | *qnx*)
18299 version_type=qnx
18300 need_lib_prefix=no
18301 need_version=no
18302 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18303 soname_spec='$libname$release$shared_ext$major'
18304 shlibpath_var=LD_LIBRARY_PATH
18305 shlibpath_overrides_runpath=no
18306 hardcode_into_libs=yes
18307 dynamic_linker='ldqnx.so'
18308 ;;
18309
18310 openbsd* | bitrig*)
18311 version_type=sunos
18312 sys_lib_dlsearch_path_spec=/usr/lib
18313 need_lib_prefix=no
18314 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
18315 need_version=no
18316 else
18317 need_version=yes
18318 fi
18319 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
18320 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18321 shlibpath_var=LD_LIBRARY_PATH
18322 shlibpath_overrides_runpath=yes
18323 ;;
18324
18325 os2*)
18326 libname_spec='$name'
18327 version_type=windows
18328 shrext_cmds=.dll
18329 need_version=no
18330 need_lib_prefix=no
18331 # OS/2 can only load a DLL with a base name of 8 characters or less.
18332 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
18333 v=$($ECHO $release$versuffix | tr -d .-);
18334 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
18335 $ECHO $n$v`$shared_ext'
18336 library_names_spec='${libname}_dll.$libext'
18337 dynamic_linker='OS/2 ld.exe'
18338 shlibpath_var=BEGINLIBPATH
18339 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18340 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18341 postinstall_cmds='base_file=`basename \$file`~
18342 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
18343 dldir=$destdir/`dirname \$dlpath`~
18344 test -d \$dldir || mkdir -p \$dldir~
18345 $install_prog $dir/$dlname \$dldir/$dlname~
18346 chmod a+x \$dldir/$dlname~
18347 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
18348 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
18349 fi'
18350 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
18351 dlpath=$dir/\$dldll~
18352 $RM \$dlpath'
18353 ;;
18354
18355 osf3* | osf4* | osf5*)
18356 version_type=osf
18357 need_lib_prefix=no
18358 need_version=no
18359 soname_spec='$libname$release$shared_ext$major'
18360 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18361 shlibpath_var=LD_LIBRARY_PATH
18362 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18363 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18364 ;;
18365
18366 rdos*)
18367 dynamic_linker=no
18368 ;;
18369
18370 solaris*)
18371 version_type=linux # correct to gnu/linux during the next big refactor
18372 need_lib_prefix=no
18373 need_version=no
18374 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18375 soname_spec='$libname$release$shared_ext$major'
18376 shlibpath_var=LD_LIBRARY_PATH
18377 shlibpath_overrides_runpath=yes
18378 hardcode_into_libs=yes
18379 # ldd complains unless libraries are executable
18380 postinstall_cmds='chmod +x $lib'
18381 ;;
18382
18383 sunos4*)
18384 version_type=sunos
18385 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
18386 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18387 shlibpath_var=LD_LIBRARY_PATH
18388 shlibpath_overrides_runpath=yes
18389 if test yes = "$with_gnu_ld"; then
18390 need_lib_prefix=no
18391 fi
18392 need_version=yes
18393 ;;
18394
18395 sysv4 | sysv4.3*)
18396 version_type=linux # correct to gnu/linux during the next big refactor
18397 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18398 soname_spec='$libname$release$shared_ext$major'
18399 shlibpath_var=LD_LIBRARY_PATH
18400 case $host_vendor in
18401 sni)
18402 shlibpath_overrides_runpath=no
18403 need_lib_prefix=no
18404 runpath_var=LD_RUN_PATH
18405 ;;
18406 siemens)
18407 need_lib_prefix=no
18408 ;;
18409 motorola)
18410 need_lib_prefix=no
18411 need_version=no
18412 shlibpath_overrides_runpath=no
18413 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18414 ;;
18415 esac
18416 ;;
18417
18418 sysv4*MP*)
18419 if test -d /usr/nec; then
18420 version_type=linux # correct to gnu/linux during the next big refactor
18421 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
18422 soname_spec='$libname$shared_ext.$major'
18423 shlibpath_var=LD_LIBRARY_PATH
18424 fi
18425 ;;
18426
18427 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18428 version_type=sco
18429 need_lib_prefix=no
18430 need_version=no
18431 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
18432 soname_spec='$libname$release$shared_ext$major'
18433 shlibpath_var=LD_LIBRARY_PATH
18434 shlibpath_overrides_runpath=yes
18435 hardcode_into_libs=yes
18436 if test yes = "$with_gnu_ld"; then
18437 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18438 else
18439 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18440 case $host_os in
18441 sco3.2v5*)
18442 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18443 ;;
18444 esac
18445 fi
18446 sys_lib_dlsearch_path_spec='/usr/lib'
18447 ;;
18448
18449 tpf*)
18450 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
18451 version_type=linux # correct to gnu/linux during the next big refactor
18452 need_lib_prefix=no
18453 need_version=no
18454 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18455 shlibpath_var=LD_LIBRARY_PATH
18456 shlibpath_overrides_runpath=no
18457 hardcode_into_libs=yes
18458 ;;
18459
18460 uts4*)
18461 version_type=linux # correct to gnu/linux during the next big refactor
18462 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18463 soname_spec='$libname$release$shared_ext$major'
18464 shlibpath_var=LD_LIBRARY_PATH
18465 ;;
18466
18467 *)
18468 dynamic_linker=no
18469 ;;
18470 esac
18471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
18472 printf "%s\n" "$dynamic_linker" >&6; }
18473 test no = "$dynamic_linker" && can_build_shared=no
18474
18475 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18476 if test yes = "$GCC"; then
18477 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18478 fi
18479
18480 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
18481 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
18482 fi
18483
18484 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
18485 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
18486 fi
18487
18488 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
18489 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
18490
18491 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
18492 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
18493
18494 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
18495 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
18496
18497
18498
18499
18500
18501
18502
18503
18504
18505
18506
18507
18508
18509
18510
18511
18512
18513
18514
18515
18516
18517
18518
18519
18520
18521
18522
18523
18524
18525
18526
18527
18528
18529
18530
18531
18532
18533
18534
18535
18536
18537
18538
18539
18540
18541
18542
18543
18544
18545
18546
18547
18548
18549
18550
18551
18552
18553
18554
18555
18556
18557
18558
18559
18560
18561
18562
18563
18564
18565
18566
18567
18568
18569
18570
18571
18572
18573
18574
18575
18576
18577
18578
18579
18580
18581
18582
18583
18584
18585
18586
18587
18588
18589
18590
18591
18592
18593 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
18594 printf %s "checking how to hardcode library paths into programs... " >&6; }
18595 hardcode_action=
18596 if test -n "$hardcode_libdir_flag_spec" ||
18597 test -n "$runpath_var" ||
18598 test yes = "$hardcode_automatic"; then
18599
18600 # We can hardcode non-existent directories.
18601 if test no != "$hardcode_direct" &&
18602 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18603 # have to relink, otherwise we might link with an installed library
18604 # when we should be linking with a yet-to-be-installed one
18605 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
18606 test no != "$hardcode_minus_L"; then
18607 # Linking always hardcodes the temporary library directory.
18608 hardcode_action=relink
18609 else
18610 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18611 hardcode_action=immediate
18612 fi
18613 else
18614 # We cannot hardcode anything, or else we can only hardcode existing
18615 # directories.
18616 hardcode_action=unsupported
18617 fi
18618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
18619 printf "%s\n" "$hardcode_action" >&6; }
18620
18621 if test relink = "$hardcode_action" ||
18622 test yes = "$inherit_rpath"; then
18623 # Fast installation is not supported
18624 enable_fast_install=no
18625 elif test yes = "$shlibpath_overrides_runpath" ||
18626 test no = "$enable_shared"; then
18627 # Fast installation is not necessary
18628 enable_fast_install=needless
18629 fi
18630
18631
18632
18633
18634
18635
18636 if test yes != "$enable_dlopen"; then
18637 enable_dlopen=unknown
18638 enable_dlopen_self=unknown
18639 enable_dlopen_self_static=unknown
18640 else
18641 lt_cv_dlopen=no
18642 lt_cv_dlopen_libs=
18643
18644 case $host_os in
18645 beos*)
18646 lt_cv_dlopen=load_add_on
18647 lt_cv_dlopen_libs=
18648 lt_cv_dlopen_self=yes
18649 ;;
18650
18651 mingw* | pw32* | cegcc*)
18652 lt_cv_dlopen=LoadLibrary
18653 lt_cv_dlopen_libs=
18654 ;;
18655
18656 cygwin*)
18657 lt_cv_dlopen=dlopen
18658 lt_cv_dlopen_libs=
18659 ;;
18660
18661 darwin*)
18662 # if libdl is installed we need to link against it
18663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
18664 printf %s "checking for dlopen in -ldl... " >&6; }
18665 if test ${ac_cv_lib_dl_dlopen+y}
18666 then :
18667 printf %s "(cached) " >&6
18668 else $as_nop
18669 ac_check_lib_save_LIBS=$LIBS
18670 LIBS="-ldl $LIBS"
18671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18672 /* end confdefs.h. */
18673
18674 /* Override any GCC internal prototype to avoid an error.
18675 Use char because int might match the return type of a GCC
18676 builtin and then its argument prototype would still apply. */
18677 char dlopen ();
18678 int
18679 main (void)
18680 {
18681 return dlopen ();
18682 ;
18683 return 0;
18684 }
18685 _ACEOF
18686 if ac_fn_c_try_link "$LINENO"
18687 then :
18688 ac_cv_lib_dl_dlopen=yes
18689 else $as_nop
18690 ac_cv_lib_dl_dlopen=no
18691 fi
18692 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18693 conftest$ac_exeext conftest.$ac_ext
18694 LIBS=$ac_check_lib_save_LIBS
18695 fi
18696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18697 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
18698 if test "x$ac_cv_lib_dl_dlopen" = xyes
18699 then :
18700 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
18701 else $as_nop
18702
18703 lt_cv_dlopen=dyld
18704 lt_cv_dlopen_libs=
18705 lt_cv_dlopen_self=yes
18706
18707 fi
18708
18709 ;;
18710
18711 tpf*)
18712 # Don't try to run any link tests for TPF. We know it's impossible
18713 # because TPF is a cross-compiler, and we know how we open DSOs.
18714 lt_cv_dlopen=dlopen
18715 lt_cv_dlopen_libs=
18716 lt_cv_dlopen_self=no
18717 ;;
18718
18719 *)
18720 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
18721 if test "x$ac_cv_func_shl_load" = xyes
18722 then :
18723 lt_cv_dlopen=shl_load
18724 else $as_nop
18725 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
18726 printf %s "checking for shl_load in -ldld... " >&6; }
18727 if test ${ac_cv_lib_dld_shl_load+y}
18728 then :
18729 printf %s "(cached) " >&6
18730 else $as_nop
18731 ac_check_lib_save_LIBS=$LIBS
18732 LIBS="-ldld $LIBS"
18733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18734 /* end confdefs.h. */
18735
18736 /* Override any GCC internal prototype to avoid an error.
18737 Use char because int might match the return type of a GCC
18738 builtin and then its argument prototype would still apply. */
18739 char shl_load ();
18740 int
18741 main (void)
18742 {
18743 return shl_load ();
18744 ;
18745 return 0;
18746 }
18747 _ACEOF
18748 if ac_fn_c_try_link "$LINENO"
18749 then :
18750 ac_cv_lib_dld_shl_load=yes
18751 else $as_nop
18752 ac_cv_lib_dld_shl_load=no
18753 fi
18754 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18755 conftest$ac_exeext conftest.$ac_ext
18756 LIBS=$ac_check_lib_save_LIBS
18757 fi
18758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
18759 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
18760 if test "x$ac_cv_lib_dld_shl_load" = xyes
18761 then :
18762 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
18763 else $as_nop
18764 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
18765 if test "x$ac_cv_func_dlopen" = xyes
18766 then :
18767 lt_cv_dlopen=dlopen
18768 else $as_nop
18769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
18770 printf %s "checking for dlopen in -ldl... " >&6; }
18771 if test ${ac_cv_lib_dl_dlopen+y}
18772 then :
18773 printf %s "(cached) " >&6
18774 else $as_nop
18775 ac_check_lib_save_LIBS=$LIBS
18776 LIBS="-ldl $LIBS"
18777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18778 /* end confdefs.h. */
18779
18780 /* Override any GCC internal prototype to avoid an error.
18781 Use char because int might match the return type of a GCC
18782 builtin and then its argument prototype would still apply. */
18783 char dlopen ();
18784 int
18785 main (void)
18786 {
18787 return dlopen ();
18788 ;
18789 return 0;
18790 }
18791 _ACEOF
18792 if ac_fn_c_try_link "$LINENO"
18793 then :
18794 ac_cv_lib_dl_dlopen=yes
18795 else $as_nop
18796 ac_cv_lib_dl_dlopen=no
18797 fi
18798 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18799 conftest$ac_exeext conftest.$ac_ext
18800 LIBS=$ac_check_lib_save_LIBS
18801 fi
18802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18803 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
18804 if test "x$ac_cv_lib_dl_dlopen" = xyes
18805 then :
18806 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
18807 else $as_nop
18808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
18809 printf %s "checking for dlopen in -lsvld... " >&6; }
18810 if test ${ac_cv_lib_svld_dlopen+y}
18811 then :
18812 printf %s "(cached) " >&6
18813 else $as_nop
18814 ac_check_lib_save_LIBS=$LIBS
18815 LIBS="-lsvld $LIBS"
18816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18817 /* end confdefs.h. */
18818
18819 /* Override any GCC internal prototype to avoid an error.
18820 Use char because int might match the return type of a GCC
18821 builtin and then its argument prototype would still apply. */
18822 char dlopen ();
18823 int
18824 main (void)
18825 {
18826 return dlopen ();
18827 ;
18828 return 0;
18829 }
18830 _ACEOF
18831 if ac_fn_c_try_link "$LINENO"
18832 then :
18833 ac_cv_lib_svld_dlopen=yes
18834 else $as_nop
18835 ac_cv_lib_svld_dlopen=no
18836 fi
18837 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18838 conftest$ac_exeext conftest.$ac_ext
18839 LIBS=$ac_check_lib_save_LIBS
18840 fi
18841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
18842 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
18843 if test "x$ac_cv_lib_svld_dlopen" = xyes
18844 then :
18845 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
18846 else $as_nop
18847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
18848 printf %s "checking for dld_link in -ldld... " >&6; }
18849 if test ${ac_cv_lib_dld_dld_link+y}
18850 then :
18851 printf %s "(cached) " >&6
18852 else $as_nop
18853 ac_check_lib_save_LIBS=$LIBS
18854 LIBS="-ldld $LIBS"
18855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18856 /* end confdefs.h. */
18857
18858 /* Override any GCC internal prototype to avoid an error.
18859 Use char because int might match the return type of a GCC
18860 builtin and then its argument prototype would still apply. */
18861 char dld_link ();
18862 int
18863 main (void)
18864 {
18865 return dld_link ();
18866 ;
18867 return 0;
18868 }
18869 _ACEOF
18870 if ac_fn_c_try_link "$LINENO"
18871 then :
18872 ac_cv_lib_dld_dld_link=yes
18873 else $as_nop
18874 ac_cv_lib_dld_dld_link=no
18875 fi
18876 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18877 conftest$ac_exeext conftest.$ac_ext
18878 LIBS=$ac_check_lib_save_LIBS
18879 fi
18880 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
18881 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
18882 if test "x$ac_cv_lib_dld_dld_link" = xyes
18883 then :
18884 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
18885 fi
18886
18887
18888 fi
18889
18890
18891 fi
18892
18893
18894 fi
18895
18896
18897 fi
18898
18899
18900 fi
18901
18902 ;;
18903 esac
18904
18905 if test no = "$lt_cv_dlopen"; then
18906 enable_dlopen=no
18907 else
18908 enable_dlopen=yes
18909 fi
18910
18911 case $lt_cv_dlopen in
18912 dlopen)
18913 save_CPPFLAGS=$CPPFLAGS
18914 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18915
18916 save_LDFLAGS=$LDFLAGS
18917 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18918
18919 save_LIBS=$LIBS
18920 LIBS="$lt_cv_dlopen_libs $LIBS"
18921
18922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
18923 printf %s "checking whether a program can dlopen itself... " >&6; }
18924 if test ${lt_cv_dlopen_self+y}
18925 then :
18926 printf %s "(cached) " >&6
18927 else $as_nop
18928 if test yes = "$cross_compiling"; then :
18929 lt_cv_dlopen_self=cross
18930 else
18931 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18932 lt_status=$lt_dlunknown
18933 cat > conftest.$ac_ext <<_LT_EOF
18934 #line $LINENO "configure"
18935 #include "confdefs.h"
18936
18937 #if HAVE_DLFCN_H
18938 #include <dlfcn.h>
18939 #endif
18940
18941 #include <stdio.h>
18942
18943 #ifdef RTLD_GLOBAL
18944 # define LT_DLGLOBAL RTLD_GLOBAL
18945 #else
18946 # ifdef DL_GLOBAL
18947 # define LT_DLGLOBAL DL_GLOBAL
18948 # else
18949 # define LT_DLGLOBAL 0
18950 # endif
18951 #endif
18952
18953 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18954 find out it does not work in some platform. */
18955 #ifndef LT_DLLAZY_OR_NOW
18956 # ifdef RTLD_LAZY
18957 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18958 # else
18959 # ifdef DL_LAZY
18960 # define LT_DLLAZY_OR_NOW DL_LAZY
18961 # else
18962 # ifdef RTLD_NOW
18963 # define LT_DLLAZY_OR_NOW RTLD_NOW
18964 # else
18965 # ifdef DL_NOW
18966 # define LT_DLLAZY_OR_NOW DL_NOW
18967 # else
18968 # define LT_DLLAZY_OR_NOW 0
18969 # endif
18970 # endif
18971 # endif
18972 # endif
18973 #endif
18974
18975 /* When -fvisibility=hidden is used, assume the code has been annotated
18976 correspondingly for the symbols needed. */
18977 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18978 int fnord () __attribute__((visibility("default")));
18979 #endif
18980
18981 int fnord () { return 42; }
18982 int main ()
18983 {
18984 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18985 int status = $lt_dlunknown;
18986
18987 if (self)
18988 {
18989 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18990 else
18991 {
18992 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18993 else puts (dlerror ());
18994 }
18995 /* dlclose (self); */
18996 }
18997 else
18998 puts (dlerror ());
18999
19000 return status;
19001 }
19002 _LT_EOF
19003 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
19004 (eval $ac_link) 2>&5
19005 ac_status=$?
19006 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19007 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
19008 (./conftest; exit; ) >&5 2>/dev/null
19009 lt_status=$?
19010 case x$lt_status in
19011 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
19012 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
19013 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
19014 esac
19015 else :
19016 # compilation failed
19017 lt_cv_dlopen_self=no
19018 fi
19019 fi
19020 rm -fr conftest*
19021
19022
19023 fi
19024 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
19025 printf "%s\n" "$lt_cv_dlopen_self" >&6; }
19026
19027 if test yes = "$lt_cv_dlopen_self"; then
19028 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
19029 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
19030 printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
19031 if test ${lt_cv_dlopen_self_static+y}
19032 then :
19033 printf %s "(cached) " >&6
19034 else $as_nop
19035 if test yes = "$cross_compiling"; then :
19036 lt_cv_dlopen_self_static=cross
19037 else
19038 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19039 lt_status=$lt_dlunknown
19040 cat > conftest.$ac_ext <<_LT_EOF
19041 #line $LINENO "configure"
19042 #include "confdefs.h"
19043
19044 #if HAVE_DLFCN_H
19045 #include <dlfcn.h>
19046 #endif
19047
19048 #include <stdio.h>
19049
19050 #ifdef RTLD_GLOBAL
19051 # define LT_DLGLOBAL RTLD_GLOBAL
19052 #else
19053 # ifdef DL_GLOBAL
19054 # define LT_DLGLOBAL DL_GLOBAL
19055 # else
19056 # define LT_DLGLOBAL 0
19057 # endif
19058 #endif
19059
19060 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19061 find out it does not work in some platform. */
19062 #ifndef LT_DLLAZY_OR_NOW
19063 # ifdef RTLD_LAZY
19064 # define LT_DLLAZY_OR_NOW RTLD_LAZY
19065 # else
19066 # ifdef DL_LAZY
19067 # define LT_DLLAZY_OR_NOW DL_LAZY
19068 # else
19069 # ifdef RTLD_NOW
19070 # define LT_DLLAZY_OR_NOW RTLD_NOW
19071 # else
19072 # ifdef DL_NOW
19073 # define LT_DLLAZY_OR_NOW DL_NOW
19074 # else
19075 # define LT_DLLAZY_OR_NOW 0
19076 # endif
19077 # endif
19078 # endif
19079 # endif
19080 #endif
19081
19082 /* When -fvisibility=hidden is used, assume the code has been annotated
19083 correspondingly for the symbols needed. */
19084 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
19085 int fnord () __attribute__((visibility("default")));
19086 #endif
19087
19088 int fnord () { return 42; }
19089 int main ()
19090 {
19091 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19092 int status = $lt_dlunknown;
19093
19094 if (self)
19095 {
19096 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
19097 else
19098 {
19099 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19100 else puts (dlerror ());
19101 }
19102 /* dlclose (self); */
19103 }
19104 else
19105 puts (dlerror ());
19106
19107 return status;
19108 }
19109 _LT_EOF
19110 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
19111 (eval $ac_link) 2>&5
19112 ac_status=$?
19113 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19114 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
19115 (./conftest; exit; ) >&5 2>/dev/null
19116 lt_status=$?
19117 case x$lt_status in
19118 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
19119 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
19120 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
19121 esac
19122 else :
19123 # compilation failed
19124 lt_cv_dlopen_self_static=no
19125 fi
19126 fi
19127 rm -fr conftest*
19128
19129
19130 fi
19131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
19132 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
19133 fi
19134
19135 CPPFLAGS=$save_CPPFLAGS
19136 LDFLAGS=$save_LDFLAGS
19137 LIBS=$save_LIBS
19138 ;;
19139 esac
19140
19141 case $lt_cv_dlopen_self in
19142 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
19143 *) enable_dlopen_self=unknown ;;
19144 esac
19145
19146 case $lt_cv_dlopen_self_static in
19147 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
19148 *) enable_dlopen_self_static=unknown ;;
19149 esac
19150 fi
19151
19152
19153
19154
19155
19156
19157
19158
19159
19160
19161
19162
19163
19164
19165
19166
19167
19168 striplib=
19169 old_striplib=
19170 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
19171 printf %s "checking whether stripping libraries is possible... " >&6; }
19172 if test -z "$STRIP"; then
19173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19174 printf "%s\n" "no" >&6; }
19175 else
19176 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
19177 old_striplib="$STRIP --strip-debug"
19178 striplib="$STRIP --strip-unneeded"
19179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19180 printf "%s\n" "yes" >&6; }
19181 else
19182 case $host_os in
19183 darwin*)
19184 # FIXME - insert some real tests, host_os isn't really good enough
19185 striplib="$STRIP -x"
19186 old_striplib="$STRIP -S"
19187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19188 printf "%s\n" "yes" >&6; }
19189 ;;
19190 freebsd*)
19191 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
19192 old_striplib="$STRIP --strip-debug"
19193 striplib="$STRIP --strip-unneeded"
19194 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19195 printf "%s\n" "yes" >&6; }
19196 else
19197 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19198 printf "%s\n" "no" >&6; }
19199 fi
19200 ;;
19201 *)
19202 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19203 printf "%s\n" "no" >&6; }
19204 ;;
19205 esac
19206 fi
19207 fi
19208
19209
19210
19211
19212
19213
19214
19215
19216
19217
19218
19219
19220 # Report what library types will actually be built
19221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
19222 printf %s "checking if libtool supports shared libraries... " >&6; }
19223 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
19224 printf "%s\n" "$can_build_shared" >&6; }
19225
19226 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
19227 printf %s "checking whether to build shared libraries... " >&6; }
19228 test no = "$can_build_shared" && enable_shared=no
19229
19230 # On AIX, shared libraries and static libraries use the same namespace, and
19231 # are all built from PIC.
19232 case $host_os in
19233 aix3*)
19234 test yes = "$enable_shared" && enable_static=no
19235 if test -n "$RANLIB"; then
19236 archive_cmds="$archive_cmds~\$RANLIB \$lib"
19237 postinstall_cmds='$RANLIB $lib'
19238 fi
19239 ;;
19240
19241 aix[4-9]*)
19242 if test ia64 != "$host_cpu"; then
19243 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
19244 yes,aix,yes) ;; # shared object as lib.so file only
19245 yes,svr4,*) ;; # shared object as lib.so archive member only
19246 yes,*) enable_static=no ;; # shared object in lib.a archive as well
19247 esac
19248 fi
19249 ;;
19250 esac
19251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
19252 printf "%s\n" "$enable_shared" >&6; }
19253
19254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
19255 printf %s "checking whether to build static libraries... " >&6; }
19256 # Make sure either enable_shared or enable_static is yes.
19257 test yes = "$enable_shared" || enable_static=yes
19258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
19259 printf "%s\n" "$enable_static" >&6; }
19260
19261
19262
19263
19264 fi
19265 ac_ext=c
19266 ac_cpp='$CPP $CPPFLAGS'
19267 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19268 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19269 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19270
19271 CC=$lt_save_CC
19272
19273
19274
19275
19276
19277
19278
19279
19280
19281
19282
19283
19284
19285
19286
19287 ac_config_commands="$ac_config_commands libtool"
19288
19289
19290
19291
19292 # Only expand once:
19293
19294
19295
19296
19297
19298 # Define a configure option for an alternate module directory
19299
19300 # Check whether --with-xorg-module-dir was given.
19301 if test ${with_xorg_module_dir+y}
19302 then :
19303 withval=$with_xorg_module_dir; moduledir="$withval"
19304 else $as_nop
19305 moduledir="$libdir/xorg/modules"
19306 fi
19307
19308
19309 # Obtain compiler/linker options for the driver dependencies
19310
19311 pkg_failed=no
19312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XORG" >&5
19313 printf %s "checking for XORG... " >&6; }
19314
19315 if test -n "$XORG_CFLAGS"; then
19316 pkg_cv_XORG_CFLAGS="$XORG_CFLAGS"
19317 elif test -n "$PKG_CONFIG"; then
19318 if test -n "$PKG_CONFIG" && \
19319 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.0.99.901 xproto fontsproto \$REQUIRED_MODULES\""; } >&5
19320 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES") 2>&5
19321 ac_status=$?
19322 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19323 test $ac_status = 0; }; then
19324 pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
19325 test "x$?" != "x0" && pkg_failed=yes
19326 else
19327 pkg_failed=yes
19328 fi
19329 else
19330 pkg_failed=untried
19331 fi
19332 if test -n "$XORG_LIBS"; then
19333 pkg_cv_XORG_LIBS="$XORG_LIBS"
19334 elif test -n "$PKG_CONFIG"; then
19335 if test -n "$PKG_CONFIG" && \
19336 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.0.99.901 xproto fontsproto \$REQUIRED_MODULES\""; } >&5
19337 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES") 2>&5
19338 ac_status=$?
19339 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19340 test $ac_status = 0; }; then
19341 pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
19342 test "x$?" != "x0" && pkg_failed=yes
19343 else
19344 pkg_failed=yes
19345 fi
19346 else
19347 pkg_failed=untried
19348 fi
19349
19350
19351
19352 if test $pkg_failed = yes; then
19353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19354 printf "%s\n" "no" >&6; }
19355
19356 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19357 _pkg_short_errors_supported=yes
19358 else
19359 _pkg_short_errors_supported=no
19360 fi
19361 if test $_pkg_short_errors_supported = yes; then
19362 XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>&1`
19363 else
19364 XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>&1`
19365 fi
19366 # Put the nasty error message in config.log where it belongs
19367 echo "$XORG_PKG_ERRORS" >&5
19368
19369 as_fn_error $? "Package requirements (xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES) were not met:
19370
19371 $XORG_PKG_ERRORS
19372
19373 Consider adjusting the PKG_CONFIG_PATH environment variable if you
19374 installed software in a non-standard prefix.
19375
19376 Alternatively, you may set the environment variables XORG_CFLAGS
19377 and XORG_LIBS to avoid the need to call pkg-config.
19378 See the pkg-config man page for more details." "$LINENO" 5
19379 elif test $pkg_failed = untried; then
19380 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19381 printf "%s\n" "no" >&6; }
19382 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19383 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
19384 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
19385 is in your PATH or set the PKG_CONFIG environment variable to the full
19386 path to pkg-config.
19387
19388 Alternatively, you may set the environment variables XORG_CFLAGS
19389 and XORG_LIBS to avoid the need to call pkg-config.
19390 See the pkg-config man page for more details.
19391
19392 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
19393 See \`config.log' for more details" "$LINENO" 5; }
19394 else
19395 XORG_CFLAGS=$pkg_cv_XORG_CFLAGS
19396 XORG_LIBS=$pkg_cv_XORG_LIBS
19397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19398 printf "%s\n" "yes" >&6; }
19399
19400 fi
19401
19402 save_CFLAGS="$CFLAGS"
19403 CFLAGS="$XORG_CFLAGS"
19404 ac_fn_check_decl "$LINENO" "xf86ConfigIsaEntity" "ac_cv_have_decl_xf86ConfigIsaEntity" "#include \"xf86.h\"
19405 " "$ac_c_undeclared_builtin_options" "CFLAGS"
19406 if test "x$ac_cv_have_decl_xf86ConfigIsaEntity" = xyes
19407 then :
19408
19409 printf "%s\n" "#define HAVE_ISA 1" >>confdefs.h
19410
19411 fi
19412 CFLAGS="$save_CFLAGS"
19413
19414 # Checks for libraries.
19415 SAVE_CPPFLAGS="$CPPFLAGS"
19416 CPPFLAGS="$CPPFLAGS $XORG_CFLAGS"
19417 ac_fn_check_decl "$LINENO" "XSERVER_LIBPCIACCESS" "ac_cv_have_decl_XSERVER_LIBPCIACCESS" "#include \"xorg-server.h\"
19418 " "$ac_c_undeclared_builtin_options" "CFLAGS"
19419 if test "x$ac_cv_have_decl_XSERVER_LIBPCIACCESS" = xyes
19420 then :
19421 XSERVER_LIBPCIACCESS=yes
19422 else $as_nop
19423 XSERVER_LIBPCIACCESS=no
19424 fi
19425 CPPFLAGS="$SAVE_CPPFLAGS"
19426
19427 # Check whether --enable-xaa was given.
19428 if test ${enable_xaa+y}
19429 then :
19430 enableval=$enable_xaa; XAA="$enableval"
19431 else $as_nop
19432 XAA=auto
19433 fi
19434
19435 if test "x$XAA" != xno; then
19436 save_CFLAGS=$CFLAGS
19437 save_CPPFLAGS=$CPPFLAGS
19438 CFLAGS=$XORG_CFLAGS
19439 CPPFLAGS="$XORG_CFLAGS"
19440 for ac_header in xaa.h
19441 do :
19442 ac_fn_c_check_header_compile "$LINENO" "xaa.h" "ac_cv_header_xaa_h" "$ac_includes_default"
19443 if test "x$ac_cv_header_xaa_h" = xyes
19444 then :
19445 printf "%s\n" "#define HAVE_XAA_H 1" >>confdefs.h
19446 XAA=yes
19447 else $as_nop
19448 XAA=no
19449 fi
19450
19451 done
19452 CFLAGS=$save_CFLAGS
19453 CPPFLAGS=$save_CPPFLAGS
19454 fi
19455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to include XAA support" >&5
19456 printf %s "checking whether to include XAA support... " >&6; }
19457 if test "x$XAA" = xyes; then
19458 XAA_TRUE=
19459 XAA_FALSE='#'
19460 else
19461 XAA_TRUE='#'
19462 XAA_FALSE=
19463 fi
19464
19465 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XAA" >&5
19466 printf "%s\n" "$XAA" >&6; }
19467
19468 if test "x$XSERVER_LIBPCIACCESS" = xyes; then
19469
19470 pkg_failed=no
19471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for PCIACCESS" >&5
19472 printf %s "checking for PCIACCESS... " >&6; }
19473
19474 if test -n "$PCIACCESS_CFLAGS"; then
19475 pkg_cv_PCIACCESS_CFLAGS="$PCIACCESS_CFLAGS"
19476 elif test -n "$PKG_CONFIG"; then
19477 if test -n "$PKG_CONFIG" && \
19478 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\""; } >&5
19479 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5
19480 ac_status=$?
19481 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19482 test $ac_status = 0; }; then
19483 pkg_cv_PCIACCESS_CFLAGS=`$PKG_CONFIG --cflags "pciaccess >= 0.8.0" 2>/dev/null`
19484 test "x$?" != "x0" && pkg_failed=yes
19485 else
19486 pkg_failed=yes
19487 fi
19488 else
19489 pkg_failed=untried
19490 fi
19491 if test -n "$PCIACCESS_LIBS"; then
19492 pkg_cv_PCIACCESS_LIBS="$PCIACCESS_LIBS"
19493 elif test -n "$PKG_CONFIG"; then
19494 if test -n "$PKG_CONFIG" && \
19495 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\""; } >&5
19496 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5
19497 ac_status=$?
19498 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19499 test $ac_status = 0; }; then
19500 pkg_cv_PCIACCESS_LIBS=`$PKG_CONFIG --libs "pciaccess >= 0.8.0" 2>/dev/null`
19501 test "x$?" != "x0" && pkg_failed=yes
19502 else
19503 pkg_failed=yes
19504 fi
19505 else
19506 pkg_failed=untried
19507 fi
19508
19509
19510
19511 if test $pkg_failed = yes; then
19512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19513 printf "%s\n" "no" >&6; }
19514
19515 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19516 _pkg_short_errors_supported=yes
19517 else
19518 _pkg_short_errors_supported=no
19519 fi
19520 if test $_pkg_short_errors_supported = yes; then
19521 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "pciaccess >= 0.8.0" 2>&1`
19522 else
19523 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "pciaccess >= 0.8.0" 2>&1`
19524 fi
19525 # Put the nasty error message in config.log where it belongs
19526 echo "$PCIACCESS_PKG_ERRORS" >&5
19527
19528 as_fn_error $? "Package requirements (pciaccess >= 0.8.0) were not met:
19529
19530 $PCIACCESS_PKG_ERRORS
19531
19532 Consider adjusting the PKG_CONFIG_PATH environment variable if you
19533 installed software in a non-standard prefix.
19534
19535 Alternatively, you may set the environment variables PCIACCESS_CFLAGS
19536 and PCIACCESS_LIBS to avoid the need to call pkg-config.
19537 See the pkg-config man page for more details." "$LINENO" 5
19538 elif test $pkg_failed = untried; then
19539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19540 printf "%s\n" "no" >&6; }
19541 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19542 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
19543 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
19544 is in your PATH or set the PKG_CONFIG environment variable to the full
19545 path to pkg-config.
19546
19547 Alternatively, you may set the environment variables PCIACCESS_CFLAGS
19548 and PCIACCESS_LIBS to avoid the need to call pkg-config.
19549 See the pkg-config man page for more details.
19550
19551 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
19552 See \`config.log' for more details" "$LINENO" 5; }
19553 else
19554 PCIACCESS_CFLAGS=$pkg_cv_PCIACCESS_CFLAGS
19555 PCIACCESS_LIBS=$pkg_cv_PCIACCESS_LIBS
19556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19557 printf "%s\n" "yes" >&6; }
19558
19559 fi
19560 XORG_CFLAGS="$XORG_CFLAGS $PCIACCESS_CFLAGS"
19561 fi
19562 if test "x$XSERVER_LIBPCIACCESS" = xyes; then
19563 XSERVER_LIBPCIACCESS_TRUE=
19564 XSERVER_LIBPCIACCESS_FALSE='#'
19565 else
19566 XSERVER_LIBPCIACCESS_TRUE='#'
19567 XSERVER_LIBPCIACCESS_FALSE=
19568 fi
19569
19570
19571
19572
19573 DRIVER_NAME=neomagic
19574
19575
19576 ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile"
19577
19578 cat >confcache <<\_ACEOF
19579 # This file is a shell script that caches the results of configure
19580 # tests run on this system so they can be shared between configure
19581 # scripts and configure runs, see configure's option --config-cache.
19582 # It is not useful on other systems. If it contains results you don't
19583 # want to keep, you may remove or edit it.
19584 #
19585 # config.status only pays attention to the cache file if you give it
19586 # the --recheck option to rerun configure.
19587 #
19588 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19589 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19590 # following values.
19591
19592 _ACEOF
19593
19594 # The following way of writing the cache mishandles newlines in values,
19595 # but we know of no workaround that is simple, portable, and efficient.
19596 # So, we kill variables containing newlines.
19597 # Ultrix sh set writes to stderr and can't be redirected directly,
19598 # and sets the high bit in the cache file unless we assign to the vars.
19599 (
19600 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19601 eval ac_val=\$$ac_var
19602 case $ac_val in #(
19603 *${as_nl}*)
19604 case $ac_var in #(
19605 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
19606 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19607 esac
19608 case $ac_var in #(
19609 _ | IFS | as_nl) ;; #(
19610 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
19611 *) { eval $ac_var=; unset $ac_var;} ;;
19612 esac ;;
19613 esac
19614 done
19615
19616 (set) 2>&1 |
19617 case $as_nl`(ac_space=' '; set) 2>&1` in #(
19618 *${as_nl}ac_space=\ *)
19619 # `set' does not quote correctly, so add quotes: double-quote
19620 # substitution turns \\\\ into \\, and sed turns \\ into \.
19621 sed -n \
19622 "s/'/'\\\\''/g;
19623 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19624 ;; #(
19625 *)
19626 # `set' quotes correctly as required by POSIX, so do not add quotes.
19627 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19628 ;;
19629 esac |
19630 sort
19631 ) |
19632 sed '
19633 /^ac_cv_env_/b end
19634 t clear
19635 :clear
19636 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
19637 t end
19638 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19639 :end' >>confcache
19640 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19641 if test -w "$cache_file"; then
19642 if test "x$cache_file" != "x/dev/null"; then
19643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
19644 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
19645 if test ! -f "$cache_file" || test -h "$cache_file"; then
19646 cat confcache >"$cache_file"
19647 else
19648 case $cache_file in #(
19649 */* | ?:*)
19650 mv -f confcache "$cache_file"$$ &&
19651 mv -f "$cache_file"$$ "$cache_file" ;; #(
19652 *)
19653 mv -f confcache "$cache_file" ;;
19654 esac
19655 fi
19656 fi
19657 else
19658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
19659 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
19660 fi
19661 fi
19662 rm -f confcache
19663
19664 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19665 # Let make expand exec_prefix.
19666 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19667
19668 DEFS=-DHAVE_CONFIG_H
19669
19670 ac_libobjs=
19671 ac_ltlibobjs=
19672 U=
19673 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19674 # 1. Remove the extension, and $U if already installed.
19675 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19676 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
19677 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
19678 # will be set to the directory where LIBOBJS objects are built.
19679 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19680 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
19681 done
19682 LIBOBJS=$ac_libobjs
19683
19684 LTLIBOBJS=$ac_ltlibobjs
19685
19686
19687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
19688 printf %s "checking that generated files are newer than configure... " >&6; }
19689 if test -n "$am_sleep_pid"; then
19690 # Hide warnings about reused PIDs.
19691 wait $am_sleep_pid 2>/dev/null
19692 fi
19693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
19694 printf "%s\n" "done" >&6; }
19695 if test -n "$EXEEXT"; then
19696 am__EXEEXT_TRUE=
19697 am__EXEEXT_FALSE='#'
19698 else
19699 am__EXEEXT_TRUE='#'
19700 am__EXEEXT_FALSE=
19701 fi
19702
19703 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19704 as_fn_error $? "conditional \"AMDEP\" was never defined.
19705 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19706 fi
19707 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19708 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
19709 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19710 fi
19711 if test -z "${XAA_TRUE}" && test -z "${XAA_FALSE}"; then
19712 as_fn_error $? "conditional \"XAA\" was never defined.
19713 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19714 fi
19715 if test -z "${XSERVER_LIBPCIACCESS_TRUE}" && test -z "${XSERVER_LIBPCIACCESS_FALSE}"; then
19716 as_fn_error $? "conditional \"XSERVER_LIBPCIACCESS\" was never defined.
19717 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19718 fi
19719
19720 : "${CONFIG_STATUS=./config.status}"
19721 ac_write_fail=0
19722 ac_clean_files_save=$ac_clean_files
19723 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19725 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
19726 as_write_fail=0
19727 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
19728 #! $SHELL
19729 # Generated by $as_me.
19730 # Run this file to recreate the current configuration.
19731 # Compiler output produced by configure, useful for debugging
19732 # configure, is in config.log if it exists.
19733
19734 debug=false
19735 ac_cs_recheck=false
19736 ac_cs_silent=false
19737
19738 SHELL=\${CONFIG_SHELL-$SHELL}
19739 export SHELL
19740 _ASEOF
19741 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
19742 ## -------------------- ##
19743 ## M4sh Initialization. ##
19744 ## -------------------- ##
19745
19746 # Be more Bourne compatible
19747 DUALCASE=1; export DUALCASE # for MKS sh
19748 as_nop=:
19749 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
19750 then :
19751 emulate sh
19752 NULLCMD=:
19753 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19754 # is contrary to our usage. Disable this feature.
19755 alias -g '${1+"$@"}'='"$@"'
19756 setopt NO_GLOB_SUBST
19757 else $as_nop
19758 case `(set -o) 2>/dev/null` in #(
19759 *posix*) :
19760 set -o posix ;; #(
19761 *) :
19762 ;;
19763 esac
19764 fi
19765
19766
19767
19768 # Reset variables that may have inherited troublesome values from
19769 # the environment.
19770
19771 # IFS needs to be set, to space, tab, and newline, in precisely that order.
19772 # (If _AS_PATH_WALK were called with IFS unset, it would have the
19773 # side effect of setting IFS to empty, thus disabling word splitting.)
19774 # Quoting is to prevent editors from complaining about space-tab.
19775 as_nl='
19776 '
19777 export as_nl
19778 IFS=" "" $as_nl"
19779
19780 PS1='$ '
19781 PS2='> '
19782 PS4='+ '
19783
19784 # Ensure predictable behavior from utilities with locale-dependent output.
19785 LC_ALL=C
19786 export LC_ALL
19787 LANGUAGE=C
19788 export LANGUAGE
19789
19790 # We cannot yet rely on "unset" to work, but we need these variables
19791 # to be unset--not just set to an empty or harmless value--now, to
19792 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
19793 # also avoids known problems related to "unset" and subshell syntax
19794 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
19795 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
19796 do eval test \${$as_var+y} \
19797 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
19798 done
19799
19800 # Ensure that fds 0, 1, and 2 are open.
19801 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
19802 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
19803 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
19804
19805 # The user is always right.
19806 if ${PATH_SEPARATOR+false} :; then
19807 PATH_SEPARATOR=:
19808 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19809 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19810 PATH_SEPARATOR=';'
19811 }
19812 fi
19813
19814
19815 # Find who we are. Look in the path if we contain no directory separator.
19816 as_myself=
19817 case $0 in #((
19818 *[\\/]* ) as_myself=$0 ;;
19819 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19820 for as_dir in $PATH
19821 do
19822 IFS=$as_save_IFS
19823 case $as_dir in #(((
19824 '') as_dir=./ ;;
19825 */) ;;
19826 *) as_dir=$as_dir/ ;;
19827 esac
19828 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
19829 done
19830 IFS=$as_save_IFS
19831
19832 ;;
19833 esac
19834 # We did not find ourselves, most probably we were run as `sh COMMAND'
19835 # in which case we are not to be found in the path.
19836 if test "x$as_myself" = x; then
19837 as_myself=$0
19838 fi
19839 if test ! -f "$as_myself"; then
19840 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19841 exit 1
19842 fi
19843
19844
19845
19846 # as_fn_error STATUS ERROR [LINENO LOG_FD]
19847 # ----------------------------------------
19848 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19849 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19850 # script with STATUS, using 1 if that was 0.
19851 as_fn_error ()
19852 {
19853 as_status=$1; test $as_status -eq 0 && as_status=1
19854 if test "$4"; then
19855 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
19856 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
19857 fi
19858 printf "%s\n" "$as_me: error: $2" >&2
19859 as_fn_exit $as_status
19860 } # as_fn_error
19861
19862
19863
19864 # as_fn_set_status STATUS
19865 # -----------------------
19866 # Set $? to STATUS, without forking.
19867 as_fn_set_status ()
19868 {
19869 return $1
19870 } # as_fn_set_status
19871
19872 # as_fn_exit STATUS
19873 # -----------------
19874 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19875 as_fn_exit ()
19876 {
19877 set +e
19878 as_fn_set_status $1
19879 exit $1
19880 } # as_fn_exit
19881
19882 # as_fn_unset VAR
19883 # ---------------
19884 # Portably unset VAR.
19885 as_fn_unset ()
19886 {
19887 { eval $1=; unset $1;}
19888 }
19889 as_unset=as_fn_unset
19890
19891 # as_fn_append VAR VALUE
19892 # ----------------------
19893 # Append the text in VALUE to the end of the definition contained in VAR. Take
19894 # advantage of any shell optimizations that allow amortized linear growth over
19895 # repeated appends, instead of the typical quadratic growth present in naive
19896 # implementations.
19897 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
19898 then :
19899 eval 'as_fn_append ()
19900 {
19901 eval $1+=\$2
19902 }'
19903 else $as_nop
19904 as_fn_append ()
19905 {
19906 eval $1=\$$1\$2
19907 }
19908 fi # as_fn_append
19909
19910 # as_fn_arith ARG...
19911 # ------------------
19912 # Perform arithmetic evaluation on the ARGs, and store the result in the
19913 # global $as_val. Take advantage of shells that can avoid forks. The arguments
19914 # must be portable across $(()) and expr.
19915 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
19916 then :
19917 eval 'as_fn_arith ()
19918 {
19919 as_val=$(( $* ))
19920 }'
19921 else $as_nop
19922 as_fn_arith ()
19923 {
19924 as_val=`expr "$@" || test $? -eq 1`
19925 }
19926 fi # as_fn_arith
19927
19928
19929 if expr a : '\(a\)' >/dev/null 2>&1 &&
19930 test "X`expr 00001 : '.*\(...\)'`" = X001; then
19931 as_expr=expr
19932 else
19933 as_expr=false
19934 fi
19935
19936 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19937 as_basename=basename
19938 else
19939 as_basename=false
19940 fi
19941
19942 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19943 as_dirname=dirname
19944 else
19945 as_dirname=false
19946 fi
19947
19948 as_me=`$as_basename -- "$0" ||
19949 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19950 X"$0" : 'X\(//\)$' \| \
19951 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19952 printf "%s\n" X/"$0" |
19953 sed '/^.*\/\([^/][^/]*\)\/*$/{
19954 s//\1/
19955 q
19956 }
19957 /^X\/\(\/\/\)$/{
19958 s//\1/
19959 q
19960 }
19961 /^X\/\(\/\).*/{
19962 s//\1/
19963 q
19964 }
19965 s/.*/./; q'`
19966
19967 # Avoid depending upon Character Ranges.
19968 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19969 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19970 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19971 as_cr_digits='0123456789'
19972 as_cr_alnum=$as_cr_Letters$as_cr_digits
19973
19974
19975 # Determine whether it's possible to make 'echo' print without a newline.
19976 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
19977 # for compatibility with existing Makefiles.
19978 ECHO_C= ECHO_N= ECHO_T=
19979 case `echo -n x` in #(((((
19980 -n*)
19981 case `echo 'xy\c'` in
19982 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
19983 xy) ECHO_C='\c';;
19984 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
19985 ECHO_T=' ';;
19986 esac;;
19987 *)
19988 ECHO_N='-n';;
19989 esac
19990
19991 # For backward compatibility with old third-party macros, we provide
19992 # the shell variables $as_echo and $as_echo_n. New code should use
19993 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
19994 as_echo='printf %s\n'
19995 as_echo_n='printf %s'
19996
19997 rm -f conf$$ conf$$.exe conf$$.file
19998 if test -d conf$$.dir; then
19999 rm -f conf$$.dir/conf$$.file
20000 else
20001 rm -f conf$$.dir
20002 mkdir conf$$.dir 2>/dev/null
20003 fi
20004 if (echo >conf$$.file) 2>/dev/null; then
20005 if ln -s conf$$.file conf$$ 2>/dev/null; then
20006 as_ln_s='ln -s'
20007 # ... but there are two gotchas:
20008 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20009 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20010 # In both cases, we have to default to `cp -pR'.
20011 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20012 as_ln_s='cp -pR'
20013 elif ln conf$$.file conf$$ 2>/dev/null; then
20014 as_ln_s=ln
20015 else
20016 as_ln_s='cp -pR'
20017 fi
20018 else
20019 as_ln_s='cp -pR'
20020 fi
20021 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20022 rmdir conf$$.dir 2>/dev/null
20023
20024
20025 # as_fn_mkdir_p
20026 # -------------
20027 # Create "$as_dir" as a directory, including parents if necessary.
20028 as_fn_mkdir_p ()
20029 {
20030
20031 case $as_dir in #(
20032 -*) as_dir=./$as_dir;;
20033 esac
20034 test -d "$as_dir" || eval $as_mkdir_p || {
20035 as_dirs=
20036 while :; do
20037 case $as_dir in #(
20038 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20039 *) as_qdir=$as_dir;;
20040 esac
20041 as_dirs="'$as_qdir' $as_dirs"
20042 as_dir=`$as_dirname -- "$as_dir" ||
20043 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20044 X"$as_dir" : 'X\(//\)[^/]' \| \
20045 X"$as_dir" : 'X\(//\)$' \| \
20046 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20047 printf "%s\n" X"$as_dir" |
20048 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20049 s//\1/
20050 q
20051 }
20052 /^X\(\/\/\)[^/].*/{
20053 s//\1/
20054 q
20055 }
20056 /^X\(\/\/\)$/{
20057 s//\1/
20058 q
20059 }
20060 /^X\(\/\).*/{
20061 s//\1/
20062 q
20063 }
20064 s/.*/./; q'`
20065 test -d "$as_dir" && break
20066 done
20067 test -z "$as_dirs" || eval "mkdir $as_dirs"
20068 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
20069
20070
20071 } # as_fn_mkdir_p
20072 if mkdir -p . 2>/dev/null; then
20073 as_mkdir_p='mkdir -p "$as_dir"'
20074 else
20075 test -d ./-p && rmdir ./-p
20076 as_mkdir_p=false
20077 fi
20078
20079
20080 # as_fn_executable_p FILE
20081 # -----------------------
20082 # Test if FILE is an executable regular file.
20083 as_fn_executable_p ()
20084 {
20085 test -f "$1" && test -x "$1"
20086 } # as_fn_executable_p
20087 as_test_x='test -x'
20088 as_executable_p=as_fn_executable_p
20089
20090 # Sed expression to map a string onto a valid CPP name.
20091 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20092
20093 # Sed expression to map a string onto a valid variable name.
20094 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20095
20096
20097 exec 6>&1
20098 ## ----------------------------------- ##
20099 ## Main body of $CONFIG_STATUS script. ##
20100 ## ----------------------------------- ##
20101 _ASEOF
20102 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
20103
20104 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20105 # Save the log message, to keep $0 and so on meaningful, and to
20106 # report actual input values of CONFIG_FILES etc. instead of their
20107 # values after options handling.
20108 ac_log="
20109 This file was extended by xf86-video-neomagic $as_me 1.3.1, which was
20110 generated by GNU Autoconf 2.71. Invocation command line was
20111
20112 CONFIG_FILES = $CONFIG_FILES
20113 CONFIG_HEADERS = $CONFIG_HEADERS
20114 CONFIG_LINKS = $CONFIG_LINKS
20115 CONFIG_COMMANDS = $CONFIG_COMMANDS
20116 $ $0 $@
20117
20118 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20119 "
20120
20121 _ACEOF
20122
20123 case $ac_config_files in *"
20124 "*) set x $ac_config_files; shift; ac_config_files=$*;;
20125 esac
20126
20127 case $ac_config_headers in *"
20128 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
20129 esac
20130
20131
20132 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20133 # Files that config.status was made for.
20134 config_files="$ac_config_files"
20135 config_headers="$ac_config_headers"
20136 config_commands="$ac_config_commands"
20137
20138 _ACEOF
20139
20140 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20141 ac_cs_usage="\
20142 \`$as_me' instantiates files and other configuration actions
20143 from templates according to the current configuration. Unless the files
20144 and actions are specified as TAGs, all are instantiated by default.
20145
20146 Usage: $0 [OPTION]... [TAG]...
20147
20148 -h, --help print this help, then exit
20149 -V, --version print version number and configuration settings, then exit
20150 --config print configuration, then exit
20151 -q, --quiet, --silent
20152 do not print progress messages
20153 -d, --debug don't remove temporary files
20154 --recheck update $as_me by reconfiguring in the same conditions
20155 --file=FILE[:TEMPLATE]
20156 instantiate the configuration file FILE
20157 --header=FILE[:TEMPLATE]
20158 instantiate the configuration header FILE
20159
20160 Configuration files:
20161 $config_files
20162
20163 Configuration headers:
20164 $config_headers
20165
20166 Configuration commands:
20167 $config_commands
20168
20169 Report bugs to <https://gitlab.freedesktop.org/xorg/driver/xf86-video-neomagic/-/issues>."
20170
20171 _ACEOF
20172 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
20173 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
20174 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20175 ac_cs_config='$ac_cs_config_escaped'
20176 ac_cs_version="\\
20177 xf86-video-neomagic config.status 1.3.1
20178 configured by $0, generated by GNU Autoconf 2.71,
20179 with options \\"\$ac_cs_config\\"
20180
20181 Copyright (C) 2021 Free Software Foundation, Inc.
20182 This config.status script is free software; the Free Software Foundation
20183 gives unlimited permission to copy, distribute and modify it."
20184
20185 ac_pwd='$ac_pwd'
20186 srcdir='$srcdir'
20187 INSTALL='$INSTALL'
20188 MKDIR_P='$MKDIR_P'
20189 AWK='$AWK'
20190 test -n "\$AWK" || AWK=awk
20191 _ACEOF
20192
20193 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20194 # The default lists apply if the user does not specify any file.
20195 ac_need_defaults=:
20196 while test $# != 0
20197 do
20198 case $1 in
20199 --*=?*)
20200 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20201 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20202 ac_shift=:
20203 ;;
20204 --*=)
20205 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20206 ac_optarg=
20207 ac_shift=:
20208 ;;
20209 *)
20210 ac_option=$1
20211 ac_optarg=$2
20212 ac_shift=shift
20213 ;;
20214 esac
20215
20216 case $ac_option in
20217 # Handling of the options.
20218 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20219 ac_cs_recheck=: ;;
20220 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20221 printf "%s\n" "$ac_cs_version"; exit ;;
20222 --config | --confi | --conf | --con | --co | --c )
20223 printf "%s\n" "$ac_cs_config"; exit ;;
20224 --debug | --debu | --deb | --de | --d | -d )
20225 debug=: ;;
20226 --file | --fil | --fi | --f )
20227 $ac_shift
20228 case $ac_optarg in
20229 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20230 '') as_fn_error $? "missing file argument" ;;
20231 esac
20232 as_fn_append CONFIG_FILES " '$ac_optarg'"
20233 ac_need_defaults=false;;
20234 --header | --heade | --head | --hea )
20235 $ac_shift
20236 case $ac_optarg in
20237 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20238 esac
20239 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
20240 ac_need_defaults=false;;
20241 --he | --h)
20242 # Conflict between --help and --header
20243 as_fn_error $? "ambiguous option: \`$1'
20244 Try \`$0 --help' for more information.";;
20245 --help | --hel | -h )
20246 printf "%s\n" "$ac_cs_usage"; exit ;;
20247 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20248 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20249 ac_cs_silent=: ;;
20250
20251 # This is an error.
20252 -*) as_fn_error $? "unrecognized option: \`$1'
20253 Try \`$0 --help' for more information." ;;
20254
20255 *) as_fn_append ac_config_targets " $1"
20256 ac_need_defaults=false ;;
20257
20258 esac
20259 shift
20260 done
20261
20262 ac_configure_extra_args=
20263
20264 if $ac_cs_silent; then
20265 exec 6>/dev/null
20266 ac_configure_extra_args="$ac_configure_extra_args --silent"
20267 fi
20268
20269 _ACEOF
20270 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20271 if \$ac_cs_recheck; then
20272 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20273 shift
20274 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
20275 CONFIG_SHELL='$SHELL'
20276 export CONFIG_SHELL
20277 exec "\$@"
20278 fi
20279
20280 _ACEOF
20281 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20282 exec 5>>config.log
20283 {
20284 echo
20285 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20286 ## Running $as_me. ##
20287 _ASBOX
20288 printf "%s\n" "$ac_log"
20289 } >&5
20290
20291 _ACEOF
20292 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20293 #
20294 # INIT-COMMANDS
20295 #
20296 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
20297
20298
20299 # The HP-UX ksh and POSIX shell print the target directory to stdout
20300 # if CDPATH is set.
20301 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20302
20303 sed_quote_subst='$sed_quote_subst'
20304 double_quote_subst='$double_quote_subst'
20305 delay_variable_subst='$delay_variable_subst'
20306 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
20307 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
20308 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
20309 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
20310 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
20311 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
20312 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
20313 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
20314 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
20315 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
20316 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
20317 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
20318 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
20319 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
20320 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
20321 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
20322 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
20323 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
20324 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
20325 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
20326 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
20327 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
20328 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
20329 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
20330 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
20331 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
20332 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
20333 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
20334 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
20335 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
20336 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
20337 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
20338 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
20339 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
20340 FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
20341 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
20342 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
20343 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
20344 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
20345 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
20346 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
20347 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
20348 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
20349 lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
20350 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
20351 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
20352 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
20353 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
20354 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20355 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20356 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
20357 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
20358 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
20359 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
20360 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
20361 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
20362 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
20363 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
20364 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
20365 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
20366 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"`'
20367 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
20368 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
20369 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
20370 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
20371 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
20372 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
20373 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
20374 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
20375 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
20376 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
20377 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
20378 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
20379 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
20380 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
20381 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
20382 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
20383 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
20384 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
20385 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
20386 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
20387 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20388 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
20389 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
20390 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
20391 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
20392 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
20393 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
20394 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20395 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
20396 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20397 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
20398 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20399 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
20400 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
20401 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
20402 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
20403 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
20404 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
20405 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
20406 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
20407 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
20408 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
20409 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
20410 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
20411 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
20412 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
20413 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
20414 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
20415 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
20416 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
20417 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
20418 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
20419 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
20420 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
20421 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
20422 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
20423 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
20424 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
20425 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
20426 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
20427 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
20428 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
20429 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20430 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20431 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
20432 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
20433 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
20434 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
20435 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
20436 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
20437 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
20438 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
20439 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
20440 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
20441 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
20442 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
20443
20444 LTCC='$LTCC'
20445 LTCFLAGS='$LTCFLAGS'
20446 compiler='$compiler_DEFAULT'
20447
20448 # A function that is used when there is no print builtin or printf.
20449 func_fallback_echo ()
20450 {
20451 eval 'cat <<_LTECHO_EOF
20452 \$1
20453 _LTECHO_EOF'
20454 }
20455
20456 # Quote evaled strings.
20457 for var in SHELL \
20458 ECHO \
20459 PATH_SEPARATOR \
20460 SED \
20461 GREP \
20462 EGREP \
20463 FGREP \
20464 LD \
20465 NM \
20466 LN_S \
20467 lt_SP2NL \
20468 lt_NL2SP \
20469 reload_flag \
20470 FILECMD \
20471 OBJDUMP \
20472 deplibs_check_method \
20473 file_magic_cmd \
20474 file_magic_glob \
20475 want_nocaseglob \
20476 DLLTOOL \
20477 sharedlib_from_linklib_cmd \
20478 AR \
20479 archiver_list_spec \
20480 STRIP \
20481 RANLIB \
20482 CC \
20483 CFLAGS \
20484 compiler \
20485 lt_cv_sys_global_symbol_pipe \
20486 lt_cv_sys_global_symbol_to_cdecl \
20487 lt_cv_sys_global_symbol_to_import \
20488 lt_cv_sys_global_symbol_to_c_name_address \
20489 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
20490 lt_cv_nm_interface \
20491 nm_file_list_spec \
20492 lt_cv_truncate_bin \
20493 lt_prog_compiler_no_builtin_flag \
20494 lt_prog_compiler_pic \
20495 lt_prog_compiler_wl \
20496 lt_prog_compiler_static \
20497 lt_cv_prog_compiler_c_o \
20498 need_locks \
20499 MANIFEST_TOOL \
20500 DSYMUTIL \
20501 NMEDIT \
20502 LIPO \
20503 OTOOL \
20504 OTOOL64 \
20505 shrext_cmds \
20506 export_dynamic_flag_spec \
20507 whole_archive_flag_spec \
20508 compiler_needs_object \
20509 with_gnu_ld \
20510 allow_undefined_flag \
20511 no_undefined_flag \
20512 hardcode_libdir_flag_spec \
20513 hardcode_libdir_separator \
20514 exclude_expsyms \
20515 include_expsyms \
20516 file_list_spec \
20517 variables_saved_for_relink \
20518 libname_spec \
20519 library_names_spec \
20520 soname_spec \
20521 install_override_mode \
20522 finish_eval \
20523 old_striplib \
20524 striplib; do
20525 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20526 *[\\\\\\\`\\"\\\$]*)
20527 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
20528 ;;
20529 *)
20530 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20531 ;;
20532 esac
20533 done
20534
20535 # Double-quote double-evaled strings.
20536 for var in reload_cmds \
20537 old_postinstall_cmds \
20538 old_postuninstall_cmds \
20539 old_archive_cmds \
20540 extract_expsyms_cmds \
20541 old_archive_from_new_cmds \
20542 old_archive_from_expsyms_cmds \
20543 archive_cmds \
20544 archive_expsym_cmds \
20545 module_cmds \
20546 module_expsym_cmds \
20547 export_symbols_cmds \
20548 prelink_cmds \
20549 postlink_cmds \
20550 postinstall_cmds \
20551 postuninstall_cmds \
20552 finish_cmds \
20553 sys_lib_search_path_spec \
20554 configure_time_dlsearch_path \
20555 configure_time_lt_sys_library_path; do
20556 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20557 *[\\\\\\\`\\"\\\$]*)
20558 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
20559 ;;
20560 *)
20561 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20562 ;;
20563 esac
20564 done
20565
20566 ac_aux_dir='$ac_aux_dir'
20567
20568 # See if we are running on zsh, and set the options that allow our
20569 # commands through without removal of \ escapes INIT.
20570 if test -n "\${ZSH_VERSION+set}"; then
20571 setopt NO_GLOB_SUBST
20572 fi
20573
20574
20575 PACKAGE='$PACKAGE'
20576 VERSION='$VERSION'
20577 RM='$RM'
20578 ofile='$ofile'
20579
20580
20581
20582
20583 _ACEOF
20584
20585 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20586
20587 # Handling of arguments.
20588 for ac_config_target in $ac_config_targets
20589 do
20590 case $ac_config_target in
20591 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
20592 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20593 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
20594 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20595 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
20596 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
20597
20598 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
20599 esac
20600 done
20601
20602
20603 # If the user did not use the arguments to specify the items to instantiate,
20604 # then the envvar interface is used. Set only those that are not.
20605 # We use the long form for the default assignment because of an extremely
20606 # bizarre bug on SunOS 4.1.3.
20607 if $ac_need_defaults; then
20608 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
20609 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
20610 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
20611 fi
20612
20613 # Have a temporary directory for convenience. Make it in the build tree
20614 # simply because there is no reason against having it here, and in addition,
20615 # creating and moving files from /tmp can sometimes cause problems.
20616 # Hook for its removal unless debugging.
20617 # Note that there is a small window in which the directory will not be cleaned:
20618 # after its creation but before its name has been assigned to `$tmp'.
20619 $debug ||
20620 {
20621 tmp= ac_tmp=
20622 trap 'exit_status=$?
20623 : "${ac_tmp:=$tmp}"
20624 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
20625 ' 0
20626 trap 'as_fn_exit 1' 1 2 13 15
20627 }
20628 # Create a (secure) tmp directory for tmp files.
20629
20630 {
20631 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20632 test -d "$tmp"
20633 } ||
20634 {
20635 tmp=./conf$$-$RANDOM
20636 (umask 077 && mkdir "$tmp")
20637 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
20638 ac_tmp=$tmp
20639
20640 # Set up the scripts for CONFIG_FILES section.
20641 # No need to generate them if there are no CONFIG_FILES.
20642 # This happens for instance with `./config.status config.h'.
20643 if test -n "$CONFIG_FILES"; then
20644
20645
20646 ac_cr=`echo X | tr X '\015'`
20647 # On cygwin, bash can eat \r inside `` if the user requested igncr.
20648 # But we know of no other shell where ac_cr would be empty at this
20649 # point, so we can use a bashism as a fallback.
20650 if test "x$ac_cr" = x; then
20651 eval ac_cr=\$\'\\r\'
20652 fi
20653 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20654 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20655 ac_cs_awk_cr='\\r'
20656 else
20657 ac_cs_awk_cr=$ac_cr
20658 fi
20659
20660 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
20661 _ACEOF
20662
20663
20664 {
20665 echo "cat >conf$$subs.awk <<_ACEOF" &&
20666 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20667 echo "_ACEOF"
20668 } >conf$$subs.sh ||
20669 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20670 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
20671 ac_delim='%!_!# '
20672 for ac_last_try in false false false false false :; do
20673 . ./conf$$subs.sh ||
20674 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20675
20676 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
20677 if test $ac_delim_n = $ac_delim_num; then
20678 break
20679 elif $ac_last_try; then
20680 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20681 else
20682 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20683 fi
20684 done
20685 rm -f conf$$subs.sh
20686
20687 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20688 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
20689 _ACEOF
20690 sed -n '
20691 h
20692 s/^/S["/; s/!.*/"]=/
20693 p
20694 g
20695 s/^[^!]*!//
20696 :repl
20697 t repl
20698 s/'"$ac_delim"'$//
20699 t delim
20700 :nl
20701 h
20702 s/\(.\{148\}\)..*/\1/
20703 t more1
20704 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
20705 p
20706 n
20707 b repl
20708 :more1
20709 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20710 p
20711 g
20712 s/.\{148\}//
20713 t nl
20714 :delim
20715 h
20716 s/\(.\{148\}\)..*/\1/
20717 t more2
20718 s/["\\]/\\&/g; s/^/"/; s/$/"/
20719 p
20720 b
20721 :more2
20722 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20723 p
20724 g
20725 s/.\{148\}//
20726 t delim
20727 ' <conf$$subs.awk | sed '
20728 /^[^""]/{
20729 N
20730 s/\n//
20731 }
20732 ' >>$CONFIG_STATUS || ac_write_fail=1
20733 rm -f conf$$subs.awk
20734 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20735 _ACAWK
20736 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
20737 for (key in S) S_is_set[key] = 1
20738 FS = ""
20739
20740 }
20741 {
20742 line = $ 0
20743 nfields = split(line, field, "@")
20744 substed = 0
20745 len = length(field[1])
20746 for (i = 2; i < nfields; i++) {
20747 key = field[i]
20748 keylen = length(key)
20749 if (S_is_set[key]) {
20750 value = S[key]
20751 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20752 len += length(value) + length(field[++i])
20753 substed = 1
20754 } else
20755 len += 1 + keylen
20756 }
20757
20758 print line
20759 }
20760
20761 _ACAWK
20762 _ACEOF
20763 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20764 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20765 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
20766 else
20767 cat
20768 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
20769 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
20770 _ACEOF
20771
20772 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
20773 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
20774 # trailing colons and then remove the whole line if VPATH becomes empty
20775 # (actually we leave an empty line to preserve line numbers).
20776 if test "x$srcdir" = x.; then
20777 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
20778 h
20779 s///
20780 s/^/:/
20781 s/[ ]*$/:/
20782 s/:\$(srcdir):/:/g
20783 s/:\${srcdir}:/:/g
20784 s/:@srcdir@:/:/g
20785 s/^:*//
20786 s/:*$//
20787 x
20788 s/\(=[ ]*\).*/\1/
20789 G
20790 s/\n//
20791 s/^[^=]*=[ ]*$//
20792 }'
20793 fi
20794
20795 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20796 fi # test -n "$CONFIG_FILES"
20797
20798 # Set up the scripts for CONFIG_HEADERS section.
20799 # No need to generate them if there are no CONFIG_HEADERS.
20800 # This happens for instance with `./config.status Makefile'.
20801 if test -n "$CONFIG_HEADERS"; then
20802 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
20803 BEGIN {
20804 _ACEOF
20805
20806 # Transform confdefs.h into an awk script `defines.awk', embedded as
20807 # here-document in config.status, that substitutes the proper values into
20808 # config.h.in to produce config.h.
20809
20810 # Create a delimiter string that does not exist in confdefs.h, to ease
20811 # handling of long lines.
20812 ac_delim='%!_!# '
20813 for ac_last_try in false false :; do
20814 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
20815 if test -z "$ac_tt"; then
20816 break
20817 elif $ac_last_try; then
20818 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
20819 else
20820 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20821 fi
20822 done
20823
20824 # For the awk script, D is an array of macro values keyed by name,
20825 # likewise P contains macro parameters if any. Preserve backslash
20826 # newline sequences.
20827
20828 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20829 sed -n '
20830 s/.\{148\}/&'"$ac_delim"'/g
20831 t rset
20832 :rset
20833 s/^[ ]*#[ ]*define[ ][ ]*/ /
20834 t def
20835 d
20836 :def
20837 s/\\$//
20838 t bsnl
20839 s/["\\]/\\&/g
20840 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20841 D["\1"]=" \3"/p
20842 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
20843 d
20844 :bsnl
20845 s/["\\]/\\&/g
20846 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20847 D["\1"]=" \3\\\\\\n"\\/p
20848 t cont
20849 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
20850 t cont
20851 d
20852 :cont
20853 n
20854 s/.\{148\}/&'"$ac_delim"'/g
20855 t clear
20856 :clear
20857 s/\\$//
20858 t bsnlc
20859 s/["\\]/\\&/g; s/^/"/; s/$/"/p
20860 d
20861 :bsnlc
20862 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
20863 b cont
20864 ' <confdefs.h | sed '
20865 s/'"$ac_delim"'/"\\\
20866 "/g' >>$CONFIG_STATUS || ac_write_fail=1
20867
20868 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20869 for (key in D) D_is_set[key] = 1
20870 FS = ""
20871 }
20872 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
20873 line = \$ 0
20874 split(line, arg, " ")
20875 if (arg[1] == "#") {
20876 defundef = arg[2]
20877 mac1 = arg[3]
20878 } else {
20879 defundef = substr(arg[1], 2)
20880 mac1 = arg[2]
20881 }
20882 split(mac1, mac2, "(") #)
20883 macro = mac2[1]
20884 prefix = substr(line, 1, index(line, defundef) - 1)
20885 if (D_is_set[macro]) {
20886 # Preserve the white space surrounding the "#".
20887 print prefix "define", macro P[macro] D[macro]
20888 next
20889 } else {
20890 # Replace #undef with comments. This is necessary, for example,
20891 # in the case of _POSIX_SOURCE, which is predefined and required
20892 # on some systems where configure will not decide to define it.
20893 if (defundef == "undef") {
20894 print "/*", prefix defundef, macro, "*/"
20895 next
20896 }
20897 }
20898 }
20899 { print }
20900 _ACAWK
20901 _ACEOF
20902 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20903 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
20904 fi # test -n "$CONFIG_HEADERS"
20905
20906
20907 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
20908 shift
20909 for ac_tag
20910 do
20911 case $ac_tag in
20912 :[FHLC]) ac_mode=$ac_tag; continue;;
20913 esac
20914 case $ac_mode$ac_tag in
20915 :[FHL]*:*);;
20916 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
20917 :[FH]-) ac_tag=-:-;;
20918 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20919 esac
20920 ac_save_IFS=$IFS
20921 IFS=:
20922 set x $ac_tag
20923 IFS=$ac_save_IFS
20924 shift
20925 ac_file=$1
20926 shift
20927
20928 case $ac_mode in
20929 :L) ac_source=$1;;
20930 :[FH])
20931 ac_file_inputs=
20932 for ac_f
20933 do
20934 case $ac_f in
20935 -) ac_f="$ac_tmp/stdin";;
20936 *) # Look for the file first in the build tree, then in the source tree
20937 # (if the path is not absolute). The absolute path cannot be DOS-style,
20938 # because $ac_f cannot contain `:'.
20939 test -f "$ac_f" ||
20940 case $ac_f in
20941 [\\/$]*) false;;
20942 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20943 esac ||
20944 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
20945 esac
20946 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20947 as_fn_append ac_file_inputs " '$ac_f'"
20948 done
20949
20950 # Let's still pretend it is `configure' which instantiates (i.e., don't
20951 # use $as_me), people would be surprised to read:
20952 # /* config.h. Generated by config.status. */
20953 configure_input='Generated from '`
20954 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20955 `' by configure.'
20956 if test x"$ac_file" != x-; then
20957 configure_input="$ac_file. $configure_input"
20958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20959 printf "%s\n" "$as_me: creating $ac_file" >&6;}
20960 fi
20961 # Neutralize special characters interpreted by sed in replacement strings.
20962 case $configure_input in #(
20963 *\&* | *\|* | *\\* )
20964 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
20965 sed 's/[\\\\&|]/\\\\&/g'`;; #(
20966 *) ac_sed_conf_input=$configure_input;;
20967 esac
20968
20969 case $ac_tag in
20970 *:-:* | *:-) cat >"$ac_tmp/stdin" \
20971 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
20972 esac
20973 ;;
20974 esac
20975
20976 ac_dir=`$as_dirname -- "$ac_file" ||
20977 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20978 X"$ac_file" : 'X\(//\)[^/]' \| \
20979 X"$ac_file" : 'X\(//\)$' \| \
20980 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20981 printf "%s\n" X"$ac_file" |
20982 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20983 s//\1/
20984 q
20985 }
20986 /^X\(\/\/\)[^/].*/{
20987 s//\1/
20988 q
20989 }
20990 /^X\(\/\/\)$/{
20991 s//\1/
20992 q
20993 }
20994 /^X\(\/\).*/{
20995 s//\1/
20996 q
20997 }
20998 s/.*/./; q'`
20999 as_dir="$ac_dir"; as_fn_mkdir_p
21000 ac_builddir=.
21001
21002 case "$ac_dir" in
21003 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21004 *)
21005 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
21006 # A ".." for each directory in $ac_dir_suffix.
21007 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21008 case $ac_top_builddir_sub in
21009 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21010 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21011 esac ;;
21012 esac
21013 ac_abs_top_builddir=$ac_pwd
21014 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21015 # for backward compatibility:
21016 ac_top_builddir=$ac_top_build_prefix
21017
21018 case $srcdir in
21019 .) # We are building in place.
21020 ac_srcdir=.
21021 ac_top_srcdir=$ac_top_builddir_sub
21022 ac_abs_top_srcdir=$ac_pwd ;;
21023 [\\/]* | ?:[\\/]* ) # Absolute name.
21024 ac_srcdir=$srcdir$ac_dir_suffix;
21025 ac_top_srcdir=$srcdir
21026 ac_abs_top_srcdir=$srcdir ;;
21027 *) # Relative name.
21028 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21029 ac_top_srcdir=$ac_top_build_prefix$srcdir
21030 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21031 esac
21032 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21033
21034
21035 case $ac_mode in
21036 :F)
21037 #
21038 # CONFIG_FILE
21039 #
21040
21041 case $INSTALL in
21042 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21043 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21044 esac
21045 ac_MKDIR_P=$MKDIR_P
21046 case $MKDIR_P in
21047 [\\/$]* | ?:[\\/]* ) ;;
21048 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
21049 esac
21050 _ACEOF
21051
21052 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21053 # If the template does not know about datarootdir, expand it.
21054 # FIXME: This hack should be removed a few years after 2.60.
21055 ac_datarootdir_hack=; ac_datarootdir_seen=
21056 ac_sed_dataroot='
21057 /datarootdir/ {
21058 p
21059 q
21060 }
21061 /@datadir@/p
21062 /@docdir@/p
21063 /@infodir@/p
21064 /@localedir@/p
21065 /@mandir@/p'
21066 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
21067 *datarootdir*) ac_datarootdir_seen=yes;;
21068 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21070 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21071 _ACEOF
21072 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21073 ac_datarootdir_hack='
21074 s&@datadir@&$datadir&g
21075 s&@docdir@&$docdir&g
21076 s&@infodir@&$infodir&g
21077 s&@localedir@&$localedir&g
21078 s&@mandir@&$mandir&g
21079 s&\\\${datarootdir}&$datarootdir&g' ;;
21080 esac
21081 _ACEOF
21082
21083 # Neutralize VPATH when `$srcdir' = `.'.
21084 # Shell code in configure.ac might set extrasub.
21085 # FIXME: do we really want to maintain this feature?
21086 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21087 ac_sed_extra="$ac_vpsub
21088 $extrasub
21089 _ACEOF
21090 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21091 :t
21092 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21093 s|@configure_input@|$ac_sed_conf_input|;t t
21094 s&@top_builddir@&$ac_top_builddir_sub&;t t
21095 s&@top_build_prefix@&$ac_top_build_prefix&;t t
21096 s&@srcdir@&$ac_srcdir&;t t
21097 s&@abs_srcdir@&$ac_abs_srcdir&;t t
21098 s&@top_srcdir@&$ac_top_srcdir&;t t
21099 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21100 s&@builddir@&$ac_builddir&;t t
21101 s&@abs_builddir@&$ac_abs_builddir&;t t
21102 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21103 s&@INSTALL@&$ac_INSTALL&;t t
21104 s&@MKDIR_P@&$ac_MKDIR_P&;t t
21105 $ac_datarootdir_hack
21106 "
21107 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
21108 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21109
21110 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21111 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
21112 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
21113 "$ac_tmp/out"`; test -z "$ac_out"; } &&
21114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21115 which seems to be undefined. Please make sure it is defined" >&5
21116 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21117 which seems to be undefined. Please make sure it is defined" >&2;}
21118
21119 rm -f "$ac_tmp/stdin"
21120 case $ac_file in
21121 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
21122 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
21123 esac \
21124 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21125 ;;
21126 :H)
21127 #
21128 # CONFIG_HEADER
21129 #
21130 if test x"$ac_file" != x-; then
21131 {
21132 printf "%s\n" "/* $configure_input */" >&1 \
21133 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
21134 } >"$ac_tmp/config.h" \
21135 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21136 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
21137 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
21138 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
21139 else
21140 rm -f "$ac_file"
21141 mv "$ac_tmp/config.h" "$ac_file" \
21142 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21143 fi
21144 else
21145 printf "%s\n" "/* $configure_input */" >&1 \
21146 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
21147 || as_fn_error $? "could not create -" "$LINENO" 5
21148 fi
21149 # Compute "$ac_file"'s index in $config_headers.
21150 _am_arg="$ac_file"
21151 _am_stamp_count=1
21152 for _am_header in $config_headers :; do
21153 case $_am_header in
21154 $_am_arg | $_am_arg:* )
21155 break ;;
21156 * )
21157 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21158 esac
21159 done
21160 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
21161 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21162 X"$_am_arg" : 'X\(//\)[^/]' \| \
21163 X"$_am_arg" : 'X\(//\)$' \| \
21164 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
21165 printf "%s\n" X"$_am_arg" |
21166 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21167 s//\1/
21168 q
21169 }
21170 /^X\(\/\/\)[^/].*/{
21171 s//\1/
21172 q
21173 }
21174 /^X\(\/\/\)$/{
21175 s//\1/
21176 q
21177 }
21178 /^X\(\/\).*/{
21179 s//\1/
21180 q
21181 }
21182 s/.*/./; q'`/stamp-h$_am_stamp_count
21183 ;;
21184
21185 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
21186 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
21187 ;;
21188 esac
21189
21190
21191 case $ac_file$ac_mode in
21192 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
21193 # Older Autoconf quotes --file arguments for eval, but not when files
21194 # are listed without --file. Let's play safe and only enable the eval
21195 # if we detect the quoting.
21196 # TODO: see whether this extra hack can be removed once we start
21197 # requiring Autoconf 2.70 or later.
21198 case $CONFIG_FILES in #(
21199 *\'*) :
21200 eval set x "$CONFIG_FILES" ;; #(
21201 *) :
21202 set x $CONFIG_FILES ;; #(
21203 *) :
21204 ;;
21205 esac
21206 shift
21207 # Used to flag and report bootstrapping failures.
21208 am_rc=0
21209 for am_mf
21210 do
21211 # Strip MF so we end up with the name of the file.
21212 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
21213 # Check whether this is an Automake generated Makefile which includes
21214 # dependency-tracking related rules and includes.
21215 # Grep'ing the whole file directly is not great: AIX grep has a line
21216 # limit of 2048, but all sed's we know have understand at least 4000.
21217 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
21218 || continue
21219 am_dirpart=`$as_dirname -- "$am_mf" ||
21220 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21221 X"$am_mf" : 'X\(//\)[^/]' \| \
21222 X"$am_mf" : 'X\(//\)$' \| \
21223 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
21224 printf "%s\n" X"$am_mf" |
21225 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21226 s//\1/
21227 q
21228 }
21229 /^X\(\/\/\)[^/].*/{
21230 s//\1/
21231 q
21232 }
21233 /^X\(\/\/\)$/{
21234 s//\1/
21235 q
21236 }
21237 /^X\(\/\).*/{
21238 s//\1/
21239 q
21240 }
21241 s/.*/./; q'`
21242 am_filepart=`$as_basename -- "$am_mf" ||
21243 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
21244 X"$am_mf" : 'X\(//\)$' \| \
21245 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
21246 printf "%s\n" X/"$am_mf" |
21247 sed '/^.*\/\([^/][^/]*\)\/*$/{
21248 s//\1/
21249 q
21250 }
21251 /^X\/\(\/\/\)$/{
21252 s//\1/
21253 q
21254 }
21255 /^X\/\(\/\).*/{
21256 s//\1/
21257 q
21258 }
21259 s/.*/./; q'`
21260 { echo "$as_me:$LINENO: cd "$am_dirpart" \
21261 && sed -e '/# am--include-marker/d' "$am_filepart" \
21262 | $MAKE -f - am--depfiles" >&5
21263 (cd "$am_dirpart" \
21264 && sed -e '/# am--include-marker/d' "$am_filepart" \
21265 | $MAKE -f - am--depfiles) >&5 2>&5
21266 ac_status=$?
21267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21268 (exit $ac_status); } || am_rc=$?
21269 done
21270 if test $am_rc -ne 0; then
21271 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21272 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
21273 as_fn_error $? "Something went wrong bootstrapping makefile fragments
21274 for automatic dependency tracking. If GNU make was not used, consider
21275 re-running the configure script with MAKE=\"gmake\" (or whatever is
21276 necessary). You can also try re-running configure with the
21277 '--disable-dependency-tracking' option to at least be able to build
21278 the package (albeit without support for automatic dependency tracking).
21279 See \`config.log' for more details" "$LINENO" 5; }
21280 fi
21281 { am_dirpart=; unset am_dirpart;}
21282 { am_filepart=; unset am_filepart;}
21283 { am_mf=; unset am_mf;}
21284 { am_rc=; unset am_rc;}
21285 rm -f conftest-deps.mk
21286 }
21287 ;;
21288 "libtool":C)
21289
21290 # See if we are running on zsh, and set the options that allow our
21291 # commands through without removal of \ escapes.
21292 if test -n "${ZSH_VERSION+set}"; then
21293 setopt NO_GLOB_SUBST
21294 fi
21295
21296 cfgfile=${ofile}T
21297 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
21298 $RM "$cfgfile"
21299
21300 cat <<_LT_EOF >> "$cfgfile"
21301 #! $SHELL
21302 # Generated automatically by $as_me ($PACKAGE) $VERSION
21303 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21304 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
21305
21306 # Provide generalized library-building support services.
21307 # Written by Gordon Matzigkeit, 1996
21308
21309 # Copyright (C) 2014 Free Software Foundation, Inc.
21310 # This is free software; see the source for copying conditions. There is NO
21311 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
21312
21313 # GNU Libtool is free software; you can redistribute it and/or modify
21314 # it under the terms of the GNU General Public License as published by
21315 # the Free Software Foundation; either version 2 of of the License, or
21316 # (at your option) any later version.
21317 #
21318 # As a special exception to the GNU General Public License, if you
21319 # distribute this file as part of a program or library that is built
21320 # using GNU Libtool, you may include this file under the same
21321 # distribution terms that you use for the rest of that program.
21322 #
21323 # GNU Libtool is distributed in the hope that it will be useful, but
21324 # WITHOUT ANY WARRANTY; without even the implied warranty of
21325 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21326 # GNU General Public License for more details.
21327 #
21328 # You should have received a copy of the GNU General Public License
21329 # along with this program. If not, see <http://www.gnu.org/licenses/>.
21330
21331
21332 # The names of the tagged configurations supported by this script.
21333 available_tags=''
21334
21335 # Configured defaults for sys_lib_dlsearch_path munging.
21336 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
21337
21338 # ### BEGIN LIBTOOL CONFIG
21339
21340 # Whether or not to build static libraries.
21341 build_old_libs=$enable_static
21342
21343 # Which release of libtool.m4 was used?
21344 macro_version=$macro_version
21345 macro_revision=$macro_revision
21346
21347 # Whether or not to build shared libraries.
21348 build_libtool_libs=$enable_shared
21349
21350 # What type of objects to build.
21351 pic_mode=$pic_mode
21352
21353 # Whether or not to optimize for fast installation.
21354 fast_install=$enable_fast_install
21355
21356 # Shared archive member basename,for filename based shared library versioning on AIX.
21357 shared_archive_member_spec=$shared_archive_member_spec
21358
21359 # Shell to use when invoking shell scripts.
21360 SHELL=$lt_SHELL
21361
21362 # An echo program that protects backslashes.
21363 ECHO=$lt_ECHO
21364
21365 # The PATH separator for the build system.
21366 PATH_SEPARATOR=$lt_PATH_SEPARATOR
21367
21368 # The host system.
21369 host_alias=$host_alias
21370 host=$host
21371 host_os=$host_os
21372
21373 # The build system.
21374 build_alias=$build_alias
21375 build=$build
21376 build_os=$build_os
21377
21378 # A sed program that does not truncate output.
21379 SED=$lt_SED
21380
21381 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
21382 Xsed="\$SED -e 1s/^X//"
21383
21384 # A grep program that handles long lines.
21385 GREP=$lt_GREP
21386
21387 # An ERE matcher.
21388 EGREP=$lt_EGREP
21389
21390 # A literal string matcher.
21391 FGREP=$lt_FGREP
21392
21393 # A BSD- or MS-compatible name lister.
21394 NM=$lt_NM
21395
21396 # Whether we need soft or hard links.
21397 LN_S=$lt_LN_S
21398
21399 # What is the maximum length of a command?
21400 max_cmd_len=$max_cmd_len
21401
21402 # Object file suffix (normally "o").
21403 objext=$ac_objext
21404
21405 # Executable file suffix (normally "").
21406 exeext=$exeext
21407
21408 # whether the shell understands "unset".
21409 lt_unset=$lt_unset
21410
21411 # turn spaces into newlines.
21412 SP2NL=$lt_lt_SP2NL
21413
21414 # turn newlines into spaces.
21415 NL2SP=$lt_lt_NL2SP
21416
21417 # convert \$build file names to \$host format.
21418 to_host_file_cmd=$lt_cv_to_host_file_cmd
21419
21420 # convert \$build files to toolchain format.
21421 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
21422
21423 # A file(cmd) program that detects file types.
21424 FILECMD=$lt_FILECMD
21425
21426 # An object symbol dumper.
21427 OBJDUMP=$lt_OBJDUMP
21428
21429 # Method to check whether dependent libraries are shared objects.
21430 deplibs_check_method=$lt_deplibs_check_method
21431
21432 # Command to use when deplibs_check_method = "file_magic".
21433 file_magic_cmd=$lt_file_magic_cmd
21434
21435 # How to find potential files when deplibs_check_method = "file_magic".
21436 file_magic_glob=$lt_file_magic_glob
21437
21438 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
21439 want_nocaseglob=$lt_want_nocaseglob
21440
21441 # DLL creation program.
21442 DLLTOOL=$lt_DLLTOOL
21443
21444 # Command to associate shared and link libraries.
21445 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
21446
21447 # The archiver.
21448 AR=$lt_AR
21449
21450 # Flags to create an archive (by configure).
21451 lt_ar_flags=$lt_ar_flags
21452
21453 # Flags to create an archive.
21454 AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
21455
21456 # How to feed a file listing to the archiver.
21457 archiver_list_spec=$lt_archiver_list_spec
21458
21459 # A symbol stripping program.
21460 STRIP=$lt_STRIP
21461
21462 # Commands used to install an old-style archive.
21463 RANLIB=$lt_RANLIB
21464 old_postinstall_cmds=$lt_old_postinstall_cmds
21465 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21466
21467 # Whether to use a lock for old archive extraction.
21468 lock_old_archive_extraction=$lock_old_archive_extraction
21469
21470 # A C compiler.
21471 LTCC=$lt_CC
21472
21473 # LTCC compiler flags.
21474 LTCFLAGS=$lt_CFLAGS
21475
21476 # Take the output of nm and produce a listing of raw symbols and C names.
21477 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21478
21479 # Transform the output of nm in a proper C declaration.
21480 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21481
21482 # Transform the output of nm into a list of symbols to manually relocate.
21483 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
21484
21485 # Transform the output of nm in a C name address pair.
21486 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21487
21488 # Transform the output of nm in a C name address pair when lib prefix is needed.
21489 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
21490
21491 # The name lister interface.
21492 nm_interface=$lt_lt_cv_nm_interface
21493
21494 # Specify filename containing input files for \$NM.
21495 nm_file_list_spec=$lt_nm_file_list_spec
21496
21497 # The root where to search for dependent libraries,and where our libraries should be installed.
21498 lt_sysroot=$lt_sysroot
21499
21500 # Command to truncate a binary pipe.
21501 lt_truncate_bin=$lt_lt_cv_truncate_bin
21502
21503 # The name of the directory that contains temporary libtool files.
21504 objdir=$objdir
21505
21506 # Used to examine libraries when file_magic_cmd begins with "file".
21507 MAGIC_CMD=$MAGIC_CMD
21508
21509 # Must we lock files when doing compilation?
21510 need_locks=$lt_need_locks
21511
21512 # Manifest tool.
21513 MANIFEST_TOOL=$lt_MANIFEST_TOOL
21514
21515 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
21516 DSYMUTIL=$lt_DSYMUTIL
21517
21518 # Tool to change global to local symbols on Mac OS X.
21519 NMEDIT=$lt_NMEDIT
21520
21521 # Tool to manipulate fat objects and archives on Mac OS X.
21522 LIPO=$lt_LIPO
21523
21524 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
21525 OTOOL=$lt_OTOOL
21526
21527 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
21528 OTOOL64=$lt_OTOOL64
21529
21530 # Old archive suffix (normally "a").
21531 libext=$libext
21532
21533 # Shared library suffix (normally ".so").
21534 shrext_cmds=$lt_shrext_cmds
21535
21536 # The commands to extract the exported symbol list from a shared archive.
21537 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21538
21539 # Variables whose values should be saved in libtool wrapper scripts and
21540 # restored at link time.
21541 variables_saved_for_relink=$lt_variables_saved_for_relink
21542
21543 # Do we need the "lib" prefix for modules?
21544 need_lib_prefix=$need_lib_prefix
21545
21546 # Do we need a version for libraries?
21547 need_version=$need_version
21548
21549 # Library versioning type.
21550 version_type=$version_type
21551
21552 # Shared library runtime path variable.
21553 runpath_var=$runpath_var
21554
21555 # Shared library path variable.
21556 shlibpath_var=$shlibpath_var
21557
21558 # Is shlibpath searched before the hard-coded library search path?
21559 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21560
21561 # Format of library name prefix.
21562 libname_spec=$lt_libname_spec
21563
21564 # List of archive names. First name is the real one, the rest are links.
21565 # The last name is the one that the linker finds with -lNAME
21566 library_names_spec=$lt_library_names_spec
21567
21568 # The coded name of the library, if different from the real name.
21569 soname_spec=$lt_soname_spec
21570
21571 # Permission mode override for installation of shared libraries.
21572 install_override_mode=$lt_install_override_mode
21573
21574 # Command to use after installation of a shared archive.
21575 postinstall_cmds=$lt_postinstall_cmds
21576
21577 # Command to use after uninstallation of a shared archive.
21578 postuninstall_cmds=$lt_postuninstall_cmds
21579
21580 # Commands used to finish a libtool library installation in a directory.
21581 finish_cmds=$lt_finish_cmds
21582
21583 # As "finish_cmds", except a single script fragment to be evaled but
21584 # not shown.
21585 finish_eval=$lt_finish_eval
21586
21587 # Whether we should hardcode library paths into libraries.
21588 hardcode_into_libs=$hardcode_into_libs
21589
21590 # Compile-time system search path for libraries.
21591 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21592
21593 # Detected run-time system search path for libraries.
21594 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
21595
21596 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
21597 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
21598
21599 # Whether dlopen is supported.
21600 dlopen_support=$enable_dlopen
21601
21602 # Whether dlopen of programs is supported.
21603 dlopen_self=$enable_dlopen_self
21604
21605 # Whether dlopen of statically linked programs is supported.
21606 dlopen_self_static=$enable_dlopen_self_static
21607
21608 # Commands to strip libraries.
21609 old_striplib=$lt_old_striplib
21610 striplib=$lt_striplib
21611
21612
21613 # The linker used to build libraries.
21614 LD=$lt_LD
21615
21616 # How to create reloadable object files.
21617 reload_flag=$lt_reload_flag
21618 reload_cmds=$lt_reload_cmds
21619
21620 # Commands used to build an old-style archive.
21621 old_archive_cmds=$lt_old_archive_cmds
21622
21623 # A language specific compiler.
21624 CC=$lt_compiler
21625
21626 # Is the compiler the GNU compiler?
21627 with_gcc=$GCC
21628
21629 # Compiler flag to turn off builtin functions.
21630 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
21631
21632 # Additional compiler flags for building library objects.
21633 pic_flag=$lt_lt_prog_compiler_pic
21634
21635 # How to pass a linker flag through the compiler.
21636 wl=$lt_lt_prog_compiler_wl
21637
21638 # Compiler flag to prevent dynamic linking.
21639 link_static_flag=$lt_lt_prog_compiler_static
21640
21641 # Does compiler simultaneously support -c and -o options?
21642 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
21643
21644 # Whether or not to add -lc for building shared libraries.
21645 build_libtool_need_lc=$archive_cmds_need_lc
21646
21647 # Whether or not to disallow shared libs when runtime libs are static.
21648 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
21649
21650 # Compiler flag to allow reflexive dlopens.
21651 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
21652
21653 # Compiler flag to generate shared objects directly from archives.
21654 whole_archive_flag_spec=$lt_whole_archive_flag_spec
21655
21656 # Whether the compiler copes with passing no objects directly.
21657 compiler_needs_object=$lt_compiler_needs_object
21658
21659 # Create an old-style archive from a shared archive.
21660 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
21661
21662 # Create a temporary old-style archive to link instead of a shared archive.
21663 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
21664
21665 # Commands used to build a shared archive.
21666 archive_cmds=$lt_archive_cmds
21667 archive_expsym_cmds=$lt_archive_expsym_cmds
21668
21669 # Commands used to build a loadable module if different from building
21670 # a shared archive.
21671 module_cmds=$lt_module_cmds
21672 module_expsym_cmds=$lt_module_expsym_cmds
21673
21674 # Whether we are building with GNU ld or not.
21675 with_gnu_ld=$lt_with_gnu_ld
21676
21677 # Flag that allows shared libraries with undefined symbols to be built.
21678 allow_undefined_flag=$lt_allow_undefined_flag
21679
21680 # Flag that enforces no undefined symbols.
21681 no_undefined_flag=$lt_no_undefined_flag
21682
21683 # Flag to hardcode \$libdir into a binary during linking.
21684 # This must work even if \$libdir does not exist
21685 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
21686
21687 # Whether we need a single "-rpath" flag with a separated argument.
21688 hardcode_libdir_separator=$lt_hardcode_libdir_separator
21689
21690 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21691 # DIR into the resulting binary.
21692 hardcode_direct=$hardcode_direct
21693
21694 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21695 # DIR into the resulting binary and the resulting library dependency is
21696 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
21697 # library is relocated.
21698 hardcode_direct_absolute=$hardcode_direct_absolute
21699
21700 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21701 # into the resulting binary.
21702 hardcode_minus_L=$hardcode_minus_L
21703
21704 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21705 # into the resulting binary.
21706 hardcode_shlibpath_var=$hardcode_shlibpath_var
21707
21708 # Set to "yes" if building a shared library automatically hardcodes DIR
21709 # into the library and all subsequent libraries and executables linked
21710 # against it.
21711 hardcode_automatic=$hardcode_automatic
21712
21713 # Set to yes if linker adds runtime paths of dependent libraries
21714 # to runtime path list.
21715 inherit_rpath=$inherit_rpath
21716
21717 # Whether libtool must link a program against all its dependency libraries.
21718 link_all_deplibs=$link_all_deplibs
21719
21720 # Set to "yes" if exported symbols are required.
21721 always_export_symbols=$always_export_symbols
21722
21723 # The commands to list exported symbols.
21724 export_symbols_cmds=$lt_export_symbols_cmds
21725
21726 # Symbols that should not be listed in the preloaded symbols.
21727 exclude_expsyms=$lt_exclude_expsyms
21728
21729 # Symbols that must always be exported.
21730 include_expsyms=$lt_include_expsyms
21731
21732 # Commands necessary for linking programs (against libraries) with templates.
21733 prelink_cmds=$lt_prelink_cmds
21734
21735 # Commands necessary for finishing linking programs.
21736 postlink_cmds=$lt_postlink_cmds
21737
21738 # Specify filename containing input files.
21739 file_list_spec=$lt_file_list_spec
21740
21741 # How to hardcode a shared library path into an executable.
21742 hardcode_action=$hardcode_action
21743
21744 # ### END LIBTOOL CONFIG
21745
21746 _LT_EOF
21747
21748 cat <<'_LT_EOF' >> "$cfgfile"
21749
21750 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
21751
21752 # func_munge_path_list VARIABLE PATH
21753 # -----------------------------------
21754 # VARIABLE is name of variable containing _space_ separated list of
21755 # directories to be munged by the contents of PATH, which is string
21756 # having a format:
21757 # "DIR[:DIR]:"
21758 # string "DIR[ DIR]" will be prepended to VARIABLE
21759 # ":DIR[:DIR]"
21760 # string "DIR[ DIR]" will be appended to VARIABLE
21761 # "DIRP[:DIRP]::[DIRA:]DIRA"
21762 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
21763 # "DIRA[ DIRA]" will be appended to VARIABLE
21764 # "DIR[:DIR]"
21765 # VARIABLE will be replaced by "DIR[ DIR]"
21766 func_munge_path_list ()
21767 {
21768 case x$2 in
21769 x)
21770 ;;
21771 *:)
21772 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
21773 ;;
21774 x:*)
21775 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
21776 ;;
21777 *::*)
21778 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
21779 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
21780 ;;
21781 *)
21782 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
21783 ;;
21784 esac
21785 }
21786
21787
21788 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
21789 func_cc_basename ()
21790 {
21791 for cc_temp in $*""; do
21792 case $cc_temp in
21793 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21794 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21795 \-*) ;;
21796 *) break;;
21797 esac
21798 done
21799 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
21800 }
21801
21802
21803 # ### END FUNCTIONS SHARED WITH CONFIGURE
21804
21805 _LT_EOF
21806
21807 case $host_os in
21808 aix3*)
21809 cat <<\_LT_EOF >> "$cfgfile"
21810 # AIX sometimes has problems with the GCC collect2 program. For some
21811 # reason, if we set the COLLECT_NAMES environment variable, the problems
21812 # vanish in a puff of smoke.
21813 if test set != "${COLLECT_NAMES+set}"; then
21814 COLLECT_NAMES=
21815 export COLLECT_NAMES
21816 fi
21817 _LT_EOF
21818 ;;
21819 esac
21820
21821
21822
21823 ltmain=$ac_aux_dir/ltmain.sh
21824
21825
21826 # We use sed instead of cat because bash on DJGPP gets confused if
21827 # if finds mixed CR/LF and LF-only lines. Since sed operates in
21828 # text mode, it properly converts lines to CR/LF. This bash problem
21829 # is reportedly fixed, but why not run on old versions too?
21830 $SED '$q' "$ltmain" >> "$cfgfile" \
21831 || (rm -f "$cfgfile"; exit 1)
21832
21833 mv -f "$cfgfile" "$ofile" ||
21834 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
21835 chmod +x "$ofile"
21836
21837 ;;
21838
21839 esac
21840 done # for ac_tag
21841
21842
21843 as_fn_exit 0
21844 _ACEOF
21845 ac_clean_files=$ac_clean_files_save
21846
21847 test $ac_write_fail = 0 ||
21848 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
21849
21850
21851 # configure is writing to config.log, and then calls config.status.
21852 # config.status does its own redirection, appending to config.log.
21853 # Unfortunately, on DOS this fails, as config.log is still kept open
21854 # by configure, so config.status won't be able to write to it; its
21855 # output is simply discarded. So we exec the FD to /dev/null,
21856 # effectively closing config.log, so it can be properly (re)opened and
21857 # appended to by config.status. When coming back to configure, we
21858 # need to make the FD available again.
21859 if test "$no_create" != yes; then
21860 ac_cs_success=:
21861 ac_config_status_args=
21862 test "$silent" = yes &&
21863 ac_config_status_args="$ac_config_status_args --quiet"
21864 exec 5>/dev/null
21865 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21866 exec 5>>config.log
21867 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21868 # would make configure fail if this is the last instruction.
21869 $ac_cs_success || as_fn_exit 1
21870 fi
21871 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
21872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21873 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
21874 fi
21875
21876
21877