configure revision 1.1.1.8 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.71 for xf86-video-nv 2.1.22.
4 #
5 # Report bugs to <https://gitlab.freedesktop.org/xorg/driver/xf86-video-nv/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-nv/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-nv'
624 PACKAGE_TARNAME='xf86-video-nv'
625 PACKAGE_VERSION='2.1.22'
626 PACKAGE_STRING='xf86-video-nv 2.1.22'
627 PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/driver/xf86-video-nv/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 XAA_FALSE
670 XAA_TRUE
671 PCIACCESS_LIBS
672 PCIACCESS_CFLAGS
673 HAVE_XEXTPROTO_71_FALSE
674 HAVE_XEXTPROTO_71_TRUE
675 XEXT_LIBS
676 XEXT_CFLAGS
677 XORG_LIBS
678 XORG_CFLAGS
679 LT_SYS_LIBRARY_PATH
680 OTOOL64
681 OTOOL
682 LIPO
683 NMEDIT
684 DSYMUTIL
685 MANIFEST_TOOL
686 RANLIB
687 ac_ct_AR
688 AR
689 DLLTOOL
690 OBJDUMP
691 FILECMD
692 LN_S
693 NM
694 ac_ct_DUMPBIN
695 DUMPBIN
696 LD
697 FGREP
698 EGREP
699 GREP
700 LIBTOOL
701 CSCOPE
702 ETAGS
703 CTAGS
704 am__fastdepCC_FALSE
705 am__fastdepCC_TRUE
706 CCDEPMODE
707 am__nodep
708 AMDEPBACKSLASH
709 AMDEP_FALSE
710 AMDEP_TRUE
711 am__include
712 DEPDIR
713 am__untar
714 am__tar
715 AMTAR
716 am__leading_dot
717 SET_MAKE
718 AWK
719 mkdir_p
720 MKDIR_P
721 INSTALL_STRIP_PROGRAM
722 STRIP
723 install_sh
724 MAKEINFO
725 AUTOHEADER
726 AUTOMAKE
727 AUTOCONF
728 ACLOCAL
729 VERSION
730 PACKAGE
731 CYGPATH_W
732 am__isrc
733 AM_BACKSLASH
734 AM_DEFAULT_VERBOSITY
735 AM_DEFAULT_V
736 AM_V
737 MAN_SUBSTS
738 XORG_MAN_PAGE
739 ADMIN_MAN_DIR
740 DRIVER_MAN_DIR
741 MISC_MAN_DIR
742 FILE_MAN_DIR
743 LIB_MAN_DIR
744 APP_MAN_DIR
745 ADMIN_MAN_SUFFIX
746 DRIVER_MAN_SUFFIX
747 MISC_MAN_SUFFIX
748 FILE_MAN_SUFFIX
749 LIB_MAN_SUFFIX
750 APP_MAN_SUFFIX
751 SED
752 host_os
753 host_vendor
754 host_cpu
755 host
756 build_os
757 build_vendor
758 build_cpu
759 build
760 INSTALL_CMD
761 PKG_CONFIG_LIBDIR
762 PKG_CONFIG_PATH
763 PKG_CONFIG
764 CHANGELOG_CMD
765 STRICT_CFLAGS
766 CWARNFLAGS
767 BASE_CFLAGS
768 OBJEXT
769 EXEEXT
770 ac_ct_CC
771 CPPFLAGS
772 LDFLAGS
773 CFLAGS
774 CC
775 INSTALL_DATA
776 INSTALL_SCRIPT
777 INSTALL_PROGRAM
778 target_alias
779 host_alias
780 build_alias
781 LIBS
782 ECHO_T
783 ECHO_N
784 ECHO_C
785 DEFS
786 mandir
787 localedir
788 libdir
789 psdir
790 pdfdir
791 dvidir
792 htmldir
793 infodir
794 docdir
795 oldincludedir
796 includedir
797 runstatedir
798 localstatedir
799 sharedstatedir
800 sysconfdir
801 datadir
802 datarootdir
803 libexecdir
804 sbindir
805 bindir
806 program_transform_name
807 prefix
808 exec_prefix
809 PACKAGE_URL
810 PACKAGE_BUGREPORT
811 PACKAGE_STRING
812 PACKAGE_VERSION
813 PACKAGE_TARNAME
814 PACKAGE_NAME
815 PATH_SEPARATOR
816 SHELL
817 am__quote'
818 ac_subst_files=''
819 ac_user_opts='
820 enable_option_checking
821 enable_selective_werror
822 enable_strict_compilation
823 enable_silent_rules
824 enable_dependency_tracking
825 enable_static
826 enable_shared
827 with_pic
828 enable_fast_install
829 with_aix_soname
830 with_gnu_ld
831 with_sysroot
832 enable_libtool_lock
833 with_xorg_module_dir
834 enable_xaa
835 '
836 ac_precious_vars='build_alias
837 host_alias
838 target_alias
839 CC
840 CFLAGS
841 LDFLAGS
842 LIBS
843 CPPFLAGS
844 PKG_CONFIG
845 PKG_CONFIG_PATH
846 PKG_CONFIG_LIBDIR
847 LT_SYS_LIBRARY_PATH
848 XORG_CFLAGS
849 XORG_LIBS
850 XEXT_CFLAGS
851 XEXT_LIBS
852 PCIACCESS_CFLAGS
853 PCIACCESS_LIBS'
854
855
856 # Initialize some variables set by options.
857 ac_init_help=
858 ac_init_version=false
859 ac_unrecognized_opts=
860 ac_unrecognized_sep=
861 # The variables have the same names as the options, with
862 # dashes changed to underlines.
863 cache_file=/dev/null
864 exec_prefix=NONE
865 no_create=
866 no_recursion=
867 prefix=NONE
868 program_prefix=NONE
869 program_suffix=NONE
870 program_transform_name=s,x,x,
871 silent=
872 site=
873 srcdir=
874 verbose=
875 x_includes=NONE
876 x_libraries=NONE
877
878 # Installation directory options.
879 # These are left unexpanded so users can "make install exec_prefix=/foo"
880 # and all the variables that are supposed to be based on exec_prefix
881 # by default will actually change.
882 # Use braces instead of parens because sh, perl, etc. also accept them.
883 # (The list follows the same order as the GNU Coding Standards.)
884 bindir='${exec_prefix}/bin'
885 sbindir='${exec_prefix}/sbin'
886 libexecdir='${exec_prefix}/libexec'
887 datarootdir='${prefix}/share'
888 datadir='${datarootdir}'
889 sysconfdir='${prefix}/etc'
890 sharedstatedir='${prefix}/com'
891 localstatedir='${prefix}/var'
892 runstatedir='${localstatedir}/run'
893 includedir='${prefix}/include'
894 oldincludedir='/usr/include'
895 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
896 infodir='${datarootdir}/info'
897 htmldir='${docdir}'
898 dvidir='${docdir}'
899 pdfdir='${docdir}'
900 psdir='${docdir}'
901 libdir='${exec_prefix}/lib'
902 localedir='${datarootdir}/locale'
903 mandir='${datarootdir}/man'
904
905 ac_prev=
906 ac_dashdash=
907 for ac_option
908 do
909 # If the previous option needs an argument, assign it.
910 if test -n "$ac_prev"; then
911 eval $ac_prev=\$ac_option
912 ac_prev=
913 continue
914 fi
915
916 case $ac_option in
917 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
918 *=) ac_optarg= ;;
919 *) ac_optarg=yes ;;
920 esac
921
922 case $ac_dashdash$ac_option in
923 --)
924 ac_dashdash=yes ;;
925
926 -bindir | --bindir | --bindi | --bind | --bin | --bi)
927 ac_prev=bindir ;;
928 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
929 bindir=$ac_optarg ;;
930
931 -build | --build | --buil | --bui | --bu)
932 ac_prev=build_alias ;;
933 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
934 build_alias=$ac_optarg ;;
935
936 -cache-file | --cache-file | --cache-fil | --cache-fi \
937 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
938 ac_prev=cache_file ;;
939 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
940 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
941 cache_file=$ac_optarg ;;
942
943 --config-cache | -C)
944 cache_file=config.cache ;;
945
946 -datadir | --datadir | --datadi | --datad)
947 ac_prev=datadir ;;
948 -datadir=* | --datadir=* | --datadi=* | --datad=*)
949 datadir=$ac_optarg ;;
950
951 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
952 | --dataroo | --dataro | --datar)
953 ac_prev=datarootdir ;;
954 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
955 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
956 datarootdir=$ac_optarg ;;
957
958 -disable-* | --disable-*)
959 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
960 # Reject names that are not valid shell variable names.
961 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
962 as_fn_error $? "invalid feature name: \`$ac_useropt'"
963 ac_useropt_orig=$ac_useropt
964 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
965 case $ac_user_opts in
966 *"
967 "enable_$ac_useropt"
968 "*) ;;
969 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
970 ac_unrecognized_sep=', ';;
971 esac
972 eval enable_$ac_useropt=no ;;
973
974 -docdir | --docdir | --docdi | --doc | --do)
975 ac_prev=docdir ;;
976 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
977 docdir=$ac_optarg ;;
978
979 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
980 ac_prev=dvidir ;;
981 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
982 dvidir=$ac_optarg ;;
983
984 -enable-* | --enable-*)
985 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
986 # Reject names that are not valid shell variable names.
987 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
988 as_fn_error $? "invalid feature name: \`$ac_useropt'"
989 ac_useropt_orig=$ac_useropt
990 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
991 case $ac_user_opts in
992 *"
993 "enable_$ac_useropt"
994 "*) ;;
995 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
996 ac_unrecognized_sep=', ';;
997 esac
998 eval enable_$ac_useropt=\$ac_optarg ;;
999
1000 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1001 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1002 | --exec | --exe | --ex)
1003 ac_prev=exec_prefix ;;
1004 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1005 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1006 | --exec=* | --exe=* | --ex=*)
1007 exec_prefix=$ac_optarg ;;
1008
1009 -gas | --gas | --ga | --g)
1010 # Obsolete; use --with-gas.
1011 with_gas=yes ;;
1012
1013 -help | --help | --hel | --he | -h)
1014 ac_init_help=long ;;
1015 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1016 ac_init_help=recursive ;;
1017 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1018 ac_init_help=short ;;
1019
1020 -host | --host | --hos | --ho)
1021 ac_prev=host_alias ;;
1022 -host=* | --host=* | --hos=* | --ho=*)
1023 host_alias=$ac_optarg ;;
1024
1025 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1026 ac_prev=htmldir ;;
1027 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1028 | --ht=*)
1029 htmldir=$ac_optarg ;;
1030
1031 -includedir | --includedir | --includedi | --included | --include \
1032 | --includ | --inclu | --incl | --inc)
1033 ac_prev=includedir ;;
1034 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1035 | --includ=* | --inclu=* | --incl=* | --inc=*)
1036 includedir=$ac_optarg ;;
1037
1038 -infodir | --infodir | --infodi | --infod | --info | --inf)
1039 ac_prev=infodir ;;
1040 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1041 infodir=$ac_optarg ;;
1042
1043 -libdir | --libdir | --libdi | --libd)
1044 ac_prev=libdir ;;
1045 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1046 libdir=$ac_optarg ;;
1047
1048 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1049 | --libexe | --libex | --libe)
1050 ac_prev=libexecdir ;;
1051 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1052 | --libexe=* | --libex=* | --libe=*)
1053 libexecdir=$ac_optarg ;;
1054
1055 -localedir | --localedir | --localedi | --localed | --locale)
1056 ac_prev=localedir ;;
1057 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1058 localedir=$ac_optarg ;;
1059
1060 -localstatedir | --localstatedir | --localstatedi | --localstated \
1061 | --localstate | --localstat | --localsta | --localst | --locals)
1062 ac_prev=localstatedir ;;
1063 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1064 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1065 localstatedir=$ac_optarg ;;
1066
1067 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1068 ac_prev=mandir ;;
1069 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1070 mandir=$ac_optarg ;;
1071
1072 -nfp | --nfp | --nf)
1073 # Obsolete; use --without-fp.
1074 with_fp=no ;;
1075
1076 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1077 | --no-cr | --no-c | -n)
1078 no_create=yes ;;
1079
1080 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1081 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1082 no_recursion=yes ;;
1083
1084 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1085 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1086 | --oldin | --oldi | --old | --ol | --o)
1087 ac_prev=oldincludedir ;;
1088 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1089 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1090 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1091 oldincludedir=$ac_optarg ;;
1092
1093 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1094 ac_prev=prefix ;;
1095 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1096 prefix=$ac_optarg ;;
1097
1098 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1099 | --program-pre | --program-pr | --program-p)
1100 ac_prev=program_prefix ;;
1101 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1102 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1103 program_prefix=$ac_optarg ;;
1104
1105 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1106 | --program-suf | --program-su | --program-s)
1107 ac_prev=program_suffix ;;
1108 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1109 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1110 program_suffix=$ac_optarg ;;
1111
1112 -program-transform-name | --program-transform-name \
1113 | --program-transform-nam | --program-transform-na \
1114 | --program-transform-n | --program-transform- \
1115 | --program-transform | --program-transfor \
1116 | --program-transfo | --program-transf \
1117 | --program-trans | --program-tran \
1118 | --progr-tra | --program-tr | --program-t)
1119 ac_prev=program_transform_name ;;
1120 -program-transform-name=* | --program-transform-name=* \
1121 | --program-transform-nam=* | --program-transform-na=* \
1122 | --program-transform-n=* | --program-transform-=* \
1123 | --program-transform=* | --program-transfor=* \
1124 | --program-transfo=* | --program-transf=* \
1125 | --program-trans=* | --program-tran=* \
1126 | --progr-tra=* | --program-tr=* | --program-t=*)
1127 program_transform_name=$ac_optarg ;;
1128
1129 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1130 ac_prev=pdfdir ;;
1131 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1132 pdfdir=$ac_optarg ;;
1133
1134 -psdir | --psdir | --psdi | --psd | --ps)
1135 ac_prev=psdir ;;
1136 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1137 psdir=$ac_optarg ;;
1138
1139 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1140 | -silent | --silent | --silen | --sile | --sil)
1141 silent=yes ;;
1142
1143 -runstatedir | --runstatedir | --runstatedi | --runstated \
1144 | --runstate | --runstat | --runsta | --runst | --runs \
1145 | --run | --ru | --r)
1146 ac_prev=runstatedir ;;
1147 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1148 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1149 | --run=* | --ru=* | --r=*)
1150 runstatedir=$ac_optarg ;;
1151
1152 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1153 ac_prev=sbindir ;;
1154 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1155 | --sbi=* | --sb=*)
1156 sbindir=$ac_optarg ;;
1157
1158 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1159 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1160 | --sharedst | --shareds | --shared | --share | --shar \
1161 | --sha | --sh)
1162 ac_prev=sharedstatedir ;;
1163 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1164 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1165 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1166 | --sha=* | --sh=*)
1167 sharedstatedir=$ac_optarg ;;
1168
1169 -site | --site | --sit)
1170 ac_prev=site ;;
1171 -site=* | --site=* | --sit=*)
1172 site=$ac_optarg ;;
1173
1174 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1175 ac_prev=srcdir ;;
1176 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1177 srcdir=$ac_optarg ;;
1178
1179 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1180 | --syscon | --sysco | --sysc | --sys | --sy)
1181 ac_prev=sysconfdir ;;
1182 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1183 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1184 sysconfdir=$ac_optarg ;;
1185
1186 -target | --target | --targe | --targ | --tar | --ta | --t)
1187 ac_prev=target_alias ;;
1188 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1189 target_alias=$ac_optarg ;;
1190
1191 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1192 verbose=yes ;;
1193
1194 -version | --version | --versio | --versi | --vers | -V)
1195 ac_init_version=: ;;
1196
1197 -with-* | --with-*)
1198 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1199 # Reject names that are not valid shell variable names.
1200 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1201 as_fn_error $? "invalid package name: \`$ac_useropt'"
1202 ac_useropt_orig=$ac_useropt
1203 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1204 case $ac_user_opts in
1205 *"
1206 "with_$ac_useropt"
1207 "*) ;;
1208 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1209 ac_unrecognized_sep=', ';;
1210 esac
1211 eval with_$ac_useropt=\$ac_optarg ;;
1212
1213 -without-* | --without-*)
1214 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1215 # Reject names that are not valid shell variable names.
1216 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1217 as_fn_error $? "invalid package name: \`$ac_useropt'"
1218 ac_useropt_orig=$ac_useropt
1219 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1220 case $ac_user_opts in
1221 *"
1222 "with_$ac_useropt"
1223 "*) ;;
1224 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1225 ac_unrecognized_sep=', ';;
1226 esac
1227 eval with_$ac_useropt=no ;;
1228
1229 --x)
1230 # Obsolete; use --with-x.
1231 with_x=yes ;;
1232
1233 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1234 | --x-incl | --x-inc | --x-in | --x-i)
1235 ac_prev=x_includes ;;
1236 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1237 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1238 x_includes=$ac_optarg ;;
1239
1240 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1241 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1242 ac_prev=x_libraries ;;
1243 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1244 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1245 x_libraries=$ac_optarg ;;
1246
1247 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1248 Try \`$0 --help' for more information"
1249 ;;
1250
1251 *=*)
1252 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1253 # Reject names that are not valid shell variable names.
1254 case $ac_envvar in #(
1255 '' | [0-9]* | *[!_$as_cr_alnum]* )
1256 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1257 esac
1258 eval $ac_envvar=\$ac_optarg
1259 export $ac_envvar ;;
1260
1261 *)
1262 # FIXME: should be removed in autoconf 3.0.
1263 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1264 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1265 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1266 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1267 ;;
1268
1269 esac
1270 done
1271
1272 if test -n "$ac_prev"; then
1273 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1274 as_fn_error $? "missing argument to $ac_option"
1275 fi
1276
1277 if test -n "$ac_unrecognized_opts"; then
1278 case $enable_option_checking in
1279 no) ;;
1280 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1281 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1282 esac
1283 fi
1284
1285 # Check all directory arguments for consistency.
1286 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1287 datadir sysconfdir sharedstatedir localstatedir includedir \
1288 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1289 libdir localedir mandir runstatedir
1290 do
1291 eval ac_val=\$$ac_var
1292 # Remove trailing slashes.
1293 case $ac_val in
1294 */ )
1295 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1296 eval $ac_var=\$ac_val;;
1297 esac
1298 # Be sure to have absolute directory names.
1299 case $ac_val in
1300 [\\/$]* | ?:[\\/]* ) continue;;
1301 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1302 esac
1303 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1304 done
1305
1306 # There might be people who depend on the old broken behavior: `$host'
1307 # used to hold the argument of --host etc.
1308 # FIXME: To remove some day.
1309 build=$build_alias
1310 host=$host_alias
1311 target=$target_alias
1312
1313 # FIXME: To remove some day.
1314 if test "x$host_alias" != x; then
1315 if test "x$build_alias" = x; then
1316 cross_compiling=maybe
1317 elif test "x$build_alias" != "x$host_alias"; then
1318 cross_compiling=yes
1319 fi
1320 fi
1321
1322 ac_tool_prefix=
1323 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1324
1325 test "$silent" = yes && exec 6>/dev/null
1326
1327
1328 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1329 ac_ls_di=`ls -di .` &&
1330 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1331 as_fn_error $? "working directory cannot be determined"
1332 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1333 as_fn_error $? "pwd does not report name of working directory"
1334
1335
1336 # Find the source files, if location was not specified.
1337 if test -z "$srcdir"; then
1338 ac_srcdir_defaulted=yes
1339 # Try the directory containing this script, then the parent directory.
1340 ac_confdir=`$as_dirname -- "$as_myself" ||
1341 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1342 X"$as_myself" : 'X\(//\)[^/]' \| \
1343 X"$as_myself" : 'X\(//\)$' \| \
1344 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1345 printf "%s\n" X"$as_myself" |
1346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1347 s//\1/
1348 q
1349 }
1350 /^X\(\/\/\)[^/].*/{
1351 s//\1/
1352 q
1353 }
1354 /^X\(\/\/\)$/{
1355 s//\1/
1356 q
1357 }
1358 /^X\(\/\).*/{
1359 s//\1/
1360 q
1361 }
1362 s/.*/./; q'`
1363 srcdir=$ac_confdir
1364 if test ! -r "$srcdir/$ac_unique_file"; then
1365 srcdir=..
1366 fi
1367 else
1368 ac_srcdir_defaulted=no
1369 fi
1370 if test ! -r "$srcdir/$ac_unique_file"; then
1371 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1372 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1373 fi
1374 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1375 ac_abs_confdir=`(
1376 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1377 pwd)`
1378 # When building in place, set srcdir=.
1379 if test "$ac_abs_confdir" = "$ac_pwd"; then
1380 srcdir=.
1381 fi
1382 # Remove unnecessary trailing slashes from srcdir.
1383 # Double slashes in file names in object file debugging info
1384 # mess up M-x gdb in Emacs.
1385 case $srcdir in
1386 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1387 esac
1388 for ac_var in $ac_precious_vars; do
1389 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1390 eval ac_env_${ac_var}_value=\$${ac_var}
1391 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1392 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1393 done
1394
1395 #
1396 # Report the --help message.
1397 #
1398 if test "$ac_init_help" = "long"; then
1399 # Omit some internal or obsolete options to make the list less imposing.
1400 # This message is too long to be a string in the A/UX 3.1 sh.
1401 cat <<_ACEOF
1402 \`configure' configures xf86-video-nv 2.1.22 to adapt to many kinds of systems.
1403
1404 Usage: $0 [OPTION]... [VAR=VALUE]...
1405
1406 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1407 VAR=VALUE. See below for descriptions of some of the useful variables.
1408
1409 Defaults for the options are specified in brackets.
1410
1411 Configuration:
1412 -h, --help display this help and exit
1413 --help=short display options specific to this package
1414 --help=recursive display the short help of all the included packages
1415 -V, --version display version information and exit
1416 -q, --quiet, --silent do not print \`checking ...' messages
1417 --cache-file=FILE cache test results in FILE [disabled]
1418 -C, --config-cache alias for \`--cache-file=config.cache'
1419 -n, --no-create do not create output files
1420 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1421
1422 Installation directories:
1423 --prefix=PREFIX install architecture-independent files in PREFIX
1424 [$ac_default_prefix]
1425 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1426 [PREFIX]
1427
1428 By default, \`make install' will install all the files in
1429 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1430 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1431 for instance \`--prefix=\$HOME'.
1432
1433 For better control, use the options below.
1434
1435 Fine tuning of the installation directories:
1436 --bindir=DIR user executables [EPREFIX/bin]
1437 --sbindir=DIR system admin executables [EPREFIX/sbin]
1438 --libexecdir=DIR program executables [EPREFIX/libexec]
1439 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1440 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1441 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1442 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1443 --libdir=DIR object code libraries [EPREFIX/lib]
1444 --includedir=DIR C header files [PREFIX/include]
1445 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1446 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1447 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1448 --infodir=DIR info documentation [DATAROOTDIR/info]
1449 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1450 --mandir=DIR man documentation [DATAROOTDIR/man]
1451 --docdir=DIR documentation root [DATAROOTDIR/doc/xf86-video-nv]
1452 --htmldir=DIR html documentation [DOCDIR]
1453 --dvidir=DIR dvi documentation [DOCDIR]
1454 --pdfdir=DIR pdf documentation [DOCDIR]
1455 --psdir=DIR ps documentation [DOCDIR]
1456 _ACEOF
1457
1458 cat <<\_ACEOF
1459
1460 Program names:
1461 --program-prefix=C prepend C to installed program names
1462 --program-suffix=SUFFIX append SUFFIX to installed program names
1463 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1464
1465 System types:
1466 --build=BUILD configure for building on BUILD [guessed]
1467 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1468 _ACEOF
1469 fi
1470
1471 if test -n "$ac_init_help"; then
1472 case $ac_init_help in
1473 short | recursive ) echo "Configuration of xf86-video-nv 2.1.22:";;
1474 esac
1475 cat <<\_ACEOF
1476
1477 Optional Features:
1478 --disable-option-checking ignore unrecognized --enable/--with options
1479 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1480 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1481 --disable-selective-werror
1482 Turn off selective compiler errors. (default:
1483 enabled)
1484 --enable-strict-compilation
1485 Enable all warnings from compiler and make them
1486 errors (default: disabled)
1487 --enable-silent-rules less verbose build output (undo: "make V=1")
1488 --disable-silent-rules verbose build output (undo: "make V=0")
1489 --enable-dependency-tracking
1490 do not reject slow dependency extractors
1491 --disable-dependency-tracking
1492 speeds up one-time build
1493 --enable-static[=PKGS] build static libraries [default=no]
1494 --enable-shared[=PKGS] build shared libraries [default=yes]
1495 --enable-fast-install[=PKGS]
1496 optimize for fast installation [default=yes]
1497 --disable-libtool-lock avoid locking (might break parallel builds)
1498 --enable-xaa Enable legacy X Acceleration Architecture (XAA)
1499 [default=auto]
1500
1501 Optional Packages:
1502 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1503 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1504 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1505 both]
1506 --with-aix-soname=aix|svr4|both
1507 shared library versioning (aka "SONAME") variant to
1508 provide on AIX, [default=aix].
1509 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1510 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1511 compiler's sysroot if not specified).
1512 --with-xorg-module-dir=DIR
1513 Default xorg module directory
1514 [[default=$libdir/xorg/modules]]
1515
1516 Some influential environment variables:
1517 CC C compiler command
1518 CFLAGS C compiler flags
1519 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1520 nonstandard directory <lib dir>
1521 LIBS libraries to pass to the linker, e.g. -l<library>
1522 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1523 you have headers in a nonstandard directory <include dir>
1524 PKG_CONFIG path to pkg-config utility
1525 PKG_CONFIG_PATH
1526 directories to add to pkg-config's search path
1527 PKG_CONFIG_LIBDIR
1528 path overriding pkg-config's built-in search path
1529 LT_SYS_LIBRARY_PATH
1530 User-defined run-time library search path.
1531 XORG_CFLAGS C compiler flags for XORG, overriding pkg-config
1532 XORG_LIBS linker flags for XORG, overriding pkg-config
1533 XEXT_CFLAGS C compiler flags for XEXT, overriding pkg-config
1534 XEXT_LIBS linker flags for XEXT, overriding pkg-config
1535 PCIACCESS_CFLAGS
1536 C compiler flags for PCIACCESS, overriding pkg-config
1537 PCIACCESS_LIBS
1538 linker flags for PCIACCESS, overriding pkg-config
1539
1540 Use these variables to override the choices made by `configure' or to help
1541 it to find libraries and programs with nonstandard names/locations.
1542
1543 Report bugs to <https://gitlab.freedesktop.org/xorg/driver/xf86-video-nv/issues>.
1544 _ACEOF
1545 ac_status=$?
1546 fi
1547
1548 if test "$ac_init_help" = "recursive"; then
1549 # If there are subdirs, report their specific --help.
1550 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1551 test -d "$ac_dir" ||
1552 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1553 continue
1554 ac_builddir=.
1555
1556 case "$ac_dir" in
1557 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1558 *)
1559 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1560 # A ".." for each directory in $ac_dir_suffix.
1561 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1562 case $ac_top_builddir_sub in
1563 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1564 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1565 esac ;;
1566 esac
1567 ac_abs_top_builddir=$ac_pwd
1568 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1569 # for backward compatibility:
1570 ac_top_builddir=$ac_top_build_prefix
1571
1572 case $srcdir in
1573 .) # We are building in place.
1574 ac_srcdir=.
1575 ac_top_srcdir=$ac_top_builddir_sub
1576 ac_abs_top_srcdir=$ac_pwd ;;
1577 [\\/]* | ?:[\\/]* ) # Absolute name.
1578 ac_srcdir=$srcdir$ac_dir_suffix;
1579 ac_top_srcdir=$srcdir
1580 ac_abs_top_srcdir=$srcdir ;;
1581 *) # Relative name.
1582 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1583 ac_top_srcdir=$ac_top_build_prefix$srcdir
1584 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1585 esac
1586 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1587
1588 cd "$ac_dir" || { ac_status=$?; continue; }
1589 # Check for configure.gnu first; this name is used for a wrapper for
1590 # Metaconfig's "Configure" on case-insensitive file systems.
1591 if test -f "$ac_srcdir/configure.gnu"; then
1592 echo &&
1593 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1594 elif test -f "$ac_srcdir/configure"; then
1595 echo &&
1596 $SHELL "$ac_srcdir/configure" --help=recursive
1597 else
1598 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1599 fi || ac_status=$?
1600 cd "$ac_pwd" || { ac_status=$?; break; }
1601 done
1602 fi
1603
1604 test -n "$ac_init_help" && exit $ac_status
1605 if $ac_init_version; then
1606 cat <<\_ACEOF
1607 xf86-video-nv configure 2.1.22
1608 generated by GNU Autoconf 2.71
1609
1610 Copyright (C) 2021 Free Software Foundation, Inc.
1611 This configure script is free software; the Free Software Foundation
1612 gives unlimited permission to copy, distribute and modify it.
1613 _ACEOF
1614 exit
1615 fi
1616
1617 ## ------------------------ ##
1618 ## Autoconf initialization. ##
1619 ## ------------------------ ##
1620
1621 # ac_fn_c_try_compile LINENO
1622 # --------------------------
1623 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1624 ac_fn_c_try_compile ()
1625 {
1626 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1627 rm -f conftest.$ac_objext conftest.beam
1628 if { { ac_try="$ac_compile"
1629 case "(($ac_try" in
1630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1631 *) ac_try_echo=$ac_try;;
1632 esac
1633 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1634 printf "%s\n" "$ac_try_echo"; } >&5
1635 (eval "$ac_compile") 2>conftest.err
1636 ac_status=$?
1637 if test -s conftest.err; then
1638 grep -v '^ *+' conftest.err >conftest.er1
1639 cat conftest.er1 >&5
1640 mv -f conftest.er1 conftest.err
1641 fi
1642 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1643 test $ac_status = 0; } && {
1644 test -z "$ac_c_werror_flag" ||
1645 test ! -s conftest.err
1646 } && test -s conftest.$ac_objext
1647 then :
1648 ac_retval=0
1649 else $as_nop
1650 printf "%s\n" "$as_me: failed program was:" >&5
1651 sed 's/^/| /' conftest.$ac_ext >&5
1652
1653 ac_retval=1
1654 fi
1655 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1656 as_fn_set_status $ac_retval
1657
1658 } # ac_fn_c_try_compile
1659
1660 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
1661 # ------------------------------------------------------------------
1662 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1663 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
1664 ac_fn_check_decl ()
1665 {
1666 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1667 as_decl_name=`echo $2|sed 's/ *(.*//'`
1668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1669 printf %s "checking whether $as_decl_name is declared... " >&6; }
1670 if eval test \${$3+y}
1671 then :
1672 printf %s "(cached) " >&6
1673 else $as_nop
1674 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1675 eval ac_save_FLAGS=\$$6
1676 as_fn_append $6 " $5"
1677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1678 /* end confdefs.h. */
1679 $4
1680 int
1681 main (void)
1682 {
1683 #ifndef $as_decl_name
1684 #ifdef __cplusplus
1685 (void) $as_decl_use;
1686 #else
1687 (void) $as_decl_name;
1688 #endif
1689 #endif
1690
1691 ;
1692 return 0;
1693 }
1694 _ACEOF
1695 if ac_fn_c_try_compile "$LINENO"
1696 then :
1697 eval "$3=yes"
1698 else $as_nop
1699 eval "$3=no"
1700 fi
1701 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1702 eval $6=\$ac_save_FLAGS
1703
1704 fi
1705 eval ac_res=\$$3
1706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1707 printf "%s\n" "$ac_res" >&6; }
1708 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1709
1710 } # ac_fn_check_decl
1711
1712 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1713 # -------------------------------------------------------
1714 # Tests whether HEADER exists and can be compiled using the include files in
1715 # INCLUDES, setting the cache variable VAR accordingly.
1716 ac_fn_c_check_header_compile ()
1717 {
1718 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1720 printf %s "checking for $2... " >&6; }
1721 if eval test \${$3+y}
1722 then :
1723 printf %s "(cached) " >&6
1724 else $as_nop
1725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1726 /* end confdefs.h. */
1727 $4
1728 #include <$2>
1729 _ACEOF
1730 if ac_fn_c_try_compile "$LINENO"
1731 then :
1732 eval "$3=yes"
1733 else $as_nop
1734 eval "$3=no"
1735 fi
1736 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1737 fi
1738 eval ac_res=\$$3
1739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1740 printf "%s\n" "$ac_res" >&6; }
1741 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1742
1743 } # ac_fn_c_check_header_compile
1744
1745 # ac_fn_c_try_link LINENO
1746 # -----------------------
1747 # Try to link conftest.$ac_ext, and return whether this succeeded.
1748 ac_fn_c_try_link ()
1749 {
1750 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1751 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1752 if { { ac_try="$ac_link"
1753 case "(($ac_try" in
1754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1755 *) ac_try_echo=$ac_try;;
1756 esac
1757 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1758 printf "%s\n" "$ac_try_echo"; } >&5
1759 (eval "$ac_link") 2>conftest.err
1760 ac_status=$?
1761 if test -s conftest.err; then
1762 grep -v '^ *+' conftest.err >conftest.er1
1763 cat conftest.er1 >&5
1764 mv -f conftest.er1 conftest.err
1765 fi
1766 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1767 test $ac_status = 0; } && {
1768 test -z "$ac_c_werror_flag" ||
1769 test ! -s conftest.err
1770 } && test -s conftest$ac_exeext && {
1771 test "$cross_compiling" = yes ||
1772 test -x conftest$ac_exeext
1773 }
1774 then :
1775 ac_retval=0
1776 else $as_nop
1777 printf "%s\n" "$as_me: failed program was:" >&5
1778 sed 's/^/| /' conftest.$ac_ext >&5
1779
1780 ac_retval=1
1781 fi
1782 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1783 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1784 # interfere with the next link command; also delete a directory that is
1785 # left behind by Apple's compiler. We do this before executing the actions.
1786 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1787 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1788 as_fn_set_status $ac_retval
1789
1790 } # ac_fn_c_try_link
1791
1792 # ac_fn_c_check_func LINENO FUNC VAR
1793 # ----------------------------------
1794 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1795 ac_fn_c_check_func ()
1796 {
1797 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1799 printf %s "checking for $2... " >&6; }
1800 if eval test \${$3+y}
1801 then :
1802 printf %s "(cached) " >&6
1803 else $as_nop
1804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1805 /* end confdefs.h. */
1806 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1807 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1808 #define $2 innocuous_$2
1809
1810 /* System header to define __stub macros and hopefully few prototypes,
1811 which can conflict with char $2 (); below. */
1812
1813 #include <limits.h>
1814 #undef $2
1815
1816 /* Override any GCC internal prototype to avoid an error.
1817 Use char because int might match the return type of a GCC
1818 builtin and then its argument prototype would still apply. */
1819 #ifdef __cplusplus
1820 extern "C"
1821 #endif
1822 char $2 ();
1823 /* The GNU C library defines this for functions which it implements
1824 to always fail with ENOSYS. Some functions are actually named
1825 something starting with __ and the normal name is an alias. */
1826 #if defined __stub_$2 || defined __stub___$2
1827 choke me
1828 #endif
1829
1830 int
1831 main (void)
1832 {
1833 return $2 ();
1834 ;
1835 return 0;
1836 }
1837 _ACEOF
1838 if ac_fn_c_try_link "$LINENO"
1839 then :
1840 eval "$3=yes"
1841 else $as_nop
1842 eval "$3=no"
1843 fi
1844 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1845 conftest$ac_exeext conftest.$ac_ext
1846 fi
1847 eval ac_res=\$$3
1848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1849 printf "%s\n" "$ac_res" >&6; }
1850 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1851
1852 } # ac_fn_c_check_func
1853 ac_configure_args_raw=
1854 for ac_arg
1855 do
1856 case $ac_arg in
1857 *\'*)
1858 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1859 esac
1860 as_fn_append ac_configure_args_raw " '$ac_arg'"
1861 done
1862
1863 case $ac_configure_args_raw in
1864 *$as_nl*)
1865 ac_safe_unquote= ;;
1866 *)
1867 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
1868 ac_unsafe_a="$ac_unsafe_z#~"
1869 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1870 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1871 esac
1872
1873 cat >config.log <<_ACEOF
1874 This file contains any messages produced by compilers while
1875 running configure, to aid debugging if configure makes a mistake.
1876
1877 It was created by xf86-video-nv $as_me 2.1.22, which was
1878 generated by GNU Autoconf 2.71. Invocation command line was
1879
1880 $ $0$ac_configure_args_raw
1881
1882 _ACEOF
1883 exec 5>>config.log
1884 {
1885 cat <<_ASUNAME
1886 ## --------- ##
1887 ## Platform. ##
1888 ## --------- ##
1889
1890 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1891 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1892 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1893 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1894 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1895
1896 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1897 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1898
1899 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1900 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1901 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1902 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1903 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1904 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1905 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1906
1907 _ASUNAME
1908
1909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1910 for as_dir in $PATH
1911 do
1912 IFS=$as_save_IFS
1913 case $as_dir in #(((
1914 '') as_dir=./ ;;
1915 */) ;;
1916 *) as_dir=$as_dir/ ;;
1917 esac
1918 printf "%s\n" "PATH: $as_dir"
1919 done
1920 IFS=$as_save_IFS
1921
1922 } >&5
1923
1924 cat >&5 <<_ACEOF
1925
1926
1927 ## ----------- ##
1928 ## Core tests. ##
1929 ## ----------- ##
1930
1931 _ACEOF
1932
1933
1934 # Keep a trace of the command line.
1935 # Strip out --no-create and --no-recursion so they do not pile up.
1936 # Strip out --silent because we don't want to record it for future runs.
1937 # Also quote any args containing shell meta-characters.
1938 # Make two passes to allow for proper duplicate-argument suppression.
1939 ac_configure_args=
1940 ac_configure_args0=
1941 ac_configure_args1=
1942 ac_must_keep_next=false
1943 for ac_pass in 1 2
1944 do
1945 for ac_arg
1946 do
1947 case $ac_arg in
1948 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1949 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1950 | -silent | --silent | --silen | --sile | --sil)
1951 continue ;;
1952 *\'*)
1953 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1954 esac
1955 case $ac_pass in
1956 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1957 2)
1958 as_fn_append ac_configure_args1 " '$ac_arg'"
1959 if test $ac_must_keep_next = true; then
1960 ac_must_keep_next=false # Got value, back to normal.
1961 else
1962 case $ac_arg in
1963 *=* | --config-cache | -C | -disable-* | --disable-* \
1964 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1965 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1966 | -with-* | --with-* | -without-* | --without-* | --x)
1967 case "$ac_configure_args0 " in
1968 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1969 esac
1970 ;;
1971 -* ) ac_must_keep_next=true ;;
1972 esac
1973 fi
1974 as_fn_append ac_configure_args " '$ac_arg'"
1975 ;;
1976 esac
1977 done
1978 done
1979 { ac_configure_args0=; unset ac_configure_args0;}
1980 { ac_configure_args1=; unset ac_configure_args1;}
1981
1982 # When interrupted or exit'd, cleanup temporary files, and complete
1983 # config.log. We remove comments because anyway the quotes in there
1984 # would cause problems or look ugly.
1985 # WARNING: Use '\'' to represent an apostrophe within the trap.
1986 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1987 trap 'exit_status=$?
1988 # Sanitize IFS.
1989 IFS=" "" $as_nl"
1990 # Save into config.log some information that might help in debugging.
1991 {
1992 echo
1993
1994 printf "%s\n" "## ---------------- ##
1995 ## Cache variables. ##
1996 ## ---------------- ##"
1997 echo
1998 # The following way of writing the cache mishandles newlines in values,
1999 (
2000 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2001 eval ac_val=\$$ac_var
2002 case $ac_val in #(
2003 *${as_nl}*)
2004 case $ac_var in #(
2005 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2006 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2007 esac
2008 case $ac_var in #(
2009 _ | IFS | as_nl) ;; #(
2010 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2011 *) { eval $ac_var=; unset $ac_var;} ;;
2012 esac ;;
2013 esac
2014 done
2015 (set) 2>&1 |
2016 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2017 *${as_nl}ac_space=\ *)
2018 sed -n \
2019 "s/'\''/'\''\\\\'\'''\''/g;
2020 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2021 ;; #(
2022 *)
2023 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2024 ;;
2025 esac |
2026 sort
2027 )
2028 echo
2029
2030 printf "%s\n" "## ----------------- ##
2031 ## Output variables. ##
2032 ## ----------------- ##"
2033 echo
2034 for ac_var in $ac_subst_vars
2035 do
2036 eval ac_val=\$$ac_var
2037 case $ac_val in
2038 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2039 esac
2040 printf "%s\n" "$ac_var='\''$ac_val'\''"
2041 done | sort
2042 echo
2043
2044 if test -n "$ac_subst_files"; then
2045 printf "%s\n" "## ------------------- ##
2046 ## File substitutions. ##
2047 ## ------------------- ##"
2048 echo
2049 for ac_var in $ac_subst_files
2050 do
2051 eval ac_val=\$$ac_var
2052 case $ac_val in
2053 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2054 esac
2055 printf "%s\n" "$ac_var='\''$ac_val'\''"
2056 done | sort
2057 echo
2058 fi
2059
2060 if test -s confdefs.h; then
2061 printf "%s\n" "## ----------- ##
2062 ## confdefs.h. ##
2063 ## ----------- ##"
2064 echo
2065 cat confdefs.h
2066 echo
2067 fi
2068 test "$ac_signal" != 0 &&
2069 printf "%s\n" "$as_me: caught signal $ac_signal"
2070 printf "%s\n" "$as_me: exit $exit_status"
2071 } >&5
2072 rm -f core *.core core.conftest.* &&
2073 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2074 exit $exit_status
2075 ' 0
2076 for ac_signal in 1 2 13 15; do
2077 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2078 done
2079 ac_signal=0
2080
2081 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2082 rm -f -r conftest* confdefs.h
2083
2084 printf "%s\n" "/* confdefs.h */" > confdefs.h
2085
2086 # Predefined preprocessor variables.
2087
2088 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2089
2090 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2091
2092 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2093
2094 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2095
2096 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2097
2098 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2099
2100
2101 # Let the site file select an alternate cache file if it wants to.
2102 # Prefer an explicitly selected file to automatically selected ones.
2103 if test -n "$CONFIG_SITE"; then
2104 ac_site_files="$CONFIG_SITE"
2105 elif test "x$prefix" != xNONE; then
2106 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2107 else
2108 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2109 fi
2110
2111 for ac_site_file in $ac_site_files
2112 do
2113 case $ac_site_file in #(
2114 */*) :
2115 ;; #(
2116 *) :
2117 ac_site_file=./$ac_site_file ;;
2118 esac
2119 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2121 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2122 sed 's/^/| /' "$ac_site_file" >&5
2123 . "$ac_site_file" \
2124 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2125 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2126 as_fn_error $? "failed to load site script $ac_site_file
2127 See \`config.log' for more details" "$LINENO" 5; }
2128 fi
2129 done
2130
2131 if test -r "$cache_file"; then
2132 # Some versions of bash will fail to source /dev/null (special files
2133 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2134 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2136 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2137 case $cache_file in
2138 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2139 *) . "./$cache_file";;
2140 esac
2141 fi
2142 else
2143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2144 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2145 >$cache_file
2146 fi
2147
2148 # Test code for whether the C compiler supports C89 (global declarations)
2149 ac_c_conftest_c89_globals='
2150 /* Does the compiler advertise C89 conformance?
2151 Do not test the value of __STDC__, because some compilers set it to 0
2152 while being otherwise adequately conformant. */
2153 #if !defined __STDC__
2154 # error "Compiler does not advertise C89 conformance"
2155 #endif
2156
2157 #include <stddef.h>
2158 #include <stdarg.h>
2159 struct stat;
2160 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2161 struct buf { int x; };
2162 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2163 static char *e (p, i)
2164 char **p;
2165 int i;
2166 {
2167 return p[i];
2168 }
2169 static char *f (char * (*g) (char **, int), char **p, ...)
2170 {
2171 char *s;
2172 va_list v;
2173 va_start (v,p);
2174 s = g (p, va_arg (v,int));
2175 va_end (v);
2176 return s;
2177 }
2178
2179 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2180 function prototypes and stuff, but not \xHH hex character constants.
2181 These do not provoke an error unfortunately, instead are silently treated
2182 as an "x". The following induces an error, until -std is added to get
2183 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2184 array size at least. It is necessary to write \x00 == 0 to get something
2185 that is true only with -std. */
2186 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2187
2188 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2189 inside strings and character constants. */
2190 #define FOO(x) '\''x'\''
2191 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2192
2193 int test (int i, double x);
2194 struct s1 {int (*f) (int a);};
2195 struct s2 {int (*f) (double a);};
2196 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2197 int, int);'
2198
2199 # Test code for whether the C compiler supports C89 (body of main).
2200 ac_c_conftest_c89_main='
2201 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2202 '
2203
2204 # Test code for whether the C compiler supports C99 (global declarations)
2205 ac_c_conftest_c99_globals='
2206 // Does the compiler advertise C99 conformance?
2207 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2208 # error "Compiler does not advertise C99 conformance"
2209 #endif
2210
2211 #include <stdbool.h>
2212 extern int puts (const char *);
2213 extern int printf (const char *, ...);
2214 extern int dprintf (int, const char *, ...);
2215 extern void *malloc (size_t);
2216
2217 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2218 // dprintf is used instead of fprintf to avoid needing to declare
2219 // FILE and stderr.
2220 #define debug(...) dprintf (2, __VA_ARGS__)
2221 #define showlist(...) puts (#__VA_ARGS__)
2222 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2223 static void
2224 test_varargs_macros (void)
2225 {
2226 int x = 1234;
2227 int y = 5678;
2228 debug ("Flag");
2229 debug ("X = %d\n", x);
2230 showlist (The first, second, and third items.);
2231 report (x>y, "x is %d but y is %d", x, y);
2232 }
2233
2234 // Check long long types.
2235 #define BIG64 18446744073709551615ull
2236 #define BIG32 4294967295ul
2237 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2238 #if !BIG_OK
2239 #error "your preprocessor is broken"
2240 #endif
2241 #if BIG_OK
2242 #else
2243 #error "your preprocessor is broken"
2244 #endif
2245 static long long int bignum = -9223372036854775807LL;
2246 static unsigned long long int ubignum = BIG64;
2247
2248 struct incomplete_array
2249 {
2250 int datasize;
2251 double data[];
2252 };
2253
2254 struct named_init {
2255 int number;
2256 const wchar_t *name;
2257 double average;
2258 };
2259
2260 typedef const char *ccp;
2261
2262 static inline int
2263 test_restrict (ccp restrict text)
2264 {
2265 // See if C++-style comments work.
2266 // Iterate through items via the restricted pointer.
2267 // Also check for declarations in for loops.
2268 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2269 continue;
2270 return 0;
2271 }
2272
2273 // Check varargs and va_copy.
2274 static bool
2275 test_varargs (const char *format, ...)
2276 {
2277 va_list args;
2278 va_start (args, format);
2279 va_list args_copy;
2280 va_copy (args_copy, args);
2281
2282 const char *str = "";
2283 int number = 0;
2284 float fnumber = 0;
2285
2286 while (*format)
2287 {
2288 switch (*format++)
2289 {
2290 case '\''s'\'': // string
2291 str = va_arg (args_copy, const char *);
2292 break;
2293 case '\''d'\'': // int
2294 number = va_arg (args_copy, int);
2295 break;
2296 case '\''f'\'': // float
2297 fnumber = va_arg (args_copy, double);
2298 break;
2299 default:
2300 break;
2301 }
2302 }
2303 va_end (args_copy);
2304 va_end (args);
2305
2306 return *str && number && fnumber;
2307 }
2308 '
2309
2310 # Test code for whether the C compiler supports C99 (body of main).
2311 ac_c_conftest_c99_main='
2312 // Check bool.
2313 _Bool success = false;
2314 success |= (argc != 0);
2315
2316 // Check restrict.
2317 if (test_restrict ("String literal") == 0)
2318 success = true;
2319 char *restrict newvar = "Another string";
2320
2321 // Check varargs.
2322 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2323 test_varargs_macros ();
2324
2325 // Check flexible array members.
2326 struct incomplete_array *ia =
2327 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2328 ia->datasize = 10;
2329 for (int i = 0; i < ia->datasize; ++i)
2330 ia->data[i] = i * 1.234;
2331
2332 // Check named initializers.
2333 struct named_init ni = {
2334 .number = 34,
2335 .name = L"Test wide string",
2336 .average = 543.34343,
2337 };
2338
2339 ni.number = 58;
2340
2341 int dynamic_array[ni.number];
2342 dynamic_array[0] = argv[0][0];
2343 dynamic_array[ni.number - 1] = 543;
2344
2345 // work around unused variable warnings
2346 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2347 || dynamic_array[ni.number - 1] != 543);
2348 '
2349
2350 # Test code for whether the C compiler supports C11 (global declarations)
2351 ac_c_conftest_c11_globals='
2352 // Does the compiler advertise C11 conformance?
2353 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2354 # error "Compiler does not advertise C11 conformance"
2355 #endif
2356
2357 // Check _Alignas.
2358 char _Alignas (double) aligned_as_double;
2359 char _Alignas (0) no_special_alignment;
2360 extern char aligned_as_int;
2361 char _Alignas (0) _Alignas (int) aligned_as_int;
2362
2363 // Check _Alignof.
2364 enum
2365 {
2366 int_alignment = _Alignof (int),
2367 int_array_alignment = _Alignof (int[100]),
2368 char_alignment = _Alignof (char)
2369 };
2370 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2371
2372 // Check _Noreturn.
2373 int _Noreturn does_not_return (void) { for (;;) continue; }
2374
2375 // Check _Static_assert.
2376 struct test_static_assert
2377 {
2378 int x;
2379 _Static_assert (sizeof (int) <= sizeof (long int),
2380 "_Static_assert does not work in struct");
2381 long int y;
2382 };
2383
2384 // Check UTF-8 literals.
2385 #define u8 syntax error!
2386 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2387
2388 // Check duplicate typedefs.
2389 typedef long *long_ptr;
2390 typedef long int *long_ptr;
2391 typedef long_ptr long_ptr;
2392
2393 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2394 struct anonymous
2395 {
2396 union {
2397 struct { int i; int j; };
2398 struct { int k; long int l; } w;
2399 };
2400 int m;
2401 } v1;
2402 '
2403
2404 # Test code for whether the C compiler supports C11 (body of main).
2405 ac_c_conftest_c11_main='
2406 _Static_assert ((offsetof (struct anonymous, i)
2407 == offsetof (struct anonymous, w.k)),
2408 "Anonymous union alignment botch");
2409 v1.i = 2;
2410 v1.w.k = 5;
2411 ok |= v1.i != 5;
2412 '
2413
2414 # Test code for whether the C compiler supports C11 (complete).
2415 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2416 ${ac_c_conftest_c99_globals}
2417 ${ac_c_conftest_c11_globals}
2418
2419 int
2420 main (int argc, char **argv)
2421 {
2422 int ok = 0;
2423 ${ac_c_conftest_c89_main}
2424 ${ac_c_conftest_c99_main}
2425 ${ac_c_conftest_c11_main}
2426 return ok;
2427 }
2428 "
2429
2430 # Test code for whether the C compiler supports C99 (complete).
2431 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2432 ${ac_c_conftest_c99_globals}
2433
2434 int
2435 main (int argc, char **argv)
2436 {
2437 int ok = 0;
2438 ${ac_c_conftest_c89_main}
2439 ${ac_c_conftest_c99_main}
2440 return ok;
2441 }
2442 "
2443
2444 # Test code for whether the C compiler supports C89 (complete).
2445 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2446
2447 int
2448 main (int argc, char **argv)
2449 {
2450 int ok = 0;
2451 ${ac_c_conftest_c89_main}
2452 return ok;
2453 }
2454 "
2455
2456 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2457 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2458 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2459 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2460 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2461 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2462 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2463 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2464 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2465
2466 # Auxiliary files required by this configure script.
2467 ac_aux_files="ltmain.sh missing config.guess config.sub compile install-sh"
2468
2469 # Locations in which to look for auxiliary files.
2470 ac_aux_dir_candidates="${srcdir}/."
2471
2472 # Search for a directory containing all of the required auxiliary files,
2473 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2474 # If we don't find one directory that contains all the files we need,
2475 # we report the set of missing files from the *first* directory in
2476 # $ac_aux_dir_candidates and give up.
2477 ac_missing_aux_files=""
2478 ac_first_candidate=:
2479 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2481 as_found=false
2482 for as_dir in $ac_aux_dir_candidates
2483 do
2484 IFS=$as_save_IFS
2485 case $as_dir in #(((
2486 '') as_dir=./ ;;
2487 */) ;;
2488 *) as_dir=$as_dir/ ;;
2489 esac
2490 as_found=:
2491
2492 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2493 ac_aux_dir_found=yes
2494 ac_install_sh=
2495 for ac_aux in $ac_aux_files
2496 do
2497 # As a special case, if "install-sh" is required, that requirement
2498 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2499 # and $ac_install_sh is set appropriately for whichever one is found.
2500 if test x"$ac_aux" = x"install-sh"
2501 then
2502 if test -f "${as_dir}install-sh"; then
2503 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2504 ac_install_sh="${as_dir}install-sh -c"
2505 elif test -f "${as_dir}install.sh"; then
2506 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2507 ac_install_sh="${as_dir}install.sh -c"
2508 elif test -f "${as_dir}shtool"; then
2509 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2510 ac_install_sh="${as_dir}shtool install -c"
2511 else
2512 ac_aux_dir_found=no
2513 if $ac_first_candidate; then
2514 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2515 else
2516 break
2517 fi
2518 fi
2519 else
2520 if test -f "${as_dir}${ac_aux}"; then
2521 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2522 else
2523 ac_aux_dir_found=no
2524 if $ac_first_candidate; then
2525 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2526 else
2527 break
2528 fi
2529 fi
2530 fi
2531 done
2532 if test "$ac_aux_dir_found" = yes; then
2533 ac_aux_dir="$as_dir"
2534 break
2535 fi
2536 ac_first_candidate=false
2537
2538 as_found=false
2539 done
2540 IFS=$as_save_IFS
2541 if $as_found
2542 then :
2543
2544 else $as_nop
2545 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2546 fi
2547
2548
2549 # These three variables are undocumented and unsupported,
2550 # and are intended to be withdrawn in a future Autoconf release.
2551 # They can cause serious problems if a builder's source tree is in a directory
2552 # whose full name contains unusual characters.
2553 if test -f "${ac_aux_dir}config.guess"; then
2554 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2555 fi
2556 if test -f "${ac_aux_dir}config.sub"; then
2557 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2558 fi
2559 if test -f "$ac_aux_dir/configure"; then
2560 ac_configure="$SHELL ${ac_aux_dir}configure"
2561 fi
2562
2563 # Check that the precious variables saved in the cache have kept the same
2564 # value.
2565 ac_cache_corrupted=false
2566 for ac_var in $ac_precious_vars; do
2567 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2568 eval ac_new_set=\$ac_env_${ac_var}_set
2569 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2570 eval ac_new_val=\$ac_env_${ac_var}_value
2571 case $ac_old_set,$ac_new_set in
2572 set,)
2573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2574 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2575 ac_cache_corrupted=: ;;
2576 ,set)
2577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2578 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2579 ac_cache_corrupted=: ;;
2580 ,);;
2581 *)
2582 if test "x$ac_old_val" != "x$ac_new_val"; then
2583 # differences in whitespace do not lead to failure.
2584 ac_old_val_w=`echo x $ac_old_val`
2585 ac_new_val_w=`echo x $ac_new_val`
2586 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2588 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2589 ac_cache_corrupted=:
2590 else
2591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2592 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2593 eval $ac_var=\$ac_old_val
2594 fi
2595 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2596 printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
2597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2598 printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
2599 fi;;
2600 esac
2601 # Pass precious variables to config.status.
2602 if test "$ac_new_set" = set; then
2603 case $ac_new_val in
2604 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2605 *) ac_arg=$ac_var=$ac_new_val ;;
2606 esac
2607 case " $ac_configure_args " in
2608 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2609 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2610 esac
2611 fi
2612 done
2613 if $ac_cache_corrupted; then
2614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2615 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2617 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2618 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2619 and start over" "$LINENO" 5
2620 fi
2621 ## -------------------- ##
2622 ## Main body of script. ##
2623 ## -------------------- ##
2624
2625 ac_ext=c
2626 ac_cpp='$CPP $CPPFLAGS'
2627 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2628 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2629 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2630
2631
2632
2633 ac_config_headers="$ac_config_headers config.h"
2634
2635
2636 # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649
2650 # Find a good install program. We prefer a C program (faster),
2651 # so one script is as good as another. But avoid the broken or
2652 # incompatible versions:
2653 # SysV /etc/install, /usr/sbin/install
2654 # SunOS /usr/etc/install
2655 # IRIX /sbin/install
2656 # AIX /bin/install
2657 # AmigaOS /C/install, which installs bootblocks on floppy discs
2658 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2659 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2660 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2661 # OS/2's system install, which has a completely different semantic
2662 # ./install, which can be erroneously created by make from ./install.sh.
2663 # Reject install programs that cannot install multiple files.
2664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2665 printf %s "checking for a BSD-compatible install... " >&6; }
2666 if test -z "$INSTALL"; then
2667 if test ${ac_cv_path_install+y}
2668 then :
2669 printf %s "(cached) " >&6
2670 else $as_nop
2671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2672 for as_dir in $PATH
2673 do
2674 IFS=$as_save_IFS
2675 case $as_dir in #(((
2676 '') as_dir=./ ;;
2677 */) ;;
2678 *) as_dir=$as_dir/ ;;
2679 esac
2680 # Account for fact that we put trailing slashes in our PATH walk.
2681 case $as_dir in #((
2682 ./ | /[cC]/* | \
2683 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2684 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2685 /usr/ucb/* ) ;;
2686 *)
2687 # OSF1 and SCO ODT 3.0 have their own names for install.
2688 # Don't use installbsd from OSF since it installs stuff as root
2689 # by default.
2690 for ac_prog in ginstall scoinst install; do
2691 for ac_exec_ext in '' $ac_executable_extensions; do
2692 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
2693 if test $ac_prog = install &&
2694 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2695 # AIX install. It has an incompatible calling convention.
2696 :
2697 elif test $ac_prog = install &&
2698 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2699 # program-specific install script used by HP pwplus--don't use.
2700 :
2701 else
2702 rm -rf conftest.one conftest.two conftest.dir
2703 echo one > conftest.one
2704 echo two > conftest.two
2705 mkdir conftest.dir
2706 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
2707 test -s conftest.one && test -s conftest.two &&
2708 test -s conftest.dir/conftest.one &&
2709 test -s conftest.dir/conftest.two
2710 then
2711 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
2712 break 3
2713 fi
2714 fi
2715 fi
2716 done
2717 done
2718 ;;
2719 esac
2720
2721 done
2722 IFS=$as_save_IFS
2723
2724 rm -rf conftest.one conftest.two conftest.dir
2725
2726 fi
2727 if test ${ac_cv_path_install+y}; then
2728 INSTALL=$ac_cv_path_install
2729 else
2730 # As a last resort, use the slow shell script. Don't cache a
2731 # value for INSTALL within a source directory, because that will
2732 # break other packages using the cache if that directory is
2733 # removed, or if the value is a relative name.
2734 INSTALL=$ac_install_sh
2735 fi
2736 fi
2737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2738 printf "%s\n" "$INSTALL" >&6; }
2739
2740 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2741 # It thinks the first close brace ends the variable substitution.
2742 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2743
2744 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2745
2746 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758 # Expand $ac_aux_dir to an absolute path.
2759 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2760
2761 ac_ext=c
2762 ac_cpp='$CPP $CPPFLAGS'
2763 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2764 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2765 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2766 if test -n "$ac_tool_prefix"; then
2767 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2768 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2770 printf %s "checking for $ac_word... " >&6; }
2771 if test ${ac_cv_prog_CC+y}
2772 then :
2773 printf %s "(cached) " >&6
2774 else $as_nop
2775 if test -n "$CC"; then
2776 ac_cv_prog_CC="$CC" # Let the user override the test.
2777 else
2778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2779 for as_dir in $PATH
2780 do
2781 IFS=$as_save_IFS
2782 case $as_dir in #(((
2783 '') as_dir=./ ;;
2784 */) ;;
2785 *) as_dir=$as_dir/ ;;
2786 esac
2787 for ac_exec_ext in '' $ac_executable_extensions; do
2788 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2789 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2790 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2791 break 2
2792 fi
2793 done
2794 done
2795 IFS=$as_save_IFS
2796
2797 fi
2798 fi
2799 CC=$ac_cv_prog_CC
2800 if test -n "$CC"; then
2801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2802 printf "%s\n" "$CC" >&6; }
2803 else
2804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2805 printf "%s\n" "no" >&6; }
2806 fi
2807
2808
2809 fi
2810 if test -z "$ac_cv_prog_CC"; then
2811 ac_ct_CC=$CC
2812 # Extract the first word of "gcc", so it can be a program name with args.
2813 set dummy gcc; ac_word=$2
2814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2815 printf %s "checking for $ac_word... " >&6; }
2816 if test ${ac_cv_prog_ac_ct_CC+y}
2817 then :
2818 printf %s "(cached) " >&6
2819 else $as_nop
2820 if test -n "$ac_ct_CC"; then
2821 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2822 else
2823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2824 for as_dir in $PATH
2825 do
2826 IFS=$as_save_IFS
2827 case $as_dir in #(((
2828 '') as_dir=./ ;;
2829 */) ;;
2830 *) as_dir=$as_dir/ ;;
2831 esac
2832 for ac_exec_ext in '' $ac_executable_extensions; do
2833 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2834 ac_cv_prog_ac_ct_CC="gcc"
2835 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2836 break 2
2837 fi
2838 done
2839 done
2840 IFS=$as_save_IFS
2841
2842 fi
2843 fi
2844 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2845 if test -n "$ac_ct_CC"; then
2846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2847 printf "%s\n" "$ac_ct_CC" >&6; }
2848 else
2849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2850 printf "%s\n" "no" >&6; }
2851 fi
2852
2853 if test "x$ac_ct_CC" = x; then
2854 CC=""
2855 else
2856 case $cross_compiling:$ac_tool_warned in
2857 yes:)
2858 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2859 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2860 ac_tool_warned=yes ;;
2861 esac
2862 CC=$ac_ct_CC
2863 fi
2864 else
2865 CC="$ac_cv_prog_CC"
2866 fi
2867
2868 if test -z "$CC"; then
2869 if test -n "$ac_tool_prefix"; then
2870 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2871 set dummy ${ac_tool_prefix}cc; ac_word=$2
2872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2873 printf %s "checking for $ac_word... " >&6; }
2874 if test ${ac_cv_prog_CC+y}
2875 then :
2876 printf %s "(cached) " >&6
2877 else $as_nop
2878 if test -n "$CC"; then
2879 ac_cv_prog_CC="$CC" # Let the user override the test.
2880 else
2881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2882 for as_dir in $PATH
2883 do
2884 IFS=$as_save_IFS
2885 case $as_dir in #(((
2886 '') as_dir=./ ;;
2887 */) ;;
2888 *) as_dir=$as_dir/ ;;
2889 esac
2890 for ac_exec_ext in '' $ac_executable_extensions; do
2891 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2892 ac_cv_prog_CC="${ac_tool_prefix}cc"
2893 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2894 break 2
2895 fi
2896 done
2897 done
2898 IFS=$as_save_IFS
2899
2900 fi
2901 fi
2902 CC=$ac_cv_prog_CC
2903 if test -n "$CC"; then
2904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2905 printf "%s\n" "$CC" >&6; }
2906 else
2907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2908 printf "%s\n" "no" >&6; }
2909 fi
2910
2911
2912 fi
2913 fi
2914 if test -z "$CC"; then
2915 # Extract the first word of "cc", so it can be a program name with args.
2916 set dummy cc; ac_word=$2
2917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2918 printf %s "checking for $ac_word... " >&6; }
2919 if test ${ac_cv_prog_CC+y}
2920 then :
2921 printf %s "(cached) " >&6
2922 else $as_nop
2923 if test -n "$CC"; then
2924 ac_cv_prog_CC="$CC" # Let the user override the test.
2925 else
2926 ac_prog_rejected=no
2927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2928 for as_dir in $PATH
2929 do
2930 IFS=$as_save_IFS
2931 case $as_dir in #(((
2932 '') as_dir=./ ;;
2933 */) ;;
2934 *) as_dir=$as_dir/ ;;
2935 esac
2936 for ac_exec_ext in '' $ac_executable_extensions; do
2937 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2938 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2939 ac_prog_rejected=yes
2940 continue
2941 fi
2942 ac_cv_prog_CC="cc"
2943 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2944 break 2
2945 fi
2946 done
2947 done
2948 IFS=$as_save_IFS
2949
2950 if test $ac_prog_rejected = yes; then
2951 # We found a bogon in the path, so make sure we never use it.
2952 set dummy $ac_cv_prog_CC
2953 shift
2954 if test $# != 0; then
2955 # We chose a different compiler from the bogus one.
2956 # However, it has the same basename, so the bogon will be chosen
2957 # first if we set CC to just the basename; use the full file name.
2958 shift
2959 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
2960 fi
2961 fi
2962 fi
2963 fi
2964 CC=$ac_cv_prog_CC
2965 if test -n "$CC"; then
2966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2967 printf "%s\n" "$CC" >&6; }
2968 else
2969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2970 printf "%s\n" "no" >&6; }
2971 fi
2972
2973
2974 fi
2975 if test -z "$CC"; then
2976 if test -n "$ac_tool_prefix"; then
2977 for ac_prog in cl.exe
2978 do
2979 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2980 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2982 printf %s "checking for $ac_word... " >&6; }
2983 if test ${ac_cv_prog_CC+y}
2984 then :
2985 printf %s "(cached) " >&6
2986 else $as_nop
2987 if test -n "$CC"; then
2988 ac_cv_prog_CC="$CC" # Let the user override the test.
2989 else
2990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2991 for as_dir in $PATH
2992 do
2993 IFS=$as_save_IFS
2994 case $as_dir in #(((
2995 '') as_dir=./ ;;
2996 */) ;;
2997 *) as_dir=$as_dir/ ;;
2998 esac
2999 for ac_exec_ext in '' $ac_executable_extensions; do
3000 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3001 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3002 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3003 break 2
3004 fi
3005 done
3006 done
3007 IFS=$as_save_IFS
3008
3009 fi
3010 fi
3011 CC=$ac_cv_prog_CC
3012 if test -n "$CC"; then
3013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3014 printf "%s\n" "$CC" >&6; }
3015 else
3016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3017 printf "%s\n" "no" >&6; }
3018 fi
3019
3020
3021 test -n "$CC" && break
3022 done
3023 fi
3024 if test -z "$CC"; then
3025 ac_ct_CC=$CC
3026 for ac_prog in cl.exe
3027 do
3028 # Extract the first word of "$ac_prog", so it can be a program name with args.
3029 set dummy $ac_prog; ac_word=$2
3030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3031 printf %s "checking for $ac_word... " >&6; }
3032 if test ${ac_cv_prog_ac_ct_CC+y}
3033 then :
3034 printf %s "(cached) " >&6
3035 else $as_nop
3036 if test -n "$ac_ct_CC"; then
3037 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3038 else
3039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3040 for as_dir in $PATH
3041 do
3042 IFS=$as_save_IFS
3043 case $as_dir in #(((
3044 '') as_dir=./ ;;
3045 */) ;;
3046 *) as_dir=$as_dir/ ;;
3047 esac
3048 for ac_exec_ext in '' $ac_executable_extensions; do
3049 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3050 ac_cv_prog_ac_ct_CC="$ac_prog"
3051 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3052 break 2
3053 fi
3054 done
3055 done
3056 IFS=$as_save_IFS
3057
3058 fi
3059 fi
3060 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3061 if test -n "$ac_ct_CC"; then
3062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3063 printf "%s\n" "$ac_ct_CC" >&6; }
3064 else
3065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3066 printf "%s\n" "no" >&6; }
3067 fi
3068
3069
3070 test -n "$ac_ct_CC" && break
3071 done
3072
3073 if test "x$ac_ct_CC" = x; then
3074 CC=""
3075 else
3076 case $cross_compiling:$ac_tool_warned in
3077 yes:)
3078 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3079 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3080 ac_tool_warned=yes ;;
3081 esac
3082 CC=$ac_ct_CC
3083 fi
3084 fi
3085
3086 fi
3087 if test -z "$CC"; then
3088 if test -n "$ac_tool_prefix"; then
3089 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3090 set dummy ${ac_tool_prefix}clang; ac_word=$2
3091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3092 printf %s "checking for $ac_word... " >&6; }
3093 if test ${ac_cv_prog_CC+y}
3094 then :
3095 printf %s "(cached) " >&6
3096 else $as_nop
3097 if test -n "$CC"; then
3098 ac_cv_prog_CC="$CC" # Let the user override the test.
3099 else
3100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3101 for as_dir in $PATH
3102 do
3103 IFS=$as_save_IFS
3104 case $as_dir in #(((
3105 '') as_dir=./ ;;
3106 */) ;;
3107 *) as_dir=$as_dir/ ;;
3108 esac
3109 for ac_exec_ext in '' $ac_executable_extensions; do
3110 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3111 ac_cv_prog_CC="${ac_tool_prefix}clang"
3112 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3113 break 2
3114 fi
3115 done
3116 done
3117 IFS=$as_save_IFS
3118
3119 fi
3120 fi
3121 CC=$ac_cv_prog_CC
3122 if test -n "$CC"; then
3123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3124 printf "%s\n" "$CC" >&6; }
3125 else
3126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3127 printf "%s\n" "no" >&6; }
3128 fi
3129
3130
3131 fi
3132 if test -z "$ac_cv_prog_CC"; then
3133 ac_ct_CC=$CC
3134 # Extract the first word of "clang", so it can be a program name with args.
3135 set dummy clang; ac_word=$2
3136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3137 printf %s "checking for $ac_word... " >&6; }
3138 if test ${ac_cv_prog_ac_ct_CC+y}
3139 then :
3140 printf %s "(cached) " >&6
3141 else $as_nop
3142 if test -n "$ac_ct_CC"; then
3143 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3144 else
3145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3146 for as_dir in $PATH
3147 do
3148 IFS=$as_save_IFS
3149 case $as_dir in #(((
3150 '') as_dir=./ ;;
3151 */) ;;
3152 *) as_dir=$as_dir/ ;;
3153 esac
3154 for ac_exec_ext in '' $ac_executable_extensions; do
3155 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3156 ac_cv_prog_ac_ct_CC="clang"
3157 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3158 break 2
3159 fi
3160 done
3161 done
3162 IFS=$as_save_IFS
3163
3164 fi
3165 fi
3166 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3167 if test -n "$ac_ct_CC"; then
3168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3169 printf "%s\n" "$ac_ct_CC" >&6; }
3170 else
3171 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3172 printf "%s\n" "no" >&6; }
3173 fi
3174
3175 if test "x$ac_ct_CC" = x; then
3176 CC=""
3177 else
3178 case $cross_compiling:$ac_tool_warned in
3179 yes:)
3180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3181 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3182 ac_tool_warned=yes ;;
3183 esac
3184 CC=$ac_ct_CC
3185 fi
3186 else
3187 CC="$ac_cv_prog_CC"
3188 fi
3189
3190 fi
3191
3192
3193 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3194 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3195 as_fn_error $? "no acceptable C compiler found in \$PATH
3196 See \`config.log' for more details" "$LINENO" 5; }
3197
3198 # Provide some information about the compiler.
3199 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3200 set X $ac_compile
3201 ac_compiler=$2
3202 for ac_option in --version -v -V -qversion -version; do
3203 { { ac_try="$ac_compiler $ac_option >&5"
3204 case "(($ac_try" in
3205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3206 *) ac_try_echo=$ac_try;;
3207 esac
3208 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3209 printf "%s\n" "$ac_try_echo"; } >&5
3210 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3211 ac_status=$?
3212 if test -s conftest.err; then
3213 sed '10a\
3214 ... rest of stderr output deleted ...
3215 10q' conftest.err >conftest.er1
3216 cat conftest.er1 >&5
3217 fi
3218 rm -f conftest.er1 conftest.err
3219 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3220 test $ac_status = 0; }
3221 done
3222
3223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3224 /* end confdefs.h. */
3225
3226 int
3227 main (void)
3228 {
3229
3230 ;
3231 return 0;
3232 }
3233 _ACEOF
3234 ac_clean_files_save=$ac_clean_files
3235 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3236 # Try to create an executable without -o first, disregard a.out.
3237 # It will help us diagnose broken compilers, and finding out an intuition
3238 # of exeext.
3239 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3240 printf %s "checking whether the C compiler works... " >&6; }
3241 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3242
3243 # The possible output files:
3244 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3245
3246 ac_rmfiles=
3247 for ac_file in $ac_files
3248 do
3249 case $ac_file in
3250 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3251 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3252 esac
3253 done
3254 rm -f $ac_rmfiles
3255
3256 if { { ac_try="$ac_link_default"
3257 case "(($ac_try" in
3258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3259 *) ac_try_echo=$ac_try;;
3260 esac
3261 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3262 printf "%s\n" "$ac_try_echo"; } >&5
3263 (eval "$ac_link_default") 2>&5
3264 ac_status=$?
3265 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3266 test $ac_status = 0; }
3267 then :
3268 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3269 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3270 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3271 # so that the user can short-circuit this test for compilers unknown to
3272 # Autoconf.
3273 for ac_file in $ac_files ''
3274 do
3275 test -f "$ac_file" || continue
3276 case $ac_file in
3277 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3278 ;;
3279 [ab].out )
3280 # We found the default executable, but exeext='' is most
3281 # certainly right.
3282 break;;
3283 *.* )
3284 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3285 then :; else
3286 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3287 fi
3288 # We set ac_cv_exeext here because the later test for it is not
3289 # safe: cross compilers may not add the suffix if given an `-o'
3290 # argument, so we may need to know it at that point already.
3291 # Even if this section looks crufty: it has the advantage of
3292 # actually working.
3293 break;;
3294 * )
3295 break;;
3296 esac
3297 done
3298 test "$ac_cv_exeext" = no && ac_cv_exeext=
3299
3300 else $as_nop
3301 ac_file=''
3302 fi
3303 if test -z "$ac_file"
3304 then :
3305 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3306 printf "%s\n" "no" >&6; }
3307 printf "%s\n" "$as_me: failed program was:" >&5
3308 sed 's/^/| /' conftest.$ac_ext >&5
3309
3310 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3311 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3312 as_fn_error 77 "C compiler cannot create executables
3313 See \`config.log' for more details" "$LINENO" 5; }
3314 else $as_nop
3315 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3316 printf "%s\n" "yes" >&6; }
3317 fi
3318 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3319 printf %s "checking for C compiler default output file name... " >&6; }
3320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3321 printf "%s\n" "$ac_file" >&6; }
3322 ac_exeext=$ac_cv_exeext
3323
3324 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3325 ac_clean_files=$ac_clean_files_save
3326 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3327 printf %s "checking for suffix of executables... " >&6; }
3328 if { { ac_try="$ac_link"
3329 case "(($ac_try" in
3330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3331 *) ac_try_echo=$ac_try;;
3332 esac
3333 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3334 printf "%s\n" "$ac_try_echo"; } >&5
3335 (eval "$ac_link") 2>&5
3336 ac_status=$?
3337 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3338 test $ac_status = 0; }
3339 then :
3340 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3341 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3342 # work properly (i.e., refer to `conftest.exe'), while it won't with
3343 # `rm'.
3344 for ac_file in conftest.exe conftest conftest.*; do
3345 test -f "$ac_file" || continue
3346 case $ac_file in
3347 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3348 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3349 break;;
3350 * ) break;;
3351 esac
3352 done
3353 else $as_nop
3354 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3355 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3356 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3357 See \`config.log' for more details" "$LINENO" 5; }
3358 fi
3359 rm -f conftest conftest$ac_cv_exeext
3360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3361 printf "%s\n" "$ac_cv_exeext" >&6; }
3362
3363 rm -f conftest.$ac_ext
3364 EXEEXT=$ac_cv_exeext
3365 ac_exeext=$EXEEXT
3366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3367 /* end confdefs.h. */
3368 #include <stdio.h>
3369 int
3370 main (void)
3371 {
3372 FILE *f = fopen ("conftest.out", "w");
3373 return ferror (f) || fclose (f) != 0;
3374
3375 ;
3376 return 0;
3377 }
3378 _ACEOF
3379 ac_clean_files="$ac_clean_files conftest.out"
3380 # Check that the compiler produces executables we can run. If not, either
3381 # the compiler is broken, or we cross compile.
3382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3383 printf %s "checking whether we are cross compiling... " >&6; }
3384 if test "$cross_compiling" != yes; then
3385 { { ac_try="$ac_link"
3386 case "(($ac_try" in
3387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3388 *) ac_try_echo=$ac_try;;
3389 esac
3390 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3391 printf "%s\n" "$ac_try_echo"; } >&5
3392 (eval "$ac_link") 2>&5
3393 ac_status=$?
3394 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3395 test $ac_status = 0; }
3396 if { ac_try='./conftest$ac_cv_exeext'
3397 { { case "(($ac_try" in
3398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3399 *) ac_try_echo=$ac_try;;
3400 esac
3401 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3402 printf "%s\n" "$ac_try_echo"; } >&5
3403 (eval "$ac_try") 2>&5
3404 ac_status=$?
3405 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3406 test $ac_status = 0; }; }; then
3407 cross_compiling=no
3408 else
3409 if test "$cross_compiling" = maybe; then
3410 cross_compiling=yes
3411 else
3412 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3413 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3414 as_fn_error 77 "cannot run C compiled programs.
3415 If you meant to cross compile, use \`--host'.
3416 See \`config.log' for more details" "$LINENO" 5; }
3417 fi
3418 fi
3419 fi
3420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3421 printf "%s\n" "$cross_compiling" >&6; }
3422
3423 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3424 ac_clean_files=$ac_clean_files_save
3425 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3426 printf %s "checking for suffix of object files... " >&6; }
3427 if test ${ac_cv_objext+y}
3428 then :
3429 printf %s "(cached) " >&6
3430 else $as_nop
3431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3432 /* end confdefs.h. */
3433
3434 int
3435 main (void)
3436 {
3437
3438 ;
3439 return 0;
3440 }
3441 _ACEOF
3442 rm -f conftest.o conftest.obj
3443 if { { ac_try="$ac_compile"
3444 case "(($ac_try" in
3445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3446 *) ac_try_echo=$ac_try;;
3447 esac
3448 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3449 printf "%s\n" "$ac_try_echo"; } >&5
3450 (eval "$ac_compile") 2>&5
3451 ac_status=$?
3452 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3453 test $ac_status = 0; }
3454 then :
3455 for ac_file in conftest.o conftest.obj conftest.*; do
3456 test -f "$ac_file" || continue;
3457 case $ac_file in
3458 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3459 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3460 break;;
3461 esac
3462 done
3463 else $as_nop
3464 printf "%s\n" "$as_me: failed program was:" >&5
3465 sed 's/^/| /' conftest.$ac_ext >&5
3466
3467 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3468 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3469 as_fn_error $? "cannot compute suffix of object files: cannot compile
3470 See \`config.log' for more details" "$LINENO" 5; }
3471 fi
3472 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3473 fi
3474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3475 printf "%s\n" "$ac_cv_objext" >&6; }
3476 OBJEXT=$ac_cv_objext
3477 ac_objext=$OBJEXT
3478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
3479 printf %s "checking whether the compiler supports GNU C... " >&6; }
3480 if test ${ac_cv_c_compiler_gnu+y}
3481 then :
3482 printf %s "(cached) " >&6
3483 else $as_nop
3484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3485 /* end confdefs.h. */
3486
3487 int
3488 main (void)
3489 {
3490 #ifndef __GNUC__
3491 choke me
3492 #endif
3493
3494 ;
3495 return 0;
3496 }
3497 _ACEOF
3498 if ac_fn_c_try_compile "$LINENO"
3499 then :
3500 ac_compiler_gnu=yes
3501 else $as_nop
3502 ac_compiler_gnu=no
3503 fi
3504 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3505 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3506
3507 fi
3508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3509 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
3510 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3511
3512 if test $ac_compiler_gnu = yes; then
3513 GCC=yes
3514 else
3515 GCC=
3516 fi
3517 ac_test_CFLAGS=${CFLAGS+y}
3518 ac_save_CFLAGS=$CFLAGS
3519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3520 printf %s "checking whether $CC accepts -g... " >&6; }
3521 if test ${ac_cv_prog_cc_g+y}
3522 then :
3523 printf %s "(cached) " >&6
3524 else $as_nop
3525 ac_save_c_werror_flag=$ac_c_werror_flag
3526 ac_c_werror_flag=yes
3527 ac_cv_prog_cc_g=no
3528 CFLAGS="-g"
3529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3530 /* end confdefs.h. */
3531
3532 int
3533 main (void)
3534 {
3535
3536 ;
3537 return 0;
3538 }
3539 _ACEOF
3540 if ac_fn_c_try_compile "$LINENO"
3541 then :
3542 ac_cv_prog_cc_g=yes
3543 else $as_nop
3544 CFLAGS=""
3545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3546 /* end confdefs.h. */
3547
3548 int
3549 main (void)
3550 {
3551
3552 ;
3553 return 0;
3554 }
3555 _ACEOF
3556 if ac_fn_c_try_compile "$LINENO"
3557 then :
3558
3559 else $as_nop
3560 ac_c_werror_flag=$ac_save_c_werror_flag
3561 CFLAGS="-g"
3562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3563 /* end confdefs.h. */
3564
3565 int
3566 main (void)
3567 {
3568
3569 ;
3570 return 0;
3571 }
3572 _ACEOF
3573 if ac_fn_c_try_compile "$LINENO"
3574 then :
3575 ac_cv_prog_cc_g=yes
3576 fi
3577 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3578 fi
3579 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3580 fi
3581 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3582 ac_c_werror_flag=$ac_save_c_werror_flag
3583 fi
3584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3585 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
3586 if test $ac_test_CFLAGS; then
3587 CFLAGS=$ac_save_CFLAGS
3588 elif test $ac_cv_prog_cc_g = yes; then
3589 if test "$GCC" = yes; then
3590 CFLAGS="-g -O2"
3591 else
3592 CFLAGS="-g"
3593 fi
3594 else
3595 if test "$GCC" = yes; then
3596 CFLAGS="-O2"
3597 else
3598 CFLAGS=
3599 fi
3600 fi
3601 ac_prog_cc_stdc=no
3602 if test x$ac_prog_cc_stdc = xno
3603 then :
3604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
3605 printf %s "checking for $CC option to enable C11 features... " >&6; }
3606 if test ${ac_cv_prog_cc_c11+y}
3607 then :
3608 printf %s "(cached) " >&6
3609 else $as_nop
3610 ac_cv_prog_cc_c11=no
3611 ac_save_CC=$CC
3612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3613 /* end confdefs.h. */
3614 $ac_c_conftest_c11_program
3615 _ACEOF
3616 for ac_arg in '' -std=gnu11
3617 do
3618 CC="$ac_save_CC $ac_arg"
3619 if ac_fn_c_try_compile "$LINENO"
3620 then :
3621 ac_cv_prog_cc_c11=$ac_arg
3622 fi
3623 rm -f core conftest.err conftest.$ac_objext conftest.beam
3624 test "x$ac_cv_prog_cc_c11" != "xno" && break
3625 done
3626 rm -f conftest.$ac_ext
3627 CC=$ac_save_CC
3628 fi
3629
3630 if test "x$ac_cv_prog_cc_c11" = xno
3631 then :
3632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3633 printf "%s\n" "unsupported" >&6; }
3634 else $as_nop
3635 if test "x$ac_cv_prog_cc_c11" = x
3636 then :
3637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3638 printf "%s\n" "none needed" >&6; }
3639 else $as_nop
3640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
3641 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
3642 CC="$CC $ac_cv_prog_cc_c11"
3643 fi
3644 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
3645 ac_prog_cc_stdc=c11
3646 fi
3647 fi
3648 if test x$ac_prog_cc_stdc = xno
3649 then :
3650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
3651 printf %s "checking for $CC option to enable C99 features... " >&6; }
3652 if test ${ac_cv_prog_cc_c99+y}
3653 then :
3654 printf %s "(cached) " >&6
3655 else $as_nop
3656 ac_cv_prog_cc_c99=no
3657 ac_save_CC=$CC
3658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3659 /* end confdefs.h. */
3660 $ac_c_conftest_c99_program
3661 _ACEOF
3662 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
3663 do
3664 CC="$ac_save_CC $ac_arg"
3665 if ac_fn_c_try_compile "$LINENO"
3666 then :
3667 ac_cv_prog_cc_c99=$ac_arg
3668 fi
3669 rm -f core conftest.err conftest.$ac_objext conftest.beam
3670 test "x$ac_cv_prog_cc_c99" != "xno" && break
3671 done
3672 rm -f conftest.$ac_ext
3673 CC=$ac_save_CC
3674 fi
3675
3676 if test "x$ac_cv_prog_cc_c99" = xno
3677 then :
3678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3679 printf "%s\n" "unsupported" >&6; }
3680 else $as_nop
3681 if test "x$ac_cv_prog_cc_c99" = x
3682 then :
3683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3684 printf "%s\n" "none needed" >&6; }
3685 else $as_nop
3686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3687 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
3688 CC="$CC $ac_cv_prog_cc_c99"
3689 fi
3690 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
3691 ac_prog_cc_stdc=c99
3692 fi
3693 fi
3694 if test x$ac_prog_cc_stdc = xno
3695 then :
3696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
3697 printf %s "checking for $CC option to enable C89 features... " >&6; }
3698 if test ${ac_cv_prog_cc_c89+y}
3699 then :
3700 printf %s "(cached) " >&6
3701 else $as_nop
3702 ac_cv_prog_cc_c89=no
3703 ac_save_CC=$CC
3704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3705 /* end confdefs.h. */
3706 $ac_c_conftest_c89_program
3707 _ACEOF
3708 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3709 do
3710 CC="$ac_save_CC $ac_arg"
3711 if ac_fn_c_try_compile "$LINENO"
3712 then :
3713 ac_cv_prog_cc_c89=$ac_arg
3714 fi
3715 rm -f core conftest.err conftest.$ac_objext conftest.beam
3716 test "x$ac_cv_prog_cc_c89" != "xno" && break
3717 done
3718 rm -f conftest.$ac_ext
3719 CC=$ac_save_CC
3720 fi
3721
3722 if test "x$ac_cv_prog_cc_c89" = xno
3723 then :
3724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3725 printf "%s\n" "unsupported" >&6; }
3726 else $as_nop
3727 if test "x$ac_cv_prog_cc_c89" = x
3728 then :
3729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3730 printf "%s\n" "none needed" >&6; }
3731 else $as_nop
3732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3733 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
3734 CC="$CC $ac_cv_prog_cc_c89"
3735 fi
3736 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
3737 ac_prog_cc_stdc=c89
3738 fi
3739 fi
3740
3741 ac_ext=c
3742 ac_cpp='$CPP $CPPFLAGS'
3743 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3744 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3745 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3746
3747
3748 ac_ext=c
3749 ac_cpp='$CPP $CPPFLAGS'
3750 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3751 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3752 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3754 printf %s "checking whether $CC understands -c and -o together... " >&6; }
3755 if test ${am_cv_prog_cc_c_o+y}
3756 then :
3757 printf %s "(cached) " >&6
3758 else $as_nop
3759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3760 /* end confdefs.h. */
3761
3762 int
3763 main (void)
3764 {
3765
3766 ;
3767 return 0;
3768 }
3769 _ACEOF
3770 # Make sure it works both with $CC and with simple cc.
3771 # Following AC_PROG_CC_C_O, we do the test twice because some
3772 # compilers refuse to overwrite an existing .o file with -o,
3773 # though they will create one.
3774 am_cv_prog_cc_c_o=yes
3775 for am_i in 1 2; do
3776 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3777 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3778 ac_status=$?
3779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3780 (exit $ac_status); } \
3781 && test -f conftest2.$ac_objext; then
3782 : OK
3783 else
3784 am_cv_prog_cc_c_o=no
3785 break
3786 fi
3787 done
3788 rm -f core conftest*
3789 unset am_i
3790 fi
3791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3792 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
3793 if test "$am_cv_prog_cc_c_o" != yes; then
3794 # Losing compiler, so override with the script.
3795 # FIXME: It is wrong to rewrite CC.
3796 # But if we don't then we get into trouble of one sort or another.
3797 # A longer-term fix would be to have automake use am__CC in this case,
3798 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3799 CC="$am_aux_dir/compile $CC"
3800 fi
3801 ac_ext=c
3802 ac_cpp='$CPP $CPPFLAGS'
3803 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3804 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3805 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3806
3807
3808
3809
3810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
3811 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
3812 if test ${ac_cv_c_undeclared_builtin_options+y}
3813 then :
3814 printf %s "(cached) " >&6
3815 else $as_nop
3816 ac_save_CFLAGS=$CFLAGS
3817 ac_cv_c_undeclared_builtin_options='cannot detect'
3818 for ac_arg in '' -fno-builtin; do
3819 CFLAGS="$ac_save_CFLAGS $ac_arg"
3820 # This test program should *not* compile successfully.
3821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3822 /* end confdefs.h. */
3823
3824 int
3825 main (void)
3826 {
3827 (void) strchr;
3828 ;
3829 return 0;
3830 }
3831 _ACEOF
3832 if ac_fn_c_try_compile "$LINENO"
3833 then :
3834
3835 else $as_nop
3836 # This test program should compile successfully.
3837 # No library function is consistently available on
3838 # freestanding implementations, so test against a dummy
3839 # declaration. Include always-available headers on the
3840 # off chance that they somehow elicit warnings.
3841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3842 /* end confdefs.h. */
3843 #include <float.h>
3844 #include <limits.h>
3845 #include <stdarg.h>
3846 #include <stddef.h>
3847 extern void ac_decl (int, char *);
3848
3849 int
3850 main (void)
3851 {
3852 (void) ac_decl (0, (char *) 0);
3853 (void) ac_decl;
3854
3855 ;
3856 return 0;
3857 }
3858 _ACEOF
3859 if ac_fn_c_try_compile "$LINENO"
3860 then :
3861 if test x"$ac_arg" = x
3862 then :
3863 ac_cv_c_undeclared_builtin_options='none needed'
3864 else $as_nop
3865 ac_cv_c_undeclared_builtin_options=$ac_arg
3866 fi
3867 break
3868 fi
3869 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3870 fi
3871 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3872 done
3873 CFLAGS=$ac_save_CFLAGS
3874
3875 fi
3876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
3877 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
3878 case $ac_cv_c_undeclared_builtin_options in #(
3879 'cannot detect') :
3880 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3881 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3882 as_fn_error $? "cannot make $CC report undeclared builtins
3883 See \`config.log' for more details" "$LINENO" 5; } ;; #(
3884 'none needed') :
3885 ac_c_undeclared_builtin_options='' ;; #(
3886 *) :
3887 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
3888 esac
3889
3890 ac_header= ac_cache=
3891 for ac_item in $ac_header_c_list
3892 do
3893 if test $ac_cache; then
3894 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
3895 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
3896 printf "%s\n" "#define $ac_item 1" >> confdefs.h
3897 fi
3898 ac_header= ac_cache=
3899 elif test $ac_header; then
3900 ac_cache=$ac_item
3901 else
3902 ac_header=$ac_item
3903 fi
3904 done
3905
3906
3907
3908
3909
3910
3911
3912
3913 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
3914 then :
3915
3916 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
3917
3918 fi
3919
3920
3921
3922
3923 ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
3924 if test "x$ac_cv_have_decl___clang__" = xyes
3925 then :
3926 CLANGCC="yes"
3927 else $as_nop
3928 CLANGCC="no"
3929 fi
3930 ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
3931 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes
3932 then :
3933 INTELCC="yes"
3934 else $as_nop
3935 INTELCC="no"
3936 fi
3937 ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
3938 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes
3939 then :
3940 SUNCC="yes"
3941 else $as_nop
3942 SUNCC="no"
3943 fi
3944
3945
3946
3947
3948
3949
3950
3951
3952 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
3953 if test -n "$ac_tool_prefix"; then
3954 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
3955 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
3956 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3957 printf %s "checking for $ac_word... " >&6; }
3958 if test ${ac_cv_path_PKG_CONFIG+y}
3959 then :
3960 printf %s "(cached) " >&6
3961 else $as_nop
3962 case $PKG_CONFIG in
3963 [\\/]* | ?:[\\/]*)
3964 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
3965 ;;
3966 *)
3967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3968 for as_dir in $PATH
3969 do
3970 IFS=$as_save_IFS
3971 case $as_dir in #(((
3972 '') as_dir=./ ;;
3973 */) ;;
3974 *) as_dir=$as_dir/ ;;
3975 esac
3976 for ac_exec_ext in '' $ac_executable_extensions; do
3977 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3978 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
3979 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3980 break 2
3981 fi
3982 done
3983 done
3984 IFS=$as_save_IFS
3985
3986 ;;
3987 esac
3988 fi
3989 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
3990 if test -n "$PKG_CONFIG"; then
3991 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
3992 printf "%s\n" "$PKG_CONFIG" >&6; }
3993 else
3994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3995 printf "%s\n" "no" >&6; }
3996 fi
3997
3998
3999 fi
4000 if test -z "$ac_cv_path_PKG_CONFIG"; then
4001 ac_pt_PKG_CONFIG=$PKG_CONFIG
4002 # Extract the first word of "pkg-config", so it can be a program name with args.
4003 set dummy pkg-config; ac_word=$2
4004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4005 printf %s "checking for $ac_word... " >&6; }
4006 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
4007 then :
4008 printf %s "(cached) " >&6
4009 else $as_nop
4010 case $ac_pt_PKG_CONFIG in
4011 [\\/]* | ?:[\\/]*)
4012 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4013 ;;
4014 *)
4015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4016 for as_dir in $PATH
4017 do
4018 IFS=$as_save_IFS
4019 case $as_dir in #(((
4020 '') as_dir=./ ;;
4021 */) ;;
4022 *) as_dir=$as_dir/ ;;
4023 esac
4024 for ac_exec_ext in '' $ac_executable_extensions; do
4025 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4026 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
4027 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4028 break 2
4029 fi
4030 done
4031 done
4032 IFS=$as_save_IFS
4033
4034 ;;
4035 esac
4036 fi
4037 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4038 if test -n "$ac_pt_PKG_CONFIG"; then
4039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4040 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
4041 else
4042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4043 printf "%s\n" "no" >&6; }
4044 fi
4045
4046 if test "x$ac_pt_PKG_CONFIG" = x; then
4047 PKG_CONFIG=""
4048 else
4049 case $cross_compiling:$ac_tool_warned in
4050 yes:)
4051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4052 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4053 ac_tool_warned=yes ;;
4054 esac
4055 PKG_CONFIG=$ac_pt_PKG_CONFIG
4056 fi
4057 else
4058 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4059 fi
4060
4061 fi
4062 if test -n "$PKG_CONFIG"; then
4063 _pkg_min_version=0.9.0
4064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4065 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4066 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4068 printf "%s\n" "yes" >&6; }
4069 else
4070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4071 printf "%s\n" "no" >&6; }
4072 PKG_CONFIG=""
4073 fi
4074 fi
4075
4076
4077 # Make sure we can run config.sub.
4078 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
4079 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
4080
4081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4082 printf %s "checking build system type... " >&6; }
4083 if test ${ac_cv_build+y}
4084 then :
4085 printf %s "(cached) " >&6
4086 else $as_nop
4087 ac_build_alias=$build_alias
4088 test "x$ac_build_alias" = x &&
4089 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
4090 test "x$ac_build_alias" = x &&
4091 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4092 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
4093 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
4094
4095 fi
4096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4097 printf "%s\n" "$ac_cv_build" >&6; }
4098 case $ac_cv_build in
4099 *-*-*) ;;
4100 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4101 esac
4102 build=$ac_cv_build
4103 ac_save_IFS=$IFS; IFS='-'
4104 set x $ac_cv_build
4105 shift
4106 build_cpu=$1
4107 build_vendor=$2
4108 shift; shift
4109 # Remember, the first character of IFS is used to create $*,
4110 # except with old shells:
4111 build_os=$*
4112 IFS=$ac_save_IFS
4113 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4114
4115
4116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4117 printf %s "checking host system type... " >&6; }
4118 if test ${ac_cv_host+y}
4119 then :
4120 printf %s "(cached) " >&6
4121 else $as_nop
4122 if test "x$host_alias" = x; then
4123 ac_cv_host=$ac_cv_build
4124 else
4125 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
4126 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
4127 fi
4128
4129 fi
4130 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4131 printf "%s\n" "$ac_cv_host" >&6; }
4132 case $ac_cv_host in
4133 *-*-*) ;;
4134 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4135 esac
4136 host=$ac_cv_host
4137 ac_save_IFS=$IFS; IFS='-'
4138 set x $ac_cv_host
4139 shift
4140 host_cpu=$1
4141 host_vendor=$2
4142 shift; shift
4143 # Remember, the first character of IFS is used to create $*,
4144 # except with old shells:
4145 host_os=$*
4146 IFS=$ac_save_IFS
4147 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4148
4149
4150 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4151 printf %s "checking for a sed that does not truncate output... " >&6; }
4152 if test ${ac_cv_path_SED+y}
4153 then :
4154 printf %s "(cached) " >&6
4155 else $as_nop
4156 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4157 for ac_i in 1 2 3 4 5 6 7; do
4158 ac_script="$ac_script$as_nl$ac_script"
4159 done
4160 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4161 { ac_script=; unset ac_script;}
4162 if test -z "$SED"; then
4163 ac_path_SED_found=false
4164 # Loop through the user's path and test for each of PROGNAME-LIST
4165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4166 for as_dir in $PATH
4167 do
4168 IFS=$as_save_IFS
4169 case $as_dir in #(((
4170 '') as_dir=./ ;;
4171 */) ;;
4172 *) as_dir=$as_dir/ ;;
4173 esac
4174 for ac_prog in sed gsed
4175 do
4176 for ac_exec_ext in '' $ac_executable_extensions; do
4177 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
4178 as_fn_executable_p "$ac_path_SED" || continue
4179 # Check for GNU ac_path_SED and select it if it is found.
4180 # Check for GNU $ac_path_SED
4181 case `"$ac_path_SED" --version 2>&1` in
4182 *GNU*)
4183 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4184 *)
4185 ac_count=0
4186 printf %s 0123456789 >"conftest.in"
4187 while :
4188 do
4189 cat "conftest.in" "conftest.in" >"conftest.tmp"
4190 mv "conftest.tmp" "conftest.in"
4191 cp "conftest.in" "conftest.nl"
4192 printf "%s\n" '' >> "conftest.nl"
4193 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4194 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4195 as_fn_arith $ac_count + 1 && ac_count=$as_val
4196 if test $ac_count -gt ${ac_path_SED_max-0}; then
4197 # Best one so far, save it but keep looking for a better one
4198 ac_cv_path_SED="$ac_path_SED"
4199 ac_path_SED_max=$ac_count
4200 fi
4201 # 10*(2^10) chars as input seems more than enough
4202 test $ac_count -gt 10 && break
4203 done
4204 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4205 esac
4206
4207 $ac_path_SED_found && break 3
4208 done
4209 done
4210 done
4211 IFS=$as_save_IFS
4212 if test -z "$ac_cv_path_SED"; then
4213 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4214 fi
4215 else
4216 ac_cv_path_SED=$SED
4217 fi
4218
4219 fi
4220 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4221 printf "%s\n" "$ac_cv_path_SED" >&6; }
4222 SED="$ac_cv_path_SED"
4223 rm -f conftest.sed
4224
4225
4226
4227
4228
4229
4230 # Check whether --enable-selective-werror was given.
4231 if test ${enable_selective_werror+y}
4232 then :
4233 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4234 else $as_nop
4235 SELECTIVE_WERROR=yes
4236 fi
4237
4238
4239
4240
4241
4242 # -v is too short to test reliably with XORG_TESTSET_CFLAG
4243 if test "x$SUNCC" = "xyes"; then
4244 BASE_CFLAGS="-v"
4245 else
4246 BASE_CFLAGS=""
4247 fi
4248
4249 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
4250
4251
4252
4253
4254
4255
4256
4257
4258
4259
4260
4261
4262
4263 xorg_testset_save_CFLAGS="$CFLAGS"
4264
4265 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4266 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4267 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4268 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4269 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
4270 then :
4271 printf %s "(cached) " >&6
4272 else $as_nop
4273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4274 /* end confdefs.h. */
4275 int i;
4276 _ACEOF
4277 if ac_fn_c_try_compile "$LINENO"
4278 then :
4279 xorg_cv_cc_flag_unknown_warning_option=yes
4280 else $as_nop
4281 xorg_cv_cc_flag_unknown_warning_option=no
4282 fi
4283 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4284 fi
4285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4286 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4287 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4288 CFLAGS="$xorg_testset_save_CFLAGS"
4289 fi
4290
4291 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4292 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4293 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4294 fi
4295 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4297 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4298 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
4299 then :
4300 printf %s "(cached) " >&6
4301 else $as_nop
4302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4303 /* end confdefs.h. */
4304 int i;
4305 _ACEOF
4306 if ac_fn_c_try_compile "$LINENO"
4307 then :
4308 xorg_cv_cc_flag_unused_command_line_argument=yes
4309 else $as_nop
4310 xorg_cv_cc_flag_unused_command_line_argument=no
4311 fi
4312 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4313 fi
4314 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4315 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4316 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4317 CFLAGS="$xorg_testset_save_CFLAGS"
4318 fi
4319
4320 found="no"
4321
4322 if test $found = "no" ; then
4323 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4324 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4325 fi
4326
4327 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
4328 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4329 fi
4330
4331 CFLAGS="$CFLAGS -Wall"
4332
4333 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
4334 printf %s "checking if $CC supports -Wall... " >&6; }
4335 cacheid=xorg_cv_cc_flag__Wall
4336 if eval test \${$cacheid+y}
4337 then :
4338 printf %s "(cached) " >&6
4339 else $as_nop
4340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4341 /* end confdefs.h. */
4342 int i;
4343 int
4344 main (void)
4345 {
4346
4347 ;
4348 return 0;
4349 }
4350 _ACEOF
4351 if ac_fn_c_try_link "$LINENO"
4352 then :
4353 eval $cacheid=yes
4354 else $as_nop
4355 eval $cacheid=no
4356 fi
4357 rm -f core conftest.err conftest.$ac_objext conftest.beam \
4358 conftest$ac_exeext conftest.$ac_ext
4359 fi
4360
4361
4362 CFLAGS="$xorg_testset_save_CFLAGS"
4363
4364 eval supported=\$$cacheid
4365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4366 printf "%s\n" "$supported" >&6; }
4367 if test "$supported" = "yes" ; then
4368 BASE_CFLAGS="$BASE_CFLAGS -Wall"
4369 found="yes"
4370 fi
4371 fi
4372
4373
4374
4375
4376
4377
4378
4379
4380
4381
4382
4383
4384
4385
4386
4387 xorg_testset_save_CFLAGS="$CFLAGS"
4388
4389 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4390 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4391 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4392 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4393 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
4394 then :
4395 printf %s "(cached) " >&6
4396 else $as_nop
4397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4398 /* end confdefs.h. */
4399 int i;
4400 _ACEOF
4401 if ac_fn_c_try_compile "$LINENO"
4402 then :
4403 xorg_cv_cc_flag_unknown_warning_option=yes
4404 else $as_nop
4405 xorg_cv_cc_flag_unknown_warning_option=no
4406 fi
4407 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4408 fi
4409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4410 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4411 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4412 CFLAGS="$xorg_testset_save_CFLAGS"
4413 fi
4414
4415 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4416 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4417 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4418 fi
4419 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4421 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4422 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
4423 then :
4424 printf %s "(cached) " >&6
4425 else $as_nop
4426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4427 /* end confdefs.h. */
4428 int i;
4429 _ACEOF
4430 if ac_fn_c_try_compile "$LINENO"
4431 then :
4432 xorg_cv_cc_flag_unused_command_line_argument=yes
4433 else $as_nop
4434 xorg_cv_cc_flag_unused_command_line_argument=no
4435 fi
4436 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4437 fi
4438 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4439 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4440 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4441 CFLAGS="$xorg_testset_save_CFLAGS"
4442 fi
4443
4444 found="no"
4445
4446 if test $found = "no" ; then
4447 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4448 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4449 fi
4450
4451 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
4452 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4453 fi
4454
4455 CFLAGS="$CFLAGS -Wpointer-arith"
4456
4457 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
4458 printf %s "checking if $CC supports -Wpointer-arith... " >&6; }
4459 cacheid=xorg_cv_cc_flag__Wpointer_arith
4460 if eval test \${$cacheid+y}
4461 then :
4462 printf %s "(cached) " >&6
4463 else $as_nop
4464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4465 /* end confdefs.h. */
4466 int i;
4467 int
4468 main (void)
4469 {
4470
4471 ;
4472 return 0;
4473 }
4474 _ACEOF
4475 if ac_fn_c_try_link "$LINENO"
4476 then :
4477 eval $cacheid=yes
4478 else $as_nop
4479 eval $cacheid=no
4480 fi
4481 rm -f core conftest.err conftest.$ac_objext conftest.beam \
4482 conftest$ac_exeext conftest.$ac_ext
4483 fi
4484
4485
4486 CFLAGS="$xorg_testset_save_CFLAGS"
4487
4488 eval supported=\$$cacheid
4489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4490 printf "%s\n" "$supported" >&6; }
4491 if test "$supported" = "yes" ; then
4492 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
4493 found="yes"
4494 fi
4495 fi
4496
4497
4498
4499
4500
4501
4502
4503
4504
4505
4506
4507
4508
4509
4510
4511 xorg_testset_save_CFLAGS="$CFLAGS"
4512
4513 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4514 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4516 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4517 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
4518 then :
4519 printf %s "(cached) " >&6
4520 else $as_nop
4521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4522 /* end confdefs.h. */
4523 int i;
4524 _ACEOF
4525 if ac_fn_c_try_compile "$LINENO"
4526 then :
4527 xorg_cv_cc_flag_unknown_warning_option=yes
4528 else $as_nop
4529 xorg_cv_cc_flag_unknown_warning_option=no
4530 fi
4531 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4532 fi
4533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4534 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4535 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4536 CFLAGS="$xorg_testset_save_CFLAGS"
4537 fi
4538
4539 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4540 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4541 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4542 fi
4543 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4544 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4545 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4546 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
4547 then :
4548 printf %s "(cached) " >&6
4549 else $as_nop
4550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4551 /* end confdefs.h. */
4552 int i;
4553 _ACEOF
4554 if ac_fn_c_try_compile "$LINENO"
4555 then :
4556 xorg_cv_cc_flag_unused_command_line_argument=yes
4557 else $as_nop
4558 xorg_cv_cc_flag_unused_command_line_argument=no
4559 fi
4560 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4561 fi
4562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4563 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4564 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4565 CFLAGS="$xorg_testset_save_CFLAGS"
4566 fi
4567
4568 found="no"
4569
4570 if test $found = "no" ; then
4571 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4572 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4573 fi
4574
4575 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
4576 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4577 fi
4578
4579 CFLAGS="$CFLAGS -Wmissing-declarations"
4580
4581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
4582 printf %s "checking if $CC supports -Wmissing-declarations... " >&6; }
4583 cacheid=xorg_cv_cc_flag__Wmissing_declarations
4584 if eval test \${$cacheid+y}
4585 then :
4586 printf %s "(cached) " >&6
4587 else $as_nop
4588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4589 /* end confdefs.h. */
4590 int i;
4591 int
4592 main (void)
4593 {
4594
4595 ;
4596 return 0;
4597 }
4598 _ACEOF
4599 if ac_fn_c_try_link "$LINENO"
4600 then :
4601 eval $cacheid=yes
4602 else $as_nop
4603 eval $cacheid=no
4604 fi
4605 rm -f core conftest.err conftest.$ac_objext conftest.beam \
4606 conftest$ac_exeext conftest.$ac_ext
4607 fi
4608
4609
4610 CFLAGS="$xorg_testset_save_CFLAGS"
4611
4612 eval supported=\$$cacheid
4613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4614 printf "%s\n" "$supported" >&6; }
4615 if test "$supported" = "yes" ; then
4616 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
4617 found="yes"
4618 fi
4619 fi
4620
4621
4622
4623
4624
4625
4626
4627
4628
4629
4630
4631
4632
4633
4634
4635 xorg_testset_save_CFLAGS="$CFLAGS"
4636
4637 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4638 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4640 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4641 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
4642 then :
4643 printf %s "(cached) " >&6
4644 else $as_nop
4645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4646 /* end confdefs.h. */
4647 int i;
4648 _ACEOF
4649 if ac_fn_c_try_compile "$LINENO"
4650 then :
4651 xorg_cv_cc_flag_unknown_warning_option=yes
4652 else $as_nop
4653 xorg_cv_cc_flag_unknown_warning_option=no
4654 fi
4655 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4656 fi
4657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4658 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4659 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4660 CFLAGS="$xorg_testset_save_CFLAGS"
4661 fi
4662
4663 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4664 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4665 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4666 fi
4667 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4669 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4670 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
4671 then :
4672 printf %s "(cached) " >&6
4673 else $as_nop
4674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4675 /* end confdefs.h. */
4676 int i;
4677 _ACEOF
4678 if ac_fn_c_try_compile "$LINENO"
4679 then :
4680 xorg_cv_cc_flag_unused_command_line_argument=yes
4681 else $as_nop
4682 xorg_cv_cc_flag_unused_command_line_argument=no
4683 fi
4684 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4685 fi
4686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4687 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4688 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4689 CFLAGS="$xorg_testset_save_CFLAGS"
4690 fi
4691
4692 found="no"
4693
4694 if test $found = "no" ; then
4695 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4696 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4697 fi
4698
4699 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
4700 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4701 fi
4702
4703 CFLAGS="$CFLAGS -Wformat=2"
4704
4705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
4706 printf %s "checking if $CC supports -Wformat=2... " >&6; }
4707 cacheid=xorg_cv_cc_flag__Wformat_2
4708 if eval test \${$cacheid+y}
4709 then :
4710 printf %s "(cached) " >&6
4711 else $as_nop
4712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4713 /* end confdefs.h. */
4714 int i;
4715 int
4716 main (void)
4717 {
4718
4719 ;
4720 return 0;
4721 }
4722 _ACEOF
4723 if ac_fn_c_try_link "$LINENO"
4724 then :
4725 eval $cacheid=yes
4726 else $as_nop
4727 eval $cacheid=no
4728 fi
4729 rm -f core conftest.err conftest.$ac_objext conftest.beam \
4730 conftest$ac_exeext conftest.$ac_ext
4731 fi
4732
4733
4734 CFLAGS="$xorg_testset_save_CFLAGS"
4735
4736 eval supported=\$$cacheid
4737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4738 printf "%s\n" "$supported" >&6; }
4739 if test "$supported" = "yes" ; then
4740 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
4741 found="yes"
4742 fi
4743 fi
4744
4745 if test $found = "no" ; then
4746 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4747 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4748 fi
4749
4750 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
4751 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4752 fi
4753
4754 CFLAGS="$CFLAGS -Wformat"
4755
4756 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
4757 printf %s "checking if $CC supports -Wformat... " >&6; }
4758 cacheid=xorg_cv_cc_flag__Wformat
4759 if eval test \${$cacheid+y}
4760 then :
4761 printf %s "(cached) " >&6
4762 else $as_nop
4763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4764 /* end confdefs.h. */
4765 int i;
4766 int
4767 main (void)
4768 {
4769
4770 ;
4771 return 0;
4772 }
4773 _ACEOF
4774 if ac_fn_c_try_link "$LINENO"
4775 then :
4776 eval $cacheid=yes
4777 else $as_nop
4778 eval $cacheid=no
4779 fi
4780 rm -f core conftest.err conftest.$ac_objext conftest.beam \
4781 conftest$ac_exeext conftest.$ac_ext
4782 fi
4783
4784
4785 CFLAGS="$xorg_testset_save_CFLAGS"
4786
4787 eval supported=\$$cacheid
4788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4789 printf "%s\n" "$supported" >&6; }
4790 if test "$supported" = "yes" ; then
4791 BASE_CFLAGS="$BASE_CFLAGS -Wformat"
4792 found="yes"
4793 fi
4794 fi
4795
4796
4797
4798
4799
4800
4801
4802
4803
4804
4805
4806
4807
4808
4809
4810
4811
4812 xorg_testset_save_CFLAGS="$CFLAGS"
4813
4814 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4815 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4817 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4818 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
4819 then :
4820 printf %s "(cached) " >&6
4821 else $as_nop
4822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4823 /* end confdefs.h. */
4824 int i;
4825 _ACEOF
4826 if ac_fn_c_try_compile "$LINENO"
4827 then :
4828 xorg_cv_cc_flag_unknown_warning_option=yes
4829 else $as_nop
4830 xorg_cv_cc_flag_unknown_warning_option=no
4831 fi
4832 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4833 fi
4834 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4835 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4836 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4837 CFLAGS="$xorg_testset_save_CFLAGS"
4838 fi
4839
4840 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4841 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4842 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4843 fi
4844 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4846 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4847 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
4848 then :
4849 printf %s "(cached) " >&6
4850 else $as_nop
4851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4852 /* end confdefs.h. */
4853 int i;
4854 _ACEOF
4855 if ac_fn_c_try_compile "$LINENO"
4856 then :
4857 xorg_cv_cc_flag_unused_command_line_argument=yes
4858 else $as_nop
4859 xorg_cv_cc_flag_unused_command_line_argument=no
4860 fi
4861 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4862 fi
4863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4864 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4865 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4866 CFLAGS="$xorg_testset_save_CFLAGS"
4867 fi
4868
4869 found="no"
4870
4871 if test $found = "no" ; then
4872 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4873 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4874 fi
4875
4876 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
4877 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4878 fi
4879
4880 CFLAGS="$CFLAGS -Wstrict-prototypes"
4881
4882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
4883 printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; }
4884 cacheid=xorg_cv_cc_flag__Wstrict_prototypes
4885 if eval test \${$cacheid+y}
4886 then :
4887 printf %s "(cached) " >&6
4888 else $as_nop
4889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4890 /* end confdefs.h. */
4891 int i;
4892 int
4893 main (void)
4894 {
4895
4896 ;
4897 return 0;
4898 }
4899 _ACEOF
4900 if ac_fn_c_try_link "$LINENO"
4901 then :
4902 eval $cacheid=yes
4903 else $as_nop
4904 eval $cacheid=no
4905 fi
4906 rm -f core conftest.err conftest.$ac_objext conftest.beam \
4907 conftest$ac_exeext conftest.$ac_ext
4908 fi
4909
4910
4911 CFLAGS="$xorg_testset_save_CFLAGS"
4912
4913 eval supported=\$$cacheid
4914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4915 printf "%s\n" "$supported" >&6; }
4916 if test "$supported" = "yes" ; then
4917 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
4918 found="yes"
4919 fi
4920 fi
4921
4922
4923
4924
4925
4926
4927
4928
4929
4930
4931
4932
4933
4934
4935
4936 xorg_testset_save_CFLAGS="$CFLAGS"
4937
4938 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4939 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4941 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4942 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
4943 then :
4944 printf %s "(cached) " >&6
4945 else $as_nop
4946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4947 /* end confdefs.h. */
4948 int i;
4949 _ACEOF
4950 if ac_fn_c_try_compile "$LINENO"
4951 then :
4952 xorg_cv_cc_flag_unknown_warning_option=yes
4953 else $as_nop
4954 xorg_cv_cc_flag_unknown_warning_option=no
4955 fi
4956 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4957 fi
4958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4959 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4960 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4961 CFLAGS="$xorg_testset_save_CFLAGS"
4962 fi
4963
4964 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4965 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4966 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4967 fi
4968 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4970 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4971 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
4972 then :
4973 printf %s "(cached) " >&6
4974 else $as_nop
4975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4976 /* end confdefs.h. */
4977 int i;
4978 _ACEOF
4979 if ac_fn_c_try_compile "$LINENO"
4980 then :
4981 xorg_cv_cc_flag_unused_command_line_argument=yes
4982 else $as_nop
4983 xorg_cv_cc_flag_unused_command_line_argument=no
4984 fi
4985 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4986 fi
4987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4988 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4989 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4990 CFLAGS="$xorg_testset_save_CFLAGS"
4991 fi
4992
4993 found="no"
4994
4995 if test $found = "no" ; then
4996 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4997 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4998 fi
4999
5000 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5001 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5002 fi
5003
5004 CFLAGS="$CFLAGS -Wmissing-prototypes"
5005
5006 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5007 printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; }
5008 cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5009 if eval test \${$cacheid+y}
5010 then :
5011 printf %s "(cached) " >&6
5012 else $as_nop
5013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5014 /* end confdefs.h. */
5015 int i;
5016 int
5017 main (void)
5018 {
5019
5020 ;
5021 return 0;
5022 }
5023 _ACEOF
5024 if ac_fn_c_try_link "$LINENO"
5025 then :
5026 eval $cacheid=yes
5027 else $as_nop
5028 eval $cacheid=no
5029 fi
5030 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5031 conftest$ac_exeext conftest.$ac_ext
5032 fi
5033
5034
5035 CFLAGS="$xorg_testset_save_CFLAGS"
5036
5037 eval supported=\$$cacheid
5038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5039 printf "%s\n" "$supported" >&6; }
5040 if test "$supported" = "yes" ; then
5041 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5042 found="yes"
5043 fi
5044 fi
5045
5046
5047
5048
5049
5050
5051
5052
5053
5054
5055
5056
5057
5058
5059
5060 xorg_testset_save_CFLAGS="$CFLAGS"
5061
5062 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5063 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5065 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5066 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5067 then :
5068 printf %s "(cached) " >&6
5069 else $as_nop
5070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5071 /* end confdefs.h. */
5072 int i;
5073 _ACEOF
5074 if ac_fn_c_try_compile "$LINENO"
5075 then :
5076 xorg_cv_cc_flag_unknown_warning_option=yes
5077 else $as_nop
5078 xorg_cv_cc_flag_unknown_warning_option=no
5079 fi
5080 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5081 fi
5082 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5083 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5084 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5085 CFLAGS="$xorg_testset_save_CFLAGS"
5086 fi
5087
5088 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5089 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5090 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5091 fi
5092 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5094 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5095 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5096 then :
5097 printf %s "(cached) " >&6
5098 else $as_nop
5099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5100 /* end confdefs.h. */
5101 int i;
5102 _ACEOF
5103 if ac_fn_c_try_compile "$LINENO"
5104 then :
5105 xorg_cv_cc_flag_unused_command_line_argument=yes
5106 else $as_nop
5107 xorg_cv_cc_flag_unused_command_line_argument=no
5108 fi
5109 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5110 fi
5111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5112 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5113 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5114 CFLAGS="$xorg_testset_save_CFLAGS"
5115 fi
5116
5117 found="no"
5118
5119 if test $found = "no" ; then
5120 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5121 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5122 fi
5123
5124 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5125 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5126 fi
5127
5128 CFLAGS="$CFLAGS -Wnested-externs"
5129
5130 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5131 printf %s "checking if $CC supports -Wnested-externs... " >&6; }
5132 cacheid=xorg_cv_cc_flag__Wnested_externs
5133 if eval test \${$cacheid+y}
5134 then :
5135 printf %s "(cached) " >&6
5136 else $as_nop
5137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5138 /* end confdefs.h. */
5139 int i;
5140 int
5141 main (void)
5142 {
5143
5144 ;
5145 return 0;
5146 }
5147 _ACEOF
5148 if ac_fn_c_try_link "$LINENO"
5149 then :
5150 eval $cacheid=yes
5151 else $as_nop
5152 eval $cacheid=no
5153 fi
5154 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5155 conftest$ac_exeext conftest.$ac_ext
5156 fi
5157
5158
5159 CFLAGS="$xorg_testset_save_CFLAGS"
5160
5161 eval supported=\$$cacheid
5162 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5163 printf "%s\n" "$supported" >&6; }
5164 if test "$supported" = "yes" ; then
5165 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5166 found="yes"
5167 fi
5168 fi
5169
5170
5171
5172
5173
5174
5175
5176
5177
5178
5179
5180
5181
5182
5183
5184 xorg_testset_save_CFLAGS="$CFLAGS"
5185
5186 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5187 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5189 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5190 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5191 then :
5192 printf %s "(cached) " >&6
5193 else $as_nop
5194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5195 /* end confdefs.h. */
5196 int i;
5197 _ACEOF
5198 if ac_fn_c_try_compile "$LINENO"
5199 then :
5200 xorg_cv_cc_flag_unknown_warning_option=yes
5201 else $as_nop
5202 xorg_cv_cc_flag_unknown_warning_option=no
5203 fi
5204 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5205 fi
5206 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5207 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5208 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5209 CFLAGS="$xorg_testset_save_CFLAGS"
5210 fi
5211
5212 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5213 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5214 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5215 fi
5216 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5218 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5219 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5220 then :
5221 printf %s "(cached) " >&6
5222 else $as_nop
5223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5224 /* end confdefs.h. */
5225 int i;
5226 _ACEOF
5227 if ac_fn_c_try_compile "$LINENO"
5228 then :
5229 xorg_cv_cc_flag_unused_command_line_argument=yes
5230 else $as_nop
5231 xorg_cv_cc_flag_unused_command_line_argument=no
5232 fi
5233 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5234 fi
5235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5236 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5237 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5238 CFLAGS="$xorg_testset_save_CFLAGS"
5239 fi
5240
5241 found="no"
5242
5243 if test $found = "no" ; then
5244 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5245 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5246 fi
5247
5248 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5249 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5250 fi
5251
5252 CFLAGS="$CFLAGS -Wbad-function-cast"
5253
5254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
5255 printf %s "checking if $CC supports -Wbad-function-cast... " >&6; }
5256 cacheid=xorg_cv_cc_flag__Wbad_function_cast
5257 if eval test \${$cacheid+y}
5258 then :
5259 printf %s "(cached) " >&6
5260 else $as_nop
5261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5262 /* end confdefs.h. */
5263 int i;
5264 int
5265 main (void)
5266 {
5267
5268 ;
5269 return 0;
5270 }
5271 _ACEOF
5272 if ac_fn_c_try_link "$LINENO"
5273 then :
5274 eval $cacheid=yes
5275 else $as_nop
5276 eval $cacheid=no
5277 fi
5278 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5279 conftest$ac_exeext conftest.$ac_ext
5280 fi
5281
5282
5283 CFLAGS="$xorg_testset_save_CFLAGS"
5284
5285 eval supported=\$$cacheid
5286 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5287 printf "%s\n" "$supported" >&6; }
5288 if test "$supported" = "yes" ; then
5289 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
5290 found="yes"
5291 fi
5292 fi
5293
5294
5295
5296
5297
5298
5299
5300
5301
5302
5303
5304
5305
5306
5307
5308 xorg_testset_save_CFLAGS="$CFLAGS"
5309
5310 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5311 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5313 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5314 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5315 then :
5316 printf %s "(cached) " >&6
5317 else $as_nop
5318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5319 /* end confdefs.h. */
5320 int i;
5321 _ACEOF
5322 if ac_fn_c_try_compile "$LINENO"
5323 then :
5324 xorg_cv_cc_flag_unknown_warning_option=yes
5325 else $as_nop
5326 xorg_cv_cc_flag_unknown_warning_option=no
5327 fi
5328 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5329 fi
5330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5331 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5332 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5333 CFLAGS="$xorg_testset_save_CFLAGS"
5334 fi
5335
5336 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5337 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5338 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5339 fi
5340 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5342 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5343 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5344 then :
5345 printf %s "(cached) " >&6
5346 else $as_nop
5347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5348 /* end confdefs.h. */
5349 int i;
5350 _ACEOF
5351 if ac_fn_c_try_compile "$LINENO"
5352 then :
5353 xorg_cv_cc_flag_unused_command_line_argument=yes
5354 else $as_nop
5355 xorg_cv_cc_flag_unused_command_line_argument=no
5356 fi
5357 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5358 fi
5359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5360 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5361 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5362 CFLAGS="$xorg_testset_save_CFLAGS"
5363 fi
5364
5365 found="no"
5366
5367 if test $found = "no" ; then
5368 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5369 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5370 fi
5371
5372 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5373 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5374 fi
5375
5376 CFLAGS="$CFLAGS -Wold-style-definition"
5377
5378 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
5379 printf %s "checking if $CC supports -Wold-style-definition... " >&6; }
5380 cacheid=xorg_cv_cc_flag__Wold_style_definition
5381 if eval test \${$cacheid+y}
5382 then :
5383 printf %s "(cached) " >&6
5384 else $as_nop
5385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5386 /* end confdefs.h. */
5387 int i;
5388 int
5389 main (void)
5390 {
5391
5392 ;
5393 return 0;
5394 }
5395 _ACEOF
5396 if ac_fn_c_try_link "$LINENO"
5397 then :
5398 eval $cacheid=yes
5399 else $as_nop
5400 eval $cacheid=no
5401 fi
5402 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5403 conftest$ac_exeext conftest.$ac_ext
5404 fi
5405
5406
5407 CFLAGS="$xorg_testset_save_CFLAGS"
5408
5409 eval supported=\$$cacheid
5410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5411 printf "%s\n" "$supported" >&6; }
5412 if test "$supported" = "yes" ; then
5413 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
5414 found="yes"
5415 fi
5416 fi
5417
5418 if test $found = "no" ; then
5419 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5420 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5421 fi
5422
5423 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5424 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5425 fi
5426
5427 CFLAGS="$CFLAGS -fd"
5428
5429 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
5430 printf %s "checking if $CC supports -fd... " >&6; }
5431 cacheid=xorg_cv_cc_flag__fd
5432 if eval test \${$cacheid+y}
5433 then :
5434 printf %s "(cached) " >&6
5435 else $as_nop
5436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5437 /* end confdefs.h. */
5438 int i;
5439 int
5440 main (void)
5441 {
5442
5443 ;
5444 return 0;
5445 }
5446 _ACEOF
5447 if ac_fn_c_try_link "$LINENO"
5448 then :
5449 eval $cacheid=yes
5450 else $as_nop
5451 eval $cacheid=no
5452 fi
5453 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5454 conftest$ac_exeext conftest.$ac_ext
5455 fi
5456
5457
5458 CFLAGS="$xorg_testset_save_CFLAGS"
5459
5460 eval supported=\$$cacheid
5461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5462 printf "%s\n" "$supported" >&6; }
5463 if test "$supported" = "yes" ; then
5464 BASE_CFLAGS="$BASE_CFLAGS -fd"
5465 found="yes"
5466 fi
5467 fi
5468
5469
5470
5471
5472
5473
5474
5475
5476
5477
5478
5479
5480
5481
5482
5483 xorg_testset_save_CFLAGS="$CFLAGS"
5484
5485 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5486 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5487 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5488 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5489 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5490 then :
5491 printf %s "(cached) " >&6
5492 else $as_nop
5493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5494 /* end confdefs.h. */
5495 int i;
5496 _ACEOF
5497 if ac_fn_c_try_compile "$LINENO"
5498 then :
5499 xorg_cv_cc_flag_unknown_warning_option=yes
5500 else $as_nop
5501 xorg_cv_cc_flag_unknown_warning_option=no
5502 fi
5503 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5504 fi
5505 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5506 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5507 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5508 CFLAGS="$xorg_testset_save_CFLAGS"
5509 fi
5510
5511 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5512 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5513 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5514 fi
5515 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5517 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5518 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5519 then :
5520 printf %s "(cached) " >&6
5521 else $as_nop
5522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5523 /* end confdefs.h. */
5524 int i;
5525 _ACEOF
5526 if ac_fn_c_try_compile "$LINENO"
5527 then :
5528 xorg_cv_cc_flag_unused_command_line_argument=yes
5529 else $as_nop
5530 xorg_cv_cc_flag_unused_command_line_argument=no
5531 fi
5532 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5533 fi
5534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5535 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5536 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5537 CFLAGS="$xorg_testset_save_CFLAGS"
5538 fi
5539
5540 found="no"
5541
5542 if test $found = "no" ; then
5543 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5544 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5545 fi
5546
5547 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5548 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5549 fi
5550
5551 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
5552
5553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
5554 printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
5555 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
5556 if eval test \${$cacheid+y}
5557 then :
5558 printf %s "(cached) " >&6
5559 else $as_nop
5560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5561 /* end confdefs.h. */
5562 int i;
5563 int
5564 main (void)
5565 {
5566
5567 ;
5568 return 0;
5569 }
5570 _ACEOF
5571 if ac_fn_c_try_link "$LINENO"
5572 then :
5573 eval $cacheid=yes
5574 else $as_nop
5575 eval $cacheid=no
5576 fi
5577 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5578 conftest$ac_exeext conftest.$ac_ext
5579 fi
5580
5581
5582 CFLAGS="$xorg_testset_save_CFLAGS"
5583
5584 eval supported=\$$cacheid
5585 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5586 printf "%s\n" "$supported" >&6; }
5587 if test "$supported" = "yes" ; then
5588 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
5589 found="yes"
5590 fi
5591 fi
5592
5593
5594
5595
5596
5597 # This chunk adds additional warnings that could catch undesired effects.
5598
5599
5600
5601
5602
5603
5604
5605
5606
5607
5608
5609
5610
5611 xorg_testset_save_CFLAGS="$CFLAGS"
5612
5613 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5614 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5616 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5617 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5618 then :
5619 printf %s "(cached) " >&6
5620 else $as_nop
5621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5622 /* end confdefs.h. */
5623 int i;
5624 _ACEOF
5625 if ac_fn_c_try_compile "$LINENO"
5626 then :
5627 xorg_cv_cc_flag_unknown_warning_option=yes
5628 else $as_nop
5629 xorg_cv_cc_flag_unknown_warning_option=no
5630 fi
5631 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5632 fi
5633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5634 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5635 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5636 CFLAGS="$xorg_testset_save_CFLAGS"
5637 fi
5638
5639 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5640 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5641 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5642 fi
5643 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5645 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5646 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5647 then :
5648 printf %s "(cached) " >&6
5649 else $as_nop
5650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5651 /* end confdefs.h. */
5652 int i;
5653 _ACEOF
5654 if ac_fn_c_try_compile "$LINENO"
5655 then :
5656 xorg_cv_cc_flag_unused_command_line_argument=yes
5657 else $as_nop
5658 xorg_cv_cc_flag_unused_command_line_argument=no
5659 fi
5660 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5661 fi
5662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5663 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5664 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5665 CFLAGS="$xorg_testset_save_CFLAGS"
5666 fi
5667
5668 found="no"
5669
5670 if test $found = "no" ; then
5671 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5672 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5673 fi
5674
5675 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5676 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5677 fi
5678
5679 CFLAGS="$CFLAGS -Wunused"
5680
5681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
5682 printf %s "checking if $CC supports -Wunused... " >&6; }
5683 cacheid=xorg_cv_cc_flag__Wunused
5684 if eval test \${$cacheid+y}
5685 then :
5686 printf %s "(cached) " >&6
5687 else $as_nop
5688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5689 /* end confdefs.h. */
5690 int i;
5691 int
5692 main (void)
5693 {
5694
5695 ;
5696 return 0;
5697 }
5698 _ACEOF
5699 if ac_fn_c_try_link "$LINENO"
5700 then :
5701 eval $cacheid=yes
5702 else $as_nop
5703 eval $cacheid=no
5704 fi
5705 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5706 conftest$ac_exeext conftest.$ac_ext
5707 fi
5708
5709
5710 CFLAGS="$xorg_testset_save_CFLAGS"
5711
5712 eval supported=\$$cacheid
5713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5714 printf "%s\n" "$supported" >&6; }
5715 if test "$supported" = "yes" ; then
5716 BASE_CFLAGS="$BASE_CFLAGS -Wunused"
5717 found="yes"
5718 fi
5719 fi
5720
5721
5722
5723
5724
5725
5726
5727
5728
5729
5730
5731
5732
5733
5734
5735 xorg_testset_save_CFLAGS="$CFLAGS"
5736
5737 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5738 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5740 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5741 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5742 then :
5743 printf %s "(cached) " >&6
5744 else $as_nop
5745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5746 /* end confdefs.h. */
5747 int i;
5748 _ACEOF
5749 if ac_fn_c_try_compile "$LINENO"
5750 then :
5751 xorg_cv_cc_flag_unknown_warning_option=yes
5752 else $as_nop
5753 xorg_cv_cc_flag_unknown_warning_option=no
5754 fi
5755 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5756 fi
5757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5758 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5759 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5760 CFLAGS="$xorg_testset_save_CFLAGS"
5761 fi
5762
5763 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5764 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5765 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5766 fi
5767 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5769 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5770 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5771 then :
5772 printf %s "(cached) " >&6
5773 else $as_nop
5774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5775 /* end confdefs.h. */
5776 int i;
5777 _ACEOF
5778 if ac_fn_c_try_compile "$LINENO"
5779 then :
5780 xorg_cv_cc_flag_unused_command_line_argument=yes
5781 else $as_nop
5782 xorg_cv_cc_flag_unused_command_line_argument=no
5783 fi
5784 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5785 fi
5786 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5787 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5788 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5789 CFLAGS="$xorg_testset_save_CFLAGS"
5790 fi
5791
5792 found="no"
5793
5794 if test $found = "no" ; then
5795 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5796 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5797 fi
5798
5799 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5800 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5801 fi
5802
5803 CFLAGS="$CFLAGS -Wuninitialized"
5804
5805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
5806 printf %s "checking if $CC supports -Wuninitialized... " >&6; }
5807 cacheid=xorg_cv_cc_flag__Wuninitialized
5808 if eval test \${$cacheid+y}
5809 then :
5810 printf %s "(cached) " >&6
5811 else $as_nop
5812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5813 /* end confdefs.h. */
5814 int i;
5815 int
5816 main (void)
5817 {
5818
5819 ;
5820 return 0;
5821 }
5822 _ACEOF
5823 if ac_fn_c_try_link "$LINENO"
5824 then :
5825 eval $cacheid=yes
5826 else $as_nop
5827 eval $cacheid=no
5828 fi
5829 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5830 conftest$ac_exeext conftest.$ac_ext
5831 fi
5832
5833
5834 CFLAGS="$xorg_testset_save_CFLAGS"
5835
5836 eval supported=\$$cacheid
5837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5838 printf "%s\n" "$supported" >&6; }
5839 if test "$supported" = "yes" ; then
5840 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
5841 found="yes"
5842 fi
5843 fi
5844
5845
5846
5847
5848
5849
5850
5851
5852
5853
5854
5855
5856
5857
5858
5859 xorg_testset_save_CFLAGS="$CFLAGS"
5860
5861 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5862 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5864 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5865 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5866 then :
5867 printf %s "(cached) " >&6
5868 else $as_nop
5869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5870 /* end confdefs.h. */
5871 int i;
5872 _ACEOF
5873 if ac_fn_c_try_compile "$LINENO"
5874 then :
5875 xorg_cv_cc_flag_unknown_warning_option=yes
5876 else $as_nop
5877 xorg_cv_cc_flag_unknown_warning_option=no
5878 fi
5879 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5880 fi
5881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5882 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5883 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5884 CFLAGS="$xorg_testset_save_CFLAGS"
5885 fi
5886
5887 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5888 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5889 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5890 fi
5891 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5893 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5894 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5895 then :
5896 printf %s "(cached) " >&6
5897 else $as_nop
5898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5899 /* end confdefs.h. */
5900 int i;
5901 _ACEOF
5902 if ac_fn_c_try_compile "$LINENO"
5903 then :
5904 xorg_cv_cc_flag_unused_command_line_argument=yes
5905 else $as_nop
5906 xorg_cv_cc_flag_unused_command_line_argument=no
5907 fi
5908 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5909 fi
5910 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5911 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5912 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5913 CFLAGS="$xorg_testset_save_CFLAGS"
5914 fi
5915
5916 found="no"
5917
5918 if test $found = "no" ; then
5919 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5920 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5921 fi
5922
5923 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5924 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5925 fi
5926
5927 CFLAGS="$CFLAGS -Wshadow"
5928
5929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
5930 printf %s "checking if $CC supports -Wshadow... " >&6; }
5931 cacheid=xorg_cv_cc_flag__Wshadow
5932 if eval test \${$cacheid+y}
5933 then :
5934 printf %s "(cached) " >&6
5935 else $as_nop
5936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5937 /* end confdefs.h. */
5938 int i;
5939 int
5940 main (void)
5941 {
5942
5943 ;
5944 return 0;
5945 }
5946 _ACEOF
5947 if ac_fn_c_try_link "$LINENO"
5948 then :
5949 eval $cacheid=yes
5950 else $as_nop
5951 eval $cacheid=no
5952 fi
5953 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5954 conftest$ac_exeext conftest.$ac_ext
5955 fi
5956
5957
5958 CFLAGS="$xorg_testset_save_CFLAGS"
5959
5960 eval supported=\$$cacheid
5961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5962 printf "%s\n" "$supported" >&6; }
5963 if test "$supported" = "yes" ; then
5964 BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
5965 found="yes"
5966 fi
5967 fi
5968
5969
5970
5971
5972
5973
5974
5975
5976
5977
5978
5979
5980
5981
5982
5983 xorg_testset_save_CFLAGS="$CFLAGS"
5984
5985 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5986 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5988 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5989 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5990 then :
5991 printf %s "(cached) " >&6
5992 else $as_nop
5993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5994 /* end confdefs.h. */
5995 int i;
5996 _ACEOF
5997 if ac_fn_c_try_compile "$LINENO"
5998 then :
5999 xorg_cv_cc_flag_unknown_warning_option=yes
6000 else $as_nop
6001 xorg_cv_cc_flag_unknown_warning_option=no
6002 fi
6003 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6004 fi
6005 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6006 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6007 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6008 CFLAGS="$xorg_testset_save_CFLAGS"
6009 fi
6010
6011 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6012 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6013 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6014 fi
6015 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6017 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6018 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6019 then :
6020 printf %s "(cached) " >&6
6021 else $as_nop
6022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6023 /* end confdefs.h. */
6024 int i;
6025 _ACEOF
6026 if ac_fn_c_try_compile "$LINENO"
6027 then :
6028 xorg_cv_cc_flag_unused_command_line_argument=yes
6029 else $as_nop
6030 xorg_cv_cc_flag_unused_command_line_argument=no
6031 fi
6032 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6033 fi
6034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6035 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6036 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6037 CFLAGS="$xorg_testset_save_CFLAGS"
6038 fi
6039
6040 found="no"
6041
6042 if test $found = "no" ; then
6043 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6044 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6045 fi
6046
6047 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6048 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6049 fi
6050
6051 CFLAGS="$CFLAGS -Wmissing-noreturn"
6052
6053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6054 printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; }
6055 cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6056 if eval test \${$cacheid+y}
6057 then :
6058 printf %s "(cached) " >&6
6059 else $as_nop
6060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6061 /* end confdefs.h. */
6062 int i;
6063 int
6064 main (void)
6065 {
6066
6067 ;
6068 return 0;
6069 }
6070 _ACEOF
6071 if ac_fn_c_try_link "$LINENO"
6072 then :
6073 eval $cacheid=yes
6074 else $as_nop
6075 eval $cacheid=no
6076 fi
6077 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6078 conftest$ac_exeext conftest.$ac_ext
6079 fi
6080
6081
6082 CFLAGS="$xorg_testset_save_CFLAGS"
6083
6084 eval supported=\$$cacheid
6085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6086 printf "%s\n" "$supported" >&6; }
6087 if test "$supported" = "yes" ; then
6088 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6089 found="yes"
6090 fi
6091 fi
6092
6093
6094
6095
6096
6097
6098
6099
6100
6101
6102
6103
6104
6105
6106
6107 xorg_testset_save_CFLAGS="$CFLAGS"
6108
6109 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6110 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6112 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6113 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6114 then :
6115 printf %s "(cached) " >&6
6116 else $as_nop
6117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6118 /* end confdefs.h. */
6119 int i;
6120 _ACEOF
6121 if ac_fn_c_try_compile "$LINENO"
6122 then :
6123 xorg_cv_cc_flag_unknown_warning_option=yes
6124 else $as_nop
6125 xorg_cv_cc_flag_unknown_warning_option=no
6126 fi
6127 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6128 fi
6129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6130 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6131 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6132 CFLAGS="$xorg_testset_save_CFLAGS"
6133 fi
6134
6135 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6136 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6137 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6138 fi
6139 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6141 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6142 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6143 then :
6144 printf %s "(cached) " >&6
6145 else $as_nop
6146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6147 /* end confdefs.h. */
6148 int i;
6149 _ACEOF
6150 if ac_fn_c_try_compile "$LINENO"
6151 then :
6152 xorg_cv_cc_flag_unused_command_line_argument=yes
6153 else $as_nop
6154 xorg_cv_cc_flag_unused_command_line_argument=no
6155 fi
6156 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6157 fi
6158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6159 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6160 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6161 CFLAGS="$xorg_testset_save_CFLAGS"
6162 fi
6163
6164 found="no"
6165
6166 if test $found = "no" ; then
6167 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6168 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6169 fi
6170
6171 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6172 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6173 fi
6174
6175 CFLAGS="$CFLAGS -Wmissing-format-attribute"
6176
6177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6178 printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6179 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6180 if eval test \${$cacheid+y}
6181 then :
6182 printf %s "(cached) " >&6
6183 else $as_nop
6184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6185 /* end confdefs.h. */
6186 int i;
6187 int
6188 main (void)
6189 {
6190
6191 ;
6192 return 0;
6193 }
6194 _ACEOF
6195 if ac_fn_c_try_link "$LINENO"
6196 then :
6197 eval $cacheid=yes
6198 else $as_nop
6199 eval $cacheid=no
6200 fi
6201 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6202 conftest$ac_exeext conftest.$ac_ext
6203 fi
6204
6205
6206 CFLAGS="$xorg_testset_save_CFLAGS"
6207
6208 eval supported=\$$cacheid
6209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6210 printf "%s\n" "$supported" >&6; }
6211 if test "$supported" = "yes" ; then
6212 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6213 found="yes"
6214 fi
6215 fi
6216
6217
6218
6219
6220
6221
6222
6223
6224
6225
6226
6227
6228
6229
6230
6231 xorg_testset_save_CFLAGS="$CFLAGS"
6232
6233 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6234 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6236 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6237 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6238 then :
6239 printf %s "(cached) " >&6
6240 else $as_nop
6241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6242 /* end confdefs.h. */
6243 int i;
6244 _ACEOF
6245 if ac_fn_c_try_compile "$LINENO"
6246 then :
6247 xorg_cv_cc_flag_unknown_warning_option=yes
6248 else $as_nop
6249 xorg_cv_cc_flag_unknown_warning_option=no
6250 fi
6251 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6252 fi
6253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6254 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6255 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6256 CFLAGS="$xorg_testset_save_CFLAGS"
6257 fi
6258
6259 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6260 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6261 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6262 fi
6263 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6264 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6265 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6266 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6267 then :
6268 printf %s "(cached) " >&6
6269 else $as_nop
6270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6271 /* end confdefs.h. */
6272 int i;
6273 _ACEOF
6274 if ac_fn_c_try_compile "$LINENO"
6275 then :
6276 xorg_cv_cc_flag_unused_command_line_argument=yes
6277 else $as_nop
6278 xorg_cv_cc_flag_unused_command_line_argument=no
6279 fi
6280 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6281 fi
6282 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6283 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6284 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6285 CFLAGS="$xorg_testset_save_CFLAGS"
6286 fi
6287
6288 found="no"
6289
6290 if test $found = "no" ; then
6291 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6292 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6293 fi
6294
6295 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6296 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6297 fi
6298
6299 CFLAGS="$CFLAGS -Wredundant-decls"
6300
6301 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
6302 printf %s "checking if $CC supports -Wredundant-decls... " >&6; }
6303 cacheid=xorg_cv_cc_flag__Wredundant_decls
6304 if eval test \${$cacheid+y}
6305 then :
6306 printf %s "(cached) " >&6
6307 else $as_nop
6308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6309 /* end confdefs.h. */
6310 int i;
6311 int
6312 main (void)
6313 {
6314
6315 ;
6316 return 0;
6317 }
6318 _ACEOF
6319 if ac_fn_c_try_link "$LINENO"
6320 then :
6321 eval $cacheid=yes
6322 else $as_nop
6323 eval $cacheid=no
6324 fi
6325 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6326 conftest$ac_exeext conftest.$ac_ext
6327 fi
6328
6329
6330 CFLAGS="$xorg_testset_save_CFLAGS"
6331
6332 eval supported=\$$cacheid
6333 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6334 printf "%s\n" "$supported" >&6; }
6335 if test "$supported" = "yes" ; then
6336 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
6337 found="yes"
6338 fi
6339 fi
6340
6341
6342
6343
6344
6345
6346
6347
6348
6349
6350
6351
6352
6353
6354
6355 xorg_testset_save_CFLAGS="$CFLAGS"
6356
6357 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6358 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6360 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6361 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6362 then :
6363 printf %s "(cached) " >&6
6364 else $as_nop
6365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6366 /* end confdefs.h. */
6367 int i;
6368 _ACEOF
6369 if ac_fn_c_try_compile "$LINENO"
6370 then :
6371 xorg_cv_cc_flag_unknown_warning_option=yes
6372 else $as_nop
6373 xorg_cv_cc_flag_unknown_warning_option=no
6374 fi
6375 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6376 fi
6377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6378 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6379 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6380 CFLAGS="$xorg_testset_save_CFLAGS"
6381 fi
6382
6383 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6384 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6385 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6386 fi
6387 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6388 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6389 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6390 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6391 then :
6392 printf %s "(cached) " >&6
6393 else $as_nop
6394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6395 /* end confdefs.h. */
6396 int i;
6397 _ACEOF
6398 if ac_fn_c_try_compile "$LINENO"
6399 then :
6400 xorg_cv_cc_flag_unused_command_line_argument=yes
6401 else $as_nop
6402 xorg_cv_cc_flag_unused_command_line_argument=no
6403 fi
6404 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6405 fi
6406 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6407 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6408 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6409 CFLAGS="$xorg_testset_save_CFLAGS"
6410 fi
6411
6412 found="no"
6413
6414 if test $found = "no" ; then
6415 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6416 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6417 fi
6418
6419 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6420 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6421 fi
6422
6423 CFLAGS="$CFLAGS -Wlogical-op"
6424
6425 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
6426 printf %s "checking if $CC supports -Wlogical-op... " >&6; }
6427 cacheid=xorg_cv_cc_flag__Wlogical_op
6428 if eval test \${$cacheid+y}
6429 then :
6430 printf %s "(cached) " >&6
6431 else $as_nop
6432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6433 /* end confdefs.h. */
6434 int i;
6435 int
6436 main (void)
6437 {
6438
6439 ;
6440 return 0;
6441 }
6442 _ACEOF
6443 if ac_fn_c_try_link "$LINENO"
6444 then :
6445 eval $cacheid=yes
6446 else $as_nop
6447 eval $cacheid=no
6448 fi
6449 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6450 conftest$ac_exeext conftest.$ac_ext
6451 fi
6452
6453
6454 CFLAGS="$xorg_testset_save_CFLAGS"
6455
6456 eval supported=\$$cacheid
6457 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6458 printf "%s\n" "$supported" >&6; }
6459 if test "$supported" = "yes" ; then
6460 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
6461 found="yes"
6462 fi
6463 fi
6464
6465
6466
6467 # These are currently disabled because they are noisy. They will be enabled
6468 # in the future once the codebase is sufficiently modernized to silence
6469 # them. For now, I don't want them to drown out the other warnings.
6470 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
6471 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
6472 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
6473
6474 # Turn some warnings into errors, so we don't accidently get successful builds
6475 # when there are problems that should be fixed.
6476
6477 if test "x$SELECTIVE_WERROR" = "xyes" ; then
6478
6479
6480
6481
6482
6483
6484
6485
6486
6487
6488
6489
6490
6491 xorg_testset_save_CFLAGS="$CFLAGS"
6492
6493 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6494 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6496 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6497 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6498 then :
6499 printf %s "(cached) " >&6
6500 else $as_nop
6501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6502 /* end confdefs.h. */
6503 int i;
6504 _ACEOF
6505 if ac_fn_c_try_compile "$LINENO"
6506 then :
6507 xorg_cv_cc_flag_unknown_warning_option=yes
6508 else $as_nop
6509 xorg_cv_cc_flag_unknown_warning_option=no
6510 fi
6511 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6512 fi
6513 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6514 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6515 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6516 CFLAGS="$xorg_testset_save_CFLAGS"
6517 fi
6518
6519 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6520 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6521 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6522 fi
6523 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6525 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6526 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6527 then :
6528 printf %s "(cached) " >&6
6529 else $as_nop
6530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6531 /* end confdefs.h. */
6532 int i;
6533 _ACEOF
6534 if ac_fn_c_try_compile "$LINENO"
6535 then :
6536 xorg_cv_cc_flag_unused_command_line_argument=yes
6537 else $as_nop
6538 xorg_cv_cc_flag_unused_command_line_argument=no
6539 fi
6540 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6541 fi
6542 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6543 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6544 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6545 CFLAGS="$xorg_testset_save_CFLAGS"
6546 fi
6547
6548 found="no"
6549
6550 if test $found = "no" ; then
6551 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6552 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6553 fi
6554
6555 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6556 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6557 fi
6558
6559 CFLAGS="$CFLAGS -Werror=implicit"
6560
6561 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
6562 printf %s "checking if $CC supports -Werror=implicit... " >&6; }
6563 cacheid=xorg_cv_cc_flag__Werror_implicit
6564 if eval test \${$cacheid+y}
6565 then :
6566 printf %s "(cached) " >&6
6567 else $as_nop
6568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6569 /* end confdefs.h. */
6570 int i;
6571 int
6572 main (void)
6573 {
6574
6575 ;
6576 return 0;
6577 }
6578 _ACEOF
6579 if ac_fn_c_try_link "$LINENO"
6580 then :
6581 eval $cacheid=yes
6582 else $as_nop
6583 eval $cacheid=no
6584 fi
6585 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6586 conftest$ac_exeext conftest.$ac_ext
6587 fi
6588
6589
6590 CFLAGS="$xorg_testset_save_CFLAGS"
6591
6592 eval supported=\$$cacheid
6593 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6594 printf "%s\n" "$supported" >&6; }
6595 if test "$supported" = "yes" ; then
6596 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
6597 found="yes"
6598 fi
6599 fi
6600
6601 if test $found = "no" ; then
6602 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6603 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6604 fi
6605
6606 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6607 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6608 fi
6609
6610 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
6611
6612 { 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
6613 printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
6614 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
6615 if eval test \${$cacheid+y}
6616 then :
6617 printf %s "(cached) " >&6
6618 else $as_nop
6619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6620 /* end confdefs.h. */
6621 int i;
6622 int
6623 main (void)
6624 {
6625
6626 ;
6627 return 0;
6628 }
6629 _ACEOF
6630 if ac_fn_c_try_link "$LINENO"
6631 then :
6632 eval $cacheid=yes
6633 else $as_nop
6634 eval $cacheid=no
6635 fi
6636 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6637 conftest$ac_exeext conftest.$ac_ext
6638 fi
6639
6640
6641 CFLAGS="$xorg_testset_save_CFLAGS"
6642
6643 eval supported=\$$cacheid
6644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6645 printf "%s\n" "$supported" >&6; }
6646 if test "$supported" = "yes" ; then
6647 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
6648 found="yes"
6649 fi
6650 fi
6651
6652
6653
6654
6655
6656
6657
6658
6659
6660
6661
6662
6663
6664
6665
6666 xorg_testset_save_CFLAGS="$CFLAGS"
6667
6668 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6669 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6671 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6672 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6673 then :
6674 printf %s "(cached) " >&6
6675 else $as_nop
6676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6677 /* end confdefs.h. */
6678 int i;
6679 _ACEOF
6680 if ac_fn_c_try_compile "$LINENO"
6681 then :
6682 xorg_cv_cc_flag_unknown_warning_option=yes
6683 else $as_nop
6684 xorg_cv_cc_flag_unknown_warning_option=no
6685 fi
6686 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6687 fi
6688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6689 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6690 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6691 CFLAGS="$xorg_testset_save_CFLAGS"
6692 fi
6693
6694 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6695 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6696 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6697 fi
6698 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6700 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6701 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6702 then :
6703 printf %s "(cached) " >&6
6704 else $as_nop
6705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6706 /* end confdefs.h. */
6707 int i;
6708 _ACEOF
6709 if ac_fn_c_try_compile "$LINENO"
6710 then :
6711 xorg_cv_cc_flag_unused_command_line_argument=yes
6712 else $as_nop
6713 xorg_cv_cc_flag_unused_command_line_argument=no
6714 fi
6715 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6716 fi
6717 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6718 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6719 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6720 CFLAGS="$xorg_testset_save_CFLAGS"
6721 fi
6722
6723 found="no"
6724
6725 if test $found = "no" ; then
6726 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6727 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6728 fi
6729
6730 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6731 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6732 fi
6733
6734 CFLAGS="$CFLAGS -Werror=nonnull"
6735
6736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
6737 printf %s "checking if $CC supports -Werror=nonnull... " >&6; }
6738 cacheid=xorg_cv_cc_flag__Werror_nonnull
6739 if eval test \${$cacheid+y}
6740 then :
6741 printf %s "(cached) " >&6
6742 else $as_nop
6743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6744 /* end confdefs.h. */
6745 int i;
6746 int
6747 main (void)
6748 {
6749
6750 ;
6751 return 0;
6752 }
6753 _ACEOF
6754 if ac_fn_c_try_link "$LINENO"
6755 then :
6756 eval $cacheid=yes
6757 else $as_nop
6758 eval $cacheid=no
6759 fi
6760 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6761 conftest$ac_exeext conftest.$ac_ext
6762 fi
6763
6764
6765 CFLAGS="$xorg_testset_save_CFLAGS"
6766
6767 eval supported=\$$cacheid
6768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6769 printf "%s\n" "$supported" >&6; }
6770 if test "$supported" = "yes" ; then
6771 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
6772 found="yes"
6773 fi
6774 fi
6775
6776
6777
6778
6779
6780
6781
6782
6783
6784
6785
6786
6787
6788
6789
6790 xorg_testset_save_CFLAGS="$CFLAGS"
6791
6792 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6793 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6795 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6796 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6797 then :
6798 printf %s "(cached) " >&6
6799 else $as_nop
6800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6801 /* end confdefs.h. */
6802 int i;
6803 _ACEOF
6804 if ac_fn_c_try_compile "$LINENO"
6805 then :
6806 xorg_cv_cc_flag_unknown_warning_option=yes
6807 else $as_nop
6808 xorg_cv_cc_flag_unknown_warning_option=no
6809 fi
6810 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6811 fi
6812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6813 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6814 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6815 CFLAGS="$xorg_testset_save_CFLAGS"
6816 fi
6817
6818 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6819 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6820 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6821 fi
6822 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6824 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6825 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6826 then :
6827 printf %s "(cached) " >&6
6828 else $as_nop
6829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6830 /* end confdefs.h. */
6831 int i;
6832 _ACEOF
6833 if ac_fn_c_try_compile "$LINENO"
6834 then :
6835 xorg_cv_cc_flag_unused_command_line_argument=yes
6836 else $as_nop
6837 xorg_cv_cc_flag_unused_command_line_argument=no
6838 fi
6839 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6840 fi
6841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6842 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6843 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6844 CFLAGS="$xorg_testset_save_CFLAGS"
6845 fi
6846
6847 found="no"
6848
6849 if test $found = "no" ; then
6850 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6851 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6852 fi
6853
6854 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6855 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6856 fi
6857
6858 CFLAGS="$CFLAGS -Werror=init-self"
6859
6860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
6861 printf %s "checking if $CC supports -Werror=init-self... " >&6; }
6862 cacheid=xorg_cv_cc_flag__Werror_init_self
6863 if eval test \${$cacheid+y}
6864 then :
6865 printf %s "(cached) " >&6
6866 else $as_nop
6867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6868 /* end confdefs.h. */
6869 int i;
6870 int
6871 main (void)
6872 {
6873
6874 ;
6875 return 0;
6876 }
6877 _ACEOF
6878 if ac_fn_c_try_link "$LINENO"
6879 then :
6880 eval $cacheid=yes
6881 else $as_nop
6882 eval $cacheid=no
6883 fi
6884 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6885 conftest$ac_exeext conftest.$ac_ext
6886 fi
6887
6888
6889 CFLAGS="$xorg_testset_save_CFLAGS"
6890
6891 eval supported=\$$cacheid
6892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6893 printf "%s\n" "$supported" >&6; }
6894 if test "$supported" = "yes" ; then
6895 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
6896 found="yes"
6897 fi
6898 fi
6899
6900
6901
6902
6903
6904
6905
6906
6907
6908
6909
6910
6911
6912
6913
6914 xorg_testset_save_CFLAGS="$CFLAGS"
6915
6916 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6917 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6918 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6919 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6920 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6921 then :
6922 printf %s "(cached) " >&6
6923 else $as_nop
6924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6925 /* end confdefs.h. */
6926 int i;
6927 _ACEOF
6928 if ac_fn_c_try_compile "$LINENO"
6929 then :
6930 xorg_cv_cc_flag_unknown_warning_option=yes
6931 else $as_nop
6932 xorg_cv_cc_flag_unknown_warning_option=no
6933 fi
6934 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6935 fi
6936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6937 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6938 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6939 CFLAGS="$xorg_testset_save_CFLAGS"
6940 fi
6941
6942 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6943 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6944 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6945 fi
6946 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6947 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6948 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6949 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6950 then :
6951 printf %s "(cached) " >&6
6952 else $as_nop
6953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6954 /* end confdefs.h. */
6955 int i;
6956 _ACEOF
6957 if ac_fn_c_try_compile "$LINENO"
6958 then :
6959 xorg_cv_cc_flag_unused_command_line_argument=yes
6960 else $as_nop
6961 xorg_cv_cc_flag_unused_command_line_argument=no
6962 fi
6963 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6964 fi
6965 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6966 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6967 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6968 CFLAGS="$xorg_testset_save_CFLAGS"
6969 fi
6970
6971 found="no"
6972
6973 if test $found = "no" ; then
6974 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6975 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6976 fi
6977
6978 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6979 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6980 fi
6981
6982 CFLAGS="$CFLAGS -Werror=main"
6983
6984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
6985 printf %s "checking if $CC supports -Werror=main... " >&6; }
6986 cacheid=xorg_cv_cc_flag__Werror_main
6987 if eval test \${$cacheid+y}
6988 then :
6989 printf %s "(cached) " >&6
6990 else $as_nop
6991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6992 /* end confdefs.h. */
6993 int i;
6994 int
6995 main (void)
6996 {
6997
6998 ;
6999 return 0;
7000 }
7001 _ACEOF
7002 if ac_fn_c_try_link "$LINENO"
7003 then :
7004 eval $cacheid=yes
7005 else $as_nop
7006 eval $cacheid=no
7007 fi
7008 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7009 conftest$ac_exeext conftest.$ac_ext
7010 fi
7011
7012
7013 CFLAGS="$xorg_testset_save_CFLAGS"
7014
7015 eval supported=\$$cacheid
7016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7017 printf "%s\n" "$supported" >&6; }
7018 if test "$supported" = "yes" ; then
7019 BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7020 found="yes"
7021 fi
7022 fi
7023
7024
7025
7026
7027
7028
7029
7030
7031
7032
7033
7034
7035
7036
7037
7038 xorg_testset_save_CFLAGS="$CFLAGS"
7039
7040 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7041 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7043 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7044 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7045 then :
7046 printf %s "(cached) " >&6
7047 else $as_nop
7048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7049 /* end confdefs.h. */
7050 int i;
7051 _ACEOF
7052 if ac_fn_c_try_compile "$LINENO"
7053 then :
7054 xorg_cv_cc_flag_unknown_warning_option=yes
7055 else $as_nop
7056 xorg_cv_cc_flag_unknown_warning_option=no
7057 fi
7058 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7059 fi
7060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7061 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7062 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7063 CFLAGS="$xorg_testset_save_CFLAGS"
7064 fi
7065
7066 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7067 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7068 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7069 fi
7070 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7072 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7073 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7074 then :
7075 printf %s "(cached) " >&6
7076 else $as_nop
7077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7078 /* end confdefs.h. */
7079 int i;
7080 _ACEOF
7081 if ac_fn_c_try_compile "$LINENO"
7082 then :
7083 xorg_cv_cc_flag_unused_command_line_argument=yes
7084 else $as_nop
7085 xorg_cv_cc_flag_unused_command_line_argument=no
7086 fi
7087 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7088 fi
7089 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7090 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7091 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7092 CFLAGS="$xorg_testset_save_CFLAGS"
7093 fi
7094
7095 found="no"
7096
7097 if test $found = "no" ; then
7098 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7099 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7100 fi
7101
7102 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7103 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7104 fi
7105
7106 CFLAGS="$CFLAGS -Werror=missing-braces"
7107
7108 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
7109 printf %s "checking if $CC supports -Werror=missing-braces... " >&6; }
7110 cacheid=xorg_cv_cc_flag__Werror_missing_braces
7111 if eval test \${$cacheid+y}
7112 then :
7113 printf %s "(cached) " >&6
7114 else $as_nop
7115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7116 /* end confdefs.h. */
7117 int i;
7118 int
7119 main (void)
7120 {
7121
7122 ;
7123 return 0;
7124 }
7125 _ACEOF
7126 if ac_fn_c_try_link "$LINENO"
7127 then :
7128 eval $cacheid=yes
7129 else $as_nop
7130 eval $cacheid=no
7131 fi
7132 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7133 conftest$ac_exeext conftest.$ac_ext
7134 fi
7135
7136
7137 CFLAGS="$xorg_testset_save_CFLAGS"
7138
7139 eval supported=\$$cacheid
7140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7141 printf "%s\n" "$supported" >&6; }
7142 if test "$supported" = "yes" ; then
7143 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7144 found="yes"
7145 fi
7146 fi
7147
7148
7149
7150
7151
7152
7153
7154
7155
7156
7157
7158
7159
7160
7161
7162 xorg_testset_save_CFLAGS="$CFLAGS"
7163
7164 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7165 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7167 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7168 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7169 then :
7170 printf %s "(cached) " >&6
7171 else $as_nop
7172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7173 /* end confdefs.h. */
7174 int i;
7175 _ACEOF
7176 if ac_fn_c_try_compile "$LINENO"
7177 then :
7178 xorg_cv_cc_flag_unknown_warning_option=yes
7179 else $as_nop
7180 xorg_cv_cc_flag_unknown_warning_option=no
7181 fi
7182 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7183 fi
7184 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7185 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7186 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7187 CFLAGS="$xorg_testset_save_CFLAGS"
7188 fi
7189
7190 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7191 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7192 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7193 fi
7194 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7196 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7197 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7198 then :
7199 printf %s "(cached) " >&6
7200 else $as_nop
7201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7202 /* end confdefs.h. */
7203 int i;
7204 _ACEOF
7205 if ac_fn_c_try_compile "$LINENO"
7206 then :
7207 xorg_cv_cc_flag_unused_command_line_argument=yes
7208 else $as_nop
7209 xorg_cv_cc_flag_unused_command_line_argument=no
7210 fi
7211 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7212 fi
7213 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7214 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7215 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7216 CFLAGS="$xorg_testset_save_CFLAGS"
7217 fi
7218
7219 found="no"
7220
7221 if test $found = "no" ; then
7222 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7223 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7224 fi
7225
7226 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7227 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7228 fi
7229
7230 CFLAGS="$CFLAGS -Werror=sequence-point"
7231
7232 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
7233 printf %s "checking if $CC supports -Werror=sequence-point... " >&6; }
7234 cacheid=xorg_cv_cc_flag__Werror_sequence_point
7235 if eval test \${$cacheid+y}
7236 then :
7237 printf %s "(cached) " >&6
7238 else $as_nop
7239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7240 /* end confdefs.h. */
7241 int i;
7242 int
7243 main (void)
7244 {
7245
7246 ;
7247 return 0;
7248 }
7249 _ACEOF
7250 if ac_fn_c_try_link "$LINENO"
7251 then :
7252 eval $cacheid=yes
7253 else $as_nop
7254 eval $cacheid=no
7255 fi
7256 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7257 conftest$ac_exeext conftest.$ac_ext
7258 fi
7259
7260
7261 CFLAGS="$xorg_testset_save_CFLAGS"
7262
7263 eval supported=\$$cacheid
7264 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7265 printf "%s\n" "$supported" >&6; }
7266 if test "$supported" = "yes" ; then
7267 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
7268 found="yes"
7269 fi
7270 fi
7271
7272
7273
7274
7275
7276
7277
7278
7279
7280
7281
7282
7283
7284
7285
7286 xorg_testset_save_CFLAGS="$CFLAGS"
7287
7288 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7289 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7291 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7292 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7293 then :
7294 printf %s "(cached) " >&6
7295 else $as_nop
7296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7297 /* end confdefs.h. */
7298 int i;
7299 _ACEOF
7300 if ac_fn_c_try_compile "$LINENO"
7301 then :
7302 xorg_cv_cc_flag_unknown_warning_option=yes
7303 else $as_nop
7304 xorg_cv_cc_flag_unknown_warning_option=no
7305 fi
7306 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7307 fi
7308 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7309 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7310 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7311 CFLAGS="$xorg_testset_save_CFLAGS"
7312 fi
7313
7314 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7315 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7316 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7317 fi
7318 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7320 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7321 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7322 then :
7323 printf %s "(cached) " >&6
7324 else $as_nop
7325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7326 /* end confdefs.h. */
7327 int i;
7328 _ACEOF
7329 if ac_fn_c_try_compile "$LINENO"
7330 then :
7331 xorg_cv_cc_flag_unused_command_line_argument=yes
7332 else $as_nop
7333 xorg_cv_cc_flag_unused_command_line_argument=no
7334 fi
7335 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7336 fi
7337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7338 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7339 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7340 CFLAGS="$xorg_testset_save_CFLAGS"
7341 fi
7342
7343 found="no"
7344
7345 if test $found = "no" ; then
7346 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7347 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7348 fi
7349
7350 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7351 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7352 fi
7353
7354 CFLAGS="$CFLAGS -Werror=return-type"
7355
7356 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
7357 printf %s "checking if $CC supports -Werror=return-type... " >&6; }
7358 cacheid=xorg_cv_cc_flag__Werror_return_type
7359 if eval test \${$cacheid+y}
7360 then :
7361 printf %s "(cached) " >&6
7362 else $as_nop
7363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7364 /* end confdefs.h. */
7365 int i;
7366 int
7367 main (void)
7368 {
7369
7370 ;
7371 return 0;
7372 }
7373 _ACEOF
7374 if ac_fn_c_try_link "$LINENO"
7375 then :
7376 eval $cacheid=yes
7377 else $as_nop
7378 eval $cacheid=no
7379 fi
7380 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7381 conftest$ac_exeext conftest.$ac_ext
7382 fi
7383
7384
7385 CFLAGS="$xorg_testset_save_CFLAGS"
7386
7387 eval supported=\$$cacheid
7388 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7389 printf "%s\n" "$supported" >&6; }
7390 if test "$supported" = "yes" ; then
7391 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
7392 found="yes"
7393 fi
7394 fi
7395
7396 if test $found = "no" ; then
7397 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7398 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7399 fi
7400
7401 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7402 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7403 fi
7404
7405 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7406
7407 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
7408 printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
7409 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
7410 if eval test \${$cacheid+y}
7411 then :
7412 printf %s "(cached) " >&6
7413 else $as_nop
7414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7415 /* end confdefs.h. */
7416 int i;
7417 int
7418 main (void)
7419 {
7420
7421 ;
7422 return 0;
7423 }
7424 _ACEOF
7425 if ac_fn_c_try_link "$LINENO"
7426 then :
7427 eval $cacheid=yes
7428 else $as_nop
7429 eval $cacheid=no
7430 fi
7431 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7432 conftest$ac_exeext conftest.$ac_ext
7433 fi
7434
7435
7436 CFLAGS="$xorg_testset_save_CFLAGS"
7437
7438 eval supported=\$$cacheid
7439 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7440 printf "%s\n" "$supported" >&6; }
7441 if test "$supported" = "yes" ; then
7442 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7443 found="yes"
7444 fi
7445 fi
7446
7447
7448
7449
7450
7451
7452
7453
7454
7455
7456
7457
7458
7459
7460
7461 xorg_testset_save_CFLAGS="$CFLAGS"
7462
7463 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7464 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7465 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7466 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7467 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7468 then :
7469 printf %s "(cached) " >&6
7470 else $as_nop
7471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7472 /* end confdefs.h. */
7473 int i;
7474 _ACEOF
7475 if ac_fn_c_try_compile "$LINENO"
7476 then :
7477 xorg_cv_cc_flag_unknown_warning_option=yes
7478 else $as_nop
7479 xorg_cv_cc_flag_unknown_warning_option=no
7480 fi
7481 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7482 fi
7483 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7484 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7485 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7486 CFLAGS="$xorg_testset_save_CFLAGS"
7487 fi
7488
7489 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7490 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7491 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7492 fi
7493 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7495 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7496 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7497 then :
7498 printf %s "(cached) " >&6
7499 else $as_nop
7500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7501 /* end confdefs.h. */
7502 int i;
7503 _ACEOF
7504 if ac_fn_c_try_compile "$LINENO"
7505 then :
7506 xorg_cv_cc_flag_unused_command_line_argument=yes
7507 else $as_nop
7508 xorg_cv_cc_flag_unused_command_line_argument=no
7509 fi
7510 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7511 fi
7512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7513 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7514 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7515 CFLAGS="$xorg_testset_save_CFLAGS"
7516 fi
7517
7518 found="no"
7519
7520 if test $found = "no" ; then
7521 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7522 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7523 fi
7524
7525 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7526 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7527 fi
7528
7529 CFLAGS="$CFLAGS -Werror=trigraphs"
7530
7531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
7532 printf %s "checking if $CC supports -Werror=trigraphs... " >&6; }
7533 cacheid=xorg_cv_cc_flag__Werror_trigraphs
7534 if eval test \${$cacheid+y}
7535 then :
7536 printf %s "(cached) " >&6
7537 else $as_nop
7538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7539 /* end confdefs.h. */
7540 int i;
7541 int
7542 main (void)
7543 {
7544
7545 ;
7546 return 0;
7547 }
7548 _ACEOF
7549 if ac_fn_c_try_link "$LINENO"
7550 then :
7551 eval $cacheid=yes
7552 else $as_nop
7553 eval $cacheid=no
7554 fi
7555 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7556 conftest$ac_exeext conftest.$ac_ext
7557 fi
7558
7559
7560 CFLAGS="$xorg_testset_save_CFLAGS"
7561
7562 eval supported=\$$cacheid
7563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7564 printf "%s\n" "$supported" >&6; }
7565 if test "$supported" = "yes" ; then
7566 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
7567 found="yes"
7568 fi
7569 fi
7570
7571
7572
7573
7574
7575
7576
7577
7578
7579
7580
7581
7582
7583
7584
7585 xorg_testset_save_CFLAGS="$CFLAGS"
7586
7587 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7588 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7589 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7590 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7591 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7592 then :
7593 printf %s "(cached) " >&6
7594 else $as_nop
7595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7596 /* end confdefs.h. */
7597 int i;
7598 _ACEOF
7599 if ac_fn_c_try_compile "$LINENO"
7600 then :
7601 xorg_cv_cc_flag_unknown_warning_option=yes
7602 else $as_nop
7603 xorg_cv_cc_flag_unknown_warning_option=no
7604 fi
7605 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7606 fi
7607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7608 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7609 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7610 CFLAGS="$xorg_testset_save_CFLAGS"
7611 fi
7612
7613 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7614 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7615 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7616 fi
7617 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7619 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7620 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7621 then :
7622 printf %s "(cached) " >&6
7623 else $as_nop
7624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7625 /* end confdefs.h. */
7626 int i;
7627 _ACEOF
7628 if ac_fn_c_try_compile "$LINENO"
7629 then :
7630 xorg_cv_cc_flag_unused_command_line_argument=yes
7631 else $as_nop
7632 xorg_cv_cc_flag_unused_command_line_argument=no
7633 fi
7634 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7635 fi
7636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7637 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7638 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7639 CFLAGS="$xorg_testset_save_CFLAGS"
7640 fi
7641
7642 found="no"
7643
7644 if test $found = "no" ; then
7645 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7646 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7647 fi
7648
7649 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7650 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7651 fi
7652
7653 CFLAGS="$CFLAGS -Werror=array-bounds"
7654
7655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
7656 printf %s "checking if $CC supports -Werror=array-bounds... " >&6; }
7657 cacheid=xorg_cv_cc_flag__Werror_array_bounds
7658 if eval test \${$cacheid+y}
7659 then :
7660 printf %s "(cached) " >&6
7661 else $as_nop
7662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7663 /* end confdefs.h. */
7664 int i;
7665 int
7666 main (void)
7667 {
7668
7669 ;
7670 return 0;
7671 }
7672 _ACEOF
7673 if ac_fn_c_try_link "$LINENO"
7674 then :
7675 eval $cacheid=yes
7676 else $as_nop
7677 eval $cacheid=no
7678 fi
7679 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7680 conftest$ac_exeext conftest.$ac_ext
7681 fi
7682
7683
7684 CFLAGS="$xorg_testset_save_CFLAGS"
7685
7686 eval supported=\$$cacheid
7687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7688 printf "%s\n" "$supported" >&6; }
7689 if test "$supported" = "yes" ; then
7690 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
7691 found="yes"
7692 fi
7693 fi
7694
7695
7696
7697
7698
7699
7700
7701
7702
7703
7704
7705
7706
7707
7708
7709 xorg_testset_save_CFLAGS="$CFLAGS"
7710
7711 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7712 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7714 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7715 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7716 then :
7717 printf %s "(cached) " >&6
7718 else $as_nop
7719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7720 /* end confdefs.h. */
7721 int i;
7722 _ACEOF
7723 if ac_fn_c_try_compile "$LINENO"
7724 then :
7725 xorg_cv_cc_flag_unknown_warning_option=yes
7726 else $as_nop
7727 xorg_cv_cc_flag_unknown_warning_option=no
7728 fi
7729 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7730 fi
7731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7732 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7733 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7734 CFLAGS="$xorg_testset_save_CFLAGS"
7735 fi
7736
7737 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7738 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7739 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7740 fi
7741 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7743 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7744 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7745 then :
7746 printf %s "(cached) " >&6
7747 else $as_nop
7748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7749 /* end confdefs.h. */
7750 int i;
7751 _ACEOF
7752 if ac_fn_c_try_compile "$LINENO"
7753 then :
7754 xorg_cv_cc_flag_unused_command_line_argument=yes
7755 else $as_nop
7756 xorg_cv_cc_flag_unused_command_line_argument=no
7757 fi
7758 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7759 fi
7760 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7761 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7762 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7763 CFLAGS="$xorg_testset_save_CFLAGS"
7764 fi
7765
7766 found="no"
7767
7768 if test $found = "no" ; then
7769 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7770 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7771 fi
7772
7773 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7774 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7775 fi
7776
7777 CFLAGS="$CFLAGS -Werror=write-strings"
7778
7779 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
7780 printf %s "checking if $CC supports -Werror=write-strings... " >&6; }
7781 cacheid=xorg_cv_cc_flag__Werror_write_strings
7782 if eval test \${$cacheid+y}
7783 then :
7784 printf %s "(cached) " >&6
7785 else $as_nop
7786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7787 /* end confdefs.h. */
7788 int i;
7789 int
7790 main (void)
7791 {
7792
7793 ;
7794 return 0;
7795 }
7796 _ACEOF
7797 if ac_fn_c_try_link "$LINENO"
7798 then :
7799 eval $cacheid=yes
7800 else $as_nop
7801 eval $cacheid=no
7802 fi
7803 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7804 conftest$ac_exeext conftest.$ac_ext
7805 fi
7806
7807
7808 CFLAGS="$xorg_testset_save_CFLAGS"
7809
7810 eval supported=\$$cacheid
7811 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7812 printf "%s\n" "$supported" >&6; }
7813 if test "$supported" = "yes" ; then
7814 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
7815 found="yes"
7816 fi
7817 fi
7818
7819
7820
7821
7822
7823
7824
7825
7826
7827
7828
7829
7830
7831
7832
7833 xorg_testset_save_CFLAGS="$CFLAGS"
7834
7835 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7836 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7838 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7839 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7840 then :
7841 printf %s "(cached) " >&6
7842 else $as_nop
7843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7844 /* end confdefs.h. */
7845 int i;
7846 _ACEOF
7847 if ac_fn_c_try_compile "$LINENO"
7848 then :
7849 xorg_cv_cc_flag_unknown_warning_option=yes
7850 else $as_nop
7851 xorg_cv_cc_flag_unknown_warning_option=no
7852 fi
7853 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7854 fi
7855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7856 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7857 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7858 CFLAGS="$xorg_testset_save_CFLAGS"
7859 fi
7860
7861 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7862 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7863 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7864 fi
7865 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7867 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7868 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7869 then :
7870 printf %s "(cached) " >&6
7871 else $as_nop
7872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7873 /* end confdefs.h. */
7874 int i;
7875 _ACEOF
7876 if ac_fn_c_try_compile "$LINENO"
7877 then :
7878 xorg_cv_cc_flag_unused_command_line_argument=yes
7879 else $as_nop
7880 xorg_cv_cc_flag_unused_command_line_argument=no
7881 fi
7882 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7883 fi
7884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7885 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7886 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7887 CFLAGS="$xorg_testset_save_CFLAGS"
7888 fi
7889
7890 found="no"
7891
7892 if test $found = "no" ; then
7893 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7894 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7895 fi
7896
7897 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7898 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7899 fi
7900
7901 CFLAGS="$CFLAGS -Werror=address"
7902
7903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
7904 printf %s "checking if $CC supports -Werror=address... " >&6; }
7905 cacheid=xorg_cv_cc_flag__Werror_address
7906 if eval test \${$cacheid+y}
7907 then :
7908 printf %s "(cached) " >&6
7909 else $as_nop
7910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7911 /* end confdefs.h. */
7912 int i;
7913 int
7914 main (void)
7915 {
7916
7917 ;
7918 return 0;
7919 }
7920 _ACEOF
7921 if ac_fn_c_try_link "$LINENO"
7922 then :
7923 eval $cacheid=yes
7924 else $as_nop
7925 eval $cacheid=no
7926 fi
7927 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7928 conftest$ac_exeext conftest.$ac_ext
7929 fi
7930
7931
7932 CFLAGS="$xorg_testset_save_CFLAGS"
7933
7934 eval supported=\$$cacheid
7935 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7936 printf "%s\n" "$supported" >&6; }
7937 if test "$supported" = "yes" ; then
7938 BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
7939 found="yes"
7940 fi
7941 fi
7942
7943
7944
7945
7946
7947
7948
7949
7950
7951
7952
7953
7954
7955
7956
7957 xorg_testset_save_CFLAGS="$CFLAGS"
7958
7959 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7960 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7962 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7963 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7964 then :
7965 printf %s "(cached) " >&6
7966 else $as_nop
7967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7968 /* end confdefs.h. */
7969 int i;
7970 _ACEOF
7971 if ac_fn_c_try_compile "$LINENO"
7972 then :
7973 xorg_cv_cc_flag_unknown_warning_option=yes
7974 else $as_nop
7975 xorg_cv_cc_flag_unknown_warning_option=no
7976 fi
7977 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7978 fi
7979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7980 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7981 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7982 CFLAGS="$xorg_testset_save_CFLAGS"
7983 fi
7984
7985 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7986 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7987 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7988 fi
7989 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7991 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7992 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7993 then :
7994 printf %s "(cached) " >&6
7995 else $as_nop
7996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7997 /* end confdefs.h. */
7998 int i;
7999 _ACEOF
8000 if ac_fn_c_try_compile "$LINENO"
8001 then :
8002 xorg_cv_cc_flag_unused_command_line_argument=yes
8003 else $as_nop
8004 xorg_cv_cc_flag_unused_command_line_argument=no
8005 fi
8006 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8007 fi
8008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8009 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8010 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8011 CFLAGS="$xorg_testset_save_CFLAGS"
8012 fi
8013
8014 found="no"
8015
8016 if test $found = "no" ; then
8017 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8018 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8019 fi
8020
8021 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8022 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8023 fi
8024
8025 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8026
8027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
8028 printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
8029 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
8030 if eval test \${$cacheid+y}
8031 then :
8032 printf %s "(cached) " >&6
8033 else $as_nop
8034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8035 /* end confdefs.h. */
8036 int i;
8037 int
8038 main (void)
8039 {
8040
8041 ;
8042 return 0;
8043 }
8044 _ACEOF
8045 if ac_fn_c_try_link "$LINENO"
8046 then :
8047 eval $cacheid=yes
8048 else $as_nop
8049 eval $cacheid=no
8050 fi
8051 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8052 conftest$ac_exeext conftest.$ac_ext
8053 fi
8054
8055
8056 CFLAGS="$xorg_testset_save_CFLAGS"
8057
8058 eval supported=\$$cacheid
8059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8060 printf "%s\n" "$supported" >&6; }
8061 if test "$supported" = "yes" ; then
8062 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8063 found="yes"
8064 fi
8065 fi
8066
8067 if test $found = "no" ; then
8068 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8069 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8070 fi
8071
8072 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8073 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8074 fi
8075
8076 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8077
8078 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8079 printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8080 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
8081 if eval test \${$cacheid+y}
8082 then :
8083 printf %s "(cached) " >&6
8084 else $as_nop
8085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8086 /* end confdefs.h. */
8087 int i;
8088 int
8089 main (void)
8090 {
8091
8092 ;
8093 return 0;
8094 }
8095 _ACEOF
8096 if ac_fn_c_try_link "$LINENO"
8097 then :
8098 eval $cacheid=yes
8099 else $as_nop
8100 eval $cacheid=no
8101 fi
8102 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8103 conftest$ac_exeext conftest.$ac_ext
8104 fi
8105
8106
8107 CFLAGS="$xorg_testset_save_CFLAGS"
8108
8109 eval supported=\$$cacheid
8110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8111 printf "%s\n" "$supported" >&6; }
8112 if test "$supported" = "yes" ; then
8113 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8114 found="yes"
8115 fi
8116 fi
8117
8118
8119
8120
8121
8122
8123
8124
8125
8126
8127
8128
8129
8130
8131
8132 xorg_testset_save_CFLAGS="$CFLAGS"
8133
8134 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8135 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8137 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8138 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8139 then :
8140 printf %s "(cached) " >&6
8141 else $as_nop
8142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8143 /* end confdefs.h. */
8144 int i;
8145 _ACEOF
8146 if ac_fn_c_try_compile "$LINENO"
8147 then :
8148 xorg_cv_cc_flag_unknown_warning_option=yes
8149 else $as_nop
8150 xorg_cv_cc_flag_unknown_warning_option=no
8151 fi
8152 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8153 fi
8154 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8155 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8156 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8157 CFLAGS="$xorg_testset_save_CFLAGS"
8158 fi
8159
8160 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8161 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8162 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8163 fi
8164 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8166 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8167 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8168 then :
8169 printf %s "(cached) " >&6
8170 else $as_nop
8171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8172 /* end confdefs.h. */
8173 int i;
8174 _ACEOF
8175 if ac_fn_c_try_compile "$LINENO"
8176 then :
8177 xorg_cv_cc_flag_unused_command_line_argument=yes
8178 else $as_nop
8179 xorg_cv_cc_flag_unused_command_line_argument=no
8180 fi
8181 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8182 fi
8183 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8184 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8185 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8186 CFLAGS="$xorg_testset_save_CFLAGS"
8187 fi
8188
8189 found="no"
8190
8191 if test $found = "no" ; then
8192 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8193 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8194 fi
8195
8196 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8197 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8198 fi
8199
8200 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
8201
8202 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
8203 printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
8204 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
8205 if eval test \${$cacheid+y}
8206 then :
8207 printf %s "(cached) " >&6
8208 else $as_nop
8209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8210 /* end confdefs.h. */
8211 int i;
8212 int
8213 main (void)
8214 {
8215
8216 ;
8217 return 0;
8218 }
8219 _ACEOF
8220 if ac_fn_c_try_link "$LINENO"
8221 then :
8222 eval $cacheid=yes
8223 else $as_nop
8224 eval $cacheid=no
8225 fi
8226 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8227 conftest$ac_exeext conftest.$ac_ext
8228 fi
8229
8230
8231 CFLAGS="$xorg_testset_save_CFLAGS"
8232
8233 eval supported=\$$cacheid
8234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8235 printf "%s\n" "$supported" >&6; }
8236 if test "$supported" = "yes" ; then
8237 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
8238 found="yes"
8239 fi
8240 fi
8241
8242 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
8243 else
8244 { 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
8245 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;}
8246
8247
8248
8249
8250
8251
8252
8253
8254
8255
8256
8257
8258
8259 xorg_testset_save_CFLAGS="$CFLAGS"
8260
8261 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8262 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8264 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8265 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8266 then :
8267 printf %s "(cached) " >&6
8268 else $as_nop
8269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8270 /* end confdefs.h. */
8271 int i;
8272 _ACEOF
8273 if ac_fn_c_try_compile "$LINENO"
8274 then :
8275 xorg_cv_cc_flag_unknown_warning_option=yes
8276 else $as_nop
8277 xorg_cv_cc_flag_unknown_warning_option=no
8278 fi
8279 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8280 fi
8281 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8282 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8283 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8284 CFLAGS="$xorg_testset_save_CFLAGS"
8285 fi
8286
8287 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8288 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8289 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8290 fi
8291 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8292 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8293 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8294 if test ${xorg_cv_cc_flag_unused_command_line_argument+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_unused_command_line_argument=yes
8305 else $as_nop
8306 xorg_cv_cc_flag_unused_command_line_argument=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_unused_command_line_argument" >&5
8311 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8312 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8313 CFLAGS="$xorg_testset_save_CFLAGS"
8314 fi
8315
8316 found="no"
8317
8318 if test $found = "no" ; then
8319 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8320 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8321 fi
8322
8323 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8324 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8325 fi
8326
8327 CFLAGS="$CFLAGS -Wimplicit"
8328
8329 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
8330 printf %s "checking if $CC supports -Wimplicit... " >&6; }
8331 cacheid=xorg_cv_cc_flag__Wimplicit
8332 if eval test \${$cacheid+y}
8333 then :
8334 printf %s "(cached) " >&6
8335 else $as_nop
8336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8337 /* end confdefs.h. */
8338 int i;
8339 int
8340 main (void)
8341 {
8342
8343 ;
8344 return 0;
8345 }
8346 _ACEOF
8347 if ac_fn_c_try_link "$LINENO"
8348 then :
8349 eval $cacheid=yes
8350 else $as_nop
8351 eval $cacheid=no
8352 fi
8353 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8354 conftest$ac_exeext conftest.$ac_ext
8355 fi
8356
8357
8358 CFLAGS="$xorg_testset_save_CFLAGS"
8359
8360 eval supported=\$$cacheid
8361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8362 printf "%s\n" "$supported" >&6; }
8363 if test "$supported" = "yes" ; then
8364 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
8365 found="yes"
8366 fi
8367 fi
8368
8369
8370
8371
8372
8373
8374
8375
8376
8377
8378
8379
8380
8381
8382
8383 xorg_testset_save_CFLAGS="$CFLAGS"
8384
8385 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8386 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8388 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8389 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8390 then :
8391 printf %s "(cached) " >&6
8392 else $as_nop
8393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8394 /* end confdefs.h. */
8395 int i;
8396 _ACEOF
8397 if ac_fn_c_try_compile "$LINENO"
8398 then :
8399 xorg_cv_cc_flag_unknown_warning_option=yes
8400 else $as_nop
8401 xorg_cv_cc_flag_unknown_warning_option=no
8402 fi
8403 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8404 fi
8405 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8406 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8407 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8408 CFLAGS="$xorg_testset_save_CFLAGS"
8409 fi
8410
8411 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8412 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8413 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8414 fi
8415 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8416 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8417 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8418 if test ${xorg_cv_cc_flag_unused_command_line_argument+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_unused_command_line_argument=yes
8429 else $as_nop
8430 xorg_cv_cc_flag_unused_command_line_argument=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_unused_command_line_argument" >&5
8435 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8436 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8437 CFLAGS="$xorg_testset_save_CFLAGS"
8438 fi
8439
8440 found="no"
8441
8442 if test $found = "no" ; then
8443 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8444 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8445 fi
8446
8447 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8448 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8449 fi
8450
8451 CFLAGS="$CFLAGS -Wnonnull"
8452
8453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
8454 printf %s "checking if $CC supports -Wnonnull... " >&6; }
8455 cacheid=xorg_cv_cc_flag__Wnonnull
8456 if eval test \${$cacheid+y}
8457 then :
8458 printf %s "(cached) " >&6
8459 else $as_nop
8460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8461 /* end confdefs.h. */
8462 int i;
8463 int
8464 main (void)
8465 {
8466
8467 ;
8468 return 0;
8469 }
8470 _ACEOF
8471 if ac_fn_c_try_link "$LINENO"
8472 then :
8473 eval $cacheid=yes
8474 else $as_nop
8475 eval $cacheid=no
8476 fi
8477 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8478 conftest$ac_exeext conftest.$ac_ext
8479 fi
8480
8481
8482 CFLAGS="$xorg_testset_save_CFLAGS"
8483
8484 eval supported=\$$cacheid
8485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8486 printf "%s\n" "$supported" >&6; }
8487 if test "$supported" = "yes" ; then
8488 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
8489 found="yes"
8490 fi
8491 fi
8492
8493
8494
8495
8496
8497
8498
8499
8500
8501
8502
8503
8504
8505
8506
8507 xorg_testset_save_CFLAGS="$CFLAGS"
8508
8509 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8510 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8512 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8513 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8514 then :
8515 printf %s "(cached) " >&6
8516 else $as_nop
8517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8518 /* end confdefs.h. */
8519 int i;
8520 _ACEOF
8521 if ac_fn_c_try_compile "$LINENO"
8522 then :
8523 xorg_cv_cc_flag_unknown_warning_option=yes
8524 else $as_nop
8525 xorg_cv_cc_flag_unknown_warning_option=no
8526 fi
8527 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8528 fi
8529 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8530 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8531 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8532 CFLAGS="$xorg_testset_save_CFLAGS"
8533 fi
8534
8535 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8536 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8537 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8538 fi
8539 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8540 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8541 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8542 if test ${xorg_cv_cc_flag_unused_command_line_argument+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_unused_command_line_argument=yes
8553 else $as_nop
8554 xorg_cv_cc_flag_unused_command_line_argument=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_unused_command_line_argument" >&5
8559 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8560 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8561 CFLAGS="$xorg_testset_save_CFLAGS"
8562 fi
8563
8564 found="no"
8565
8566 if test $found = "no" ; then
8567 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8568 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8569 fi
8570
8571 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8572 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8573 fi
8574
8575 CFLAGS="$CFLAGS -Winit-self"
8576
8577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
8578 printf %s "checking if $CC supports -Winit-self... " >&6; }
8579 cacheid=xorg_cv_cc_flag__Winit_self
8580 if eval test \${$cacheid+y}
8581 then :
8582 printf %s "(cached) " >&6
8583 else $as_nop
8584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8585 /* end confdefs.h. */
8586 int i;
8587 int
8588 main (void)
8589 {
8590
8591 ;
8592 return 0;
8593 }
8594 _ACEOF
8595 if ac_fn_c_try_link "$LINENO"
8596 then :
8597 eval $cacheid=yes
8598 else $as_nop
8599 eval $cacheid=no
8600 fi
8601 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8602 conftest$ac_exeext conftest.$ac_ext
8603 fi
8604
8605
8606 CFLAGS="$xorg_testset_save_CFLAGS"
8607
8608 eval supported=\$$cacheid
8609 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8610 printf "%s\n" "$supported" >&6; }
8611 if test "$supported" = "yes" ; then
8612 BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
8613 found="yes"
8614 fi
8615 fi
8616
8617
8618
8619
8620
8621
8622
8623
8624
8625
8626
8627
8628
8629
8630
8631 xorg_testset_save_CFLAGS="$CFLAGS"
8632
8633 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8634 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8635 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8636 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8637 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8638 then :
8639 printf %s "(cached) " >&6
8640 else $as_nop
8641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8642 /* end confdefs.h. */
8643 int i;
8644 _ACEOF
8645 if ac_fn_c_try_compile "$LINENO"
8646 then :
8647 xorg_cv_cc_flag_unknown_warning_option=yes
8648 else $as_nop
8649 xorg_cv_cc_flag_unknown_warning_option=no
8650 fi
8651 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8652 fi
8653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8654 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8655 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8656 CFLAGS="$xorg_testset_save_CFLAGS"
8657 fi
8658
8659 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8660 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8661 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8662 fi
8663 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8665 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8666 if test ${xorg_cv_cc_flag_unused_command_line_argument+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_unused_command_line_argument=yes
8677 else $as_nop
8678 xorg_cv_cc_flag_unused_command_line_argument=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_unused_command_line_argument" >&5
8683 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8684 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8685 CFLAGS="$xorg_testset_save_CFLAGS"
8686 fi
8687
8688 found="no"
8689
8690 if test $found = "no" ; then
8691 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8692 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8693 fi
8694
8695 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8696 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8697 fi
8698
8699 CFLAGS="$CFLAGS -Wmain"
8700
8701 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
8702 printf %s "checking if $CC supports -Wmain... " >&6; }
8703 cacheid=xorg_cv_cc_flag__Wmain
8704 if eval test \${$cacheid+y}
8705 then :
8706 printf %s "(cached) " >&6
8707 else $as_nop
8708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8709 /* end confdefs.h. */
8710 int i;
8711 int
8712 main (void)
8713 {
8714
8715 ;
8716 return 0;
8717 }
8718 _ACEOF
8719 if ac_fn_c_try_link "$LINENO"
8720 then :
8721 eval $cacheid=yes
8722 else $as_nop
8723 eval $cacheid=no
8724 fi
8725 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8726 conftest$ac_exeext conftest.$ac_ext
8727 fi
8728
8729
8730 CFLAGS="$xorg_testset_save_CFLAGS"
8731
8732 eval supported=\$$cacheid
8733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8734 printf "%s\n" "$supported" >&6; }
8735 if test "$supported" = "yes" ; then
8736 BASE_CFLAGS="$BASE_CFLAGS -Wmain"
8737 found="yes"
8738 fi
8739 fi
8740
8741
8742
8743
8744
8745
8746
8747
8748
8749
8750
8751
8752
8753
8754
8755 xorg_testset_save_CFLAGS="$CFLAGS"
8756
8757 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8758 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8760 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8761 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8762 then :
8763 printf %s "(cached) " >&6
8764 else $as_nop
8765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8766 /* end confdefs.h. */
8767 int i;
8768 _ACEOF
8769 if ac_fn_c_try_compile "$LINENO"
8770 then :
8771 xorg_cv_cc_flag_unknown_warning_option=yes
8772 else $as_nop
8773 xorg_cv_cc_flag_unknown_warning_option=no
8774 fi
8775 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8776 fi
8777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8778 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8779 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8780 CFLAGS="$xorg_testset_save_CFLAGS"
8781 fi
8782
8783 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8784 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8785 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8786 fi
8787 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8789 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8790 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8791 then :
8792 printf %s "(cached) " >&6
8793 else $as_nop
8794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8795 /* end confdefs.h. */
8796 int i;
8797 _ACEOF
8798 if ac_fn_c_try_compile "$LINENO"
8799 then :
8800 xorg_cv_cc_flag_unused_command_line_argument=yes
8801 else $as_nop
8802 xorg_cv_cc_flag_unused_command_line_argument=no
8803 fi
8804 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8805 fi
8806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8807 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8808 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8809 CFLAGS="$xorg_testset_save_CFLAGS"
8810 fi
8811
8812 found="no"
8813
8814 if test $found = "no" ; then
8815 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8816 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8817 fi
8818
8819 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8820 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8821 fi
8822
8823 CFLAGS="$CFLAGS -Wmissing-braces"
8824
8825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
8826 printf %s "checking if $CC supports -Wmissing-braces... " >&6; }
8827 cacheid=xorg_cv_cc_flag__Wmissing_braces
8828 if eval test \${$cacheid+y}
8829 then :
8830 printf %s "(cached) " >&6
8831 else $as_nop
8832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8833 /* end confdefs.h. */
8834 int i;
8835 int
8836 main (void)
8837 {
8838
8839 ;
8840 return 0;
8841 }
8842 _ACEOF
8843 if ac_fn_c_try_link "$LINENO"
8844 then :
8845 eval $cacheid=yes
8846 else $as_nop
8847 eval $cacheid=no
8848 fi
8849 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8850 conftest$ac_exeext conftest.$ac_ext
8851 fi
8852
8853
8854 CFLAGS="$xorg_testset_save_CFLAGS"
8855
8856 eval supported=\$$cacheid
8857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8858 printf "%s\n" "$supported" >&6; }
8859 if test "$supported" = "yes" ; then
8860 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
8861 found="yes"
8862 fi
8863 fi
8864
8865
8866
8867
8868
8869
8870
8871
8872
8873
8874
8875
8876
8877
8878
8879 xorg_testset_save_CFLAGS="$CFLAGS"
8880
8881 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8882 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8884 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8885 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8886 then :
8887 printf %s "(cached) " >&6
8888 else $as_nop
8889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8890 /* end confdefs.h. */
8891 int i;
8892 _ACEOF
8893 if ac_fn_c_try_compile "$LINENO"
8894 then :
8895 xorg_cv_cc_flag_unknown_warning_option=yes
8896 else $as_nop
8897 xorg_cv_cc_flag_unknown_warning_option=no
8898 fi
8899 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8900 fi
8901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8902 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8903 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8904 CFLAGS="$xorg_testset_save_CFLAGS"
8905 fi
8906
8907 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8908 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8909 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8910 fi
8911 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8913 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8914 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8915 then :
8916 printf %s "(cached) " >&6
8917 else $as_nop
8918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8919 /* end confdefs.h. */
8920 int i;
8921 _ACEOF
8922 if ac_fn_c_try_compile "$LINENO"
8923 then :
8924 xorg_cv_cc_flag_unused_command_line_argument=yes
8925 else $as_nop
8926 xorg_cv_cc_flag_unused_command_line_argument=no
8927 fi
8928 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8929 fi
8930 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8931 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8932 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8933 CFLAGS="$xorg_testset_save_CFLAGS"
8934 fi
8935
8936 found="no"
8937
8938 if test $found = "no" ; then
8939 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8940 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8941 fi
8942
8943 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8944 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8945 fi
8946
8947 CFLAGS="$CFLAGS -Wsequence-point"
8948
8949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
8950 printf %s "checking if $CC supports -Wsequence-point... " >&6; }
8951 cacheid=xorg_cv_cc_flag__Wsequence_point
8952 if eval test \${$cacheid+y}
8953 then :
8954 printf %s "(cached) " >&6
8955 else $as_nop
8956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8957 /* end confdefs.h. */
8958 int i;
8959 int
8960 main (void)
8961 {
8962
8963 ;
8964 return 0;
8965 }
8966 _ACEOF
8967 if ac_fn_c_try_link "$LINENO"
8968 then :
8969 eval $cacheid=yes
8970 else $as_nop
8971 eval $cacheid=no
8972 fi
8973 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8974 conftest$ac_exeext conftest.$ac_ext
8975 fi
8976
8977
8978 CFLAGS="$xorg_testset_save_CFLAGS"
8979
8980 eval supported=\$$cacheid
8981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8982 printf "%s\n" "$supported" >&6; }
8983 if test "$supported" = "yes" ; then
8984 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
8985 found="yes"
8986 fi
8987 fi
8988
8989
8990
8991
8992
8993
8994
8995
8996
8997
8998
8999
9000
9001
9002
9003 xorg_testset_save_CFLAGS="$CFLAGS"
9004
9005 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9006 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9007 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9008 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9009 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9010 then :
9011 printf %s "(cached) " >&6
9012 else $as_nop
9013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9014 /* end confdefs.h. */
9015 int i;
9016 _ACEOF
9017 if ac_fn_c_try_compile "$LINENO"
9018 then :
9019 xorg_cv_cc_flag_unknown_warning_option=yes
9020 else $as_nop
9021 xorg_cv_cc_flag_unknown_warning_option=no
9022 fi
9023 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9024 fi
9025 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9026 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9027 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9028 CFLAGS="$xorg_testset_save_CFLAGS"
9029 fi
9030
9031 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9032 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9033 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9034 fi
9035 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9037 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9038 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9039 then :
9040 printf %s "(cached) " >&6
9041 else $as_nop
9042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9043 /* end confdefs.h. */
9044 int i;
9045 _ACEOF
9046 if ac_fn_c_try_compile "$LINENO"
9047 then :
9048 xorg_cv_cc_flag_unused_command_line_argument=yes
9049 else $as_nop
9050 xorg_cv_cc_flag_unused_command_line_argument=no
9051 fi
9052 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9053 fi
9054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9055 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9056 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9057 CFLAGS="$xorg_testset_save_CFLAGS"
9058 fi
9059
9060 found="no"
9061
9062 if test $found = "no" ; then
9063 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9064 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9065 fi
9066
9067 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9068 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9069 fi
9070
9071 CFLAGS="$CFLAGS -Wreturn-type"
9072
9073 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
9074 printf %s "checking if $CC supports -Wreturn-type... " >&6; }
9075 cacheid=xorg_cv_cc_flag__Wreturn_type
9076 if eval test \${$cacheid+y}
9077 then :
9078 printf %s "(cached) " >&6
9079 else $as_nop
9080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9081 /* end confdefs.h. */
9082 int i;
9083 int
9084 main (void)
9085 {
9086
9087 ;
9088 return 0;
9089 }
9090 _ACEOF
9091 if ac_fn_c_try_link "$LINENO"
9092 then :
9093 eval $cacheid=yes
9094 else $as_nop
9095 eval $cacheid=no
9096 fi
9097 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9098 conftest$ac_exeext conftest.$ac_ext
9099 fi
9100
9101
9102 CFLAGS="$xorg_testset_save_CFLAGS"
9103
9104 eval supported=\$$cacheid
9105 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9106 printf "%s\n" "$supported" >&6; }
9107 if test "$supported" = "yes" ; then
9108 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9109 found="yes"
9110 fi
9111 fi
9112
9113
9114
9115
9116
9117
9118
9119
9120
9121
9122
9123
9124
9125
9126
9127 xorg_testset_save_CFLAGS="$CFLAGS"
9128
9129 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9130 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9132 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9133 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9134 then :
9135 printf %s "(cached) " >&6
9136 else $as_nop
9137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9138 /* end confdefs.h. */
9139 int i;
9140 _ACEOF
9141 if ac_fn_c_try_compile "$LINENO"
9142 then :
9143 xorg_cv_cc_flag_unknown_warning_option=yes
9144 else $as_nop
9145 xorg_cv_cc_flag_unknown_warning_option=no
9146 fi
9147 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9148 fi
9149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9150 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9151 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9152 CFLAGS="$xorg_testset_save_CFLAGS"
9153 fi
9154
9155 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9156 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9157 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9158 fi
9159 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9161 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9162 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9163 then :
9164 printf %s "(cached) " >&6
9165 else $as_nop
9166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9167 /* end confdefs.h. */
9168 int i;
9169 _ACEOF
9170 if ac_fn_c_try_compile "$LINENO"
9171 then :
9172 xorg_cv_cc_flag_unused_command_line_argument=yes
9173 else $as_nop
9174 xorg_cv_cc_flag_unused_command_line_argument=no
9175 fi
9176 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9177 fi
9178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9179 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9180 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9181 CFLAGS="$xorg_testset_save_CFLAGS"
9182 fi
9183
9184 found="no"
9185
9186 if test $found = "no" ; then
9187 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9188 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9189 fi
9190
9191 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9192 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9193 fi
9194
9195 CFLAGS="$CFLAGS -Wtrigraphs"
9196
9197 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
9198 printf %s "checking if $CC supports -Wtrigraphs... " >&6; }
9199 cacheid=xorg_cv_cc_flag__Wtrigraphs
9200 if eval test \${$cacheid+y}
9201 then :
9202 printf %s "(cached) " >&6
9203 else $as_nop
9204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9205 /* end confdefs.h. */
9206 int i;
9207 int
9208 main (void)
9209 {
9210
9211 ;
9212 return 0;
9213 }
9214 _ACEOF
9215 if ac_fn_c_try_link "$LINENO"
9216 then :
9217 eval $cacheid=yes
9218 else $as_nop
9219 eval $cacheid=no
9220 fi
9221 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9222 conftest$ac_exeext conftest.$ac_ext
9223 fi
9224
9225
9226 CFLAGS="$xorg_testset_save_CFLAGS"
9227
9228 eval supported=\$$cacheid
9229 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9230 printf "%s\n" "$supported" >&6; }
9231 if test "$supported" = "yes" ; then
9232 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
9233 found="yes"
9234 fi
9235 fi
9236
9237
9238
9239
9240
9241
9242
9243
9244
9245
9246
9247
9248
9249
9250
9251 xorg_testset_save_CFLAGS="$CFLAGS"
9252
9253 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9254 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9256 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9257 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9258 then :
9259 printf %s "(cached) " >&6
9260 else $as_nop
9261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9262 /* end confdefs.h. */
9263 int i;
9264 _ACEOF
9265 if ac_fn_c_try_compile "$LINENO"
9266 then :
9267 xorg_cv_cc_flag_unknown_warning_option=yes
9268 else $as_nop
9269 xorg_cv_cc_flag_unknown_warning_option=no
9270 fi
9271 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9272 fi
9273 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9274 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9275 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9276 CFLAGS="$xorg_testset_save_CFLAGS"
9277 fi
9278
9279 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9280 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9281 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9282 fi
9283 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9285 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9286 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9287 then :
9288 printf %s "(cached) " >&6
9289 else $as_nop
9290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9291 /* end confdefs.h. */
9292 int i;
9293 _ACEOF
9294 if ac_fn_c_try_compile "$LINENO"
9295 then :
9296 xorg_cv_cc_flag_unused_command_line_argument=yes
9297 else $as_nop
9298 xorg_cv_cc_flag_unused_command_line_argument=no
9299 fi
9300 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9301 fi
9302 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9303 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9304 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9305 CFLAGS="$xorg_testset_save_CFLAGS"
9306 fi
9307
9308 found="no"
9309
9310 if test $found = "no" ; then
9311 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9312 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9313 fi
9314
9315 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9316 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9317 fi
9318
9319 CFLAGS="$CFLAGS -Warray-bounds"
9320
9321 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
9322 printf %s "checking if $CC supports -Warray-bounds... " >&6; }
9323 cacheid=xorg_cv_cc_flag__Warray_bounds
9324 if eval test \${$cacheid+y}
9325 then :
9326 printf %s "(cached) " >&6
9327 else $as_nop
9328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9329 /* end confdefs.h. */
9330 int i;
9331 int
9332 main (void)
9333 {
9334
9335 ;
9336 return 0;
9337 }
9338 _ACEOF
9339 if ac_fn_c_try_link "$LINENO"
9340 then :
9341 eval $cacheid=yes
9342 else $as_nop
9343 eval $cacheid=no
9344 fi
9345 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9346 conftest$ac_exeext conftest.$ac_ext
9347 fi
9348
9349
9350 CFLAGS="$xorg_testset_save_CFLAGS"
9351
9352 eval supported=\$$cacheid
9353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9354 printf "%s\n" "$supported" >&6; }
9355 if test "$supported" = "yes" ; then
9356 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
9357 found="yes"
9358 fi
9359 fi
9360
9361
9362
9363
9364
9365
9366
9367
9368
9369
9370
9371
9372
9373
9374
9375 xorg_testset_save_CFLAGS="$CFLAGS"
9376
9377 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9378 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9380 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9381 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9382 then :
9383 printf %s "(cached) " >&6
9384 else $as_nop
9385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9386 /* end confdefs.h. */
9387 int i;
9388 _ACEOF
9389 if ac_fn_c_try_compile "$LINENO"
9390 then :
9391 xorg_cv_cc_flag_unknown_warning_option=yes
9392 else $as_nop
9393 xorg_cv_cc_flag_unknown_warning_option=no
9394 fi
9395 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9396 fi
9397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9398 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9399 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9400 CFLAGS="$xorg_testset_save_CFLAGS"
9401 fi
9402
9403 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9404 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9405 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9406 fi
9407 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9408 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9409 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9410 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9411 then :
9412 printf %s "(cached) " >&6
9413 else $as_nop
9414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9415 /* end confdefs.h. */
9416 int i;
9417 _ACEOF
9418 if ac_fn_c_try_compile "$LINENO"
9419 then :
9420 xorg_cv_cc_flag_unused_command_line_argument=yes
9421 else $as_nop
9422 xorg_cv_cc_flag_unused_command_line_argument=no
9423 fi
9424 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9425 fi
9426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9427 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9428 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9429 CFLAGS="$xorg_testset_save_CFLAGS"
9430 fi
9431
9432 found="no"
9433
9434 if test $found = "no" ; then
9435 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9436 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9437 fi
9438
9439 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9440 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9441 fi
9442
9443 CFLAGS="$CFLAGS -Wwrite-strings"
9444
9445 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
9446 printf %s "checking if $CC supports -Wwrite-strings... " >&6; }
9447 cacheid=xorg_cv_cc_flag__Wwrite_strings
9448 if eval test \${$cacheid+y}
9449 then :
9450 printf %s "(cached) " >&6
9451 else $as_nop
9452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9453 /* end confdefs.h. */
9454 int i;
9455 int
9456 main (void)
9457 {
9458
9459 ;
9460 return 0;
9461 }
9462 _ACEOF
9463 if ac_fn_c_try_link "$LINENO"
9464 then :
9465 eval $cacheid=yes
9466 else $as_nop
9467 eval $cacheid=no
9468 fi
9469 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9470 conftest$ac_exeext conftest.$ac_ext
9471 fi
9472
9473
9474 CFLAGS="$xorg_testset_save_CFLAGS"
9475
9476 eval supported=\$$cacheid
9477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9478 printf "%s\n" "$supported" >&6; }
9479 if test "$supported" = "yes" ; then
9480 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
9481 found="yes"
9482 fi
9483 fi
9484
9485
9486
9487
9488
9489
9490
9491
9492
9493
9494
9495
9496
9497
9498
9499 xorg_testset_save_CFLAGS="$CFLAGS"
9500
9501 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9502 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9503 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9504 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9505 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9506 then :
9507 printf %s "(cached) " >&6
9508 else $as_nop
9509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9510 /* end confdefs.h. */
9511 int i;
9512 _ACEOF
9513 if ac_fn_c_try_compile "$LINENO"
9514 then :
9515 xorg_cv_cc_flag_unknown_warning_option=yes
9516 else $as_nop
9517 xorg_cv_cc_flag_unknown_warning_option=no
9518 fi
9519 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9520 fi
9521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9522 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9523 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9524 CFLAGS="$xorg_testset_save_CFLAGS"
9525 fi
9526
9527 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9528 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9529 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9530 fi
9531 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9532 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9533 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9534 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9535 then :
9536 printf %s "(cached) " >&6
9537 else $as_nop
9538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9539 /* end confdefs.h. */
9540 int i;
9541 _ACEOF
9542 if ac_fn_c_try_compile "$LINENO"
9543 then :
9544 xorg_cv_cc_flag_unused_command_line_argument=yes
9545 else $as_nop
9546 xorg_cv_cc_flag_unused_command_line_argument=no
9547 fi
9548 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9549 fi
9550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9551 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9552 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9553 CFLAGS="$xorg_testset_save_CFLAGS"
9554 fi
9555
9556 found="no"
9557
9558 if test $found = "no" ; then
9559 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9560 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9561 fi
9562
9563 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9564 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9565 fi
9566
9567 CFLAGS="$CFLAGS -Waddress"
9568
9569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
9570 printf %s "checking if $CC supports -Waddress... " >&6; }
9571 cacheid=xorg_cv_cc_flag__Waddress
9572 if eval test \${$cacheid+y}
9573 then :
9574 printf %s "(cached) " >&6
9575 else $as_nop
9576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9577 /* end confdefs.h. */
9578 int i;
9579 int
9580 main (void)
9581 {
9582
9583 ;
9584 return 0;
9585 }
9586 _ACEOF
9587 if ac_fn_c_try_link "$LINENO"
9588 then :
9589 eval $cacheid=yes
9590 else $as_nop
9591 eval $cacheid=no
9592 fi
9593 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9594 conftest$ac_exeext conftest.$ac_ext
9595 fi
9596
9597
9598 CFLAGS="$xorg_testset_save_CFLAGS"
9599
9600 eval supported=\$$cacheid
9601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9602 printf "%s\n" "$supported" >&6; }
9603 if test "$supported" = "yes" ; then
9604 BASE_CFLAGS="$BASE_CFLAGS -Waddress"
9605 found="yes"
9606 fi
9607 fi
9608
9609
9610
9611
9612
9613
9614
9615
9616
9617
9618
9619
9620
9621
9622
9623 xorg_testset_save_CFLAGS="$CFLAGS"
9624
9625 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9626 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9628 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9629 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9630 then :
9631 printf %s "(cached) " >&6
9632 else $as_nop
9633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9634 /* end confdefs.h. */
9635 int i;
9636 _ACEOF
9637 if ac_fn_c_try_compile "$LINENO"
9638 then :
9639 xorg_cv_cc_flag_unknown_warning_option=yes
9640 else $as_nop
9641 xorg_cv_cc_flag_unknown_warning_option=no
9642 fi
9643 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9644 fi
9645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9646 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9647 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9648 CFLAGS="$xorg_testset_save_CFLAGS"
9649 fi
9650
9651 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9652 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9653 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9654 fi
9655 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9657 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9658 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9659 then :
9660 printf %s "(cached) " >&6
9661 else $as_nop
9662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9663 /* end confdefs.h. */
9664 int i;
9665 _ACEOF
9666 if ac_fn_c_try_compile "$LINENO"
9667 then :
9668 xorg_cv_cc_flag_unused_command_line_argument=yes
9669 else $as_nop
9670 xorg_cv_cc_flag_unused_command_line_argument=no
9671 fi
9672 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9673 fi
9674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9675 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9676 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9677 CFLAGS="$xorg_testset_save_CFLAGS"
9678 fi
9679
9680 found="no"
9681
9682 if test $found = "no" ; then
9683 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9684 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9685 fi
9686
9687 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9688 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9689 fi
9690
9691 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
9692
9693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
9694 printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
9695 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
9696 if eval test \${$cacheid+y}
9697 then :
9698 printf %s "(cached) " >&6
9699 else $as_nop
9700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9701 /* end confdefs.h. */
9702 int i;
9703 int
9704 main (void)
9705 {
9706
9707 ;
9708 return 0;
9709 }
9710 _ACEOF
9711 if ac_fn_c_try_link "$LINENO"
9712 then :
9713 eval $cacheid=yes
9714 else $as_nop
9715 eval $cacheid=no
9716 fi
9717 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9718 conftest$ac_exeext conftest.$ac_ext
9719 fi
9720
9721
9722 CFLAGS="$xorg_testset_save_CFLAGS"
9723
9724 eval supported=\$$cacheid
9725 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9726 printf "%s\n" "$supported" >&6; }
9727 if test "$supported" = "yes" ; then
9728 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
9729 found="yes"
9730 fi
9731 fi
9732
9733
9734
9735
9736
9737
9738
9739
9740
9741
9742
9743
9744
9745
9746
9747 xorg_testset_save_CFLAGS="$CFLAGS"
9748
9749 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9750 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9751 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9752 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9753 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9754 then :
9755 printf %s "(cached) " >&6
9756 else $as_nop
9757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9758 /* end confdefs.h. */
9759 int i;
9760 _ACEOF
9761 if ac_fn_c_try_compile "$LINENO"
9762 then :
9763 xorg_cv_cc_flag_unknown_warning_option=yes
9764 else $as_nop
9765 xorg_cv_cc_flag_unknown_warning_option=no
9766 fi
9767 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9768 fi
9769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9770 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9771 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9772 CFLAGS="$xorg_testset_save_CFLAGS"
9773 fi
9774
9775 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9776 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9777 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9778 fi
9779 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9781 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9782 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9783 then :
9784 printf %s "(cached) " >&6
9785 else $as_nop
9786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9787 /* end confdefs.h. */
9788 int i;
9789 _ACEOF
9790 if ac_fn_c_try_compile "$LINENO"
9791 then :
9792 xorg_cv_cc_flag_unused_command_line_argument=yes
9793 else $as_nop
9794 xorg_cv_cc_flag_unused_command_line_argument=no
9795 fi
9796 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9797 fi
9798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9799 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9800 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9801 CFLAGS="$xorg_testset_save_CFLAGS"
9802 fi
9803
9804 found="no"
9805
9806 if test $found = "no" ; then
9807 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9808 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9809 fi
9810
9811 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9812 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9813 fi
9814
9815 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
9816
9817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
9818 printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
9819 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
9820 if eval test \${$cacheid+y}
9821 then :
9822 printf %s "(cached) " >&6
9823 else $as_nop
9824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9825 /* end confdefs.h. */
9826 int i;
9827 int
9828 main (void)
9829 {
9830
9831 ;
9832 return 0;
9833 }
9834 _ACEOF
9835 if ac_fn_c_try_link "$LINENO"
9836 then :
9837 eval $cacheid=yes
9838 else $as_nop
9839 eval $cacheid=no
9840 fi
9841 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9842 conftest$ac_exeext conftest.$ac_ext
9843 fi
9844
9845
9846 CFLAGS="$xorg_testset_save_CFLAGS"
9847
9848 eval supported=\$$cacheid
9849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9850 printf "%s\n" "$supported" >&6; }
9851 if test "$supported" = "yes" ; then
9852 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
9853 found="yes"
9854 fi
9855 fi
9856
9857
9858 fi
9859
9860
9861
9862
9863
9864
9865
9866 CWARNFLAGS="$BASE_CFLAGS"
9867 if test "x$GCC" = xyes ; then
9868 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
9869 fi
9870
9871
9872
9873
9874
9875
9876
9877
9878 # Check whether --enable-strict-compilation was given.
9879 if test ${enable_strict_compilation+y}
9880 then :
9881 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
9882 else $as_nop
9883 STRICT_COMPILE=no
9884 fi
9885
9886
9887
9888
9889
9890
9891 STRICT_CFLAGS=""
9892
9893
9894
9895
9896
9897
9898
9899
9900
9901
9902
9903
9904
9905 xorg_testset_save_CFLAGS="$CFLAGS"
9906
9907 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9908 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9910 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9911 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9912 then :
9913 printf %s "(cached) " >&6
9914 else $as_nop
9915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9916 /* end confdefs.h. */
9917 int i;
9918 _ACEOF
9919 if ac_fn_c_try_compile "$LINENO"
9920 then :
9921 xorg_cv_cc_flag_unknown_warning_option=yes
9922 else $as_nop
9923 xorg_cv_cc_flag_unknown_warning_option=no
9924 fi
9925 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9926 fi
9927 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9928 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9929 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9930 CFLAGS="$xorg_testset_save_CFLAGS"
9931 fi
9932
9933 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9934 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9935 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9936 fi
9937 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9939 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9940 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9941 then :
9942 printf %s "(cached) " >&6
9943 else $as_nop
9944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9945 /* end confdefs.h. */
9946 int i;
9947 _ACEOF
9948 if ac_fn_c_try_compile "$LINENO"
9949 then :
9950 xorg_cv_cc_flag_unused_command_line_argument=yes
9951 else $as_nop
9952 xorg_cv_cc_flag_unused_command_line_argument=no
9953 fi
9954 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9955 fi
9956 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9957 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9958 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9959 CFLAGS="$xorg_testset_save_CFLAGS"
9960 fi
9961
9962 found="no"
9963
9964 if test $found = "no" ; then
9965 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9966 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9967 fi
9968
9969 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9970 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9971 fi
9972
9973 CFLAGS="$CFLAGS -pedantic"
9974
9975 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
9976 printf %s "checking if $CC supports -pedantic... " >&6; }
9977 cacheid=xorg_cv_cc_flag__pedantic
9978 if eval test \${$cacheid+y}
9979 then :
9980 printf %s "(cached) " >&6
9981 else $as_nop
9982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9983 /* end confdefs.h. */
9984 int i;
9985 int
9986 main (void)
9987 {
9988
9989 ;
9990 return 0;
9991 }
9992 _ACEOF
9993 if ac_fn_c_try_link "$LINENO"
9994 then :
9995 eval $cacheid=yes
9996 else $as_nop
9997 eval $cacheid=no
9998 fi
9999 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10000 conftest$ac_exeext conftest.$ac_ext
10001 fi
10002
10003
10004 CFLAGS="$xorg_testset_save_CFLAGS"
10005
10006 eval supported=\$$cacheid
10007 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10008 printf "%s\n" "$supported" >&6; }
10009 if test "$supported" = "yes" ; then
10010 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
10011 found="yes"
10012 fi
10013 fi
10014
10015
10016
10017
10018
10019
10020
10021
10022
10023
10024
10025
10026
10027
10028
10029 xorg_testset_save_CFLAGS="$CFLAGS"
10030
10031 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10032 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10034 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10035 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10036 then :
10037 printf %s "(cached) " >&6
10038 else $as_nop
10039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10040 /* end confdefs.h. */
10041 int i;
10042 _ACEOF
10043 if ac_fn_c_try_compile "$LINENO"
10044 then :
10045 xorg_cv_cc_flag_unknown_warning_option=yes
10046 else $as_nop
10047 xorg_cv_cc_flag_unknown_warning_option=no
10048 fi
10049 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10050 fi
10051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10052 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10053 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10054 CFLAGS="$xorg_testset_save_CFLAGS"
10055 fi
10056
10057 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10058 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10059 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10060 fi
10061 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10063 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10064 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10065 then :
10066 printf %s "(cached) " >&6
10067 else $as_nop
10068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10069 /* end confdefs.h. */
10070 int i;
10071 _ACEOF
10072 if ac_fn_c_try_compile "$LINENO"
10073 then :
10074 xorg_cv_cc_flag_unused_command_line_argument=yes
10075 else $as_nop
10076 xorg_cv_cc_flag_unused_command_line_argument=no
10077 fi
10078 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10079 fi
10080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10081 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10082 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10083 CFLAGS="$xorg_testset_save_CFLAGS"
10084 fi
10085
10086 found="no"
10087
10088 if test $found = "no" ; then
10089 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10090 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10091 fi
10092
10093 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10094 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10095 fi
10096
10097 CFLAGS="$CFLAGS -Werror"
10098
10099 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
10100 printf %s "checking if $CC supports -Werror... " >&6; }
10101 cacheid=xorg_cv_cc_flag__Werror
10102 if eval test \${$cacheid+y}
10103 then :
10104 printf %s "(cached) " >&6
10105 else $as_nop
10106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10107 /* end confdefs.h. */
10108 int i;
10109 int
10110 main (void)
10111 {
10112
10113 ;
10114 return 0;
10115 }
10116 _ACEOF
10117 if ac_fn_c_try_link "$LINENO"
10118 then :
10119 eval $cacheid=yes
10120 else $as_nop
10121 eval $cacheid=no
10122 fi
10123 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10124 conftest$ac_exeext conftest.$ac_ext
10125 fi
10126
10127
10128 CFLAGS="$xorg_testset_save_CFLAGS"
10129
10130 eval supported=\$$cacheid
10131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10132 printf "%s\n" "$supported" >&6; }
10133 if test "$supported" = "yes" ; then
10134 STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
10135 found="yes"
10136 fi
10137 fi
10138
10139 if test $found = "no" ; then
10140 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10141 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10142 fi
10143
10144 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10145 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10146 fi
10147
10148 CFLAGS="$CFLAGS -errwarn"
10149
10150 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
10151 printf %s "checking if $CC supports -errwarn... " >&6; }
10152 cacheid=xorg_cv_cc_flag__errwarn
10153 if eval test \${$cacheid+y}
10154 then :
10155 printf %s "(cached) " >&6
10156 else $as_nop
10157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10158 /* end confdefs.h. */
10159 int i;
10160 int
10161 main (void)
10162 {
10163
10164 ;
10165 return 0;
10166 }
10167 _ACEOF
10168 if ac_fn_c_try_link "$LINENO"
10169 then :
10170 eval $cacheid=yes
10171 else $as_nop
10172 eval $cacheid=no
10173 fi
10174 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10175 conftest$ac_exeext conftest.$ac_ext
10176 fi
10177
10178
10179 CFLAGS="$xorg_testset_save_CFLAGS"
10180
10181 eval supported=\$$cacheid
10182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10183 printf "%s\n" "$supported" >&6; }
10184 if test "$supported" = "yes" ; then
10185 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
10186 found="yes"
10187 fi
10188 fi
10189
10190
10191
10192 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
10193 # activate it with -Werror, so we add it here explicitly.
10194
10195
10196
10197
10198
10199
10200
10201
10202
10203
10204
10205
10206
10207 xorg_testset_save_CFLAGS="$CFLAGS"
10208
10209 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10210 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10212 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10213 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10214 then :
10215 printf %s "(cached) " >&6
10216 else $as_nop
10217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10218 /* end confdefs.h. */
10219 int i;
10220 _ACEOF
10221 if ac_fn_c_try_compile "$LINENO"
10222 then :
10223 xorg_cv_cc_flag_unknown_warning_option=yes
10224 else $as_nop
10225 xorg_cv_cc_flag_unknown_warning_option=no
10226 fi
10227 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10228 fi
10229 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10230 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10231 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10232 CFLAGS="$xorg_testset_save_CFLAGS"
10233 fi
10234
10235 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10236 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10237 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10238 fi
10239 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10241 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10242 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10243 then :
10244 printf %s "(cached) " >&6
10245 else $as_nop
10246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10247 /* end confdefs.h. */
10248 int i;
10249 _ACEOF
10250 if ac_fn_c_try_compile "$LINENO"
10251 then :
10252 xorg_cv_cc_flag_unused_command_line_argument=yes
10253 else $as_nop
10254 xorg_cv_cc_flag_unused_command_line_argument=no
10255 fi
10256 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10257 fi
10258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10259 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10260 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10261 CFLAGS="$xorg_testset_save_CFLAGS"
10262 fi
10263
10264 found="no"
10265
10266 if test $found = "no" ; then
10267 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10268 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10269 fi
10270
10271 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10272 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10273 fi
10274
10275 CFLAGS="$CFLAGS -Werror=attributes"
10276
10277 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
10278 printf %s "checking if $CC supports -Werror=attributes... " >&6; }
10279 cacheid=xorg_cv_cc_flag__Werror_attributes
10280 if eval test \${$cacheid+y}
10281 then :
10282 printf %s "(cached) " >&6
10283 else $as_nop
10284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10285 /* end confdefs.h. */
10286 int i;
10287 int
10288 main (void)
10289 {
10290
10291 ;
10292 return 0;
10293 }
10294 _ACEOF
10295 if ac_fn_c_try_link "$LINENO"
10296 then :
10297 eval $cacheid=yes
10298 else $as_nop
10299 eval $cacheid=no
10300 fi
10301 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10302 conftest$ac_exeext conftest.$ac_ext
10303 fi
10304
10305
10306 CFLAGS="$xorg_testset_save_CFLAGS"
10307
10308 eval supported=\$$cacheid
10309 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10310 printf "%s\n" "$supported" >&6; }
10311 if test "$supported" = "yes" ; then
10312 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
10313 found="yes"
10314 fi
10315 fi
10316
10317
10318
10319 if test "x$STRICT_COMPILE" = "xyes"; then
10320 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
10321 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
10322 fi
10323
10324
10325
10326
10327
10328
10329 cat >>confdefs.h <<_ACEOF
10330 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
10331 _ACEOF
10332
10333 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
10334 if test "x$PVM" = "x"; then
10335 PVM="0"
10336 fi
10337
10338 printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h
10339
10340 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
10341 if test "x$PVP" = "x"; then
10342 PVP="0"
10343 fi
10344
10345 printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h
10346
10347
10348
10349 CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \
10350 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
10351 || (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \
10352 touch \$(top_srcdir)/ChangeLog; \
10353 echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))"
10354
10355
10356
10357
10358 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
10359 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
10360 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
10361 || (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \
10362 touch \$(top_srcdir)/INSTALL; \
10363 echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))"
10364
10365
10366
10367
10368
10369
10370 case $host_os in
10371 solaris*)
10372 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we
10373 # check for a man page file found in later versions that use
10374 # traditional section numbers instead
10375 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5
10376 printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; }
10377 if test ${ac_cv_file__usr_share_man_man7_attributes_7+y}
10378 then :
10379 printf %s "(cached) " >&6
10380 else $as_nop
10381 test "$cross_compiling" = yes &&
10382 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
10383 if test -r "/usr/share/man/man7/attributes.7"; then
10384 ac_cv_file__usr_share_man_man7_attributes_7=yes
10385 else
10386 ac_cv_file__usr_share_man_man7_attributes_7=no
10387 fi
10388 fi
10389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5
10390 printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; }
10391 if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes
10392 then :
10393 SYSV_MAN_SECTIONS=false
10394 else $as_nop
10395 SYSV_MAN_SECTIONS=true
10396 fi
10397
10398 ;;
10399 *) SYSV_MAN_SECTIONS=false ;;
10400 esac
10401
10402 if test x$APP_MAN_SUFFIX = x ; then
10403 APP_MAN_SUFFIX=1
10404 fi
10405 if test x$APP_MAN_DIR = x ; then
10406 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
10407 fi
10408
10409 if test x$LIB_MAN_SUFFIX = x ; then
10410 LIB_MAN_SUFFIX=3
10411 fi
10412 if test x$LIB_MAN_DIR = x ; then
10413 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
10414 fi
10415
10416 if test x$FILE_MAN_SUFFIX = x ; then
10417 case $SYSV_MAN_SECTIONS in
10418 true) FILE_MAN_SUFFIX=4 ;;
10419 *) FILE_MAN_SUFFIX=5 ;;
10420 esac
10421 fi
10422 if test x$FILE_MAN_DIR = x ; then
10423 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
10424 fi
10425
10426 if test x$MISC_MAN_SUFFIX = x ; then
10427 case $SYSV_MAN_SECTIONS in
10428 true) MISC_MAN_SUFFIX=5 ;;
10429 *) MISC_MAN_SUFFIX=7 ;;
10430 esac
10431 fi
10432 if test x$MISC_MAN_DIR = x ; then
10433 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
10434 fi
10435
10436 if test x$DRIVER_MAN_SUFFIX = x ; then
10437 case $SYSV_MAN_SECTIONS in
10438 true) DRIVER_MAN_SUFFIX=7 ;;
10439 *) DRIVER_MAN_SUFFIX=4 ;;
10440 esac
10441 fi
10442 if test x$DRIVER_MAN_DIR = x ; then
10443 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
10444 fi
10445
10446 if test x$ADMIN_MAN_SUFFIX = x ; then
10447 case $SYSV_MAN_SECTIONS in
10448 true) ADMIN_MAN_SUFFIX=1m ;;
10449 *) ADMIN_MAN_SUFFIX=8 ;;
10450 esac
10451 fi
10452 if test x$ADMIN_MAN_DIR = x ; then
10453 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
10454 fi
10455
10456
10457
10458
10459
10460
10461
10462
10463
10464
10465
10466
10467
10468
10469
10470 XORG_MAN_PAGE="X Version 11"
10471
10472 MAN_SUBSTS="\
10473 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10474 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10475 -e 's|__xservername__|Xorg|g' \
10476 -e 's|__xconfigfile__|xorg.conf|g' \
10477 -e 's|__projectroot__|\$(prefix)|g' \
10478 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
10479 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
10480 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
10481 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
10482 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
10483 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
10484 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
10485
10486
10487
10488 # Check whether --enable-silent-rules was given.
10489 if test ${enable_silent_rules+y}
10490 then :
10491 enableval=$enable_silent_rules;
10492 fi
10493
10494 case $enable_silent_rules in # (((
10495 yes) AM_DEFAULT_VERBOSITY=0;;
10496 no) AM_DEFAULT_VERBOSITY=1;;
10497 *) AM_DEFAULT_VERBOSITY=0;;
10498 esac
10499 am_make=${MAKE-make}
10500 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
10501 printf %s "checking whether $am_make supports nested variables... " >&6; }
10502 if test ${am_cv_make_support_nested_variables+y}
10503 then :
10504 printf %s "(cached) " >&6
10505 else $as_nop
10506 if printf "%s\n" 'TRUE=$(BAR$(V))
10507 BAR0=false
10508 BAR1=true
10509 V=1
10510 am__doit:
10511 @$(TRUE)
10512 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
10513 am_cv_make_support_nested_variables=yes
10514 else
10515 am_cv_make_support_nested_variables=no
10516 fi
10517 fi
10518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
10519 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
10520 if test $am_cv_make_support_nested_variables = yes; then
10521 AM_V='$(V)'
10522 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
10523 else
10524 AM_V=$AM_DEFAULT_VERBOSITY
10525 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
10526 fi
10527 AM_BACKSLASH='\'
10528
10529
10530
10531
10532
10533 # Initialize Automake
10534 am__api_version='1.16'
10535
10536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
10537 printf %s "checking whether build environment is sane... " >&6; }
10538 # Reject unsafe characters in $srcdir or the absolute working directory
10539 # name. Accept space and tab only in the latter.
10540 am_lf='
10541 '
10542 case `pwd` in
10543 *[\\\"\#\$\&\'\`$am_lf]*)
10544 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
10545 esac
10546 case $srcdir in
10547 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
10548 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
10549 esac
10550
10551 # Do 'set' in a subshell so we don't clobber the current shell's
10552 # arguments. Must try -L first in case configure is actually a
10553 # symlink; some systems play weird games with the mod time of symlinks
10554 # (eg FreeBSD returns the mod time of the symlink's containing
10555 # directory).
10556 if (
10557 am_has_slept=no
10558 for am_try in 1 2; do
10559 echo "timestamp, slept: $am_has_slept" > conftest.file
10560 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
10561 if test "$*" = "X"; then
10562 # -L didn't work.
10563 set X `ls -t "$srcdir/configure" conftest.file`
10564 fi
10565 if test "$*" != "X $srcdir/configure conftest.file" \
10566 && test "$*" != "X conftest.file $srcdir/configure"; then
10567
10568 # If neither matched, then we have a broken ls. This can happen
10569 # if, for instance, CONFIG_SHELL is bash and it inherits a
10570 # broken ls alias from the environment. This has actually
10571 # happened. Such a system could not be considered "sane".
10572 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
10573 alias in your environment" "$LINENO" 5
10574 fi
10575 if test "$2" = conftest.file || test $am_try -eq 2; then
10576 break
10577 fi
10578 # Just in case.
10579 sleep 1
10580 am_has_slept=yes
10581 done
10582 test "$2" = conftest.file
10583 )
10584 then
10585 # Ok.
10586 :
10587 else
10588 as_fn_error $? "newly created file is older than distributed files!
10589 Check your system clock" "$LINENO" 5
10590 fi
10591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10592 printf "%s\n" "yes" >&6; }
10593 # If we didn't sleep, we still need to ensure time stamps of config.status and
10594 # generated files are strictly newer.
10595 am_sleep_pid=
10596 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
10597 ( sleep 1 ) &
10598 am_sleep_pid=$!
10599 fi
10600
10601 rm -f conftest.file
10602
10603 test "$program_prefix" != NONE &&
10604 program_transform_name="s&^&$program_prefix&;$program_transform_name"
10605 # Use a double $ so make ignores it.
10606 test "$program_suffix" != NONE &&
10607 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
10608 # Double any \ or $.
10609 # By default was `s,x,x', remove it if useless.
10610 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
10611 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
10612
10613
10614 if test x"${MISSING+set}" != xset; then
10615 MISSING="\${SHELL} '$am_aux_dir/missing'"
10616 fi
10617 # Use eval to expand $SHELL
10618 if eval "$MISSING --is-lightweight"; then
10619 am_missing_run="$MISSING "
10620 else
10621 am_missing_run=
10622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
10623 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
10624 fi
10625
10626 if test x"${install_sh+set}" != xset; then
10627 case $am_aux_dir in
10628 *\ * | *\ *)
10629 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
10630 *)
10631 install_sh="\${SHELL} $am_aux_dir/install-sh"
10632 esac
10633 fi
10634
10635 # Installed binaries are usually stripped using 'strip' when the user
10636 # run "make install-strip". However 'strip' might not be the right
10637 # tool to use in cross-compilation environments, therefore Automake
10638 # will honor the 'STRIP' environment variable to overrule this program.
10639 if test "$cross_compiling" != no; then
10640 if test -n "$ac_tool_prefix"; then
10641 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
10642 set dummy ${ac_tool_prefix}strip; ac_word=$2
10643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10644 printf %s "checking for $ac_word... " >&6; }
10645 if test ${ac_cv_prog_STRIP+y}
10646 then :
10647 printf %s "(cached) " >&6
10648 else $as_nop
10649 if test -n "$STRIP"; then
10650 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
10651 else
10652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10653 for as_dir in $PATH
10654 do
10655 IFS=$as_save_IFS
10656 case $as_dir in #(((
10657 '') as_dir=./ ;;
10658 */) ;;
10659 *) as_dir=$as_dir/ ;;
10660 esac
10661 for ac_exec_ext in '' $ac_executable_extensions; do
10662 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10663 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
10664 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10665 break 2
10666 fi
10667 done
10668 done
10669 IFS=$as_save_IFS
10670
10671 fi
10672 fi
10673 STRIP=$ac_cv_prog_STRIP
10674 if test -n "$STRIP"; then
10675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
10676 printf "%s\n" "$STRIP" >&6; }
10677 else
10678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10679 printf "%s\n" "no" >&6; }
10680 fi
10681
10682
10683 fi
10684 if test -z "$ac_cv_prog_STRIP"; then
10685 ac_ct_STRIP=$STRIP
10686 # Extract the first word of "strip", so it can be a program name with args.
10687 set dummy strip; ac_word=$2
10688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10689 printf %s "checking for $ac_word... " >&6; }
10690 if test ${ac_cv_prog_ac_ct_STRIP+y}
10691 then :
10692 printf %s "(cached) " >&6
10693 else $as_nop
10694 if test -n "$ac_ct_STRIP"; then
10695 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
10696 else
10697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10698 for as_dir in $PATH
10699 do
10700 IFS=$as_save_IFS
10701 case $as_dir in #(((
10702 '') as_dir=./ ;;
10703 */) ;;
10704 *) as_dir=$as_dir/ ;;
10705 esac
10706 for ac_exec_ext in '' $ac_executable_extensions; do
10707 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10708 ac_cv_prog_ac_ct_STRIP="strip"
10709 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10710 break 2
10711 fi
10712 done
10713 done
10714 IFS=$as_save_IFS
10715
10716 fi
10717 fi
10718 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
10719 if test -n "$ac_ct_STRIP"; then
10720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
10721 printf "%s\n" "$ac_ct_STRIP" >&6; }
10722 else
10723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10724 printf "%s\n" "no" >&6; }
10725 fi
10726
10727 if test "x$ac_ct_STRIP" = x; then
10728 STRIP=":"
10729 else
10730 case $cross_compiling:$ac_tool_warned in
10731 yes:)
10732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10733 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10734 ac_tool_warned=yes ;;
10735 esac
10736 STRIP=$ac_ct_STRIP
10737 fi
10738 else
10739 STRIP="$ac_cv_prog_STRIP"
10740 fi
10741
10742 fi
10743 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
10744
10745
10746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
10747 printf %s "checking for a race-free mkdir -p... " >&6; }
10748 if test -z "$MKDIR_P"; then
10749 if test ${ac_cv_path_mkdir+y}
10750 then :
10751 printf %s "(cached) " >&6
10752 else $as_nop
10753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10754 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
10755 do
10756 IFS=$as_save_IFS
10757 case $as_dir in #(((
10758 '') as_dir=./ ;;
10759 */) ;;
10760 *) as_dir=$as_dir/ ;;
10761 esac
10762 for ac_prog in mkdir gmkdir; do
10763 for ac_exec_ext in '' $ac_executable_extensions; do
10764 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
10765 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
10766 'mkdir ('*'coreutils) '* | \
10767 'BusyBox '* | \
10768 'mkdir (fileutils) '4.1*)
10769 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
10770 break 3;;
10771 esac
10772 done
10773 done
10774 done
10775 IFS=$as_save_IFS
10776
10777 fi
10778
10779 test -d ./--version && rmdir ./--version
10780 if test ${ac_cv_path_mkdir+y}; then
10781 MKDIR_P="$ac_cv_path_mkdir -p"
10782 else
10783 # As a last resort, use the slow shell script. Don't cache a
10784 # value for MKDIR_P within a source directory, because that will
10785 # break other packages using the cache if that directory is
10786 # removed, or if the value is a relative name.
10787 MKDIR_P="$ac_install_sh -d"
10788 fi
10789 fi
10790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
10791 printf "%s\n" "$MKDIR_P" >&6; }
10792
10793 for ac_prog in gawk mawk nawk awk
10794 do
10795 # Extract the first word of "$ac_prog", so it can be a program name with args.
10796 set dummy $ac_prog; ac_word=$2
10797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10798 printf %s "checking for $ac_word... " >&6; }
10799 if test ${ac_cv_prog_AWK+y}
10800 then :
10801 printf %s "(cached) " >&6
10802 else $as_nop
10803 if test -n "$AWK"; then
10804 ac_cv_prog_AWK="$AWK" # Let the user override the test.
10805 else
10806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10807 for as_dir in $PATH
10808 do
10809 IFS=$as_save_IFS
10810 case $as_dir in #(((
10811 '') as_dir=./ ;;
10812 */) ;;
10813 *) as_dir=$as_dir/ ;;
10814 esac
10815 for ac_exec_ext in '' $ac_executable_extensions; do
10816 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10817 ac_cv_prog_AWK="$ac_prog"
10818 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10819 break 2
10820 fi
10821 done
10822 done
10823 IFS=$as_save_IFS
10824
10825 fi
10826 fi
10827 AWK=$ac_cv_prog_AWK
10828 if test -n "$AWK"; then
10829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
10830 printf "%s\n" "$AWK" >&6; }
10831 else
10832 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10833 printf "%s\n" "no" >&6; }
10834 fi
10835
10836
10837 test -n "$AWK" && break
10838 done
10839
10840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
10841 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
10842 set x ${MAKE-make}
10843 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
10844 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
10845 then :
10846 printf %s "(cached) " >&6
10847 else $as_nop
10848 cat >conftest.make <<\_ACEOF
10849 SHELL = /bin/sh
10850 all:
10851 @echo '@@@%%%=$(MAKE)=@@@%%%'
10852 _ACEOF
10853 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
10854 case `${MAKE-make} -f conftest.make 2>/dev/null` in
10855 *@@@%%%=?*=@@@%%%*)
10856 eval ac_cv_prog_make_${ac_make}_set=yes;;
10857 *)
10858 eval ac_cv_prog_make_${ac_make}_set=no;;
10859 esac
10860 rm -f conftest.make
10861 fi
10862 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
10863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10864 printf "%s\n" "yes" >&6; }
10865 SET_MAKE=
10866 else
10867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10868 printf "%s\n" "no" >&6; }
10869 SET_MAKE="MAKE=${MAKE-make}"
10870 fi
10871
10872 rm -rf .tst 2>/dev/null
10873 mkdir .tst 2>/dev/null
10874 if test -d .tst; then
10875 am__leading_dot=.
10876 else
10877 am__leading_dot=_
10878 fi
10879 rmdir .tst 2>/dev/null
10880
10881 DEPDIR="${am__leading_dot}deps"
10882
10883 ac_config_commands="$ac_config_commands depfiles"
10884
10885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
10886 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
10887 cat > confinc.mk << 'END'
10888 am__doit:
10889 @echo this is the am__doit target >confinc.out
10890 .PHONY: am__doit
10891 END
10892 am__include="#"
10893 am__quote=
10894 # BSD make does it like this.
10895 echo '.include "confinc.mk" # ignored' > confmf.BSD
10896 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
10897 echo 'include confinc.mk # ignored' > confmf.GNU
10898 _am_result=no
10899 for s in GNU BSD; do
10900 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
10901 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
10902 ac_status=$?
10903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10904 (exit $ac_status); }
10905 case $?:`cat confinc.out 2>/dev/null` in #(
10906 '0:this is the am__doit target') :
10907 case $s in #(
10908 BSD) :
10909 am__include='.include' am__quote='"' ;; #(
10910 *) :
10911 am__include='include' am__quote='' ;;
10912 esac ;; #(
10913 *) :
10914 ;;
10915 esac
10916 if test "$am__include" != "#"; then
10917 _am_result="yes ($s style)"
10918 break
10919 fi
10920 done
10921 rm -f confinc.* confmf.*
10922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
10923 printf "%s\n" "${_am_result}" >&6; }
10924
10925 # Check whether --enable-dependency-tracking was given.
10926 if test ${enable_dependency_tracking+y}
10927 then :
10928 enableval=$enable_dependency_tracking;
10929 fi
10930
10931 if test "x$enable_dependency_tracking" != xno; then
10932 am_depcomp="$ac_aux_dir/depcomp"
10933 AMDEPBACKSLASH='\'
10934 am__nodep='_no'
10935 fi
10936 if test "x$enable_dependency_tracking" != xno; then
10937 AMDEP_TRUE=
10938 AMDEP_FALSE='#'
10939 else
10940 AMDEP_TRUE='#'
10941 AMDEP_FALSE=
10942 fi
10943
10944
10945 if test "`cd $srcdir && pwd`" != "`pwd`"; then
10946 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
10947 # is not polluted with repeated "-I."
10948 am__isrc=' -I$(srcdir)'
10949 # test to see if srcdir already configured
10950 if test -f $srcdir/config.status; then
10951 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
10952 fi
10953 fi
10954
10955 # test whether we have cygpath
10956 if test -z "$CYGPATH_W"; then
10957 if (cygpath --version) >/dev/null 2>/dev/null; then
10958 CYGPATH_W='cygpath -w'
10959 else
10960 CYGPATH_W=echo
10961 fi
10962 fi
10963
10964
10965 # Define the identity of the package.
10966 PACKAGE='xf86-video-nv'
10967 VERSION='2.1.22'
10968
10969
10970 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
10971
10972
10973 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
10974
10975 # Some tools Automake needs.
10976
10977 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
10978
10979
10980 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
10981
10982
10983 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
10984
10985
10986 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
10987
10988
10989 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
10990
10991 # For better backward compatibility. To be removed once Automake 1.9.x
10992 # dies out for good. For more background, see:
10993 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
10994 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
10995 mkdir_p='$(MKDIR_P)'
10996
10997 # We need awk for the "check" target (and possibly the TAP driver). The
10998 # system "awk" is bad on some platforms.
10999 # Always define AMTAR for backward compatibility. Yes, it's still used
11000 # in the wild :-( We should find a proper way to deprecate it ...
11001 AMTAR='$${TAR-tar}'
11002
11003
11004 # We'll loop over all known methods to create a tar archive until one works.
11005 _am_tools='gnutar pax cpio none'
11006
11007 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
11008
11009
11010
11011
11012
11013 depcc="$CC" am_compiler_list=
11014
11015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
11016 printf %s "checking dependency style of $depcc... " >&6; }
11017 if test ${am_cv_CC_dependencies_compiler_type+y}
11018 then :
11019 printf %s "(cached) " >&6
11020 else $as_nop
11021 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11022 # We make a subdir and do the tests there. Otherwise we can end up
11023 # making bogus files that we don't know about and never remove. For
11024 # instance it was reported that on HP-UX the gcc test will end up
11025 # making a dummy file named 'D' -- because '-MD' means "put the output
11026 # in D".
11027 rm -rf conftest.dir
11028 mkdir conftest.dir
11029 # Copy depcomp to subdir because otherwise we won't find it if we're
11030 # using a relative directory.
11031 cp "$am_depcomp" conftest.dir
11032 cd conftest.dir
11033 # We will build objects and dependencies in a subdirectory because
11034 # it helps to detect inapplicable dependency modes. For instance
11035 # both Tru64's cc and ICC support -MD to output dependencies as a
11036 # side effect of compilation, but ICC will put the dependencies in
11037 # the current directory while Tru64 will put them in the object
11038 # directory.
11039 mkdir sub
11040
11041 am_cv_CC_dependencies_compiler_type=none
11042 if test "$am_compiler_list" = ""; then
11043 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11044 fi
11045 am__universal=false
11046 case " $depcc " in #(
11047 *\ -arch\ *\ -arch\ *) am__universal=true ;;
11048 esac
11049
11050 for depmode in $am_compiler_list; do
11051 # Setup a source with many dependencies, because some compilers
11052 # like to wrap large dependency lists on column 80 (with \), and
11053 # we should not choose a depcomp mode which is confused by this.
11054 #
11055 # We need to recreate these files for each test, as the compiler may
11056 # overwrite some of them when testing with obscure command lines.
11057 # This happens at least with the AIX C compiler.
11058 : > sub/conftest.c
11059 for i in 1 2 3 4 5 6; do
11060 echo '#include "conftst'$i'.h"' >> sub/conftest.c
11061 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
11062 # Solaris 10 /bin/sh.
11063 echo '/* dummy */' > sub/conftst$i.h
11064 done
11065 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11066
11067 # We check with '-c' and '-o' for the sake of the "dashmstdout"
11068 # mode. It turns out that the SunPro C++ compiler does not properly
11069 # handle '-M -o', and we need to detect this. Also, some Intel
11070 # versions had trouble with output in subdirs.
11071 am__obj=sub/conftest.${OBJEXT-o}
11072 am__minus_obj="-o $am__obj"
11073 case $depmode in
11074 gcc)
11075 # This depmode causes a compiler race in universal mode.
11076 test "$am__universal" = false || continue
11077 ;;
11078 nosideeffect)
11079 # After this tag, mechanisms are not by side-effect, so they'll
11080 # only be used when explicitly requested.
11081 if test "x$enable_dependency_tracking" = xyes; then
11082 continue
11083 else
11084 break
11085 fi
11086 ;;
11087 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
11088 # This compiler won't grok '-c -o', but also, the minuso test has
11089 # not run yet. These depmodes are late enough in the game, and
11090 # so weak that their functioning should not be impacted.
11091 am__obj=conftest.${OBJEXT-o}
11092 am__minus_obj=
11093 ;;
11094 none) break ;;
11095 esac
11096 if depmode=$depmode \
11097 source=sub/conftest.c object=$am__obj \
11098 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
11099 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
11100 >/dev/null 2>conftest.err &&
11101 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
11102 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
11103 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
11104 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
11105 # icc doesn't choke on unknown options, it will just issue warnings
11106 # or remarks (even with -Werror). So we grep stderr for any message
11107 # that says an option was ignored or not supported.
11108 # When given -MP, icc 7.0 and 7.1 complain thusly:
11109 # icc: Command line warning: ignoring option '-M'; no argument required
11110 # The diagnosis changed in icc 8.0:
11111 # icc: Command line remark: option '-MP' not supported
11112 if (grep 'ignoring option' conftest.err ||
11113 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
11114 am_cv_CC_dependencies_compiler_type=$depmode
11115 break
11116 fi
11117 fi
11118 done
11119
11120 cd ..
11121 rm -rf conftest.dir
11122 else
11123 am_cv_CC_dependencies_compiler_type=none
11124 fi
11125
11126 fi
11127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
11128 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
11129 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
11130
11131 if
11132 test "x$enable_dependency_tracking" != xno \
11133 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
11134 am__fastdepCC_TRUE=
11135 am__fastdepCC_FALSE='#'
11136 else
11137 am__fastdepCC_TRUE='#'
11138 am__fastdepCC_FALSE=
11139 fi
11140
11141
11142 # Variables for tags utilities; see am/tags.am
11143 if test -z "$CTAGS"; then
11144 CTAGS=ctags
11145 fi
11146
11147 if test -z "$ETAGS"; then
11148 ETAGS=etags
11149 fi
11150
11151 if test -z "$CSCOPE"; then
11152 CSCOPE=cscope
11153 fi
11154
11155
11156
11157 # POSIX will say in a future version that running "rm -f" with no argument
11158 # is OK; and we want to be able to make that assumption in our Makefile
11159 # recipes. So use an aggressive probe to check that the usage we want is
11160 # actually supported "in the wild" to an acceptable degree.
11161 # See automake bug#10828.
11162 # To make any issue more visible, cause the running configure to be aborted
11163 # by default if the 'rm' program in use doesn't match our expectations; the
11164 # user can still override this though.
11165 if rm -f && rm -fr && rm -rf; then : OK; else
11166 cat >&2 <<'END'
11167 Oops!
11168
11169 Your 'rm' program seems unable to run without file operands specified
11170 on the command line, even when the '-f' option is present. This is contrary
11171 to the behaviour of most rm programs out there, and not conforming with
11172 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
11173
11174 Please tell bug-automake@gnu.org about your system, including the value
11175 of your $PATH and any error possibly output before this message. This
11176 can help us improve future automake versions.
11177
11178 END
11179 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
11180 echo 'Configuration will proceed anyway, since you have set the' >&2
11181 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
11182 echo >&2
11183 else
11184 cat >&2 <<'END'
11185 Aborting the configuration process, to ensure you take notice of the issue.
11186
11187 You can download and install GNU coreutils to get an 'rm' implementation
11188 that behaves properly: <https://www.gnu.org/software/coreutils/>.
11189
11190 If you want to complete the configuration process using your problematic
11191 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
11192 to "yes", and re-run configure.
11193
11194 END
11195 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
11196 fi
11197 fi
11198
11199
11200 # Initialize libtool
11201 # Check whether --enable-static was given.
11202 if test ${enable_static+y}
11203 then :
11204 enableval=$enable_static; p=${PACKAGE-default}
11205 case $enableval in
11206 yes) enable_static=yes ;;
11207 no) enable_static=no ;;
11208 *)
11209 enable_static=no
11210 # Look at the argument we got. We use all the common list separators.
11211 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11212 for pkg in $enableval; do
11213 IFS=$lt_save_ifs
11214 if test "X$pkg" = "X$p"; then
11215 enable_static=yes
11216 fi
11217 done
11218 IFS=$lt_save_ifs
11219 ;;
11220 esac
11221 else $as_nop
11222 enable_static=no
11223 fi
11224
11225
11226
11227
11228
11229
11230
11231
11232
11233 case `pwd` in
11234 *\ * | *\ *)
11235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
11236 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
11237 esac
11238
11239
11240
11241 macro_version='2.4.7'
11242 macro_revision='2.4.7'
11243
11244
11245
11246
11247
11248
11249
11250
11251
11252
11253
11254
11255
11256
11257 ltmain=$ac_aux_dir/ltmain.sh
11258
11259 # Backslashify metacharacters that are still active within
11260 # double-quoted strings.
11261 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
11262
11263 # Same as above, but do not quote variable references.
11264 double_quote_subst='s/\(["`\\]\)/\\\1/g'
11265
11266 # Sed substitution to delay expansion of an escaped shell variable in a
11267 # double_quote_subst'ed string.
11268 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11269
11270 # Sed substitution to delay expansion of an escaped single quote.
11271 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
11272
11273 # Sed substitution to avoid accidental globbing in evaled expressions
11274 no_glob_subst='s/\*/\\\*/g'
11275
11276 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11277 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
11278 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
11279
11280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
11281 printf %s "checking how to print strings... " >&6; }
11282 # Test print first, because it will be a builtin if present.
11283 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
11284 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
11285 ECHO='print -r --'
11286 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
11287 ECHO='printf %s\n'
11288 else
11289 # Use this function as a fallback that always works.
11290 func_fallback_echo ()
11291 {
11292 eval 'cat <<_LTECHO_EOF
11293 $1
11294 _LTECHO_EOF'
11295 }
11296 ECHO='func_fallback_echo'
11297 fi
11298
11299 # func_echo_all arg...
11300 # Invoke $ECHO with all args, space-separated.
11301 func_echo_all ()
11302 {
11303 $ECHO ""
11304 }
11305
11306 case $ECHO in
11307 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
11308 printf "%s\n" "printf" >&6; } ;;
11309 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
11310 printf "%s\n" "print -r" >&6; } ;;
11311 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
11312 printf "%s\n" "cat" >&6; } ;;
11313 esac
11314
11315
11316
11317
11318
11319
11320
11321
11322
11323
11324
11325
11326
11327
11328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
11329 printf %s "checking for a sed that does not truncate output... " >&6; }
11330 if test ${ac_cv_path_SED+y}
11331 then :
11332 printf %s "(cached) " >&6
11333 else $as_nop
11334 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
11335 for ac_i in 1 2 3 4 5 6 7; do
11336 ac_script="$ac_script$as_nl$ac_script"
11337 done
11338 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
11339 { ac_script=; unset ac_script;}
11340 if test -z "$SED"; then
11341 ac_path_SED_found=false
11342 # Loop through the user's path and test for each of PROGNAME-LIST
11343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11344 for as_dir in $PATH
11345 do
11346 IFS=$as_save_IFS
11347 case $as_dir in #(((
11348 '') as_dir=./ ;;
11349 */) ;;
11350 *) as_dir=$as_dir/ ;;
11351 esac
11352 for ac_prog in sed gsed
11353 do
11354 for ac_exec_ext in '' $ac_executable_extensions; do
11355 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
11356 as_fn_executable_p "$ac_path_SED" || continue
11357 # Check for GNU ac_path_SED and select it if it is found.
11358 # Check for GNU $ac_path_SED
11359 case `"$ac_path_SED" --version 2>&1` in
11360 *GNU*)
11361 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
11362 *)
11363 ac_count=0
11364 printf %s 0123456789 >"conftest.in"
11365 while :
11366 do
11367 cat "conftest.in" "conftest.in" >"conftest.tmp"
11368 mv "conftest.tmp" "conftest.in"
11369 cp "conftest.in" "conftest.nl"
11370 printf "%s\n" '' >> "conftest.nl"
11371 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
11372 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11373 as_fn_arith $ac_count + 1 && ac_count=$as_val
11374 if test $ac_count -gt ${ac_path_SED_max-0}; then
11375 # Best one so far, save it but keep looking for a better one
11376 ac_cv_path_SED="$ac_path_SED"
11377 ac_path_SED_max=$ac_count
11378 fi
11379 # 10*(2^10) chars as input seems more than enough
11380 test $ac_count -gt 10 && break
11381 done
11382 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11383 esac
11384
11385 $ac_path_SED_found && break 3
11386 done
11387 done
11388 done
11389 IFS=$as_save_IFS
11390 if test -z "$ac_cv_path_SED"; then
11391 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
11392 fi
11393 else
11394 ac_cv_path_SED=$SED
11395 fi
11396
11397 fi
11398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
11399 printf "%s\n" "$ac_cv_path_SED" >&6; }
11400 SED="$ac_cv_path_SED"
11401 rm -f conftest.sed
11402
11403 test -z "$SED" && SED=sed
11404 Xsed="$SED -e 1s/^X//"
11405
11406
11407
11408
11409
11410
11411
11412
11413
11414
11415
11416 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
11417 printf %s "checking for grep that handles long lines and -e... " >&6; }
11418 if test ${ac_cv_path_GREP+y}
11419 then :
11420 printf %s "(cached) " >&6
11421 else $as_nop
11422 if test -z "$GREP"; then
11423 ac_path_GREP_found=false
11424 # Loop through the user's path and test for each of PROGNAME-LIST
11425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11426 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11427 do
11428 IFS=$as_save_IFS
11429 case $as_dir in #(((
11430 '') as_dir=./ ;;
11431 */) ;;
11432 *) as_dir=$as_dir/ ;;
11433 esac
11434 for ac_prog in grep ggrep
11435 do
11436 for ac_exec_ext in '' $ac_executable_extensions; do
11437 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
11438 as_fn_executable_p "$ac_path_GREP" || continue
11439 # Check for GNU ac_path_GREP and select it if it is found.
11440 # Check for GNU $ac_path_GREP
11441 case `"$ac_path_GREP" --version 2>&1` in
11442 *GNU*)
11443 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
11444 *)
11445 ac_count=0
11446 printf %s 0123456789 >"conftest.in"
11447 while :
11448 do
11449 cat "conftest.in" "conftest.in" >"conftest.tmp"
11450 mv "conftest.tmp" "conftest.in"
11451 cp "conftest.in" "conftest.nl"
11452 printf "%s\n" 'GREP' >> "conftest.nl"
11453 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11454 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11455 as_fn_arith $ac_count + 1 && ac_count=$as_val
11456 if test $ac_count -gt ${ac_path_GREP_max-0}; then
11457 # Best one so far, save it but keep looking for a better one
11458 ac_cv_path_GREP="$ac_path_GREP"
11459 ac_path_GREP_max=$ac_count
11460 fi
11461 # 10*(2^10) chars as input seems more than enough
11462 test $ac_count -gt 10 && break
11463 done
11464 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11465 esac
11466
11467 $ac_path_GREP_found && break 3
11468 done
11469 done
11470 done
11471 IFS=$as_save_IFS
11472 if test -z "$ac_cv_path_GREP"; then
11473 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11474 fi
11475 else
11476 ac_cv_path_GREP=$GREP
11477 fi
11478
11479 fi
11480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
11481 printf "%s\n" "$ac_cv_path_GREP" >&6; }
11482 GREP="$ac_cv_path_GREP"
11483
11484
11485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
11486 printf %s "checking for egrep... " >&6; }
11487 if test ${ac_cv_path_EGREP+y}
11488 then :
11489 printf %s "(cached) " >&6
11490 else $as_nop
11491 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
11492 then ac_cv_path_EGREP="$GREP -E"
11493 else
11494 if test -z "$EGREP"; then
11495 ac_path_EGREP_found=false
11496 # Loop through the user's path and test for each of PROGNAME-LIST
11497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11498 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11499 do
11500 IFS=$as_save_IFS
11501 case $as_dir in #(((
11502 '') as_dir=./ ;;
11503 */) ;;
11504 *) as_dir=$as_dir/ ;;
11505 esac
11506 for ac_prog in egrep
11507 do
11508 for ac_exec_ext in '' $ac_executable_extensions; do
11509 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
11510 as_fn_executable_p "$ac_path_EGREP" || continue
11511 # Check for GNU ac_path_EGREP and select it if it is found.
11512 # Check for GNU $ac_path_EGREP
11513 case `"$ac_path_EGREP" --version 2>&1` in
11514 *GNU*)
11515 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
11516 *)
11517 ac_count=0
11518 printf %s 0123456789 >"conftest.in"
11519 while :
11520 do
11521 cat "conftest.in" "conftest.in" >"conftest.tmp"
11522 mv "conftest.tmp" "conftest.in"
11523 cp "conftest.in" "conftest.nl"
11524 printf "%s\n" 'EGREP' >> "conftest.nl"
11525 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11526 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11527 as_fn_arith $ac_count + 1 && ac_count=$as_val
11528 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
11529 # Best one so far, save it but keep looking for a better one
11530 ac_cv_path_EGREP="$ac_path_EGREP"
11531 ac_path_EGREP_max=$ac_count
11532 fi
11533 # 10*(2^10) chars as input seems more than enough
11534 test $ac_count -gt 10 && break
11535 done
11536 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11537 esac
11538
11539 $ac_path_EGREP_found && break 3
11540 done
11541 done
11542 done
11543 IFS=$as_save_IFS
11544 if test -z "$ac_cv_path_EGREP"; then
11545 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11546 fi
11547 else
11548 ac_cv_path_EGREP=$EGREP
11549 fi
11550
11551 fi
11552 fi
11553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
11554 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
11555 EGREP="$ac_cv_path_EGREP"
11556
11557
11558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
11559 printf %s "checking for fgrep... " >&6; }
11560 if test ${ac_cv_path_FGREP+y}
11561 then :
11562 printf %s "(cached) " >&6
11563 else $as_nop
11564 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
11565 then ac_cv_path_FGREP="$GREP -F"
11566 else
11567 if test -z "$FGREP"; then
11568 ac_path_FGREP_found=false
11569 # Loop through the user's path and test for each of PROGNAME-LIST
11570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11571 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11572 do
11573 IFS=$as_save_IFS
11574 case $as_dir in #(((
11575 '') as_dir=./ ;;
11576 */) ;;
11577 *) as_dir=$as_dir/ ;;
11578 esac
11579 for ac_prog in fgrep
11580 do
11581 for ac_exec_ext in '' $ac_executable_extensions; do
11582 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
11583 as_fn_executable_p "$ac_path_FGREP" || continue
11584 # Check for GNU ac_path_FGREP and select it if it is found.
11585 # Check for GNU $ac_path_FGREP
11586 case `"$ac_path_FGREP" --version 2>&1` in
11587 *GNU*)
11588 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
11589 *)
11590 ac_count=0
11591 printf %s 0123456789 >"conftest.in"
11592 while :
11593 do
11594 cat "conftest.in" "conftest.in" >"conftest.tmp"
11595 mv "conftest.tmp" "conftest.in"
11596 cp "conftest.in" "conftest.nl"
11597 printf "%s\n" 'FGREP' >> "conftest.nl"
11598 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
11599 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11600 as_fn_arith $ac_count + 1 && ac_count=$as_val
11601 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
11602 # Best one so far, save it but keep looking for a better one
11603 ac_cv_path_FGREP="$ac_path_FGREP"
11604 ac_path_FGREP_max=$ac_count
11605 fi
11606 # 10*(2^10) chars as input seems more than enough
11607 test $ac_count -gt 10 && break
11608 done
11609 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11610 esac
11611
11612 $ac_path_FGREP_found && break 3
11613 done
11614 done
11615 done
11616 IFS=$as_save_IFS
11617 if test -z "$ac_cv_path_FGREP"; then
11618 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11619 fi
11620 else
11621 ac_cv_path_FGREP=$FGREP
11622 fi
11623
11624 fi
11625 fi
11626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
11627 printf "%s\n" "$ac_cv_path_FGREP" >&6; }
11628 FGREP="$ac_cv_path_FGREP"
11629
11630
11631 test -z "$GREP" && GREP=grep
11632
11633
11634
11635
11636
11637
11638
11639
11640
11641
11642
11643
11644
11645
11646
11647
11648
11649
11650
11651 # Check whether --with-gnu-ld was given.
11652 if test ${with_gnu_ld+y}
11653 then :
11654 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
11655 else $as_nop
11656 with_gnu_ld=no
11657 fi
11658
11659 ac_prog=ld
11660 if test yes = "$GCC"; then
11661 # Check if gcc -print-prog-name=ld gives a path.
11662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
11663 printf %s "checking for ld used by $CC... " >&6; }
11664 case $host in
11665 *-*-mingw*)
11666 # gcc leaves a trailing carriage return, which upsets mingw
11667 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11668 *)
11669 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11670 esac
11671 case $ac_prog in
11672 # Accept absolute paths.
11673 [\\/]* | ?:[\\/]*)
11674 re_direlt='/[^/][^/]*/\.\./'
11675 # Canonicalize the pathname of ld
11676 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
11677 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
11678 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
11679 done
11680 test -z "$LD" && LD=$ac_prog
11681 ;;
11682 "")
11683 # If it fails, then pretend we aren't using GCC.
11684 ac_prog=ld
11685 ;;
11686 *)
11687 # If it is relative, then search for the first ld in PATH.
11688 with_gnu_ld=unknown
11689 ;;
11690 esac
11691 elif test yes = "$with_gnu_ld"; then
11692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11693 printf %s "checking for GNU ld... " >&6; }
11694 else
11695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11696 printf %s "checking for non-GNU ld... " >&6; }
11697 fi
11698 if test ${lt_cv_path_LD+y}
11699 then :
11700 printf %s "(cached) " >&6
11701 else $as_nop
11702 if test -z "$LD"; then
11703 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11704 for ac_dir in $PATH; do
11705 IFS=$lt_save_ifs
11706 test -z "$ac_dir" && ac_dir=.
11707 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11708 lt_cv_path_LD=$ac_dir/$ac_prog
11709 # Check to see if the program is GNU ld. I'd rather use --version,
11710 # but apparently some variants of GNU ld only accept -v.
11711 # Break only if it was the GNU/non-GNU ld that we prefer.
11712 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11713 *GNU* | *'with BFD'*)
11714 test no != "$with_gnu_ld" && break
11715 ;;
11716 *)
11717 test yes != "$with_gnu_ld" && break
11718 ;;
11719 esac
11720 fi
11721 done
11722 IFS=$lt_save_ifs
11723 else
11724 lt_cv_path_LD=$LD # Let the user override the test with a path.
11725 fi
11726 fi
11727
11728 LD=$lt_cv_path_LD
11729 if test -n "$LD"; then
11730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11731 printf "%s\n" "$LD" >&6; }
11732 else
11733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11734 printf "%s\n" "no" >&6; }
11735 fi
11736 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
11737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11738 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
11739 if test ${lt_cv_prog_gnu_ld+y}
11740 then :
11741 printf %s "(cached) " >&6
11742 else $as_nop
11743 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11744 case `$LD -v 2>&1 </dev/null` in
11745 *GNU* | *'with BFD'*)
11746 lt_cv_prog_gnu_ld=yes
11747 ;;
11748 *)
11749 lt_cv_prog_gnu_ld=no
11750 ;;
11751 esac
11752 fi
11753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
11754 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
11755 with_gnu_ld=$lt_cv_prog_gnu_ld
11756
11757
11758
11759
11760
11761
11762
11763
11764
11765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
11766 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
11767 if test ${lt_cv_path_NM+y}
11768 then :
11769 printf %s "(cached) " >&6
11770 else $as_nop
11771 if test -n "$NM"; then
11772 # Let the user override the test.
11773 lt_cv_path_NM=$NM
11774 else
11775 lt_nm_to_check=${ac_tool_prefix}nm
11776 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
11777 lt_nm_to_check="$lt_nm_to_check nm"
11778 fi
11779 for lt_tmp_nm in $lt_nm_to_check; do
11780 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11781 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
11782 IFS=$lt_save_ifs
11783 test -z "$ac_dir" && ac_dir=.
11784 tmp_nm=$ac_dir/$lt_tmp_nm
11785 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
11786 # Check to see if the nm accepts a BSD-compat flag.
11787 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
11788 # nm: unknown option "B" ignored
11789 # Tru64's nm complains that /dev/null is an invalid object file
11790 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
11791 case $build_os in
11792 mingw*) lt_bad_file=conftest.nm/nofile ;;
11793 *) lt_bad_file=/dev/null ;;
11794 esac
11795 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
11796 *$lt_bad_file* | *'Invalid file or object type'*)
11797 lt_cv_path_NM="$tmp_nm -B"
11798 break 2
11799 ;;
11800 *)
11801 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
11802 */dev/null*)
11803 lt_cv_path_NM="$tmp_nm -p"
11804 break 2
11805 ;;
11806 *)
11807 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
11808 continue # so that we can try to find one that supports BSD flags
11809 ;;
11810 esac
11811 ;;
11812 esac
11813 fi
11814 done
11815 IFS=$lt_save_ifs
11816 done
11817 : ${lt_cv_path_NM=no}
11818 fi
11819 fi
11820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
11821 printf "%s\n" "$lt_cv_path_NM" >&6; }
11822 if test no != "$lt_cv_path_NM"; then
11823 NM=$lt_cv_path_NM
11824 else
11825 # Didn't find any BSD compatible name lister, look for dumpbin.
11826 if test -n "$DUMPBIN"; then :
11827 # Let the user override the test.
11828 else
11829 if test -n "$ac_tool_prefix"; then
11830 for ac_prog in dumpbin "link -dump"
11831 do
11832 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11833 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11834 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11835 printf %s "checking for $ac_word... " >&6; }
11836 if test ${ac_cv_prog_DUMPBIN+y}
11837 then :
11838 printf %s "(cached) " >&6
11839 else $as_nop
11840 if test -n "$DUMPBIN"; then
11841 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
11842 else
11843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11844 for as_dir in $PATH
11845 do
11846 IFS=$as_save_IFS
11847 case $as_dir in #(((
11848 '') as_dir=./ ;;
11849 */) ;;
11850 *) as_dir=$as_dir/ ;;
11851 esac
11852 for ac_exec_ext in '' $ac_executable_extensions; do
11853 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11854 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
11855 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11856 break 2
11857 fi
11858 done
11859 done
11860 IFS=$as_save_IFS
11861
11862 fi
11863 fi
11864 DUMPBIN=$ac_cv_prog_DUMPBIN
11865 if test -n "$DUMPBIN"; then
11866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
11867 printf "%s\n" "$DUMPBIN" >&6; }
11868 else
11869 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11870 printf "%s\n" "no" >&6; }
11871 fi
11872
11873
11874 test -n "$DUMPBIN" && break
11875 done
11876 fi
11877 if test -z "$DUMPBIN"; then
11878 ac_ct_DUMPBIN=$DUMPBIN
11879 for ac_prog in dumpbin "link -dump"
11880 do
11881 # Extract the first word of "$ac_prog", so it can be a program name with args.
11882 set dummy $ac_prog; ac_word=$2
11883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11884 printf %s "checking for $ac_word... " >&6; }
11885 if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
11886 then :
11887 printf %s "(cached) " >&6
11888 else $as_nop
11889 if test -n "$ac_ct_DUMPBIN"; then
11890 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
11891 else
11892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11893 for as_dir in $PATH
11894 do
11895 IFS=$as_save_IFS
11896 case $as_dir in #(((
11897 '') as_dir=./ ;;
11898 */) ;;
11899 *) as_dir=$as_dir/ ;;
11900 esac
11901 for ac_exec_ext in '' $ac_executable_extensions; do
11902 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11903 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
11904 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11905 break 2
11906 fi
11907 done
11908 done
11909 IFS=$as_save_IFS
11910
11911 fi
11912 fi
11913 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
11914 if test -n "$ac_ct_DUMPBIN"; then
11915 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
11916 printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
11917 else
11918 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11919 printf "%s\n" "no" >&6; }
11920 fi
11921
11922
11923 test -n "$ac_ct_DUMPBIN" && break
11924 done
11925
11926 if test "x$ac_ct_DUMPBIN" = x; then
11927 DUMPBIN=":"
11928 else
11929 case $cross_compiling:$ac_tool_warned in
11930 yes:)
11931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11932 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11933 ac_tool_warned=yes ;;
11934 esac
11935 DUMPBIN=$ac_ct_DUMPBIN
11936 fi
11937 fi
11938
11939 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
11940 *COFF*)
11941 DUMPBIN="$DUMPBIN -symbols -headers"
11942 ;;
11943 *)
11944 DUMPBIN=:
11945 ;;
11946 esac
11947 fi
11948
11949 if test : != "$DUMPBIN"; then
11950 NM=$DUMPBIN
11951 fi
11952 fi
11953 test -z "$NM" && NM=nm
11954
11955
11956
11957
11958
11959
11960 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
11961 printf %s "checking the name lister ($NM) interface... " >&6; }
11962 if test ${lt_cv_nm_interface+y}
11963 then :
11964 printf %s "(cached) " >&6
11965 else $as_nop
11966 lt_cv_nm_interface="BSD nm"
11967 echo "int some_variable = 0;" > conftest.$ac_ext
11968 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
11969 (eval "$ac_compile" 2>conftest.err)
11970 cat conftest.err >&5
11971 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
11972 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
11973 cat conftest.err >&5
11974 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
11975 cat conftest.out >&5
11976 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
11977 lt_cv_nm_interface="MS dumpbin"
11978 fi
11979 rm -f conftest*
11980 fi
11981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
11982 printf "%s\n" "$lt_cv_nm_interface" >&6; }
11983
11984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
11985 printf %s "checking whether ln -s works... " >&6; }
11986 LN_S=$as_ln_s
11987 if test "$LN_S" = "ln -s"; then
11988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11989 printf "%s\n" "yes" >&6; }
11990 else
11991 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
11992 printf "%s\n" "no, using $LN_S" >&6; }
11993 fi
11994
11995 # find the maximum length of command line arguments
11996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
11997 printf %s "checking the maximum length of command line arguments... " >&6; }
11998 if test ${lt_cv_sys_max_cmd_len+y}
11999 then :
12000 printf %s "(cached) " >&6
12001 else $as_nop
12002 i=0
12003 teststring=ABCD
12004
12005 case $build_os in
12006 msdosdjgpp*)
12007 # On DJGPP, this test can blow up pretty badly due to problems in libc
12008 # (any single argument exceeding 2000 bytes causes a buffer overrun
12009 # during glob expansion). Even if it were fixed, the result of this
12010 # check would be larger than it should be.
12011 lt_cv_sys_max_cmd_len=12288; # 12K is about right
12012 ;;
12013
12014 gnu*)
12015 # Under GNU Hurd, this test is not required because there is
12016 # no limit to the length of command line arguments.
12017 # Libtool will interpret -1 as no limit whatsoever
12018 lt_cv_sys_max_cmd_len=-1;
12019 ;;
12020
12021 cygwin* | mingw* | cegcc*)
12022 # On Win9x/ME, this test blows up -- it succeeds, but takes
12023 # about 5 minutes as the teststring grows exponentially.
12024 # Worse, since 9x/ME are not pre-emptively multitasking,
12025 # you end up with a "frozen" computer, even though with patience
12026 # the test eventually succeeds (with a max line length of 256k).
12027 # Instead, let's just punt: use the minimum linelength reported by
12028 # all of the supported platforms: 8192 (on NT/2K/XP).
12029 lt_cv_sys_max_cmd_len=8192;
12030 ;;
12031
12032 mint*)
12033 # On MiNT this can take a long time and run out of memory.
12034 lt_cv_sys_max_cmd_len=8192;
12035 ;;
12036
12037 amigaos*)
12038 # On AmigaOS with pdksh, this test takes hours, literally.
12039 # So we just punt and use a minimum line length of 8192.
12040 lt_cv_sys_max_cmd_len=8192;
12041 ;;
12042
12043 bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
12044 # This has been around since 386BSD, at least. Likely further.
12045 if test -x /sbin/sysctl; then
12046 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
12047 elif test -x /usr/sbin/sysctl; then
12048 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
12049 else
12050 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
12051 fi
12052 # And add a safety zone
12053 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12054 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12055 ;;
12056
12057 interix*)
12058 # We know the value 262144 and hardcode it with a safety zone (like BSD)
12059 lt_cv_sys_max_cmd_len=196608
12060 ;;
12061
12062 os2*)
12063 # The test takes a long time on OS/2.
12064 lt_cv_sys_max_cmd_len=8192
12065 ;;
12066
12067 osf*)
12068 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
12069 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
12070 # nice to cause kernel panics so lets avoid the loop below.
12071 # First set a reasonable default.
12072 lt_cv_sys_max_cmd_len=16384
12073 #
12074 if test -x /sbin/sysconfig; then
12075 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
12076 *1*) lt_cv_sys_max_cmd_len=-1 ;;
12077 esac
12078 fi
12079 ;;
12080 sco3.2v5*)
12081 lt_cv_sys_max_cmd_len=102400
12082 ;;
12083 sysv5* | sco5v6* | sysv4.2uw2*)
12084 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
12085 if test -n "$kargmax"; then
12086 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'`
12087 else
12088 lt_cv_sys_max_cmd_len=32768
12089 fi
12090 ;;
12091 *)
12092 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
12093 if test -n "$lt_cv_sys_max_cmd_len" && \
12094 test undefined != "$lt_cv_sys_max_cmd_len"; then
12095 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12096 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12097 else
12098 # Make teststring a little bigger before we do anything with it.
12099 # a 1K string should be a reasonable start.
12100 for i in 1 2 3 4 5 6 7 8; do
12101 teststring=$teststring$teststring
12102 done
12103 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
12104 # If test is not a shell built-in, we'll probably end up computing a
12105 # maximum length that is only half of the actual maximum length, but
12106 # we can't tell.
12107 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
12108 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
12109 test 17 != "$i" # 1/2 MB should be enough
12110 do
12111 i=`expr $i + 1`
12112 teststring=$teststring$teststring
12113 done
12114 # Only check the string length outside the loop.
12115 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
12116 teststring=
12117 # Add a significant safety factor because C++ compilers can tack on
12118 # massive amounts of additional arguments before passing them to the
12119 # linker. It appears as though 1/2 is a usable value.
12120 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
12121 fi
12122 ;;
12123 esac
12124
12125 fi
12126
12127 if test -n "$lt_cv_sys_max_cmd_len"; then
12128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
12129 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
12130 else
12131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
12132 printf "%s\n" "none" >&6; }
12133 fi
12134 max_cmd_len=$lt_cv_sys_max_cmd_len
12135
12136
12137
12138
12139
12140
12141 : ${CP="cp -f"}
12142 : ${MV="mv -f"}
12143 : ${RM="rm -f"}
12144
12145 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12146 lt_unset=unset
12147 else
12148 lt_unset=false
12149 fi
12150
12151
12152
12153
12154
12155 # test EBCDIC or ASCII
12156 case `echo X|tr X '\101'` in
12157 A) # ASCII based system
12158 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
12159 lt_SP2NL='tr \040 \012'
12160 lt_NL2SP='tr \015\012 \040\040'
12161 ;;
12162 *) # EBCDIC based system
12163 lt_SP2NL='tr \100 \n'
12164 lt_NL2SP='tr \r\n \100\100'
12165 ;;
12166 esac
12167
12168
12169
12170
12171
12172
12173
12174
12175
12176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
12177 printf %s "checking how to convert $build file names to $host format... " >&6; }
12178 if test ${lt_cv_to_host_file_cmd+y}
12179 then :
12180 printf %s "(cached) " >&6
12181 else $as_nop
12182 case $host in
12183 *-*-mingw* )
12184 case $build in
12185 *-*-mingw* ) # actually msys
12186 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
12187 ;;
12188 *-*-cygwin* )
12189 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
12190 ;;
12191 * ) # otherwise, assume *nix
12192 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
12193 ;;
12194 esac
12195 ;;
12196 *-*-cygwin* )
12197 case $build in
12198 *-*-mingw* ) # actually msys
12199 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
12200 ;;
12201 *-*-cygwin* )
12202 lt_cv_to_host_file_cmd=func_convert_file_noop
12203 ;;
12204 * ) # otherwise, assume *nix
12205 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
12206 ;;
12207 esac
12208 ;;
12209 * ) # unhandled hosts (and "normal" native builds)
12210 lt_cv_to_host_file_cmd=func_convert_file_noop
12211 ;;
12212 esac
12213
12214 fi
12215
12216 to_host_file_cmd=$lt_cv_to_host_file_cmd
12217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
12218 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
12219
12220
12221
12222
12223
12224 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
12225 printf %s "checking how to convert $build file names to toolchain format... " >&6; }
12226 if test ${lt_cv_to_tool_file_cmd+y}
12227 then :
12228 printf %s "(cached) " >&6
12229 else $as_nop
12230 #assume ordinary cross tools, or native build.
12231 lt_cv_to_tool_file_cmd=func_convert_file_noop
12232 case $host in
12233 *-*-mingw* )
12234 case $build in
12235 *-*-mingw* ) # actually msys
12236 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
12237 ;;
12238 esac
12239 ;;
12240 esac
12241
12242 fi
12243
12244 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
12245 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
12246 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
12247
12248
12249
12250
12251
12252 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
12253 printf %s "checking for $LD option to reload object files... " >&6; }
12254 if test ${lt_cv_ld_reload_flag+y}
12255 then :
12256 printf %s "(cached) " >&6
12257 else $as_nop
12258 lt_cv_ld_reload_flag='-r'
12259 fi
12260 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
12261 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
12262 reload_flag=$lt_cv_ld_reload_flag
12263 case $reload_flag in
12264 "" | " "*) ;;
12265 *) reload_flag=" $reload_flag" ;;
12266 esac
12267 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12268 case $host_os in
12269 cygwin* | mingw* | pw32* | cegcc*)
12270 if test yes != "$GCC"; then
12271 reload_cmds=false
12272 fi
12273 ;;
12274 darwin*)
12275 if test yes = "$GCC"; then
12276 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
12277 else
12278 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12279 fi
12280 ;;
12281 esac
12282
12283
12284
12285
12286
12287
12288
12289
12290
12291 if test -n "$ac_tool_prefix"; then
12292 # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args.
12293 set dummy ${ac_tool_prefix}file; ac_word=$2
12294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12295 printf %s "checking for $ac_word... " >&6; }
12296 if test ${ac_cv_prog_FILECMD+y}
12297 then :
12298 printf %s "(cached) " >&6
12299 else $as_nop
12300 if test -n "$FILECMD"; then
12301 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
12302 else
12303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12304 for as_dir in $PATH
12305 do
12306 IFS=$as_save_IFS
12307 case $as_dir in #(((
12308 '') as_dir=./ ;;
12309 */) ;;
12310 *) as_dir=$as_dir/ ;;
12311 esac
12312 for ac_exec_ext in '' $ac_executable_extensions; do
12313 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12314 ac_cv_prog_FILECMD="${ac_tool_prefix}file"
12315 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12316 break 2
12317 fi
12318 done
12319 done
12320 IFS=$as_save_IFS
12321
12322 fi
12323 fi
12324 FILECMD=$ac_cv_prog_FILECMD
12325 if test -n "$FILECMD"; then
12326 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
12327 printf "%s\n" "$FILECMD" >&6; }
12328 else
12329 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12330 printf "%s\n" "no" >&6; }
12331 fi
12332
12333
12334 fi
12335 if test -z "$ac_cv_prog_FILECMD"; then
12336 ac_ct_FILECMD=$FILECMD
12337 # Extract the first word of "file", so it can be a program name with args.
12338 set dummy file; ac_word=$2
12339 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12340 printf %s "checking for $ac_word... " >&6; }
12341 if test ${ac_cv_prog_ac_ct_FILECMD+y}
12342 then :
12343 printf %s "(cached) " >&6
12344 else $as_nop
12345 if test -n "$ac_ct_FILECMD"; then
12346 ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test.
12347 else
12348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12349 for as_dir in $PATH
12350 do
12351 IFS=$as_save_IFS
12352 case $as_dir in #(((
12353 '') as_dir=./ ;;
12354 */) ;;
12355 *) as_dir=$as_dir/ ;;
12356 esac
12357 for ac_exec_ext in '' $ac_executable_extensions; do
12358 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12359 ac_cv_prog_ac_ct_FILECMD="file"
12360 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12361 break 2
12362 fi
12363 done
12364 done
12365 IFS=$as_save_IFS
12366
12367 fi
12368 fi
12369 ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD
12370 if test -n "$ac_ct_FILECMD"; then
12371 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5
12372 printf "%s\n" "$ac_ct_FILECMD" >&6; }
12373 else
12374 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12375 printf "%s\n" "no" >&6; }
12376 fi
12377
12378 if test "x$ac_ct_FILECMD" = x; then
12379 FILECMD=":"
12380 else
12381 case $cross_compiling:$ac_tool_warned in
12382 yes:)
12383 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12384 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12385 ac_tool_warned=yes ;;
12386 esac
12387 FILECMD=$ac_ct_FILECMD
12388 fi
12389 else
12390 FILECMD="$ac_cv_prog_FILECMD"
12391 fi
12392
12393
12394
12395
12396
12397
12398
12399 if test -n "$ac_tool_prefix"; then
12400 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
12401 set dummy ${ac_tool_prefix}objdump; ac_word=$2
12402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12403 printf %s "checking for $ac_word... " >&6; }
12404 if test ${ac_cv_prog_OBJDUMP+y}
12405 then :
12406 printf %s "(cached) " >&6
12407 else $as_nop
12408 if test -n "$OBJDUMP"; then
12409 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12410 else
12411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12412 for as_dir in $PATH
12413 do
12414 IFS=$as_save_IFS
12415 case $as_dir in #(((
12416 '') as_dir=./ ;;
12417 */) ;;
12418 *) as_dir=$as_dir/ ;;
12419 esac
12420 for ac_exec_ext in '' $ac_executable_extensions; do
12421 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12422 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
12423 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12424 break 2
12425 fi
12426 done
12427 done
12428 IFS=$as_save_IFS
12429
12430 fi
12431 fi
12432 OBJDUMP=$ac_cv_prog_OBJDUMP
12433 if test -n "$OBJDUMP"; then
12434 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12435 printf "%s\n" "$OBJDUMP" >&6; }
12436 else
12437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12438 printf "%s\n" "no" >&6; }
12439 fi
12440
12441
12442 fi
12443 if test -z "$ac_cv_prog_OBJDUMP"; then
12444 ac_ct_OBJDUMP=$OBJDUMP
12445 # Extract the first word of "objdump", so it can be a program name with args.
12446 set dummy objdump; ac_word=$2
12447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12448 printf %s "checking for $ac_word... " >&6; }
12449 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
12450 then :
12451 printf %s "(cached) " >&6
12452 else $as_nop
12453 if test -n "$ac_ct_OBJDUMP"; then
12454 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
12455 else
12456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12457 for as_dir in $PATH
12458 do
12459 IFS=$as_save_IFS
12460 case $as_dir in #(((
12461 '') as_dir=./ ;;
12462 */) ;;
12463 *) as_dir=$as_dir/ ;;
12464 esac
12465 for ac_exec_ext in '' $ac_executable_extensions; do
12466 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12467 ac_cv_prog_ac_ct_OBJDUMP="objdump"
12468 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12469 break 2
12470 fi
12471 done
12472 done
12473 IFS=$as_save_IFS
12474
12475 fi
12476 fi
12477 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
12478 if test -n "$ac_ct_OBJDUMP"; then
12479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
12480 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
12481 else
12482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12483 printf "%s\n" "no" >&6; }
12484 fi
12485
12486 if test "x$ac_ct_OBJDUMP" = x; then
12487 OBJDUMP="false"
12488 else
12489 case $cross_compiling:$ac_tool_warned in
12490 yes:)
12491 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12492 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12493 ac_tool_warned=yes ;;
12494 esac
12495 OBJDUMP=$ac_ct_OBJDUMP
12496 fi
12497 else
12498 OBJDUMP="$ac_cv_prog_OBJDUMP"
12499 fi
12500
12501 test -z "$OBJDUMP" && OBJDUMP=objdump
12502
12503
12504
12505
12506
12507
12508
12509
12510
12511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
12512 printf %s "checking how to recognize dependent libraries... " >&6; }
12513 if test ${lt_cv_deplibs_check_method+y}
12514 then :
12515 printf %s "(cached) " >&6
12516 else $as_nop
12517 lt_cv_file_magic_cmd='$MAGIC_CMD'
12518 lt_cv_file_magic_test_file=
12519 lt_cv_deplibs_check_method='unknown'
12520 # Need to set the preceding variable on all platforms that support
12521 # interlibrary dependencies.
12522 # 'none' -- dependencies not supported.
12523 # 'unknown' -- same as none, but documents that we really don't know.
12524 # 'pass_all' -- all dependencies passed with no checks.
12525 # 'test_compile' -- check by making test program.
12526 # 'file_magic [[regex]]' -- check by looking for files in library path
12527 # that responds to the $file_magic_cmd with a given extended regex.
12528 # If you have 'file' or equivalent on your system and you're not sure
12529 # whether 'pass_all' will *always* work, you probably want this one.
12530
12531 case $host_os in
12532 aix[4-9]*)
12533 lt_cv_deplibs_check_method=pass_all
12534 ;;
12535
12536 beos*)
12537 lt_cv_deplibs_check_method=pass_all
12538 ;;
12539
12540 bsdi[45]*)
12541 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12542 lt_cv_file_magic_cmd='$FILECMD -L'
12543 lt_cv_file_magic_test_file=/shlib/libc.so
12544 ;;
12545
12546 cygwin*)
12547 # func_win32_libid is a shell function defined in ltmain.sh
12548 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12549 lt_cv_file_magic_cmd='func_win32_libid'
12550 ;;
12551
12552 mingw* | pw32*)
12553 # Base MSYS/MinGW do not provide the 'file' command needed by
12554 # func_win32_libid shell function, so use a weaker test based on 'objdump',
12555 # unless we find 'file', for example because we are cross-compiling.
12556 if ( file / ) >/dev/null 2>&1; then
12557 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12558 lt_cv_file_magic_cmd='func_win32_libid'
12559 else
12560 # Keep this pattern in sync with the one in func_win32_libid.
12561 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
12562 lt_cv_file_magic_cmd='$OBJDUMP -f'
12563 fi
12564 ;;
12565
12566 cegcc*)
12567 # use the weaker test based on 'objdump'. See mingw*.
12568 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
12569 lt_cv_file_magic_cmd='$OBJDUMP -f'
12570 ;;
12571
12572 darwin* | rhapsody*)
12573 lt_cv_deplibs_check_method=pass_all
12574 ;;
12575
12576 freebsd* | dragonfly* | midnightbsd*)
12577 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12578 case $host_cpu in
12579 i*86 )
12580 # Not sure whether the presence of OpenBSD here was a mistake.
12581 # Let's accept both of them until this is cleared up.
12582 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12583 lt_cv_file_magic_cmd=$FILECMD
12584 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12585 ;;
12586 esac
12587 else
12588 lt_cv_deplibs_check_method=pass_all
12589 fi
12590 ;;
12591
12592 haiku*)
12593 lt_cv_deplibs_check_method=pass_all
12594 ;;
12595
12596 hpux10.20* | hpux11*)
12597 lt_cv_file_magic_cmd=$FILECMD
12598 case $host_cpu in
12599 ia64*)
12600 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12601 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12602 ;;
12603 hppa*64*)
12604 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]'
12605 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12606 ;;
12607 *)
12608 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
12609 lt_cv_file_magic_test_file=/usr/lib/libc.sl
12610 ;;
12611 esac
12612 ;;
12613
12614 interix[3-9]*)
12615 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12616 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12617 ;;
12618
12619 irix5* | irix6* | nonstopux*)
12620 case $LD in
12621 *-32|*"-32 ") libmagic=32-bit;;
12622 *-n32|*"-n32 ") libmagic=N32;;
12623 *-64|*"-64 ") libmagic=64-bit;;
12624 *) libmagic=never-match;;
12625 esac
12626 lt_cv_deplibs_check_method=pass_all
12627 ;;
12628
12629 # This must be glibc/ELF.
12630 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12631 lt_cv_deplibs_check_method=pass_all
12632 ;;
12633
12634 netbsd*)
12635 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12636 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12637 else
12638 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12639 fi
12640 ;;
12641
12642 newos6*)
12643 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12644 lt_cv_file_magic_cmd=$FILECMD
12645 lt_cv_file_magic_test_file=/usr/lib/libnls.so
12646 ;;
12647
12648 *nto* | *qnx*)
12649 lt_cv_deplibs_check_method=pass_all
12650 ;;
12651
12652 openbsd* | bitrig*)
12653 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12654 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12655 else
12656 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12657 fi
12658 ;;
12659
12660 osf3* | osf4* | osf5*)
12661 lt_cv_deplibs_check_method=pass_all
12662 ;;
12663
12664 rdos*)
12665 lt_cv_deplibs_check_method=pass_all
12666 ;;
12667
12668 solaris*)
12669 lt_cv_deplibs_check_method=pass_all
12670 ;;
12671
12672 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12673 lt_cv_deplibs_check_method=pass_all
12674 ;;
12675
12676 sysv4 | sysv4.3*)
12677 case $host_vendor in
12678 motorola)
12679 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]'
12680 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12681 ;;
12682 ncr)
12683 lt_cv_deplibs_check_method=pass_all
12684 ;;
12685 sequent)
12686 lt_cv_file_magic_cmd='/bin/file'
12687 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12688 ;;
12689 sni)
12690 lt_cv_file_magic_cmd='/bin/file'
12691 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12692 lt_cv_file_magic_test_file=/lib/libc.so
12693 ;;
12694 siemens)
12695 lt_cv_deplibs_check_method=pass_all
12696 ;;
12697 pc)
12698 lt_cv_deplibs_check_method=pass_all
12699 ;;
12700 esac
12701 ;;
12702
12703 tpf*)
12704 lt_cv_deplibs_check_method=pass_all
12705 ;;
12706 os2*)
12707 lt_cv_deplibs_check_method=pass_all
12708 ;;
12709 esac
12710
12711 fi
12712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
12713 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
12714
12715 file_magic_glob=
12716 want_nocaseglob=no
12717 if test "$build" = "$host"; then
12718 case $host_os in
12719 mingw* | pw32*)
12720 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
12721 want_nocaseglob=yes
12722 else
12723 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
12724 fi
12725 ;;
12726 esac
12727 fi
12728
12729 file_magic_cmd=$lt_cv_file_magic_cmd
12730 deplibs_check_method=$lt_cv_deplibs_check_method
12731 test -z "$deplibs_check_method" && deplibs_check_method=unknown
12732
12733
12734
12735
12736
12737
12738
12739
12740
12741
12742
12743
12744
12745
12746
12747
12748
12749
12750
12751
12752
12753
12754 if test -n "$ac_tool_prefix"; then
12755 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
12756 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
12757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12758 printf %s "checking for $ac_word... " >&6; }
12759 if test ${ac_cv_prog_DLLTOOL+y}
12760 then :
12761 printf %s "(cached) " >&6
12762 else $as_nop
12763 if test -n "$DLLTOOL"; then
12764 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
12765 else
12766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12767 for as_dir in $PATH
12768 do
12769 IFS=$as_save_IFS
12770 case $as_dir in #(((
12771 '') as_dir=./ ;;
12772 */) ;;
12773 *) as_dir=$as_dir/ ;;
12774 esac
12775 for ac_exec_ext in '' $ac_executable_extensions; do
12776 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12777 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
12778 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12779 break 2
12780 fi
12781 done
12782 done
12783 IFS=$as_save_IFS
12784
12785 fi
12786 fi
12787 DLLTOOL=$ac_cv_prog_DLLTOOL
12788 if test -n "$DLLTOOL"; then
12789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
12790 printf "%s\n" "$DLLTOOL" >&6; }
12791 else
12792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12793 printf "%s\n" "no" >&6; }
12794 fi
12795
12796
12797 fi
12798 if test -z "$ac_cv_prog_DLLTOOL"; then
12799 ac_ct_DLLTOOL=$DLLTOOL
12800 # Extract the first word of "dlltool", so it can be a program name with args.
12801 set dummy dlltool; ac_word=$2
12802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12803 printf %s "checking for $ac_word... " >&6; }
12804 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
12805 then :
12806 printf %s "(cached) " >&6
12807 else $as_nop
12808 if test -n "$ac_ct_DLLTOOL"; then
12809 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
12810 else
12811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12812 for as_dir in $PATH
12813 do
12814 IFS=$as_save_IFS
12815 case $as_dir in #(((
12816 '') as_dir=./ ;;
12817 */) ;;
12818 *) as_dir=$as_dir/ ;;
12819 esac
12820 for ac_exec_ext in '' $ac_executable_extensions; do
12821 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12822 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
12823 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12824 break 2
12825 fi
12826 done
12827 done
12828 IFS=$as_save_IFS
12829
12830 fi
12831 fi
12832 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
12833 if test -n "$ac_ct_DLLTOOL"; then
12834 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
12835 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
12836 else
12837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12838 printf "%s\n" "no" >&6; }
12839 fi
12840
12841 if test "x$ac_ct_DLLTOOL" = x; then
12842 DLLTOOL="false"
12843 else
12844 case $cross_compiling:$ac_tool_warned in
12845 yes:)
12846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12847 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12848 ac_tool_warned=yes ;;
12849 esac
12850 DLLTOOL=$ac_ct_DLLTOOL
12851 fi
12852 else
12853 DLLTOOL="$ac_cv_prog_DLLTOOL"
12854 fi
12855
12856 test -z "$DLLTOOL" && DLLTOOL=dlltool
12857
12858
12859
12860
12861
12862
12863
12864
12865
12866
12867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
12868 printf %s "checking how to associate runtime and link libraries... " >&6; }
12869 if test ${lt_cv_sharedlib_from_linklib_cmd+y}
12870 then :
12871 printf %s "(cached) " >&6
12872 else $as_nop
12873 lt_cv_sharedlib_from_linklib_cmd='unknown'
12874
12875 case $host_os in
12876 cygwin* | mingw* | pw32* | cegcc*)
12877 # two different shell functions defined in ltmain.sh;
12878 # decide which one to use based on capabilities of $DLLTOOL
12879 case `$DLLTOOL --help 2>&1` in
12880 *--identify-strict*)
12881 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
12882 ;;
12883 *)
12884 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
12885 ;;
12886 esac
12887 ;;
12888 *)
12889 # fallback: assume linklib IS sharedlib
12890 lt_cv_sharedlib_from_linklib_cmd=$ECHO
12891 ;;
12892 esac
12893
12894 fi
12895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
12896 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
12897 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
12898 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
12899
12900
12901
12902
12903
12904
12905
12906 if test -n "$ac_tool_prefix"; then
12907 for ac_prog in ar
12908 do
12909 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12910 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12912 printf %s "checking for $ac_word... " >&6; }
12913 if test ${ac_cv_prog_AR+y}
12914 then :
12915 printf %s "(cached) " >&6
12916 else $as_nop
12917 if test -n "$AR"; then
12918 ac_cv_prog_AR="$AR" # Let the user override the test.
12919 else
12920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12921 for as_dir in $PATH
12922 do
12923 IFS=$as_save_IFS
12924 case $as_dir in #(((
12925 '') as_dir=./ ;;
12926 */) ;;
12927 *) as_dir=$as_dir/ ;;
12928 esac
12929 for ac_exec_ext in '' $ac_executable_extensions; do
12930 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12931 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
12932 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12933 break 2
12934 fi
12935 done
12936 done
12937 IFS=$as_save_IFS
12938
12939 fi
12940 fi
12941 AR=$ac_cv_prog_AR
12942 if test -n "$AR"; then
12943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
12944 printf "%s\n" "$AR" >&6; }
12945 else
12946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12947 printf "%s\n" "no" >&6; }
12948 fi
12949
12950
12951 test -n "$AR" && break
12952 done
12953 fi
12954 if test -z "$AR"; then
12955 ac_ct_AR=$AR
12956 for ac_prog in ar
12957 do
12958 # Extract the first word of "$ac_prog", so it can be a program name with args.
12959 set dummy $ac_prog; ac_word=$2
12960 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12961 printf %s "checking for $ac_word... " >&6; }
12962 if test ${ac_cv_prog_ac_ct_AR+y}
12963 then :
12964 printf %s "(cached) " >&6
12965 else $as_nop
12966 if test -n "$ac_ct_AR"; then
12967 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
12968 else
12969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12970 for as_dir in $PATH
12971 do
12972 IFS=$as_save_IFS
12973 case $as_dir in #(((
12974 '') as_dir=./ ;;
12975 */) ;;
12976 *) as_dir=$as_dir/ ;;
12977 esac
12978 for ac_exec_ext in '' $ac_executable_extensions; do
12979 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12980 ac_cv_prog_ac_ct_AR="$ac_prog"
12981 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12982 break 2
12983 fi
12984 done
12985 done
12986 IFS=$as_save_IFS
12987
12988 fi
12989 fi
12990 ac_ct_AR=$ac_cv_prog_ac_ct_AR
12991 if test -n "$ac_ct_AR"; then
12992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
12993 printf "%s\n" "$ac_ct_AR" >&6; }
12994 else
12995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12996 printf "%s\n" "no" >&6; }
12997 fi
12998
12999
13000 test -n "$ac_ct_AR" && break
13001 done
13002
13003 if test "x$ac_ct_AR" = x; then
13004 AR="false"
13005 else
13006 case $cross_compiling:$ac_tool_warned in
13007 yes:)
13008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13009 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13010 ac_tool_warned=yes ;;
13011 esac
13012 AR=$ac_ct_AR
13013 fi
13014 fi
13015
13016 : ${AR=ar}
13017
13018
13019
13020
13021
13022
13023 # Use ARFLAGS variable as AR's operation code to sync the variable naming with
13024 # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
13025 # higher priority because thats what people were doing historically (setting
13026 # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS
13027 # variable obsoleted/removed.
13028
13029 test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
13030 lt_ar_flags=$AR_FLAGS
13031
13032
13033
13034
13035
13036
13037 # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override
13038 # by AR_FLAGS because that was never working and AR_FLAGS is about to die.
13039
13040
13041
13042
13043
13044
13045 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
13046 printf %s "checking for archiver @FILE support... " >&6; }
13047 if test ${lt_cv_ar_at_file+y}
13048 then :
13049 printf %s "(cached) " >&6
13050 else $as_nop
13051 lt_cv_ar_at_file=no
13052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13053 /* end confdefs.h. */
13054
13055 int
13056 main (void)
13057 {
13058
13059 ;
13060 return 0;
13061 }
13062 _ACEOF
13063 if ac_fn_c_try_compile "$LINENO"
13064 then :
13065 echo conftest.$ac_objext > conftest.lst
13066 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
13067 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
13068 (eval $lt_ar_try) 2>&5
13069 ac_status=$?
13070 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13071 test $ac_status = 0; }
13072 if test 0 -eq "$ac_status"; then
13073 # Ensure the archiver fails upon bogus file names.
13074 rm -f conftest.$ac_objext libconftest.a
13075 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
13076 (eval $lt_ar_try) 2>&5
13077 ac_status=$?
13078 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13079 test $ac_status = 0; }
13080 if test 0 -ne "$ac_status"; then
13081 lt_cv_ar_at_file=@
13082 fi
13083 fi
13084 rm -f conftest.* libconftest.a
13085
13086 fi
13087 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13088
13089 fi
13090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
13091 printf "%s\n" "$lt_cv_ar_at_file" >&6; }
13092
13093 if test no = "$lt_cv_ar_at_file"; then
13094 archiver_list_spec=
13095 else
13096 archiver_list_spec=$lt_cv_ar_at_file
13097 fi
13098
13099
13100
13101
13102
13103
13104
13105 if test -n "$ac_tool_prefix"; then
13106 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13107 set dummy ${ac_tool_prefix}strip; ac_word=$2
13108 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13109 printf %s "checking for $ac_word... " >&6; }
13110 if test ${ac_cv_prog_STRIP+y}
13111 then :
13112 printf %s "(cached) " >&6
13113 else $as_nop
13114 if test -n "$STRIP"; then
13115 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13116 else
13117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13118 for as_dir in $PATH
13119 do
13120 IFS=$as_save_IFS
13121 case $as_dir in #(((
13122 '') as_dir=./ ;;
13123 */) ;;
13124 *) as_dir=$as_dir/ ;;
13125 esac
13126 for ac_exec_ext in '' $ac_executable_extensions; do
13127 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13128 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
13129 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13130 break 2
13131 fi
13132 done
13133 done
13134 IFS=$as_save_IFS
13135
13136 fi
13137 fi
13138 STRIP=$ac_cv_prog_STRIP
13139 if test -n "$STRIP"; then
13140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
13141 printf "%s\n" "$STRIP" >&6; }
13142 else
13143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13144 printf "%s\n" "no" >&6; }
13145 fi
13146
13147
13148 fi
13149 if test -z "$ac_cv_prog_STRIP"; then
13150 ac_ct_STRIP=$STRIP
13151 # Extract the first word of "strip", so it can be a program name with args.
13152 set dummy strip; ac_word=$2
13153 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13154 printf %s "checking for $ac_word... " >&6; }
13155 if test ${ac_cv_prog_ac_ct_STRIP+y}
13156 then :
13157 printf %s "(cached) " >&6
13158 else $as_nop
13159 if test -n "$ac_ct_STRIP"; then
13160 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13161 else
13162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13163 for as_dir in $PATH
13164 do
13165 IFS=$as_save_IFS
13166 case $as_dir in #(((
13167 '') as_dir=./ ;;
13168 */) ;;
13169 *) as_dir=$as_dir/ ;;
13170 esac
13171 for ac_exec_ext in '' $ac_executable_extensions; do
13172 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13173 ac_cv_prog_ac_ct_STRIP="strip"
13174 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13175 break 2
13176 fi
13177 done
13178 done
13179 IFS=$as_save_IFS
13180
13181 fi
13182 fi
13183 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13184 if test -n "$ac_ct_STRIP"; then
13185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
13186 printf "%s\n" "$ac_ct_STRIP" >&6; }
13187 else
13188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13189 printf "%s\n" "no" >&6; }
13190 fi
13191
13192 if test "x$ac_ct_STRIP" = x; then
13193 STRIP=":"
13194 else
13195 case $cross_compiling:$ac_tool_warned in
13196 yes:)
13197 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13198 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13199 ac_tool_warned=yes ;;
13200 esac
13201 STRIP=$ac_ct_STRIP
13202 fi
13203 else
13204 STRIP="$ac_cv_prog_STRIP"
13205 fi
13206
13207 test -z "$STRIP" && STRIP=:
13208
13209
13210
13211
13212
13213
13214 if test -n "$ac_tool_prefix"; then
13215 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13216 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13218 printf %s "checking for $ac_word... " >&6; }
13219 if test ${ac_cv_prog_RANLIB+y}
13220 then :
13221 printf %s "(cached) " >&6
13222 else $as_nop
13223 if test -n "$RANLIB"; then
13224 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13225 else
13226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13227 for as_dir in $PATH
13228 do
13229 IFS=$as_save_IFS
13230 case $as_dir in #(((
13231 '') as_dir=./ ;;
13232 */) ;;
13233 *) as_dir=$as_dir/ ;;
13234 esac
13235 for ac_exec_ext in '' $ac_executable_extensions; do
13236 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13237 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13238 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13239 break 2
13240 fi
13241 done
13242 done
13243 IFS=$as_save_IFS
13244
13245 fi
13246 fi
13247 RANLIB=$ac_cv_prog_RANLIB
13248 if test -n "$RANLIB"; then
13249 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
13250 printf "%s\n" "$RANLIB" >&6; }
13251 else
13252 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13253 printf "%s\n" "no" >&6; }
13254 fi
13255
13256
13257 fi
13258 if test -z "$ac_cv_prog_RANLIB"; then
13259 ac_ct_RANLIB=$RANLIB
13260 # Extract the first word of "ranlib", so it can be a program name with args.
13261 set dummy ranlib; ac_word=$2
13262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13263 printf %s "checking for $ac_word... " >&6; }
13264 if test ${ac_cv_prog_ac_ct_RANLIB+y}
13265 then :
13266 printf %s "(cached) " >&6
13267 else $as_nop
13268 if test -n "$ac_ct_RANLIB"; then
13269 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13270 else
13271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13272 for as_dir in $PATH
13273 do
13274 IFS=$as_save_IFS
13275 case $as_dir in #(((
13276 '') as_dir=./ ;;
13277 */) ;;
13278 *) as_dir=$as_dir/ ;;
13279 esac
13280 for ac_exec_ext in '' $ac_executable_extensions; do
13281 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13282 ac_cv_prog_ac_ct_RANLIB="ranlib"
13283 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13284 break 2
13285 fi
13286 done
13287 done
13288 IFS=$as_save_IFS
13289
13290 fi
13291 fi
13292 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13293 if test -n "$ac_ct_RANLIB"; then
13294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
13295 printf "%s\n" "$ac_ct_RANLIB" >&6; }
13296 else
13297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13298 printf "%s\n" "no" >&6; }
13299 fi
13300
13301 if test "x$ac_ct_RANLIB" = x; then
13302 RANLIB=":"
13303 else
13304 case $cross_compiling:$ac_tool_warned in
13305 yes:)
13306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13307 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13308 ac_tool_warned=yes ;;
13309 esac
13310 RANLIB=$ac_ct_RANLIB
13311 fi
13312 else
13313 RANLIB="$ac_cv_prog_RANLIB"
13314 fi
13315
13316 test -z "$RANLIB" && RANLIB=:
13317
13318
13319
13320
13321
13322
13323 # Determine commands to create old-style static archives.
13324 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
13325 old_postinstall_cmds='chmod 644 $oldlib'
13326 old_postuninstall_cmds=
13327
13328 if test -n "$RANLIB"; then
13329 case $host_os in
13330 bitrig* | openbsd*)
13331 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
13332 ;;
13333 *)
13334 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
13335 ;;
13336 esac
13337 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
13338 fi
13339
13340 case $host_os in
13341 darwin*)
13342 lock_old_archive_extraction=yes ;;
13343 *)
13344 lock_old_archive_extraction=no ;;
13345 esac
13346
13347
13348
13349
13350
13351
13352
13353
13354
13355
13356
13357
13358
13359
13360
13361
13362
13363
13364
13365
13366
13367
13368
13369
13370
13371
13372
13373
13374
13375
13376
13377
13378
13379
13380
13381
13382
13383
13384
13385 # If no C compiler was specified, use CC.
13386 LTCC=${LTCC-"$CC"}
13387
13388 # If no C compiler flags were specified, use CFLAGS.
13389 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13390
13391 # Allow CC to be a program name with arguments.
13392 compiler=$CC
13393
13394
13395 # Check for command to grab the raw symbol name followed by C symbol from nm.
13396 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
13397 printf %s "checking command to parse $NM output from $compiler object... " >&6; }
13398 if test ${lt_cv_sys_global_symbol_pipe+y}
13399 then :
13400 printf %s "(cached) " >&6
13401 else $as_nop
13402
13403 # These are sane defaults that work on at least a few old systems.
13404 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
13405
13406 # Character class describing NM global symbol codes.
13407 symcode='[BCDEGRST]'
13408
13409 # Regexp to match symbols that can be accessed directly from C.
13410 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13411
13412 # Define system-specific variables.
13413 case $host_os in
13414 aix*)
13415 symcode='[BCDT]'
13416 ;;
13417 cygwin* | mingw* | pw32* | cegcc*)
13418 symcode='[ABCDGISTW]'
13419 ;;
13420 hpux*)
13421 if test ia64 = "$host_cpu"; then
13422 symcode='[ABCDEGRST]'
13423 fi
13424 ;;
13425 irix* | nonstopux*)
13426 symcode='[BCDEGRST]'
13427 ;;
13428 osf*)
13429 symcode='[BCDEGQRST]'
13430 ;;
13431 solaris*)
13432 symcode='[BDRT]'
13433 ;;
13434 sco3.2v5*)
13435 symcode='[DT]'
13436 ;;
13437 sysv4.2uw2*)
13438 symcode='[DT]'
13439 ;;
13440 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13441 symcode='[ABDT]'
13442 ;;
13443 sysv4)
13444 symcode='[DFNSTU]'
13445 ;;
13446 esac
13447
13448 # If we're using GNU nm, then use its standard symbol codes.
13449 case `$NM -V 2>&1` in
13450 *GNU* | *'with BFD'*)
13451 symcode='[ABCDGIRSTW]' ;;
13452 esac
13453
13454 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
13455 # Gets list of data symbols to import.
13456 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
13457 # Adjust the below global symbol transforms to fixup imported variables.
13458 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
13459 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
13460 lt_c_name_lib_hook="\
13461 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
13462 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
13463 else
13464 # Disable hooks by default.
13465 lt_cv_sys_global_symbol_to_import=
13466 lt_cdecl_hook=
13467 lt_c_name_hook=
13468 lt_c_name_lib_hook=
13469 fi
13470
13471 # Transform an extracted symbol line into a proper C declaration.
13472 # Some systems (esp. on ia64) link data and code symbols differently,
13473 # so use this general approach.
13474 lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
13475 $lt_cdecl_hook\
13476 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
13477 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
13478
13479 # Transform an extracted symbol line into symbol name and symbol address
13480 lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
13481 $lt_c_name_hook\
13482 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
13483 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
13484
13485 # Transform an extracted symbol line into symbol name with lib prefix and
13486 # symbol address.
13487 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
13488 $lt_c_name_lib_hook\
13489 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
13490 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
13491 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
13492
13493 # Handle CRLF in mingw tool chain
13494 opt_cr=
13495 case $build_os in
13496 mingw*)
13497 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13498 ;;
13499 esac
13500
13501 # Try without a prefix underscore, then with it.
13502 for ac_symprfx in "" "_"; do
13503
13504 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13505 symxfrm="\\1 $ac_symprfx\\2 \\2"
13506
13507 # Write the raw and C identifiers.
13508 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
13509 # Fake it for dumpbin and say T for any non-static function,
13510 # D for any global variable and I for any imported variable.
13511 # Also find C++ and __fastcall symbols from MSVC++ or ICC,
13512 # which start with @ or ?.
13513 lt_cv_sys_global_symbol_pipe="$AWK '"\
13514 " {last_section=section; section=\$ 3};"\
13515 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
13516 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
13517 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
13518 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
13519 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
13520 " \$ 0!~/External *\|/{next};"\
13521 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
13522 " {if(hide[section]) next};"\
13523 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
13524 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
13525 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
13526 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
13527 " ' prfx=^$ac_symprfx"
13528 else
13529 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13530 fi
13531 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
13532
13533 # Check to see that the pipe works correctly.
13534 pipe_works=no
13535
13536 rm -f conftest*
13537 cat > conftest.$ac_ext <<_LT_EOF
13538 #ifdef __cplusplus
13539 extern "C" {
13540 #endif
13541 char nm_test_var;
13542 void nm_test_func(void);
13543 void nm_test_func(void){}
13544 #ifdef __cplusplus
13545 }
13546 #endif
13547 int main(){nm_test_var='a';nm_test_func();return(0);}
13548 _LT_EOF
13549
13550 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13551 (eval $ac_compile) 2>&5
13552 ac_status=$?
13553 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13554 test $ac_status = 0; }; then
13555 # Now try to grab the symbols.
13556 nlist=conftest.nm
13557 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
13558 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
13559 ac_status=$?
13560 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13561 test $ac_status = 0; } && test -s "$nlist"; then
13562 # Try sorting and uniquifying the output.
13563 if sort "$nlist" | uniq > "$nlist"T; then
13564 mv -f "$nlist"T "$nlist"
13565 else
13566 rm -f "$nlist"T
13567 fi
13568
13569 # Make sure that we snagged all the symbols we need.
13570 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
13571 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
13572 cat <<_LT_EOF > conftest.$ac_ext
13573 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
13574 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
13575 /* DATA imports from DLLs on WIN32 can't be const, because runtime
13576 relocations are performed -- see ld's documentation on pseudo-relocs. */
13577 # define LT_DLSYM_CONST
13578 #elif defined __osf__
13579 /* This system does not cope well with relocations in const data. */
13580 # define LT_DLSYM_CONST
13581 #else
13582 # define LT_DLSYM_CONST const
13583 #endif
13584
13585 #ifdef __cplusplus
13586 extern "C" {
13587 #endif
13588
13589 _LT_EOF
13590 # Now generate the symbol file.
13591 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
13592
13593 cat <<_LT_EOF >> conftest.$ac_ext
13594
13595 /* The mapping between symbol names and symbols. */
13596 LT_DLSYM_CONST struct {
13597 const char *name;
13598 void *address;
13599 }
13600 lt__PROGRAM__LTX_preloaded_symbols[] =
13601 {
13602 { "@PROGRAM@", (void *) 0 },
13603 _LT_EOF
13604 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
13605 cat <<\_LT_EOF >> conftest.$ac_ext
13606 {0, (void *) 0}
13607 };
13608
13609 /* This works around a problem in FreeBSD linker */
13610 #ifdef FREEBSD_WORKAROUND
13611 static const void *lt_preloaded_setup() {
13612 return lt__PROGRAM__LTX_preloaded_symbols;
13613 }
13614 #endif
13615
13616 #ifdef __cplusplus
13617 }
13618 #endif
13619 _LT_EOF
13620 # Now try linking the two files.
13621 mv conftest.$ac_objext conftstm.$ac_objext
13622 lt_globsym_save_LIBS=$LIBS
13623 lt_globsym_save_CFLAGS=$CFLAGS
13624 LIBS=conftstm.$ac_objext
13625 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13626 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13627 (eval $ac_link) 2>&5
13628 ac_status=$?
13629 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13630 test $ac_status = 0; } && test -s conftest$ac_exeext; then
13631 pipe_works=yes
13632 fi
13633 LIBS=$lt_globsym_save_LIBS
13634 CFLAGS=$lt_globsym_save_CFLAGS
13635 else
13636 echo "cannot find nm_test_func in $nlist" >&5
13637 fi
13638 else
13639 echo "cannot find nm_test_var in $nlist" >&5
13640 fi
13641 else
13642 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13643 fi
13644 else
13645 echo "$progname: failed program was:" >&5
13646 cat conftest.$ac_ext >&5
13647 fi
13648 rm -rf conftest* conftst*
13649
13650 # Do not use the global_symbol_pipe unless it works.
13651 if test yes = "$pipe_works"; then
13652 break
13653 else
13654 lt_cv_sys_global_symbol_pipe=
13655 fi
13656 done
13657
13658 fi
13659
13660 if test -z "$lt_cv_sys_global_symbol_pipe"; then
13661 lt_cv_sys_global_symbol_to_cdecl=
13662 fi
13663 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
13665 printf "%s\n" "failed" >&6; }
13666 else
13667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
13668 printf "%s\n" "ok" >&6; }
13669 fi
13670
13671 # Response file support.
13672 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
13673 nm_file_list_spec='@'
13674 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
13675 nm_file_list_spec='@'
13676 fi
13677
13678
13679
13680
13681
13682
13683
13684
13685
13686
13687
13688
13689
13690
13691
13692
13693
13694
13695
13696
13697
13698
13699
13700
13701
13702
13703
13704
13705
13706
13707
13708
13709
13710
13711
13712
13713
13714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
13715 printf %s "checking for sysroot... " >&6; }
13716
13717 # Check whether --with-sysroot was given.
13718 if test ${with_sysroot+y}
13719 then :
13720 withval=$with_sysroot;
13721 else $as_nop
13722 with_sysroot=no
13723 fi
13724
13725
13726 lt_sysroot=
13727 case $with_sysroot in #(
13728 yes)
13729 if test yes = "$GCC"; then
13730 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
13731 fi
13732 ;; #(
13733 /*)
13734 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
13735 ;; #(
13736 no|'')
13737 ;; #(
13738 *)
13739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
13740 printf "%s\n" "$with_sysroot" >&6; }
13741 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
13742 ;;
13743 esac
13744
13745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
13746 printf "%s\n" "${lt_sysroot:-no}" >&6; }
13747
13748
13749
13750
13751
13752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
13753 printf %s "checking for a working dd... " >&6; }
13754 if test ${ac_cv_path_lt_DD+y}
13755 then :
13756 printf %s "(cached) " >&6
13757 else $as_nop
13758 printf 0123456789abcdef0123456789abcdef >conftest.i
13759 cat conftest.i conftest.i >conftest2.i
13760 : ${lt_DD:=$DD}
13761 if test -z "$lt_DD"; then
13762 ac_path_lt_DD_found=false
13763 # Loop through the user's path and test for each of PROGNAME-LIST
13764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13765 for as_dir in $PATH
13766 do
13767 IFS=$as_save_IFS
13768 case $as_dir in #(((
13769 '') as_dir=./ ;;
13770 */) ;;
13771 *) as_dir=$as_dir/ ;;
13772 esac
13773 for ac_prog in dd
13774 do
13775 for ac_exec_ext in '' $ac_executable_extensions; do
13776 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
13777 as_fn_executable_p "$ac_path_lt_DD" || continue
13778 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
13779 cmp -s conftest.i conftest.out \
13780 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
13781 fi
13782 $ac_path_lt_DD_found && break 3
13783 done
13784 done
13785 done
13786 IFS=$as_save_IFS
13787 if test -z "$ac_cv_path_lt_DD"; then
13788 :
13789 fi
13790 else
13791 ac_cv_path_lt_DD=$lt_DD
13792 fi
13793
13794 rm -f conftest.i conftest2.i conftest.out
13795 fi
13796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
13797 printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
13798
13799
13800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
13801 printf %s "checking how to truncate binary pipes... " >&6; }
13802 if test ${lt_cv_truncate_bin+y}
13803 then :
13804 printf %s "(cached) " >&6
13805 else $as_nop
13806 printf 0123456789abcdef0123456789abcdef >conftest.i
13807 cat conftest.i conftest.i >conftest2.i
13808 lt_cv_truncate_bin=
13809 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
13810 cmp -s conftest.i conftest.out \
13811 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
13812 fi
13813 rm -f conftest.i conftest2.i conftest.out
13814 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
13815 fi
13816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
13817 printf "%s\n" "$lt_cv_truncate_bin" >&6; }
13818
13819
13820
13821
13822
13823
13824
13825 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
13826 func_cc_basename ()
13827 {
13828 for cc_temp in $*""; do
13829 case $cc_temp in
13830 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13831 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13832 \-*) ;;
13833 *) break;;
13834 esac
13835 done
13836 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13837 }
13838
13839 # Check whether --enable-libtool-lock was given.
13840 if test ${enable_libtool_lock+y}
13841 then :
13842 enableval=$enable_libtool_lock;
13843 fi
13844
13845 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
13846
13847 # Some flags need to be propagated to the compiler or linker for good
13848 # libtool support.
13849 case $host in
13850 ia64-*-hpux*)
13851 # Find out what ABI is being produced by ac_compile, and set mode
13852 # options accordingly.
13853 echo 'int i;' > conftest.$ac_ext
13854 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13855 (eval $ac_compile) 2>&5
13856 ac_status=$?
13857 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13858 test $ac_status = 0; }; then
13859 case `$FILECMD conftest.$ac_objext` in
13860 *ELF-32*)
13861 HPUX_IA64_MODE=32
13862 ;;
13863 *ELF-64*)
13864 HPUX_IA64_MODE=64
13865 ;;
13866 esac
13867 fi
13868 rm -rf conftest*
13869 ;;
13870 *-*-irix6*)
13871 # Find out what ABI is being produced by ac_compile, and set linker
13872 # options accordingly.
13873 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
13874 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13875 (eval $ac_compile) 2>&5
13876 ac_status=$?
13877 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13878 test $ac_status = 0; }; then
13879 if test yes = "$lt_cv_prog_gnu_ld"; then
13880 case `$FILECMD conftest.$ac_objext` in
13881 *32-bit*)
13882 LD="${LD-ld} -melf32bsmip"
13883 ;;
13884 *N32*)
13885 LD="${LD-ld} -melf32bmipn32"
13886 ;;
13887 *64-bit*)
13888 LD="${LD-ld} -melf64bmip"
13889 ;;
13890 esac
13891 else
13892 case `$FILECMD conftest.$ac_objext` in
13893 *32-bit*)
13894 LD="${LD-ld} -32"
13895 ;;
13896 *N32*)
13897 LD="${LD-ld} -n32"
13898 ;;
13899 *64-bit*)
13900 LD="${LD-ld} -64"
13901 ;;
13902 esac
13903 fi
13904 fi
13905 rm -rf conftest*
13906 ;;
13907
13908 mips64*-*linux*)
13909 # Find out what ABI is being produced by ac_compile, and set linker
13910 # options accordingly.
13911 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
13912 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13913 (eval $ac_compile) 2>&5
13914 ac_status=$?
13915 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13916 test $ac_status = 0; }; then
13917 emul=elf
13918 case `$FILECMD conftest.$ac_objext` in
13919 *32-bit*)
13920 emul="${emul}32"
13921 ;;
13922 *64-bit*)
13923 emul="${emul}64"
13924 ;;
13925 esac
13926 case `$FILECMD conftest.$ac_objext` in
13927 *MSB*)
13928 emul="${emul}btsmip"
13929 ;;
13930 *LSB*)
13931 emul="${emul}ltsmip"
13932 ;;
13933 esac
13934 case `$FILECMD conftest.$ac_objext` in
13935 *N32*)
13936 emul="${emul}n32"
13937 ;;
13938 esac
13939 LD="${LD-ld} -m $emul"
13940 fi
13941 rm -rf conftest*
13942 ;;
13943
13944 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
13945 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
13946 # Find out what ABI is being produced by ac_compile, and set linker
13947 # options accordingly. Note that the listed cases only cover the
13948 # situations where additional linker options are needed (such as when
13949 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
13950 # vice versa); the common cases where no linker options are needed do
13951 # not appear in the list.
13952 echo 'int i;' > conftest.$ac_ext
13953 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13954 (eval $ac_compile) 2>&5
13955 ac_status=$?
13956 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13957 test $ac_status = 0; }; then
13958 case `$FILECMD conftest.o` in
13959 *32-bit*)
13960 case $host in
13961 x86_64-*kfreebsd*-gnu)
13962 LD="${LD-ld} -m elf_i386_fbsd"
13963 ;;
13964 x86_64-*linux*)
13965 case `$FILECMD conftest.o` in
13966 *x86-64*)
13967 LD="${LD-ld} -m elf32_x86_64"
13968 ;;
13969 *)
13970 LD="${LD-ld} -m elf_i386"
13971 ;;
13972 esac
13973 ;;
13974 powerpc64le-*linux*)
13975 LD="${LD-ld} -m elf32lppclinux"
13976 ;;
13977 powerpc64-*linux*)
13978 LD="${LD-ld} -m elf32ppclinux"
13979 ;;
13980 s390x-*linux*)
13981 LD="${LD-ld} -m elf_s390"
13982 ;;
13983 sparc64-*linux*)
13984 LD="${LD-ld} -m elf32_sparc"
13985 ;;
13986 esac
13987 ;;
13988 *64-bit*)
13989 case $host in
13990 x86_64-*kfreebsd*-gnu)
13991 LD="${LD-ld} -m elf_x86_64_fbsd"
13992 ;;
13993 x86_64-*linux*)
13994 LD="${LD-ld} -m elf_x86_64"
13995 ;;
13996 powerpcle-*linux*)
13997 LD="${LD-ld} -m elf64lppc"
13998 ;;
13999 powerpc-*linux*)
14000 LD="${LD-ld} -m elf64ppc"
14001 ;;
14002 s390*-*linux*|s390*-*tpf*)
14003 LD="${LD-ld} -m elf64_s390"
14004 ;;
14005 sparc*-*linux*)
14006 LD="${LD-ld} -m elf64_sparc"
14007 ;;
14008 esac
14009 ;;
14010 esac
14011 fi
14012 rm -rf conftest*
14013 ;;
14014
14015 *-*-sco3.2v5*)
14016 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
14017 SAVE_CFLAGS=$CFLAGS
14018 CFLAGS="$CFLAGS -belf"
14019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
14020 printf %s "checking whether the C compiler needs -belf... " >&6; }
14021 if test ${lt_cv_cc_needs_belf+y}
14022 then :
14023 printf %s "(cached) " >&6
14024 else $as_nop
14025 ac_ext=c
14026 ac_cpp='$CPP $CPPFLAGS'
14027 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14028 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14029 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14030
14031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14032 /* end confdefs.h. */
14033
14034 int
14035 main (void)
14036 {
14037
14038 ;
14039 return 0;
14040 }
14041 _ACEOF
14042 if ac_fn_c_try_link "$LINENO"
14043 then :
14044 lt_cv_cc_needs_belf=yes
14045 else $as_nop
14046 lt_cv_cc_needs_belf=no
14047 fi
14048 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14049 conftest$ac_exeext conftest.$ac_ext
14050 ac_ext=c
14051 ac_cpp='$CPP $CPPFLAGS'
14052 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14053 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14054 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14055
14056 fi
14057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
14058 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
14059 if test yes != "$lt_cv_cc_needs_belf"; then
14060 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
14061 CFLAGS=$SAVE_CFLAGS
14062 fi
14063 ;;
14064 *-*solaris*)
14065 # Find out what ABI is being produced by ac_compile, and set linker
14066 # options accordingly.
14067 echo 'int i;' > conftest.$ac_ext
14068 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14069 (eval $ac_compile) 2>&5
14070 ac_status=$?
14071 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14072 test $ac_status = 0; }; then
14073 case `$FILECMD conftest.o` in
14074 *64-bit*)
14075 case $lt_cv_prog_gnu_ld in
14076 yes*)
14077 case $host in
14078 i?86-*-solaris*|x86_64-*-solaris*)
14079 LD="${LD-ld} -m elf_x86_64"
14080 ;;
14081 sparc*-*-solaris*)
14082 LD="${LD-ld} -m elf64_sparc"
14083 ;;
14084 esac
14085 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
14086 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
14087 LD=${LD-ld}_sol2
14088 fi
14089 ;;
14090 *)
14091 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
14092 LD="${LD-ld} -64"
14093 fi
14094 ;;
14095 esac
14096 ;;
14097 esac
14098 fi
14099 rm -rf conftest*
14100 ;;
14101 esac
14102
14103 need_locks=$enable_libtool_lock
14104
14105 if test -n "$ac_tool_prefix"; then
14106 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
14107 set dummy ${ac_tool_prefix}mt; ac_word=$2
14108 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14109 printf %s "checking for $ac_word... " >&6; }
14110 if test ${ac_cv_prog_MANIFEST_TOOL+y}
14111 then :
14112 printf %s "(cached) " >&6
14113 else $as_nop
14114 if test -n "$MANIFEST_TOOL"; then
14115 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
14116 else
14117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14118 for as_dir in $PATH
14119 do
14120 IFS=$as_save_IFS
14121 case $as_dir in #(((
14122 '') as_dir=./ ;;
14123 */) ;;
14124 *) as_dir=$as_dir/ ;;
14125 esac
14126 for ac_exec_ext in '' $ac_executable_extensions; do
14127 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14128 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
14129 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14130 break 2
14131 fi
14132 done
14133 done
14134 IFS=$as_save_IFS
14135
14136 fi
14137 fi
14138 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
14139 if test -n "$MANIFEST_TOOL"; then
14140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
14141 printf "%s\n" "$MANIFEST_TOOL" >&6; }
14142 else
14143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14144 printf "%s\n" "no" >&6; }
14145 fi
14146
14147
14148 fi
14149 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
14150 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
14151 # Extract the first word of "mt", so it can be a program name with args.
14152 set dummy mt; ac_word=$2
14153 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14154 printf %s "checking for $ac_word... " >&6; }
14155 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
14156 then :
14157 printf %s "(cached) " >&6
14158 else $as_nop
14159 if test -n "$ac_ct_MANIFEST_TOOL"; then
14160 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
14161 else
14162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14163 for as_dir in $PATH
14164 do
14165 IFS=$as_save_IFS
14166 case $as_dir in #(((
14167 '') as_dir=./ ;;
14168 */) ;;
14169 *) as_dir=$as_dir/ ;;
14170 esac
14171 for ac_exec_ext in '' $ac_executable_extensions; do
14172 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14173 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
14174 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14175 break 2
14176 fi
14177 done
14178 done
14179 IFS=$as_save_IFS
14180
14181 fi
14182 fi
14183 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
14184 if test -n "$ac_ct_MANIFEST_TOOL"; then
14185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
14186 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
14187 else
14188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14189 printf "%s\n" "no" >&6; }
14190 fi
14191
14192 if test "x$ac_ct_MANIFEST_TOOL" = x; then
14193 MANIFEST_TOOL=":"
14194 else
14195 case $cross_compiling:$ac_tool_warned in
14196 yes:)
14197 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14198 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14199 ac_tool_warned=yes ;;
14200 esac
14201 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
14202 fi
14203 else
14204 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
14205 fi
14206
14207 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
14208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
14209 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
14210 if test ${lt_cv_path_mainfest_tool+y}
14211 then :
14212 printf %s "(cached) " >&6
14213 else $as_nop
14214 lt_cv_path_mainfest_tool=no
14215 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
14216 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
14217 cat conftest.err >&5
14218 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
14219 lt_cv_path_mainfest_tool=yes
14220 fi
14221 rm -f conftest*
14222 fi
14223 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
14224 printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
14225 if test yes != "$lt_cv_path_mainfest_tool"; then
14226 MANIFEST_TOOL=:
14227 fi
14228
14229
14230
14231
14232
14233
14234 case $host_os in
14235 rhapsody* | darwin*)
14236 if test -n "$ac_tool_prefix"; then
14237 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
14238 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
14239 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14240 printf %s "checking for $ac_word... " >&6; }
14241 if test ${ac_cv_prog_DSYMUTIL+y}
14242 then :
14243 printf %s "(cached) " >&6
14244 else $as_nop
14245 if test -n "$DSYMUTIL"; then
14246 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
14247 else
14248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14249 for as_dir in $PATH
14250 do
14251 IFS=$as_save_IFS
14252 case $as_dir in #(((
14253 '') as_dir=./ ;;
14254 */) ;;
14255 *) as_dir=$as_dir/ ;;
14256 esac
14257 for ac_exec_ext in '' $ac_executable_extensions; do
14258 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14259 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
14260 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14261 break 2
14262 fi
14263 done
14264 done
14265 IFS=$as_save_IFS
14266
14267 fi
14268 fi
14269 DSYMUTIL=$ac_cv_prog_DSYMUTIL
14270 if test -n "$DSYMUTIL"; then
14271 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
14272 printf "%s\n" "$DSYMUTIL" >&6; }
14273 else
14274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14275 printf "%s\n" "no" >&6; }
14276 fi
14277
14278
14279 fi
14280 if test -z "$ac_cv_prog_DSYMUTIL"; then
14281 ac_ct_DSYMUTIL=$DSYMUTIL
14282 # Extract the first word of "dsymutil", so it can be a program name with args.
14283 set dummy dsymutil; ac_word=$2
14284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14285 printf %s "checking for $ac_word... " >&6; }
14286 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
14287 then :
14288 printf %s "(cached) " >&6
14289 else $as_nop
14290 if test -n "$ac_ct_DSYMUTIL"; then
14291 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
14292 else
14293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14294 for as_dir in $PATH
14295 do
14296 IFS=$as_save_IFS
14297 case $as_dir in #(((
14298 '') as_dir=./ ;;
14299 */) ;;
14300 *) as_dir=$as_dir/ ;;
14301 esac
14302 for ac_exec_ext in '' $ac_executable_extensions; do
14303 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14304 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
14305 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14306 break 2
14307 fi
14308 done
14309 done
14310 IFS=$as_save_IFS
14311
14312 fi
14313 fi
14314 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
14315 if test -n "$ac_ct_DSYMUTIL"; then
14316 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
14317 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
14318 else
14319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14320 printf "%s\n" "no" >&6; }
14321 fi
14322
14323 if test "x$ac_ct_DSYMUTIL" = x; then
14324 DSYMUTIL=":"
14325 else
14326 case $cross_compiling:$ac_tool_warned in
14327 yes:)
14328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14329 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14330 ac_tool_warned=yes ;;
14331 esac
14332 DSYMUTIL=$ac_ct_DSYMUTIL
14333 fi
14334 else
14335 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
14336 fi
14337
14338 if test -n "$ac_tool_prefix"; then
14339 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
14340 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
14341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14342 printf %s "checking for $ac_word... " >&6; }
14343 if test ${ac_cv_prog_NMEDIT+y}
14344 then :
14345 printf %s "(cached) " >&6
14346 else $as_nop
14347 if test -n "$NMEDIT"; then
14348 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
14349 else
14350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14351 for as_dir in $PATH
14352 do
14353 IFS=$as_save_IFS
14354 case $as_dir in #(((
14355 '') as_dir=./ ;;
14356 */) ;;
14357 *) as_dir=$as_dir/ ;;
14358 esac
14359 for ac_exec_ext in '' $ac_executable_extensions; do
14360 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14361 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
14362 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14363 break 2
14364 fi
14365 done
14366 done
14367 IFS=$as_save_IFS
14368
14369 fi
14370 fi
14371 NMEDIT=$ac_cv_prog_NMEDIT
14372 if test -n "$NMEDIT"; then
14373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
14374 printf "%s\n" "$NMEDIT" >&6; }
14375 else
14376 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14377 printf "%s\n" "no" >&6; }
14378 fi
14379
14380
14381 fi
14382 if test -z "$ac_cv_prog_NMEDIT"; then
14383 ac_ct_NMEDIT=$NMEDIT
14384 # Extract the first word of "nmedit", so it can be a program name with args.
14385 set dummy nmedit; ac_word=$2
14386 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14387 printf %s "checking for $ac_word... " >&6; }
14388 if test ${ac_cv_prog_ac_ct_NMEDIT+y}
14389 then :
14390 printf %s "(cached) " >&6
14391 else $as_nop
14392 if test -n "$ac_ct_NMEDIT"; then
14393 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
14394 else
14395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14396 for as_dir in $PATH
14397 do
14398 IFS=$as_save_IFS
14399 case $as_dir in #(((
14400 '') as_dir=./ ;;
14401 */) ;;
14402 *) as_dir=$as_dir/ ;;
14403 esac
14404 for ac_exec_ext in '' $ac_executable_extensions; do
14405 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14406 ac_cv_prog_ac_ct_NMEDIT="nmedit"
14407 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14408 break 2
14409 fi
14410 done
14411 done
14412 IFS=$as_save_IFS
14413
14414 fi
14415 fi
14416 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
14417 if test -n "$ac_ct_NMEDIT"; then
14418 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
14419 printf "%s\n" "$ac_ct_NMEDIT" >&6; }
14420 else
14421 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14422 printf "%s\n" "no" >&6; }
14423 fi
14424
14425 if test "x$ac_ct_NMEDIT" = x; then
14426 NMEDIT=":"
14427 else
14428 case $cross_compiling:$ac_tool_warned in
14429 yes:)
14430 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14431 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14432 ac_tool_warned=yes ;;
14433 esac
14434 NMEDIT=$ac_ct_NMEDIT
14435 fi
14436 else
14437 NMEDIT="$ac_cv_prog_NMEDIT"
14438 fi
14439
14440 if test -n "$ac_tool_prefix"; then
14441 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
14442 set dummy ${ac_tool_prefix}lipo; ac_word=$2
14443 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14444 printf %s "checking for $ac_word... " >&6; }
14445 if test ${ac_cv_prog_LIPO+y}
14446 then :
14447 printf %s "(cached) " >&6
14448 else $as_nop
14449 if test -n "$LIPO"; then
14450 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
14451 else
14452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14453 for as_dir in $PATH
14454 do
14455 IFS=$as_save_IFS
14456 case $as_dir in #(((
14457 '') as_dir=./ ;;
14458 */) ;;
14459 *) as_dir=$as_dir/ ;;
14460 esac
14461 for ac_exec_ext in '' $ac_executable_extensions; do
14462 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14463 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
14464 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14465 break 2
14466 fi
14467 done
14468 done
14469 IFS=$as_save_IFS
14470
14471 fi
14472 fi
14473 LIPO=$ac_cv_prog_LIPO
14474 if test -n "$LIPO"; then
14475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
14476 printf "%s\n" "$LIPO" >&6; }
14477 else
14478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14479 printf "%s\n" "no" >&6; }
14480 fi
14481
14482
14483 fi
14484 if test -z "$ac_cv_prog_LIPO"; then
14485 ac_ct_LIPO=$LIPO
14486 # Extract the first word of "lipo", so it can be a program name with args.
14487 set dummy lipo; ac_word=$2
14488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14489 printf %s "checking for $ac_word... " >&6; }
14490 if test ${ac_cv_prog_ac_ct_LIPO+y}
14491 then :
14492 printf %s "(cached) " >&6
14493 else $as_nop
14494 if test -n "$ac_ct_LIPO"; then
14495 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
14496 else
14497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14498 for as_dir in $PATH
14499 do
14500 IFS=$as_save_IFS
14501 case $as_dir in #(((
14502 '') as_dir=./ ;;
14503 */) ;;
14504 *) as_dir=$as_dir/ ;;
14505 esac
14506 for ac_exec_ext in '' $ac_executable_extensions; do
14507 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14508 ac_cv_prog_ac_ct_LIPO="lipo"
14509 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14510 break 2
14511 fi
14512 done
14513 done
14514 IFS=$as_save_IFS
14515
14516 fi
14517 fi
14518 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
14519 if test -n "$ac_ct_LIPO"; then
14520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
14521 printf "%s\n" "$ac_ct_LIPO" >&6; }
14522 else
14523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14524 printf "%s\n" "no" >&6; }
14525 fi
14526
14527 if test "x$ac_ct_LIPO" = x; then
14528 LIPO=":"
14529 else
14530 case $cross_compiling:$ac_tool_warned in
14531 yes:)
14532 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14533 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14534 ac_tool_warned=yes ;;
14535 esac
14536 LIPO=$ac_ct_LIPO
14537 fi
14538 else
14539 LIPO="$ac_cv_prog_LIPO"
14540 fi
14541
14542 if test -n "$ac_tool_prefix"; then
14543 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
14544 set dummy ${ac_tool_prefix}otool; ac_word=$2
14545 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14546 printf %s "checking for $ac_word... " >&6; }
14547 if test ${ac_cv_prog_OTOOL+y}
14548 then :
14549 printf %s "(cached) " >&6
14550 else $as_nop
14551 if test -n "$OTOOL"; then
14552 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
14553 else
14554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14555 for as_dir in $PATH
14556 do
14557 IFS=$as_save_IFS
14558 case $as_dir in #(((
14559 '') as_dir=./ ;;
14560 */) ;;
14561 *) as_dir=$as_dir/ ;;
14562 esac
14563 for ac_exec_ext in '' $ac_executable_extensions; do
14564 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14565 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
14566 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14567 break 2
14568 fi
14569 done
14570 done
14571 IFS=$as_save_IFS
14572
14573 fi
14574 fi
14575 OTOOL=$ac_cv_prog_OTOOL
14576 if test -n "$OTOOL"; then
14577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
14578 printf "%s\n" "$OTOOL" >&6; }
14579 else
14580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14581 printf "%s\n" "no" >&6; }
14582 fi
14583
14584
14585 fi
14586 if test -z "$ac_cv_prog_OTOOL"; then
14587 ac_ct_OTOOL=$OTOOL
14588 # Extract the first word of "otool", so it can be a program name with args.
14589 set dummy otool; ac_word=$2
14590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14591 printf %s "checking for $ac_word... " >&6; }
14592 if test ${ac_cv_prog_ac_ct_OTOOL+y}
14593 then :
14594 printf %s "(cached) " >&6
14595 else $as_nop
14596 if test -n "$ac_ct_OTOOL"; then
14597 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
14598 else
14599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14600 for as_dir in $PATH
14601 do
14602 IFS=$as_save_IFS
14603 case $as_dir in #(((
14604 '') as_dir=./ ;;
14605 */) ;;
14606 *) as_dir=$as_dir/ ;;
14607 esac
14608 for ac_exec_ext in '' $ac_executable_extensions; do
14609 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14610 ac_cv_prog_ac_ct_OTOOL="otool"
14611 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14612 break 2
14613 fi
14614 done
14615 done
14616 IFS=$as_save_IFS
14617
14618 fi
14619 fi
14620 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
14621 if test -n "$ac_ct_OTOOL"; then
14622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
14623 printf "%s\n" "$ac_ct_OTOOL" >&6; }
14624 else
14625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14626 printf "%s\n" "no" >&6; }
14627 fi
14628
14629 if test "x$ac_ct_OTOOL" = x; then
14630 OTOOL=":"
14631 else
14632 case $cross_compiling:$ac_tool_warned in
14633 yes:)
14634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14635 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14636 ac_tool_warned=yes ;;
14637 esac
14638 OTOOL=$ac_ct_OTOOL
14639 fi
14640 else
14641 OTOOL="$ac_cv_prog_OTOOL"
14642 fi
14643
14644 if test -n "$ac_tool_prefix"; then
14645 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
14646 set dummy ${ac_tool_prefix}otool64; ac_word=$2
14647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14648 printf %s "checking for $ac_word... " >&6; }
14649 if test ${ac_cv_prog_OTOOL64+y}
14650 then :
14651 printf %s "(cached) " >&6
14652 else $as_nop
14653 if test -n "$OTOOL64"; then
14654 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
14655 else
14656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14657 for as_dir in $PATH
14658 do
14659 IFS=$as_save_IFS
14660 case $as_dir in #(((
14661 '') as_dir=./ ;;
14662 */) ;;
14663 *) as_dir=$as_dir/ ;;
14664 esac
14665 for ac_exec_ext in '' $ac_executable_extensions; do
14666 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14667 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
14668 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14669 break 2
14670 fi
14671 done
14672 done
14673 IFS=$as_save_IFS
14674
14675 fi
14676 fi
14677 OTOOL64=$ac_cv_prog_OTOOL64
14678 if test -n "$OTOOL64"; then
14679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
14680 printf "%s\n" "$OTOOL64" >&6; }
14681 else
14682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14683 printf "%s\n" "no" >&6; }
14684 fi
14685
14686
14687 fi
14688 if test -z "$ac_cv_prog_OTOOL64"; then
14689 ac_ct_OTOOL64=$OTOOL64
14690 # Extract the first word of "otool64", so it can be a program name with args.
14691 set dummy otool64; ac_word=$2
14692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14693 printf %s "checking for $ac_word... " >&6; }
14694 if test ${ac_cv_prog_ac_ct_OTOOL64+y}
14695 then :
14696 printf %s "(cached) " >&6
14697 else $as_nop
14698 if test -n "$ac_ct_OTOOL64"; then
14699 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
14700 else
14701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14702 for as_dir in $PATH
14703 do
14704 IFS=$as_save_IFS
14705 case $as_dir in #(((
14706 '') as_dir=./ ;;
14707 */) ;;
14708 *) as_dir=$as_dir/ ;;
14709 esac
14710 for ac_exec_ext in '' $ac_executable_extensions; do
14711 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14712 ac_cv_prog_ac_ct_OTOOL64="otool64"
14713 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14714 break 2
14715 fi
14716 done
14717 done
14718 IFS=$as_save_IFS
14719
14720 fi
14721 fi
14722 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
14723 if test -n "$ac_ct_OTOOL64"; then
14724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
14725 printf "%s\n" "$ac_ct_OTOOL64" >&6; }
14726 else
14727 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14728 printf "%s\n" "no" >&6; }
14729 fi
14730
14731 if test "x$ac_ct_OTOOL64" = x; then
14732 OTOOL64=":"
14733 else
14734 case $cross_compiling:$ac_tool_warned in
14735 yes:)
14736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14737 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14738 ac_tool_warned=yes ;;
14739 esac
14740 OTOOL64=$ac_ct_OTOOL64
14741 fi
14742 else
14743 OTOOL64="$ac_cv_prog_OTOOL64"
14744 fi
14745
14746
14747
14748
14749
14750
14751
14752
14753
14754
14755
14756
14757
14758
14759
14760
14761
14762
14763
14764
14765
14766
14767
14768
14769
14770
14771
14772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
14773 printf %s "checking for -single_module linker flag... " >&6; }
14774 if test ${lt_cv_apple_cc_single_mod+y}
14775 then :
14776 printf %s "(cached) " >&6
14777 else $as_nop
14778 lt_cv_apple_cc_single_mod=no
14779 if test -z "$LT_MULTI_MODULE"; then
14780 # By default we will add the -single_module flag. You can override
14781 # by either setting the environment variable LT_MULTI_MODULE
14782 # non-empty at configure time, or by adding -multi_module to the
14783 # link flags.
14784 rm -rf libconftest.dylib*
14785 echo "int foo(void){return 1;}" > conftest.c
14786 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14787 -dynamiclib -Wl,-single_module conftest.c" >&5
14788 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14789 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
14790 _lt_result=$?
14791 # If there is a non-empty error log, and "single_module"
14792 # appears in it, assume the flag caused a linker warning
14793 if test -s conftest.err && $GREP single_module conftest.err; then
14794 cat conftest.err >&5
14795 # Otherwise, if the output was created with a 0 exit code from
14796 # the compiler, it worked.
14797 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
14798 lt_cv_apple_cc_single_mod=yes
14799 else
14800 cat conftest.err >&5
14801 fi
14802 rm -rf libconftest.dylib*
14803 rm -f conftest.*
14804 fi
14805 fi
14806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
14807 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
14808
14809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
14810 printf %s "checking for -exported_symbols_list linker flag... " >&6; }
14811 if test ${lt_cv_ld_exported_symbols_list+y}
14812 then :
14813 printf %s "(cached) " >&6
14814 else $as_nop
14815 lt_cv_ld_exported_symbols_list=no
14816 save_LDFLAGS=$LDFLAGS
14817 echo "_main" > conftest.sym
14818 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
14819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14820 /* end confdefs.h. */
14821
14822 int
14823 main (void)
14824 {
14825
14826 ;
14827 return 0;
14828 }
14829 _ACEOF
14830 if ac_fn_c_try_link "$LINENO"
14831 then :
14832 lt_cv_ld_exported_symbols_list=yes
14833 else $as_nop
14834 lt_cv_ld_exported_symbols_list=no
14835 fi
14836 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14837 conftest$ac_exeext conftest.$ac_ext
14838 LDFLAGS=$save_LDFLAGS
14839
14840 fi
14841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
14842 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
14843
14844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
14845 printf %s "checking for -force_load linker flag... " >&6; }
14846 if test ${lt_cv_ld_force_load+y}
14847 then :
14848 printf %s "(cached) " >&6
14849 else $as_nop
14850 lt_cv_ld_force_load=no
14851 cat > conftest.c << _LT_EOF
14852 int forced_loaded() { return 2;}
14853 _LT_EOF
14854 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
14855 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
14856 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
14857 $AR $AR_FLAGS libconftest.a conftest.o 2>&5
14858 echo "$RANLIB libconftest.a" >&5
14859 $RANLIB libconftest.a 2>&5
14860 cat > conftest.c << _LT_EOF
14861 int main() { return 0;}
14862 _LT_EOF
14863 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
14864 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
14865 _lt_result=$?
14866 if test -s conftest.err && $GREP force_load conftest.err; then
14867 cat conftest.err >&5
14868 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
14869 lt_cv_ld_force_load=yes
14870 else
14871 cat conftest.err >&5
14872 fi
14873 rm -f conftest.err libconftest.a conftest conftest.c
14874 rm -rf conftest.dSYM
14875
14876 fi
14877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
14878 printf "%s\n" "$lt_cv_ld_force_load" >&6; }
14879 case $host_os in
14880 rhapsody* | darwin1.[012])
14881 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
14882 darwin1.*)
14883 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
14884 darwin*)
14885 case $MACOSX_DEPLOYMENT_TARGET,$host in
14886 10.[012],*|,*powerpc*-darwin[5-8]*)
14887 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
14888 *)
14889 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
14890 esac
14891 ;;
14892 esac
14893 if test yes = "$lt_cv_apple_cc_single_mod"; then
14894 _lt_dar_single_mod='$single_module'
14895 fi
14896 if test yes = "$lt_cv_ld_exported_symbols_list"; then
14897 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
14898 else
14899 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
14900 fi
14901 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
14902 _lt_dsymutil='~$DSYMUTIL $lib || :'
14903 else
14904 _lt_dsymutil=
14905 fi
14906 ;;
14907 esac
14908
14909 # func_munge_path_list VARIABLE PATH
14910 # -----------------------------------
14911 # VARIABLE is name of variable containing _space_ separated list of
14912 # directories to be munged by the contents of PATH, which is string
14913 # having a format:
14914 # "DIR[:DIR]:"
14915 # string "DIR[ DIR]" will be prepended to VARIABLE
14916 # ":DIR[:DIR]"
14917 # string "DIR[ DIR]" will be appended to VARIABLE
14918 # "DIRP[:DIRP]::[DIRA:]DIRA"
14919 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
14920 # "DIRA[ DIRA]" will be appended to VARIABLE
14921 # "DIR[:DIR]"
14922 # VARIABLE will be replaced by "DIR[ DIR]"
14923 func_munge_path_list ()
14924 {
14925 case x$2 in
14926 x)
14927 ;;
14928 *:)
14929 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
14930 ;;
14931 x:*)
14932 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
14933 ;;
14934 *::*)
14935 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
14936 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
14937 ;;
14938 *)
14939 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
14940 ;;
14941 esac
14942 }
14943
14944 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
14945 "
14946 if test "x$ac_cv_header_dlfcn_h" = xyes
14947 then :
14948 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
14949
14950 fi
14951
14952
14953
14954
14955
14956 # Set options
14957
14958
14959
14960 enable_dlopen=no
14961
14962
14963 enable_win32_dll=no
14964
14965
14966 # Check whether --enable-shared was given.
14967 if test ${enable_shared+y}
14968 then :
14969 enableval=$enable_shared; p=${PACKAGE-default}
14970 case $enableval in
14971 yes) enable_shared=yes ;;
14972 no) enable_shared=no ;;
14973 *)
14974 enable_shared=no
14975 # Look at the argument we got. We use all the common list separators.
14976 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
14977 for pkg in $enableval; do
14978 IFS=$lt_save_ifs
14979 if test "X$pkg" = "X$p"; then
14980 enable_shared=yes
14981 fi
14982 done
14983 IFS=$lt_save_ifs
14984 ;;
14985 esac
14986 else $as_nop
14987 enable_shared=yes
14988 fi
14989
14990
14991
14992
14993
14994
14995
14996
14997
14998
14999
15000 # Check whether --with-pic was given.
15001 if test ${with_pic+y}
15002 then :
15003 withval=$with_pic; lt_p=${PACKAGE-default}
15004 case $withval in
15005 yes|no) pic_mode=$withval ;;
15006 *)
15007 pic_mode=default
15008 # Look at the argument we got. We use all the common list separators.
15009 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
15010 for lt_pkg in $withval; do
15011 IFS=$lt_save_ifs
15012 if test "X$lt_pkg" = "X$lt_p"; then
15013 pic_mode=yes
15014 fi
15015 done
15016 IFS=$lt_save_ifs
15017 ;;
15018 esac
15019 else $as_nop
15020 pic_mode=default
15021 fi
15022
15023
15024
15025
15026
15027
15028
15029
15030 # Check whether --enable-fast-install was given.
15031 if test ${enable_fast_install+y}
15032 then :
15033 enableval=$enable_fast_install; p=${PACKAGE-default}
15034 case $enableval in
15035 yes) enable_fast_install=yes ;;
15036 no) enable_fast_install=no ;;
15037 *)
15038 enable_fast_install=no
15039 # Look at the argument we got. We use all the common list separators.
15040 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
15041 for pkg in $enableval; do
15042 IFS=$lt_save_ifs
15043 if test "X$pkg" = "X$p"; then
15044 enable_fast_install=yes
15045 fi
15046 done
15047 IFS=$lt_save_ifs
15048 ;;
15049 esac
15050 else $as_nop
15051 enable_fast_install=yes
15052 fi
15053
15054
15055
15056
15057
15058
15059
15060
15061 shared_archive_member_spec=
15062 case $host,$enable_shared in
15063 power*-*-aix[5-9]*,yes)
15064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
15065 printf %s "checking which variant of shared library versioning to provide... " >&6; }
15066
15067 # Check whether --with-aix-soname was given.
15068 if test ${with_aix_soname+y}
15069 then :
15070 withval=$with_aix_soname; case $withval in
15071 aix|svr4|both)
15072 ;;
15073 *)
15074 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
15075 ;;
15076 esac
15077 lt_cv_with_aix_soname=$with_aix_soname
15078 else $as_nop
15079 if test ${lt_cv_with_aix_soname+y}
15080 then :
15081 printf %s "(cached) " >&6
15082 else $as_nop
15083 lt_cv_with_aix_soname=aix
15084 fi
15085
15086 with_aix_soname=$lt_cv_with_aix_soname
15087 fi
15088
15089 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
15090 printf "%s\n" "$with_aix_soname" >&6; }
15091 if test aix != "$with_aix_soname"; then
15092 # For the AIX way of multilib, we name the shared archive member
15093 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
15094 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
15095 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
15096 # the AIX toolchain works better with OBJECT_MODE set (default 32).
15097 if test 64 = "${OBJECT_MODE-32}"; then
15098 shared_archive_member_spec=shr_64
15099 else
15100 shared_archive_member_spec=shr
15101 fi
15102 fi
15103 ;;
15104 *)
15105 with_aix_soname=aix
15106 ;;
15107 esac
15108
15109
15110
15111
15112
15113
15114
15115
15116
15117
15118 # This can be used to rebuild libtool when needed
15119 LIBTOOL_DEPS=$ltmain
15120
15121 # Always use our own libtool.
15122 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
15123
15124
15125
15126
15127
15128
15129
15130
15131
15132
15133
15134
15135
15136
15137
15138
15139
15140
15141
15142
15143
15144
15145
15146
15147
15148
15149
15150
15151
15152
15153 test -z "$LN_S" && LN_S="ln -s"
15154
15155
15156
15157
15158
15159
15160
15161
15162
15163
15164
15165
15166
15167
15168 if test -n "${ZSH_VERSION+set}"; then
15169 setopt NO_GLOB_SUBST
15170 fi
15171
15172 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
15173 printf %s "checking for objdir... " >&6; }
15174 if test ${lt_cv_objdir+y}
15175 then :
15176 printf %s "(cached) " >&6
15177 else $as_nop
15178 rm -f .libs 2>/dev/null
15179 mkdir .libs 2>/dev/null
15180 if test -d .libs; then
15181 lt_cv_objdir=.libs
15182 else
15183 # MS-DOS does not allow filenames that begin with a dot.
15184 lt_cv_objdir=_libs
15185 fi
15186 rmdir .libs 2>/dev/null
15187 fi
15188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
15189 printf "%s\n" "$lt_cv_objdir" >&6; }
15190 objdir=$lt_cv_objdir
15191
15192
15193
15194
15195
15196 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
15197
15198
15199
15200
15201 case $host_os in
15202 aix3*)
15203 # AIX sometimes has problems with the GCC collect2 program. For some
15204 # reason, if we set the COLLECT_NAMES environment variable, the problems
15205 # vanish in a puff of smoke.
15206 if test set != "${COLLECT_NAMES+set}"; then
15207 COLLECT_NAMES=
15208 export COLLECT_NAMES
15209 fi
15210 ;;
15211 esac
15212
15213 # Global variables:
15214 ofile=libtool
15215 can_build_shared=yes
15216
15217 # All known linkers require a '.a' archive for static linking (except MSVC and
15218 # ICC, which need '.lib').
15219 libext=a
15220
15221 with_gnu_ld=$lt_cv_prog_gnu_ld
15222
15223 old_CC=$CC
15224 old_CFLAGS=$CFLAGS
15225
15226 # Set sane defaults for various variables
15227 test -z "$CC" && CC=cc
15228 test -z "$LTCC" && LTCC=$CC
15229 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
15230 test -z "$LD" && LD=ld
15231 test -z "$ac_objext" && ac_objext=o
15232
15233 func_cc_basename $compiler
15234 cc_basename=$func_cc_basename_result
15235
15236
15237 # Only perform the check for file, if the check method requires it
15238 test -z "$MAGIC_CMD" && MAGIC_CMD=file
15239 case $deplibs_check_method in
15240 file_magic*)
15241 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
15242 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
15243 printf %s "checking for ${ac_tool_prefix}file... " >&6; }
15244 if test ${lt_cv_path_MAGIC_CMD+y}
15245 then :
15246 printf %s "(cached) " >&6
15247 else $as_nop
15248 case $MAGIC_CMD in
15249 [\\/*] | ?:[\\/]*)
15250 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
15251 ;;
15252 *)
15253 lt_save_MAGIC_CMD=$MAGIC_CMD
15254 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
15255 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
15256 for ac_dir in $ac_dummy; do
15257 IFS=$lt_save_ifs
15258 test -z "$ac_dir" && ac_dir=.
15259 if test -f "$ac_dir/${ac_tool_prefix}file"; then
15260 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
15261 if test -n "$file_magic_test_file"; then
15262 case $deplibs_check_method in
15263 "file_magic "*)
15264 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
15265 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
15266 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15267 $EGREP "$file_magic_regex" > /dev/null; then
15268 :
15269 else
15270 cat <<_LT_EOF 1>&2
15271
15272 *** Warning: the command libtool uses to detect shared libraries,
15273 *** $file_magic_cmd, produces output that libtool cannot recognize.
15274 *** The result is that libtool may fail to recognize shared libraries
15275 *** as such. This will affect the creation of libtool libraries that
15276 *** depend on shared libraries, but programs linked with such libtool
15277 *** libraries will work regardless of this problem. Nevertheless, you
15278 *** may want to report the problem to your system manager and/or to
15279 *** bug-libtool@gnu.org
15280
15281 _LT_EOF
15282 fi ;;
15283 esac
15284 fi
15285 break
15286 fi
15287 done
15288 IFS=$lt_save_ifs
15289 MAGIC_CMD=$lt_save_MAGIC_CMD
15290 ;;
15291 esac
15292 fi
15293
15294 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
15295 if test -n "$MAGIC_CMD"; then
15296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
15297 printf "%s\n" "$MAGIC_CMD" >&6; }
15298 else
15299 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15300 printf "%s\n" "no" >&6; }
15301 fi
15302
15303
15304
15305
15306
15307 if test -z "$lt_cv_path_MAGIC_CMD"; then
15308 if test -n "$ac_tool_prefix"; then
15309 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
15310 printf %s "checking for file... " >&6; }
15311 if test ${lt_cv_path_MAGIC_CMD+y}
15312 then :
15313 printf %s "(cached) " >&6
15314 else $as_nop
15315 case $MAGIC_CMD in
15316 [\\/*] | ?:[\\/]*)
15317 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
15318 ;;
15319 *)
15320 lt_save_MAGIC_CMD=$MAGIC_CMD
15321 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
15322 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
15323 for ac_dir in $ac_dummy; do
15324 IFS=$lt_save_ifs
15325 test -z "$ac_dir" && ac_dir=.
15326 if test -f "$ac_dir/file"; then
15327 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
15328 if test -n "$file_magic_test_file"; then
15329 case $deplibs_check_method in
15330 "file_magic "*)
15331 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
15332 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
15333 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15334 $EGREP "$file_magic_regex" > /dev/null; then
15335 :
15336 else
15337 cat <<_LT_EOF 1>&2
15338
15339 *** Warning: the command libtool uses to detect shared libraries,
15340 *** $file_magic_cmd, produces output that libtool cannot recognize.
15341 *** The result is that libtool may fail to recognize shared libraries
15342 *** as such. This will affect the creation of libtool libraries that
15343 *** depend on shared libraries, but programs linked with such libtool
15344 *** libraries will work regardless of this problem. Nevertheless, you
15345 *** may want to report the problem to your system manager and/or to
15346 *** bug-libtool@gnu.org
15347
15348 _LT_EOF
15349 fi ;;
15350 esac
15351 fi
15352 break
15353 fi
15354 done
15355 IFS=$lt_save_ifs
15356 MAGIC_CMD=$lt_save_MAGIC_CMD
15357 ;;
15358 esac
15359 fi
15360
15361 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
15362 if test -n "$MAGIC_CMD"; then
15363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
15364 printf "%s\n" "$MAGIC_CMD" >&6; }
15365 else
15366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15367 printf "%s\n" "no" >&6; }
15368 fi
15369
15370
15371 else
15372 MAGIC_CMD=:
15373 fi
15374 fi
15375
15376 fi
15377 ;;
15378 esac
15379
15380 # Use C for the default configuration in the libtool script
15381
15382 lt_save_CC=$CC
15383 ac_ext=c
15384 ac_cpp='$CPP $CPPFLAGS'
15385 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15386 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15387 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15388
15389
15390 # Source file extension for C test sources.
15391 ac_ext=c
15392
15393 # Object file extension for compiled C test sources.
15394 objext=o
15395 objext=$objext
15396
15397 # Code to be used in simple compile tests
15398 lt_simple_compile_test_code="int some_variable = 0;"
15399
15400 # Code to be used in simple link tests
15401 lt_simple_link_test_code='int main(){return(0);}'
15402
15403
15404
15405
15406
15407
15408
15409 # If no C compiler was specified, use CC.
15410 LTCC=${LTCC-"$CC"}
15411
15412 # If no C compiler flags were specified, use CFLAGS.
15413 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15414
15415 # Allow CC to be a program name with arguments.
15416 compiler=$CC
15417
15418 # Save the default compiler, since it gets overwritten when the other
15419 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
15420 compiler_DEFAULT=$CC
15421
15422 # save warnings/boilerplate of simple test code
15423 ac_outfile=conftest.$ac_objext
15424 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15425 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15426 _lt_compiler_boilerplate=`cat conftest.err`
15427 $RM conftest*
15428
15429 ac_outfile=conftest.$ac_objext
15430 echo "$lt_simple_link_test_code" >conftest.$ac_ext
15431 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15432 _lt_linker_boilerplate=`cat conftest.err`
15433 $RM -r conftest*
15434
15435
15436 if test -n "$compiler"; then
15437
15438 lt_prog_compiler_no_builtin_flag=
15439
15440 if test yes = "$GCC"; then
15441 case $cc_basename in
15442 nvcc*)
15443 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
15444 *)
15445 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
15446 esac
15447
15448 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15449 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
15450 if test ${lt_cv_prog_compiler_rtti_exceptions+y}
15451 then :
15452 printf %s "(cached) " >&6
15453 else $as_nop
15454 lt_cv_prog_compiler_rtti_exceptions=no
15455 ac_outfile=conftest.$ac_objext
15456 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15457 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
15458 # Insert the option either (1) after the last *FLAGS variable, or
15459 # (2) before a word containing "conftest.", or (3) at the end.
15460 # Note that $ac_compile itself does not contain backslashes and begins
15461 # with a dollar sign (not a hyphen), so the echo should work correctly.
15462 # The option is referenced via a variable to avoid confusing sed.
15463 lt_compile=`echo "$ac_compile" | $SED \
15464 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15465 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15466 -e 's:$: $lt_compiler_flag:'`
15467 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15468 (eval "$lt_compile" 2>conftest.err)
15469 ac_status=$?
15470 cat conftest.err >&5
15471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15472 if (exit $ac_status) && test -s "$ac_outfile"; then
15473 # The compiler can only warn and ignore the option if not recognized
15474 # So say no if there are warnings other than the usual output.
15475 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15476 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15477 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15478 lt_cv_prog_compiler_rtti_exceptions=yes
15479 fi
15480 fi
15481 $RM conftest*
15482
15483 fi
15484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15485 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
15486
15487 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
15488 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
15489 else
15490 :
15491 fi
15492
15493 fi
15494
15495
15496
15497
15498
15499
15500 lt_prog_compiler_wl=
15501 lt_prog_compiler_pic=
15502 lt_prog_compiler_static=
15503
15504
15505 if test yes = "$GCC"; then
15506 lt_prog_compiler_wl='-Wl,'
15507 lt_prog_compiler_static='-static'
15508
15509 case $host_os in
15510 aix*)
15511 # All AIX code is PIC.
15512 if test ia64 = "$host_cpu"; then
15513 # AIX 5 now supports IA64 processor
15514 lt_prog_compiler_static='-Bstatic'
15515 fi
15516 lt_prog_compiler_pic='-fPIC'
15517 ;;
15518
15519 amigaos*)
15520 case $host_cpu in
15521 powerpc)
15522 # see comment about AmigaOS4 .so support
15523 lt_prog_compiler_pic='-fPIC'
15524 ;;
15525 m68k)
15526 # FIXME: we need at least 68020 code to build shared libraries, but
15527 # adding the '-m68020' flag to GCC prevents building anything better,
15528 # like '-m68040'.
15529 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
15530 ;;
15531 esac
15532 ;;
15533
15534 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15535 # PIC is the default for these OSes.
15536 ;;
15537
15538 mingw* | cygwin* | pw32* | os2* | cegcc*)
15539 # This hack is so that the source file can tell whether it is being
15540 # built for inclusion in a dll (and should export symbols for example).
15541 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15542 # (--disable-auto-import) libraries
15543 lt_prog_compiler_pic='-DDLL_EXPORT'
15544 case $host_os in
15545 os2*)
15546 lt_prog_compiler_static='$wl-static'
15547 ;;
15548 esac
15549 ;;
15550
15551 darwin* | rhapsody*)
15552 # PIC is the default on this platform
15553 # Common symbols not allowed in MH_DYLIB files
15554 lt_prog_compiler_pic='-fno-common'
15555 ;;
15556
15557 haiku*)
15558 # PIC is the default for Haiku.
15559 # The "-static" flag exists, but is broken.
15560 lt_prog_compiler_static=
15561 ;;
15562
15563 hpux*)
15564 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15565 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
15566 # sets the default TLS model and affects inlining.
15567 case $host_cpu in
15568 hppa*64*)
15569 # +Z the default
15570 ;;
15571 *)
15572 lt_prog_compiler_pic='-fPIC'
15573 ;;
15574 esac
15575 ;;
15576
15577 interix[3-9]*)
15578 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15579 # Instead, we relocate shared libraries at runtime.
15580 ;;
15581
15582 msdosdjgpp*)
15583 # Just because we use GCC doesn't mean we suddenly get shared libraries
15584 # on systems that don't support them.
15585 lt_prog_compiler_can_build_shared=no
15586 enable_shared=no
15587 ;;
15588
15589 *nto* | *qnx*)
15590 # QNX uses GNU C++, but need to define -shared option too, otherwise
15591 # it will coredump.
15592 lt_prog_compiler_pic='-fPIC -shared'
15593 ;;
15594
15595 sysv4*MP*)
15596 if test -d /usr/nec; then
15597 lt_prog_compiler_pic=-Kconform_pic
15598 fi
15599 ;;
15600
15601 *)
15602 lt_prog_compiler_pic='-fPIC'
15603 ;;
15604 esac
15605
15606 case $cc_basename in
15607 nvcc*) # Cuda Compiler Driver 2.2
15608 lt_prog_compiler_wl='-Xlinker '
15609 if test -n "$lt_prog_compiler_pic"; then
15610 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
15611 fi
15612 ;;
15613 esac
15614 else
15615 # PORTME Check for flag to pass linker flags through the system compiler.
15616 case $host_os in
15617 aix*)
15618 lt_prog_compiler_wl='-Wl,'
15619 if test ia64 = "$host_cpu"; then
15620 # AIX 5 now supports IA64 processor
15621 lt_prog_compiler_static='-Bstatic'
15622 else
15623 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
15624 fi
15625 ;;
15626
15627 darwin* | rhapsody*)
15628 # PIC is the default on this platform
15629 # Common symbols not allowed in MH_DYLIB files
15630 lt_prog_compiler_pic='-fno-common'
15631 case $cc_basename in
15632 nagfor*)
15633 # NAG Fortran compiler
15634 lt_prog_compiler_wl='-Wl,-Wl,,'
15635 lt_prog_compiler_pic='-PIC'
15636 lt_prog_compiler_static='-Bstatic'
15637 ;;
15638 esac
15639 ;;
15640
15641 mingw* | cygwin* | pw32* | os2* | cegcc*)
15642 # This hack is so that the source file can tell whether it is being
15643 # built for inclusion in a dll (and should export symbols for example).
15644 lt_prog_compiler_pic='-DDLL_EXPORT'
15645 case $host_os in
15646 os2*)
15647 lt_prog_compiler_static='$wl-static'
15648 ;;
15649 esac
15650 ;;
15651
15652 hpux9* | hpux10* | hpux11*)
15653 lt_prog_compiler_wl='-Wl,'
15654 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15655 # not for PA HP-UX.
15656 case $host_cpu in
15657 hppa*64*|ia64*)
15658 # +Z the default
15659 ;;
15660 *)
15661 lt_prog_compiler_pic='+Z'
15662 ;;
15663 esac
15664 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15665 lt_prog_compiler_static='$wl-a ${wl}archive'
15666 ;;
15667
15668 irix5* | irix6* | nonstopux*)
15669 lt_prog_compiler_wl='-Wl,'
15670 # PIC (with -KPIC) is the default.
15671 lt_prog_compiler_static='-non_shared'
15672 ;;
15673
15674 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15675 case $cc_basename in
15676 # old Intel for x86_64, which still supported -KPIC.
15677 ecc*)
15678 lt_prog_compiler_wl='-Wl,'
15679 lt_prog_compiler_pic='-KPIC'
15680 lt_prog_compiler_static='-static'
15681 ;;
15682 # icc used to be incompatible with GCC.
15683 # ICC 10 doesn't accept -KPIC any more.
15684 icc* | ifort*)
15685 lt_prog_compiler_wl='-Wl,'
15686 lt_prog_compiler_pic='-fPIC'
15687 lt_prog_compiler_static='-static'
15688 ;;
15689 # Lahey Fortran 8.1.
15690 lf95*)
15691 lt_prog_compiler_wl='-Wl,'
15692 lt_prog_compiler_pic='--shared'
15693 lt_prog_compiler_static='--static'
15694 ;;
15695 nagfor*)
15696 # NAG Fortran compiler
15697 lt_prog_compiler_wl='-Wl,-Wl,,'
15698 lt_prog_compiler_pic='-PIC'
15699 lt_prog_compiler_static='-Bstatic'
15700 ;;
15701 tcc*)
15702 # Fabrice Bellard et al's Tiny C Compiler
15703 lt_prog_compiler_wl='-Wl,'
15704 lt_prog_compiler_pic='-fPIC'
15705 lt_prog_compiler_static='-static'
15706 ;;
15707 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
15708 # Portland Group compilers (*not* the Pentium gcc compiler,
15709 # which looks to be a dead project)
15710 lt_prog_compiler_wl='-Wl,'
15711 lt_prog_compiler_pic='-fpic'
15712 lt_prog_compiler_static='-Bstatic'
15713 ;;
15714 ccc*)
15715 lt_prog_compiler_wl='-Wl,'
15716 # All Alpha code is PIC.
15717 lt_prog_compiler_static='-non_shared'
15718 ;;
15719 xl* | bgxl* | bgf* | mpixl*)
15720 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
15721 lt_prog_compiler_wl='-Wl,'
15722 lt_prog_compiler_pic='-qpic'
15723 lt_prog_compiler_static='-qstaticlink'
15724 ;;
15725 *)
15726 case `$CC -V 2>&1 | $SED 5q` in
15727 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
15728 # Sun Fortran 8.3 passes all unrecognized flags to the linker
15729 lt_prog_compiler_pic='-KPIC'
15730 lt_prog_compiler_static='-Bstatic'
15731 lt_prog_compiler_wl=''
15732 ;;
15733 *Sun\ F* | *Sun*Fortran*)
15734 lt_prog_compiler_pic='-KPIC'
15735 lt_prog_compiler_static='-Bstatic'
15736 lt_prog_compiler_wl='-Qoption ld '
15737 ;;
15738 *Sun\ C*)
15739 # Sun C 5.9
15740 lt_prog_compiler_pic='-KPIC'
15741 lt_prog_compiler_static='-Bstatic'
15742 lt_prog_compiler_wl='-Wl,'
15743 ;;
15744 *Intel*\ [CF]*Compiler*)
15745 lt_prog_compiler_wl='-Wl,'
15746 lt_prog_compiler_pic='-fPIC'
15747 lt_prog_compiler_static='-static'
15748 ;;
15749 *Portland\ Group*)
15750 lt_prog_compiler_wl='-Wl,'
15751 lt_prog_compiler_pic='-fpic'
15752 lt_prog_compiler_static='-Bstatic'
15753 ;;
15754 esac
15755 ;;
15756 esac
15757 ;;
15758
15759 newsos6)
15760 lt_prog_compiler_pic='-KPIC'
15761 lt_prog_compiler_static='-Bstatic'
15762 ;;
15763
15764 *nto* | *qnx*)
15765 # QNX uses GNU C++, but need to define -shared option too, otherwise
15766 # it will coredump.
15767 lt_prog_compiler_pic='-fPIC -shared'
15768 ;;
15769
15770 osf3* | osf4* | osf5*)
15771 lt_prog_compiler_wl='-Wl,'
15772 # All OSF/1 code is PIC.
15773 lt_prog_compiler_static='-non_shared'
15774 ;;
15775
15776 rdos*)
15777 lt_prog_compiler_static='-non_shared'
15778 ;;
15779
15780 solaris*)
15781 lt_prog_compiler_pic='-KPIC'
15782 lt_prog_compiler_static='-Bstatic'
15783 case $cc_basename in
15784 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
15785 lt_prog_compiler_wl='-Qoption ld ';;
15786 *)
15787 lt_prog_compiler_wl='-Wl,';;
15788 esac
15789 ;;
15790
15791 sunos4*)
15792 lt_prog_compiler_wl='-Qoption ld '
15793 lt_prog_compiler_pic='-PIC'
15794 lt_prog_compiler_static='-Bstatic'
15795 ;;
15796
15797 sysv4 | sysv4.2uw2* | sysv4.3*)
15798 lt_prog_compiler_wl='-Wl,'
15799 lt_prog_compiler_pic='-KPIC'
15800 lt_prog_compiler_static='-Bstatic'
15801 ;;
15802
15803 sysv4*MP*)
15804 if test -d /usr/nec; then
15805 lt_prog_compiler_pic='-Kconform_pic'
15806 lt_prog_compiler_static='-Bstatic'
15807 fi
15808 ;;
15809
15810 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15811 lt_prog_compiler_wl='-Wl,'
15812 lt_prog_compiler_pic='-KPIC'
15813 lt_prog_compiler_static='-Bstatic'
15814 ;;
15815
15816 unicos*)
15817 lt_prog_compiler_wl='-Wl,'
15818 lt_prog_compiler_can_build_shared=no
15819 ;;
15820
15821 uts4*)
15822 lt_prog_compiler_pic='-pic'
15823 lt_prog_compiler_static='-Bstatic'
15824 ;;
15825
15826 *)
15827 lt_prog_compiler_can_build_shared=no
15828 ;;
15829 esac
15830 fi
15831
15832 case $host_os in
15833 # For platforms that do not support PIC, -DPIC is meaningless:
15834 *djgpp*)
15835 lt_prog_compiler_pic=
15836 ;;
15837 *)
15838 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15839 ;;
15840 esac
15841
15842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15843 printf %s "checking for $compiler option to produce PIC... " >&6; }
15844 if test ${lt_cv_prog_compiler_pic+y}
15845 then :
15846 printf %s "(cached) " >&6
15847 else $as_nop
15848 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
15849 fi
15850 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
15851 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
15852 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
15853
15854 #
15855 # Check to make sure the PIC flag actually works.
15856 #
15857 if test -n "$lt_prog_compiler_pic"; then
15858 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
15859 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
15860 if test ${lt_cv_prog_compiler_pic_works+y}
15861 then :
15862 printf %s "(cached) " >&6
15863 else $as_nop
15864 lt_cv_prog_compiler_pic_works=no
15865 ac_outfile=conftest.$ac_objext
15866 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15867 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
15868 # Insert the option either (1) after the last *FLAGS variable, or
15869 # (2) before a word containing "conftest.", or (3) at the end.
15870 # Note that $ac_compile itself does not contain backslashes and begins
15871 # with a dollar sign (not a hyphen), so the echo should work correctly.
15872 # The option is referenced via a variable to avoid confusing sed.
15873 lt_compile=`echo "$ac_compile" | $SED \
15874 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15875 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15876 -e 's:$: $lt_compiler_flag:'`
15877 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15878 (eval "$lt_compile" 2>conftest.err)
15879 ac_status=$?
15880 cat conftest.err >&5
15881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15882 if (exit $ac_status) && test -s "$ac_outfile"; then
15883 # The compiler can only warn and ignore the option if not recognized
15884 # So say no if there are warnings other than the usual output.
15885 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15886 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15887 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15888 lt_cv_prog_compiler_pic_works=yes
15889 fi
15890 fi
15891 $RM conftest*
15892
15893 fi
15894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
15895 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
15896
15897 if test yes = "$lt_cv_prog_compiler_pic_works"; then
15898 case $lt_prog_compiler_pic in
15899 "" | " "*) ;;
15900 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15901 esac
15902 else
15903 lt_prog_compiler_pic=
15904 lt_prog_compiler_can_build_shared=no
15905 fi
15906
15907 fi
15908
15909
15910
15911
15912
15913
15914
15915
15916
15917
15918
15919 #
15920 # Check to make sure the static flag actually works.
15921 #
15922 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15924 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15925 if test ${lt_cv_prog_compiler_static_works+y}
15926 then :
15927 printf %s "(cached) " >&6
15928 else $as_nop
15929 lt_cv_prog_compiler_static_works=no
15930 save_LDFLAGS=$LDFLAGS
15931 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15932 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15933 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15934 # The linker can only warn and ignore the option if not recognized
15935 # So say no if there are warnings
15936 if test -s conftest.err; then
15937 # Append any errors to the config.log.
15938 cat conftest.err 1>&5
15939 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15940 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15941 if diff conftest.exp conftest.er2 >/dev/null; then
15942 lt_cv_prog_compiler_static_works=yes
15943 fi
15944 else
15945 lt_cv_prog_compiler_static_works=yes
15946 fi
15947 fi
15948 $RM -r conftest*
15949 LDFLAGS=$save_LDFLAGS
15950
15951 fi
15952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
15953 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
15954
15955 if test yes = "$lt_cv_prog_compiler_static_works"; then
15956 :
15957 else
15958 lt_prog_compiler_static=
15959 fi
15960
15961
15962
15963
15964
15965
15966
15967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15968 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15969 if test ${lt_cv_prog_compiler_c_o+y}
15970 then :
15971 printf %s "(cached) " >&6
15972 else $as_nop
15973 lt_cv_prog_compiler_c_o=no
15974 $RM -r conftest 2>/dev/null
15975 mkdir conftest
15976 cd conftest
15977 mkdir out
15978 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15979
15980 lt_compiler_flag="-o out/conftest2.$ac_objext"
15981 # Insert the option either (1) after the last *FLAGS variable, or
15982 # (2) before a word containing "conftest.", or (3) at the end.
15983 # Note that $ac_compile itself does not contain backslashes and begins
15984 # with a dollar sign (not a hyphen), so the echo should work correctly.
15985 lt_compile=`echo "$ac_compile" | $SED \
15986 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15987 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15988 -e 's:$: $lt_compiler_flag:'`
15989 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15990 (eval "$lt_compile" 2>out/conftest.err)
15991 ac_status=$?
15992 cat out/conftest.err >&5
15993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15994 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15995 then
15996 # The compiler can only warn and ignore the option if not recognized
15997 # So say no if there are warnings
15998 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15999 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16000 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16001 lt_cv_prog_compiler_c_o=yes
16002 fi
16003 fi
16004 chmod u+w . 2>&5
16005 $RM conftest*
16006 # SGI C++ compiler will create directory out/ii_files/ for
16007 # template instantiation
16008 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16009 $RM out/* && rmdir out
16010 cd ..
16011 $RM -r conftest
16012 $RM conftest*
16013
16014 fi
16015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
16016 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
16017
16018
16019
16020
16021
16022
16023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16024 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16025 if test ${lt_cv_prog_compiler_c_o+y}
16026 then :
16027 printf %s "(cached) " >&6
16028 else $as_nop
16029 lt_cv_prog_compiler_c_o=no
16030 $RM -r conftest 2>/dev/null
16031 mkdir conftest
16032 cd conftest
16033 mkdir out
16034 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16035
16036 lt_compiler_flag="-o out/conftest2.$ac_objext"
16037 # Insert the option either (1) after the last *FLAGS variable, or
16038 # (2) before a word containing "conftest.", or (3) at the end.
16039 # Note that $ac_compile itself does not contain backslashes and begins
16040 # with a dollar sign (not a hyphen), so the echo should work correctly.
16041 lt_compile=`echo "$ac_compile" | $SED \
16042 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16043 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16044 -e 's:$: $lt_compiler_flag:'`
16045 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16046 (eval "$lt_compile" 2>out/conftest.err)
16047 ac_status=$?
16048 cat out/conftest.err >&5
16049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16050 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16051 then
16052 # The compiler can only warn and ignore the option if not recognized
16053 # So say no if there are warnings
16054 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16055 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16056 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16057 lt_cv_prog_compiler_c_o=yes
16058 fi
16059 fi
16060 chmod u+w . 2>&5
16061 $RM conftest*
16062 # SGI C++ compiler will create directory out/ii_files/ for
16063 # template instantiation
16064 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16065 $RM out/* && rmdir out
16066 cd ..
16067 $RM -r conftest
16068 $RM conftest*
16069
16070 fi
16071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
16072 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
16073
16074
16075
16076
16077 hard_links=nottested
16078 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
16079 # do not overwrite the value of need_locks provided by the user
16080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
16081 printf %s "checking if we can lock with hard links... " >&6; }
16082 hard_links=yes
16083 $RM conftest*
16084 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16085 touch conftest.a
16086 ln conftest.a conftest.b 2>&5 || hard_links=no
16087 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
16089 printf "%s\n" "$hard_links" >&6; }
16090 if test no = "$hard_links"; then
16091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
16092 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
16093 need_locks=warn
16094 fi
16095 else
16096 need_locks=no
16097 fi
16098
16099
16100
16101
16102
16103
16104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16105 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16106
16107 runpath_var=
16108 allow_undefined_flag=
16109 always_export_symbols=no
16110 archive_cmds=
16111 archive_expsym_cmds=
16112 compiler_needs_object=no
16113 enable_shared_with_static_runtimes=no
16114 export_dynamic_flag_spec=
16115 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16116 hardcode_automatic=no
16117 hardcode_direct=no
16118 hardcode_direct_absolute=no
16119 hardcode_libdir_flag_spec=
16120 hardcode_libdir_separator=
16121 hardcode_minus_L=no
16122 hardcode_shlibpath_var=unsupported
16123 inherit_rpath=no
16124 link_all_deplibs=unknown
16125 module_cmds=
16126 module_expsym_cmds=
16127 old_archive_from_new_cmds=
16128 old_archive_from_expsyms_cmds=
16129 thread_safe_flag_spec=
16130 whole_archive_flag_spec=
16131 # include_expsyms should be a list of space-separated symbols to be *always*
16132 # included in the symbol list
16133 include_expsyms=
16134 # exclude_expsyms can be an extended regexp of symbols to exclude
16135 # it will be wrapped by ' (' and ')$', so one must not match beginning or
16136 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
16137 # as well as any symbol that contains 'd'.
16138 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16139 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16140 # platforms (ab)use it in PIC code, but their linkers get confused if
16141 # the symbol is explicitly referenced. Since portable code cannot
16142 # rely on this symbol name, it's probably fine to never include it in
16143 # preloaded symbol tables.
16144 # Exclude shared library initialization/finalization symbols.
16145 extract_expsyms_cmds=
16146
16147 case $host_os in
16148 cygwin* | mingw* | pw32* | cegcc*)
16149 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
16150 # When not using gcc, we currently assume that we are using
16151 # Microsoft Visual C++ or Intel C++ Compiler.
16152 if test yes != "$GCC"; then
16153 with_gnu_ld=no
16154 fi
16155 ;;
16156 interix*)
16157 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
16158 with_gnu_ld=yes
16159 ;;
16160 openbsd* | bitrig*)
16161 with_gnu_ld=no
16162 ;;
16163 esac
16164
16165 ld_shlibs=yes
16166
16167 # On some targets, GNU ld is compatible enough with the native linker
16168 # that we're better off using the native interface for both.
16169 lt_use_gnu_ld_interface=no
16170 if test yes = "$with_gnu_ld"; then
16171 case $host_os in
16172 aix*)
16173 # The AIX port of GNU ld has always aspired to compatibility
16174 # with the native linker. However, as the warning in the GNU ld
16175 # block says, versions before 2.19.5* couldn't really create working
16176 # shared libraries, regardless of the interface used.
16177 case `$LD -v 2>&1` in
16178 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
16179 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
16180 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
16181 *)
16182 lt_use_gnu_ld_interface=yes
16183 ;;
16184 esac
16185 ;;
16186 *)
16187 lt_use_gnu_ld_interface=yes
16188 ;;
16189 esac
16190 fi
16191
16192 if test yes = "$lt_use_gnu_ld_interface"; then
16193 # If archive_cmds runs LD, not CC, wlarc should be empty
16194 wlarc='$wl'
16195
16196 # Set some defaults for GNU ld with shared library support. These
16197 # are reset later if shared libraries are not supported. Putting them
16198 # here allows them to be overridden if necessary.
16199 runpath_var=LD_RUN_PATH
16200 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
16201 export_dynamic_flag_spec='$wl--export-dynamic'
16202 # ancient GNU ld didn't support --whole-archive et. al.
16203 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
16204 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
16205 else
16206 whole_archive_flag_spec=
16207 fi
16208 supports_anon_versioning=no
16209 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
16210 *GNU\ gold*) supports_anon_versioning=yes ;;
16211 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16212 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16213 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16214 *\ 2.11.*) ;; # other 2.11 versions
16215 *) supports_anon_versioning=yes ;;
16216 esac
16217
16218 # See if GNU ld supports shared libraries.
16219 case $host_os in
16220 aix[3-9]*)
16221 # On AIX/PPC, the GNU linker is very broken
16222 if test ia64 != "$host_cpu"; then
16223 ld_shlibs=no
16224 cat <<_LT_EOF 1>&2
16225
16226 *** Warning: the GNU linker, at least up to release 2.19, is reported
16227 *** to be unable to reliably create shared libraries on AIX.
16228 *** Therefore, libtool is disabling shared libraries support. If you
16229 *** really care for shared libraries, you may want to install binutils
16230 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
16231 *** You will then need to restart the configuration process.
16232
16233 _LT_EOF
16234 fi
16235 ;;
16236
16237 amigaos*)
16238 case $host_cpu in
16239 powerpc)
16240 # see comment about AmigaOS4 .so support
16241 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16242 archive_expsym_cmds=''
16243 ;;
16244 m68k)
16245 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)'
16246 hardcode_libdir_flag_spec='-L$libdir'
16247 hardcode_minus_L=yes
16248 ;;
16249 esac
16250 ;;
16251
16252 beos*)
16253 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16254 allow_undefined_flag=unsupported
16255 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
16256 # support --undefined. This deserves some investigation. FIXME
16257 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16258 else
16259 ld_shlibs=no
16260 fi
16261 ;;
16262
16263 cygwin* | mingw* | pw32* | cegcc*)
16264 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
16265 # as there is no search path for DLLs.
16266 hardcode_libdir_flag_spec='-L$libdir'
16267 export_dynamic_flag_spec='$wl--export-all-symbols'
16268 allow_undefined_flag=unsupported
16269 always_export_symbols=no
16270 enable_shared_with_static_runtimes=yes
16271 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'
16272 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
16273
16274 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
16275 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16276 # If the export-symbols file already is a .def file, use it as
16277 # is; otherwise, prepend EXPORTS...
16278 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
16279 cp $export_symbols $output_objdir/$soname.def;
16280 else
16281 echo EXPORTS > $output_objdir/$soname.def;
16282 cat $export_symbols >> $output_objdir/$soname.def;
16283 fi~
16284 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16285 else
16286 ld_shlibs=no
16287 fi
16288 ;;
16289
16290 haiku*)
16291 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16292 link_all_deplibs=yes
16293 ;;
16294
16295 os2*)
16296 hardcode_libdir_flag_spec='-L$libdir'
16297 hardcode_minus_L=yes
16298 allow_undefined_flag=unsupported
16299 shrext_cmds=.dll
16300 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
16301 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
16302 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
16303 $ECHO EXPORTS >> $output_objdir/$libname.def~
16304 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
16305 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
16306 emximp -o $lib $output_objdir/$libname.def'
16307 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
16308 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
16309 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
16310 $ECHO EXPORTS >> $output_objdir/$libname.def~
16311 prefix_cmds="$SED"~
16312 if test EXPORTS = "`$SED 1q $export_symbols`"; then
16313 prefix_cmds="$prefix_cmds -e 1d";
16314 fi~
16315 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
16316 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
16317 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
16318 emximp -o $lib $output_objdir/$libname.def'
16319 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
16320 enable_shared_with_static_runtimes=yes
16321 file_list_spec='@'
16322 ;;
16323
16324 interix[3-9]*)
16325 hardcode_direct=no
16326 hardcode_shlibpath_var=no
16327 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
16328 export_dynamic_flag_spec='$wl-E'
16329 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16330 # Instead, shared libraries are loaded at an image base (0x10000000 by
16331 # default) and relocated if they conflict, which is a slow very memory
16332 # consuming and fragmenting process. To avoid this, we pick a random,
16333 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16334 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16335 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16336 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'
16337 ;;
16338
16339 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
16340 tmp_diet=no
16341 if test linux-dietlibc = "$host_os"; then
16342 case $cc_basename in
16343 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
16344 esac
16345 fi
16346 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
16347 && test no = "$tmp_diet"
16348 then
16349 tmp_addflag=' $pic_flag'
16350 tmp_sharedflag='-shared'
16351 case $cc_basename,$host_cpu in
16352 pgcc*) # Portland Group C compiler
16353 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'
16354 tmp_addflag=' $pic_flag'
16355 ;;
16356 pgf77* | pgf90* | pgf95* | pgfortran*)
16357 # Portland Group f77 and f90 compilers
16358 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'
16359 tmp_addflag=' $pic_flag -Mnomain' ;;
16360 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16361 tmp_addflag=' -i_dynamic' ;;
16362 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16363 tmp_addflag=' -i_dynamic -nofor_main' ;;
16364 ifc* | ifort*) # Intel Fortran compiler
16365 tmp_addflag=' -nofor_main' ;;
16366 lf95*) # Lahey Fortran 8.1
16367 whole_archive_flag_spec=
16368 tmp_sharedflag='--shared' ;;
16369 nagfor*) # NAGFOR 5.3
16370 tmp_sharedflag='-Wl,-shared' ;;
16371 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
16372 tmp_sharedflag='-qmkshrobj'
16373 tmp_addflag= ;;
16374 nvcc*) # Cuda Compiler Driver 2.2
16375 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'
16376 compiler_needs_object=yes
16377 ;;
16378 esac
16379 case `$CC -V 2>&1 | $SED 5q` in
16380 *Sun\ C*) # Sun C 5.9
16381 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'
16382 compiler_needs_object=yes
16383 tmp_sharedflag='-G' ;;
16384 *Sun\ F*) # Sun Fortran 8.3
16385 tmp_sharedflag='-G' ;;
16386 esac
16387 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16388
16389 if test yes = "$supports_anon_versioning"; then
16390 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
16391 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16392 echo "local: *; };" >> $output_objdir/$libname.ver~
16393 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
16394 fi
16395
16396 case $cc_basename in
16397 tcc*)
16398 export_dynamic_flag_spec='-rdynamic'
16399 ;;
16400 xlf* | bgf* | bgxlf* | mpixlf*)
16401 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
16402 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
16403 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
16404 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
16405 if test yes = "$supports_anon_versioning"; then
16406 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
16407 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16408 echo "local: *; };" >> $output_objdir/$libname.ver~
16409 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
16410 fi
16411 ;;
16412 esac
16413 else
16414 ld_shlibs=no
16415 fi
16416 ;;
16417
16418 netbsd*)
16419 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16420 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16421 wlarc=
16422 else
16423 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16424 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
16425 fi
16426 ;;
16427
16428 solaris*)
16429 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
16430 ld_shlibs=no
16431 cat <<_LT_EOF 1>&2
16432
16433 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16434 *** create shared libraries on Solaris systems. Therefore, libtool
16435 *** is disabling shared libraries support. We urge you to upgrade GNU
16436 *** binutils to release 2.9.1 or newer. Another option is to modify
16437 *** your PATH or compiler configuration so that the native linker is
16438 *** used, and then restart.
16439
16440 _LT_EOF
16441 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16442 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16443 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
16444 else
16445 ld_shlibs=no
16446 fi
16447 ;;
16448
16449 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16450 case `$LD -v 2>&1` in
16451 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16452 ld_shlibs=no
16453 cat <<_LT_EOF 1>&2
16454
16455 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
16456 *** reliably create shared libraries on SCO systems. Therefore, libtool
16457 *** is disabling shared libraries support. We urge you to upgrade GNU
16458 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16459 *** your PATH or compiler configuration so that the native linker is
16460 *** used, and then restart.
16461
16462 _LT_EOF
16463 ;;
16464 *)
16465 # For security reasons, it is highly recommended that you always
16466 # use absolute paths for naming shared libraries, and exclude the
16467 # DT_RUNPATH tag from executables and libraries. But doing so
16468 # requires that you compile everything twice, which is a pain.
16469 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16470 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
16471 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16472 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
16473 else
16474 ld_shlibs=no
16475 fi
16476 ;;
16477 esac
16478 ;;
16479
16480 sunos4*)
16481 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16482 wlarc=
16483 hardcode_direct=yes
16484 hardcode_shlibpath_var=no
16485 ;;
16486
16487 *)
16488 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16489 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16490 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
16491 else
16492 ld_shlibs=no
16493 fi
16494 ;;
16495 esac
16496
16497 if test no = "$ld_shlibs"; then
16498 runpath_var=
16499 hardcode_libdir_flag_spec=
16500 export_dynamic_flag_spec=
16501 whole_archive_flag_spec=
16502 fi
16503 else
16504 # PORTME fill in a description of your system's linker (not GNU ld)
16505 case $host_os in
16506 aix3*)
16507 allow_undefined_flag=unsupported
16508 always_export_symbols=yes
16509 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'
16510 # Note: this linker hardcodes the directories in LIBPATH if there
16511 # are no directories specified by -L.
16512 hardcode_minus_L=yes
16513 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
16514 # Neither direct hardcoding nor static linking is supported with a
16515 # broken collect2.
16516 hardcode_direct=unsupported
16517 fi
16518 ;;
16519
16520 aix[4-9]*)
16521 if test ia64 = "$host_cpu"; then
16522 # On IA64, the linker does run time linking by default, so we don't
16523 # have to do anything special.
16524 aix_use_runtimelinking=no
16525 exp_sym_flag='-Bexport'
16526 no_entry_flag=
16527 else
16528 # If we're using GNU nm, then we don't want the "-C" option.
16529 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
16530 # Without the "-l" option, or with the "-B" option, AIX nm treats
16531 # weak defined symbols like other global defined symbols, whereas
16532 # GNU nm marks them as "W".
16533 # While the 'weak' keyword is ignored in the Export File, we need
16534 # it in the Import File for the 'aix-soname' feature, so we have
16535 # to replace the "-B" option with "-P" for AIX nm.
16536 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
16537 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'
16538 else
16539 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'
16540 fi
16541 aix_use_runtimelinking=no
16542
16543 # Test if we are trying to use run time linking or normal
16544 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16545 # have runtime linking enabled, and use it for executables.
16546 # For shared libraries, we enable/disable runtime linking
16547 # depending on the kind of the shared library created -
16548 # when "with_aix_soname,aix_use_runtimelinking" is:
16549 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
16550 # "aix,yes" lib.so shared, rtl:yes, for executables
16551 # lib.a static archive
16552 # "both,no" lib.so.V(shr.o) shared, rtl:yes
16553 # lib.a(lib.so.V) shared, rtl:no, for executables
16554 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
16555 # lib.a(lib.so.V) shared, rtl:no
16556 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
16557 # lib.a static archive
16558 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
16559 for ld_flag in $LDFLAGS; do
16560 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
16561 aix_use_runtimelinking=yes
16562 break
16563 fi
16564 done
16565 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
16566 # With aix-soname=svr4, we create the lib.so.V shared archives only,
16567 # so we don't have lib.a shared libs to link our executables.
16568 # We have to force runtime linking in this case.
16569 aix_use_runtimelinking=yes
16570 LDFLAGS="$LDFLAGS -Wl,-brtl"
16571 fi
16572 ;;
16573 esac
16574
16575 exp_sym_flag='-bexport'
16576 no_entry_flag='-bnoentry'
16577 fi
16578
16579 # When large executables or shared objects are built, AIX ld can
16580 # have problems creating the table of contents. If linking a library
16581 # or program results in "error TOC overflow" add -mminimal-toc to
16582 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16583 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16584
16585 archive_cmds=''
16586 hardcode_direct=yes
16587 hardcode_direct_absolute=yes
16588 hardcode_libdir_separator=':'
16589 link_all_deplibs=yes
16590 file_list_spec='$wl-f,'
16591 case $with_aix_soname,$aix_use_runtimelinking in
16592 aix,*) ;; # traditional, no import file
16593 svr4,* | *,yes) # use import file
16594 # The Import File defines what to hardcode.
16595 hardcode_direct=no
16596 hardcode_direct_absolute=no
16597 ;;
16598 esac
16599
16600 if test yes = "$GCC"; then
16601 case $host_os in aix4.[012]|aix4.[012].*)
16602 # We only want to do this on AIX 4.2 and lower, the check
16603 # below for broken collect2 doesn't work under 4.3+
16604 collect2name=`$CC -print-prog-name=collect2`
16605 if test -f "$collect2name" &&
16606 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
16607 then
16608 # We have reworked collect2
16609 :
16610 else
16611 # We have old collect2
16612 hardcode_direct=unsupported
16613 # It fails to find uninstalled libraries when the uninstalled
16614 # path is not listed in the libpath. Setting hardcode_minus_L
16615 # to unsupported forces relinking
16616 hardcode_minus_L=yes
16617 hardcode_libdir_flag_spec='-L$libdir'
16618 hardcode_libdir_separator=
16619 fi
16620 ;;
16621 esac
16622 shared_flag='-shared'
16623 if test yes = "$aix_use_runtimelinking"; then
16624 shared_flag="$shared_flag "'$wl-G'
16625 fi
16626 # Need to ensure runtime linking is disabled for the traditional
16627 # shared library, or the linker may eventually find shared libraries
16628 # /with/ Import File - we do not want to mix them.
16629 shared_flag_aix='-shared'
16630 shared_flag_svr4='-shared $wl-G'
16631 else
16632 # not using gcc
16633 if test ia64 = "$host_cpu"; then
16634 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16635 # chokes on -Wl,-G. The following line is correct:
16636 shared_flag='-G'
16637 else
16638 if test yes = "$aix_use_runtimelinking"; then
16639 shared_flag='$wl-G'
16640 else
16641 shared_flag='$wl-bM:SRE'
16642 fi
16643 shared_flag_aix='$wl-bM:SRE'
16644 shared_flag_svr4='$wl-G'
16645 fi
16646 fi
16647
16648 export_dynamic_flag_spec='$wl-bexpall'
16649 # It seems that -bexpall does not export symbols beginning with
16650 # underscore (_), so it is better to generate a list of symbols to export.
16651 always_export_symbols=yes
16652 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
16653 # Warning - without using the other runtime loading flags (-brtl),
16654 # -berok will link without error, but may produce a broken library.
16655 allow_undefined_flag='-berok'
16656 # Determine the default libpath from the value encoded in an
16657 # empty executable.
16658 if test set = "${lt_cv_aix_libpath+set}"; then
16659 aix_libpath=$lt_cv_aix_libpath
16660 else
16661 if test ${lt_cv_aix_libpath_+y}
16662 then :
16663 printf %s "(cached) " >&6
16664 else $as_nop
16665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16666 /* end confdefs.h. */
16667
16668 int
16669 main (void)
16670 {
16671
16672 ;
16673 return 0;
16674 }
16675 _ACEOF
16676 if ac_fn_c_try_link "$LINENO"
16677 then :
16678
16679 lt_aix_libpath_sed='
16680 /Import File Strings/,/^$/ {
16681 /^0/ {
16682 s/^0 *\([^ ]*\) *$/\1/
16683 p
16684 }
16685 }'
16686 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16687 # Check for a 64-bit object if we didn't find anything.
16688 if test -z "$lt_cv_aix_libpath_"; then
16689 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16690 fi
16691 fi
16692 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16693 conftest$ac_exeext conftest.$ac_ext
16694 if test -z "$lt_cv_aix_libpath_"; then
16695 lt_cv_aix_libpath_=/usr/lib:/lib
16696 fi
16697
16698 fi
16699
16700 aix_libpath=$lt_cv_aix_libpath_
16701 fi
16702
16703 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
16704 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
16705 else
16706 if test ia64 = "$host_cpu"; then
16707 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
16708 allow_undefined_flag="-z nodefs"
16709 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"
16710 else
16711 # Determine the default libpath from the value encoded in an
16712 # empty executable.
16713 if test set = "${lt_cv_aix_libpath+set}"; then
16714 aix_libpath=$lt_cv_aix_libpath
16715 else
16716 if test ${lt_cv_aix_libpath_+y}
16717 then :
16718 printf %s "(cached) " >&6
16719 else $as_nop
16720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16721 /* end confdefs.h. */
16722
16723 int
16724 main (void)
16725 {
16726
16727 ;
16728 return 0;
16729 }
16730 _ACEOF
16731 if ac_fn_c_try_link "$LINENO"
16732 then :
16733
16734 lt_aix_libpath_sed='
16735 /Import File Strings/,/^$/ {
16736 /^0/ {
16737 s/^0 *\([^ ]*\) *$/\1/
16738 p
16739 }
16740 }'
16741 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16742 # Check for a 64-bit object if we didn't find anything.
16743 if test -z "$lt_cv_aix_libpath_"; then
16744 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16745 fi
16746 fi
16747 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16748 conftest$ac_exeext conftest.$ac_ext
16749 if test -z "$lt_cv_aix_libpath_"; then
16750 lt_cv_aix_libpath_=/usr/lib:/lib
16751 fi
16752
16753 fi
16754
16755 aix_libpath=$lt_cv_aix_libpath_
16756 fi
16757
16758 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
16759 # Warning - without using the other run time loading flags,
16760 # -berok will link without error, but may produce a broken library.
16761 no_undefined_flag=' $wl-bernotok'
16762 allow_undefined_flag=' $wl-berok'
16763 if test yes = "$with_gnu_ld"; then
16764 # We only use this code for GNU lds that support --whole-archive.
16765 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
16766 else
16767 # Exported symbols can be pulled into shared objects from archives
16768 whole_archive_flag_spec='$convenience'
16769 fi
16770 archive_cmds_need_lc=yes
16771 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
16772 # -brtl affects multiple linker settings, -berok does not and is overridden later
16773 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
16774 if test svr4 != "$with_aix_soname"; then
16775 # This is similar to how AIX traditionally builds its shared libraries.
16776 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'
16777 fi
16778 if test aix != "$with_aix_soname"; then
16779 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'
16780 else
16781 # used by -dlpreopen to get the symbols
16782 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
16783 fi
16784 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
16785 fi
16786 fi
16787 ;;
16788
16789 amigaos*)
16790 case $host_cpu in
16791 powerpc)
16792 # see comment about AmigaOS4 .so support
16793 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16794 archive_expsym_cmds=''
16795 ;;
16796 m68k)
16797 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)'
16798 hardcode_libdir_flag_spec='-L$libdir'
16799 hardcode_minus_L=yes
16800 ;;
16801 esac
16802 ;;
16803
16804 bsdi[45]*)
16805 export_dynamic_flag_spec=-rdynamic
16806 ;;
16807
16808 cygwin* | mingw* | pw32* | cegcc*)
16809 # When not using gcc, we currently assume that we are using
16810 # Microsoft Visual C++ or Intel C++ Compiler.
16811 # hardcode_libdir_flag_spec is actually meaningless, as there is
16812 # no search path for DLLs.
16813 case $cc_basename in
16814 cl* | icl*)
16815 # Native MSVC or ICC
16816 hardcode_libdir_flag_spec=' '
16817 allow_undefined_flag=unsupported
16818 always_export_symbols=yes
16819 file_list_spec='@'
16820 # Tell ltmain to make .lib files, not .a files.
16821 libext=lib
16822 # Tell ltmain to make .dll files, not .so files.
16823 shrext_cmds=.dll
16824 # FIXME: Setting linknames here is a bad hack.
16825 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
16826 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
16827 cp "$export_symbols" "$output_objdir/$soname.def";
16828 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
16829 else
16830 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
16831 fi~
16832 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
16833 linknames='
16834 # The linker will not automatically build a static lib if we build a DLL.
16835 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
16836 enable_shared_with_static_runtimes=yes
16837 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
16838 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16839 # Don't use ranlib
16840 old_postinstall_cmds='chmod 644 $oldlib'
16841 postlink_cmds='lt_outputfile="@OUTPUT@"~
16842 lt_tool_outputfile="@TOOL_OUTPUT@"~
16843 case $lt_outputfile in
16844 *.exe|*.EXE) ;;
16845 *)
16846 lt_outputfile=$lt_outputfile.exe
16847 lt_tool_outputfile=$lt_tool_outputfile.exe
16848 ;;
16849 esac~
16850 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
16851 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
16852 $RM "$lt_outputfile.manifest";
16853 fi'
16854 ;;
16855 *)
16856 # Assume MSVC and ICC wrapper
16857 hardcode_libdir_flag_spec=' '
16858 allow_undefined_flag=unsupported
16859 # Tell ltmain to make .lib files, not .a files.
16860 libext=lib
16861 # Tell ltmain to make .dll files, not .so files.
16862 shrext_cmds=.dll
16863 # FIXME: Setting linknames here is a bad hack.
16864 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
16865 # The linker will automatically build a .lib file if we build a DLL.
16866 old_archive_from_new_cmds='true'
16867 # FIXME: Should let the user specify the lib program.
16868 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
16869 enable_shared_with_static_runtimes=yes
16870 ;;
16871 esac
16872 ;;
16873
16874 darwin* | rhapsody*)
16875
16876
16877 archive_cmds_need_lc=no
16878 hardcode_direct=no
16879 hardcode_automatic=yes
16880 hardcode_shlibpath_var=unsupported
16881 if test yes = "$lt_cv_ld_force_load"; then
16882 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\"`'
16883
16884 else
16885 whole_archive_flag_spec=''
16886 fi
16887 link_all_deplibs=yes
16888 allow_undefined_flag=$_lt_dar_allow_undefined
16889 case $cc_basename in
16890 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
16891 *) _lt_dar_can_shared=$GCC ;;
16892 esac
16893 if test yes = "$_lt_dar_can_shared"; then
16894 output_verbose_link_cmd=func_echo_all
16895 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
16896 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
16897 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"
16898 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"
16899
16900 else
16901 ld_shlibs=no
16902 fi
16903
16904 ;;
16905
16906 dgux*)
16907 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16908 hardcode_libdir_flag_spec='-L$libdir'
16909 hardcode_shlibpath_var=no
16910 ;;
16911
16912 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16913 # support. Future versions do this automatically, but an explicit c++rt0.o
16914 # does not break anything, and helps significantly (at the cost of a little
16915 # extra space).
16916 freebsd2.2*)
16917 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16918 hardcode_libdir_flag_spec='-R$libdir'
16919 hardcode_direct=yes
16920 hardcode_shlibpath_var=no
16921 ;;
16922
16923 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16924 freebsd2.*)
16925 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16926 hardcode_direct=yes
16927 hardcode_minus_L=yes
16928 hardcode_shlibpath_var=no
16929 ;;
16930
16931 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16932 freebsd* | dragonfly* | midnightbsd*)
16933 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16934 hardcode_libdir_flag_spec='-R$libdir'
16935 hardcode_direct=yes
16936 hardcode_shlibpath_var=no
16937 ;;
16938
16939 hpux9*)
16940 if test yes = "$GCC"; then
16941 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'
16942 else
16943 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'
16944 fi
16945 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
16946 hardcode_libdir_separator=:
16947 hardcode_direct=yes
16948
16949 # hardcode_minus_L: Not really in the search PATH,
16950 # but as the default location of the library.
16951 hardcode_minus_L=yes
16952 export_dynamic_flag_spec='$wl-E'
16953 ;;
16954
16955 hpux10*)
16956 if test yes,no = "$GCC,$with_gnu_ld"; then
16957 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16958 else
16959 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16960 fi
16961 if test no = "$with_gnu_ld"; then
16962 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
16963 hardcode_libdir_separator=:
16964 hardcode_direct=yes
16965 hardcode_direct_absolute=yes
16966 export_dynamic_flag_spec='$wl-E'
16967 # hardcode_minus_L: Not really in the search PATH,
16968 # but as the default location of the library.
16969 hardcode_minus_L=yes
16970 fi
16971 ;;
16972
16973 hpux11*)
16974 if test yes,no = "$GCC,$with_gnu_ld"; then
16975 case $host_cpu in
16976 hppa*64*)
16977 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
16978 ;;
16979 ia64*)
16980 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16981 ;;
16982 *)
16983 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16984 ;;
16985 esac
16986 else
16987 case $host_cpu in
16988 hppa*64*)
16989 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
16990 ;;
16991 ia64*)
16992 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16993 ;;
16994 *)
16995
16996 # Older versions of the 11.00 compiler do not understand -b yet
16997 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
16998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
16999 printf %s "checking if $CC understands -b... " >&6; }
17000 if test ${lt_cv_prog_compiler__b+y}
17001 then :
17002 printf %s "(cached) " >&6
17003 else $as_nop
17004 lt_cv_prog_compiler__b=no
17005 save_LDFLAGS=$LDFLAGS
17006 LDFLAGS="$LDFLAGS -b"
17007 echo "$lt_simple_link_test_code" > conftest.$ac_ext
17008 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17009 # The linker can only warn and ignore the option if not recognized
17010 # So say no if there are warnings
17011 if test -s conftest.err; then
17012 # Append any errors to the config.log.
17013 cat conftest.err 1>&5
17014 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
17015 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17016 if diff conftest.exp conftest.er2 >/dev/null; then
17017 lt_cv_prog_compiler__b=yes
17018 fi
17019 else
17020 lt_cv_prog_compiler__b=yes
17021 fi
17022 fi
17023 $RM -r conftest*
17024 LDFLAGS=$save_LDFLAGS
17025
17026 fi
17027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
17028 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
17029
17030 if test yes = "$lt_cv_prog_compiler__b"; then
17031 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17032 else
17033 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17034 fi
17035
17036 ;;
17037 esac
17038 fi
17039 if test no = "$with_gnu_ld"; then
17040 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
17041 hardcode_libdir_separator=:
17042
17043 case $host_cpu in
17044 hppa*64*|ia64*)
17045 hardcode_direct=no
17046 hardcode_shlibpath_var=no
17047 ;;
17048 *)
17049 hardcode_direct=yes
17050 hardcode_direct_absolute=yes
17051 export_dynamic_flag_spec='$wl-E'
17052
17053 # hardcode_minus_L: Not really in the search PATH,
17054 # but as the default location of the library.
17055 hardcode_minus_L=yes
17056 ;;
17057 esac
17058 fi
17059 ;;
17060
17061 irix5* | irix6* | nonstopux*)
17062 if test yes = "$GCC"; then
17063 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'
17064 # Try to use the -exported_symbol ld option, if it does not
17065 # work, assume that -exports_file does not work either and
17066 # implicitly export all symbols.
17067 # This should be the same for all languages, so no per-tag cache variable.
17068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
17069 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
17070 if test ${lt_cv_irix_exported_symbol+y}
17071 then :
17072 printf %s "(cached) " >&6
17073 else $as_nop
17074 save_LDFLAGS=$LDFLAGS
17075 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
17076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17077 /* end confdefs.h. */
17078 int foo (void) { return 0; }
17079 _ACEOF
17080 if ac_fn_c_try_link "$LINENO"
17081 then :
17082 lt_cv_irix_exported_symbol=yes
17083 else $as_nop
17084 lt_cv_irix_exported_symbol=no
17085 fi
17086 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17087 conftest$ac_exeext conftest.$ac_ext
17088 LDFLAGS=$save_LDFLAGS
17089 fi
17090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
17091 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
17092 if test yes = "$lt_cv_irix_exported_symbol"; then
17093 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'
17094 fi
17095 else
17096 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'
17097 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'
17098 fi
17099 archive_cmds_need_lc='no'
17100 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
17101 hardcode_libdir_separator=:
17102 inherit_rpath=yes
17103 link_all_deplibs=yes
17104 ;;
17105
17106 linux*)
17107 case $cc_basename in
17108 tcc*)
17109 # Fabrice Bellard et al's Tiny C Compiler
17110 ld_shlibs=yes
17111 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17112 ;;
17113 esac
17114 ;;
17115
17116 netbsd*)
17117 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17118 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17119 else
17120 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17121 fi
17122 hardcode_libdir_flag_spec='-R$libdir'
17123 hardcode_direct=yes
17124 hardcode_shlibpath_var=no
17125 ;;
17126
17127 newsos6)
17128 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17129 hardcode_direct=yes
17130 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
17131 hardcode_libdir_separator=:
17132 hardcode_shlibpath_var=no
17133 ;;
17134
17135 *nto* | *qnx*)
17136 ;;
17137
17138 openbsd* | bitrig*)
17139 if test -f /usr/libexec/ld.so; then
17140 hardcode_direct=yes
17141 hardcode_shlibpath_var=no
17142 hardcode_direct_absolute=yes
17143 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
17144 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17145 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
17146 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
17147 export_dynamic_flag_spec='$wl-E'
17148 else
17149 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17150 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
17151 fi
17152 else
17153 ld_shlibs=no
17154 fi
17155 ;;
17156
17157 os2*)
17158 hardcode_libdir_flag_spec='-L$libdir'
17159 hardcode_minus_L=yes
17160 allow_undefined_flag=unsupported
17161 shrext_cmds=.dll
17162 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
17163 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
17164 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
17165 $ECHO EXPORTS >> $output_objdir/$libname.def~
17166 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
17167 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
17168 emximp -o $lib $output_objdir/$libname.def'
17169 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
17170 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
17171 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
17172 $ECHO EXPORTS >> $output_objdir/$libname.def~
17173 prefix_cmds="$SED"~
17174 if test EXPORTS = "`$SED 1q $export_symbols`"; then
17175 prefix_cmds="$prefix_cmds -e 1d";
17176 fi~
17177 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
17178 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
17179 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
17180 emximp -o $lib $output_objdir/$libname.def'
17181 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
17182 enable_shared_with_static_runtimes=yes
17183 file_list_spec='@'
17184 ;;
17185
17186 osf3*)
17187 if test yes = "$GCC"; then
17188 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
17189 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'
17190 else
17191 allow_undefined_flag=' -expect_unresolved \*'
17192 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'
17193 fi
17194 archive_cmds_need_lc='no'
17195 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
17196 hardcode_libdir_separator=:
17197 ;;
17198
17199 osf4* | osf5*) # as osf3* with the addition of -msym flag
17200 if test yes = "$GCC"; then
17201 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
17202 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'
17203 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
17204 else
17205 allow_undefined_flag=' -expect_unresolved \*'
17206 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'
17207 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~
17208 $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'
17209
17210 # Both c and cxx compiler support -rpath directly
17211 hardcode_libdir_flag_spec='-rpath $libdir'
17212 fi
17213 archive_cmds_need_lc='no'
17214 hardcode_libdir_separator=:
17215 ;;
17216
17217 solaris*)
17218 no_undefined_flag=' -z defs'
17219 if test yes = "$GCC"; then
17220 wlarc='$wl'
17221 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
17222 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17223 $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'
17224 else
17225 case `$CC -V 2>&1` in
17226 *"Compilers 5.0"*)
17227 wlarc=''
17228 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
17229 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17230 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
17231 ;;
17232 *)
17233 wlarc='$wl'
17234 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
17235 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17236 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
17237 ;;
17238 esac
17239 fi
17240 hardcode_libdir_flag_spec='-R$libdir'
17241 hardcode_shlibpath_var=no
17242 case $host_os in
17243 solaris2.[0-5] | solaris2.[0-5].*) ;;
17244 *)
17245 # The compiler driver will combine and reorder linker options,
17246 # but understands '-z linker_flag'. GCC discards it without '$wl',
17247 # but is careful enough not to reorder.
17248 # Supported since Solaris 2.6 (maybe 2.5.1?)
17249 if test yes = "$GCC"; then
17250 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
17251 else
17252 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
17253 fi
17254 ;;
17255 esac
17256 link_all_deplibs=yes
17257 ;;
17258
17259 sunos4*)
17260 if test sequent = "$host_vendor"; then
17261 # Use $CC to link under sequent, because it throws in some extra .o
17262 # files that make .init and .fini sections work.
17263 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17264 else
17265 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17266 fi
17267 hardcode_libdir_flag_spec='-L$libdir'
17268 hardcode_direct=yes
17269 hardcode_minus_L=yes
17270 hardcode_shlibpath_var=no
17271 ;;
17272
17273 sysv4)
17274 case $host_vendor in
17275 sni)
17276 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17277 hardcode_direct=yes # is this really true???
17278 ;;
17279 siemens)
17280 ## LD is ld it makes a PLAMLIB
17281 ## CC just makes a GrossModule.
17282 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17283 reload_cmds='$CC -r -o $output$reload_objs'
17284 hardcode_direct=no
17285 ;;
17286 motorola)
17287 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17288 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
17289 ;;
17290 esac
17291 runpath_var='LD_RUN_PATH'
17292 hardcode_shlibpath_var=no
17293 ;;
17294
17295 sysv4.3*)
17296 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17297 hardcode_shlibpath_var=no
17298 export_dynamic_flag_spec='-Bexport'
17299 ;;
17300
17301 sysv4*MP*)
17302 if test -d /usr/nec; then
17303 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17304 hardcode_shlibpath_var=no
17305 runpath_var=LD_RUN_PATH
17306 hardcode_runpath_var=yes
17307 ld_shlibs=yes
17308 fi
17309 ;;
17310
17311 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17312 no_undefined_flag='$wl-z,text'
17313 archive_cmds_need_lc=no
17314 hardcode_shlibpath_var=no
17315 runpath_var='LD_RUN_PATH'
17316
17317 if test yes = "$GCC"; then
17318 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17319 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17320 else
17321 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17322 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17323 fi
17324 ;;
17325
17326 sysv5* | sco3.2v5* | sco5v6*)
17327 # Note: We CANNOT use -z defs as we might desire, because we do not
17328 # link with -lc, and that would cause any symbols used from libc to
17329 # always be unresolved, which means just about no library would
17330 # ever link correctly. If we're not using GNU ld we use -z text
17331 # though, which does catch some bad symbols but isn't as heavy-handed
17332 # as -z defs.
17333 no_undefined_flag='$wl-z,text'
17334 allow_undefined_flag='$wl-z,nodefs'
17335 archive_cmds_need_lc=no
17336 hardcode_shlibpath_var=no
17337 hardcode_libdir_flag_spec='$wl-R,$libdir'
17338 hardcode_libdir_separator=':'
17339 link_all_deplibs=yes
17340 export_dynamic_flag_spec='$wl-Bexport'
17341 runpath_var='LD_RUN_PATH'
17342
17343 if test yes = "$GCC"; then
17344 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17345 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17346 else
17347 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17348 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17349 fi
17350 ;;
17351
17352 uts4*)
17353 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17354 hardcode_libdir_flag_spec='-L$libdir'
17355 hardcode_shlibpath_var=no
17356 ;;
17357
17358 *)
17359 ld_shlibs=no
17360 ;;
17361 esac
17362
17363 if test sni = "$host_vendor"; then
17364 case $host in
17365 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17366 export_dynamic_flag_spec='$wl-Blargedynsym'
17367 ;;
17368 esac
17369 fi
17370 fi
17371
17372 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
17373 printf "%s\n" "$ld_shlibs" >&6; }
17374 test no = "$ld_shlibs" && can_build_shared=no
17375
17376 with_gnu_ld=$with_gnu_ld
17377
17378
17379
17380
17381
17382
17383
17384
17385
17386
17387
17388
17389
17390
17391
17392 #
17393 # Do we need to explicitly link libc?
17394 #
17395 case "x$archive_cmds_need_lc" in
17396 x|xyes)
17397 # Assume -lc should be added
17398 archive_cmds_need_lc=yes
17399
17400 if test yes,yes = "$GCC,$enable_shared"; then
17401 case $archive_cmds in
17402 *'~'*)
17403 # FIXME: we may have to deal with multi-command sequences.
17404 ;;
17405 '$CC '*)
17406 # Test whether the compiler implicitly links with -lc since on some
17407 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17408 # to ld, don't add -lc before -lgcc.
17409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
17410 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
17411 if test ${lt_cv_archive_cmds_need_lc+y}
17412 then :
17413 printf %s "(cached) " >&6
17414 else $as_nop
17415 $RM conftest*
17416 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17417
17418 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17419 (eval $ac_compile) 2>&5
17420 ac_status=$?
17421 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17422 test $ac_status = 0; } 2>conftest.err; then
17423 soname=conftest
17424 lib=conftest
17425 libobjs=conftest.$ac_objext
17426 deplibs=
17427 wl=$lt_prog_compiler_wl
17428 pic_flag=$lt_prog_compiler_pic
17429 compiler_flags=-v
17430 linker_flags=-v
17431 verstring=
17432 output_objdir=.
17433 libname=conftest
17434 lt_save_allow_undefined_flag=$allow_undefined_flag
17435 allow_undefined_flag=
17436 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
17437 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
17438 ac_status=$?
17439 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17440 test $ac_status = 0; }
17441 then
17442 lt_cv_archive_cmds_need_lc=no
17443 else
17444 lt_cv_archive_cmds_need_lc=yes
17445 fi
17446 allow_undefined_flag=$lt_save_allow_undefined_flag
17447 else
17448 cat conftest.err 1>&5
17449 fi
17450 $RM conftest*
17451
17452 fi
17453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
17454 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
17455 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
17456 ;;
17457 esac
17458 fi
17459 ;;
17460 esac
17461
17462
17463
17464
17465
17466
17467
17468
17469
17470
17471
17472
17473
17474
17475
17476
17477
17478
17479
17480
17481
17482
17483
17484
17485
17486
17487
17488
17489
17490
17491
17492
17493
17494
17495
17496
17497
17498
17499
17500
17501
17502
17503
17504
17505
17506
17507
17508
17509
17510
17511
17512
17513
17514
17515
17516
17517
17518
17519
17520
17521
17522
17523
17524
17525
17526
17527
17528
17529
17530
17531
17532
17533
17534
17535
17536
17537
17538
17539
17540
17541
17542
17543
17544
17545
17546
17547
17548
17549
17550
17551
17552
17553
17554
17555
17556
17557
17558
17559
17560
17561
17562
17563
17564
17565
17566
17567
17568
17569
17570
17571
17572
17573
17574
17575
17576
17577
17578
17579
17580
17581
17582
17583
17584
17585
17586
17587
17588
17589
17590
17591
17592
17593
17594
17595
17596
17597
17598
17599
17600
17601
17602
17603
17604
17605
17606
17607
17608
17609
17610
17611
17612
17613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17614 printf %s "checking dynamic linker characteristics... " >&6; }
17615
17616 if test yes = "$GCC"; then
17617 case $host_os in
17618 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
17619 *) lt_awk_arg='/^libraries:/' ;;
17620 esac
17621 case $host_os in
17622 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
17623 *) lt_sed_strip_eq='s|=/|/|g' ;;
17624 esac
17625 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
17626 case $lt_search_path_spec in
17627 *\;*)
17628 # if the path contains ";" then we assume it to be the separator
17629 # otherwise default to the standard path separator (i.e. ":") - it is
17630 # assumed that no part of a normal pathname contains ";" but that should
17631 # okay in the real world where ";" in dirpaths is itself problematic.
17632 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
17633 ;;
17634 *)
17635 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
17636 ;;
17637 esac
17638 # Ok, now we have the path, separated by spaces, we can step through it
17639 # and add multilib dir if necessary...
17640 lt_tmp_lt_search_path_spec=
17641 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
17642 # ...but if some path component already ends with the multilib dir we assume
17643 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
17644 case "$lt_multi_os_dir; $lt_search_path_spec " in
17645 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
17646 lt_multi_os_dir=
17647 ;;
17648 esac
17649 for lt_sys_path in $lt_search_path_spec; do
17650 if test -d "$lt_sys_path$lt_multi_os_dir"; then
17651 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
17652 elif test -n "$lt_multi_os_dir"; then
17653 test -d "$lt_sys_path" && \
17654 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
17655 fi
17656 done
17657 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
17658 BEGIN {RS = " "; FS = "/|\n";} {
17659 lt_foo = "";
17660 lt_count = 0;
17661 for (lt_i = NF; lt_i > 0; lt_i--) {
17662 if ($lt_i != "" && $lt_i != ".") {
17663 if ($lt_i == "..") {
17664 lt_count++;
17665 } else {
17666 if (lt_count == 0) {
17667 lt_foo = "/" $lt_i lt_foo;
17668 } else {
17669 lt_count--;
17670 }
17671 }
17672 }
17673 }
17674 if (lt_foo != "") { lt_freq[lt_foo]++; }
17675 if (lt_freq[lt_foo] == 1) { print lt_foo; }
17676 }'`
17677 # AWK program above erroneously prepends '/' to C:/dos/paths
17678 # for these hosts.
17679 case $host_os in
17680 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
17681 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
17682 esac
17683 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
17684 else
17685 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17686 fi
17687 library_names_spec=
17688 libname_spec='lib$name'
17689 soname_spec=
17690 shrext_cmds=.so
17691 postinstall_cmds=
17692 postuninstall_cmds=
17693 finish_cmds=
17694 finish_eval=
17695 shlibpath_var=
17696 shlibpath_overrides_runpath=unknown
17697 version_type=none
17698 dynamic_linker="$host_os ld.so"
17699 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17700 need_lib_prefix=unknown
17701 hardcode_into_libs=no
17702
17703 # when you set need_version to no, make sure it does not cause -set_version
17704 # flags to be left without arguments
17705 need_version=unknown
17706
17707
17708
17709 case $host_os in
17710 aix3*)
17711 version_type=linux # correct to gnu/linux during the next big refactor
17712 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
17713 shlibpath_var=LIBPATH
17714
17715 # AIX 3 has no versioning support, so we append a major version to the name.
17716 soname_spec='$libname$release$shared_ext$major'
17717 ;;
17718
17719 aix[4-9]*)
17720 version_type=linux # correct to gnu/linux during the next big refactor
17721 need_lib_prefix=no
17722 need_version=no
17723 hardcode_into_libs=yes
17724 if test ia64 = "$host_cpu"; then
17725 # AIX 5 supports IA64
17726 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
17727 shlibpath_var=LD_LIBRARY_PATH
17728 else
17729 # With GCC up to 2.95.x, collect2 would create an import file
17730 # for dependence libraries. The import file would start with
17731 # the line '#! .'. This would cause the generated library to
17732 # depend on '.', always an invalid library. This was fixed in
17733 # development snapshots of GCC prior to 3.0.
17734 case $host_os in
17735 aix4 | aix4.[01] | aix4.[01].*)
17736 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17737 echo ' yes '
17738 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
17739 :
17740 else
17741 can_build_shared=no
17742 fi
17743 ;;
17744 esac
17745 # Using Import Files as archive members, it is possible to support
17746 # filename-based versioning of shared library archives on AIX. While
17747 # this would work for both with and without runtime linking, it will
17748 # prevent static linking of such archives. So we do filename-based
17749 # shared library versioning with .so extension only, which is used
17750 # when both runtime linking and shared linking is enabled.
17751 # Unfortunately, runtime linking may impact performance, so we do
17752 # not want this to be the default eventually. Also, we use the
17753 # versioned .so libs for executables only if there is the -brtl
17754 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
17755 # To allow for filename-based versioning support, we need to create
17756 # libNAME.so.V as an archive file, containing:
17757 # *) an Import File, referring to the versioned filename of the
17758 # archive as well as the shared archive member, telling the
17759 # bitwidth (32 or 64) of that shared object, and providing the
17760 # list of exported symbols of that shared object, eventually
17761 # decorated with the 'weak' keyword
17762 # *) the shared object with the F_LOADONLY flag set, to really avoid
17763 # it being seen by the linker.
17764 # At run time we better use the real file rather than another symlink,
17765 # but for link time we create the symlink libNAME.so -> libNAME.so.V
17766
17767 case $with_aix_soname,$aix_use_runtimelinking in
17768 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
17769 # soname into executable. Probably we can add versioning support to
17770 # collect2, so additional links can be useful in future.
17771 aix,yes) # traditional libtool
17772 dynamic_linker='AIX unversionable lib.so'
17773 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17774 # instead of lib<name>.a to let people know that these are not
17775 # typical AIX shared libraries.
17776 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17777 ;;
17778 aix,no) # traditional AIX only
17779 dynamic_linker='AIX lib.a(lib.so.V)'
17780 # We preserve .a as extension for shared libraries through AIX4.2
17781 # and later when we are not doing run time linking.
17782 library_names_spec='$libname$release.a $libname.a'
17783 soname_spec='$libname$release$shared_ext$major'
17784 ;;
17785 svr4,*) # full svr4 only
17786 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
17787 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
17788 # We do not specify a path in Import Files, so LIBPATH fires.
17789 shlibpath_overrides_runpath=yes
17790 ;;
17791 *,yes) # both, prefer svr4
17792 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
17793 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
17794 # unpreferred sharedlib libNAME.a needs extra handling
17795 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"'
17796 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"'
17797 # We do not specify a path in Import Files, so LIBPATH fires.
17798 shlibpath_overrides_runpath=yes
17799 ;;
17800 *,no) # both, prefer aix
17801 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
17802 library_names_spec='$libname$release.a $libname.a'
17803 soname_spec='$libname$release$shared_ext$major'
17804 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
17805 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)'
17806 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"'
17807 ;;
17808 esac
17809 shlibpath_var=LIBPATH
17810 fi
17811 ;;
17812
17813 amigaos*)
17814 case $host_cpu in
17815 powerpc)
17816 # Since July 2007 AmigaOS4 officially supports .so libraries.
17817 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17818 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17819 ;;
17820 m68k)
17821 library_names_spec='$libname.ixlibrary $libname.a'
17822 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17823 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'
17824 ;;
17825 esac
17826 ;;
17827
17828 beos*)
17829 library_names_spec='$libname$shared_ext'
17830 dynamic_linker="$host_os ld.so"
17831 shlibpath_var=LIBRARY_PATH
17832 ;;
17833
17834 bsdi[45]*)
17835 version_type=linux # correct to gnu/linux during the next big refactor
17836 need_version=no
17837 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17838 soname_spec='$libname$release$shared_ext$major'
17839 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17840 shlibpath_var=LD_LIBRARY_PATH
17841 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17842 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17843 # the default ld.so.conf also contains /usr/contrib/lib and
17844 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17845 # libtool to hard-code these into programs
17846 ;;
17847
17848 cygwin* | mingw* | pw32* | cegcc*)
17849 version_type=windows
17850 shrext_cmds=.dll
17851 need_version=no
17852 need_lib_prefix=no
17853
17854 case $GCC,$cc_basename in
17855 yes,*)
17856 # gcc
17857 library_names_spec='$libname.dll.a'
17858 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17859 postinstall_cmds='base_file=`basename \$file`~
17860 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
17861 dldir=$destdir/`dirname \$dlpath`~
17862 test -d \$dldir || mkdir -p \$dldir~
17863 $install_prog $dir/$dlname \$dldir/$dlname~
17864 chmod a+x \$dldir/$dlname~
17865 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17866 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17867 fi'
17868 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17869 dlpath=$dir/\$dldll~
17870 $RM \$dlpath'
17871 shlibpath_overrides_runpath=yes
17872
17873 case $host_os in
17874 cygwin*)
17875 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17876 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17877
17878 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
17879 ;;
17880 mingw* | cegcc*)
17881 # MinGW DLLs use traditional 'lib' prefix
17882 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17883 ;;
17884 pw32*)
17885 # pw32 DLLs use 'pw' prefix rather than 'lib'
17886 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17887 ;;
17888 esac
17889 dynamic_linker='Win32 ld.exe'
17890 ;;
17891
17892 *,cl* | *,icl*)
17893 # Native MSVC or ICC
17894 libname_spec='$name'
17895 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17896 library_names_spec='$libname.dll.lib'
17897
17898 case $build_os in
17899 mingw*)
17900 sys_lib_search_path_spec=
17901 lt_save_ifs=$IFS
17902 IFS=';'
17903 for lt_path in $LIB
17904 do
17905 IFS=$lt_save_ifs
17906 # Let DOS variable expansion print the short 8.3 style file name.
17907 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
17908 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
17909 done
17910 IFS=$lt_save_ifs
17911 # Convert to MSYS style.
17912 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
17913 ;;
17914 cygwin*)
17915 # Convert to unix form, then to dos form, then back to unix form
17916 # but this time dos style (no spaces!) so that the unix form looks
17917 # like /cygdrive/c/PROGRA~1:/cygdr...
17918 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
17919 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
17920 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17921 ;;
17922 *)
17923 sys_lib_search_path_spec=$LIB
17924 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
17925 # It is most probably a Windows format PATH.
17926 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17927 else
17928 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17929 fi
17930 # FIXME: find the short name or the path components, as spaces are
17931 # common. (e.g. "Program Files" -> "PROGRA~1")
17932 ;;
17933 esac
17934
17935 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17936 postinstall_cmds='base_file=`basename \$file`~
17937 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
17938 dldir=$destdir/`dirname \$dlpath`~
17939 test -d \$dldir || mkdir -p \$dldir~
17940 $install_prog $dir/$dlname \$dldir/$dlname'
17941 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17942 dlpath=$dir/\$dldll~
17943 $RM \$dlpath'
17944 shlibpath_overrides_runpath=yes
17945 dynamic_linker='Win32 link.exe'
17946 ;;
17947
17948 *)
17949 # Assume MSVC and ICC wrapper
17950 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
17951 dynamic_linker='Win32 ld.exe'
17952 ;;
17953 esac
17954 # FIXME: first we should search . and the directory the executable is in
17955 shlibpath_var=PATH
17956 ;;
17957
17958 darwin* | rhapsody*)
17959 dynamic_linker="$host_os dyld"
17960 version_type=darwin
17961 need_lib_prefix=no
17962 need_version=no
17963 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
17964 soname_spec='$libname$release$major$shared_ext'
17965 shlibpath_overrides_runpath=yes
17966 shlibpath_var=DYLD_LIBRARY_PATH
17967 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17968
17969 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
17970 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17971 ;;
17972
17973 dgux*)
17974 version_type=linux # correct to gnu/linux during the next big refactor
17975 need_lib_prefix=no
17976 need_version=no
17977 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17978 soname_spec='$libname$release$shared_ext$major'
17979 shlibpath_var=LD_LIBRARY_PATH
17980 ;;
17981
17982 freebsd* | dragonfly* | midnightbsd*)
17983 # DragonFly does not have aout. When/if they implement a new
17984 # versioning mechanism, adjust this.
17985 if test -x /usr/bin/objformat; then
17986 objformat=`/usr/bin/objformat`
17987 else
17988 case $host_os in
17989 freebsd[23].*) objformat=aout ;;
17990 *) objformat=elf ;;
17991 esac
17992 fi
17993 version_type=freebsd-$objformat
17994 case $version_type in
17995 freebsd-elf*)
17996 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17997 soname_spec='$libname$release$shared_ext$major'
17998 need_version=no
17999 need_lib_prefix=no
18000 ;;
18001 freebsd-*)
18002 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
18003 need_version=yes
18004 ;;
18005 esac
18006 shlibpath_var=LD_LIBRARY_PATH
18007 case $host_os in
18008 freebsd2.*)
18009 shlibpath_overrides_runpath=yes
18010 ;;
18011 freebsd3.[01]* | freebsdelf3.[01]*)
18012 shlibpath_overrides_runpath=yes
18013 hardcode_into_libs=yes
18014 ;;
18015 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18016 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18017 shlibpath_overrides_runpath=no
18018 hardcode_into_libs=yes
18019 ;;
18020 *) # from 4.6 on, and DragonFly
18021 shlibpath_overrides_runpath=yes
18022 hardcode_into_libs=yes
18023 ;;
18024 esac
18025 ;;
18026
18027 haiku*)
18028 version_type=linux # correct to gnu/linux during the next big refactor
18029 need_lib_prefix=no
18030 need_version=no
18031 dynamic_linker="$host_os runtime_loader"
18032 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18033 soname_spec='$libname$release$shared_ext$major'
18034 shlibpath_var=LIBRARY_PATH
18035 shlibpath_overrides_runpath=no
18036 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
18037 hardcode_into_libs=yes
18038 ;;
18039
18040 hpux9* | hpux10* | hpux11*)
18041 # Give a soname corresponding to the major version so that dld.sl refuses to
18042 # link against other versions.
18043 version_type=sunos
18044 need_lib_prefix=no
18045 need_version=no
18046 case $host_cpu in
18047 ia64*)
18048 shrext_cmds='.so'
18049 hardcode_into_libs=yes
18050 dynamic_linker="$host_os dld.so"
18051 shlibpath_var=LD_LIBRARY_PATH
18052 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18053 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18054 soname_spec='$libname$release$shared_ext$major'
18055 if test 32 = "$HPUX_IA64_MODE"; then
18056 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18057 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
18058 else
18059 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18060 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
18061 fi
18062 ;;
18063 hppa*64*)
18064 shrext_cmds='.sl'
18065 hardcode_into_libs=yes
18066 dynamic_linker="$host_os dld.sl"
18067 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18068 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
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 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18072 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18073 ;;
18074 *)
18075 shrext_cmds='.sl'
18076 dynamic_linker="$host_os dld.sl"
18077 shlibpath_var=SHLIB_PATH
18078 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18079 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18080 soname_spec='$libname$release$shared_ext$major'
18081 ;;
18082 esac
18083 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
18084 postinstall_cmds='chmod 555 $lib'
18085 # or fails outright, so override atomically:
18086 install_override_mode=555
18087 ;;
18088
18089 interix[3-9]*)
18090 version_type=linux # correct to gnu/linux during the next big refactor
18091 need_lib_prefix=no
18092 need_version=no
18093 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18094 soname_spec='$libname$release$shared_ext$major'
18095 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18096 shlibpath_var=LD_LIBRARY_PATH
18097 shlibpath_overrides_runpath=no
18098 hardcode_into_libs=yes
18099 ;;
18100
18101 irix5* | irix6* | nonstopux*)
18102 case $host_os in
18103 nonstopux*) version_type=nonstopux ;;
18104 *)
18105 if test yes = "$lt_cv_prog_gnu_ld"; then
18106 version_type=linux # correct to gnu/linux during the next big refactor
18107 else
18108 version_type=irix
18109 fi ;;
18110 esac
18111 need_lib_prefix=no
18112 need_version=no
18113 soname_spec='$libname$release$shared_ext$major'
18114 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
18115 case $host_os in
18116 irix5* | nonstopux*)
18117 libsuff= shlibsuff=
18118 ;;
18119 *)
18120 case $LD in # libtool.m4 will add one of these switches to LD
18121 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18122 libsuff= shlibsuff= libmagic=32-bit;;
18123 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18124 libsuff=32 shlibsuff=N32 libmagic=N32;;
18125 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18126 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18127 *) libsuff= shlibsuff= libmagic=never-match;;
18128 esac
18129 ;;
18130 esac
18131 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18132 shlibpath_overrides_runpath=no
18133 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
18134 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
18135 hardcode_into_libs=yes
18136 ;;
18137
18138 # No shared lib support for Linux oldld, aout, or coff.
18139 linux*oldld* | linux*aout* | linux*coff*)
18140 dynamic_linker=no
18141 ;;
18142
18143 linux*android*)
18144 version_type=none # Android doesn't support versioned libraries.
18145 need_lib_prefix=no
18146 need_version=no
18147 library_names_spec='$libname$release$shared_ext'
18148 soname_spec='$libname$release$shared_ext'
18149 finish_cmds=
18150 shlibpath_var=LD_LIBRARY_PATH
18151 shlibpath_overrides_runpath=yes
18152
18153 # This implies no fast_install, which is unacceptable.
18154 # Some rework will be needed to allow for fast_install
18155 # before this can be enabled.
18156 hardcode_into_libs=yes
18157
18158 dynamic_linker='Android linker'
18159 # Don't embed -rpath directories since the linker doesn't support them.
18160 hardcode_libdir_flag_spec='-L$libdir'
18161 ;;
18162
18163 # This must be glibc/ELF.
18164 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
18165 version_type=linux # correct to gnu/linux during the next big refactor
18166 need_lib_prefix=no
18167 need_version=no
18168 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18169 soname_spec='$libname$release$shared_ext$major'
18170 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18171 shlibpath_var=LD_LIBRARY_PATH
18172 shlibpath_overrides_runpath=no
18173
18174 # Some binutils ld are patched to set DT_RUNPATH
18175 if test ${lt_cv_shlibpath_overrides_runpath+y}
18176 then :
18177 printf %s "(cached) " >&6
18178 else $as_nop
18179 lt_cv_shlibpath_overrides_runpath=no
18180 save_LDFLAGS=$LDFLAGS
18181 save_libdir=$libdir
18182 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
18183 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
18184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18185 /* end confdefs.h. */
18186
18187 int
18188 main (void)
18189 {
18190
18191 ;
18192 return 0;
18193 }
18194 _ACEOF
18195 if ac_fn_c_try_link "$LINENO"
18196 then :
18197 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
18198 then :
18199 lt_cv_shlibpath_overrides_runpath=yes
18200 fi
18201 fi
18202 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18203 conftest$ac_exeext conftest.$ac_ext
18204 LDFLAGS=$save_LDFLAGS
18205 libdir=$save_libdir
18206
18207 fi
18208
18209 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
18210
18211 # This implies no fast_install, which is unacceptable.
18212 # Some rework will be needed to allow for fast_install
18213 # before this can be enabled.
18214 hardcode_into_libs=yes
18215
18216 # Ideally, we could use ldconfig to report *all* directores which are
18217 # searched for libraries, however this is still not possible. Aside from not
18218 # being certain /sbin/ldconfig is available, command
18219 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
18220 # even though it is searched at run-time. Try to do the best guess by
18221 # appending ld.so.conf contents (and includes) to the search path.
18222 if test -f /etc/ld.so.conf; then
18223 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' ' '`
18224 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18225 fi
18226
18227 # We used to test for /lib/ld.so.1 and disable shared libraries on
18228 # powerpc, because MkLinux only supported shared libraries with the
18229 # GNU dynamic linker. Since this was broken with cross compilers,
18230 # most powerpc-linux boxes support dynamic linking these days and
18231 # people can always --disable-shared, the test was removed, and we
18232 # assume the GNU/Linux dynamic linker is in use.
18233 dynamic_linker='GNU/Linux ld.so'
18234 ;;
18235
18236 netbsd*)
18237 version_type=sunos
18238 need_lib_prefix=no
18239 need_version=no
18240 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18241 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
18242 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18243 dynamic_linker='NetBSD (a.out) ld.so'
18244 else
18245 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18246 soname_spec='$libname$release$shared_ext$major'
18247 dynamic_linker='NetBSD ld.elf_so'
18248 fi
18249 shlibpath_var=LD_LIBRARY_PATH
18250 shlibpath_overrides_runpath=yes
18251 hardcode_into_libs=yes
18252 ;;
18253
18254 newsos6)
18255 version_type=linux # correct to gnu/linux during the next big refactor
18256 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18257 shlibpath_var=LD_LIBRARY_PATH
18258 shlibpath_overrides_runpath=yes
18259 ;;
18260
18261 *nto* | *qnx*)
18262 version_type=qnx
18263 need_lib_prefix=no
18264 need_version=no
18265 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18266 soname_spec='$libname$release$shared_ext$major'
18267 shlibpath_var=LD_LIBRARY_PATH
18268 shlibpath_overrides_runpath=no
18269 hardcode_into_libs=yes
18270 dynamic_linker='ldqnx.so'
18271 ;;
18272
18273 openbsd* | bitrig*)
18274 version_type=sunos
18275 sys_lib_dlsearch_path_spec=/usr/lib
18276 need_lib_prefix=no
18277 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
18278 need_version=no
18279 else
18280 need_version=yes
18281 fi
18282 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
18283 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18284 shlibpath_var=LD_LIBRARY_PATH
18285 shlibpath_overrides_runpath=yes
18286 ;;
18287
18288 os2*)
18289 libname_spec='$name'
18290 version_type=windows
18291 shrext_cmds=.dll
18292 need_version=no
18293 need_lib_prefix=no
18294 # OS/2 can only load a DLL with a base name of 8 characters or less.
18295 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
18296 v=$($ECHO $release$versuffix | tr -d .-);
18297 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
18298 $ECHO $n$v`$shared_ext'
18299 library_names_spec='${libname}_dll.$libext'
18300 dynamic_linker='OS/2 ld.exe'
18301 shlibpath_var=BEGINLIBPATH
18302 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18303 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18304 postinstall_cmds='base_file=`basename \$file`~
18305 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
18306 dldir=$destdir/`dirname \$dlpath`~
18307 test -d \$dldir || mkdir -p \$dldir~
18308 $install_prog $dir/$dlname \$dldir/$dlname~
18309 chmod a+x \$dldir/$dlname~
18310 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
18311 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
18312 fi'
18313 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
18314 dlpath=$dir/\$dldll~
18315 $RM \$dlpath'
18316 ;;
18317
18318 osf3* | osf4* | osf5*)
18319 version_type=osf
18320 need_lib_prefix=no
18321 need_version=no
18322 soname_spec='$libname$release$shared_ext$major'
18323 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18324 shlibpath_var=LD_LIBRARY_PATH
18325 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18326 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18327 ;;
18328
18329 rdos*)
18330 dynamic_linker=no
18331 ;;
18332
18333 solaris*)
18334 version_type=linux # correct to gnu/linux during the next big refactor
18335 need_lib_prefix=no
18336 need_version=no
18337 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18338 soname_spec='$libname$release$shared_ext$major'
18339 shlibpath_var=LD_LIBRARY_PATH
18340 shlibpath_overrides_runpath=yes
18341 hardcode_into_libs=yes
18342 # ldd complains unless libraries are executable
18343 postinstall_cmds='chmod +x $lib'
18344 ;;
18345
18346 sunos4*)
18347 version_type=sunos
18348 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
18349 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18350 shlibpath_var=LD_LIBRARY_PATH
18351 shlibpath_overrides_runpath=yes
18352 if test yes = "$with_gnu_ld"; then
18353 need_lib_prefix=no
18354 fi
18355 need_version=yes
18356 ;;
18357
18358 sysv4 | sysv4.3*)
18359 version_type=linux # correct to gnu/linux during the next big refactor
18360 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18361 soname_spec='$libname$release$shared_ext$major'
18362 shlibpath_var=LD_LIBRARY_PATH
18363 case $host_vendor in
18364 sni)
18365 shlibpath_overrides_runpath=no
18366 need_lib_prefix=no
18367 runpath_var=LD_RUN_PATH
18368 ;;
18369 siemens)
18370 need_lib_prefix=no
18371 ;;
18372 motorola)
18373 need_lib_prefix=no
18374 need_version=no
18375 shlibpath_overrides_runpath=no
18376 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18377 ;;
18378 esac
18379 ;;
18380
18381 sysv4*MP*)
18382 if test -d /usr/nec; then
18383 version_type=linux # correct to gnu/linux during the next big refactor
18384 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
18385 soname_spec='$libname$shared_ext.$major'
18386 shlibpath_var=LD_LIBRARY_PATH
18387 fi
18388 ;;
18389
18390 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18391 version_type=sco
18392 need_lib_prefix=no
18393 need_version=no
18394 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
18395 soname_spec='$libname$release$shared_ext$major'
18396 shlibpath_var=LD_LIBRARY_PATH
18397 shlibpath_overrides_runpath=yes
18398 hardcode_into_libs=yes
18399 if test yes = "$with_gnu_ld"; then
18400 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18401 else
18402 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18403 case $host_os in
18404 sco3.2v5*)
18405 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18406 ;;
18407 esac
18408 fi
18409 sys_lib_dlsearch_path_spec='/usr/lib'
18410 ;;
18411
18412 tpf*)
18413 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
18414 version_type=linux # correct to gnu/linux during the next big refactor
18415 need_lib_prefix=no
18416 need_version=no
18417 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18418 shlibpath_var=LD_LIBRARY_PATH
18419 shlibpath_overrides_runpath=no
18420 hardcode_into_libs=yes
18421 ;;
18422
18423 uts4*)
18424 version_type=linux # correct to gnu/linux during the next big refactor
18425 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18426 soname_spec='$libname$release$shared_ext$major'
18427 shlibpath_var=LD_LIBRARY_PATH
18428 ;;
18429
18430 *)
18431 dynamic_linker=no
18432 ;;
18433 esac
18434 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
18435 printf "%s\n" "$dynamic_linker" >&6; }
18436 test no = "$dynamic_linker" && can_build_shared=no
18437
18438 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18439 if test yes = "$GCC"; then
18440 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18441 fi
18442
18443 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
18444 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
18445 fi
18446
18447 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
18448 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
18449 fi
18450
18451 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
18452 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
18453
18454 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
18455 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
18456
18457 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
18458 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
18459
18460
18461
18462
18463
18464
18465
18466
18467
18468
18469
18470
18471
18472
18473
18474
18475
18476
18477
18478
18479
18480
18481
18482
18483
18484
18485
18486
18487
18488
18489
18490
18491
18492
18493
18494
18495
18496
18497
18498
18499
18500
18501
18502
18503
18504
18505
18506
18507
18508
18509
18510
18511
18512
18513
18514
18515
18516
18517
18518
18519
18520
18521
18522
18523
18524
18525
18526
18527
18528
18529
18530
18531
18532
18533
18534
18535
18536
18537
18538
18539
18540
18541
18542
18543
18544
18545
18546
18547
18548
18549
18550
18551
18552
18553
18554
18555
18556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
18557 printf %s "checking how to hardcode library paths into programs... " >&6; }
18558 hardcode_action=
18559 if test -n "$hardcode_libdir_flag_spec" ||
18560 test -n "$runpath_var" ||
18561 test yes = "$hardcode_automatic"; then
18562
18563 # We can hardcode non-existent directories.
18564 if test no != "$hardcode_direct" &&
18565 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18566 # have to relink, otherwise we might link with an installed library
18567 # when we should be linking with a yet-to-be-installed one
18568 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
18569 test no != "$hardcode_minus_L"; then
18570 # Linking always hardcodes the temporary library directory.
18571 hardcode_action=relink
18572 else
18573 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18574 hardcode_action=immediate
18575 fi
18576 else
18577 # We cannot hardcode anything, or else we can only hardcode existing
18578 # directories.
18579 hardcode_action=unsupported
18580 fi
18581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
18582 printf "%s\n" "$hardcode_action" >&6; }
18583
18584 if test relink = "$hardcode_action" ||
18585 test yes = "$inherit_rpath"; then
18586 # Fast installation is not supported
18587 enable_fast_install=no
18588 elif test yes = "$shlibpath_overrides_runpath" ||
18589 test no = "$enable_shared"; then
18590 # Fast installation is not necessary
18591 enable_fast_install=needless
18592 fi
18593
18594
18595
18596
18597
18598
18599 if test yes != "$enable_dlopen"; then
18600 enable_dlopen=unknown
18601 enable_dlopen_self=unknown
18602 enable_dlopen_self_static=unknown
18603 else
18604 lt_cv_dlopen=no
18605 lt_cv_dlopen_libs=
18606
18607 case $host_os in
18608 beos*)
18609 lt_cv_dlopen=load_add_on
18610 lt_cv_dlopen_libs=
18611 lt_cv_dlopen_self=yes
18612 ;;
18613
18614 mingw* | pw32* | cegcc*)
18615 lt_cv_dlopen=LoadLibrary
18616 lt_cv_dlopen_libs=
18617 ;;
18618
18619 cygwin*)
18620 lt_cv_dlopen=dlopen
18621 lt_cv_dlopen_libs=
18622 ;;
18623
18624 darwin*)
18625 # if libdl is installed we need to link against it
18626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
18627 printf %s "checking for dlopen in -ldl... " >&6; }
18628 if test ${ac_cv_lib_dl_dlopen+y}
18629 then :
18630 printf %s "(cached) " >&6
18631 else $as_nop
18632 ac_check_lib_save_LIBS=$LIBS
18633 LIBS="-ldl $LIBS"
18634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18635 /* end confdefs.h. */
18636
18637 /* Override any GCC internal prototype to avoid an error.
18638 Use char because int might match the return type of a GCC
18639 builtin and then its argument prototype would still apply. */
18640 char dlopen ();
18641 int
18642 main (void)
18643 {
18644 return dlopen ();
18645 ;
18646 return 0;
18647 }
18648 _ACEOF
18649 if ac_fn_c_try_link "$LINENO"
18650 then :
18651 ac_cv_lib_dl_dlopen=yes
18652 else $as_nop
18653 ac_cv_lib_dl_dlopen=no
18654 fi
18655 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18656 conftest$ac_exeext conftest.$ac_ext
18657 LIBS=$ac_check_lib_save_LIBS
18658 fi
18659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18660 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
18661 if test "x$ac_cv_lib_dl_dlopen" = xyes
18662 then :
18663 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
18664 else $as_nop
18665
18666 lt_cv_dlopen=dyld
18667 lt_cv_dlopen_libs=
18668 lt_cv_dlopen_self=yes
18669
18670 fi
18671
18672 ;;
18673
18674 tpf*)
18675 # Don't try to run any link tests for TPF. We know it's impossible
18676 # because TPF is a cross-compiler, and we know how we open DSOs.
18677 lt_cv_dlopen=dlopen
18678 lt_cv_dlopen_libs=
18679 lt_cv_dlopen_self=no
18680 ;;
18681
18682 *)
18683 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
18684 if test "x$ac_cv_func_shl_load" = xyes
18685 then :
18686 lt_cv_dlopen=shl_load
18687 else $as_nop
18688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
18689 printf %s "checking for shl_load in -ldld... " >&6; }
18690 if test ${ac_cv_lib_dld_shl_load+y}
18691 then :
18692 printf %s "(cached) " >&6
18693 else $as_nop
18694 ac_check_lib_save_LIBS=$LIBS
18695 LIBS="-ldld $LIBS"
18696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18697 /* end confdefs.h. */
18698
18699 /* Override any GCC internal prototype to avoid an error.
18700 Use char because int might match the return type of a GCC
18701 builtin and then its argument prototype would still apply. */
18702 char shl_load ();
18703 int
18704 main (void)
18705 {
18706 return shl_load ();
18707 ;
18708 return 0;
18709 }
18710 _ACEOF
18711 if ac_fn_c_try_link "$LINENO"
18712 then :
18713 ac_cv_lib_dld_shl_load=yes
18714 else $as_nop
18715 ac_cv_lib_dld_shl_load=no
18716 fi
18717 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18718 conftest$ac_exeext conftest.$ac_ext
18719 LIBS=$ac_check_lib_save_LIBS
18720 fi
18721 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
18722 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
18723 if test "x$ac_cv_lib_dld_shl_load" = xyes
18724 then :
18725 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
18726 else $as_nop
18727 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
18728 if test "x$ac_cv_func_dlopen" = xyes
18729 then :
18730 lt_cv_dlopen=dlopen
18731 else $as_nop
18732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
18733 printf %s "checking for dlopen in -ldl... " >&6; }
18734 if test ${ac_cv_lib_dl_dlopen+y}
18735 then :
18736 printf %s "(cached) " >&6
18737 else $as_nop
18738 ac_check_lib_save_LIBS=$LIBS
18739 LIBS="-ldl $LIBS"
18740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18741 /* end confdefs.h. */
18742
18743 /* Override any GCC internal prototype to avoid an error.
18744 Use char because int might match the return type of a GCC
18745 builtin and then its argument prototype would still apply. */
18746 char dlopen ();
18747 int
18748 main (void)
18749 {
18750 return dlopen ();
18751 ;
18752 return 0;
18753 }
18754 _ACEOF
18755 if ac_fn_c_try_link "$LINENO"
18756 then :
18757 ac_cv_lib_dl_dlopen=yes
18758 else $as_nop
18759 ac_cv_lib_dl_dlopen=no
18760 fi
18761 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18762 conftest$ac_exeext conftest.$ac_ext
18763 LIBS=$ac_check_lib_save_LIBS
18764 fi
18765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18766 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
18767 if test "x$ac_cv_lib_dl_dlopen" = xyes
18768 then :
18769 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
18770 else $as_nop
18771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
18772 printf %s "checking for dlopen in -lsvld... " >&6; }
18773 if test ${ac_cv_lib_svld_dlopen+y}
18774 then :
18775 printf %s "(cached) " >&6
18776 else $as_nop
18777 ac_check_lib_save_LIBS=$LIBS
18778 LIBS="-lsvld $LIBS"
18779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18780 /* end confdefs.h. */
18781
18782 /* Override any GCC internal prototype to avoid an error.
18783 Use char because int might match the return type of a GCC
18784 builtin and then its argument prototype would still apply. */
18785 char dlopen ();
18786 int
18787 main (void)
18788 {
18789 return dlopen ();
18790 ;
18791 return 0;
18792 }
18793 _ACEOF
18794 if ac_fn_c_try_link "$LINENO"
18795 then :
18796 ac_cv_lib_svld_dlopen=yes
18797 else $as_nop
18798 ac_cv_lib_svld_dlopen=no
18799 fi
18800 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18801 conftest$ac_exeext conftest.$ac_ext
18802 LIBS=$ac_check_lib_save_LIBS
18803 fi
18804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
18805 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
18806 if test "x$ac_cv_lib_svld_dlopen" = xyes
18807 then :
18808 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
18809 else $as_nop
18810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
18811 printf %s "checking for dld_link in -ldld... " >&6; }
18812 if test ${ac_cv_lib_dld_dld_link+y}
18813 then :
18814 printf %s "(cached) " >&6
18815 else $as_nop
18816 ac_check_lib_save_LIBS=$LIBS
18817 LIBS="-ldld $LIBS"
18818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18819 /* end confdefs.h. */
18820
18821 /* Override any GCC internal prototype to avoid an error.
18822 Use char because int might match the return type of a GCC
18823 builtin and then its argument prototype would still apply. */
18824 char dld_link ();
18825 int
18826 main (void)
18827 {
18828 return dld_link ();
18829 ;
18830 return 0;
18831 }
18832 _ACEOF
18833 if ac_fn_c_try_link "$LINENO"
18834 then :
18835 ac_cv_lib_dld_dld_link=yes
18836 else $as_nop
18837 ac_cv_lib_dld_dld_link=no
18838 fi
18839 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18840 conftest$ac_exeext conftest.$ac_ext
18841 LIBS=$ac_check_lib_save_LIBS
18842 fi
18843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
18844 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
18845 if test "x$ac_cv_lib_dld_dld_link" = xyes
18846 then :
18847 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
18848 fi
18849
18850
18851 fi
18852
18853
18854 fi
18855
18856
18857 fi
18858
18859
18860 fi
18861
18862
18863 fi
18864
18865 ;;
18866 esac
18867
18868 if test no = "$lt_cv_dlopen"; then
18869 enable_dlopen=no
18870 else
18871 enable_dlopen=yes
18872 fi
18873
18874 case $lt_cv_dlopen in
18875 dlopen)
18876 save_CPPFLAGS=$CPPFLAGS
18877 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18878
18879 save_LDFLAGS=$LDFLAGS
18880 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18881
18882 save_LIBS=$LIBS
18883 LIBS="$lt_cv_dlopen_libs $LIBS"
18884
18885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
18886 printf %s "checking whether a program can dlopen itself... " >&6; }
18887 if test ${lt_cv_dlopen_self+y}
18888 then :
18889 printf %s "(cached) " >&6
18890 else $as_nop
18891 if test yes = "$cross_compiling"; then :
18892 lt_cv_dlopen_self=cross
18893 else
18894 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18895 lt_status=$lt_dlunknown
18896 cat > conftest.$ac_ext <<_LT_EOF
18897 #line $LINENO "configure"
18898 #include "confdefs.h"
18899
18900 #if HAVE_DLFCN_H
18901 #include <dlfcn.h>
18902 #endif
18903
18904 #include <stdio.h>
18905
18906 #ifdef RTLD_GLOBAL
18907 # define LT_DLGLOBAL RTLD_GLOBAL
18908 #else
18909 # ifdef DL_GLOBAL
18910 # define LT_DLGLOBAL DL_GLOBAL
18911 # else
18912 # define LT_DLGLOBAL 0
18913 # endif
18914 #endif
18915
18916 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18917 find out it does not work in some platform. */
18918 #ifndef LT_DLLAZY_OR_NOW
18919 # ifdef RTLD_LAZY
18920 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18921 # else
18922 # ifdef DL_LAZY
18923 # define LT_DLLAZY_OR_NOW DL_LAZY
18924 # else
18925 # ifdef RTLD_NOW
18926 # define LT_DLLAZY_OR_NOW RTLD_NOW
18927 # else
18928 # ifdef DL_NOW
18929 # define LT_DLLAZY_OR_NOW DL_NOW
18930 # else
18931 # define LT_DLLAZY_OR_NOW 0
18932 # endif
18933 # endif
18934 # endif
18935 # endif
18936 #endif
18937
18938 /* When -fvisibility=hidden is used, assume the code has been annotated
18939 correspondingly for the symbols needed. */
18940 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18941 int fnord () __attribute__((visibility("default")));
18942 #endif
18943
18944 int fnord () { return 42; }
18945 int main ()
18946 {
18947 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18948 int status = $lt_dlunknown;
18949
18950 if (self)
18951 {
18952 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18953 else
18954 {
18955 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18956 else puts (dlerror ());
18957 }
18958 /* dlclose (self); */
18959 }
18960 else
18961 puts (dlerror ());
18962
18963 return status;
18964 }
18965 _LT_EOF
18966 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18967 (eval $ac_link) 2>&5
18968 ac_status=$?
18969 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18970 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
18971 (./conftest; exit; ) >&5 2>/dev/null
18972 lt_status=$?
18973 case x$lt_status in
18974 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18975 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18976 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
18977 esac
18978 else :
18979 # compilation failed
18980 lt_cv_dlopen_self=no
18981 fi
18982 fi
18983 rm -fr conftest*
18984
18985
18986 fi
18987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
18988 printf "%s\n" "$lt_cv_dlopen_self" >&6; }
18989
18990 if test yes = "$lt_cv_dlopen_self"; then
18991 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
18992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
18993 printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
18994 if test ${lt_cv_dlopen_self_static+y}
18995 then :
18996 printf %s "(cached) " >&6
18997 else $as_nop
18998 if test yes = "$cross_compiling"; then :
18999 lt_cv_dlopen_self_static=cross
19000 else
19001 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19002 lt_status=$lt_dlunknown
19003 cat > conftest.$ac_ext <<_LT_EOF
19004 #line $LINENO "configure"
19005 #include "confdefs.h"
19006
19007 #if HAVE_DLFCN_H
19008 #include <dlfcn.h>
19009 #endif
19010
19011 #include <stdio.h>
19012
19013 #ifdef RTLD_GLOBAL
19014 # define LT_DLGLOBAL RTLD_GLOBAL
19015 #else
19016 # ifdef DL_GLOBAL
19017 # define LT_DLGLOBAL DL_GLOBAL
19018 # else
19019 # define LT_DLGLOBAL 0
19020 # endif
19021 #endif
19022
19023 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19024 find out it does not work in some platform. */
19025 #ifndef LT_DLLAZY_OR_NOW
19026 # ifdef RTLD_LAZY
19027 # define LT_DLLAZY_OR_NOW RTLD_LAZY
19028 # else
19029 # ifdef DL_LAZY
19030 # define LT_DLLAZY_OR_NOW DL_LAZY
19031 # else
19032 # ifdef RTLD_NOW
19033 # define LT_DLLAZY_OR_NOW RTLD_NOW
19034 # else
19035 # ifdef DL_NOW
19036 # define LT_DLLAZY_OR_NOW DL_NOW
19037 # else
19038 # define LT_DLLAZY_OR_NOW 0
19039 # endif
19040 # endif
19041 # endif
19042 # endif
19043 #endif
19044
19045 /* When -fvisibility=hidden is used, assume the code has been annotated
19046 correspondingly for the symbols needed. */
19047 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
19048 int fnord () __attribute__((visibility("default")));
19049 #endif
19050
19051 int fnord () { return 42; }
19052 int main ()
19053 {
19054 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19055 int status = $lt_dlunknown;
19056
19057 if (self)
19058 {
19059 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
19060 else
19061 {
19062 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19063 else puts (dlerror ());
19064 }
19065 /* dlclose (self); */
19066 }
19067 else
19068 puts (dlerror ());
19069
19070 return status;
19071 }
19072 _LT_EOF
19073 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
19074 (eval $ac_link) 2>&5
19075 ac_status=$?
19076 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19077 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
19078 (./conftest; exit; ) >&5 2>/dev/null
19079 lt_status=$?
19080 case x$lt_status in
19081 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
19082 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
19083 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
19084 esac
19085 else :
19086 # compilation failed
19087 lt_cv_dlopen_self_static=no
19088 fi
19089 fi
19090 rm -fr conftest*
19091
19092
19093 fi
19094 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
19095 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
19096 fi
19097
19098 CPPFLAGS=$save_CPPFLAGS
19099 LDFLAGS=$save_LDFLAGS
19100 LIBS=$save_LIBS
19101 ;;
19102 esac
19103
19104 case $lt_cv_dlopen_self in
19105 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
19106 *) enable_dlopen_self=unknown ;;
19107 esac
19108
19109 case $lt_cv_dlopen_self_static in
19110 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
19111 *) enable_dlopen_self_static=unknown ;;
19112 esac
19113 fi
19114
19115
19116
19117
19118
19119
19120
19121
19122
19123
19124
19125
19126
19127
19128
19129
19130
19131 striplib=
19132 old_striplib=
19133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
19134 printf %s "checking whether stripping libraries is possible... " >&6; }
19135 if test -z "$STRIP"; then
19136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19137 printf "%s\n" "no" >&6; }
19138 else
19139 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
19140 old_striplib="$STRIP --strip-debug"
19141 striplib="$STRIP --strip-unneeded"
19142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19143 printf "%s\n" "yes" >&6; }
19144 else
19145 case $host_os in
19146 darwin*)
19147 # FIXME - insert some real tests, host_os isn't really good enough
19148 striplib="$STRIP -x"
19149 old_striplib="$STRIP -S"
19150 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19151 printf "%s\n" "yes" >&6; }
19152 ;;
19153 freebsd*)
19154 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
19155 old_striplib="$STRIP --strip-debug"
19156 striplib="$STRIP --strip-unneeded"
19157 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19158 printf "%s\n" "yes" >&6; }
19159 else
19160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19161 printf "%s\n" "no" >&6; }
19162 fi
19163 ;;
19164 *)
19165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19166 printf "%s\n" "no" >&6; }
19167 ;;
19168 esac
19169 fi
19170 fi
19171
19172
19173
19174
19175
19176
19177
19178
19179
19180
19181
19182
19183 # Report what library types will actually be built
19184 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
19185 printf %s "checking if libtool supports shared libraries... " >&6; }
19186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
19187 printf "%s\n" "$can_build_shared" >&6; }
19188
19189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
19190 printf %s "checking whether to build shared libraries... " >&6; }
19191 test no = "$can_build_shared" && enable_shared=no
19192
19193 # On AIX, shared libraries and static libraries use the same namespace, and
19194 # are all built from PIC.
19195 case $host_os in
19196 aix3*)
19197 test yes = "$enable_shared" && enable_static=no
19198 if test -n "$RANLIB"; then
19199 archive_cmds="$archive_cmds~\$RANLIB \$lib"
19200 postinstall_cmds='$RANLIB $lib'
19201 fi
19202 ;;
19203
19204 aix[4-9]*)
19205 if test ia64 != "$host_cpu"; then
19206 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
19207 yes,aix,yes) ;; # shared object as lib.so file only
19208 yes,svr4,*) ;; # shared object as lib.so archive member only
19209 yes,*) enable_static=no ;; # shared object in lib.a archive as well
19210 esac
19211 fi
19212 ;;
19213 esac
19214 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
19215 printf "%s\n" "$enable_shared" >&6; }
19216
19217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
19218 printf %s "checking whether to build static libraries... " >&6; }
19219 # Make sure either enable_shared or enable_static is yes.
19220 test yes = "$enable_shared" || enable_static=yes
19221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
19222 printf "%s\n" "$enable_static" >&6; }
19223
19224
19225
19226
19227 fi
19228 ac_ext=c
19229 ac_cpp='$CPP $CPPFLAGS'
19230 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19231 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19232 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19233
19234 CC=$lt_save_CC
19235
19236
19237
19238
19239
19240
19241
19242
19243
19244
19245
19246
19247
19248
19249
19250 ac_config_commands="$ac_config_commands libtool"
19251
19252
19253
19254
19255 # Only expand once:
19256
19257
19258
19259
19260
19261 # Options
19262 # Define a configure option for an alternate module directory
19263
19264 # Check whether --with-xorg-module-dir was given.
19265 if test ${with_xorg_module_dir+y}
19266 then :
19267 withval=$with_xorg_module_dir; moduledir="$withval"
19268 else $as_nop
19269 moduledir="$libdir/xorg/modules"
19270 fi
19271
19272
19273 # Store the list of server defined optional extensions in REQUIRED_MODULES
19274
19275
19276 SAVE_CFLAGS="$CFLAGS"
19277 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
19278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19279 /* end confdefs.h. */
19280
19281 #include "xorg-server.h"
19282 #if !defined RANDR
19283 #error RANDR not defined
19284 #endif
19285
19286 int
19287 main (void)
19288 {
19289
19290 ;
19291 return 0;
19292 }
19293 _ACEOF
19294 if ac_fn_c_try_compile "$LINENO"
19295 then :
19296 _EXT_CHECK=yes
19297 else $as_nop
19298 _EXT_CHECK=no
19299 fi
19300 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19301 CFLAGS="$SAVE_CFLAGS"
19302 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if RANDR is defined" >&5
19303 printf %s "checking if RANDR is defined... " >&6; }
19304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
19305 printf "%s\n" "$_EXT_CHECK" >&6; }
19306 if test "$_EXT_CHECK" != no; then
19307 REQUIRED_MODULES="$REQUIRED_MODULES randrproto"
19308 fi
19309
19310
19311
19312 SAVE_CFLAGS="$CFLAGS"
19313 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
19314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19315 /* end confdefs.h. */
19316
19317 #include "xorg-server.h"
19318 #if !defined RENDER
19319 #error RENDER not defined
19320 #endif
19321
19322 int
19323 main (void)
19324 {
19325
19326 ;
19327 return 0;
19328 }
19329 _ACEOF
19330 if ac_fn_c_try_compile "$LINENO"
19331 then :
19332 _EXT_CHECK=yes
19333 else $as_nop
19334 _EXT_CHECK=no
19335 fi
19336 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19337 CFLAGS="$SAVE_CFLAGS"
19338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if RENDER is defined" >&5
19339 printf %s "checking if RENDER is defined... " >&6; }
19340 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
19341 printf "%s\n" "$_EXT_CHECK" >&6; }
19342 if test "$_EXT_CHECK" != no; then
19343 REQUIRED_MODULES="$REQUIRED_MODULES renderproto"
19344 fi
19345
19346
19347
19348 SAVE_CFLAGS="$CFLAGS"
19349 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
19350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19351 /* end confdefs.h. */
19352
19353 #include "xorg-server.h"
19354 #if !defined XV
19355 #error XV not defined
19356 #endif
19357
19358 int
19359 main (void)
19360 {
19361
19362 ;
19363 return 0;
19364 }
19365 _ACEOF
19366 if ac_fn_c_try_compile "$LINENO"
19367 then :
19368 _EXT_CHECK=yes
19369 else $as_nop
19370 _EXT_CHECK=no
19371 fi
19372 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19373 CFLAGS="$SAVE_CFLAGS"
19374 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if XV is defined" >&5
19375 printf %s "checking if XV is defined... " >&6; }
19376 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
19377 printf "%s\n" "$_EXT_CHECK" >&6; }
19378 if test "$_EXT_CHECK" != no; then
19379 REQUIRED_MODULES="$REQUIRED_MODULES videoproto"
19380 fi
19381
19382
19383
19384 SAVE_CFLAGS="$CFLAGS"
19385 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
19386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19387 /* end confdefs.h. */
19388
19389 #include "xorg-server.h"
19390 #if !defined DPMSExtension
19391 #error DPMSExtension not defined
19392 #endif
19393
19394 int
19395 main (void)
19396 {
19397
19398 ;
19399 return 0;
19400 }
19401 _ACEOF
19402 if ac_fn_c_try_compile "$LINENO"
19403 then :
19404 _EXT_CHECK=yes
19405 else $as_nop
19406 _EXT_CHECK=no
19407 fi
19408 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19409 CFLAGS="$SAVE_CFLAGS"
19410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if DPMSExtension is defined" >&5
19411 printf %s "checking if DPMSExtension is defined... " >&6; }
19412 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
19413 printf "%s\n" "$_EXT_CHECK" >&6; }
19414 if test "$_EXT_CHECK" != no; then
19415 REQUIRED_MODULES="$REQUIRED_MODULES xextproto"
19416 fi
19417
19418
19419 # Obtain compiler/linker options for the driver dependencies
19420
19421 pkg_failed=no
19422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XORG" >&5
19423 printf %s "checking for XORG... " >&6; }
19424
19425 if test -n "$XORG_CFLAGS"; then
19426 pkg_cv_XORG_CFLAGS="$XORG_CFLAGS"
19427 elif test -n "$PKG_CONFIG"; then
19428 if test -n "$PKG_CONFIG" && \
19429 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.3 xproto fontsproto \$REQUIRED_MODULES\""; } >&5
19430 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.3 xproto fontsproto $REQUIRED_MODULES") 2>&5
19431 ac_status=$?
19432 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19433 test $ac_status = 0; }; then
19434 pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.3 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
19435 test "x$?" != "x0" && pkg_failed=yes
19436 else
19437 pkg_failed=yes
19438 fi
19439 else
19440 pkg_failed=untried
19441 fi
19442 if test -n "$XORG_LIBS"; then
19443 pkg_cv_XORG_LIBS="$XORG_LIBS"
19444 elif test -n "$PKG_CONFIG"; then
19445 if test -n "$PKG_CONFIG" && \
19446 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.3 xproto fontsproto \$REQUIRED_MODULES\""; } >&5
19447 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.3 xproto fontsproto $REQUIRED_MODULES") 2>&5
19448 ac_status=$?
19449 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19450 test $ac_status = 0; }; then
19451 pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.3 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
19452 test "x$?" != "x0" && pkg_failed=yes
19453 else
19454 pkg_failed=yes
19455 fi
19456 else
19457 pkg_failed=untried
19458 fi
19459
19460
19461
19462 if test $pkg_failed = yes; then
19463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19464 printf "%s\n" "no" >&6; }
19465
19466 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19467 _pkg_short_errors_supported=yes
19468 else
19469 _pkg_short_errors_supported=no
19470 fi
19471 if test $_pkg_short_errors_supported = yes; then
19472 XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xorg-server >= 1.3 xproto fontsproto $REQUIRED_MODULES" 2>&1`
19473 else
19474 XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xorg-server >= 1.3 xproto fontsproto $REQUIRED_MODULES" 2>&1`
19475 fi
19476 # Put the nasty error message in config.log where it belongs
19477 echo "$XORG_PKG_ERRORS" >&5
19478
19479 as_fn_error $? "Package requirements (xorg-server >= 1.3 xproto fontsproto $REQUIRED_MODULES) were not met:
19480
19481 $XORG_PKG_ERRORS
19482
19483 Consider adjusting the PKG_CONFIG_PATH environment variable if you
19484 installed software in a non-standard prefix.
19485
19486 Alternatively, you may set the environment variables XORG_CFLAGS
19487 and XORG_LIBS to avoid the need to call pkg-config.
19488 See the pkg-config man page for more details." "$LINENO" 5
19489 elif test $pkg_failed = untried; then
19490 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19491 printf "%s\n" "no" >&6; }
19492 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19493 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
19494 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
19495 is in your PATH or set the PKG_CONFIG environment variable to the full
19496 path to pkg-config.
19497
19498 Alternatively, you may set the environment variables XORG_CFLAGS
19499 and XORG_LIBS to avoid the need to call pkg-config.
19500 See the pkg-config man page for more details.
19501
19502 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
19503 See \`config.log' for more details" "$LINENO" 5; }
19504 else
19505 XORG_CFLAGS=$pkg_cv_XORG_CFLAGS
19506 XORG_LIBS=$pkg_cv_XORG_LIBS
19507 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19508 printf "%s\n" "yes" >&6; }
19509
19510 fi
19511
19512 pkg_failed=no
19513 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XEXT" >&5
19514 printf %s "checking for XEXT... " >&6; }
19515
19516 if test -n "$XEXT_CFLAGS"; then
19517 pkg_cv_XEXT_CFLAGS="$XEXT_CFLAGS"
19518 elif test -n "$PKG_CONFIG"; then
19519 if test -n "$PKG_CONFIG" && \
19520 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xextproto >= 7.0.99.1\""; } >&5
19521 ($PKG_CONFIG --exists --print-errors "xextproto >= 7.0.99.1") 2>&5
19522 ac_status=$?
19523 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19524 test $ac_status = 0; }; then
19525 pkg_cv_XEXT_CFLAGS=`$PKG_CONFIG --cflags "xextproto >= 7.0.99.1" 2>/dev/null`
19526 test "x$?" != "x0" && pkg_failed=yes
19527 else
19528 pkg_failed=yes
19529 fi
19530 else
19531 pkg_failed=untried
19532 fi
19533 if test -n "$XEXT_LIBS"; then
19534 pkg_cv_XEXT_LIBS="$XEXT_LIBS"
19535 elif test -n "$PKG_CONFIG"; then
19536 if test -n "$PKG_CONFIG" && \
19537 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xextproto >= 7.0.99.1\""; } >&5
19538 ($PKG_CONFIG --exists --print-errors "xextproto >= 7.0.99.1") 2>&5
19539 ac_status=$?
19540 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19541 test $ac_status = 0; }; then
19542 pkg_cv_XEXT_LIBS=`$PKG_CONFIG --libs "xextproto >= 7.0.99.1" 2>/dev/null`
19543 test "x$?" != "x0" && pkg_failed=yes
19544 else
19545 pkg_failed=yes
19546 fi
19547 else
19548 pkg_failed=untried
19549 fi
19550
19551
19552
19553 if test $pkg_failed = yes; then
19554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19555 printf "%s\n" "no" >&6; }
19556
19557 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19558 _pkg_short_errors_supported=yes
19559 else
19560 _pkg_short_errors_supported=no
19561 fi
19562 if test $_pkg_short_errors_supported = yes; then
19563 XEXT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xextproto >= 7.0.99.1" 2>&1`
19564 else
19565 XEXT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xextproto >= 7.0.99.1" 2>&1`
19566 fi
19567 # Put the nasty error message in config.log where it belongs
19568 echo "$XEXT_PKG_ERRORS" >&5
19569
19570 HAVE_XEXTPROTO_71="no"
19571 elif test $pkg_failed = untried; then
19572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19573 printf "%s\n" "no" >&6; }
19574 HAVE_XEXTPROTO_71="no"
19575 else
19576 XEXT_CFLAGS=$pkg_cv_XEXT_CFLAGS
19577 XEXT_LIBS=$pkg_cv_XEXT_LIBS
19578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19579 printf "%s\n" "yes" >&6; }
19580 HAVE_XEXTPROTO_71="yes";
19581 printf "%s\n" "#define HAVE_XEXTPROTO_71 1" >>confdefs.h
19582
19583 fi
19584 if test "$HAVE_XEXTPROTO_71" = "yes" ; then
19585 HAVE_XEXTPROTO_71_TRUE=
19586 HAVE_XEXTPROTO_71_FALSE='#'
19587 else
19588 HAVE_XEXTPROTO_71_TRUE='#'
19589 HAVE_XEXTPROTO_71_FALSE=
19590 fi
19591
19592
19593 # Checks for libraries.
19594
19595
19596 save_CFLAGS="$CFLAGS"
19597 CFLAGS="$XORG_CFLAGS"
19598
19599 # PCI rework
19600 ac_fn_check_decl "$LINENO" "XSERVER_LIBPCIACCESS" "ac_cv_have_decl_XSERVER_LIBPCIACCESS" "#include \"xorg-server.h\"
19601 " "$ac_c_undeclared_builtin_options" "CFLAGS"
19602 if test "x$ac_cv_have_decl_XSERVER_LIBPCIACCESS" = xyes
19603 then :
19604 XSERVER_LIBPCIACCESS=yes
19605 else $as_nop
19606 XSERVER_LIBPCIACCESS=no
19607 fi
19608 if test "x$XSERVER_LIBPCIACCESS" = "xyes"; then
19609
19610 pkg_failed=no
19611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for PCIACCESS" >&5
19612 printf %s "checking for PCIACCESS... " >&6; }
19613
19614 if test -n "$PCIACCESS_CFLAGS"; then
19615 pkg_cv_PCIACCESS_CFLAGS="$PCIACCESS_CFLAGS"
19616 elif test -n "$PKG_CONFIG"; then
19617 if test -n "$PKG_CONFIG" && \
19618 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.10.7\""; } >&5
19619 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.10.7") 2>&5
19620 ac_status=$?
19621 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19622 test $ac_status = 0; }; then
19623 pkg_cv_PCIACCESS_CFLAGS=`$PKG_CONFIG --cflags "pciaccess >= 0.10.7" 2>/dev/null`
19624 test "x$?" != "x0" && pkg_failed=yes
19625 else
19626 pkg_failed=yes
19627 fi
19628 else
19629 pkg_failed=untried
19630 fi
19631 if test -n "$PCIACCESS_LIBS"; then
19632 pkg_cv_PCIACCESS_LIBS="$PCIACCESS_LIBS"
19633 elif test -n "$PKG_CONFIG"; then
19634 if test -n "$PKG_CONFIG" && \
19635 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.10.7\""; } >&5
19636 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.10.7") 2>&5
19637 ac_status=$?
19638 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19639 test $ac_status = 0; }; then
19640 pkg_cv_PCIACCESS_LIBS=`$PKG_CONFIG --libs "pciaccess >= 0.10.7" 2>/dev/null`
19641 test "x$?" != "x0" && pkg_failed=yes
19642 else
19643 pkg_failed=yes
19644 fi
19645 else
19646 pkg_failed=untried
19647 fi
19648
19649
19650
19651 if test $pkg_failed = yes; then
19652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19653 printf "%s\n" "no" >&6; }
19654
19655 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19656 _pkg_short_errors_supported=yes
19657 else
19658 _pkg_short_errors_supported=no
19659 fi
19660 if test $_pkg_short_errors_supported = yes; then
19661 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "pciaccess >= 0.10.7" 2>&1`
19662 else
19663 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "pciaccess >= 0.10.7" 2>&1`
19664 fi
19665 # Put the nasty error message in config.log where it belongs
19666 echo "$PCIACCESS_PKG_ERRORS" >&5
19667
19668 as_fn_error $? "Package requirements (pciaccess >= 0.10.7) were not met:
19669
19670 $PCIACCESS_PKG_ERRORS
19671
19672 Consider adjusting the PKG_CONFIG_PATH environment variable if you
19673 installed software in a non-standard prefix.
19674
19675 Alternatively, you may set the environment variables PCIACCESS_CFLAGS
19676 and PCIACCESS_LIBS to avoid the need to call pkg-config.
19677 See the pkg-config man page for more details." "$LINENO" 5
19678 elif test $pkg_failed = untried; then
19679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19680 printf "%s\n" "no" >&6; }
19681 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19682 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
19683 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
19684 is in your PATH or set the PKG_CONFIG environment variable to the full
19685 path to pkg-config.
19686
19687 Alternatively, you may set the environment variables PCIACCESS_CFLAGS
19688 and PCIACCESS_LIBS to avoid the need to call pkg-config.
19689 See the pkg-config man page for more details.
19690
19691 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
19692 See \`config.log' for more details" "$LINENO" 5; }
19693 else
19694 PCIACCESS_CFLAGS=$pkg_cv_PCIACCESS_CFLAGS
19695 PCIACCESS_LIBS=$pkg_cv_PCIACCESS_LIBS
19696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19697 printf "%s\n" "yes" >&6; }
19698
19699 fi
19700 fi
19701
19702 CFLAGS="$save_CFLAGS"
19703
19704 # Check whether --enable-xaa was given.
19705 if test ${enable_xaa+y}
19706 then :
19707 enableval=$enable_xaa; XAA="$enableval"
19708 else $as_nop
19709 XAA=auto
19710 fi
19711
19712 if test "x$XAA" != xno; then
19713 save_CFLAGS=$CFLAGS
19714 save_CPPFLAGS=$CPPFLAGS
19715 CFLAGS=$XORG_CFLAGS
19716 CPPFLAGS="$XORG_CFLAGS"
19717 for ac_header in xaa.h
19718 do :
19719 ac_fn_c_check_header_compile "$LINENO" "xaa.h" "ac_cv_header_xaa_h" "$ac_includes_default"
19720 if test "x$ac_cv_header_xaa_h" = xyes
19721 then :
19722 printf "%s\n" "#define HAVE_XAA_H 1" >>confdefs.h
19723 XAA=yes
19724 else $as_nop
19725 XAA=no
19726 fi
19727
19728 done
19729 CFLAGS=$save_CFLAGS
19730 CPPFLAGS=$save_CPPFLAGS
19731 fi
19732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to include XAA support" >&5
19733 printf %s "checking whether to include XAA support... " >&6; }
19734 if test "x$XAA" = xyes; then
19735 XAA_TRUE=
19736 XAA_FALSE='#'
19737 else
19738 XAA_TRUE='#'
19739 XAA_FALSE=
19740 fi
19741
19742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XAA" >&5
19743 printf "%s\n" "$XAA" >&6; }
19744
19745 # Substitutions
19746
19747
19748 DRIVER_NAME=nv
19749
19750
19751 ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile"
19752
19753 cat >confcache <<\_ACEOF
19754 # This file is a shell script that caches the results of configure
19755 # tests run on this system so they can be shared between configure
19756 # scripts and configure runs, see configure's option --config-cache.
19757 # It is not useful on other systems. If it contains results you don't
19758 # want to keep, you may remove or edit it.
19759 #
19760 # config.status only pays attention to the cache file if you give it
19761 # the --recheck option to rerun configure.
19762 #
19763 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19764 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19765 # following values.
19766
19767 _ACEOF
19768
19769 # The following way of writing the cache mishandles newlines in values,
19770 # but we know of no workaround that is simple, portable, and efficient.
19771 # So, we kill variables containing newlines.
19772 # Ultrix sh set writes to stderr and can't be redirected directly,
19773 # and sets the high bit in the cache file unless we assign to the vars.
19774 (
19775 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19776 eval ac_val=\$$ac_var
19777 case $ac_val in #(
19778 *${as_nl}*)
19779 case $ac_var in #(
19780 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
19781 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19782 esac
19783 case $ac_var in #(
19784 _ | IFS | as_nl) ;; #(
19785 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
19786 *) { eval $ac_var=; unset $ac_var;} ;;
19787 esac ;;
19788 esac
19789 done
19790
19791 (set) 2>&1 |
19792 case $as_nl`(ac_space=' '; set) 2>&1` in #(
19793 *${as_nl}ac_space=\ *)
19794 # `set' does not quote correctly, so add quotes: double-quote
19795 # substitution turns \\\\ into \\, and sed turns \\ into \.
19796 sed -n \
19797 "s/'/'\\\\''/g;
19798 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19799 ;; #(
19800 *)
19801 # `set' quotes correctly as required by POSIX, so do not add quotes.
19802 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19803 ;;
19804 esac |
19805 sort
19806 ) |
19807 sed '
19808 /^ac_cv_env_/b end
19809 t clear
19810 :clear
19811 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
19812 t end
19813 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19814 :end' >>confcache
19815 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19816 if test -w "$cache_file"; then
19817 if test "x$cache_file" != "x/dev/null"; then
19818 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
19819 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
19820 if test ! -f "$cache_file" || test -h "$cache_file"; then
19821 cat confcache >"$cache_file"
19822 else
19823 case $cache_file in #(
19824 */* | ?:*)
19825 mv -f confcache "$cache_file"$$ &&
19826 mv -f "$cache_file"$$ "$cache_file" ;; #(
19827 *)
19828 mv -f confcache "$cache_file" ;;
19829 esac
19830 fi
19831 fi
19832 else
19833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
19834 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
19835 fi
19836 fi
19837 rm -f confcache
19838
19839 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19840 # Let make expand exec_prefix.
19841 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19842
19843 DEFS=-DHAVE_CONFIG_H
19844
19845 ac_libobjs=
19846 ac_ltlibobjs=
19847 U=
19848 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19849 # 1. Remove the extension, and $U if already installed.
19850 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19851 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
19852 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
19853 # will be set to the directory where LIBOBJS objects are built.
19854 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19855 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
19856 done
19857 LIBOBJS=$ac_libobjs
19858
19859 LTLIBOBJS=$ac_ltlibobjs
19860
19861
19862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
19863 printf %s "checking that generated files are newer than configure... " >&6; }
19864 if test -n "$am_sleep_pid"; then
19865 # Hide warnings about reused PIDs.
19866 wait $am_sleep_pid 2>/dev/null
19867 fi
19868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
19869 printf "%s\n" "done" >&6; }
19870 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19871 as_fn_error $? "conditional \"AMDEP\" was never defined.
19872 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19873 fi
19874 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19875 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
19876 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19877 fi
19878 if test -n "$EXEEXT"; then
19879 am__EXEEXT_TRUE=
19880 am__EXEEXT_FALSE='#'
19881 else
19882 am__EXEEXT_TRUE='#'
19883 am__EXEEXT_FALSE=
19884 fi
19885
19886 if test -z "${HAVE_XEXTPROTO_71_TRUE}" && test -z "${HAVE_XEXTPROTO_71_FALSE}"; then
19887 as_fn_error $? "conditional \"HAVE_XEXTPROTO_71\" was never defined.
19888 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19889 fi
19890 if test -z "${XAA_TRUE}" && test -z "${XAA_FALSE}"; then
19891 as_fn_error $? "conditional \"XAA\" was never defined.
19892 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19893 fi
19894
19895 : "${CONFIG_STATUS=./config.status}"
19896 ac_write_fail=0
19897 ac_clean_files_save=$ac_clean_files
19898 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19900 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
19901 as_write_fail=0
19902 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
19903 #! $SHELL
19904 # Generated by $as_me.
19905 # Run this file to recreate the current configuration.
19906 # Compiler output produced by configure, useful for debugging
19907 # configure, is in config.log if it exists.
19908
19909 debug=false
19910 ac_cs_recheck=false
19911 ac_cs_silent=false
19912
19913 SHELL=\${CONFIG_SHELL-$SHELL}
19914 export SHELL
19915 _ASEOF
19916 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
19917 ## -------------------- ##
19918 ## M4sh Initialization. ##
19919 ## -------------------- ##
19920
19921 # Be more Bourne compatible
19922 DUALCASE=1; export DUALCASE # for MKS sh
19923 as_nop=:
19924 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
19925 then :
19926 emulate sh
19927 NULLCMD=:
19928 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19929 # is contrary to our usage. Disable this feature.
19930 alias -g '${1+"$@"}'='"$@"'
19931 setopt NO_GLOB_SUBST
19932 else $as_nop
19933 case `(set -o) 2>/dev/null` in #(
19934 *posix*) :
19935 set -o posix ;; #(
19936 *) :
19937 ;;
19938 esac
19939 fi
19940
19941
19942
19943 # Reset variables that may have inherited troublesome values from
19944 # the environment.
19945
19946 # IFS needs to be set, to space, tab, and newline, in precisely that order.
19947 # (If _AS_PATH_WALK were called with IFS unset, it would have the
19948 # side effect of setting IFS to empty, thus disabling word splitting.)
19949 # Quoting is to prevent editors from complaining about space-tab.
19950 as_nl='
19951 '
19952 export as_nl
19953 IFS=" "" $as_nl"
19954
19955 PS1='$ '
19956 PS2='> '
19957 PS4='+ '
19958
19959 # Ensure predictable behavior from utilities with locale-dependent output.
19960 LC_ALL=C
19961 export LC_ALL
19962 LANGUAGE=C
19963 export LANGUAGE
19964
19965 # We cannot yet rely on "unset" to work, but we need these variables
19966 # to be unset--not just set to an empty or harmless value--now, to
19967 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
19968 # also avoids known problems related to "unset" and subshell syntax
19969 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
19970 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
19971 do eval test \${$as_var+y} \
19972 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
19973 done
19974
19975 # Ensure that fds 0, 1, and 2 are open.
19976 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
19977 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
19978 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
19979
19980 # The user is always right.
19981 if ${PATH_SEPARATOR+false} :; then
19982 PATH_SEPARATOR=:
19983 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19984 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19985 PATH_SEPARATOR=';'
19986 }
19987 fi
19988
19989
19990 # Find who we are. Look in the path if we contain no directory separator.
19991 as_myself=
19992 case $0 in #((
19993 *[\\/]* ) as_myself=$0 ;;
19994 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19995 for as_dir in $PATH
19996 do
19997 IFS=$as_save_IFS
19998 case $as_dir in #(((
19999 '') as_dir=./ ;;
20000 */) ;;
20001 *) as_dir=$as_dir/ ;;
20002 esac
20003 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
20004 done
20005 IFS=$as_save_IFS
20006
20007 ;;
20008 esac
20009 # We did not find ourselves, most probably we were run as `sh COMMAND'
20010 # in which case we are not to be found in the path.
20011 if test "x$as_myself" = x; then
20012 as_myself=$0
20013 fi
20014 if test ! -f "$as_myself"; then
20015 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20016 exit 1
20017 fi
20018
20019
20020
20021 # as_fn_error STATUS ERROR [LINENO LOG_FD]
20022 # ----------------------------------------
20023 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
20024 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
20025 # script with STATUS, using 1 if that was 0.
20026 as_fn_error ()
20027 {
20028 as_status=$1; test $as_status -eq 0 && as_status=1
20029 if test "$4"; then
20030 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
20031 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
20032 fi
20033 printf "%s\n" "$as_me: error: $2" >&2
20034 as_fn_exit $as_status
20035 } # as_fn_error
20036
20037
20038
20039 # as_fn_set_status STATUS
20040 # -----------------------
20041 # Set $? to STATUS, without forking.
20042 as_fn_set_status ()
20043 {
20044 return $1
20045 } # as_fn_set_status
20046
20047 # as_fn_exit STATUS
20048 # -----------------
20049 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
20050 as_fn_exit ()
20051 {
20052 set +e
20053 as_fn_set_status $1
20054 exit $1
20055 } # as_fn_exit
20056
20057 # as_fn_unset VAR
20058 # ---------------
20059 # Portably unset VAR.
20060 as_fn_unset ()
20061 {
20062 { eval $1=; unset $1;}
20063 }
20064 as_unset=as_fn_unset
20065
20066 # as_fn_append VAR VALUE
20067 # ----------------------
20068 # Append the text in VALUE to the end of the definition contained in VAR. Take
20069 # advantage of any shell optimizations that allow amortized linear growth over
20070 # repeated appends, instead of the typical quadratic growth present in naive
20071 # implementations.
20072 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
20073 then :
20074 eval 'as_fn_append ()
20075 {
20076 eval $1+=\$2
20077 }'
20078 else $as_nop
20079 as_fn_append ()
20080 {
20081 eval $1=\$$1\$2
20082 }
20083 fi # as_fn_append
20084
20085 # as_fn_arith ARG...
20086 # ------------------
20087 # Perform arithmetic evaluation on the ARGs, and store the result in the
20088 # global $as_val. Take advantage of shells that can avoid forks. The arguments
20089 # must be portable across $(()) and expr.
20090 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
20091 then :
20092 eval 'as_fn_arith ()
20093 {
20094 as_val=$(( $* ))
20095 }'
20096 else $as_nop
20097 as_fn_arith ()
20098 {
20099 as_val=`expr "$@" || test $? -eq 1`
20100 }
20101 fi # as_fn_arith
20102
20103
20104 if expr a : '\(a\)' >/dev/null 2>&1 &&
20105 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20106 as_expr=expr
20107 else
20108 as_expr=false
20109 fi
20110
20111 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20112 as_basename=basename
20113 else
20114 as_basename=false
20115 fi
20116
20117 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20118 as_dirname=dirname
20119 else
20120 as_dirname=false
20121 fi
20122
20123 as_me=`$as_basename -- "$0" ||
20124 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20125 X"$0" : 'X\(//\)$' \| \
20126 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20127 printf "%s\n" X/"$0" |
20128 sed '/^.*\/\([^/][^/]*\)\/*$/{
20129 s//\1/
20130 q
20131 }
20132 /^X\/\(\/\/\)$/{
20133 s//\1/
20134 q
20135 }
20136 /^X\/\(\/\).*/{
20137 s//\1/
20138 q
20139 }
20140 s/.*/./; q'`
20141
20142 # Avoid depending upon Character Ranges.
20143 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20144 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20145 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20146 as_cr_digits='0123456789'
20147 as_cr_alnum=$as_cr_Letters$as_cr_digits
20148
20149
20150 # Determine whether it's possible to make 'echo' print without a newline.
20151 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
20152 # for compatibility with existing Makefiles.
20153 ECHO_C= ECHO_N= ECHO_T=
20154 case `echo -n x` in #(((((
20155 -n*)
20156 case `echo 'xy\c'` in
20157 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
20158 xy) ECHO_C='\c';;
20159 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
20160 ECHO_T=' ';;
20161 esac;;
20162 *)
20163 ECHO_N='-n';;
20164 esac
20165
20166 # For backward compatibility with old third-party macros, we provide
20167 # the shell variables $as_echo and $as_echo_n. New code should use
20168 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
20169 as_echo='printf %s\n'
20170 as_echo_n='printf %s'
20171
20172 rm -f conf$$ conf$$.exe conf$$.file
20173 if test -d conf$$.dir; then
20174 rm -f conf$$.dir/conf$$.file
20175 else
20176 rm -f conf$$.dir
20177 mkdir conf$$.dir 2>/dev/null
20178 fi
20179 if (echo >conf$$.file) 2>/dev/null; then
20180 if ln -s conf$$.file conf$$ 2>/dev/null; then
20181 as_ln_s='ln -s'
20182 # ... but there are two gotchas:
20183 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20184 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20185 # In both cases, we have to default to `cp -pR'.
20186 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20187 as_ln_s='cp -pR'
20188 elif ln conf$$.file conf$$ 2>/dev/null; then
20189 as_ln_s=ln
20190 else
20191 as_ln_s='cp -pR'
20192 fi
20193 else
20194 as_ln_s='cp -pR'
20195 fi
20196 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20197 rmdir conf$$.dir 2>/dev/null
20198
20199
20200 # as_fn_mkdir_p
20201 # -------------
20202 # Create "$as_dir" as a directory, including parents if necessary.
20203 as_fn_mkdir_p ()
20204 {
20205
20206 case $as_dir in #(
20207 -*) as_dir=./$as_dir;;
20208 esac
20209 test -d "$as_dir" || eval $as_mkdir_p || {
20210 as_dirs=
20211 while :; do
20212 case $as_dir in #(
20213 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20214 *) as_qdir=$as_dir;;
20215 esac
20216 as_dirs="'$as_qdir' $as_dirs"
20217 as_dir=`$as_dirname -- "$as_dir" ||
20218 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20219 X"$as_dir" : 'X\(//\)[^/]' \| \
20220 X"$as_dir" : 'X\(//\)$' \| \
20221 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20222 printf "%s\n" X"$as_dir" |
20223 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20224 s//\1/
20225 q
20226 }
20227 /^X\(\/\/\)[^/].*/{
20228 s//\1/
20229 q
20230 }
20231 /^X\(\/\/\)$/{
20232 s//\1/
20233 q
20234 }
20235 /^X\(\/\).*/{
20236 s//\1/
20237 q
20238 }
20239 s/.*/./; q'`
20240 test -d "$as_dir" && break
20241 done
20242 test -z "$as_dirs" || eval "mkdir $as_dirs"
20243 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
20244
20245
20246 } # as_fn_mkdir_p
20247 if mkdir -p . 2>/dev/null; then
20248 as_mkdir_p='mkdir -p "$as_dir"'
20249 else
20250 test -d ./-p && rmdir ./-p
20251 as_mkdir_p=false
20252 fi
20253
20254
20255 # as_fn_executable_p FILE
20256 # -----------------------
20257 # Test if FILE is an executable regular file.
20258 as_fn_executable_p ()
20259 {
20260 test -f "$1" && test -x "$1"
20261 } # as_fn_executable_p
20262 as_test_x='test -x'
20263 as_executable_p=as_fn_executable_p
20264
20265 # Sed expression to map a string onto a valid CPP name.
20266 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20267
20268 # Sed expression to map a string onto a valid variable name.
20269 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20270
20271
20272 exec 6>&1
20273 ## ----------------------------------- ##
20274 ## Main body of $CONFIG_STATUS script. ##
20275 ## ----------------------------------- ##
20276 _ASEOF
20277 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
20278
20279 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20280 # Save the log message, to keep $0 and so on meaningful, and to
20281 # report actual input values of CONFIG_FILES etc. instead of their
20282 # values after options handling.
20283 ac_log="
20284 This file was extended by xf86-video-nv $as_me 2.1.22, which was
20285 generated by GNU Autoconf 2.71. Invocation command line was
20286
20287 CONFIG_FILES = $CONFIG_FILES
20288 CONFIG_HEADERS = $CONFIG_HEADERS
20289 CONFIG_LINKS = $CONFIG_LINKS
20290 CONFIG_COMMANDS = $CONFIG_COMMANDS
20291 $ $0 $@
20292
20293 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20294 "
20295
20296 _ACEOF
20297
20298 case $ac_config_files in *"
20299 "*) set x $ac_config_files; shift; ac_config_files=$*;;
20300 esac
20301
20302 case $ac_config_headers in *"
20303 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
20304 esac
20305
20306
20307 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20308 # Files that config.status was made for.
20309 config_files="$ac_config_files"
20310 config_headers="$ac_config_headers"
20311 config_commands="$ac_config_commands"
20312
20313 _ACEOF
20314
20315 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20316 ac_cs_usage="\
20317 \`$as_me' instantiates files and other configuration actions
20318 from templates according to the current configuration. Unless the files
20319 and actions are specified as TAGs, all are instantiated by default.
20320
20321 Usage: $0 [OPTION]... [TAG]...
20322
20323 -h, --help print this help, then exit
20324 -V, --version print version number and configuration settings, then exit
20325 --config print configuration, then exit
20326 -q, --quiet, --silent
20327 do not print progress messages
20328 -d, --debug don't remove temporary files
20329 --recheck update $as_me by reconfiguring in the same conditions
20330 --file=FILE[:TEMPLATE]
20331 instantiate the configuration file FILE
20332 --header=FILE[:TEMPLATE]
20333 instantiate the configuration header FILE
20334
20335 Configuration files:
20336 $config_files
20337
20338 Configuration headers:
20339 $config_headers
20340
20341 Configuration commands:
20342 $config_commands
20343
20344 Report bugs to <https://gitlab.freedesktop.org/xorg/driver/xf86-video-nv/issues>."
20345
20346 _ACEOF
20347 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
20348 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
20349 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20350 ac_cs_config='$ac_cs_config_escaped'
20351 ac_cs_version="\\
20352 xf86-video-nv config.status 2.1.22
20353 configured by $0, generated by GNU Autoconf 2.71,
20354 with options \\"\$ac_cs_config\\"
20355
20356 Copyright (C) 2021 Free Software Foundation, Inc.
20357 This config.status script is free software; the Free Software Foundation
20358 gives unlimited permission to copy, distribute and modify it."
20359
20360 ac_pwd='$ac_pwd'
20361 srcdir='$srcdir'
20362 INSTALL='$INSTALL'
20363 MKDIR_P='$MKDIR_P'
20364 AWK='$AWK'
20365 test -n "\$AWK" || AWK=awk
20366 _ACEOF
20367
20368 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20369 # The default lists apply if the user does not specify any file.
20370 ac_need_defaults=:
20371 while test $# != 0
20372 do
20373 case $1 in
20374 --*=?*)
20375 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20376 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20377 ac_shift=:
20378 ;;
20379 --*=)
20380 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20381 ac_optarg=
20382 ac_shift=:
20383 ;;
20384 *)
20385 ac_option=$1
20386 ac_optarg=$2
20387 ac_shift=shift
20388 ;;
20389 esac
20390
20391 case $ac_option in
20392 # Handling of the options.
20393 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20394 ac_cs_recheck=: ;;
20395 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20396 printf "%s\n" "$ac_cs_version"; exit ;;
20397 --config | --confi | --conf | --con | --co | --c )
20398 printf "%s\n" "$ac_cs_config"; exit ;;
20399 --debug | --debu | --deb | --de | --d | -d )
20400 debug=: ;;
20401 --file | --fil | --fi | --f )
20402 $ac_shift
20403 case $ac_optarg in
20404 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20405 '') as_fn_error $? "missing file argument" ;;
20406 esac
20407 as_fn_append CONFIG_FILES " '$ac_optarg'"
20408 ac_need_defaults=false;;
20409 --header | --heade | --head | --hea )
20410 $ac_shift
20411 case $ac_optarg in
20412 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20413 esac
20414 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
20415 ac_need_defaults=false;;
20416 --he | --h)
20417 # Conflict between --help and --header
20418 as_fn_error $? "ambiguous option: \`$1'
20419 Try \`$0 --help' for more information.";;
20420 --help | --hel | -h )
20421 printf "%s\n" "$ac_cs_usage"; exit ;;
20422 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20423 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20424 ac_cs_silent=: ;;
20425
20426 # This is an error.
20427 -*) as_fn_error $? "unrecognized option: \`$1'
20428 Try \`$0 --help' for more information." ;;
20429
20430 *) as_fn_append ac_config_targets " $1"
20431 ac_need_defaults=false ;;
20432
20433 esac
20434 shift
20435 done
20436
20437 ac_configure_extra_args=
20438
20439 if $ac_cs_silent; then
20440 exec 6>/dev/null
20441 ac_configure_extra_args="$ac_configure_extra_args --silent"
20442 fi
20443
20444 _ACEOF
20445 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20446 if \$ac_cs_recheck; then
20447 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20448 shift
20449 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
20450 CONFIG_SHELL='$SHELL'
20451 export CONFIG_SHELL
20452 exec "\$@"
20453 fi
20454
20455 _ACEOF
20456 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20457 exec 5>>config.log
20458 {
20459 echo
20460 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20461 ## Running $as_me. ##
20462 _ASBOX
20463 printf "%s\n" "$ac_log"
20464 } >&5
20465
20466 _ACEOF
20467 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20468 #
20469 # INIT-COMMANDS
20470 #
20471 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
20472
20473
20474 # The HP-UX ksh and POSIX shell print the target directory to stdout
20475 # if CDPATH is set.
20476 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20477
20478 sed_quote_subst='$sed_quote_subst'
20479 double_quote_subst='$double_quote_subst'
20480 delay_variable_subst='$delay_variable_subst'
20481 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
20482 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
20483 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
20484 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
20485 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
20486 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
20487 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
20488 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
20489 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
20490 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
20491 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
20492 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
20493 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
20494 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
20495 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
20496 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
20497 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
20498 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
20499 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
20500 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
20501 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
20502 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
20503 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
20504 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
20505 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
20506 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
20507 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
20508 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
20509 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
20510 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
20511 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
20512 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
20513 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
20514 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
20515 FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
20516 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
20517 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
20518 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
20519 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
20520 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
20521 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
20522 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
20523 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
20524 lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
20525 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
20526 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
20527 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
20528 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
20529 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20530 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20531 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
20532 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
20533 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
20534 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
20535 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
20536 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
20537 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
20538 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
20539 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
20540 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
20541 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"`'
20542 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
20543 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
20544 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
20545 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
20546 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
20547 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
20548 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
20549 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
20550 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
20551 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
20552 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
20553 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
20554 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
20555 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
20556 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
20557 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
20558 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
20559 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
20560 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
20561 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
20562 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20563 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
20564 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
20565 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
20566 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
20567 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
20568 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
20569 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20570 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
20571 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20572 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
20573 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20574 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
20575 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
20576 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
20577 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
20578 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
20579 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
20580 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
20581 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
20582 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
20583 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
20584 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
20585 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
20586 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
20587 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
20588 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
20589 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
20590 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
20591 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
20592 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
20593 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
20594 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
20595 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
20596 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
20597 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
20598 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
20599 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
20600 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
20601 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
20602 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
20603 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
20604 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20605 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20606 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
20607 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
20608 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
20609 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
20610 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
20611 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
20612 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
20613 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
20614 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
20615 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
20616 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
20617 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
20618
20619 LTCC='$LTCC'
20620 LTCFLAGS='$LTCFLAGS'
20621 compiler='$compiler_DEFAULT'
20622
20623 # A function that is used when there is no print builtin or printf.
20624 func_fallback_echo ()
20625 {
20626 eval 'cat <<_LTECHO_EOF
20627 \$1
20628 _LTECHO_EOF'
20629 }
20630
20631 # Quote evaled strings.
20632 for var in SHELL \
20633 ECHO \
20634 PATH_SEPARATOR \
20635 SED \
20636 GREP \
20637 EGREP \
20638 FGREP \
20639 LD \
20640 NM \
20641 LN_S \
20642 lt_SP2NL \
20643 lt_NL2SP \
20644 reload_flag \
20645 FILECMD \
20646 OBJDUMP \
20647 deplibs_check_method \
20648 file_magic_cmd \
20649 file_magic_glob \
20650 want_nocaseglob \
20651 DLLTOOL \
20652 sharedlib_from_linklib_cmd \
20653 AR \
20654 archiver_list_spec \
20655 STRIP \
20656 RANLIB \
20657 CC \
20658 CFLAGS \
20659 compiler \
20660 lt_cv_sys_global_symbol_pipe \
20661 lt_cv_sys_global_symbol_to_cdecl \
20662 lt_cv_sys_global_symbol_to_import \
20663 lt_cv_sys_global_symbol_to_c_name_address \
20664 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
20665 lt_cv_nm_interface \
20666 nm_file_list_spec \
20667 lt_cv_truncate_bin \
20668 lt_prog_compiler_no_builtin_flag \
20669 lt_prog_compiler_pic \
20670 lt_prog_compiler_wl \
20671 lt_prog_compiler_static \
20672 lt_cv_prog_compiler_c_o \
20673 need_locks \
20674 MANIFEST_TOOL \
20675 DSYMUTIL \
20676 NMEDIT \
20677 LIPO \
20678 OTOOL \
20679 OTOOL64 \
20680 shrext_cmds \
20681 export_dynamic_flag_spec \
20682 whole_archive_flag_spec \
20683 compiler_needs_object \
20684 with_gnu_ld \
20685 allow_undefined_flag \
20686 no_undefined_flag \
20687 hardcode_libdir_flag_spec \
20688 hardcode_libdir_separator \
20689 exclude_expsyms \
20690 include_expsyms \
20691 file_list_spec \
20692 variables_saved_for_relink \
20693 libname_spec \
20694 library_names_spec \
20695 soname_spec \
20696 install_override_mode \
20697 finish_eval \
20698 old_striplib \
20699 striplib; do
20700 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20701 *[\\\\\\\`\\"\\\$]*)
20702 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
20703 ;;
20704 *)
20705 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20706 ;;
20707 esac
20708 done
20709
20710 # Double-quote double-evaled strings.
20711 for var in reload_cmds \
20712 old_postinstall_cmds \
20713 old_postuninstall_cmds \
20714 old_archive_cmds \
20715 extract_expsyms_cmds \
20716 old_archive_from_new_cmds \
20717 old_archive_from_expsyms_cmds \
20718 archive_cmds \
20719 archive_expsym_cmds \
20720 module_cmds \
20721 module_expsym_cmds \
20722 export_symbols_cmds \
20723 prelink_cmds \
20724 postlink_cmds \
20725 postinstall_cmds \
20726 postuninstall_cmds \
20727 finish_cmds \
20728 sys_lib_search_path_spec \
20729 configure_time_dlsearch_path \
20730 configure_time_lt_sys_library_path; do
20731 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20732 *[\\\\\\\`\\"\\\$]*)
20733 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
20734 ;;
20735 *)
20736 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20737 ;;
20738 esac
20739 done
20740
20741 ac_aux_dir='$ac_aux_dir'
20742
20743 # See if we are running on zsh, and set the options that allow our
20744 # commands through without removal of \ escapes INIT.
20745 if test -n "\${ZSH_VERSION+set}"; then
20746 setopt NO_GLOB_SUBST
20747 fi
20748
20749
20750 PACKAGE='$PACKAGE'
20751 VERSION='$VERSION'
20752 RM='$RM'
20753 ofile='$ofile'
20754
20755
20756
20757
20758 _ACEOF
20759
20760 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20761
20762 # Handling of arguments.
20763 for ac_config_target in $ac_config_targets
20764 do
20765 case $ac_config_target in
20766 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
20767 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20768 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
20769 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20770 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
20771 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
20772
20773 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
20774 esac
20775 done
20776
20777
20778 # If the user did not use the arguments to specify the items to instantiate,
20779 # then the envvar interface is used. Set only those that are not.
20780 # We use the long form for the default assignment because of an extremely
20781 # bizarre bug on SunOS 4.1.3.
20782 if $ac_need_defaults; then
20783 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
20784 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
20785 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
20786 fi
20787
20788 # Have a temporary directory for convenience. Make it in the build tree
20789 # simply because there is no reason against having it here, and in addition,
20790 # creating and moving files from /tmp can sometimes cause problems.
20791 # Hook for its removal unless debugging.
20792 # Note that there is a small window in which the directory will not be cleaned:
20793 # after its creation but before its name has been assigned to `$tmp'.
20794 $debug ||
20795 {
20796 tmp= ac_tmp=
20797 trap 'exit_status=$?
20798 : "${ac_tmp:=$tmp}"
20799 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
20800 ' 0
20801 trap 'as_fn_exit 1' 1 2 13 15
20802 }
20803 # Create a (secure) tmp directory for tmp files.
20804
20805 {
20806 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20807 test -d "$tmp"
20808 } ||
20809 {
20810 tmp=./conf$$-$RANDOM
20811 (umask 077 && mkdir "$tmp")
20812 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
20813 ac_tmp=$tmp
20814
20815 # Set up the scripts for CONFIG_FILES section.
20816 # No need to generate them if there are no CONFIG_FILES.
20817 # This happens for instance with `./config.status config.h'.
20818 if test -n "$CONFIG_FILES"; then
20819
20820
20821 ac_cr=`echo X | tr X '\015'`
20822 # On cygwin, bash can eat \r inside `` if the user requested igncr.
20823 # But we know of no other shell where ac_cr would be empty at this
20824 # point, so we can use a bashism as a fallback.
20825 if test "x$ac_cr" = x; then
20826 eval ac_cr=\$\'\\r\'
20827 fi
20828 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20829 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20830 ac_cs_awk_cr='\\r'
20831 else
20832 ac_cs_awk_cr=$ac_cr
20833 fi
20834
20835 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
20836 _ACEOF
20837
20838
20839 {
20840 echo "cat >conf$$subs.awk <<_ACEOF" &&
20841 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20842 echo "_ACEOF"
20843 } >conf$$subs.sh ||
20844 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20845 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
20846 ac_delim='%!_!# '
20847 for ac_last_try in false false false false false :; do
20848 . ./conf$$subs.sh ||
20849 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20850
20851 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
20852 if test $ac_delim_n = $ac_delim_num; then
20853 break
20854 elif $ac_last_try; then
20855 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20856 else
20857 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20858 fi
20859 done
20860 rm -f conf$$subs.sh
20861
20862 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20863 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
20864 _ACEOF
20865 sed -n '
20866 h
20867 s/^/S["/; s/!.*/"]=/
20868 p
20869 g
20870 s/^[^!]*!//
20871 :repl
20872 t repl
20873 s/'"$ac_delim"'$//
20874 t delim
20875 :nl
20876 h
20877 s/\(.\{148\}\)..*/\1/
20878 t more1
20879 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
20880 p
20881 n
20882 b repl
20883 :more1
20884 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20885 p
20886 g
20887 s/.\{148\}//
20888 t nl
20889 :delim
20890 h
20891 s/\(.\{148\}\)..*/\1/
20892 t more2
20893 s/["\\]/\\&/g; s/^/"/; s/$/"/
20894 p
20895 b
20896 :more2
20897 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20898 p
20899 g
20900 s/.\{148\}//
20901 t delim
20902 ' <conf$$subs.awk | sed '
20903 /^[^""]/{
20904 N
20905 s/\n//
20906 }
20907 ' >>$CONFIG_STATUS || ac_write_fail=1
20908 rm -f conf$$subs.awk
20909 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20910 _ACAWK
20911 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
20912 for (key in S) S_is_set[key] = 1
20913 FS = ""
20914
20915 }
20916 {
20917 line = $ 0
20918 nfields = split(line, field, "@")
20919 substed = 0
20920 len = length(field[1])
20921 for (i = 2; i < nfields; i++) {
20922 key = field[i]
20923 keylen = length(key)
20924 if (S_is_set[key]) {
20925 value = S[key]
20926 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20927 len += length(value) + length(field[++i])
20928 substed = 1
20929 } else
20930 len += 1 + keylen
20931 }
20932
20933 print line
20934 }
20935
20936 _ACAWK
20937 _ACEOF
20938 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20939 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20940 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
20941 else
20942 cat
20943 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
20944 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
20945 _ACEOF
20946
20947 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
20948 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
20949 # trailing colons and then remove the whole line if VPATH becomes empty
20950 # (actually we leave an empty line to preserve line numbers).
20951 if test "x$srcdir" = x.; then
20952 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
20953 h
20954 s///
20955 s/^/:/
20956 s/[ ]*$/:/
20957 s/:\$(srcdir):/:/g
20958 s/:\${srcdir}:/:/g
20959 s/:@srcdir@:/:/g
20960 s/^:*//
20961 s/:*$//
20962 x
20963 s/\(=[ ]*\).*/\1/
20964 G
20965 s/\n//
20966 s/^[^=]*=[ ]*$//
20967 }'
20968 fi
20969
20970 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20971 fi # test -n "$CONFIG_FILES"
20972
20973 # Set up the scripts for CONFIG_HEADERS section.
20974 # No need to generate them if there are no CONFIG_HEADERS.
20975 # This happens for instance with `./config.status Makefile'.
20976 if test -n "$CONFIG_HEADERS"; then
20977 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
20978 BEGIN {
20979 _ACEOF
20980
20981 # Transform confdefs.h into an awk script `defines.awk', embedded as
20982 # here-document in config.status, that substitutes the proper values into
20983 # config.h.in to produce config.h.
20984
20985 # Create a delimiter string that does not exist in confdefs.h, to ease
20986 # handling of long lines.
20987 ac_delim='%!_!# '
20988 for ac_last_try in false false :; do
20989 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
20990 if test -z "$ac_tt"; then
20991 break
20992 elif $ac_last_try; then
20993 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
20994 else
20995 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20996 fi
20997 done
20998
20999 # For the awk script, D is an array of macro values keyed by name,
21000 # likewise P contains macro parameters if any. Preserve backslash
21001 # newline sequences.
21002
21003 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21004 sed -n '
21005 s/.\{148\}/&'"$ac_delim"'/g
21006 t rset
21007 :rset
21008 s/^[ ]*#[ ]*define[ ][ ]*/ /
21009 t def
21010 d
21011 :def
21012 s/\\$//
21013 t bsnl
21014 s/["\\]/\\&/g
21015 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
21016 D["\1"]=" \3"/p
21017 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
21018 d
21019 :bsnl
21020 s/["\\]/\\&/g
21021 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
21022 D["\1"]=" \3\\\\\\n"\\/p
21023 t cont
21024 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
21025 t cont
21026 d
21027 :cont
21028 n
21029 s/.\{148\}/&'"$ac_delim"'/g
21030 t clear
21031 :clear
21032 s/\\$//
21033 t bsnlc
21034 s/["\\]/\\&/g; s/^/"/; s/$/"/p
21035 d
21036 :bsnlc
21037 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
21038 b cont
21039 ' <confdefs.h | sed '
21040 s/'"$ac_delim"'/"\\\
21041 "/g' >>$CONFIG_STATUS || ac_write_fail=1
21042
21043 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21044 for (key in D) D_is_set[key] = 1
21045 FS = ""
21046 }
21047 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
21048 line = \$ 0
21049 split(line, arg, " ")
21050 if (arg[1] == "#") {
21051 defundef = arg[2]
21052 mac1 = arg[3]
21053 } else {
21054 defundef = substr(arg[1], 2)
21055 mac1 = arg[2]
21056 }
21057 split(mac1, mac2, "(") #)
21058 macro = mac2[1]
21059 prefix = substr(line, 1, index(line, defundef) - 1)
21060 if (D_is_set[macro]) {
21061 # Preserve the white space surrounding the "#".
21062 print prefix "define", macro P[macro] D[macro]
21063 next
21064 } else {
21065 # Replace #undef with comments. This is necessary, for example,
21066 # in the case of _POSIX_SOURCE, which is predefined and required
21067 # on some systems where configure will not decide to define it.
21068 if (defundef == "undef") {
21069 print "/*", prefix defundef, macro, "*/"
21070 next
21071 }
21072 }
21073 }
21074 { print }
21075 _ACAWK
21076 _ACEOF
21077 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21078 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
21079 fi # test -n "$CONFIG_HEADERS"
21080
21081
21082 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
21083 shift
21084 for ac_tag
21085 do
21086 case $ac_tag in
21087 :[FHLC]) ac_mode=$ac_tag; continue;;
21088 esac
21089 case $ac_mode$ac_tag in
21090 :[FHL]*:*);;
21091 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
21092 :[FH]-) ac_tag=-:-;;
21093 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21094 esac
21095 ac_save_IFS=$IFS
21096 IFS=:
21097 set x $ac_tag
21098 IFS=$ac_save_IFS
21099 shift
21100 ac_file=$1
21101 shift
21102
21103 case $ac_mode in
21104 :L) ac_source=$1;;
21105 :[FH])
21106 ac_file_inputs=
21107 for ac_f
21108 do
21109 case $ac_f in
21110 -) ac_f="$ac_tmp/stdin";;
21111 *) # Look for the file first in the build tree, then in the source tree
21112 # (if the path is not absolute). The absolute path cannot be DOS-style,
21113 # because $ac_f cannot contain `:'.
21114 test -f "$ac_f" ||
21115 case $ac_f in
21116 [\\/$]*) false;;
21117 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21118 esac ||
21119 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
21120 esac
21121 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
21122 as_fn_append ac_file_inputs " '$ac_f'"
21123 done
21124
21125 # Let's still pretend it is `configure' which instantiates (i.e., don't
21126 # use $as_me), people would be surprised to read:
21127 # /* config.h. Generated by config.status. */
21128 configure_input='Generated from '`
21129 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
21130 `' by configure.'
21131 if test x"$ac_file" != x-; then
21132 configure_input="$ac_file. $configure_input"
21133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
21134 printf "%s\n" "$as_me: creating $ac_file" >&6;}
21135 fi
21136 # Neutralize special characters interpreted by sed in replacement strings.
21137 case $configure_input in #(
21138 *\&* | *\|* | *\\* )
21139 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
21140 sed 's/[\\\\&|]/\\\\&/g'`;; #(
21141 *) ac_sed_conf_input=$configure_input;;
21142 esac
21143
21144 case $ac_tag in
21145 *:-:* | *:-) cat >"$ac_tmp/stdin" \
21146 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
21147 esac
21148 ;;
21149 esac
21150
21151 ac_dir=`$as_dirname -- "$ac_file" ||
21152 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21153 X"$ac_file" : 'X\(//\)[^/]' \| \
21154 X"$ac_file" : 'X\(//\)$' \| \
21155 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21156 printf "%s\n" X"$ac_file" |
21157 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21158 s//\1/
21159 q
21160 }
21161 /^X\(\/\/\)[^/].*/{
21162 s//\1/
21163 q
21164 }
21165 /^X\(\/\/\)$/{
21166 s//\1/
21167 q
21168 }
21169 /^X\(\/\).*/{
21170 s//\1/
21171 q
21172 }
21173 s/.*/./; q'`
21174 as_dir="$ac_dir"; as_fn_mkdir_p
21175 ac_builddir=.
21176
21177 case "$ac_dir" in
21178 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21179 *)
21180 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
21181 # A ".." for each directory in $ac_dir_suffix.
21182 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21183 case $ac_top_builddir_sub in
21184 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21185 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21186 esac ;;
21187 esac
21188 ac_abs_top_builddir=$ac_pwd
21189 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21190 # for backward compatibility:
21191 ac_top_builddir=$ac_top_build_prefix
21192
21193 case $srcdir in
21194 .) # We are building in place.
21195 ac_srcdir=.
21196 ac_top_srcdir=$ac_top_builddir_sub
21197 ac_abs_top_srcdir=$ac_pwd ;;
21198 [\\/]* | ?:[\\/]* ) # Absolute name.
21199 ac_srcdir=$srcdir$ac_dir_suffix;
21200 ac_top_srcdir=$srcdir
21201 ac_abs_top_srcdir=$srcdir ;;
21202 *) # Relative name.
21203 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21204 ac_top_srcdir=$ac_top_build_prefix$srcdir
21205 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21206 esac
21207 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21208
21209
21210 case $ac_mode in
21211 :F)
21212 #
21213 # CONFIG_FILE
21214 #
21215
21216 case $INSTALL in
21217 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21218 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21219 esac
21220 ac_MKDIR_P=$MKDIR_P
21221 case $MKDIR_P in
21222 [\\/$]* | ?:[\\/]* ) ;;
21223 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
21224 esac
21225 _ACEOF
21226
21227 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21228 # If the template does not know about datarootdir, expand it.
21229 # FIXME: This hack should be removed a few years after 2.60.
21230 ac_datarootdir_hack=; ac_datarootdir_seen=
21231 ac_sed_dataroot='
21232 /datarootdir/ {
21233 p
21234 q
21235 }
21236 /@datadir@/p
21237 /@docdir@/p
21238 /@infodir@/p
21239 /@localedir@/p
21240 /@mandir@/p'
21241 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
21242 *datarootdir*) ac_datarootdir_seen=yes;;
21243 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21244 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21245 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21246 _ACEOF
21247 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21248 ac_datarootdir_hack='
21249 s&@datadir@&$datadir&g
21250 s&@docdir@&$docdir&g
21251 s&@infodir@&$infodir&g
21252 s&@localedir@&$localedir&g
21253 s&@mandir@&$mandir&g
21254 s&\\\${datarootdir}&$datarootdir&g' ;;
21255 esac
21256 _ACEOF
21257
21258 # Neutralize VPATH when `$srcdir' = `.'.
21259 # Shell code in configure.ac might set extrasub.
21260 # FIXME: do we really want to maintain this feature?
21261 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21262 ac_sed_extra="$ac_vpsub
21263 $extrasub
21264 _ACEOF
21265 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21266 :t
21267 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21268 s|@configure_input@|$ac_sed_conf_input|;t t
21269 s&@top_builddir@&$ac_top_builddir_sub&;t t
21270 s&@top_build_prefix@&$ac_top_build_prefix&;t t
21271 s&@srcdir@&$ac_srcdir&;t t
21272 s&@abs_srcdir@&$ac_abs_srcdir&;t t
21273 s&@top_srcdir@&$ac_top_srcdir&;t t
21274 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21275 s&@builddir@&$ac_builddir&;t t
21276 s&@abs_builddir@&$ac_abs_builddir&;t t
21277 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21278 s&@INSTALL@&$ac_INSTALL&;t t
21279 s&@MKDIR_P@&$ac_MKDIR_P&;t t
21280 $ac_datarootdir_hack
21281 "
21282 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
21283 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21284
21285 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21286 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
21287 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
21288 "$ac_tmp/out"`; test -z "$ac_out"; } &&
21289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21290 which seems to be undefined. Please make sure it is defined" >&5
21291 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21292 which seems to be undefined. Please make sure it is defined" >&2;}
21293
21294 rm -f "$ac_tmp/stdin"
21295 case $ac_file in
21296 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
21297 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
21298 esac \
21299 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21300 ;;
21301 :H)
21302 #
21303 # CONFIG_HEADER
21304 #
21305 if test x"$ac_file" != x-; then
21306 {
21307 printf "%s\n" "/* $configure_input */" >&1 \
21308 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
21309 } >"$ac_tmp/config.h" \
21310 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21311 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
21312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
21313 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
21314 else
21315 rm -f "$ac_file"
21316 mv "$ac_tmp/config.h" "$ac_file" \
21317 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21318 fi
21319 else
21320 printf "%s\n" "/* $configure_input */" >&1 \
21321 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
21322 || as_fn_error $? "could not create -" "$LINENO" 5
21323 fi
21324 # Compute "$ac_file"'s index in $config_headers.
21325 _am_arg="$ac_file"
21326 _am_stamp_count=1
21327 for _am_header in $config_headers :; do
21328 case $_am_header in
21329 $_am_arg | $_am_arg:* )
21330 break ;;
21331 * )
21332 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21333 esac
21334 done
21335 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
21336 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21337 X"$_am_arg" : 'X\(//\)[^/]' \| \
21338 X"$_am_arg" : 'X\(//\)$' \| \
21339 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
21340 printf "%s\n" X"$_am_arg" |
21341 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21342 s//\1/
21343 q
21344 }
21345 /^X\(\/\/\)[^/].*/{
21346 s//\1/
21347 q
21348 }
21349 /^X\(\/\/\)$/{
21350 s//\1/
21351 q
21352 }
21353 /^X\(\/\).*/{
21354 s//\1/
21355 q
21356 }
21357 s/.*/./; q'`/stamp-h$_am_stamp_count
21358 ;;
21359
21360 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
21361 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
21362 ;;
21363 esac
21364
21365
21366 case $ac_file$ac_mode in
21367 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
21368 # Older Autoconf quotes --file arguments for eval, but not when files
21369 # are listed without --file. Let's play safe and only enable the eval
21370 # if we detect the quoting.
21371 # TODO: see whether this extra hack can be removed once we start
21372 # requiring Autoconf 2.70 or later.
21373 case $CONFIG_FILES in #(
21374 *\'*) :
21375 eval set x "$CONFIG_FILES" ;; #(
21376 *) :
21377 set x $CONFIG_FILES ;; #(
21378 *) :
21379 ;;
21380 esac
21381 shift
21382 # Used to flag and report bootstrapping failures.
21383 am_rc=0
21384 for am_mf
21385 do
21386 # Strip MF so we end up with the name of the file.
21387 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
21388 # Check whether this is an Automake generated Makefile which includes
21389 # dependency-tracking related rules and includes.
21390 # Grep'ing the whole file directly is not great: AIX grep has a line
21391 # limit of 2048, but all sed's we know have understand at least 4000.
21392 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
21393 || continue
21394 am_dirpart=`$as_dirname -- "$am_mf" ||
21395 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21396 X"$am_mf" : 'X\(//\)[^/]' \| \
21397 X"$am_mf" : 'X\(//\)$' \| \
21398 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
21399 printf "%s\n" X"$am_mf" |
21400 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21401 s//\1/
21402 q
21403 }
21404 /^X\(\/\/\)[^/].*/{
21405 s//\1/
21406 q
21407 }
21408 /^X\(\/\/\)$/{
21409 s//\1/
21410 q
21411 }
21412 /^X\(\/\).*/{
21413 s//\1/
21414 q
21415 }
21416 s/.*/./; q'`
21417 am_filepart=`$as_basename -- "$am_mf" ||
21418 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
21419 X"$am_mf" : 'X\(//\)$' \| \
21420 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
21421 printf "%s\n" X/"$am_mf" |
21422 sed '/^.*\/\([^/][^/]*\)\/*$/{
21423 s//\1/
21424 q
21425 }
21426 /^X\/\(\/\/\)$/{
21427 s//\1/
21428 q
21429 }
21430 /^X\/\(\/\).*/{
21431 s//\1/
21432 q
21433 }
21434 s/.*/./; q'`
21435 { echo "$as_me:$LINENO: cd "$am_dirpart" \
21436 && sed -e '/# am--include-marker/d' "$am_filepart" \
21437 | $MAKE -f - am--depfiles" >&5
21438 (cd "$am_dirpart" \
21439 && sed -e '/# am--include-marker/d' "$am_filepart" \
21440 | $MAKE -f - am--depfiles) >&5 2>&5
21441 ac_status=$?
21442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21443 (exit $ac_status); } || am_rc=$?
21444 done
21445 if test $am_rc -ne 0; then
21446 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21447 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
21448 as_fn_error $? "Something went wrong bootstrapping makefile fragments
21449 for automatic dependency tracking. If GNU make was not used, consider
21450 re-running the configure script with MAKE=\"gmake\" (or whatever is
21451 necessary). You can also try re-running configure with the
21452 '--disable-dependency-tracking' option to at least be able to build
21453 the package (albeit without support for automatic dependency tracking).
21454 See \`config.log' for more details" "$LINENO" 5; }
21455 fi
21456 { am_dirpart=; unset am_dirpart;}
21457 { am_filepart=; unset am_filepart;}
21458 { am_mf=; unset am_mf;}
21459 { am_rc=; unset am_rc;}
21460 rm -f conftest-deps.mk
21461 }
21462 ;;
21463 "libtool":C)
21464
21465 # See if we are running on zsh, and set the options that allow our
21466 # commands through without removal of \ escapes.
21467 if test -n "${ZSH_VERSION+set}"; then
21468 setopt NO_GLOB_SUBST
21469 fi
21470
21471 cfgfile=${ofile}T
21472 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
21473 $RM "$cfgfile"
21474
21475 cat <<_LT_EOF >> "$cfgfile"
21476 #! $SHELL
21477 # Generated automatically by $as_me ($PACKAGE) $VERSION
21478 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21479 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
21480
21481 # Provide generalized library-building support services.
21482 # Written by Gordon Matzigkeit, 1996
21483
21484 # Copyright (C) 2014 Free Software Foundation, Inc.
21485 # This is free software; see the source for copying conditions. There is NO
21486 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
21487
21488 # GNU Libtool is free software; you can redistribute it and/or modify
21489 # it under the terms of the GNU General Public License as published by
21490 # the Free Software Foundation; either version 2 of of the License, or
21491 # (at your option) any later version.
21492 #
21493 # As a special exception to the GNU General Public License, if you
21494 # distribute this file as part of a program or library that is built
21495 # using GNU Libtool, you may include this file under the same
21496 # distribution terms that you use for the rest of that program.
21497 #
21498 # GNU Libtool is distributed in the hope that it will be useful, but
21499 # WITHOUT ANY WARRANTY; without even the implied warranty of
21500 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21501 # GNU General Public License for more details.
21502 #
21503 # You should have received a copy of the GNU General Public License
21504 # along with this program. If not, see <http://www.gnu.org/licenses/>.
21505
21506
21507 # The names of the tagged configurations supported by this script.
21508 available_tags=''
21509
21510 # Configured defaults for sys_lib_dlsearch_path munging.
21511 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
21512
21513 # ### BEGIN LIBTOOL CONFIG
21514
21515 # Whether or not to build static libraries.
21516 build_old_libs=$enable_static
21517
21518 # Which release of libtool.m4 was used?
21519 macro_version=$macro_version
21520 macro_revision=$macro_revision
21521
21522 # Whether or not to build shared libraries.
21523 build_libtool_libs=$enable_shared
21524
21525 # What type of objects to build.
21526 pic_mode=$pic_mode
21527
21528 # Whether or not to optimize for fast installation.
21529 fast_install=$enable_fast_install
21530
21531 # Shared archive member basename,for filename based shared library versioning on AIX.
21532 shared_archive_member_spec=$shared_archive_member_spec
21533
21534 # Shell to use when invoking shell scripts.
21535 SHELL=$lt_SHELL
21536
21537 # An echo program that protects backslashes.
21538 ECHO=$lt_ECHO
21539
21540 # The PATH separator for the build system.
21541 PATH_SEPARATOR=$lt_PATH_SEPARATOR
21542
21543 # The host system.
21544 host_alias=$host_alias
21545 host=$host
21546 host_os=$host_os
21547
21548 # The build system.
21549 build_alias=$build_alias
21550 build=$build
21551 build_os=$build_os
21552
21553 # A sed program that does not truncate output.
21554 SED=$lt_SED
21555
21556 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
21557 Xsed="\$SED -e 1s/^X//"
21558
21559 # A grep program that handles long lines.
21560 GREP=$lt_GREP
21561
21562 # An ERE matcher.
21563 EGREP=$lt_EGREP
21564
21565 # A literal string matcher.
21566 FGREP=$lt_FGREP
21567
21568 # A BSD- or MS-compatible name lister.
21569 NM=$lt_NM
21570
21571 # Whether we need soft or hard links.
21572 LN_S=$lt_LN_S
21573
21574 # What is the maximum length of a command?
21575 max_cmd_len=$max_cmd_len
21576
21577 # Object file suffix (normally "o").
21578 objext=$ac_objext
21579
21580 # Executable file suffix (normally "").
21581 exeext=$exeext
21582
21583 # whether the shell understands "unset".
21584 lt_unset=$lt_unset
21585
21586 # turn spaces into newlines.
21587 SP2NL=$lt_lt_SP2NL
21588
21589 # turn newlines into spaces.
21590 NL2SP=$lt_lt_NL2SP
21591
21592 # convert \$build file names to \$host format.
21593 to_host_file_cmd=$lt_cv_to_host_file_cmd
21594
21595 # convert \$build files to toolchain format.
21596 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
21597
21598 # A file(cmd) program that detects file types.
21599 FILECMD=$lt_FILECMD
21600
21601 # An object symbol dumper.
21602 OBJDUMP=$lt_OBJDUMP
21603
21604 # Method to check whether dependent libraries are shared objects.
21605 deplibs_check_method=$lt_deplibs_check_method
21606
21607 # Command to use when deplibs_check_method = "file_magic".
21608 file_magic_cmd=$lt_file_magic_cmd
21609
21610 # How to find potential files when deplibs_check_method = "file_magic".
21611 file_magic_glob=$lt_file_magic_glob
21612
21613 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
21614 want_nocaseglob=$lt_want_nocaseglob
21615
21616 # DLL creation program.
21617 DLLTOOL=$lt_DLLTOOL
21618
21619 # Command to associate shared and link libraries.
21620 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
21621
21622 # The archiver.
21623 AR=$lt_AR
21624
21625 # Flags to create an archive (by configure).
21626 lt_ar_flags=$lt_ar_flags
21627
21628 # Flags to create an archive.
21629 AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
21630
21631 # How to feed a file listing to the archiver.
21632 archiver_list_spec=$lt_archiver_list_spec
21633
21634 # A symbol stripping program.
21635 STRIP=$lt_STRIP
21636
21637 # Commands used to install an old-style archive.
21638 RANLIB=$lt_RANLIB
21639 old_postinstall_cmds=$lt_old_postinstall_cmds
21640 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21641
21642 # Whether to use a lock for old archive extraction.
21643 lock_old_archive_extraction=$lock_old_archive_extraction
21644
21645 # A C compiler.
21646 LTCC=$lt_CC
21647
21648 # LTCC compiler flags.
21649 LTCFLAGS=$lt_CFLAGS
21650
21651 # Take the output of nm and produce a listing of raw symbols and C names.
21652 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21653
21654 # Transform the output of nm in a proper C declaration.
21655 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21656
21657 # Transform the output of nm into a list of symbols to manually relocate.
21658 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
21659
21660 # Transform the output of nm in a C name address pair.
21661 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21662
21663 # Transform the output of nm in a C name address pair when lib prefix is needed.
21664 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
21665
21666 # The name lister interface.
21667 nm_interface=$lt_lt_cv_nm_interface
21668
21669 # Specify filename containing input files for \$NM.
21670 nm_file_list_spec=$lt_nm_file_list_spec
21671
21672 # The root where to search for dependent libraries,and where our libraries should be installed.
21673 lt_sysroot=$lt_sysroot
21674
21675 # Command to truncate a binary pipe.
21676 lt_truncate_bin=$lt_lt_cv_truncate_bin
21677
21678 # The name of the directory that contains temporary libtool files.
21679 objdir=$objdir
21680
21681 # Used to examine libraries when file_magic_cmd begins with "file".
21682 MAGIC_CMD=$MAGIC_CMD
21683
21684 # Must we lock files when doing compilation?
21685 need_locks=$lt_need_locks
21686
21687 # Manifest tool.
21688 MANIFEST_TOOL=$lt_MANIFEST_TOOL
21689
21690 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
21691 DSYMUTIL=$lt_DSYMUTIL
21692
21693 # Tool to change global to local symbols on Mac OS X.
21694 NMEDIT=$lt_NMEDIT
21695
21696 # Tool to manipulate fat objects and archives on Mac OS X.
21697 LIPO=$lt_LIPO
21698
21699 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
21700 OTOOL=$lt_OTOOL
21701
21702 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
21703 OTOOL64=$lt_OTOOL64
21704
21705 # Old archive suffix (normally "a").
21706 libext=$libext
21707
21708 # Shared library suffix (normally ".so").
21709 shrext_cmds=$lt_shrext_cmds
21710
21711 # The commands to extract the exported symbol list from a shared archive.
21712 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21713
21714 # Variables whose values should be saved in libtool wrapper scripts and
21715 # restored at link time.
21716 variables_saved_for_relink=$lt_variables_saved_for_relink
21717
21718 # Do we need the "lib" prefix for modules?
21719 need_lib_prefix=$need_lib_prefix
21720
21721 # Do we need a version for libraries?
21722 need_version=$need_version
21723
21724 # Library versioning type.
21725 version_type=$version_type
21726
21727 # Shared library runtime path variable.
21728 runpath_var=$runpath_var
21729
21730 # Shared library path variable.
21731 shlibpath_var=$shlibpath_var
21732
21733 # Is shlibpath searched before the hard-coded library search path?
21734 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21735
21736 # Format of library name prefix.
21737 libname_spec=$lt_libname_spec
21738
21739 # List of archive names. First name is the real one, the rest are links.
21740 # The last name is the one that the linker finds with -lNAME
21741 library_names_spec=$lt_library_names_spec
21742
21743 # The coded name of the library, if different from the real name.
21744 soname_spec=$lt_soname_spec
21745
21746 # Permission mode override for installation of shared libraries.
21747 install_override_mode=$lt_install_override_mode
21748
21749 # Command to use after installation of a shared archive.
21750 postinstall_cmds=$lt_postinstall_cmds
21751
21752 # Command to use after uninstallation of a shared archive.
21753 postuninstall_cmds=$lt_postuninstall_cmds
21754
21755 # Commands used to finish a libtool library installation in a directory.
21756 finish_cmds=$lt_finish_cmds
21757
21758 # As "finish_cmds", except a single script fragment to be evaled but
21759 # not shown.
21760 finish_eval=$lt_finish_eval
21761
21762 # Whether we should hardcode library paths into libraries.
21763 hardcode_into_libs=$hardcode_into_libs
21764
21765 # Compile-time system search path for libraries.
21766 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21767
21768 # Detected run-time system search path for libraries.
21769 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
21770
21771 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
21772 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
21773
21774 # Whether dlopen is supported.
21775 dlopen_support=$enable_dlopen
21776
21777 # Whether dlopen of programs is supported.
21778 dlopen_self=$enable_dlopen_self
21779
21780 # Whether dlopen of statically linked programs is supported.
21781 dlopen_self_static=$enable_dlopen_self_static
21782
21783 # Commands to strip libraries.
21784 old_striplib=$lt_old_striplib
21785 striplib=$lt_striplib
21786
21787
21788 # The linker used to build libraries.
21789 LD=$lt_LD
21790
21791 # How to create reloadable object files.
21792 reload_flag=$lt_reload_flag
21793 reload_cmds=$lt_reload_cmds
21794
21795 # Commands used to build an old-style archive.
21796 old_archive_cmds=$lt_old_archive_cmds
21797
21798 # A language specific compiler.
21799 CC=$lt_compiler
21800
21801 # Is the compiler the GNU compiler?
21802 with_gcc=$GCC
21803
21804 # Compiler flag to turn off builtin functions.
21805 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
21806
21807 # Additional compiler flags for building library objects.
21808 pic_flag=$lt_lt_prog_compiler_pic
21809
21810 # How to pass a linker flag through the compiler.
21811 wl=$lt_lt_prog_compiler_wl
21812
21813 # Compiler flag to prevent dynamic linking.
21814 link_static_flag=$lt_lt_prog_compiler_static
21815
21816 # Does compiler simultaneously support -c and -o options?
21817 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
21818
21819 # Whether or not to add -lc for building shared libraries.
21820 build_libtool_need_lc=$archive_cmds_need_lc
21821
21822 # Whether or not to disallow shared libs when runtime libs are static.
21823 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
21824
21825 # Compiler flag to allow reflexive dlopens.
21826 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
21827
21828 # Compiler flag to generate shared objects directly from archives.
21829 whole_archive_flag_spec=$lt_whole_archive_flag_spec
21830
21831 # Whether the compiler copes with passing no objects directly.
21832 compiler_needs_object=$lt_compiler_needs_object
21833
21834 # Create an old-style archive from a shared archive.
21835 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
21836
21837 # Create a temporary old-style archive to link instead of a shared archive.
21838 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
21839
21840 # Commands used to build a shared archive.
21841 archive_cmds=$lt_archive_cmds
21842 archive_expsym_cmds=$lt_archive_expsym_cmds
21843
21844 # Commands used to build a loadable module if different from building
21845 # a shared archive.
21846 module_cmds=$lt_module_cmds
21847 module_expsym_cmds=$lt_module_expsym_cmds
21848
21849 # Whether we are building with GNU ld or not.
21850 with_gnu_ld=$lt_with_gnu_ld
21851
21852 # Flag that allows shared libraries with undefined symbols to be built.
21853 allow_undefined_flag=$lt_allow_undefined_flag
21854
21855 # Flag that enforces no undefined symbols.
21856 no_undefined_flag=$lt_no_undefined_flag
21857
21858 # Flag to hardcode \$libdir into a binary during linking.
21859 # This must work even if \$libdir does not exist
21860 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
21861
21862 # Whether we need a single "-rpath" flag with a separated argument.
21863 hardcode_libdir_separator=$lt_hardcode_libdir_separator
21864
21865 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21866 # DIR into the resulting binary.
21867 hardcode_direct=$hardcode_direct
21868
21869 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21870 # DIR into the resulting binary and the resulting library dependency is
21871 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
21872 # library is relocated.
21873 hardcode_direct_absolute=$hardcode_direct_absolute
21874
21875 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21876 # into the resulting binary.
21877 hardcode_minus_L=$hardcode_minus_L
21878
21879 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21880 # into the resulting binary.
21881 hardcode_shlibpath_var=$hardcode_shlibpath_var
21882
21883 # Set to "yes" if building a shared library automatically hardcodes DIR
21884 # into the library and all subsequent libraries and executables linked
21885 # against it.
21886 hardcode_automatic=$hardcode_automatic
21887
21888 # Set to yes if linker adds runtime paths of dependent libraries
21889 # to runtime path list.
21890 inherit_rpath=$inherit_rpath
21891
21892 # Whether libtool must link a program against all its dependency libraries.
21893 link_all_deplibs=$link_all_deplibs
21894
21895 # Set to "yes" if exported symbols are required.
21896 always_export_symbols=$always_export_symbols
21897
21898 # The commands to list exported symbols.
21899 export_symbols_cmds=$lt_export_symbols_cmds
21900
21901 # Symbols that should not be listed in the preloaded symbols.
21902 exclude_expsyms=$lt_exclude_expsyms
21903
21904 # Symbols that must always be exported.
21905 include_expsyms=$lt_include_expsyms
21906
21907 # Commands necessary for linking programs (against libraries) with templates.
21908 prelink_cmds=$lt_prelink_cmds
21909
21910 # Commands necessary for finishing linking programs.
21911 postlink_cmds=$lt_postlink_cmds
21912
21913 # Specify filename containing input files.
21914 file_list_spec=$lt_file_list_spec
21915
21916 # How to hardcode a shared library path into an executable.
21917 hardcode_action=$hardcode_action
21918
21919 # ### END LIBTOOL CONFIG
21920
21921 _LT_EOF
21922
21923 cat <<'_LT_EOF' >> "$cfgfile"
21924
21925 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
21926
21927 # func_munge_path_list VARIABLE PATH
21928 # -----------------------------------
21929 # VARIABLE is name of variable containing _space_ separated list of
21930 # directories to be munged by the contents of PATH, which is string
21931 # having a format:
21932 # "DIR[:DIR]:"
21933 # string "DIR[ DIR]" will be prepended to VARIABLE
21934 # ":DIR[:DIR]"
21935 # string "DIR[ DIR]" will be appended to VARIABLE
21936 # "DIRP[:DIRP]::[DIRA:]DIRA"
21937 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
21938 # "DIRA[ DIRA]" will be appended to VARIABLE
21939 # "DIR[:DIR]"
21940 # VARIABLE will be replaced by "DIR[ DIR]"
21941 func_munge_path_list ()
21942 {
21943 case x$2 in
21944 x)
21945 ;;
21946 *:)
21947 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
21948 ;;
21949 x:*)
21950 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
21951 ;;
21952 *::*)
21953 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
21954 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
21955 ;;
21956 *)
21957 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
21958 ;;
21959 esac
21960 }
21961
21962
21963 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
21964 func_cc_basename ()
21965 {
21966 for cc_temp in $*""; do
21967 case $cc_temp in
21968 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21969 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21970 \-*) ;;
21971 *) break;;
21972 esac
21973 done
21974 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
21975 }
21976
21977
21978 # ### END FUNCTIONS SHARED WITH CONFIGURE
21979
21980 _LT_EOF
21981
21982 case $host_os in
21983 aix3*)
21984 cat <<\_LT_EOF >> "$cfgfile"
21985 # AIX sometimes has problems with the GCC collect2 program. For some
21986 # reason, if we set the COLLECT_NAMES environment variable, the problems
21987 # vanish in a puff of smoke.
21988 if test set != "${COLLECT_NAMES+set}"; then
21989 COLLECT_NAMES=
21990 export COLLECT_NAMES
21991 fi
21992 _LT_EOF
21993 ;;
21994 esac
21995
21996
21997
21998 ltmain=$ac_aux_dir/ltmain.sh
21999
22000
22001 # We use sed instead of cat because bash on DJGPP gets confused if
22002 # if finds mixed CR/LF and LF-only lines. Since sed operates in
22003 # text mode, it properly converts lines to CR/LF. This bash problem
22004 # is reportedly fixed, but why not run on old versions too?
22005 $SED '$q' "$ltmain" >> "$cfgfile" \
22006 || (rm -f "$cfgfile"; exit 1)
22007
22008 mv -f "$cfgfile" "$ofile" ||
22009 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
22010 chmod +x "$ofile"
22011
22012 ;;
22013
22014 esac
22015 done # for ac_tag
22016
22017
22018 as_fn_exit 0
22019 _ACEOF
22020 ac_clean_files=$ac_clean_files_save
22021
22022 test $ac_write_fail = 0 ||
22023 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
22024
22025
22026 # configure is writing to config.log, and then calls config.status.
22027 # config.status does its own redirection, appending to config.log.
22028 # Unfortunately, on DOS this fails, as config.log is still kept open
22029 # by configure, so config.status won't be able to write to it; its
22030 # output is simply discarded. So we exec the FD to /dev/null,
22031 # effectively closing config.log, so it can be properly (re)opened and
22032 # appended to by config.status. When coming back to configure, we
22033 # need to make the FD available again.
22034 if test "$no_create" != yes; then
22035 ac_cs_success=:
22036 ac_config_status_args=
22037 test "$silent" = yes &&
22038 ac_config_status_args="$ac_config_status_args --quiet"
22039 exec 5>/dev/null
22040 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22041 exec 5>>config.log
22042 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22043 # would make configure fail if this is the last instruction.
22044 $ac_cs_success || as_fn_exit 1
22045 fi
22046 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
22047 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
22048 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
22049 fi
22050
22051
22052